/* ============================================
   サカイリハトレセンター デザイン更新案 2026-07（オレンジベース v2）
   ============================================ */
:root {
    --main: #f0851f;
    --main-d: #d46f12;
    --main-dd: #b85c0c;
    --soft: #fef3e7;
    --soft2: #fbe3cd;
    --ink: #4a3a2b;
    --text: #40372f;
    --line: #f0dcc6;
    --white: #ffffff;
    --radius: 18px;
    --shadow: 0 8px 26px rgba(120, 74, 20, .12);
    --font-head: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
    --font-body: "Noto Sans JP", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 108px; }

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.9;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--main-d); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.sp { display: none; }

/* マーカー強調（今できる最善最高で 等） */
.marker {
    font-weight: 700;
    color: var(--main-dd);
    background: linear-gradient(transparent 58%, rgba(240, 133, 31, .32) 58%);
    padding: 0 .1em;
}

/* ---------- ヘッダー ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 12px rgba(120, 74, 20, .1);
    z-index: 100;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-logo { width: 48px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name { font-family: var(--font-head); font-weight: 900; font-size: 1.15rem; color: var(--ink); white-space: nowrap; }
.brand-sub { font-size: .68rem; color: var(--main-d); letter-spacing: .05em; }

.global-nav { margin-left: auto; }
.global-nav ul { display: flex; gap: 3px; list-style: none; }
.global-nav a {
    display: block; padding: 8px 9px;
    font-size: .84rem; font-weight: 500; color: var(--ink);
    text-decoration: none; border-radius: 8px;
    transition: background .2s, color .2s; white-space: nowrap;
}
.global-nav a:hover { background: var(--soft); color: var(--main-d); }
.nav-tel-sp { display: none; }
.nav-sched-sp { display: none; }
.nav-clinic-sp { display: none; }

.header-bar { background: var(--ink); color: #fff; }
.header-bar-inner { max-width: 1200px; margin: 0 auto; padding: 6px 20px; display: flex; justify-content: flex-end; }
.hb-sched { font-size: .74rem; letter-spacing: .01em; white-space: nowrap; }
.hb-sched b { color: #ffce8f; font-weight: 700; margin-right: 5px; }
.hb-sched small { font-size: .9em; opacity: .85; margin: 0 2px; }
.hb-sep { margin: 0 12px; opacity: .45; }

.header-tel {
    display: flex; flex-direction: column; align-items: center;
    text-decoration: none; background: var(--main); color: var(--white);
    padding: 8px 18px; border-radius: 12px; line-height: 1.35;
    transition: background .2s;
}
.header-tel:hover { background: var(--main-d); }
.tel-label { font-size: .62rem; opacity: .95; }
.tel-number { font-size: 1.25rem; font-weight: 700; letter-spacing: .03em; }
.tel-hours { font-size: .62rem; opacity: .95; }

.menu-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 6px;
    width: 48px; height: 48px; background: var(--main); border: none;
    border-radius: 10px; cursor: pointer; padding: 12px;
}
.menu-toggle span { display: block; height: 3px; background: var(--white); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- ヒーロー ---------- */
/* PC: 画像を右に寄せ、左は霞フェード。左に大きくキャッチコピー */
.hero {
    position: relative; margin-top: 96px; background: var(--soft);
    min-height: 620px; display: flex; align-items: center; overflow: hidden;
}
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 66%; }
.hero-img {
    width: 100%; height: 100%; object-fit: cover; object-position: 32% center;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.5) 14%, #000 30%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.5) 14%, #000 30%);
}
.hero-copy {
    position: relative; z-index: 2;
    width: 50%; min-width: 340px;
    display: flex; flex-direction: column; justify-content: center;
    padding: 40px 1vw 40px max(24px, 5vw);
}
.hero-copy-sub { margin-top: 26px; }
.hero-badge {
    display: inline-block; background: var(--ink); color: var(--white);
    font-size: .82rem; font-weight: 500; padding: 5px 16px; border-radius: 999px;
    margin-bottom: 18px; letter-spacing: .06em;
}
.hero-title {
    font-family: var(--font-head); font-weight: 900;
    font-size: clamp(2.1rem, 4vw, 3.6rem); line-height: 1.4; color: var(--ink); margin-bottom: 0;
    text-shadow: 0 1px 0 rgba(255,247,238,.6);
}
.hero-title .accent { color: var(--main); }
.hero-lead { font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--text); margin-bottom: 26px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-head); font-weight: 700; text-decoration: none;
    border-radius: 999px; padding: 15px 32px; font-size: 1.05rem;
    transition: transform .15s, box-shadow .15s, background .2s; box-shadow: var(--shadow);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--main); color: var(--white); }
.btn-primary:hover { background: var(--main-d); }
.btn-tel { background: var(--white); color: var(--main-d); border: 2px solid var(--main); font-size: 1.3rem; }
.btn-tel-icon { font-size: 1.1em; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- 理念 ---------- */
.philosophy { background: var(--ink); color: var(--white); padding: 56px 0; text-align: center; }
.philosophy-text {
    font-family: var(--font-head); font-weight: 700;
    font-size: clamp(1.1rem, 2.4vw, 1.55rem); line-height: 2.1; letter-spacing: .04em;
}
.philosophy .hl {
    color: var(--white); font-weight: 900;
    background: linear-gradient(transparent 55%, rgba(240,133,31,.6) 55%);
    padding: 0 .15em;
}
.philosophy .accent { color: #ffc98c; }

/* ---------- セクション共通 ---------- */
.section { padding: 88px 0; }
.section-soft { background: var(--soft); }
.section-en {
    text-align: center; font-family: var(--font-head); font-weight: 700; color: var(--main);
    letter-spacing: .18em; text-transform: uppercase; font-size: .85rem;
}
.section-title {
    text-align: center; font-family: var(--font-head); font-weight: 900;
    font-size: clamp(1.5rem, 3.4vw, 2.2rem); color: var(--ink); margin: 4px 0 48px; line-height: 1.5;
}
.section-title::after {
    content: ""; display: block; width: 64px; height: 5px; background: var(--main);
    border-radius: 3px; margin: 14px auto 0;
}
.section-lead { text-align: center; margin: -30px auto 44px; max-width: 720px; }

/* ---------- 私たちについて ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about-text h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--main-d); margin-bottom: 16px; }
.about-text p { margin-bottom: 20px; }
.about-points { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.about-points li {
    background: var(--white); border: 1.5px solid var(--line); border-radius: 10px;
    padding: 10px 14px; font-weight: 500; font-size: .92rem; display: flex; align-items: center; gap: 8px;
}
.point-icon { font-size: 1.2rem; }

/* ---------- 5つの特徴 ---------- */
.feature {
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center;
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 32px; margin-bottom: 32px;
}
.feature:nth-child(even) .feature-photo { order: 2; }
.feature-photo { position: relative; }
.feature-photo img { border-radius: 12px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-num {
    position: absolute; top: -16px; left: -16px; width: 56px; height: 56px;
    background: var(--main); color: var(--white); font-family: var(--font-head); font-weight: 900;
    font-size: 1.7rem; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; box-shadow: var(--shadow); z-index: 1;
}
.feature-body h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--ink); margin-bottom: 12px; line-height: 1.5; }

/* ---------- 1日の流れ ---------- */
.flow-lead { text-align: center; font-weight: 700; color: var(--main-d); margin: -24px 0 40px; }
.flow-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: flow; }
.flow-step {
    background: var(--white); border: 2px solid var(--soft2); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 26px 16px 20px; text-align: center; position: relative; counter-increment: flow;
}
.flow-step::before {
    content: counter(flow); position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--main); color: var(--white); font-family: var(--font-head); font-weight: 700;
    width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
.flow-step:not(:last-child)::after {
    content: "▶"; position: absolute; right: -16px; top: 50%; transform: translateY(-50%);
    color: var(--main); font-size: .8rem; z-index: 1;
}
.flow-icon { font-size: 2.2rem; display: block; margin-bottom: 8px; }
.flow-step h3 { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.05rem; margin-bottom: 6px; }
.flow-step p { font-size: .82rem; line-height: 1.7; }

/* ---------- ご利用者様の様子 ---------- */
.voice { background: linear-gradient(180deg, var(--soft) 0%, var(--soft2) 100%); }
.voice-masonry { column-count: 4; column-gap: 16px; }
.voice-masonry figure { margin: 0 0 16px; break-inside: avoid; }
.voice-masonry img {
    width: 100%; display: block; border-radius: 14px;
    box-shadow: var(--shadow); transition: transform .25s;
}
.voice-masonry img:hover { transform: translateY(-3px) scale(1.01); }

/* ---------- CTAバンド ---------- */
.cta-band { background: linear-gradient(120deg, var(--main) 0%, var(--main-d) 100%); color: var(--white); text-align: center; padding: 72px 0; }
.cta-title { font-family: var(--font-head); font-weight: 900; font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin-bottom: 14px; }
.cta-text { margin-bottom: 26px; font-weight: 500; }
.btn-cta { background: var(--white); color: var(--main-d); font-size: clamp(1.4rem, 3vw, 1.9rem); padding: 18px 48px; }
.btn-cta:hover { background: #fff7ef; }
.cta-note { margin-top: 22px; font-size: .88rem; opacity: .95; }

/* ---------- ギャラリー ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid figure { margin: 0; }
.gallery-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow); transition: transform .25s; }
.gallery-grid img:hover { transform: scale(1.03); }

/* ---------- 運営主体 ---------- */
.company-table-wrap { max-width: 760px; margin: 0 auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td { padding: 16px 22px; border-bottom: 1px solid var(--line); text-align: left; font-size: .95rem; }
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: none; }
.company-table th { background: var(--soft); color: var(--ink); font-weight: 700; width: 34%; white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; }
.faq-item summary { display: flex; align-items: center; gap: 14px; padding: 18px 22px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "＋"; margin-left: auto; color: var(--main); font-weight: 700; font-size: 1.2rem; transition: transform .2s; }
.faq-item[open] summary::after { content: "－"; }
.faq-q, .faq-a { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 900; color: var(--white); }
.faq-q { background: var(--main); }
.faq-a { background: var(--ink); }
.faq-answer { display: flex; gap: 14px; padding: 0 22px 20px; align-items: flex-start; }
.faq-answer p { flex: 1; font-size: .95rem; }

/* ---------- アクセス ---------- */
.access-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 36px; }
.access-photos figure { margin: 0; }
.access-photos img {
    width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.access-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 36px; align-items: start; }
.access-photo { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-bottom: 20px; }
.access-address { font-weight: 500; margin-bottom: 14px; }
.access-points { list-style: none; display: flex; gap: 12px; flex-wrap: wrap; }
.access-points li { background: var(--soft); border-radius: 999px; padding: 6px 16px; font-size: .88rem; font-weight: 500; }
.access-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: var(--white); text-align: center; padding: 48px 0 36px; }
.footer-brand { font-family: var(--font-head); font-weight: 900; font-size: 1.2rem; }
.footer-brand span { display: block; font-size: .72rem; font-weight: 500; opacity: .8; margin-top: 2px; }
.footer-nav { margin: 20px 0; display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.footer-nav a { color: #ffcfa1; font-size: .88rem; }
.copyright { font-size: .78rem; opacity: .7; }

/* ---------- TOPへ戻る ---------- */
.to-top {
    position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px;
    background: var(--main); color: var(--white); border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-decoration: none; font-size: .8rem; line-height: 1.2; box-shadow: var(--shadow);
    opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 90;
}
.to-top span { font-size: .6rem; font-weight: 700; }
.to-top.visible { opacity: 1; pointer-events: auto; }

/* ---------- スクロール表示アニメーション ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================ レスポンシブ ============================================ */
@media (max-width: 1024px) {
    .global-nav { display: none; }
    .menu-toggle { display: flex; margin-left: auto; }
    .global-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: 0 12px 24px rgba(120,74,20,.15); padding: 12px 20px 20px; }
    .global-nav.open ul { flex-direction: column; gap: 0; }
    .global-nav.open a { padding: 14px 10px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav-tel-sp { display: block; }
    .nav-tel-sp a { color: var(--main-d); font-weight: 700; }
    .nav-clinic-sp { display: block; }
    .global-nav.open .nav-clinic-sp a {
        margin-top: 14px; padding: 13px 10px; text-align: center;
        border: 2px solid var(--main); border-radius: 999px;
        color: var(--main-d); font-weight: 700; font-size: .95rem;
        background: var(--soft);
    }
    .nav-sched-sp { display: block; padding: 14px 10px; border-bottom: 1px solid var(--line); font-size: .85rem; line-height: 1.7; }
    .nav-sched-sp span { display: block; white-space: normal; }
    .nav-sched-sp b { color: var(--main-d); font-weight: 700; margin-right: 6px; }
    .voice-masonry { column-count: 3; }
}
@media (max-width: 768px) {
    body { font-size: 16px; }
    .sp { display: inline; }
    html { scroll-padding-top: 76px; }
    .header-inner { gap: 10px; padding: 8px 14px; }
    .brand-logo { width: 38px; }
    .brand-name { font-size: .95rem; }
    .header-tel { display: none; }
    .header-bar { display: none; }
    /* SP: コピーを上（クリーム地）、画像を下に全幅。画像上端はクリームへ霞フェード */
    .hero {
        margin-top: 56px; min-height: 0; display: flex; flex-direction: column-reverse;
        overflow: hidden;
    }
    .hero-media { position: static; width: 100%; height: auto; }
    .hero-img {
        width: 100%; height: auto; object-fit: cover; aspect-ratio: 3 / 2; object-position: 32% center;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%);
        mask-image: linear-gradient(to bottom, transparent 0%, #000 16%);
    }
    .hero-copy { position: static; width: auto; min-width: 0; display: block; padding: 26px 20px 8px; text-align: center; }
    .hero-copy-sub { margin-top: 18px; }
    .hero-copy-main .hero-badge { margin-bottom: 12px; }
    .hero-copy-main .hero-title { font-size: clamp(1.7rem, 7vw, 2.2rem); line-height: 1.34; }
    .hero-lead { margin-bottom: 22px; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .btn { text-align: center; }
    .section { padding: 60px 0; }
    .about-grid, .access-grid { grid-template-columns: 1fr; gap: 28px; }
    .about-points { grid-template-columns: 1fr; }
    .feature { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
    .feature:nth-child(even) .feature-photo { order: 0; }
    .feature-num { top: -12px; left: -8px; width: 46px; height: 46px; font-size: 1.4rem; }
    .flow-steps { grid-template-columns: 1fr; gap: 26px; max-width: 420px; margin: 0 auto; }
    .flow-step:not(:last-child)::after { content: "▼"; right: auto; left: 50%; top: auto; bottom: -24px; transform: translateX(-50%); }
    .voice-masonry { column-count: 2; column-gap: 10px; }
    .voice-masonry figure { margin-bottom: 10px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .company-table th { width: 38%; padding: 12px 14px; }
    .company-table td { padding: 12px 14px; }
    .access-map iframe { min-height: 320px; }
    .access-photos { grid-template-columns: 1fr; gap: 12px; }
}
