@charset "UTF-8";
/* ==========================================================================
   Oars Members Club — design system

   ・白を地とし、アクセントはブランドのネイビー #1B2A3F の一色。文字は黒 #111。
   ・影ではなくヘアラインで面を分ける。角丸は控えめ。
   ・余白を大きくとり、静けさと余裕で上質さを出す。
   ========================================================================== */

/* --------------------------------------------------------------------------
   Roboto（可変フォント 1 ファイルで 100〜900 をまかないます）
   ライセンス: SIL Open Font License 1.1 — public/assets/fonts/Roboto-OFL.txt
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Variable.ttf") format("truetype-variations"),
       url("../fonts/Roboto-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- 書体 --------------------------------------------------------- */
  /* 欧文・数字は Roboto、和文は Noto Sans JP（Roboto に日本語グリフは無いため） */
  --font: "Roboto", "Noto Sans JP", "Yu Gothic Medium", "Yu Gothic", YuGothic,
          system-ui, -apple-system, sans-serif;

  /* ---- surfaces ---------------------------------------------------- */
  --white:      #ffffff;
  --paper:      #ffffff;
  --paper-2:    #fafbfc;   /* ごく薄いグレー面 */
  --paper-3:    #f4f6f8;   /* 入れ子の面 */
  --line:       #eceef1;   /* 標準のヘアライン */
  --line-2:     #e0e4e9;   /* 少し強いヘアライン */

  /* ---- ink（アクセント一色から派生） -------------------------------- */
  --text:       #111111;   /* 本文・見出し（高齢の方にも読みやすい黒） */
  --ink:        #1b2a3f;   /* 主要ボタン・アイコン・アクセント（ネイビー） */
  --ink-2:      #2b2f36;   /* 本文の補助 */
  --ink-3:      #4b5058;   /* キャプション（白地でコントラスト比 8:1 以上） */
  --ink-4:      #7c828a;   /* さらに淡い（装飾用） */
  --ink-inv:    #ffffff;

  --accent:     #1b2a3f;
  --accent-2:   #2a3d57;
  --accent-hover: #2a3d57;
  --accent-soft:  #f1f4f8; /* アクセントのごく薄い面 */
  --accent-line:  #dbe2ea;

  /* ---- semantic ---------------------------------------------------- */
  --line-green:   #06c755;
  --danger:       #a4443a;
  --danger-soft:  #fbf1ef;
  --success:      #2f6b4f;
  --success-soft: #eef5f1;

  /* ---- 互換エイリアス（既存クラス名を維持するため） ------------------ */
  --cream:      var(--white);
  --cream-deep: #f5f6f8;
  --sand-soft:  var(--paper-3);
  --sand-line:  var(--line);
  --sand:       var(--ink);
  --sand-deep:  var(--ink);
  --navy:       var(--accent);
  --navy-deep:  var(--accent-hover);
  --navy-soft:  var(--accent-soft);
  --navy-line:  var(--accent-line);
  --blue:       var(--accent);
  --blue-deep:  var(--accent);
  --blue-soft:  var(--accent-soft);
  --dark:       var(--ink);
  --dark-2:     var(--accent-hover);

  /* ---- radii（控えめに） -------------------------------------------- */
  --r-xs:   4px;
  --r-sm:   6px;
  --r-md:   8px;
  --r-lg:   10px;
  --r-xl:   12px;
  --r-pill: 999px;

  /* ---- elevation（ほぼ使わない） ------------------------------------ */
  --sh-1: none;
  --sh-2: 0 1px 2px rgba(27, 42, 63, .04);
  --sh-3: 0 18px 48px rgba(27, 42, 63, .10);
  --sh-nav: 0 -1px 0 var(--line);

  --ease: cubic-bezier(.22, .61, .36, 1);

  /* ---- layout（余白を大きく） --------------------------------------- */
  --app-w:   460px;
  --nav-h:   68px;
  --pad:     26px;
  --gap:     48px;   /* セクション間 */

  color-scheme: light;
}
/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--cream-deep);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .03em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; line-height: 1.5; font-weight: 500; letter-spacing: .02em; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---- 書体ユーティリティ -------------------------------------------- */

.serif {
  font-family: var(--font);
  font-weight: 400;
  letter-spacing: .06em;
}
.script { font-family: var(--font); font-weight: 400; letter-spacing: .06em; }

.wordmark {
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: .34em;
  text-indent: .34em;
  line-height: 1;
  color: var(--ink);
}
.wordmark--sub {
  display: block;
  font-family: var(--font);
  font-size: .54rem;
  letter-spacing: .38em;
  text-indent: .38em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 5px;
}

.eyebrow {
  font-family: var(--font);
  font-size: .7rem;
  letter-spacing: .34em;
  text-indent: .34em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1;
}

.rule { height: 1px; border: 0; margin: 0; background: var(--line); }
.rule--center { width: 40px; margin: 20px auto; background: var(--ink-4); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   App shell
   ========================================================================== */

.shell {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  background: var(--cream-deep);
}

.shell__aside {
  display: none;
  flex: 1 1 0;
  max-width: 600px;
  padding: 80px 72px;
}

.shell__aside .brandmark { width: 122px; margin-bottom: 48px; }
.shell__aside h1 { font-size: 2.5rem; line-height: 1.75; margin-bottom: 28px; font-weight: 400; }
.shell__aside p  { color: var(--text); max-width: 38ch; font-size: .95rem; }
.shell__aside .aside-meta {
  margin-top: 48px; padding-top: 28px;
  border-top: 1px solid var(--line-2);
  font-size: .84rem; color: var(--ink-2); line-height: 2.2; letter-spacing: .06em;
}

.app {
  width: 100%;
  max-width: var(--app-w);
  min-height: 100dvh;
  background: var(--white);
  position: relative;
  display: flex;
  flex-direction: column;
}

.app__body { flex: 1 1 auto; padding-bottom: 24px; }
.app--flat .app__body { padding-bottom: 0; }

@media (min-width: 1080px) {
  .shell__aside {
    display: flex; flex-direction: column; justify-content: center;
    position: sticky; top: 0; align-self: flex-start; height: 100dvh;
  }
  .app {
    margin: 40px 0;
    min-height: calc(100dvh - 80px);
    border: 1px solid var(--line);
    box-shadow: var(--sh-3);
  }
}

/* ==========================================================================
   Header
   ========================================================================== */

.appbar {
  position: sticky; top: 0; z-index: 40;
  padding: calc(env(safe-area-inset-top, 0px) + 26px) var(--pad) 20px;
  background: color-mix(in srgb, var(--white) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; gap: 16px;
}
.appbar--plain { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

.appbar__greet { flex: 1 1 auto; min-width: 0; }
.appbar__hello {
  font-size: 1.12rem; font-weight: 500; line-height: 1.5;
  letter-spacing: .02em; margin-top: 6px;
}
.appbar__sub { font-size: .72rem; color: var(--ink-3); letter-spacing: .12em; line-height: 1; }
.appbar__title {
  flex: 1 1 auto; text-align: center;
  font-family: var(--font);
  font-size: 1.1rem; font-weight: 500; letter-spacing: .16em; text-indent: .16em;
}

.avatar {
  width: 42px; height: 42px; flex: 0 0 42px;
  border-radius: var(--r-pill);
  background: var(--paper-3);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: .9rem; font-weight: 500; color: var(--ink-2);
  overflow: hidden;
  transition: border-color .3s var(--ease);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
a.avatar:hover { border-color: var(--ink-4); }
.avatar--sm { width: 34px; height: 34px; flex-basis: 34px; font-size: .78rem; }
.avatar--lg { width: 66px; height: 66px; flex-basis: 66px; font-size: 1.3rem; }

.iconbtn {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.iconbtn:hover  { border-color: var(--ink-3); }
.iconbtn:active { background: var(--paper-3); }
.iconbtn--ghost {
  background: rgba(255, 255, 255, .9); border-color: transparent;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.iconbtn--bare  { background: none; border-color: transparent; color: var(--ink-3); }
.iconbtn--bare:hover { border-color: transparent; color: var(--ink); }
.iconbtn--dark  { background: var(--ink); color: var(--ink-inv); border-color: var(--ink); }
.iconbtn--dark:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.iconbtn--on    { background: var(--ink); color: var(--ink-inv); border-color: var(--ink); }

/* ==========================================================================
   会員コード（QR）
   ========================================================================== */

.membercode {
  text-align: center;
  padding: 12px 0 8px;
}
.membercode__frame {
  width: 142px; height: 142px;
  margin: 0 auto;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.membercode__frame svg { width: 100%; height: 100%; display: block; }
.membercode__no {
  margin-top: 18px;
  /* 会員番号は読み違えないよう、本文と同じサンセリフの等幅数字で */
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-size: 1.24rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-indent: .22em;
  line-height: 1;
  color: var(--ink);
}

/* ==========================================================================
   Search
   ========================================================================== */

.searchbar { display: flex; gap: 10px; padding: 0 var(--pad) 4px; }

.searchbar__field {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 0 2px 12px; height: 44px;
  background: none;
  border: 0; border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  transition: border-color .3s var(--ease);
}
.searchbar__field:focus-within { border-bottom-color: var(--ink); }
.searchbar__field input {
  flex: 1 1 auto; min-width: 0;
  border: 0; background: none; outline: none;
  font-size: .9rem; color: var(--ink); letter-spacing: .04em;
}
.searchbar__field input::placeholder { color: var(--ink-3); }
.searchbar__field svg { color: var(--ink-3); flex: 0 0 auto; }

/* ==========================================================================
   Sections / chips
   ========================================================================== */

.section { padding: 0 var(--pad); }
.section + .section { margin-top: var(--gap); }

.section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 22px;
}
.section__title {
  font-family: var(--font);
  font-size: 1.22rem; font-weight: 500; letter-spacing: .1em;
  color: var(--ink); line-height: 1.5;
}
.section__link {
  font-size: .72rem; color: var(--ink-3); white-space: nowrap; letter-spacing: .1em;
  transition: color .25s var(--ease);
}
.section__link:hover { color: var(--ink); }

.rail {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 2px var(--pad) 4px;
  margin: 0 calc(var(--pad) * -1);
  /* scroll-snap は padding を無視して先頭要素を端に吸着させてしまうため、
     スナップ位置にも同じ余白を持たせて本文と左端を揃えます。 */
  scroll-padding-left: var(--pad);
  scroll-padding-right: var(--pad);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: 0 0 auto; }

.chip {
  display: inline-flex; align-items: center;
  height: 34px; padding: 0 4px;
  background: none; border: 0;
  border-bottom: 1px solid transparent;
  color: var(--ink-3);
  font-size: .82rem; font-weight: 400; letter-spacing: .08em;
  white-space: nowrap; cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.chip + .chip { margin-left: 10px; }
.chip:hover { color: var(--ink-2); }
.chip[aria-current="true"], .chip--on {
  color: var(--ink); border-bottom-color: var(--ink);
}

/* ==========================================================================
   Hero card
   ========================================================================== */

.herocard {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  isolation: isolate;
  display: block;
}
.herocard img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.herocard:hover img { transform: scale(1.04); }
.herocard::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12, 20, 31, .78) 0%, rgba(12, 20, 31, .12) 52%, transparent 76%);
}
.herocard__top {
  position: absolute; top: 18px; right: 18px; left: 18px; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
}
.herocard__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 26px 26px 28px;
  color: #fff;
}
.herocard__eyebrow {
  font-family: var(--font);
  font-size: .66rem; letter-spacing: .34em; text-transform: uppercase;
  opacity: .72; margin-bottom: 10px;
}
.herocard__title {
  font-family: var(--font);
  font-size: 1.42rem; font-weight: 500; letter-spacing: .06em; line-height: 1.6;
}
.herocard__meta {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  margin-top: 12px; font-size: .8rem; opacity: 1; letter-spacing: .08em;
}

.floatcta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 18px;
  padding: 0 4px 16px;
  border-bottom: 1px solid var(--line-2);
  font-size: .84rem; letter-spacing: .1em; color: var(--ink);
  transition: border-color .3s var(--ease);
}
.floatcta:hover { border-bottom-color: var(--ink); }
.floatcta__go { color: var(--ink-3); display: grid; place-items: center; transition: transform .3s var(--ease); }
.floatcta:hover .floatcta__go { transform: translateX(4px); color: var(--ink); }
.herocard-wrap { position: relative; }

/* ==========================================================================
   Program card
   ========================================================================== */

.pcard {
  width: 210px;
  background: none;
  border: 0;
  display: flex; flex-direction: column;
}
.pcard__media {
  position: relative; height: 260px; flex: 0 0 260px;
  background: var(--paper-3);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.pcard__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__fav { position: absolute; top: 12px; right: 12px; }
.pcard__body { padding: 16px 2px 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; }
.pcard__title { font-size: .92rem; font-weight: 500; letter-spacing: .04em; line-height: 1.6; }
.pcard__meta {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: auto; padding-top: 4px;
}
/* 所要時間・運動強度：薄いネイビー地のピルに太字で載せ、ひと目で読めるようにする */
.pcard__stat {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 30px; padding: 0 12px 0 10px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--ink);
  font-size: .86rem; line-height: 1; letter-spacing: .04em;
  white-space: nowrap;
}
.pcard__stat .ldi { opacity: .75; flex: 0 0 auto; }
.pcard__stat b { font-weight: 700; font-size: .95rem; }
.pcard__stat small { font-size: .72rem; font-weight: 500; color: var(--ink-3); margin-left: 1px; letter-spacing: .06em; }
/* 運動強度は段階ごとに色味を変え、「しっかり」が最も濃く見えるようにする */
.pcard__stat--level1 { background: var(--success-soft); border-color: #cfe1d6; color: var(--success); }
.pcard__stat--level3 { background: var(--ink); border-color: var(--ink); color: #fff; }
.pcard__stat--level3 .ldi { opacity: 1; }

.pcard--wide { width: 100%; flex-direction: row; align-items: stretch; gap: 18px; }
.pcard--wide .pcard__media { width: 108px; height: 108px; flex: 0 0 108px; }
.pcard--wide .pcard__body  { padding: 2px 0; justify-content: center; }

/* ==========================================================================
   Card / list
   ========================================================================== */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
}
.card + .card { margin-top: 12px; }
.row > .card + .card, .rail > .card + .card { margin-top: 0; }
.card--flush { padding: 0; overflow: hidden; }
.card--tint  { background: var(--paper-2); border-color: var(--line); }
.card--blue  { background: var(--accent-soft); border-color: transparent; }

.stack   { display: flex; flex-direction: column; gap: 12px; }
.row     { display: flex; align-items: center; gap: 14px; }
.row--between { justify-content: space-between; }
.grow    { flex: 1 1 auto; min-width: 0; }
.muted   { color: var(--ink-3); }
.small   { font-size: .82rem; }
.tiny    { font-size: .8rem; letter-spacing: .06em; }
.strong  { font-weight: 500; }
.center  { text-align: center; }
.nowrap  { white-space: nowrap; }
.mt-sm { margin-top: 10px; } .mt-md { margin-top: 20px; } .mt-lg { margin-top: 36px; }

.divider { height: 1px; background: var(--line); border: 0; margin: 20px 0; }

/* ==========================================================================
   Badges — 面ではなく文字で見せる
   ========================================================================== */

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .74rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3);
  background: none; padding: 0; height: auto;
}
.badge--blue    { color: var(--accent); }
.badge--sand    { color: var(--ink-2); }
.badge--dark    { color: var(--ink); font-weight: 500; }
.badge--ok      { color: var(--success); }
.badge--warn    { color: #8a6520; }
.badge--danger  { color: var(--danger); }
.badge--ghost   {
  color: var(--ink); background: rgba(255,255,255,.92);
  padding: 6px 12px; border-radius: var(--r-pill);
  backdrop-filter: blur(8px); letter-spacing: .12em;
}
.badge--outline {
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  padding: 5px 11px; border-radius: var(--r-pill);
  letter-spacing: .1em;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 32px;
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--ink); color: var(--ink-inv);
  font-size: .88rem; font-weight: 500; letter-spacing: .14em;
  cursor: pointer; text-align: center;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), opacity .3s var(--ease);
}
.btn:hover  { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active { opacity: .88; }
.btn[disabled], .btn.is-disabled { opacity: .35; pointer-events: none; }

.btn--block { width: 100%; }
.btn--sand  { background: var(--ink); color: var(--ink-inv); border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--quiet { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn--quiet:hover { background: transparent; border-color: var(--ink-3); color: var(--ink); }
.btn--danger { background: transparent; color: var(--danger); border-color: var(--line-2); }
.btn--danger:hover { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .76rem; letter-spacing: .1em; }
.btn--line { background: var(--line-green); color: #fff; border-color: var(--line-green); }
.btn--line:hover { background: #05b34c; border-color: #05b34c; }
.btn--outline-light {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.4);
}
.btn--outline-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.7); }

.stickybar {
  position: sticky; z-index: 30;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  margin-top: 40px;
  padding: 18px var(--pad) 24px;
  background: linear-gradient(to top, var(--white) 72%, transparent);
}
.app--flat .stickybar { bottom: 0; }

/* ==========================================================================
   Bottom navigation — 白地にヘアライン
   ========================================================================== */

.bottomnav {
  position: sticky; z-index: 50;
  bottom: 0;
  width: 100%;
  margin: 0;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  align-items: center;
  background: color-mix(in srgb, var(--white) 94%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}

.bottomnav__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  height: 100%; min-width: 44px;
  color: var(--ink-3);
  font-size: .76rem; letter-spacing: .04em; font-weight: 500;
  transition: color .25s var(--ease);
}
.bottomnav__item:hover { color: var(--ink-2); }
.bottomnav__item[aria-current="page"] { color: var(--text); font-weight: 600; }
.bottomnav__icon { display: grid; place-items: center; transition: transform .3s var(--ease); }
.bottomnav__item[aria-current="page"] .bottomnav__icon { transform: translateY(-1px); }

/* ==========================================================================
   Detail sheet
   ========================================================================== */

.detail__hero { position: relative; height: 52dvh; min-height: 320px; background: var(--paper-3); }
.detail__hero img { width: 100%; height: 100%; object-fit: cover; }
.detail__nav {
  position: absolute; top: calc(env(safe-area-inset-top, 0px) + 20px); left: 18px; right: 18px; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
}

.sheet {
  position: relative; z-index: 2;
  margin-top: -28px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--white);
  padding: 36px var(--pad) 0;
}

.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad) 6px; }
.tabs::-webkit-scrollbar { display: none; }

/* ---- 所要時間・定員・強度（罫線だけで区切る） ------------------------ */

.specs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 32px 0 0; padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.specs__item { text-align: center; padding: 0 8px; }
.specs__item + .specs__item { border-left: 1px solid var(--line); }
.specs dt {
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 8px;
}
.specs dd {
  margin: 0;
  font-family: var(--font);
  font-size: 1.5rem; font-weight: 500; letter-spacing: .06em; line-height: 1.2;
  color: var(--ink);
}
.specs dd span { font-size: .72rem; margin-left: 3px; letter-spacing: .04em; }

/* ---- 日付マーク ------------------------------------------------------ */

.daymark {
  text-align: center; min-width: 54px;
  padding-right: 18px; border-right: 1px solid var(--line);
}
.daymark__dow, .daymark__mon {
  display: block; font-size: .72rem; color: var(--ink-3); letter-spacing: .12em; line-height: 1.6;
}
.daymark__day {
  display: block;
  font-family: var(--font);
  font-size: 1.85rem; font-weight: 500; line-height: 1.2; letter-spacing: .04em;
}

/* ---- 罫線だけのリンク一覧 -------------------------------------------- */

.linklist { border-top: 1px solid var(--line); }
.linklist__item {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 2px;
  border-bottom: 1px solid var(--line);
  font-size: .88rem; letter-spacing: .04em;
  transition: padding-left .3s var(--ease);
}
.linklist__item:hover { padding-left: 6px; }
.linklist__sub {
  display: block; font-size: .72rem; color: var(--ink-3);
  letter-spacing: .04em; margin-top: 2px;
}

/* ---- 当日の流れ ------------------------------------------------------ */

.timeline { display: flex; flex-direction: column; }

.tl-item {
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  overflow: hidden;
}
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-item summary {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 2px; cursor: pointer; list-style: none;
}
.tl-item summary::-webkit-details-marker { display: none; }
.tl-item__no {
  flex: 0 0 auto;
  font-family: var(--font);
  font-size: .92rem; letter-spacing: .1em;
  color: var(--ink-3);
  transition: color .3s var(--ease);
}
.tl-item[open] .tl-item__no { color: var(--ink); }
.tl-item__label {
  font-family: var(--font);
  font-size: .6rem; letter-spacing: .3em; color: var(--ink-4); text-transform: uppercase;
}
.tl-item__title { font-size: .9rem; font-weight: 500; letter-spacing: .04em; margin-top: 2px; }
.tl-item__chev  { color: var(--ink-4); transition: transform .3s var(--ease); flex: 0 0 auto; }
.tl-item[open] .tl-item__chev { transform: rotate(180deg); color: var(--ink-2); }
.tl-item__body {
  padding: 0 2px 22px 58px; font-size: .9rem; color: var(--ink-2);
  animation: fadein .35s var(--ease);
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   Slot / reservation
   ========================================================================== */

.daygroup { margin-bottom: 34px; }
.daygroup__head {
  display: flex; align-items: baseline; gap: 12px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.daygroup__date {
  font-family: var(--font);
  font-size: 1.06rem; font-weight: 500; letter-spacing: .08em;
}
.daygroup__dow { font-size: .72rem; color: var(--ink-3); letter-spacing: .1em; }
.daygroup__dow--sat { color: var(--accent); }
.daygroup__dow--sun { color: var(--danger); }

.slot {
  display: flex; align-items: center; gap: 18px;
  background: none;
  border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 20px 2px;
  transition: opacity .3s var(--ease);
}
.slot:hover { background: none; }
.slot--full, .slot--closed { opacity: .4; pointer-events: none; }
.slot--mine { }
.slot__part {
  width: 62px; flex: 0 0 62px;
  border-right: 1px solid var(--line);
  padding-right: 14px;
}
.slot__part b { display: block; font-size: .92rem; font-weight: 500; letter-spacing: .06em; }
.slot__time { font-size: .76rem; color: var(--ink-3); letter-spacing: .04em; line-height: 1.7; }

.meter { height: 2px; border-radius: 0; background: var(--line); overflow: hidden; margin-top: 10px; max-width: 180px; }
.meter > span { display: block; height: 100%; background: var(--ink-3); transition: width .5s var(--ease); }
.meter--tight > span { background: var(--ink-2); }
.meter--full  > span { background: var(--danger); }

/* ==========================================================================
   Forms
   ========================================================================== */

.field { margin-bottom: 28px; }
.field__label {
  display: block; font-size: .76rem; font-weight: 500;
  color: var(--ink-3); margin-bottom: 10px; letter-spacing: .18em; text-transform: uppercase;
}
.field__hint { font-size: .78rem; color: var(--ink-3); margin-top: 8px; letter-spacing: .04em; }

.input, .select, .textarea {
  width: 100%;
  min-height: 48px; padding: 12px 2px;
  background: none;
  border: 0; border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  color: var(--ink); font-size: .92rem; font-family: inherit; letter-spacing: .04em;
  transition: border-color .3s var(--ease);
  outline: none;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.9; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2398a3b1' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center;
  padding-right: 28px;
}
.input:focus, .select:focus, .textarea:focus { border-bottom-color: var(--ink); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-bottom-color: var(--danger); }
.error { color: var(--danger); font-size: .8rem; margin-top: 8px; letter-spacing: .04em; }

.check {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 2px;
  background: none;
  border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
}
.check input { width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--ink); flex: 0 0 auto; }
.check__text { font-size: .86rem; letter-spacing: .04em; }

/* ==========================================================================
   Flash
   ========================================================================== */

.flash {
  margin: 0 var(--pad) 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: .8rem; letter-spacing: .04em;
  display: flex; gap: 12px; align-items: flex-start;
  animation: fadein .4s var(--ease);
}
.flash--success { color: var(--success); border-color: var(--success-soft); }
.flash--error   { color: var(--danger);  border-color: var(--danger-soft); }

/* ==========================================================================
   Empty state
   ========================================================================== */

.empty { text-align: center; padding: 72px 24px; color: var(--ink-3); }
.empty__icon {
  width: 56px; height: 56px; margin: 0 auto 24px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  color: var(--ink-3);
  display: grid; place-items: center;
}
.empty h3 { font-size: .95rem; color: var(--ink); margin-bottom: 10px; font-weight: 500; letter-spacing: .06em; }
.empty p  { font-size: .8rem; max-width: 30ch; margin-inline: auto; line-height: 2; }

/* ==========================================================================
   Login
   ========================================================================== */

.login { min-height: 100dvh; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.login__media { position: absolute; inset: 0; }
.login__media img { width: 100%; height: 100%; object-fit: cover; }
.login__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(14,22,34,.30) 0%, rgba(14,22,34,.62) 34%, rgba(15,23,35,.93) 68%, rgba(13,20,31,.99) 100%);
}
.login__inner {
  position: relative; z-index: 2;
  margin-top: auto;
  padding: 56px var(--pad) calc(48px + env(safe-area-inset-bottom, 0px));
  color: #fff;
}
.login__logo   { width: 146px; margin: 0 0 34px -10px; filter: brightness(0) invert(1); opacity: .96; }
.login__eyebrow{ color: rgba(255,255,255,.85); margin-bottom: 18px; }
.login__title  { font-size: 1.9rem; line-height: 1.85; margin-bottom: 18px; font-weight: 400; }
.login__lead   { font-size: .9rem; opacity: 1; margin-bottom: 40px; max-width: 30ch; line-height: 2.1; }
.login__rule   { height: 1px; border: 0; margin: 36px 0 20px; background: rgba(255,255,255,.18); }
.login__note   { font-size: .8rem; opacity: .95; line-height: 2.1; letter-spacing: .04em; }
.login__note a { border-bottom: 1px solid rgba(255,255,255,.7); }

.setupcard {
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-sm);
  padding: 20px 22px;
  font-size: .78rem;
  line-height: 2;
}
.setupcard h2 { font-size: .82rem; font-weight: 500; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; letter-spacing: .06em; }
.setupcard ol { margin: 10px 0 0; padding-left: 1.3em; color: rgba(255,255,255,.8); }
.setupcard li { margin-bottom: 6px; }
.setupcard code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em; background: rgba(0,0,0,.32);
  border-radius: 3px; padding: 2px 6px; word-break: break-all;
}

/* ==========================================================================
   会員証
   ========================================================================== */

/* 会員証は、深い色に光沢を重ねた「金属板」のような質感にします。
   ・複数のグラデーションを重ねて、面に艶と奥行きを出す
   ・::before で斜めのハイライトを走らせ、ときどきキラッと光らせる
   ・::after は上辺と縁のエッジライト（メタリックな縁取り） */
.memcard {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg);
  padding: 30px 28px;
  color: #fff;
  background:
    /* 右上からの柔らかな照り返し */
    radial-gradient(120% 90% at 82% 4%, rgba(255, 255, 255, .20) 0%, rgba(255, 255, 255, 0) 46%),
    /* 左下の落ち込み */
    radial-gradient(90% 80% at 6% 100%, rgba(0, 0, 0, .34) 0%, rgba(0, 0, 0, 0) 58%),
    /* 面の艶（斜めに走る明暗） */
    linear-gradient(118deg,
      #24374f 0%,
      #35506f 26%,
      #1d2c40 48%,
      #2b415c 68%,
      #16212f 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .18) inset,
    0 18px 40px -18px rgba(20, 32, 47, .55);
}

/* 斜めに走るハイライト（キラッ） */
.memcard::before {
  content: "";
  position: absolute; top: -60%; bottom: -60%; left: -60%;
  width: 48%;
  z-index: 0;
  pointer-events: none;
  transform: rotate(18deg) translateX(0);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, .06) 34%,
    rgba(255, 255, 255, .38) 50%,
    rgba(255, 255, 255, .06) 66%,
    rgba(255, 255, 255, 0) 100%);
  filter: blur(3px);
  /* linear にしておくと、キーフレームの % がそのまま帯の位置になります。
     全体 7 秒のうち、最初の約 1.5 秒で横切り、残りは休み。 */
  animation: memcard-shine 7s linear 1.6s infinite;
}

@keyframes memcard-shine {
  0%   { transform: rotate(18deg) translateX(0);    opacity: 0; }
  3%   { opacity: .95; }
  19%  { opacity: .95; }
  22%  { transform: rotate(18deg) translateX(380%); opacity: 0; }
  100% { transform: rotate(18deg) translateX(380%); opacity: 0; }
}

/* 縁のエッジライト */
.memcard::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid transparent;
  background:
    linear-gradient(160deg,
      rgba(255, 255, 255, .34) 0%,
      rgba(255, 255, 255, .04) 26%,
      rgba(255, 255, 255, 0) 55%,
      rgba(255, 255, 255, .10) 100%) border-box;
  -webkit-mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

/* カード内の要素は光沢レイヤーより前面に */
.memcard > * { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .memcard::before { animation: none; opacity: 0; }
}
.memcard__no {
  /* 会員番号はセリフの古典数字だと 1 と I が紛らわしいため、本文と同じ書体で */
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-size: 1.2rem; letter-spacing: .22em; font-weight: 500;
  color: #fff;
}
/* 銀の箔押しのような質感（未対応ブラウザでは白のまま） */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .memcard__no {
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 42%, #c3d2e2 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.memcard__label {
  font-family: var(--font);
  font-size: .68rem; letter-spacing: .32em; text-transform: uppercase;
  /* シャンパンゴールドの箔文字 */
  color: #dcc79c;
  opacity: .92;
}

/* ==========================================================================
   施設情報（ホーム最下部）— 写真を敷いた全幅パネル
   ========================================================================== */

.facility {
  position: relative;
  margin-top: var(--gap);
  padding: 46px var(--pad) 40px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.facility__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
/* 写真が明るいので、しっかりめの覆い。上を薄く、下を濃くして文字を守ります */
.facility::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom,
      rgba(14, 22, 34, .74) 0%,
      rgba(14, 22, 34, .82) 42%,
      rgba(12, 19, 29, .93) 100%);
}

.facility__mark { margin-bottom: 20px; opacity: .9; }
.facility__name {
  margin: 0;
  font-family: var(--font);
  font-size: 1.34rem; font-weight: 500;
  letter-spacing: .22em; text-indent: .22em;
}
.facility__slogan {
  margin: 12px 0 0;
  font-size: .92rem; line-height: 2; opacity: .8;
  max-width: 22ch;
}

.facility__links { margin-top: 30px; border-top: 1px solid rgba(255, 255, 255, .18); }
.facility__row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  font-size: .84rem; letter-spacing: .04em;
  color: rgba(255, 255, 255, .92);
  transition: padding-left .3s var(--ease), color .3s var(--ease);
}
.facility__row:hover { padding-left: 6px; color: #fff; }
.facility__row .ico { opacity: .7; flex: 0 0 auto; }

.facility__company {
  margin: 24px 0 0;
  font-size: .72rem; letter-spacing: .12em; opacity: .55;
}

/* ==========================================================================
   Admin
   ========================================================================== */

.adm { min-height: 100dvh; background: var(--cream-deep); }
.adm__bar {
  position: sticky; top: 0; z-index: 30;
  background: var(--ink); color: var(--ink-inv);
  padding: 14px 28px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.adm__brand {
  font-family: var(--font);
  font-weight: 500; letter-spacing: .24em; margin-right: 10px; font-size: 1.02rem;
}
.adm__nav { display: flex; gap: 2px; flex-wrap: wrap; flex: 1 1 auto; }
.adm__nav a {
  padding: 8px 15px; border-radius: var(--r-xs);
  font-size: .8rem; color: rgba(255,255,255,.68); letter-spacing: .06em;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.adm__nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.adm__nav a[aria-current="page"] { background: rgba(255,255,255,.14); color: #fff; }
.adm__main { max-width: 1180px; margin: 0 auto; padding: 40px 28px 80px; }

.adm h1 { font-size: 1.34rem; margin-bottom: 6px; font-weight: 500; letter-spacing: .06em; }
.adm .lead { color: var(--ink-3); font-size: .82rem; margin-bottom: 32px; letter-spacing: .04em; }

.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 40px; }
.stat { background: var(--white); padding: 22px 24px; }
.stat__label { font-size: .68rem; color: var(--ink-3); letter-spacing: .16em; text-transform: uppercase; }
.stat__value { font-family: var(--font); font-size: 2rem; font-weight: 500; letter-spacing: .04em; line-height: 1.5; }

.tablewrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 640px; }
table.tbl th, table.tbl td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl th { background: var(--paper-2); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; white-space: nowrap; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover { background: var(--paper-2); }

.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 28px; }
.formgrid .field--full { grid-column: 1 / -1; }

.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 28px; font-size: .8rem; }
.pager a, .pager span {
  min-width: 38px; height: 38px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-xs); background: var(--white); border: 1px solid var(--line);
  letter-spacing: .06em;
}
.pager a:hover { border-color: var(--ink-3); }
.pager .is-active { background: var(--ink); color: var(--ink-inv); border-color: var(--ink); }
.pager .is-disabled { opacity: .35; }

/* ==========================================================================
   Motion
   ========================================================================== */

.reveal { animation: reveal .7s var(--ease) both; }
.reveal:nth-child(2) { animation-delay: .05s; }
.reveal:nth-child(3) { animation-delay: .1s; }
.reveal:nth-child(4) { animation-delay: .15s; }
.reveal:nth-child(5) { animation-delay: .2s; }
@keyframes reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Loose Drawing icons — 線と塗りを別マスクにして currentColor で着色
   （素材: https://loosedrawing.com/  色は --ink #1b2a3f）
   ========================================================================== */

.ldi {
  --ldi-size: 20px;
  position: relative;
  display: inline-block;
  width: var(--ldi-size); height: var(--ldi-size);
  flex: 0 0 auto;
  vertical-align: -.22em;
  color: var(--ink);
}
.ldi::before, .ldi::after {
  content: "";
  position: absolute; inset: 0;
  background: currentColor;
  -webkit-mask: var(--ldi-m) center / contain no-repeat;
          mask: var(--ldi-m) center / contain no-repeat;
}
.ldi::before { --ldi-m: var(--ldi-f); opacity: .22; }   /* 塗り（薄く） */
.ldi::after  { --ldi-m: var(--ldi-o); }                 /* 線 */
.ldi--filled::before { opacity: .55; }                  /* お気に入り ON など */

/* ボタン内・濃色面・ログイン画面（白文字）では周囲の文字色に合わせる */
.btn .ldi, .iconbtn--dark .ldi, .iconbtn--on .ldi, .login .ldi, .memcard .ldi,
.facility .ldi, .herocard .ldi, .flash .ldi { color: currentColor; }
.searchbar__field .ldi { color: var(--ink-3); }
.flash--error .ldi   { color: var(--danger); }
.flash--success .ldi { color: var(--success); }

/* Bottom nav: 非アクティブは同色を薄く */
.bottomnav__item .ldi { color: var(--ink); opacity: .6; transition: opacity .25s var(--ease); }
.bottomnav__item:hover .ldi { opacity: .75; }
.bottomnav__item[aria-current="page"] .ldi { opacity: 1; }

/* Aside の施設情報 */
.aside-meta__row { display: flex; align-items: flex-start; gap: 8px; }
.aside-meta__row + .aside-meta__row { margin-top: 6px; }
.aside-meta__row .ldi { margin-top: .05em; }

/* ==========================================================================
   Member card — 共通コンポーネント（ホームでは QR 付き）
   ========================================================================== */

.memcard__brand { position: absolute; top: 20px; right: 20px; z-index: 1; text-align: right; opacity: .55; }
.memcard__foot  { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.memcard__meta  { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.memcard--qr .memcard__meta { padding-bottom: 2px; }
.memcard:not(.memcard--qr) .memcard__meta { flex-direction: row; justify-content: space-between; align-items: flex-end; flex: 1; }
.memcard:not(.memcard--qr) .memcard__meta > div:last-child { text-align: center; }

.memcard__qr {
  flex: 0 0 auto;
  width: 124px; height: 124px;
  padding: 9px;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: 0 0 0 4px rgba(255,255,255,.12);
}
.memcard__qr svg { width: 100%; height: 100%; display: block; }
@media (max-width: 360px) {
  .memcard__qr { width: 104px; height: 104px; }
}

/* ==========================================================================
   Photos — カテゴリータイル / カテゴリーバナー / 予約のサムネイル
   ========================================================================== */

.cattiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cattile {
  position: relative; display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  background: var(--paper-3);
}
.cattile--wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.cattile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.cattile:hover img { transform: scale(1.04); }
.cattile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12, 20, 31, .84) 0%, rgba(12, 20, 31, .28) 52%, transparent 78%);
}
.cattile__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 14px 16px 15px; color: #fff;
  display: flex; flex-direction: column; gap: 3px;
}
.cattile__label { font-size: 1.08rem; font-weight: 600; letter-spacing: .06em; line-height: 1.4; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.cattile__lead  { font-size: .76rem; letter-spacing: .04em; line-height: 1.6; opacity: .95; }

.catbanner {
  position: relative; border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  aspect-ratio: 5 / 2; background: var(--paper-3);
}
.catbanner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.catbanner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12, 20, 31, .82) 0%, rgba(12, 20, 31, .2) 60%, transparent 85%);
}
.catbanner__body  { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 2; color: #fff; }
.catbanner__title { font-size: 1.3rem; font-weight: 600; letter-spacing: .08em; line-height: 1.4; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.catbanner__lead  { font-size: .8rem; letter-spacing: .04em; margin-top: 4px; opacity: .95; }

.slot__thumb { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 12px; object-fit: cover; background: var(--paper-3); }
.slot--full .slot__thumb, .slot--closed .slot__thumb { filter: grayscale(1); }
.rsv__thumb  { width: 60px; height: 60px; flex: 0 0 60px; border-radius: 14px; object-fit: cover; background: var(--paper-3); }

/* ホームの「次のご予約」は 日付 + 写真 + 本文 + 矢印 で横幅が足りなくなるため、
   日付まわりを詰めて本文に幅を渡し、時間帯と講座名が途中で折り返さないようにします。 */
.card--blue .daymark { min-width: 44px; padding-right: 12px; }
.card--blue .rsv__thumb { width: 52px; height: 52px; flex-basis: 52px; border-radius: 10px; }
.card--blue .daymark__day { font-size: 1.5rem; }
.card--blue .strong { font-size: .92rem; letter-spacing: .01em; white-space: nowrap; }
.card--blue .small  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 予約枠：写真を入れた分、横幅を詰める */
.slot { gap: 14px; }
.slot__thumb { width: 52px; height: 52px; flex-basis: 52px; }
.slot__part { width: 58px; flex-basis: 58px; padding-right: 12px; }
.slot .badge { white-space: nowrap; }

/* 予約枠：写真 + 「午前 9:00 - 12:00」を 1 行にまとめた読みやすい構成 */
.slot { gap: 16px; }
.slot__thumb { width: 64px; height: 64px; flex-basis: 64px; }
.slot__when { display: flex; align-items: baseline; gap: 8px; font-size: .82rem; letter-spacing: .04em; color: var(--ink-2); margin-bottom: 2px; }
.slot__when b { font-size: .95rem; font-weight: 600; color: var(--text); letter-spacing: .06em; }
.slot__title { font-size: .98rem; font-weight: 600; line-height: 1.5; }

/* Bottom nav：選択中のメニューをはっきり目立たせる（高齢の方向け） */
.bottomnav__item { position: relative; }
.bottomnav__icon {
  width: 52px; height: 34px;
  border-radius: var(--r-pill);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.bottomnav__item[aria-current="page"] { color: var(--ink); font-weight: 700; }
.bottomnav__item[aria-current="page"] .bottomnav__icon { background: color-mix(in srgb, var(--ink) 14%, #fff); transform: none; }
.bottomnav__item[aria-current="page"]::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 30px; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--ink);
}
.bottomnav__item .ldi { opacity: .55; }
.bottomnav__item[aria-current="page"] .ldi { opacity: 1; }
/* 選択中：ネイビーの丸に白抜きアイコン */
.bottomnav__item[aria-current="page"] .bottomnav__icon { background: var(--ink); }
.bottomnav__item[aria-current="page"] .ldi { color: #fff; opacity: 1; }
.bottomnav__item[aria-current="page"] .ldi::before { opacity: .35; }
/* 上部バーは丸と重なるため外す */
.bottomnav__item[aria-current="page"]::before { content: none; }

/* Bottom nav：マイページに LINE のプロフィール画像を丸く表示 */
.bottomnav__avatar {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover; background: var(--paper-3);
  border: 2px solid transparent;
  box-shadow: 0 0 0 1px var(--line-2);
  transition: box-shadow .25s var(--ease);
}
.bottomnav__item--avatar[aria-current="page"] .bottomnav__icon { background: var(--ink); }
.bottomnav__item--avatar[aria-current="page"] .bottomnav__avatar { box-shadow: 0 0 0 2px #fff; }
.bottomnav__item--avatar .bottomnav__icon > span[hidden] { display: none !important; }
.bottomnav__item--avatar .bottomnav__icon > span:not([hidden]) { display: contents; }

/* ==========================================================================
   マイ予約：これからのご予約カード
   日付 → 時間帯 → 写真＋プログラム名 の順に上から読めるようにし、本文に横幅を渡す
   ========================================================================== */
.rsv { padding: 20px 20px 18px; }
.rsv--today { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.rsv__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rsv__date { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; line-height: 1.2; }
.rsv__date b { font-size: 1.35rem; font-weight: 700; letter-spacing: .04em; color: var(--text); }
.rsv__dow { font-size: .9rem; color: var(--ink-3); }
.rsv__dow--sat { color: var(--accent); }
.rsv__dow--sun { color: var(--danger); }
.rsv__today {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; margin-left: 2px;
  border-radius: var(--r-pill); background: var(--ink); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
}
.rsv__head .badge { white-space: nowrap; flex: 0 0 auto; }
.rsv__time {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  font-size: .95rem; color: var(--ink-2); letter-spacing: .03em;
}
.rsv__time .ldi { opacity: .7; }
.rsv__time b { font-weight: 700; color: var(--text); }
.rsv__main { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.rsv .rsv__thumb { width: 68px; height: 68px; flex-basis: 68px; border-radius: 12px; }
.rsv__title { font-size: 1.02rem; font-weight: 600; line-height: 1.5; letter-spacing: .02em; }
.rsv__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.rsv__tag {
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 10px; border-radius: var(--r-pill);
  font-size: .76rem; letter-spacing: .06em;
  color: var(--ink-3); background: var(--paper-3);
}
.rsv__tag--on { color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); font-weight: 600; }
.rsv__note {
  margin-top: 12px; padding: 10px 12px; border-radius: var(--r-md);
  background: var(--paper-2); border: 1px dashed var(--line-2);
  font-size: .84rem; color: var(--ink-2); line-height: 1.7;
}
.rsv__note-label { font-weight: 600; color: var(--ink-3); margin-right: 8px; font-size: .74rem; letter-spacing: .1em; }
.rsv__actions { display: flex; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.rsv__actions .btn--sm { padding: 0 10px; white-space: nowrap; }

/* ==========================================================================
   予約カレンダー：月間グリッド（○ 空きあり／△ 残りわずか／× 満席／予約 ご予約済み）
   ========================================================================== */
.mcal { padding: 16px 14px 14px; }
.mcal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.mcal__title { font-size: 1.08rem; font-weight: 600; letter-spacing: .08em; }
.mcal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mcal__dow { text-align: center; font-size: .72rem; letter-spacing: .1em; color: var(--ink-3); padding: 4px 0 6px; }
.mcal__dow--sun { color: var(--danger); }
.mcal__dow--sat { color: var(--accent); }
.mcal__cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 54px; border-radius: var(--r-md);
  border: 1px solid transparent;
  color: var(--text);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.mcal__cell--blank { visibility: hidden; }
.mcal__day { font-size: .98rem; font-weight: 600; line-height: 1; letter-spacing: .02em; }
.mcal__cell--sun .mcal__day { color: var(--danger); }
.mcal__cell--sat .mcal__day { color: var(--accent); }
.mcal__mark { font-size: .82rem; font-weight: 700; line-height: 1; color: var(--success); letter-spacing: 0; }
.mcal__cell--few  .mcal__mark { color: #8a6520; }
.mcal__cell--full .mcal__mark, .mcal__mark--x { color: var(--danger); }
.mcal__mark--empty { color: var(--line-2); font-weight: 400; }
.mcal__cell--past, .mcal__cell--none { color: var(--ink-4); }
.mcal__cell--past .mcal__day, .mcal__cell--none .mcal__day { color: var(--ink-4); font-weight: 500; }
.mcal__cell--past .mcal__mark { color: var(--line-2); }
.mcal__cell--full { background: var(--paper-2); }
a.mcal__cell { background: var(--accent-soft); border-color: var(--accent-line); }
a.mcal__cell:hover { border-color: var(--ink); }
a.mcal__cell--full { background: var(--paper-2); border-color: var(--line); }
.mcal__cell--today { box-shadow: inset 0 0 0 2px var(--ink); }
.mcal__cell--selected { background: var(--ink) !important; border-color: var(--ink) !important; }
.mcal__cell--selected .mcal__day, .mcal__cell--selected .mcal__mark { color: #fff !important; }
.mcal__mark--mine {
  display: inline-flex; align-items: center; gap: 2px;
  height: 18px; padding: 0 6px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff; font-size: .66rem; letter-spacing: .06em;
}
.mcal__mark--mine .ldi { color: #fff; }
.mcal__cell--selected .mcal__mark--mine { background: #fff; color: var(--ink) !important; }
.mcal__cell--selected .mcal__mark--mine .ldi { color: var(--ink); }
.mcal__legend {
  list-style: none; margin: 12px 0 0; padding: 12px 4px 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  font-size: .78rem; color: var(--ink-2); letter-spacing: .04em;
}
.mcal__legend li { display: inline-flex; align-items: center; gap: 6px; }

/* ==========================================================================
   通知ベル（Loose Drawing の bell を黄色で）と通知一覧
   ========================================================================== */

.notibell {
  position: relative;
  width: 42px; height: 42px; flex: 0 0 42px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.notibell:hover { border-color: #e2b322; }
.notibell:active { transform: scale(.96); }
.notibell .ldi { color: #6b4e00; }                       /* 線: 濃い黄土色 */
.notibell .ldi::before { color: #ffc93c; opacity: 1; }   /* 塗り: 黄色 */
.notibell--unread { border-color: #f5d97a; background: #fff8e1; }
.notibell--unread .ldi { animation: notibell-ring 2.2s var(--ease) 1; transform-origin: 50% 8%; }
@keyframes notibell-ring {
  0%, 60%, 100% { transform: rotate(0); }
  10% { transform: rotate(14deg); } 20% { transform: rotate(-12deg); }
  30% { transform: rotate(9deg); }  40% { transform: rotate(-6deg); } 50% { transform: rotate(3deg); }
}
.notibell__count {
  position: absolute; top: -5px; right: -5px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--danger); color: #fff;
  border: 2px solid var(--white);
  font-size: .7rem; font-weight: 600; line-height: 16px; text-align: center;
  letter-spacing: 0;
}

.noti { align-items: flex-start; }
.noti__mark {
  width: 42px; height: 42px; flex: 0 0 42px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: #fff8e1;
}
.noti__mark .ldi { color: #6b4e00; }
.noti__mark .ldi::before { color: #ffc93c; opacity: 1; }
.noti--read .noti__mark { background: var(--paper-3); }
.noti--read .noti__mark .ldi { color: var(--ink-4); }
.noti--read .noti__mark .ldi::before { color: var(--ink-4); opacity: .25; }
.noti__title { font-size: .95rem; font-weight: 500; line-height: 1.5; }
.noti--read .noti__title { font-weight: 400; color: var(--ink-2); }
.noti__excerpt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.noti .ldi:last-child { align-self: center; }

/* 月間カレンダー：記号を大きく、「予約」は 1 行に収める */
.mcal__sub { font-size: .74rem; color: var(--ink-3); letter-spacing: .04em; white-space: nowrap; }
.mcal__mark { font-size: 1.05rem; }
.mcal__mark--empty { font-size: .8rem; }
.mcal__mark--mine {
  font-size: .68rem; font-weight: 700; height: 19px; padding: 0 7px;
  white-space: nowrap; letter-spacing: .04em; gap: 0;
}

/* Bottom nav：写真は読み込み失敗時に確実に消し、選択中はネイビーのリングで囲む */
.bottomnav__avatar[hidden] { display: none !important; }
.bottomnav__avatar { width: 32px; height: 32px; }
.bottomnav__item--avatar[aria-current="page"] .bottomnav__icon { background: transparent; }
.bottomnav__item--avatar[aria-current="page"] .bottomnav__avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }

/* ==========================================================================
   プロフィール編集：画像の変更（中央の大きなアバターをタップで選択）
   ========================================================================== */

.avatar-pick { text-align: center; margin: 4px 0 22px; }
.avatar-pick__btn {
  position: relative; display: inline-block; cursor: pointer;
  border-radius: var(--r-pill);
  transition: transform .25s var(--ease);
}
.avatar-pick__btn:hover { transform: scale(1.02); }
.avatar-pick__btn:active { transform: scale(.98); }
.avatar-pick__btn:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }
.avatar-pick__img {
  width: 112px; height: 112px; flex-basis: 112px;
  font-size: 2rem;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--line-2), 0 8px 24px rgba(27, 42, 63, .12);
}
.avatar-pick__badge {
  position: absolute; right: 2px; bottom: 2px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--ink); color: var(--ink-inv);
  border: 3px solid var(--white);
}
.avatar-pick__badge .ldi { color: currentColor; }
.avatar-pick .tiny { margin-top: 10px; }
