/* ===================================
   整体院・接骨院 LP テンプレート CSS
   スマホファースト・レスポンシブデザイン
   =================================== */

/* リセット & 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラーパレット（必要に応じて変更可能） */
    --primary-color: #2e7d32;      /* メインカラー（緑） */
    --primary-dark: #1b5e20;       /* 濃い緑 */
    --secondary-color: #ff6f00;    /* アクセントカラー（オレンジ） */
    --text-color: #333333;         /* テキスト */
    --text-light: #666666;         /* 薄いテキスト */
    --bg-color: #ffffff;           /* 背景 */
    --bg-light: #f5f5f5;           /* 薄い背景 */
    --border-color: #e0e0e0;       /* ボーダー */
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* コンテナ */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* セクション共通 */
section {
    padding: 60px 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* レスポンシブ用ヘルパー */
.sp-only {
    display: inline;
}

.pc-only {
    display: none;
}

@media (min-width: 768px) {
    .sp-only {
        display: none;
    }
    .pc-only {
        display: inline;
    }
}

/* ===================================
   ヘッダー（固定）
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 12px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.header-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===================================
   1. ファーストビュー
   =================================== */
.hero {
    margin-top: 60px;
    background: linear-gradient(135deg, #e8f5e9 0%, #fff3e0 100%);
    padding: 60px 0 80px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.hero-subtitle {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto 20px;
}

.btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn i {
    font-size: 22px;
    margin-right: 8px;
}

.btn-sub {
    font-size: 12px;
    font-weight: 400;
    margin-top: 4px;
    opacity: 0.9;
}

.btn-primary {
    background: #06c755;
    color: white;
}

.btn-primary:hover {
    background: #05b04c;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #e65100;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-large {
    font-size: 20px;
    padding: 22px 40px;
}

.hero-note {
    font-size: 14px;
    color: var(--text-light);
}

/* ===================================
   2. よくある悩み
   =================================== */
.troubles {
    background: var(--bg-color);
}

.troubles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.trouble-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 18px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.trouble-item i {
    color: var(--primary-color);
    font-size: 24px;
    flex-shrink: 0;
}

.trouble-item p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.trouble-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.troubles-closing {
    text-align: center;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
    margin-top: 20px;
}

.troubles-closing strong {
    color: var(--primary-color);
}

/* ===================================
   3. 選ばれる理由
   =================================== */
.reasons {
    background: var(--bg-light);
}

.reasons-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.reason-item {
    background: white;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.3s;
}

.reason-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.reason-number {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 32px;
    font-weight: 700;
    color: #e0e0e0;
}

.reason-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    color: white;
    font-size: 28px;
    margin-bottom: 15px;
}

.reason-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-dark);
    line-height: 1.5;
}

.reason-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
}

/* ===================================
   4. 施術の流れ
   =================================== */
.flow {
    background: var(--bg-color);
}

.flow-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.flow-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    width: 100%;
    position: relative;
}

.flow-step {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
}

.flow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e8f5e9, #fff3e0);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 30px;
    margin-bottom: 15px;
}

.flow-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.flow-text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.flow-arrow {
    color: var(--primary-color);
    font-size: 28px;
    margin: 15px 0;
}

/* ===================================
   5. メニュー・料金
   =================================== */
.menu {
    background: var(--bg-light);
}

.menu-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.menu-item {
    background: white;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
    transition: all 0.3s;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.menu-label {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.menu-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.menu-prices {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.menu-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

.price-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
}

.price-note {
    font-size: 12px;
    color: var(--text-light);
}

.menu-duration {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 10px;
}

.menu-notes {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

.menu-notes p {
    margin: 5px 0;
}

/* ===================================
   6. お客様の声
   =================================== */
.voices {
    background: var(--bg-color);
}

.voices-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 20px;
}

.voice-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.voice-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.voice-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 24px;
    flex-shrink: 0;
}

.voice-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 3px;
}

.voice-condition {
    font-size: 13px;
    color: var(--text-light);
}

.voice-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color);
    position: relative;
    padding-left: 15px;
}

.voice-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 30px;
    color: var(--primary-color);
    opacity: 0.3;
}

.voices-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 15px;
}

/* ===================================
   7. よくある質問 FAQ
   =================================== */
.faq {
    background: var(--bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    cursor: pointer;
}

.faq-question i {
    color: var(--primary-color);
    font-size: 22px;
    flex-shrink: 0;
}

.faq-answer {
    padding: 0 20px 20px 54px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
}

/* ===================================
   8. アクセス・営業時間
   =================================== */
.access {
    background: var(--bg-color);
}

.access-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.access-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.access-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.access-item i {
    color: var(--primary-color);
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 3px;
}

.access-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.access-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.6;
}

.access-map {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.map-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.map-placeholder p {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.map-placeholder small {
    font-size: 13px;
}

/* ===================================
   9. CTA（予約・問い合わせ）
   =================================== */
.cta {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
    padding: 60px 0;
}

.cta-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 35px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 450px;
    margin: 0 auto;
}

/* ===================================
   10. フッター
   =================================== */
.footer {
    background: #263238;
    color: #b0bec5;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.footer-info p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-info i {
    color: var(--primary-color);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-info a {
    color: #b0bec5;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-info a:hover {
    color: white;
}

.footer-links h4 {
    font-size: 16px;
    color: white;
    margin-bottom: 15px;
}

.footer-sns {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-sns a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-sns a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-policy a {
    color: #b0bec5;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-policy a:hover {
    color: white;
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

/* ===================================
   固定フローティングボタン（スマホ用）
   =================================== */
.floating-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.floating-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 14px;
    gap: 4px;
    transition: all 0.3s;
}

.floating-btn i {
    font-size: 22px;
}

.floating-btn-line {
    background: #06c755;
}

.floating-btn-line:active {
    background: #05b04c;
}

.floating-btn-phone {
    background: var(--secondary-color);
}

.floating-btn-phone:active {
    background: #e65100;
}

/* ===================================
   ページトップボタン
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 998;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ===================================
   タブレット対応（768px以上）
   =================================== */
@media (min-width: 768px) {
    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: row;
        max-width: 100%;
        justify-content: center;
    }

    .troubles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .reasons-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .menu-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .voices-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .access-content {
        grid-template-columns: 1fr 1fr;
    }

    .access-map {
        height: 100%;
        min-height: 400px;
    }

    .footer-content {
        grid-template-columns: 2fr 1fr;
    }

    .floating-buttons {
        display: none;
    }

    .back-to-top {
        bottom: 30px;
    }

    section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 36px;
        margin-bottom: 60px;
    }
}

/* ===================================
   PC対応（1024px以上）
   =================================== */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }

    .troubles-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .reasons-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .menu-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .voices-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-buttons {
        flex-direction: row;
        max-width: 100%;
        justify-content: center;
    }
}

/* ===================================
   アニメーション（オプション）
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* スクロールで表示される要素にアニメーション適用 */
.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

/* ===================================
   印刷用スタイル
   =================================== */
@media print {
    .header,
    .floating-buttons,
    .back-to-top,
    .cta {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    section {
        page-break-inside: avoid;
    }
}