/* AVION MOBILE SALON ホームページ(v0)。トップ・出勤表の共通。
   色・書体の正: AVIONシステム_デザイン仕様.md 3-7(--tb-*)＋ HP前提 6-1(生成りの面 --day-*)。
   見本: Design キャンバス「AVION HP トップ見本」(寸法・色・文言・動きの値を参考にした)。
   守る線(HP前提 6-5): 影は使わず線で輪郭を出す / 金の塗りは1画面に1つ / 押せる高さ48px以上 /
   hover は色だけ / 動かすのは transform と opacity だけ / 動きを減らす設定なら動かさない */

:root {
  /* 紺の面(受付と同じ) */
  --tb-bg: #0d1b33;
  --tb-head: #0a1528;
  --tb-panel: #13264a;
  --tb-row: #1a3160;
  --tb-line: #33466e;
  --tb-ink: #f5f1e8;
  --tb-mute: #aeb8cc;
  --tb-gold: #d4b06a;
  --tb-gold-ink: #0d1b33;
  /* 生成りの面(昼のラウンジ)。生成りの上の金の文字は --day-gold(#D4B06A は読めない) */
  --day-bg: #f5f1e8;
  --day-card: #ffffff;
  --day-ink: #0d1b33;
  --day-mute: #4a5670;
  --day-gold: #7a5c2e;
  --day-line: #ddd6c8;
  --day-sun: #9a2a24;
  --day-sat: #2b4c8c;

  --r: 16px;
  --r-s: 10px;
  --gutter: 16px;
  --sans: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  --serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --num: Manrope, var(--sans);
  --deco: 'Cormorant Garamond', Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--tb-bg);
  color: var(--tb-ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  color: inherit;
}
h1,
h2,
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--tb-gold);
  outline-offset: 2px;
}
.day :focus-visible {
  outline-color: var(--day-gold);
}

.num {
  font-family: var(--num);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.deco {
  font-family: var(--deco);
  font-weight: 600;
  letter-spacing: 0.3em;
}
.mincho {
  font-family: var(--serif);
  font-weight: 500;
}
.nb {
  display: inline-block;
}
.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
/* hidden 属性を .btn などの display より優先する */
[hidden] {
  display: none !important;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- ヘッダー・フッター(紺) ---------- */
.site-head {
  background: var(--tb-head);
  border-bottom: 1px solid var(--tb-gold);
}
.site-head .wrap {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  padding: 6px 0;
}
.logo-main {
  font-family: var(--deco);
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.18em;
  color: var(--tb-ink);
}
.logo-sub {
  font-family: var(--deco);
  font-weight: 600;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.32em;
  color: var(--tb-gold);
}
.site-foot {
  background: var(--tb-head);
  border-top: 1px solid var(--tb-gold);
  padding: 32px 0 40px;
}
.site-foot .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.site-foot .logo-main {
  font-size: 26px;
}
.foot-rule {
  width: 72px;
  height: 1px;
  background: var(--tb-gold);
  margin: 8px 0 6px;
}
.since {
  font-family: var(--deco);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--tb-mute);
}

/* ---------- ボタン(強さ4段階のうち 最強・弱 を使う。引き継ぎ書1-4) ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  text-decoration: none;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--r-s);
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 80ms ease,
    background-color 0.15s ease,
    color 0.15s ease;
}
.btn:active {
  transform: scale(0.98);
}
/* 最強: 金の塗り。1画面に1つ(トップのスマホ1画面目は「LINEで友だち追加」) */
.btn-primary {
  min-height: 56px;
  border-radius: var(--r);
  background: var(--tb-gold);
  color: var(--tb-gold-ink);
  font-size: 17px;
  font-weight: 700;
}
.btn-primary:hover {
  background: #e0c184;
}
/* 弱(紺の面): パネル地＋金の枠 */
.btn-outline {
  background: var(--tb-panel);
  border: 1.5px solid var(--tb-gold);
  color: var(--tb-ink);
}
.btn-outline:hover {
  background: var(--tb-row);
}
/* 弱(生成りの面): 白地＋線の枠＋濃い金の文字 */
.btn-day {
  background: var(--day-card);
  border: 1.5px solid var(--day-line);
  color: var(--day-gold);
}
.btn-day:hover {
  border-color: var(--day-gold);
}

/* ---------- トップ: 紺の面(今日の状況) ---------- */
.hero {
  padding: 28px 0 32px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-copy .deco {
  font-size: 14px;
  letter-spacing: 0.32em;
  color: var(--tb-gold);
}
.hero-copy h1 {
  font-size: 25px;
  line-height: 1.5;
}
.hero-copy p {
  font-size: 13px;
  color: var(--tb-mute);
}
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-cta .note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--tb-mute);
  text-align: center;
}

/* いまのお待ち(パネル) */
.wait {
  position: relative;
  overflow: hidden; /* 離陸する機体・入ってくる機体はパネルの外に出さない(横スクロールを出さない) */
  background: var(--tb-panel);
  border: 1px solid var(--tb-line);
  border-radius: var(--r);
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wait-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wait-head h2 {
  font-size: 14px;
  font-weight: 500;
}
.wait-head .deco {
  font-size: 12px;
  color: var(--tb-gold);
}
.wait-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-height: 64px;
}
.wait-count .big {
  font-size: 64px;
  line-height: 1;
  color: var(--tb-gold);
}
.wait-count .unit {
  font-size: 24px;
}
.wait-count .groups {
  margin-left: 8px;
  font-size: 15px;
  color: var(--tb-mute);
}
.wait-msg {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0 4px;
}
.wait-msg .line {
  font-size: 20px;
  font-weight: 500;
}
.wait-msg .sub {
  font-size: 14px;
  color: var(--tb-mute);
}
.wait-msg .btn {
  margin-top: 10px;
}
.wait-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--tb-mute);
}
.wait-note .more {
  color: var(--tb-ink);
  white-space: nowrap;
}
.wait-foot {
  border-top: 1px solid var(--tb-line);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--tb-mute);
}
.wait-foot .status {
  color: var(--tb-ink);
}
/* 表示の切り替え(hp.js が data-mode を変える) */
.wait[data-mode='closed'] .wait-count,
.wait[data-mode='closed'] .runway,
.wait[data-mode='closed'] .wait-note,
.wait[data-mode='closed'] .wait-foot,
.wait[data-mode='error'] .wait-count,
.wait[data-mode='error'] .runway,
.wait[data-mode='error'] .wait-note,
.wait[data-mode='dash'] .runway,
.wait[data-mode='dash'] .wait-note,
.wait[data-mode='loading'] .wait-note,
.wait[data-mode='runway'] .wait-msg,
.wait[data-mode='dash'] .wait-msg,
.wait[data-mode='loading'] .wait-msg {
  display: none;
}
.wait[data-mode='dash'] .wait-count .unit,
.wait[data-mode='dash'] .wait-count .groups,
.wait[data-mode='loading'] .wait-count .unit,
.wait[data-mode='loading'] .wait-count .groups {
  visibility: hidden;
}
.wait[data-mode='dash'] .wait-count .big,
.wait[data-mode='loading'] .wait-count .big {
  color: var(--tb-mute);
}

/* 滑走路。値は受付の RunwayQueue(src/index.css の .tb-plane など)と同じ */
.runway {
  position: relative;
  height: 112px;
  border-radius: var(--r-s);
  background: var(--tb-head);
  --pw: 54px; /* 機体の幅。hp.js が枠の幅から決める */
}
.runway-lamps {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 44px;
  display: flex;
  justify-content: space-between;
}
.runway-lamp {
  width: 4px;
  height: 4px;
  border-radius: 2px;
  background: var(--tb-gold);
  opacity: 0.2;
  animation: rw-rabbit 2.6s linear infinite;
}
.runway-empty {
  position: absolute;
  left: 0;
  right: 0;
  top: 64px;
  text-align: center;
  font-size: 14px;
}
.plane {
  position: absolute;
  left: 0;
  top: 20px;
  width: var(--pw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--tb-ink);
  transition:
    transform 1.4s cubic-bezier(0.34, 1.25, 0.5, 1),
    opacity 0.8s ease;
}
.plane.roll {
  transition:
    transform 0.75s cubic-bezier(0.55, 0, 1, 0.6),
    opacity 0.3s ease;
}
.plane.climb {
  transition:
    transform 1.3s cubic-bezier(0.2, 0.4, 0.4, 1),
    opacity 1.1s ease-in 0.2s;
}
.plane.no-anim {
  transition: none;
}
.plane svg {
  display: block;
  width: 100%;
  height: auto;
  fill: currentColor;
  animation: pl-idle 3.2s ease-in-out infinite;
}
.plane .pn {
  font-size: 16px;
  line-height: 1;
}
.plane .pp {
  font-size: 11px;
  line-height: 1;
  color: var(--tb-mute);
  white-space: nowrap;
}
.runway.is-paused .runway-lamp,
.runway.is-paused .plane svg {
  animation-play-state: paused;
}
@keyframes rw-rabbit {
  0% {
    opacity: 0.2;
  }
  6% {
    opacity: 1;
  }
  18% {
    opacity: 0.2;
  }
  100% {
    opacity: 0.2;
  }
}
@keyframes pl-idle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1.5px);
  }
}

/* ---------- 生成りの面(読む章) ---------- */
.day {
  background: var(--day-bg);
  color: var(--day-ink);
  border-top: 1px solid var(--tb-gold);
}
/* 出勤表はヘッダーの金の線のすぐ下から生成りなので、線を重ねない */
main.day {
  border-top: 0;
}
.day-section {
  padding: 48px 0 40px;
}
.day-section + .day-section {
  padding-top: 0;
}
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.sec-head h1,
.sec-head h2 {
  font-size: 20px;
  font-weight: 700;
}
.sec-head .deco,
.concept .deco {
  font-size: 12px;
  color: var(--day-gold);
}
.card {
  background: var(--day-card);
  border: 1px solid var(--day-line);
  border-radius: var(--r);
}

.concept {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.concept-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.concept .deco {
  font-size: 14px;
  letter-spacing: 0.32em;
}
.concept-text p {
  font-size: 16px;
  line-height: 2.1;
}
.ports {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.port {
  background: var(--day-card);
  border: 1px solid var(--day-line);
  border-radius: var(--r-s);
  padding: 16px 4px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.port svg {
  width: 36px;
  height: 36px;
}
.port-ja {
  font-size: 14px;
  font-weight: 700;
}
.port-en {
  font-family: var(--deco);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--day-mute);
}

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
.menu-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.menu-card {
  padding: 4px 16px;
}
.menu-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}
.menu-row .price {
  font-size: 22px;
}
.menu-row .tax {
  margin-left: 4px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
}
.access-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hours {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
}
.hours dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hours dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.hours dt,
.hours dd {
  margin: 0;
}
.hours .num {
  font-size: 16px;
}
.hours .early {
  margin-top: 4px;
  font-size: 12px;
  color: var(--day-mute);
}
.address {
  font-size: 14px;
  line-height: 1.8;
  font-style: normal;
}

/* ---------- 出勤表(/shift) ---------- */
.shift-top {
  padding: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 14px;
  font-weight: 500;
  color: var(--day-ink);
  text-decoration: none;
}
.today-status {
  padding: 12px 16px;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
}
.today-status .sub {
  color: var(--day-mute);
}
.shift-head {
  padding: 28px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shift-head .sec-head {
  margin-bottom: 0;
}
.shift-head p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--day-mute);
}
.shift-head .key {
  color: var(--day-gold);
}
.shift-list {
  padding: 0 0 48px;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.shift-closed {
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--day-mute);
}
.shift-closed .num {
  width: 28px;
  font-size: 15px;
  text-align: right;
}
.shift-day {
  padding: 12px;
  border-radius: var(--r-s);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.shift-day.is-today {
  border: 2px solid var(--day-gold);
}
.shift-date {
  width: 44px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.shift-date .num {
  font-size: 22px;
  line-height: 1;
}
.shift-date .w {
  font-size: 12px;
  font-weight: 500;
}
.is-sun .shift-date {
  color: var(--day-sun);
}
.is-sat .shift-date {
  color: var(--day-sat);
}
.shift-body {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shift-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
  font-size: 12px;
  color: var(--day-mute);
}
.shift-meta .num {
  font-size: 13px;
}
.shift-meta .hol {
  color: var(--day-sun);
}
.shift-meta .today {
  background: var(--day-ink);
  color: var(--day-bg);
  border-radius: 4px;
  padding: 1px 6px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chip {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 15px;
  background: var(--day-bg);
  border: 1px solid var(--day-line);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
}
.chip small {
  font-size: 11px;
  font-weight: 400;
  color: var(--day-gold);
}
.shift-empty {
  padding: 24px 16px;
  font-size: 14px;
  color: var(--day-mute);
}

/* ---------- 幅768px以上(タブレット・PC) ---------- */
@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
  .site-head .wrap {
    height: 76px;
  }
  .logo {
    gap: 3px;
  }
  .logo-main {
    font-size: 30px;
  }
  .logo-sub {
    font-size: 12px;
  }
  .hero {
    padding: 48px 0 56px;
  }
  .hero .wrap {
    max-width: 800px;
  }
  .hero-copy h1 {
    font-size: 32px;
  }
  .hero-copy p {
    font-size: 15px;
  }
  .hero-cta {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }
  .wait {
    padding: 24px 24px 20px;
    gap: 18px;
  }
  .wait-head h2 {
    font-size: 16px;
  }
  .wait-head .deco {
    font-size: 14px;
  }
  .wait-count .big {
    font-size: 72px;
  }
  .wait-count {
    min-height: 72px;
  }
  .wait-count .unit {
    font-size: 26px;
  }
  .wait-count .groups {
    font-size: 16px;
  }
  .wait-note,
  .wait-foot {
    font-size: 13px;
  }
  .runway {
    height: 136px;
    --pw: 60px;
  }
  .runway-lamps {
    left: 16px;
    right: 16px;
    top: 54px;
  }
  .runway-lamp {
    width: 5px;
    height: 5px;
    border-radius: 3px;
  }
  .runway-empty {
    top: 80px;
    font-size: 15px;
  }
  .plane {
    top: 26px;
    gap: 6px;
  }
  .plane .pn {
    font-size: 18px;
  }
  .plane .pp {
    font-size: 12px;
  }
  .day-section {
    padding: 72px 0 56px;
  }
  .concept-text p {
    font-size: 18px;
    line-height: 2.2;
  }
  .port {
    padding: 24px 8px 20px;
    border-radius: var(--r);
  }
  .port svg {
    width: 44px;
    height: 44px;
  }
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
  }
  .site-foot .wrap {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
  .site-foot .logo-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .shift-main {
    max-width: 720px;
  }
}
@media (max-width: 767px) {
  .site-foot .logo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
}

/* PC: 左に言葉とボタン、右に滑走路のパネル(HP前提 6-2)。10機が並ぶ幅を取れるところから2列にする */
@media (min-width: 1200px) {
  :root {
    --gutter: 64px;
  }
  .hero {
    padding: 64px 0 72px;
  }
  .hero .wrap {
    max-width: 1280px;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas:
      'copy panel'
      'cta panel';
    grid-template-rows: auto 1fr;
    column-gap: 24px;
    row-gap: 28px;
  }
  .hero-copy {
    grid-area: copy;
    gap: 14px;
    padding-top: 12px;
  }
  .hero-copy .deco {
    font-size: 18px;
  }
  .hero-copy h1 {
    font-size: 40px;
    line-height: 1.45;
  }
  .hero-copy .nb {
    display: block;
  }
  .wait {
    grid-area: panel;
    align-self: start;
  }
  .hero-cta {
    grid-area: cta;
    max-width: 360px;
    margin: 0;
  }
  .hero-cta .note {
    text-align: left;
  }
  .concept {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 24px 96px;
    align-items: center;
  }
  .concept .deco {
    font-size: 16px;
  }
  .ports {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .plane,
  .plane.roll,
  .plane.climb,
  .btn {
    transition: none;
  }
  .runway-lamp,
  .plane svg {
    animation: none;
  }
}
