/* 
   Pattern 38: Chiropractic (整体・カイロプラクティック)
   Theme: Root Improvement / Cleanliness (Mint Green & Warm White)
   Font: BIZ UDGothic / Noto Sans JP
*/

:root {
    /* カラーパレット：清潔感と安心感 */
    --c-primary: #17B890;
    /* ミントグリーン（医療・癒やし） */
    --c-primary-dark: #0F9674;
    --c-primary-light: #E8F7F4;
    --c-text: #333A3F;
    --c-text-light: #6C757D;
    --c-bg: #FFFFFF;
    --c-bg-light: #F8F9FA;
    --c-border: #DEE2E6;

    /* タイポグラフィ */
    --f-main: 'Noto Sans JP', sans-serif;
    --f-title: 'BIZ UDGothic', sans-serif;
    --f-en: 'Noto Sans JP', sans-serif;

    /* その他 */
    --spacing-section: 100px;
    --border-radius: 8px;
    /* 少し丸みを持たせて優しさを */
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================
   Reset & Base
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--f-main);
    color: var(--c-text);
    background-color: var(--c-bg);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.pb-5 {
    padding-bottom: 3rem;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.text-small {
    font-size: 0.85rem;
    color: var(--c-text-light);
}

/* =========================================
   Typography & Sections
========================================= */
.section {
    padding: var(--spacing-section) 0;
}

.section--light {
    background-color: var(--c-bg-light);
}

.section-subtitle {
    display: block;
    font-family: var(--f-en);
    color: var(--c-primary);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--f-title);
    font-size: 2.2rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    color: var(--c-text);
    font-weight: 700;
}

/* ボタン共通 */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--c-primary);
    color: #fff;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(23, 184, 144, 0.3);
}

.btn-primary:hover {
    background-color: var(--c-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(23, 184, 144, 0.4);
}

/* =========================================
   Header
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
    /* 初期は透明 */
    background: transparent;
}

.header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--f-en);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-text);
    /* 白背景で見やすいためベースは濃色 */
    transition: var(--transition);
}

.header.is-scrolled .logo {
    color: var(--c-text);
}

.logo span {
    font-size: 16px;
    font-weight: 400;
    color: var(--c-primary);
    margin-left: 8px;
    position: relative;
    top: 2px;
}

/* ナビゲーション */
.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--c-text);
    transition: var(--transition);
}

.nav a:hover {
    color: var(--c-primary);
}

.btn-reserve {
    background-color: var(--c-primary);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 50px;
}

.btn-reserve:hover {
    background-color: var(--c-primary-dark);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--c-text);
    transition: var(--transition);
}

/* =========================================
   Hero
========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    /* 少し斜めにカットして動きを出す */
    opacity: 0;
    transition: opacity 1s ease-out;
}

.hero-bg.is-visible {
    opacity: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 右側を透明、左側にグラデーションを敷いてテキストを読みやすく */
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    /* 右側にメインの被写体を寄せる */
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-text-box {
    max-width: 500px;
    padding: 40px 0;
}

.hero-en {
    display: block;
    font-family: var(--f-en);
    font-weight: 700;
    color: var(--c-primary);
    letter-spacing: 2px;
    font-size: 1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--f-title);
    font-size: 3.2rem;
    line-height: 1.3;
    color: var(--c-text);
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--c-text);
    font-weight: 500;
    margin-bottom: 30px;
}

/* =========================================
   About
========================================= */
.about-layout {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-point {
    font-size: 1.2rem;
    color: var(--c-text);
    border-left: 4px solid var(--c-primary);
    padding-left: 12px;
    margin-bottom: 10px;
}

.about-image-wrap {
    flex: 1;
    position: relative;
}

.about-img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-image-wrap::before {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px dashed var(--c-primary);
    border-radius: var(--border-radius);
    z-index: -1;
}

/* =========================================
   Treatment Flow (Stepper UI)
========================================= */
.stepper-wrap {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 中央を貫く線 */
.stepper-wrap::before {
    content: '';
    position: absolute;
    top: 50px;
    bottom: 50px;
    left: 35px;
    /* ステップ番号の中心 */
    width: 2px;
    background-color: var(--c-border);
    z-index: 1;
}

.step-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 2;
    gap: 30px;
}

.step-number {
    width: 70px;
    height: 70px;
    background-color: var(--c-primary-light);
    color: var(--c-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--f-en);
    flex-shrink: 0;
    border: 4px solid #fff;
    z-index: 2;
}

.step-image {
    width: 140px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-family: var(--f-title);
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--c-text);
}

.step-content p {
    font-size: 0.95rem;
    color: var(--c-text-light);
}

/* =========================================
   Menu
========================================= */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.menu-card {
    background: #fff;
    border-top: 5px solid var(--c-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    text-align: left;
    transition: var(--transition);
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.menu-head {
    border-bottom: 1px dotted var(--c-border);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.menu-head h3 {
    font-size: 1.15rem;
    font-family: var(--f-title);
    margin-bottom: 10px;
}

.menu-price {
    font-size: 1.8rem;
    color: var(--c-primary);
    font-weight: 700;
    font-family: var(--f-en);
}

.menu-price small {
    font-size: 0.9rem;
    color: var(--c-text-light);
    font-weight: 400;
    margin-left: 5px;
}

.menu-body p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.menu-time {
    display: inline-block;
    background-color: var(--c-bg-light);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* =========================================
   FAQ
========================================= */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--c-primary);
    overflow: hidden;
}

.faq-q {
    padding: 24px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--c-text);
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: var(--transition);
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-q:hover {
    background-color: var(--c-bg-light);
}

.faq-icon {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--c-primary);
    transition: var(--transition);
}

.faq-icon::before {
    top: 9px;
    left: 0;
    width: 20px;
    height: 2px;
}

.faq-icon::after {
    top: 0;
    left: 9px;
    width: 2px;
    height: 20px;
}

details[open] .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-a {
    padding: 0 30px 24px;
    color: var(--c-text-light);
}

.faq-a p {
    margin-bottom: 0;
    padding-top: 15px;
    border-top: 1px dashed var(--c-border);
}

/* =========================================
   Access
========================================= */
.access-layout {
    display: flex;
    gap: 50px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 50px;
    margin-top: -30px;
    /* 少しメニューセクションに被せる */
    position: relative;
    z-index: 10;
}

.access-info {
    flex: 1;
}

.info-dl {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid var(--c-border);
}

.info-dl dt,
.info-dl dd {
    padding: 15px 0;
    border-bottom: 1px solid var(--c-border);
}

.info-dl dt {
    width: 30%;
    font-weight: 700;
    color: var(--c-text);
}

.info-dl dd {
    width: 70%;
    color: var(--c-text-light);
}

.info-dl .tel {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-primary);
    font-family: var(--f-en);
}

.access-map {
    flex: 1;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background-color: var(--c-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-light);
}

/* =========================================
   Footer
========================================= */
.footer {
    background-color: var(--c-text);
    color: #fff;
    padding: 60px 0 40px;
}

.footer-logo {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-links a {
    color: #ccc;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    color: #777;
    font-size: 0.85rem;
}

/* =========================================
   Animations
========================================= */
.anim {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.anim-up {
    transform: translateY(30px);
}

.anim.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

.anim-d1 {
    transition-delay: 0.2s;
}

.anim-d2 {
    transition-delay: 0.4s;
}

/* =========================================
   Responsive
========================================= */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .about-layout {
        flex-direction: column;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .access-layout {
        flex-direction: column;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav.is-active {
        right: 0;
    }

    .hero {
        min-height: 500px;
    }

    .hero-bg::after {
        background: rgba(255, 255, 255, 0.75);
    }

    /* スマホは全体を白っぽく */
    .hero-bg {
        clip-path: none;
    }

    .stepper-wrap::before {
        left: 25px;
    }

    .step-card {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .step-image {
        width: 100%;
        height: 180px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .info-dl dt,
    .info-dl dd {
        width: 100%;
        border-bottom: none;
        padding: 5px 0;
    }

    .info-dl dd {
        padding-bottom: 15px;
        border-bottom: 1px solid var(--c-border);
    }
}