/* ===================== BRAND TOKENS (from logo) ===================== */
  :root {
    --gold:       #b49157;   /* logo wordmark gold        */
    --gold-deep:  #8f7038;   /* accessible gold for text  */
    --gold-soft:  #f6efe1;
    --gold-line:  #e7dcc4;
    --blue:       #76bfdf;   /* logo hexagon sky blue     */
    --blue-deep:  #3f8fb5;   /* accessible blue           */
    --blue-soft:  #eaf6fc;
    --ink:        #2c2820;   /* warm near-black text      */
    --muted:      #6b6354;
    --paper:      #ffffff;
    --cream:      #fdfbf6;
    --green:      #2f9d57;

    /* geometry: quiet, editorial. pill is for tags only */
    --r-pill: 999px;
    --r-lg: 10px;
    --r-md: 8px;
    --r-sm: 5px;
    --r-img: 4px;

    /* shadows are whispers — separation comes from hairlines */
    --sh-gold: 0 1px 2px rgba(143,112,56,.12);
    --sh-blue: 0 1px 2px rgba(63,143,181,.12);
    --sh-soft: 0 1px 2px rgba(44,40,32,.05);

    --hairline: #e7dcc4;               /* warm rule (gold-line) */
    --hairline-ink: rgba(44,40,32,.14); /* neutral rule */

    --sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
    --body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
    --serif: "Fraunces", "Shippori Mincho", "Hiragino Mincho ProN", serif;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    font-family: var(--body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.9;
    letter-spacing: .02em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  ::selection { background: var(--blue-soft); color: var(--blue-deep); }
  img { max-width: 100%; display: block; }

  h1, h2, h3, h4 { font-feature-settings: "palt" 1; line-height: 1.4; }

  /* ===================== HEX MOTIF (echoes logo "O") ===================== */
  .hexwrap { display: inline-block; line-height: 0; }
  .hexmotif { width: 100%; height: 100%; }

  /* ===================== BUTTONS ===================== */
  .btn {
    font-family: var(--sans); font-weight: 700; font-size: 15px;
    text-decoration: none; cursor: pointer; border: none;
    padding: 14px 28px; border-radius: var(--r-img);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    letter-spacing: .04em;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
    white-space: nowrap;
  }
  .btn svg { width: 17px; height: 17px; }
  .btn.gold { background: var(--gold); color: #fff; }
  .btn.gold:hover { background: var(--gold-deep); }
  .btn.blue { background: var(--blue-deep); color: #fff; }
  .btn.blue:hover { background: #35789a; }
  .btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline-ink); }
  .btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold-deep); background: var(--gold-soft); }
  .btn.paper { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline); }
  .btn.paper:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold-deep); }
  .btn:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; }

  /* ===================== NAV ===================== */
  header.bar {
    position: sticky; top: 0; z-index: 50;
    margin: 0;
    background: rgba(253,251,246,.94);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hairline);
    border-radius: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px clamp(20px, 4vw, 48px);
    transition: transform .5s cubic-bezier(.38,.41,.27,1);
  }
  header.bar.hide { transform: translateY(-100%); }
  .brand { display: flex; align-items: center; gap: 0; text-decoration: none; }
  .brand img { height: 28px; width: auto; }
  nav.menu { display: flex; align-items: center; gap: clamp(4px,1.3vw,20px); }
  nav.menu a {
    text-decoration: none; color: var(--ink); font-weight: 500; font-size: 14px;
    padding: 8px 4px; transition: color .2s ease;
  }
  nav.menu a:not(.cta):hover { color: var(--gold-deep); }
  nav.menu a:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 2px; }
  nav.menu a.cta {
    background: var(--gold); color: #fff; font-weight: 700; font-size: 13.5px;
    padding: 10px 20px; border-radius: var(--r-img); margin-left: 6px;
    letter-spacing: .05em;
    transition: background .2s ease;
  }
  nav.menu a.cta:hover { background: var(--gold-deep); }

  .burger { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
  .burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

  @media (max-width: 1080px) {
    nav.menu {
      position: absolute; top: 100%; left: 0; right: 0;
      flex-direction: column; align-items: stretch; gap: 0;
      background: rgba(253,251,246,.98); backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--hairline);
      padding: 10px clamp(20px,4vw,48px) 18px;
      opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s ease;
    }
    nav.menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
    nav.menu a { padding: 13px 4px; border-bottom: 1px solid var(--hairline); font-size: 15px; }
    nav.menu a:last-of-type { border-bottom: none; }
    nav.menu a.cta { text-align: center; margin: 12px 0 0; border-bottom: none; }
    .burger { display: block; }
    .burger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
    .burger.open span:nth-child(2){ opacity: 0; }
    .burger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  }

  /* ===================== SHELL ===================== */
  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px,5vw,40px); }
  section { padding: clamp(56px,8vw,104px) 0; position: relative; }

  .eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 14px; letter-spacing: .14em;
    color: var(--gold-deep); margin-bottom: 18px;
  }
  .eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--gold); }

  .sec-title { font-family: var(--serif); font-weight: 600; font-size: clamp(24px,3.4vw,36px); line-height: 1.4; letter-spacing: .04em; }
  .sec-sub { color: var(--muted); font-size: clamp(14px,1.6vw,16px); max-width: 62ch; margin-top: 14px; }

  /* ===================== HERO ===================== */
  .hero { padding-top: clamp(48px,7vw,84px); }
  .hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px,5vw,64px); align-items: center; }
  .hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px,5vw,60px); line-height: 1.35; letter-spacing: .03em; }
  .hero h1 .gold { color: var(--gold-deep); }
  .hero h1 .underline { position: relative; white-space: nowrap; }
  .hero h1 .underline::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: 1px;
    background: var(--gold);
  }
  .hero .lead { margin-top: 26px; font-size: clamp(15px,1.7vw,17px); color: var(--muted); max-width: 44ch; }
  .hero .actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
  .hero .trust { margin-top: 30px; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13.5px; }
  .hero .trust .pills { display: none; }

  /* hero visual: real opportunity-card preview (concrete product) */
  .hero-visual { position: relative; }
  .hero-visual::before { content: none; }
  .hero-visual > * { position: relative; z-index: 1; }

  .opp-card {
    background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-md);
    box-shadow: var(--sh-soft); overflow: hidden; text-align: left;
  }
  .opp-card.back { display: none; }
  .opp-card.back .mini-cat { font-family: var(--sans); font-weight: 700; font-size: 12px; color: var(--blue-deep); }
  .opp-card.back h4 { font-family: var(--sans); font-size: 15px; margin-top: 4px; }
  .opp-card.back .mini-meta { font-size: 12px; color: var(--muted); margin-top: 6px; }
  .opp-card.front { position: relative; z-index: 2; max-width: 380px; margin-left: auto; }

  .opp-thumb {
    position: relative; height: 150px;
    background: linear-gradient(135deg, var(--gold) 0%, #c9a96a 55%, var(--blue) 130%);
    display: grid; place-items: center; overflow: hidden;
  }
  .opp-thumb .hexwrap { width: 84px; opacity: .9; }
  .opp-thumb .pill {
    position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.94);
    color: var(--gold-deep); font-family: var(--sans); font-weight: 700; font-size: 11.5px;
    padding: 4px 12px; border-radius: 3px; display: flex; align-items: center; gap: 7px;
  }
  .opp-thumb .pill::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
  .opp-body { padding: 20px 22px 22px; }
  .opp-body .cat { font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: .08em; color: var(--blue-deep); }
  .opp-body h3 { font-family: var(--sans); font-size: 19px; margin: 6px 0 14px; }
  .opp-meta { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13.5px; margin-bottom: 8px; }
  .opp-meta svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
  .opp-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hairline); }
  .opp-people { display: flex; align-items: center; gap: 10px; }
  .opp-people .av { display: none; }
  .opp-people b { font-family: var(--sans); font-size: 13px; color: var(--ink); }
  .opp-people b em { color: var(--gold-deep); font-style: normal; }
  .opp-go { font-family: var(--sans); font-weight: 700; font-size: 13.5px; color: #fff; background: var(--gold); padding: 9px 16px; border-radius: var(--r-img); display: inline-flex; align-items: center; gap: 6px; }
  .opp-go svg { width: 14px; height: 14px; }

  .float-chip { display: none; }

  @media (max-width: 880px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 440px; margin: 18px auto 0; }
    .opp-card.front { margin: 0 auto; }
  }

  /* ===================== LOGO TICKER / VALUES ===================== */
  .values { background: var(--cream); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
  .values .wrap { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: space-between; }
  .value-item { display: flex; align-items: center; gap: 12px; font-family: var(--sans); font-weight: 700; font-size: clamp(14px,1.6vw,16px); letter-spacing: .04em; }
  .value-item .hexwrap { width: 24px; }

  /* ===================== ABOUT ===================== */
  .about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(34px,5vw,70px); align-items: center; }
  .about-art {
    position: relative; aspect-ratio: 4/5; border-radius: var(--r-img); overflow: hidden;
    background: linear-gradient(160deg, var(--gold-soft), var(--blue-soft));
    display: grid; place-items: center;
  }
  .about-art .hexwrap { width: 56%; opacity: .9; }
  .about-art .badge {
    position: absolute; bottom: 16px; left: 16px; right: 16px;
    background: rgba(255,255,255,.94);
    border-radius: var(--r-img); padding: 16px 20px; border: 1px solid var(--hairline);
    font-family: var(--sans); font-size: 14px;
  }
  .about-art .badge b { color: var(--gold-deep); }
  .about p { color: var(--muted); font-size: clamp(15px,1.6vw,16px); margin-top: 18px; }
  .about p .hl { color: var(--ink); font-weight: 700; }
  .about p .hl-blue { color: var(--blue-deep); font-weight: 700; }

  .stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin-top: 40px; border-top: 1px solid var(--hairline); }
  .stat { background: transparent; border: none; border-radius: 0; padding: 22px 18px 0; box-shadow: none; }
  .stat + .stat { border-left: 1px solid var(--hairline); }
  .stat .big { font-family: var(--serif); font-weight: 600; font-size: clamp(28px,3.6vw,40px); color: var(--gold-deep); line-height: 1.1; font-variant-numeric: tabular-nums; }
  .stat .lab { font-size: 12.5px; color: var(--muted); margin-top: 8px; font-weight: 500; }
  @media (max-width: 880px){ .about-grid{ grid-template-columns:1fr; } .stats{ grid-template-columns: repeat(2,1fr);} .stat:nth-child(3){ border-left:none; } }

  /* ===================== HOW (steps) ===================== */
  .how { background: var(--cream); }
  .steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin-top: 48px; border-top: 1px solid var(--hairline); }
  .step {
    background: transparent; border: none; border-radius: 0;
    padding: 30px 28px 6px 0; box-shadow: none;
  }
  .step + .step { border-left: 1px solid var(--hairline); padding-left: 28px; }
  .step:hover { transform: none; box-shadow: none; }
  .step .num {
    width: auto; height: auto; border-radius: 0; display: block;
    font-family: var(--serif); font-weight: 600; font-size: 34px; color: var(--gold);
    background: none; box-shadow: none; margin-bottom: 14px; line-height: 1;
  }
  .step:nth-child(2) .num { background: none; color: var(--blue-deep); box-shadow: none; }
  .step:nth-child(3) .num { background: none; color: var(--gold-deep); }
  .step h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: .04em; }
  .step p { color: var(--muted); font-size: 14.5px; }
  @media (max-width: 880px){
    .steps { grid-template-columns: 1fr; border-top: none; }
    .step { border-top: 1px solid var(--hairline); padding: 24px 0 18px; }
    .step + .step { border-left: none; padding-left: 0; }
  }

  /* ===================== BOOKING ===================== */
  .cards3 { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(16px,2vw,24px); margin-top: 48px; }
  .pcard {
    position: relative; background: #fff; border: 1px solid var(--hairline);
    border-radius: var(--r-md); padding: 30px 28px 28px; box-shadow: none;
    display: flex; flex-direction: column; transition: border-color .25s ease, box-shadow .3s ease;
    overflow: hidden;
  }
  .pcard::before { content: none; }
  .pcard:hover { transform: none; border-color: var(--gold); box-shadow: 0 4px 16px rgba(44,40,32,.08); }
  .pcard .tag {
    align-self: flex-start; font-family: var(--sans); font-weight: 700; font-size: 11.5px;
    letter-spacing: .12em; padding: 4px 12px; border-radius: 3px; margin-bottom: 18px;
    background: transparent; color: var(--gold-deep); border: 1px solid var(--gold);
  }
  .pcard.p2 .tag { background: transparent; color: var(--blue-deep); border-color: var(--blue-deep); }
  .pcard h3 { font-size: 21px; margin-bottom: 10px; letter-spacing: .04em; }
  .pcard > p { color: var(--muted); font-size: 14.5px; flex-grow: 1; }
  .pcard ul { list-style: none; margin: 20px 0 24px; display: grid; gap: 10px; }
  .pcard li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 500; }
  .pcard li svg { width: 18px; height: 18px; color: var(--blue-deep); flex-shrink: 0; margin-top: 3px; }
  @media (max-width: 880px){ .steps,.cards3{ grid-template-columns:1fr; } }

  /* ===================== MEMBERS ===================== */
  .mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: clamp(16px,2vw,26px); margin-top: 48px; }
  .mcard { text-align: center; }
  .mcard .ava {
    aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
    font-family: var(--sans); font-weight: 700; font-size: 32px; color: #fff;
    cursor: default; position: relative; overflow: hidden;
  }
  .mcard .ava::after { content: none; }
  .mcard:hover .ava { transform: none; }
  .mcard .name { font-family: var(--sans); font-weight: 700; margin-top: 13px; font-size: 15px; }
  .mcard .role { font-size: 12.5px; color: var(--gold-deep); font-weight: 500; }

  /* ===================== NEWS ===================== */
  .news { background: var(--cream); }
  .news-list { margin-top: 36px; display: grid; gap: 0; border-top: 1px solid var(--hairline); }
  .news-row {
    display: grid; grid-template-columns: 110px 96px 1fr auto; gap: 20px; align-items: center;
    background: transparent; border: none; border-bottom: 1px solid var(--hairline); border-radius: 0;
    padding: 20px 6px; text-decoration: none; color: var(--ink);
    box-shadow: none; transition: background .2s ease;
  }
  .news-row:hover { transform: none; box-shadow: none; background: rgba(180,145,87,.05); }
  .news-row:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 2px; }
  .news-row .date { font-family: var(--sans); font-weight: 500; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
  .news-row .cat { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-align: center; padding: 3px 0; border-radius: 3px; border: 1px solid currentColor; background: transparent !important; }
  .news-row .cat.ev { color: var(--gold-deep); }
  .news-row .cat.rp { color: var(--blue-deep); }
  .news-row .cat.no { color: #5c6650; }
  .news-row .cat.bl { color: #8a6d2f; }
  .news-row .ttl { font-weight: 500; font-size: clamp(14.5px,1.6vw,16px); }
  .news-row:hover .ttl { color: var(--gold-deep); }
  .news-row .arr { color: var(--gold); }
  .news-row .arr svg { width: 18px; height: 18px; }
  @media (max-width: 680px){ .news-row{ grid-template-columns: 92px 1fr; row-gap: 6px; } .news-row .cat{ width:max-content; padding:2px 10px;} .news-row .arr{ display:none; } }

  /* ===================== FAQ ===================== */
  .acc { margin-top: 36px; display: grid; gap: 0; border-top: 1px solid var(--hairline); }
  .acc details {
    background: transparent; border: none; border-bottom: 1px solid var(--hairline); border-radius: 0;
    box-shadow: none; overflow: hidden;
  }
  .acc details[open] { box-shadow: none; }
  .acc summary {
    list-style: none; cursor: pointer; padding: 22px 6px; font-family: var(--sans);
    font-weight: 700; font-size: clamp(15px,1.6vw,16.5px); display: flex; align-items: center; gap: 16px;
    letter-spacing: .03em; transition: color .2s ease;
  }
  .acc summary:hover { color: var(--gold-deep); }
  .acc summary::-webkit-details-marker { display: none; }
  .acc summary:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: -3px; }
  .acc summary .q {
    width: auto; height: auto; border-radius: 0; background: none; color: var(--gold);
    display: block; font-family: var(--serif); font-weight: 600; font-style: italic;
    flex-shrink: 0; font-size: 19px;
  }
  .acc summary .plus { margin-left: auto; width: 20px; height: 20px; position: relative; flex-shrink: 0; }
  .acc summary .plus::before, .acc summary .plus::after { content:""; position:absolute; background: var(--gold); transition: transform .28s ease; }
  .acc summary .plus::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
  .acc summary .plus::after  { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
  .acc details[open] summary .plus::after { transform: translateX(-50%) scaleY(0); }
  .acc .ans { padding: 0 6px 26px 46px; color: var(--muted); font-size: 14.5px; max-width: 70ch; }
  @media (max-width:680px){ .acc .ans{ padding-left: 6px; } }

  /* ===================== CONTACT ===================== */
  .contact-card {
    background: #fff;
    border: 1px solid var(--hairline); border-radius: var(--r-md);
    box-shadow: none; padding: clamp(30px,5vw,56px);
    display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px,5vw,64px); align-items: start;
  }
  .contact-card .mail {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
    font-family: var(--serif); font-weight: 600; font-size: clamp(16px,2vw,20px);
    color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
  }
  .contact-card .mail svg { width: 20px; height: 20px; }
  .contact-card .mail:hover { color: var(--gold); }
  form { display: grid; gap: 16px; }
  .field { display: grid; gap: 7px; }
  .field label { font-family: var(--sans); font-weight: 700; font-size: 13.5px; letter-spacing: .04em; }
  .field label .req { color: var(--gold-deep); }
  .field input, .field textarea, .field select {
    font-family: var(--body); font-size: 16px; padding: 13px 15px;
    background: #fff; color: var(--ink);
    border: 1px solid var(--hairline-ink); border-radius: var(--r-img); outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
  }
  .field input:focus, .field textarea:focus, .field select:focus {
    border-color: var(--blue-deep); box-shadow: 0 0 0 3px var(--blue-soft);
  }
  .field textarea { resize: vertical; min-height: 130px; }
  .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .form-note { font-size: 13px; color: var(--muted); }
  .ok-msg {
    display: none; align-items: center; gap: 12px;
    background: var(--blue-soft); color: var(--blue-deep);
    border-radius: var(--r-img); padding: 15px 18px; font-family: var(--sans); font-weight: 700;
  }
  .ok-msg.show { display: flex; }
  .ok-msg svg { width: 20px; height: 20px; flex-shrink: 0; }
  @media (max-width: 820px){ .contact-card{ grid-template-columns: 1fr; } .row2{ grid-template-columns: 1fr; } }

  /* ===================== FOOTER ===================== */
  footer { background: var(--cream); border-top: 1px solid var(--hairline); padding: clamp(40px,5vw,60px) 0 24px; }
  .foot-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px 40px; }
  .foot-brand img { height: 28px; }
  .foot-brand p { color: var(--muted); font-size: 13px; line-height: 1.8; margin-top: 14px; max-width: 38ch; }
  .foot-brand p:last-child { font-size: 12px; margin-top: 10px; }
  .foot-col h4 { font-family: var(--sans); font-weight: 700; font-size: 11.5px; letter-spacing: .18em; color: var(--gold-deep); margin-bottom: 12px; }
  .foot-col a { display: block; text-decoration: none; color: var(--ink); font-size: 13.5px; padding: 4px 0; transition: color .2s ease; }
  .foot-col a:hover { color: var(--gold-deep); }
  .foot-bottom {
    margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--hairline);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    font-size: 12px; color: var(--muted);
  }
  @media (max-width: 760px){ .foot-top{ grid-template-columns: 1fr 1fr; gap: 22px 28px; } .foot-brand{ grid-column: 1 / -1; } }

  /* ===================== REVEAL ===================== */
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
  }

  /* ===================== MULTI-PAGE ADDITIONS ===================== */
  /* page banner (sub-page hero) */
  .page-banner {
    position: relative; overflow: hidden;
    padding: clamp(44px,6vw,76px) 0 clamp(38px,5vw,60px);
    background: var(--cream);
    border-bottom: 1px solid var(--hairline);
  }
  .page-banner .crumbs { font-size: 12.5px; color: var(--muted); font-weight: 500; font-family: var(--sans); margin-bottom: 16px; letter-spacing: .04em; }
  .page-banner .crumbs a { color: var(--gold-deep); text-decoration: none; }
  .page-banner .crumbs a:hover { text-decoration: underline; }
  .page-banner h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px,3.8vw,40px); line-height: 1.4; letter-spacing: .04em; }
  .page-banner .lead { color: var(--muted); font-size: clamp(14px,1.6vw,16px); max-width: 62ch; margin-top: 14px; }
  .page-banner .hexwrap { display: none; }

  main { display: block; }

  /* ===== member profile cards (detailed) ===== */
  .profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: clamp(18px,2.4vw,26px); }
  .profile {
    background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-md);
    box-shadow: none; overflow: hidden; display: flex; flex-direction: column;
    transition: border-color .25s ease, box-shadow .3s ease;
  }
  .profile:hover { transform: none; border-color: var(--gold); box-shadow: 0 4px 16px rgba(44,40,32,.08); }
  .profile .top { display: flex; align-items: center; gap: 16px; padding: 24px 24px 0; }
  .profile .ava {
    width: 68px; height: 68px; border-radius: 50%; flex-shrink: 0; position: relative; overflow: hidden;
    display: grid; place-items: center; font-family: var(--sans); font-weight: 700; font-size: 26px; color: #fff;
  }
  .profile .ava::after { content: none; }
  .profile .who .name { font-family: var(--sans); font-weight: 700; font-size: 18px; }
  .profile .who .role { font-size: 12.5px; font-weight: 700; color: var(--gold-deep); margin-top: 2px; }
  .profile .who .role.lead { color: var(--blue-deep); }
  .profile .body { padding: 16px 24px 8px; color: var(--muted); font-size: 14px; flex-grow: 1; }
  .profile .tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 24px 24px; }
  .profile .tags span { font-family: var(--sans); font-weight: 500; font-size: 11.5px; padding: 3px 11px; border-radius: 3px; background: transparent; color: var(--blue-deep); border: 1px solid var(--blue-deep); }
  .profile .tags span.g { background: transparent; color: var(--gold-deep); border-color: var(--gold); }

  /* ===== generic feature/activity grid ===== */
  .feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px,1fr)); gap: clamp(18px,2.4vw,26px); }
  .feature {
    background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden;
    box-shadow: none; display: flex; flex-direction: column; transition: border-color .25s ease, box-shadow .3s ease;
  }
  .feature:hover { transform: none; border-color: var(--gold); box-shadow: 0 4px 16px rgba(44,40,32,.08); }
  .feature .ph { height: 150px; display: grid; place-items: center; position: relative; }
  .feature .ph .hexwrap { width: 74px; opacity: .92; }
  .feature .ph .tag { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.94); color: var(--gold-deep); font-family: var(--sans); font-weight: 700; font-size: 11.5px; padding: 4px 11px; border-radius: 3px; }
  .feature .ct { padding: 20px 22px 24px; display: flex; flex-direction: column; flex-grow: 1; }
  .feature .ct h3 { font-family: var(--sans); font-size: 18px; margin-bottom: 8px; letter-spacing: .03em; }
  .feature .ct .meta { font-size: 12.5px; color: var(--blue-deep); font-weight: 700; margin-bottom: 10px; }
  .feature .ct p { color: var(--muted); font-size: 14px; flex-grow: 1; }
  .ph-g { background: var(--gold-soft); border-bottom: 1px solid var(--hairline); }
  .ph-b { background: var(--blue-soft); border-bottom: 1px solid var(--hairline); }
  .ph-m { background: var(--cream); border-bottom: 1px solid var(--hairline); }
  .ph-g .hexwrap, .ph-b .hexwrap, .ph-m .hexwrap { background: transparent !important; box-shadow: none !important; }

  /* ===== blog/news posts ===== */
  .posts { display: grid; gap: 0; border-top: 1px solid var(--hairline); }
  .post {
    display: grid; grid-template-columns: 150px 1fr; gap: 0; background: transparent;
    border: none; border-bottom: 1px solid var(--hairline); border-radius: 0; overflow: hidden;
    box-shadow: none; text-decoration: none; color: var(--ink);
    transition: background .2s ease;
  }
  .post:hover { transform: none; box-shadow: none; background: rgba(180,145,87,.05); }
  .post .thumb { display: grid; place-items: center; }
  .post .thumb .hexwrap { width: 52px; opacity: .9; }
  .post .pbody { padding: 24px 26px; }
  .post .pmeta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
  .post .pmeta .date { font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
  .post .pmeta .cat { font-family: var(--sans); font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 3px; border: 1px solid currentColor; background: transparent !important; }
  .post .pmeta .cat.ev { color: var(--gold-deep); }
  .post .pmeta .cat.rp { color: var(--blue-deep); }
  .post .pmeta .cat.no { color: #5c6650; }
  .post .pmeta .cat.bl { color: #8a6d2f; }
  .post h3 { font-family: var(--sans); font-size: clamp(16px,1.9vw,19px); margin-bottom: 8px; letter-spacing: .03em; }
  .post:hover h3 { color: var(--gold-deep); }
  .post p { color: var(--muted); font-size: 14px; }
  @media(max-width:560px){ .post{ grid-template-columns: 1fr; } .post .thumb{ height: 90px; } }

  /* ===== testimonials ===== */
  .quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: clamp(18px,2.4vw,26px); }
  .quote {
    background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-md);
    box-shadow: none; padding: 30px 28px; position: relative;
  }
  .quote::before { content:"“"; font-family: var(--serif); font-size: 58px; color: var(--gold); opacity: .4; position: absolute; top: 8px; left: 20px; line-height: 1; }
  .quote p { font-size: 15px; line-height: 1.95; margin: 20px 0 22px; position: relative; }
  .quote .who { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--hairline); padding-top: 16px; }
  .quote .who .ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--sans); font-weight: 700; color: #fff; }
  .quote .who .nm { font-family: var(--sans); font-weight: 700; font-size: 14px; }
  .quote .who .nm small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }

  /* ===== legal article ===== */
  .legal { max-width: 800px; }
  .legal .intro { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
  .legal section.art { margin-bottom: 28px; }
  .legal h2 { font-family: var(--sans); font-size: clamp(17px,2vw,20px); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--hairline); display: flex; align-items: baseline; gap: 12px; letter-spacing: .04em; }
  .legal h2 .no { color: var(--gold); font-family: var(--serif); font-weight: 600; }
  .legal p, .legal li { color: var(--ink); font-size: 14.5px; }
  .legal ol, .legal ul { padding-left: 22px; margin-top: 6px; }
  .legal li { margin-bottom: 8px; }
  .legal .note { background: var(--cream); border: 1px solid var(--hairline); border-radius: var(--r-img); padding: 16px 20px; color: var(--muted); font-size: 13.5px; }
  .legal .updated { color: var(--muted); font-size: 13px; margin-top: 30px; }

  /* ===== big CTA band ===== */
  .cta-band { background: var(--cream); color: var(--ink); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: clamp(36px,5vw,60px); text-align: center; box-shadow: none; }
  .cta-band h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(22px,3vw,32px); letter-spacing: .04em; }
  .cta-band p { margin: 14px auto 26px; max-width: 52ch; font-size: clamp(14px,1.6vw,16px); color: var(--muted); }
  .cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

  /* nav active link */
  nav.menu a.active { color: var(--gold-deep); font-weight: 700; }

  /* ===================== ANIME.JS INTRO (pre-hide; html.anim set in <head>) ===================== */
  html.anim .reveal { transition: none; }
  html.anim .hero .eyebrow,
  html.anim .hero h1,
  html.anim .hero .lead,
  html.anim .hero .actions,
  html.anim .hero .trust,
  html.anim .hero-visual .opp-card,
  html.anim .hero-visual .float-chip,
  html.anim .page-banner .crumbs,
  html.anim .page-banner h1,
  html.anim .page-banner .lead,
  html.anim .page-banner .hexwrap { opacity: 0; }
  @media (prefers-reduced-motion: reduce) {
    html.anim .reveal,
    html.anim .hero .eyebrow, html.anim .hero h1, html.anim .hero .lead,
    html.anim .hero .actions, html.anim .hero .trust,
    html.anim .hero-visual .opp-card, html.anim .hero-visual .float-chip,
    html.anim .page-banner .crumbs, html.anim .page-banner h1,
    html.anim .page-banner .lead, html.anim .page-banner .hexwrap { opacity: 1 !important; }
  }

  /* ===================== BLUE-LOGO HEX BADGE (on colored thumbnails) ===================== */
  .opp-thumb .hexwrap,
  .feature .ph .hexwrap,
  .post .thumb .hexwrap {
    background: rgba(255,255,255,.94);
    border-radius: 50%;
    padding: 14px;
  }
  .post .thumb .hexwrap { padding: 10px; }
  .opp-thumb .hexwrap svg,
  .feature .ph .hexwrap svg,
  .post .thumb .hexwrap svg { display: block; }

  /* ===================== RESERVE (booking form) ===================== */
  .stepper { display: flex; align-items: center; gap: 10px; margin: 0 auto 38px; max-width: 620px; justify-content: center; flex-wrap: wrap; }
  .stepper .st { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-weight: 700; font-size: 13.5px; color: var(--muted); }
  .stepper .st .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--hairline-ink); color: var(--muted); transition: all .3s ease; font-variant-numeric: tabular-nums; }
  .stepper .st.active .dot { background: var(--gold); border-color: var(--gold); color: #fff; }
  .stepper .st.active { color: var(--ink); }
  .stepper .st.done .dot { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
  .stepper .bar { width: 34px; height: 1px; background: var(--hairline-ink); }

  .panel { display: none; }
  .panel.active { display: block; animation: panelIn .4s ease; }
  @keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

  .form-card { background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-md); box-shadow: none; padding: clamp(26px,4vw,44px); max-width: 720px; margin: 0 auto; }
  .form-card h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(20px,2.4vw,26px); margin-bottom: 6px; letter-spacing: .04em; }
  .form-card .hint { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
  .cond { display: none; }
  .cond.show { display: grid; }

  /* document scroll box */
  .doc-wrap { position: relative; }
  .doc-scroll {
    max-height: 360px; overflow-y: auto; border: 1px solid var(--hairline); border-radius: var(--r-img);
    padding: 22px 24px; background: var(--cream); scroll-behavior: smooth;
  }
  .doc-scroll h3 { font-family: var(--sans); font-size: 16px; margin: 18px 0 6px; color: var(--ink); }
  .doc-scroll h3:first-child { margin-top: 0; }
  .doc-scroll p, .doc-scroll li { font-size: 13.5px; color: var(--ink); line-height: 1.85; }
  .doc-scroll ul { padding-left: 20px; margin: 4px 0; }
  .doc-scroll .end-flag { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--hairline); font-weight: 700; color: var(--gold-deep); font-family: var(--sans); text-align: center; }
  .scroll-hint {
    display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px;
    font-size: 13px; font-weight: 700; font-family: var(--sans); color: var(--gold-deep);
    transition: opacity .3s ease;
  }
  .scroll-hint svg { width: 15px; height: 15px; }
  .scroll-hint.read { color: var(--green); }

  .gate { opacity: .5; pointer-events: none; transition: opacity .3s ease; margin-top: 22px; }
  .gate.unlocked { opacity: 1; pointer-events: auto; }

  .agree-row { display: flex; align-items: flex-start; gap: 12px; background: var(--blue-soft); border-radius: var(--r-img); padding: 16px 18px; }
  .agree-row input[type=checkbox] { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue-deep); flex-shrink: 0; cursor: pointer; }
  .agree-row label { font-family: var(--sans); font-weight: 700; font-size: 14.5px; cursor: pointer; }

  /* signature pad */
  .sig-label { font-family: var(--sans); font-weight: 700; font-size: 13.5px; margin: 22px 0 8px; display: block; }
  .sig-label .req { color: var(--gold-deep); }
  .sigpad { position: relative; border: 1px solid var(--hairline-ink); border-radius: var(--r-img); background: #fff; touch-action: none; overflow: hidden; }
  .sigpad canvas { display: block; width: 100%; height: 180px; cursor: crosshair; }
  .sigpad .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #c9bfa8; font-family: var(--sans); font-weight: 700; pointer-events: none; transition: opacity .2s; }
  .sigpad .baseline { position: absolute; left: 24px; right: 24px; bottom: 46px; border-bottom: 1px dashed var(--hairline-ink); pointer-events: none; }
  .sig-tools { display: flex; justify-content: flex-end; margin-top: 8px; }
  .sig-clear { background: none; border: none; cursor: pointer; font-family: var(--sans); font-weight: 700; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 3px; }
  .sig-clear:hover { color: var(--gold-deep); background: var(--gold-soft); }
  .sig-clear svg { width: 15px; height: 15px; }

  .btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none !important; transform: none !important; }
  .form-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

  .review { background: var(--cream); border: 1px solid var(--hairline); border-radius: var(--r-img); padding: 18px 22px; margin-bottom: 22px; }
  .review dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14px; }
  .review dt { font-family: var(--sans); font-weight: 700; color: var(--muted); }
  .review dd { color: var(--ink); }

  .done-card { text-align: center; max-width: 620px; margin: 0 auto; background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-md); box-shadow: none; padding: clamp(36px,5vw,60px); }
  .done-card .check { width: 72px; height: 72px; border-radius: 50%; background: var(--green); display: grid; place-items: center; margin: 0 auto 24px; }
  .done-card .check svg { width: 36px; height: 36px; color: #fff; }
  .done-card h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(22px,2.8vw,30px); margin-bottom: 12px; letter-spacing: .04em; }
  .done-card p { color: var(--muted); }
  .done-card .sig-show { margin: 22px auto 0; max-width: 280px; border: 1px solid var(--hairline); border-radius: var(--r-img); padding: 6px; }

  /* ===================== OPENING CARD FOOTER ===================== */
  .op-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hairline); flex-wrap: wrap; }
  .op-slots { font-family: var(--sans); font-weight: 700; font-size: 13px; color: var(--blue-deep); background: transparent; border: 1px solid var(--blue-deep); padding: 4px 12px; border-radius: 3px; }
  .op-foot .btn { padding: 10px 18px; font-size: 14px; }

  /* ===================== SIGNATURE: tabs + typed ===================== */
  .sig-tabs { display: inline-flex; background: var(--cream); border: 1px solid var(--hairline); border-radius: var(--r-img); padding: 3px; gap: 3px; margin-bottom: 12px; }
  .sig-tab { font-family: var(--sans); font-weight: 700; font-size: 13.5px; border: none; background: none; cursor: pointer; padding: 8px 16px; border-radius: 3px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; transition: all .2s ease; }
  .sig-tab svg { width: 15px; height: 15px; }
  .sig-tab.active { background: var(--gold); color: #fff; }
  .sig-mode[hidden] { display: none; }

  .sig-typed-input { font-family: var(--body); font-size: 16px; padding: 13px 15px; width: 100%; background: #fff; border: 1px solid var(--hairline-ink); border-radius: var(--r-img); outline: none; transition: border-color .2s, box-shadow .2s; }
  .sig-typed-input:focus { border-color: var(--blue-deep); box-shadow: 0 0 0 3px var(--blue-soft); }
  .sig-typed-preview { margin-top: 12px; min-height: 92px; display: grid; place-items: center; border: 1px dashed var(--hairline-ink); border-radius: var(--r-img); background: #fff; padding: 10px 16px; }
  .sig-typed-preview span { font-family: "Yomogi", cursive; font-size: clamp(30px,6vw,44px); color: #1c3a4a; line-height: 1.1; }
  .sig-typed-preview .ph2 { font-family: var(--sans); font-size: 14px; color: #c9bfa8; font-weight: 700; }

  .done-card .sig-show.typed { display: grid; place-items: center; padding: 16px; }
  .done-card .sig-show.typed span { font-family: "Yomogi", cursive; font-size: 36px; color: #1c3a4a; }

  /* ===================== AUTH / MYPAGE ===================== */
  .auth-card { max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-md); box-shadow: none; padding: clamp(28px,4vw,42px); }
  .auth-card h1, .auth-card h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(21px,2.6vw,26px); margin-bottom: 6px; letter-spacing: .04em; }
  .auth-card .hint { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
  .auth-card form { display: grid; gap: 16px; }
  .auth-card .switch { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--muted); text-align: center; }
  .auth-card .switch a { color: var(--gold-deep); font-weight: 700; text-decoration: none; }
  .auth-card .switch a:hover { text-decoration: underline; }
  .auth-err { display: none; background: #fdecec; color: #b3261e; border: 1px solid #f3b6b1; border-radius: var(--r-img); padding: 12px 16px; font-size: 14px; font-weight: 700; font-family: var(--sans); }
  .auth-err.show { display: block; }

  /* segmented control (個人/団体) */
  .seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); border: 1px solid var(--hairline); border-radius: var(--r-img); padding: 3px; gap: 3px; }
  .seg button { font-family: var(--sans); font-weight: 700; font-size: 14px; border: none; background: none; cursor: pointer; padding: 11px 8px; border-radius: 3px; color: var(--muted); transition: all .2s ease; }
  .seg button.active { background: var(--gold); color: #fff; }
  .seg.org-active button.active { background: var(--blue-deep); color: #fff; }

  /* dashboard */
  .dash-head { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--hairline); }
  .dash-head .avatar-lg { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--sans); font-weight: 700; font-size: 26px; color: #fff; flex-shrink: 0; position: relative; overflow: hidden; }
  .dash-head .avatar-lg::after { content: none; }
  .dash-head .who h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(21px,2.8vw,28px); line-height: 1.3; letter-spacing: .04em; }
  .dash-head .who .role { font-family: var(--sans); font-weight: 500; font-size: 12.5px; color: var(--gold-deep); margin-top: 2px; letter-spacing: .06em; }
  .dash-head .role.org { color: var(--blue-deep); }

  .dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px,2vw,24px); align-items: start; }
  @media (max-width: 760px) { .dash-grid { grid-template-columns: 1fr; } }
  .dash-card { background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-md); box-shadow: none; padding: 26px 28px; }
  .dash-card h3 { font-family: var(--sans); font-size: 16px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; letter-spacing: .05em; }
  .dash-card h3 svg { width: 18px; height: 18px; color: var(--gold); }
  .dash-card .full { grid-column: 1 / -1; }
  .kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 14.5px; }
  .kv dt { font-family: var(--sans); font-weight: 700; color: var(--muted); }
  .kv dd { color: var(--ink); word-break: break-all; }
  .empty { text-align: center; color: var(--muted); padding: 26px 10px; font-size: 14px; }
  .empty svg { width: 36px; height: 36px; color: var(--gold-line); margin-bottom: 10px; }
  .dash-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
  .mini-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
  .mini-stat { background: transparent; border: none; border-radius: 0; padding: 18px 16px; text-align: center; }
  .mini-stat + .mini-stat { border-left: 1px solid var(--hairline); }
  .mini-stat .n { font-family: var(--serif); font-weight: 600; font-size: 28px; color: var(--gold-deep); line-height: 1; font-variant-numeric: tabular-nums; }
  .mini-stat .l { font-size: 12px; color: var(--muted); margin-top: 8px; font-weight: 500; }

  /* ===================== MYPAGE LIST ITEMS ===================== */
  .hist-list { display: grid; gap: 0; border-top: 1px solid var(--hairline); }
  .hist-item { border: none; border-bottom: 1px solid var(--hairline); border-radius: 0; padding: 16px 4px; background: transparent; display: flex; align-items: flex-start; gap: 12px; }
  .hist-item .ic { width: 34px; height: 34px; border-radius: 3px; background: var(--gold-soft); display: grid; place-items: center; flex-shrink: 0; }
  .hist-item .ic svg { width: 18px; height: 18px; color: var(--gold-deep); }
  .hist-item .body { flex-grow: 1; min-width: 0; }
  .hist-item .ttl { font-family: var(--sans); font-weight: 700; font-size: 14.5px; }
  .hist-item .meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
  .hist-item .badge2 { font-family: var(--sans); font-weight: 700; font-size: 11px; padding: 3px 10px; border-radius: 3px; background: transparent; color: var(--blue-deep); border: 1px solid var(--blue-deep); flex-shrink: 0; }
  .hist-item .del { background: none; border: none; cursor: pointer; color: var(--muted); padding: 4px; border-radius: 3px; flex-shrink: 0; }
  .hist-item .del:hover { color: #b3261e; background: #fdecec; }
  .hist-item .del svg { width: 17px; height: 17px; }

  .create-form { display: grid; gap: 12px; margin-top: 6px; padding: 18px; border: 1px dashed var(--hairline-ink); border-radius: var(--r-img); background: var(--cream); }
  .create-form .row2 { gap: 12px; }
  .create-form input, .create-form select, .create-form textarea { font-family: var(--body); font-size: 14.5px; padding: 11px 13px; background: #fff; border: 1px solid var(--hairline-ink); border-radius: var(--r-img); outline: none; }
  .create-form input:focus, .create-form select:focus, .create-form textarea:focus { border-color: var(--blue-deep); box-shadow: 0 0 0 3px var(--blue-soft); }
  .create-form label { font-family: var(--sans); font-weight: 700; font-size: 13px; margin-bottom: 4px; display: block; }
  .create-toggle { margin-top: 4px; }

  /* ===================== FIX: prevent grid input overflow in narrow cards ===================== */
  .row2 { min-width: 0; }
  .row2 > * { min-width: 0; }
  .field input, .field select, .field textarea,
  .create-form input, .create-form select, .create-form textarea { width: 100%; min-width: 0; }

  /* ===================== ADMIN ===================== */
  .admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; border-bottom: 1px solid var(--hairline); padding-bottom: 14px; }
  .admin-tabs button { font-family: var(--sans); font-weight: 700; font-size: 14px; border: 1px solid var(--hairline); background: #fff; cursor: pointer; padding: 9px 18px; border-radius: 3px; color: var(--muted); transition: all .2s ease; }
  .admin-tabs button.active { background: var(--gold); color: #fff; border-color: var(--gold); }
  .admin-panel { display: none; }
  .admin-panel.active { display: block; animation: panelIn .4s ease; }

  .atable { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-img); overflow: hidden; }
  .atable th, .atable td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
  .atable th { font-family: var(--sans); font-size: 12.5px; letter-spacing: .04em; color: var(--muted); background: var(--cream); }
  .atable tr:last-child td { border-bottom: none; }
  .atable .tagp { font-family: var(--sans); font-weight: 700; font-size: 11px; padding: 2px 9px; border-radius: 3px; }
  .tagp.user { background: var(--gold-soft); color: var(--gold-deep); }
  .tagp.org { background: var(--blue-soft); color: var(--blue-deep); }
  .table-wrap { overflow-x: auto; border-radius: var(--r-img); }
  .abtn { font-family: var(--sans); font-weight: 700; font-size: 12.5px; border: none; cursor: pointer; padding: 7px 13px; border-radius: 3px; }
  .abtn.del { background: #fdecec; color: #b3261e; } .abtn.del:hover { background: #f7d6d2; }
  .abtn.go { background: var(--blue-deep); color: #fff; } .abtn.go:hover { filter: brightness(1.05); }
  .admin-empty { text-align: center; color: var(--muted); padding: 30px; background: #fff; border: 1px dashed var(--hairline); border-radius: var(--r-img); }

  /* ===================== CERTIFICATE (A4 portrait / bilingual) ===================== */
  .cert-overlay { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(28,40,50,.6); backdrop-filter: blur(4px); padding: 24px; overflow: auto; }
  .cert-overlay.show { display: grid; place-items: start center; }
  .cert-overlay .cert-stage { width: 100%; max-width: 560px; }
  .cert-tools { position: sticky; top: 0; display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; }
  .certificate {
    background: #fff; width: 100%; aspect-ratio: 210 / 297; margin: 0 auto;
    padding: 7% 8% 6%; position: relative; box-shadow: 0 30px 70px -30px rgba(0,0,0,.5);
    border: 2px solid var(--gold); outline: 5px solid #fff; outline-offset: -12px;
    display: flex; flex-direction: column; align-items: center; color: var(--ink); overflow: hidden;
  }
  .certificate::before { content:""; position:absolute; inset:9px; border:1px solid var(--gold-line); pointer-events:none; }
  .cert-logo { height: 34px; width: auto; margin: 0 auto; display: block; }
  .cert-rankwrap { text-align: center; margin: 2% 0 1%; }
  .cert-rank-badge { width: clamp(86px, 22%, 120px); height: auto; display: block; margin: 0 auto 4px; }
  .cert-rank { font-family: var(--sans); font-weight: 700; font-size: clamp(14px,2.4vw,18px); letter-spacing: .08em; }
  .cert-rank small { display: block; font-family: var(--serif); font-weight: 400; font-size: 10px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
  .cert-title { font-family: var(--serif); font-weight: 600; text-align: center; font-size: clamp(22px,4.4vw,32px); letter-spacing: .12em; margin: 1% 0 2px; }
  .cert-title small { display: block; font-size: 11px; letter-spacing: .22em; color: var(--gold-deep); margin-top: 4px; text-transform: uppercase; }
  .cert-no { text-align: center; font-size: 11px; color: var(--muted); letter-spacing: .12em; }
  .cert-body { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; gap: clamp(10px,2vw,18px); width: 100%; padding: 2% 0; }
  .cert-name { text-align: center; font-family: var(--sans); font-weight: 700; font-size: clamp(22px,4vw,30px); border-bottom: 2px solid var(--ink); padding-bottom: 8px; align-self: center; min-width: 66%; }
  .cert-name small { display:block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing:.14em; margin-bottom: 6px; }
  .cert-text { text-align: center; font-size: clamp(12px,1.7vw,14.5px); line-height: 1.95; }
  .cert-text small { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.6; margin-top: 6px; }
  .cert-detail { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; max-width: 80%; margin: 4px auto 0; font-size: clamp(12px,1.6vw,14px); }
  .cert-detail dt { font-family: var(--sans); font-weight: 700; color: var(--muted); white-space: nowrap; }
  .cert-detail dt small { font-weight: 500; font-size: 9.5px; }
  .cert-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; padding-top: 14px; width: 100%; }
  .cert-foot .issued { font-size: 11.5px; }
  .cert-foot .issuer { text-align: right; font-size: 12px; line-height: 1.7; position: relative; padding-right: 64px; }
  .cert-foot .issuer small { display: block; font-size: 9.5px; color: var(--muted); letter-spacing: .02em; line-height: 1.5; margin-top: 2px; }
  .cert-foot .cert-seal { position: absolute; right: -6px; bottom: -6px; width: 62px; height: 62px; opacity: .92; transform: rotate(-6deg); }

  @media print {
    @page { size: A4 portrait; margin: 0; }
    html, body { background: #fff !important; }
    body * { visibility: hidden !important; }
    .cert-overlay, .cert-overlay * { visibility: visible !important; }
    .cert-overlay { position: absolute; inset: 0; background: #fff; backdrop-filter: none; padding: 0; display: block !important; overflow: visible; }
    .cert-overlay .cert-stage { max-width: none; width: 100%; }
    .cert-tools { display: none !important; }
    .certificate { box-shadow: none; width: 100%; height: 100vh; aspect-ratio: auto; margin: 0; border: 2px solid var(--gold); }
    header.bar, footer { display: none !important; }
  }

  /* ===================== MEMBER PHOTOS ===================== */
  .profile .ava img, .mcard .ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .profile .ava, .mcard .ava { overflow: hidden; }
  .mem-thumb { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--cream); }
  /* 管理コンソールの全面刷新スタイルは admin.css（admin.html からのみ読込）に移管 */

/* ============================================================
   ログイン / 新規登録 モーダル（ポップアップ・白背景）
   ============================================================ */
  .auth-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: clamp(20px, 6vh, 72px) 16px; background: rgba(44, 40, 32, .5); backdrop-filter: blur(4px); }
  .auth-modal.open { display: flex; }
  .auth-modal-box { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: var(--r-md); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .5); padding: clamp(26px, 4vw, 40px); }
  .auth-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 3px; border: 1px solid var(--hairline); background: #fff; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; display: grid; place-items: center; transition: background .15s, color .15s; }
  .auth-x:hover { background: var(--gold-soft); color: var(--gold-deep); }
  .auth-brand { text-align: center; margin-bottom: 18px; }
  .auth-brand img { height: 34px; width: auto; }
  .auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--cream); border: 1px solid var(--hairline); border-radius: var(--r-img); padding: 3px; margin-bottom: 22px; }
  .auth-tabs button { font-family: var(--sans); font-weight: 700; font-size: 14px; border: none; background: none; cursor: pointer; padding: 11px 8px; border-radius: 3px; color: var(--muted); transition: all .2s ease; }
  .auth-tabs button.active { background: var(--gold); color: #fff; }
  .auth-view { display: grid; gap: 16px; }
  .auth-view[hidden] { display: none; }
  .auth-view .btn { justify-content: center; }
  .auth-foot { margin-top: 2px; font-size: 13px; color: var(--muted); text-align: center; }
  .auth-foot a { color: var(--gold-deep); font-weight: 700; text-decoration: none; cursor: pointer; }
  .auth-foot a:hover { text-decoration: underline; }
  .auth-msg { background: var(--blue-soft); color: var(--blue-deep); border: 1px solid #bfe2f1; border-radius: var(--r-img); padding: 14px 16px; font-size: 14px; font-weight: 700; font-family: var(--sans); line-height: 1.75; }
  .auth-msg[hidden] { display: none; }
  .auth-msg a { color: var(--gold-deep); cursor: pointer; text-decoration: underline; }

  /* パスワード要件チェックリスト（満たすと丸が緑に光る） */
  .pw-reqs { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 7px; }
  .pw-reqs li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); transition: color .2s; }
  .pw-reqs .pw-dot { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--hairline-ink); flex-shrink: 0; position: relative; transition: all .2s ease; }
  .pw-reqs li.ok { color: var(--ink); font-weight: 600; }
  .pw-reqs li.ok .pw-dot { background: var(--green); border-color: var(--green); }
  .pw-reqs li.ok .pw-dot::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
