/* 宵待ラボのサイトの見た目（日本語・简体中文・English の3ページで共通。書体だけ各ページの :root で替える） */
  :root {
    --bg: #f8f6fb;
    --surface: #ffffff;
    --ink: #2b2740;
    --muted: #6d6886;
    --line: #e6e2f0;
    --accent: #5b4bb7;
    --amber: #d98a3d;
    --night: #1f1b40;
    --dusk: #2f2a5c;
    --glow: #c77a52;
    --shadow: 0 1px 2px rgba(43, 39, 64, 0.04), 0 12px 32px -12px rgba(43, 39, 64, 0.18);
    --radius: 20px;
    --title-from: #2f2a5c;
    --title-to: #c77a52;
    --font: "M PLUS Rounded 1c", system-ui, sans-serif;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #15132a; --surface: #1f1c37; --ink: #eeeaf8; --muted: #b3aed0; --line: #322d52; --accent: #b0a3ff; --amber: #f0a65c;
      --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 12px 32px -12px rgba(0, 0, 0, 0.5);
      --title-from: #b0a3ff; --title-to: #f0a65c;
    }
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.9; font-feature-settings: "palt"; letter-spacing: 0.02em; word-break: auto-phrase; -webkit-font-smoothing: antialiased; }
  a { color: var(--accent); }
  img { max-width: 100%; display: block; }
  .wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

  /* ヘッダー：トップ画像の上では透明、スクロールしたら白く */
  header { position: fixed; inset: 0 0 auto; z-index: 10; transition: background 0.3s, box-shadow 0.3s; }
  header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
  .logo { color: #fff; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: 0.12em; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
  .logo-mark { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe2b8, var(--amber) 70%); box-shadow: 0 0 12px rgba(240, 166, 92, 0.7); flex: none; }
  header nav { margin-left: auto; }
  header nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; font-size: 14px; }
  header nav a { color: rgba(255, 255, 255, 0.85); text-decoration: none; font-weight: 700; }
  header nav a:hover { color: #fff; }
  header.solid { background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
  header.solid .logo { color: var(--ink); }
  header.solid nav a { color: var(--muted); }
  header.solid nav a:hover { color: var(--accent); }
  /* 言語の切り替え（日本語・简体中文・English） */
  .langs { display: flex; gap: 12px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
  .langs a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
  .langs a:hover { color: #fff; }
  .langs span { color: #ffd6a8; }
  header.solid .langs a { color: var(--muted); }
  header.solid .langs a:hover { color: var(--accent); }
  header.solid .langs span { color: var(--amber); }
  /* 「简体中文」は日本語の書体に無い字があるので、簡体字の書体（この4字だけ読み込む）で出す */
  .langs [lang="zh-Hans"] { font-family: "Noto Sans SC", var(--font); }

  /* トップ：日が沈んで夜になる空 */
  .hero { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 148px 0 120px;
    background:
      radial-gradient(ellipse 70% 45% at 50% 100%, rgba(255, 190, 130, 0.55), transparent 70%),
      linear-gradient(180deg, var(--night) 0%, var(--dusk) 40%, #7a4f7a 72%, var(--glow) 100%); }
  .hero::before { content: ""; position: absolute; inset: 0 0 45%; opacity: 0.7; pointer-events: none;
    background-image:
      radial-gradient(1.5px 1.5px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 28% 60%, #fff, transparent),
      radial-gradient(1.5px 1.5px at 45% 15%, #fff, transparent), radial-gradient(1px 1px at 63% 42%, #fff, transparent),
      radial-gradient(1.5px 1.5px at 78% 18%, #fff, transparent), radial-gradient(1px 1px at 88% 55%, #fff, transparent),
      radial-gradient(1px 1px at 6% 70%, #fff, transparent), radial-gradient(1px 1px at 52% 78%, #fff, transparent),
      radial-gradient(1.5px 1.5px at 94% 30%, #fff, transparent), radial-gradient(1px 1px at 35% 35%, #fff, transparent); }
  .hero .moon { position: absolute; top: 96px; right: max(16px, calc(50% - 400px)); width: 56px; height: 56px; border-radius: 50%; box-shadow: inset 14px -6px 0 0 #fff4df; filter: drop-shadow(0 0 14px rgba(255, 228, 180, 0.6)); transform: rotate(-20deg); }
  .hero-inner { position: relative; }
  .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.32em; color: var(--amber); margin: 0 0 12px; }
  .hero .eyebrow { color: #ffd6a8; }
  .hero h1 { margin: 0; font-size: clamp(40px, 9vw, 68px); font-weight: 800; letter-spacing: 0.14em; line-height: 1.3; text-shadow: 0 4px 24px rgba(31, 27, 64, 0.4); }
  .hero .lead { margin: 20px auto 0; font-size: clamp(17px, 3.6vw, 21px); font-weight: 700; letter-spacing: 0.08em; }
  .hero .sub { margin: 10px auto 0; max-width: 520px; opacity: 0.85; font-size: 14px; }
  .btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 36px; padding: 12px 28px; border-radius: 999px; background: #fff; color: var(--dusk); font-weight: 800; text-decoration: none; font-size: 15px; box-shadow: 0 8px 24px -8px rgba(31, 27, 64, 0.5); transition: transform 0.2s; }
  .btn:hover { transform: translateY(-2px); }

  section { padding: 80px 0; scroll-margin-top: 60px; }
  .alt { background: var(--surface); }
  .head { margin-bottom: 40px; }
  h2 { font-size: clamp(24px, 5vw, 30px); margin: 0; letter-spacing: 0.08em; line-height: 1.5; }
  .section-lead { color: var(--muted); margin: 14px 0 0; max-width: 640px; }

  .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
  .card { background: var(--bg); border-radius: var(--radius); padding: 28px 24px; position: relative; overflow: hidden; }
  .card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--dusk), var(--glow)); }
  .card .num { font-size: 13px; font-weight: 800; color: var(--amber); letter-spacing: 0.2em; }
  .card h3 { margin: 4px 0 10px; font-size: 18px; letter-spacing: 0.04em; }
  .card p { margin: 0; color: var(--muted); font-size: 14px; }

  .work { background: var(--surface); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
  .work-key { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 56px 24px 52px;
    background:
      radial-gradient(ellipse 70% 60% at 50% 110%, rgba(255, 190, 150, 0.55), transparent 70%),
      linear-gradient(160deg, var(--dusk) 0%, #7a4f7a 60%, #c77a6a 100%); }
  .work-key::before { content: ""; position: absolute; top: 24px; right: 32px; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 9px -4px 0 0 #fff4df; transform: rotate(-20deg); opacity: 0.9; }
  .work-key .key-logo { font-size: clamp(34px, 7vw, 52px); font-weight: 800; letter-spacing: 0.1em; line-height: 1.2; margin: 0; text-shadow: 0 4px 20px rgba(31, 27, 64, 0.35); }
  .work-key .key-copy { margin: 14px 0 0; font-size: clamp(15px, 2.6vw, 18px); font-weight: 700; letter-spacing: 0.06em; line-height: 1.8; opacity: 0.95; }
  .work-title { margin-bottom: 20px; }
  .work-title h3 { margin: 0; font-size: clamp(26px, 5.5vw, 36px); letter-spacing: 0.08em; line-height: 1.4; background: linear-gradient(90deg, var(--title-from), var(--title-to)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .work-title p { margin: 2px 0 0; color: var(--muted); font-weight: 700; }
  .badge { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: #fff; background: var(--amber); border-radius: 999px; padding: 2px 12px; margin-bottom: 10px; }
  .work-body { padding: 36px 28px 32px; }
  .story { margin: 0 0 32px; font-size: 15px; }
  .shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 32px; }
  .shots figure { margin: 0; }
  .shots .wide { grid-column: 1 / -1; }
  .shots img { display: block; width: 100%; height: auto; border-radius: 14px; }
  .shots figcaption { margin-top: 6px; font-size: 12.5px; opacity: 0.7; }
  .features { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
  .features li { background: var(--bg); border-radius: 16px; padding: 18px 20px; }
  .features b { display: block; font-size: 15px; margin-bottom: 4px; }
  .features b::before { content: "✦"; color: var(--amber); margin-right: 8px; }
  .features span { color: var(--muted); font-size: 13.5px; display: block; line-height: 1.8; }

  table.info { border-collapse: collapse; width: 100%; font-size: 14px; }
  table.info th, table.info td { border-top: 1px solid var(--line); padding: 14px 4px; text-align: left; vertical-align: top; }
  table.info tr:last-child th, table.info tr:last-child td { border-bottom: 1px solid var(--line); }
  table.info th { width: 9em; color: var(--muted); font-weight: 700; }
  .more { margin: 28px 0 0; padding: 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 14px; text-align: center; }

  .news { list-style: none; margin: 0; padding: 0; }
  .news li { display: flex; gap: 24px; padding: 18px 4px; border-top: 1px solid var(--line); }
  .news li:last-child { border-bottom: 1px solid var(--line); }
  .news time { color: var(--amber); font-weight: 700; font-size: 14px; white-space: nowrap; letter-spacing: 0.06em; }

  .faq { display: grid; gap: 12px; }
  details { background: var(--bg); border-radius: 16px; }
  .alt details { background: var(--bg); }
  summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; list-style: none; position: relative; }
  summary::-webkit-details-marker { display: none; }
  summary::before { content: "Q"; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; margin-right: 12px; vertical-align: 1px; }
  summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1); }
  details.is-open summary::after { transform: translateY(-30%) rotate(-135deg); }
  details p { margin: 0; padding: 0 20px 20px 58px; color: var(--muted); font-size: 14.5px; }

  .about { background: var(--surface); border-radius: var(--radius); padding: 8px 28px; box-shadow: var(--shadow); }
  .about table.info tr:first-child th, .about table.info tr:first-child td { border-top: 0; }
  .about table.info tr:last-child th, .about table.info tr:last-child td { border-bottom: 0; }

  footer { background: linear-gradient(180deg, var(--dusk), var(--night)); color: rgba(255, 255, 255, 0.7); padding: 56px 0 40px; text-align: center; font-size: 13px; }
  footer .logo { justify-content: center; margin-bottom: 20px; }
  footer ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; margin: 0 0 28px; padding: 0; }
  footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
  footer a:hover { color: #fff; }


  @media (max-width: 720px) {
    .shots { grid-template-columns: 1fr; }
    header nav { display: none; }
    header .langs { margin-left: auto; }
    section { padding: 56px 0; }
    .hero { padding: 120px 0 96px; }
    .hero .moon { top: 80px; width: 40px; height: 40px; }
    .work-body { padding: 28px 20px; }
    .news li { flex-direction: column; gap: 0; }
    table.info th { width: 6.5em; }
    .about { padding: 4px 20px; }
    details p { padding-left: 20px; }
  }
  /* ページ内のメニューは、言語の切り替えと並べて収まる幅でだけ出す（日本語のメニューが最も長い） */
  @media (max-width: 800px) {
    header nav { display: none; }
    header .langs { margin-left: auto; }
  }
  @media (max-width: 420px) {
    .logo { font-size: 16px; letter-spacing: 0.06em; }
    header .wrap { gap: 10px; }
    .langs { gap: 8px; font-size: 11.5px; }
  }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
