:root {
    --bg: #ffffff;
    --fg: #111;
    --muted: #8a8a8a;
    --line: #e7e7e7;
    --card: #fafafa;
    --accent: #111;
    --accent2: #7a4a1b;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --max: 1100px;
}

* {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    padding: 0;
}
body {
    font-family: "Noto Serif JP", serif;
    color: var(--fg);
    background: var(--bg);
    line-height: 1.8;
}
a {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
.container {
    width: min(var(--max), calc(100% - 32px));
    margin-inline: auto;
}
br.sp {
    display: none;
}
@media (max-width: 980px) {
    br.sp {
        display: inline;
    }
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 12px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-logo {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    font-weight: 800;
}
.brand-title {
    font-weight: 900;
    letter-spacing: 0.02em;
}
.brand-sub {
    font-size: 12px;
    color: var(--muted);
}

.nav {
    display: flex;
    gap: 18px;
    align-items: center;
    font-size: 14px;
    color: var(--muted);
}
.nav a {
    padding: 8px 6px;
    border-radius: 10px;
}
.nav a:hover {
    background: var(--card);
    color: var(--fg);
}
.nav a.is-active {
    background: var(--card);
    color: var(--fg);
    font-weight: 800;
}

.header-cta {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.2s ease;
}
.btn:hover {
    box-shadow: var(--shadow);
}
.btn:active {
    transform: translateY(1px);
}
.btn.primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn.primary:hover {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.header-cta .btn {
    padding: 5px 12px;
    border-radius: 8px;
}
@media (max-width: 980px) {
    .header-cta .btn {
        padding: 5px 12px;
        border-radius: 8px;
    }
}

/* SPでは通常ナビを隠す（ドロワーに集約） */
@media (max-width: 980px) {
    .nav {
        display: none;
    }
}
/* スマホではヘッダー内のCTAボタンを非表示 */
@media (max-width: 980px) {
    .header-cta > a.btn {
        display: none;
    }
}

/* ハンバーガーボタン（SPのみ表示） */
.menu-btn {
    display: none; /* PCは非表示 */
    width: 42px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.menu-btn__bars {
    position: relative;
    width: 18px;
    height: 2px;
    background: #111;
    border-radius: 99px;
}
.menu-btn__bars::before,
.menu-btn__bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: #111;
    border-radius: 99px;
}
.menu-btn__bars::before {
    top: -6px;
}
.menu-btn__bars::after {
    top: 6px;
}

@media (max-width: 980px) {
    .menu-btn {
        display: inline-flex;
    }
    .header-cta {
        gap: 8px;
    } /* 既存の gap 調整 */
}

/* ドロワー（初期は閉じている） */
/* ドロワー全体（画面全体を覆う） */
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0; /* = inset:0 */
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
}

/* 背景の黒い幕（全面） */
.drawer__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 0;
}

/* パネル本体（右から出る） */
.drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(86vw, 360px);
    background: #fff;
    border-left: 1px solid var(--line);
    transform: translateX(102%);
    transition: transform 0.22s ease;
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 14px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1;
    pointer-events: auto;
}

/* 開いた状態 */
.drawer.is-open {
    pointer-events: auto;
}
.drawer.is-open .drawer__backdrop {
    opacity: 1;
}
.drawer.is-open .drawer__panel {
    transform: translateX(0);
}

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.drawer__title {
    font-weight: 900;
}
.drawer__close {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.drawer__nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.drawer__nav a {
    display: flex;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 800;
}

.drawer__cta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer__meta {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
}

/* ===== Drawer: Android address bar / safe area fix ===== */

/* drawer全体は「いま見えている高さ」に追従 */
.drawer {
  height: 100vh;   /* fallback */
  height: 100dvh;  /* modern */
}

/* panelも親の%ではなく、自分でdvhを持つ */
.drawer__panel {
  height: 100vh;   /* fallback */
  height: 100dvh;  /* modern */
  max-height: 100vh;
  max-height: 100dvh;

  /* 下が切れる対策：CTA+metaの分だけ余白を確保（ここが効きます） */
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}


/* Page */
.page-hero {
    height: clamp(240px, 25vw, 400px);
    position: relative;
    padding: 20px 0 30px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    overflow: hidden;
    color: var(--card);
    display: flex;
    align-items: center;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/assets/img/page-hero.jpg") center / cover no-repeat;
    opacity: 0.9;
    filter: saturate(0.9) contrast(0.95);
    transform: scale(1.03);
    pointer-events: none;
}

/* 中身を前面に */
.page-hero .container {
    position: relative;
}

.breadcrumbs {
    font-size: 13px;
    color: var(--muted);
}
.breadcrumbs a {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.page-title {
    margin: 10px 0 0;
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.25;
    letter-spacing: 0.01em;
}
.page-lead {
    margin: 10px 0 0;
    max-width: 70ch;
    font-size: 80%;
}
.hero-card .page-lead {
    max-width: none;
}

section {
    padding: 26px 0;
}
.section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.section-title h2 {
    font-size: 20px;
    margin: 0;
    letter-spacing: 0.02em;
}
.section-title p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}
.card.muted {
    background: var(--card);
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.figure {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}
.figure .ph {
    aspect-ratio: 16 / 9;
    background: #eee;
    display: grid;
    place-items: center;
    color: #777;
    font-weight: 800;
}
.figure figcaption {
    padding: 10px 12px;
    font-size: 13px;
    color: var(--muted);
}

.hero-strip {
    position: relative;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    background: #000; /* 画像読めない時の保険 */
}

.hero-strip__bg {
    height: clamp(300px, 30vw, 450px);
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.18)), url("/assets/img/hero.jpg");
    background-size: cover;
    background-position: center;
    filter: saturate(0.9) contrast(0.95);
    transform: scale(1.02);
}

.hero-strip__inner {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 18px 0;
}

.hero-strip__kicker {
    margin: 0;
    display: inline-flex;
    width: fit-content;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(6px);
}

.hero-strip__title {
    margin: 0;
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.02em;
    font-size: clamp(18px, 6vw, 28px);
}

/* SPは少し高さを抑える */
@media (max-width: 980px) {
    .hero-strip__bg {
        height: 320px;
    }
    .hero-strip__inner {
        padding: 14px 0;
    }
}

/* Items */
.items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.item-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}
.item-thumb {
    aspect-ratio: 4 / 3;
    background: #eee;
    display: grid;
    place-items: center;
    color: #777;
    font-weight: 800;
}
.item-body {
    padding: 12px 12px 14px;
}
.item-body b {
    display: block;
    margin-bottom: 4px;
}
.item-body p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
}
.step .num {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    margin-bottom: 10px;
}
.step p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

/* FAQ */
details {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 12px 14px;
}
details + details {
    margin-top: 10px;
}
summary {
    cursor: pointer;
    font-weight: 900;
    list-style: none;
}
summary::-webkit-details-marker {
    display: none;
}
details p {
    margin: 10px 0 0;
    color: var(--muted);
}

/* Contact section */
.contact-block {
    background: linear-gradient(180deg, #fff, #fbfbfb);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.big-tel {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

/* Footer */
footer {
    padding: 26px 0;
    color: var(--muted);
    font-size: 13px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 14px;
    align-items: start;
}
.fine {
    margin-top: 10px;
}

.org-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.org-info div {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--line);
}

.org-info dt {
    font-weight: 700;
    color: var(--muted);
}

.org-info dd {
    margin: 0;
}

.org-activities {
    margin: 0;
    padding-left: 1.2em;
}

.org-activities li {
    margin: 6px 0;
    color: var(--muted);
}

/* モバイル */
@media (max-width: 768px) {
    .org-info div {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 980px) {
    .nav {
        display: none;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .items {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
