﻿:root {
      --ink: #171717;
      --text: #393532;
      --muted: #716a61;
      --paper: #fff8ea;
      --white: #fffdf8;
      --yellow: #ffd84d;
      --orange: #f08a24;
      --red: #D7373F;
      --deep-red: #B82C33;
      --blue: #2f6fb3;
      --line: #eadfc7;
      --shadow: 0 18px 42px rgba(23, 23, 23, 0.10);
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      color: var(--text);
      background:
        radial-gradient(circle at 12px 12px, rgba(215, 25, 32, 0.16) 2px, transparent 3px),
        var(--paper);
      background-size: 34px 34px;
      font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Sans", Meiryo, sans-serif;
      line-height: 1.9;
      letter-spacing: 0;
    }

    a { color: inherit; }

    .hero {
      position: relative;
      overflow: hidden;
      padding: 42px 18px 34px;
      background:
        linear-gradient(135deg, var(--red), var(--deep-red) 58%, #7e0d12);
      border-bottom: 4px solid var(--ink);
    }

    .hero::before,
    .hero::after {
      content: "✦";
      position: absolute;
      color: rgba(255, 255, 255, 0.24);
      font-size: 7rem;
      line-height: 1;
    }

    .hero::before { right: 8%; top: 24px; }
    .hero::after { left: 5%; bottom: -24px; transform: rotate(18deg); }

    .wrap {
      width: min(1120px, 100%);
      margin: 0 auto;
      position: relative;
      z-index: 1;
    }

    .hero-grid {
      max-width: 920px;
    }

    .eyebrow {
      margin: 0 0 14px;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-weight: 900;
      color: #fff;
    }

    .eyebrow::before {
      content: "";
      width: 34px;
      height: 4px;
      background: var(--yellow);
      border-radius: 999px;
    }

    h1 {
      margin: 0;
      max-width: 760px;
      color: #fff;
      font-size: clamp(2.6rem, 8vw, 5.7rem);
      font-weight: 900;
      line-height: 1.08;
    }

    .lead {
      max-width: 720px;
      margin: 22px 0 0;
      color: #fff;
      font-size: 1.05rem;
      font-weight: 700;
    }

    .nav-shell {
      position: sticky;
      top: 0;
      z-index: 8;
      background: rgba(255, 253, 248, 0.94);
      border-bottom: 2px solid var(--line);
      backdrop-filter: blur(12px);
    }

    .nav {
      width: min(1120px, 100%);
      margin: 0 auto;
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding: 10px 18px;
    }

    .nav a {
      flex: 0 0 auto;
      padding: 8px 14px;
      border: 2px solid var(--ink);
      border-radius: 999px;
      background: var(--red);
      color: #fff;
      font-size: 0.92rem;
      font-weight: 900;
      text-decoration: none;
      white-space: nowrap;
      transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
    }

    .nav a:hover,
    .nav a[aria-current="true"] {
      background: var(--deep-red);
      box-shadow: 0 6px 0 rgba(23, 23, 23, 0.18);
      transform: translateY(-2px);
    }

    main {
      width: min(1120px, 100%);
      margin: 0 auto;
      padding: 42px 18px 78px;
    }

    .intro {
      margin: 0 0 32px;
      padding: 22px 24px;
      background: var(--white);
      border: 2px solid var(--line);
      border-radius: 18px;
      color: var(--muted);
    }

    .faq-tools {
      margin: 0 0 30px;
      padding: 18px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto auto;
      gap: 14px;
      align-items: center;
      background: var(--white);
      border: 2px solid var(--line);
      border-radius: 18px;
      box-shadow: 0 10px 24px rgba(23, 23, 23, 0.05);
    }

    .faq-search {
      width: 100%;
      min-height: 48px;
      padding: 0 16px;
      border: 2px solid var(--line);
      border-radius: 999px;
      color: var(--ink);
      background: #fff;
      font: inherit;
      font-weight: 700;
    }

    .faq-search:focus {
      border-color: var(--red);
      outline: none;
      box-shadow: 0 0 0 4px rgba(215, 55, 63, 0.14);
    }

    .faq-count {
      color: var(--red);
      font-size: 0.92rem;
      font-weight: 900;
      white-space: nowrap;
    }

    .clear-search {
      min-height: 44px;
      padding: 0 16px;
      border: 2px solid var(--red);
      border-radius: 999px;
      background: #fff;
      color: var(--red);
      cursor: pointer;
      font: inherit;
      font-weight: 900;
    }

    .filter-panel,
    .popular-panel {
      margin: -12px 0 30px;
      padding: 0;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .filter-button,
    .popular-button {
      min-height: 42px;
      padding: 0 15px;
      border: 2px solid var(--line);
      border-radius: 999px;
      background: var(--white);
      color: var(--ink);
      cursor: pointer;
      font: inherit;
      font-size: 0.9rem;
      font-weight: 900;
      transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
    }

    .popular-panel {
      margin-top: -16px;
      margin-bottom: 34px;
    }

    .popular-button {
      border-color: rgba(215, 55, 63, 0.35);
      background: #fff;
      color: var(--red);
    }

    .filter-button:hover,
    .popular-button:hover,
    .filter-button.is-active {
      border-color: var(--red);
      background: var(--red);
      color: #fff;
      transform: translateY(-2px);
    }

    .no-results {
      display: none;
      margin: 0 0 32px;
      padding: 22px;
      border: 2px dashed var(--red);
      border-radius: 18px;
      background: #fff;
      color: var(--ink);
      font-weight: 900;
    }

    .no-results.is-visible {
      display: block;
    }

    .hidden-by-search,
    .section.hidden-by-search {
      display: none;
    }

    .section {
      display: grid;
      grid-template-columns: 270px minmax(0, 1fr);
      gap: 34px;
      padding: 42px 0;
      border-top: 3px solid var(--ink);
    }

    .section-label {
      margin: 0 0 8px;
      color: var(--red);
      font-size: 0.8rem;
      font-weight: 900;
      text-transform: uppercase;
    }

    h2 {
      margin: 0;
      color: var(--ink);
      font-size: clamp(1.6rem, 3vw, 2.3rem);
      font-weight: 900;
      line-height: 1.35;
    }

    .faq-list {
      display: grid;
      gap: 12px;
    }

    details {
      background: var(--white);
      border: 2px solid var(--line);
      border-radius: 18px;
      box-shadow: 0 10px 26px rgba(23, 23, 23, 0.05);
      transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    }

    details[open] { border-color: var(--ink); }

    details.is-highlighted {
      border-color: var(--red);
      box-shadow: 0 0 0 5px rgba(215, 55, 63, 0.12), 0 18px 36px rgba(23, 23, 23, 0.08);
    }

    details:hover {
      border-color: rgba(215, 55, 63, 0.55);
      box-shadow: 0 14px 30px rgba(23, 23, 23, 0.08);
      transform: translateY(-1px);
    }

    summary {
      position: relative;
      cursor: pointer;
      list-style: none;
      padding: 18px 58px 18px 22px;
      color: var(--ink);
      font-weight: 900;
      line-height: 1.65;
    }

    summary::-webkit-details-marker { display: none; }

    summary::after {
      content: "＋";
      position: absolute;
      right: 18px;
      top: 18px;
      width: 30px;
      height: 30px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: var(--red);
      color: #fff;
      color: var(--ink);
      font-weight: 900;
    }

    details[open] summary::after {
      content: "－";
      background: var(--deep-red);
      color: #fff;
    }

    .answer {
      padding: 0 22px 22px;
      color: var(--text);
      animation: answerIn 0.2s ease;
    }

    .answer p { margin: 0; }
    .answer p + p { margin-top: 10px; }

    .keywords {
      margin-top: 14px;
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
    }

    .keywords span {
      padding: 4px 9px;
      border-radius: 999px;
      background: #fff3c2;
      color: #4a3712;
      font-size: 0.78rem;
      font-weight: 800;
    }

    .link-row {
      margin-top: 16px;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .text-link {
      display: inline-flex;
      align-items: center;
      min-height: 38px;
      padding: 0 14px;
      border-radius: 999px;
      background: var(--red);
      color: #fff;
      font-size: 0.86rem;
      font-weight: 900;
      text-decoration: none;
    }

    .cta {
      margin-top: 34px;
      padding: 28px;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 18px;
      align-items: center;
      background: var(--red);
      color: #fff;
      border-radius: 22px;
      box-shadow: var(--shadow);
    }

    .cta h2 { color: #fff; }
    .cta p { margin: 8px 0 0; color: rgba(255,255,255,.78); }

    .button {
      display: inline-flex;
      justify-content: center;
      align-items: center;
      min-height: 48px;
      padding: 0 20px;
      border-radius: 999px;
      background: var(--yellow);
      color: var(--ink);
      font-weight: 900;
      text-decoration: none;
      white-space: nowrap;
    }

    @keyframes answerIn {
      from {
        opacity: 0;
        transform: translateY(-4px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @media (max-width: 860px) {
      .section,
      .cta { grid-template-columns: 1fr; }
      .faq-tools { grid-template-columns: 1fr; }
      .faq-count { white-space: normal; }
    }

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