@charset "UTF-8";

:root{
  --header-h: 56px;
}

.pwa-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.08);
  z-index: 3000;

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

.pwa-header__title,
.pwa-header .brand{
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 戻るボタン（なければ追加） */
.pwa-header__back{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.05);
  color: #111;
}

.back-btn,
.pwa-header__gear,
.pwa-header .gear{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(0,0,0,.05);
  color: #111;
}

.pwa-header a{
  color: inherit;
  text-decoration: none;
}

@supports (padding-top: env(safe-area-inset-top)){
  .pwa-header{
    padding-top: env(safe-area-inset-top);
    height: calc(var(--header-h) + env(safe-area-inset-top));
  }
}

/* =========================================
   iOS App Header Bridge
   既存画面でも新 header.jsp を崩さず表示するための暫定共通CSS
   ========================================= */

.ios-app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top);
  background: rgba(247, 239, 227, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(100, 70, 40, 0.12);
}

.ios-app-header__inner {
  height: 56px;
  display: grid;
  grid-template-columns: 88px 1fr 88px;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 14px;
}

.ios-app-header__left,
.ios-app-header__right {
  display: flex;
  align-items: center;
}

.ios-app-header__right {
  justify-content: flex-end;
}

.ios-app-header__brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #2d2118;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.ios-app-header__logo {
  color: #d2a451;
  font-size: 15px;
}

.ios-app-header__title {
  font-size: 16px;
}

.ios-back-button {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #5b3518;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.ios-back-button__mark {
  font-size: 28px;
  line-height: 1;
}

.ios-settings-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(80, 55, 30, 0.14);
  color: #5b3518;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 360px) {
  .ios-app-header__inner {
    grid-template-columns: 74px 1fr 74px;
    padding: 0 10px;
  }

  .ios-settings-button {
    min-width: 42px;
    padding: 0 9px;
  }
}