/* ======================================================
   あおばおうちクリニック 公式サイト CSS（完全版）
   緑系カラー／レスポンシブ対応／ハンバーガーメニュー入り
   ====================================================== */

/* ------------------------------
   カラー設定
   ------------------------------ */
:root {
    --main-green: #1B8A3B;     /* メインの深緑 */
    --light-green: #6CC24A;    /* サブの明るい緑 */
    --accent-orange: #F15A29;  /* アクセント（芽の赤） */
    --bg-light: #f7f7f7;
    --bg-sub: #eaf4ed;         /* ナビ背景などに使用 */
}

/* ------------------------------
   ベース設定
   ------------------------------ */
body {
    margin: 0;
    font-family: "Yu Gothic", "Hiragino Sans", sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 文章を読みやすくするための中央寄せ＋最大幅制限 */
.text-block,
.hero-content p,
.hero-content h1,
.page p,
.page li {
    max-width: 800px;          /* ← 文章行の最大幅 */
    margin-left: auto;         /* ← 中央寄せ */
    margin-right: auto;
}

section p {
    max-width: 800px;
    margin: 0 auto 1.5em;
    padding: 0 16px;
}

/* ------------------------------
   ヘッダー（トップ & 下層共通）
   ------------------------------ */

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

/* ロゴ */
.logo {
    height: 60px;
}

/* PCのヘッダーナビ */
nav {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

/* ------------------------------
   ハンバーガーメニュー
   ------------------------------ */

.hamburger {
    display: none;
    width: 32px;
    height: 26px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    height: 4px;
    background: var(--main-green);
    border-radius: 4px;
}

/* ------------------------------
   トップページ hero
   ------------------------------ */

.hero {
    background: url('images/hero_dummy.jpg') center/cover no-repeat;
    color: white;
    padding: 40px 0 140px;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 60, 30, 0.45);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 5%;
}

.hero h1 {
    font-size: 2.6rem;
    line-height: 1.5;
}

.hero p {
    font-size: 1.2rem;
}

/* hero内の院名（小見出し） */
.site-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--main-green); /* ← 緑色に変更 */
    margin-bottom: 10px;
    letter-spacing: 0.05em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* お問い合わせセクション（トップページ） */
.contact {
    text-align: center;
}

.form-btn {
    display: inline-block;
    background-color: var(--main-green);
    color: white;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

/* ------------------------------
   トップページ：特徴
   ------------------------------ */

.features {
    padding: 60px 5%;
    background: var(--bg-light);
    text-align: center;
}

.feature-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.feature {
    background: white;
    padding: 24px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

/* ------------------------------
   下層ページ（サブヒーロー）
   ------------------------------ */

.sub-hero {
    background: #e8f3ec;
    padding: 20px 0 40px;
}

.sub-hero-content {
    text-align: center;
    margin-top: 10px;
}

.sub-hero h1 {
    color: var(--main-green);
    font-size: 2rem;
}

/* ------------------------------
   共通ページコンテンツ
   ------------------------------ */

.page {
    padding: 40px 5% 60px;
    max-width: 900px;
    margin: 0 auto;
}

h2 {
    color: var(--main-green);
    text-align: center;
    margin-bottom: 20px;
}

.point-list li {
    margin-bottom: 12px;
}

/* テーブル（about概要） */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.info-table th,
.info-table td {
    border: 1px solid #ccc;
    padding: 10px;
    vertical-align: top;
}

.info-table th {
    width: 25%;
    background: #f4f8f5;
}

/* ------------------------------
   Google Map
   ------------------------------ */

.map-section {
    text-align: center;
    margin-top: 50px;
}

.map-container iframe {
    width: 100%;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ------------------------------
   contact-box
   ------------------------------ */

.contact-box {
    background: #f4f8f5;
    padding: 20px 24px;
    margin-top: 40px;
    border-radius: 8px;
    text-align: center;
}

.contact-box .tel a {
    color: var(--main-green);
    font-size: 1.2rem;
    text-decoration: none;
}

.page {
    padding-left: 20px;
    padding-right: 20px;
}

/* Contactページの文章を中央寄せ */
.page section p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Formコンテナも統一 */
.form-container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ------------------------------
   フォーム（Googleフォーム埋め込み）
   ------------------------------ */

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 5%;
}

.form-container iframe {
    width: 100%;
    height: 1500px;
    border: none;
}

/* ------------------------------
   フッター
   ------------------------------ */

footer {
    background: var(--main-green);
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 60px;
}

/* ------------------------------
   院内掲示ページ用スタイル
   ------------------------------ */
.notice-content h3 {
    color: var(--main-green);
    font-size: 1.15rem;
    margin-top: 30px;
    margin-bottom: 8px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 4px;
}

.notice-content p {
    margin-bottom: 12px;
}

.simple-list {
    margin: 0 0 16px 20px;
    padding: 0;
}

.simple-list li {
    margin-bottom: 4px;
}

/* ======================================================
   レスポンシブ（768px以下）
   ====================================================== */
@media (max-width: 768px) {

    /* ヘッダーを横並びに維持（ロゴ左・ハンバーガー右） */
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 12px 4%;
    }

    /* ロゴ縮小 */
    .logo {
        height: 46px;
    }

    /* ハンバーガー表示 */
    .hamburger {
        display: flex;
    }

    /* ナビ非表示 → activeで表示 */
    nav {
        display: none;
        flex-direction: column;
        background: var(--bg-sub);
        width: 100%;
        padding: 12px 16px;
        margin-top: 12px;
        border-radius: 6px;
    }

    nav.active {
        display: flex;
    }

    nav a {
        padding: 10px 0;
        border-bottom: 1px solid #cfe3d6;
        font-size: 1rem;
    }

    nav a:last-child {
        border-bottom: none;
    }

    /* hero調整 */
    .hero h1 {
        font-size: 1.9rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* 特徴（縦並び） */
    .feature-list {
        flex-direction: column;
        gap: 18px;
    }

    .feature {
        width: 100%;
    }

    /* ページ余白 */
    .page {
        padding: 30px 5% 50px;
    }

    .info-table th,
    .info-table td {
        font-size: 0.9rem;
        padding: 6px;
        word-break: break-word;
    }

    /* Googleフォーム */
    .form-container iframe {
        height: 1600px;
    }

    /* FAQなど文字調整 */
    .faq-item h3 {
        font-size: 1rem;
    }

    .faq-item p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}