/* =============================================
   1. 共通設定 ＆ 変数
   ============================================= */
:root {
    --text-color: #333333;
    --sub-color: #5c4b43;
    --accent-green: #9dbb94;
    --bg-beige: #fdfaf5;
    --line-color: #e8e2d9;
    --letter-spacing: 0.15em;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Shippori Mincho', serif;
    color: var(--text-color);
    background-color: #ffffff;
    margin: 0;
    line-height: 2.2;
    letter-spacing: var(--letter-spacing);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* =============================================
   2. レイアウトの基本（SPパツパツ対策）
   ============================================= */
/* 各セクション自体に左右20pxの余白を作り、中の要素が画面のフチに張り付くのを防ぐ */
.hero,
.lesson-section,
.policy-section,
.concept,
.about,
.lunch-gallery,
header,
footer {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 400;
}

h1 a {
    color: var(--text-color);
    text-decoration: none; /* これでアンダーバーが消えます */
}

/* =============================================
   3. ヘッダー
   ============================================= */
.header {
    background: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #eee;
}

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

.logo {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-link {
    color: var(--sub-color);
    font-size: 1.2rem;
    text-decoration: none;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    text-align: center;
    padding: 0;
}

.menu-btn span {
    display: block;
    width: 25px;
    height: 1px;
    background: #333;
    margin: 6px auto;
}

.menu-btn small {
    font-size: 0.6rem;
    display: block;
    letter-spacing: 0;
    margin-top: -2px;
}

/* =============================================
   4. index.html：Heroセクション（トップ画像）
   ============================================= */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(255,255,255,0.3), rgba(255,255,255,0.3)), url('../img/header.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ★【超重要】スマホでの「パツパツ」を解決する設定 */
.hero-box {
    border: 1px solid var(--accent-green);
    padding: 30px 20px !important;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 30px;
    text-align: center;
    
    /* 横幅を「画面幅から左右の余白を引いた分（最大90%）」に制限し、端から浮かせます */
    width: 90% !important; 
    max-width: 540px !important; /* PCではこの幅でキュッと止まる */
    margin: 0 auto !important;
}

.hero-top { font-size: 0.9rem; margin: 0; }
.hero-name { font-size: 2.2rem; margin: 10px 0; font-weight: 500; }
.hero-catch { font-size: 1.1rem; line-height: 1.8; margin-bottom: 20px; }
.hero-be { 
    font-family: 'Playfair Display', serif; 
    color: var(--accent-green); 
    font-size: 1.8rem; 
    margin: 0;
}

/* =============================================
   5. index.html：Conceptセクション
   ============================================= */
.concept {
    padding: 60px 0;
    background-color: #fff;
    width: 100%;
}

.concept-text {
    text-align: center;
    margin-bottom: 40px;
}

.concept-text p { margin-bottom: 1.5rem; font-size: 0.95rem; }
.concept-highlight {
    font-size: 1.3rem;
    margin: 2.5rem 0 !important;
    color: var(--sub-color);
}

.concept-footer {
    margin-top: 30px;
    font-family: 'Playfair Display', serif;
}

.concept-img {
    width: 100%;
    height: 350px;
    margin-top: 30px;
}

/* =============================================
   6. index.html：About meセクション
   ============================================= */

.about {
    padding: 60px 0;
    background-color: var(--bg-beige);
    width: 100%;
}

.about-flex {
    display: flex;
    flex-direction: column; /* SPは縦並び */
    gap: 0;
    margin-bottom: 0; /* 下のボックスと繋げるため0に */
}

/* 1. プロフィール情報部分 */
.about-profile-box {
    background-color: var(--accent-green);
    color: #fff;
    padding: 35px 25px;
    width: 100%;
}

/* 2. プロフィール画像部分 */
.about-image {
    width: 100%;
    padding: 0 20px; /* 左右に少し余白を持たせる */
    margin: 20px 0;
}

.profile-img {
    width: 100%;
    height: auto; /* 高さを自動にして比率を保つ */
    max-height: 400px; /* 大きすぎないように制限 */
    object-fit: cover;
    border-radius: 20px; /* 角丸でバランス良く */
    display: block;
}

/* 3. メッセージボックス */
.about-message-box {
    background: #fff;
    padding: 40px 25px;
    border-radius: 30px;
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* 影をつけて浮かせる */
}
.about-message-box p {
    text-align: center;
}

/* PC環境のレイアウト（768px以上） */
@media screen and (min-width: 768px) {
    /* Aboutセクション全体を横並びにする */
    .about-flex {
        flex-direction: row; /* 横並びに戻す */
        max-width: 900px;
        margin: 0 auto;
        align-items: stretch;
    }

    /* プロフィール情報と画像を左右50%ずつに */
    .about-profile-box {
        width: 50%;
        padding: 50px;
        border-radius: 40px 0 0 0; /* 左上だけ丸く */
    }

    .about-image {
        width: 50%;
        margin-top: 0;
        padding: 0;
        height: 100%; /* 高さも合わせる */
        border-radius: 0 0 40px 0; /* 右下だけ丸く */
    }

    /* メッセージボックスを親要素の幅に合わせる */
    .about-message-box {
        max-width: 900px;
        margin: -20px auto 0;
        padding: 50px;
    }
}

/* =============================================
   Conceptセクション：修正版
   ============================================= */
.concept-img {
    width: 100%;
    max-width: 900px; /* containerに合わせる */
    margin: 30px auto 0; /* 中央寄せ */
    height: 300px;
    overflow: hidden;
}
.concept-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-footer {
    text-align: center;
    margin-top: 30px;
    font-weight: bold;
}

/* =============================================
   7. index.html：Lessonセクション (トップのプレビュー)
   ============================================= */
.lesson-hero {
    padding: 80px 0;
    background: url('../img/lessonkitchen.jpg') center/cover;
    text-align: center;
    width: 100%;
}

/* 親要素に配置の指示を追加 */
.lesson-preview {
    display: flex;
    justify-content: center; /* これで中央寄せになります */
    padding: 0 20px;         /* 画面端に張り付かないよう余白 */
    width: 100%;
}

/* 子要素（overlay）の微調整 */
.lesson-overlay {
    background: rgba(255,255,255,0.9);
    padding: 40px 30px;      /* 内側の余白を少し整える */
    border-radius: 20px;     /* 角丸を少し大きめにすると綺麗です */
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;  /* paddingを含めて幅を計算させる */
}

/* もし中のテキストやリンクもきれいに揃えたい場合 */
.lesson-overlay h2, 
.lesson-overlay .lesson-intro {
    text-align: center;      /* タイトル類を中央寄せ */
}

/* ボタンを中央寄せにするための指定 */
.lesson-overlay .btn-main {
    display: block;        /* ブロック要素にして幅をコントロール */
    width: fit-content;    /* 文字数に合わせて幅を自動調整 */
    margin: 40px auto 0;   /* 上に40pxの余白を作り、左右をautoで中央寄せ */
    text-align: center;    /* ボタン内の文字を中央へ */
}

.lesson-intro { margin-bottom: 25px; font-size: 1rem; }

.lesson-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0 auto 35px !important;
    max-width: 650px !important; 
    width: 80%;
    text-align: center;
}

.lesson-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-main {
    display: inline-block;
    background-color: var(--accent-green);
    color: #fff;
    padding: 12px 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

/* =============================================
   8. index.html：Galleryセクション
   ============================================= */
.lunch-gallery {
    padding: 60px 0;
    background-color: #fff;
    width: 100%;
}

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

.gallery-item {
    text-align: center;
}

.gallery-label {
    font-size: 1.0rem;
    margin-bottom: 10px;
}

.lunch-img {
    width: 80%; /* 幅を80%に縮小 */
    max-width: 320px; /* 必要に応じて最大幅を設定（例：元のサイズの80%程度） */
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 auto; /* 中央揃えにする場合 */
}

/* =============================================
   9. lesson.html：各パーツ基本（見出し・カード等）
   ============================================= */
.lesson-section { 
    padding: 60px 0; 
    width: 100%;
}

.bg-light { 
    background-color: var(--bg-beige); 
}

.section-intro-text { 
    text-align: center; 
    margin-bottom: 40px; 
    font-size: 0.9rem;
}

.section-intro-text a{
    color: var(--text-color);
}

.lesson-group { margin-bottom: 50px; }

/* 【解決：字幕】すべての見出し下線がびよーんと横に広がらないように固定 */
.lesson-group h3,
.lesson-section h3,
.license-box h3,
.policy-box h3,
.section-title { 
    border-bottom: 2px solid var(--accent-green) !important; 
    display: table !important; 
    margin: 0 auto 25px !important; 
    font-size: 1.4rem; 
    width: auto !important;
    padding-bottom: 8px !important;
    text-align: center;
}

.group-desc { margin-bottom: 25px; font-size: 0.9rem; line-height: 1.6; text-align: center; }

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

.lesson-card { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.card-img { height: 180px; }
.card-content { padding: 20px; }
.card-content h4 { color: var(--accent-green); margin-bottom: 10px; font-size: 1.1rem; }
.card-content h4 span { display: block; font-size: 0.8rem; color: #888; font-weight: normal; margin-top: 5px; }
.price { font-weight: bold; margin-bottom: 10px; border-top: 1px dashed #eee; padding-top: 10px; font-size: 0.95rem; }
.detail { font-size: 0.85rem; line-height: 1.6; }

/* 薬膳茶セクション */
.tea-catch { text-align: center; font-size: 1.1rem; color: var(--sub-color); margin-bottom: 25px; font-weight: bold; }
.tea-description { margin-bottom: 30px; font-size: 0.9rem; }
.tea-description p { margin-bottom: 15px; }
.info-box { background: #fff; padding: 25px 20px; border-radius: 15px; margin-bottom: 20px; }
.info-box h4 { margin-bottom: 15px; color: var(--sub-color); font-size: 1rem; text-align: center;}
.info-box ul { padding-left: 20px; font-size: 0.85rem; }
.info-box ul li { margin-bottom: 8px; }

.content-list { list-style: none; padding: 0; font-size: 0.85rem; }
.content-list li { margin-bottom: 12px; border-bottom: 1px solid #f0f0f0; padding-bottom: 8px; display: flex; flex-direction: column; gap: 5px; }
.content-list span { background: var(--accent-green); color: #fff; font-size: 0.7rem; padding: 2px 8px; border-radius: 3px; width: fit-content; }
.small-note { font-size: 0.75rem; color: #777; margin-top: 10px; }

.info-row { display: flex; flex-direction: column; gap: 15px; margin-top: 25px; }
.info-item { background: #fff; padding: 20px; border-radius: 15px; text-align: center; font-size: 0.9rem; }
.info-item p { margin: 5px 0; font-weight: bold; color: var(--sub-color); }
.info-item span { font-size: 0.8rem; font-weight: normal; color: #666; }
.info-item small { font-size: 0.75rem; color: #888; display: block; margin-top: 5px; line-height: 1.4; }

/* 資格取得セクション */
.license-box { margin-bottom: 40px; }
.license-card-flat { background: #fff; padding: 20px; border-left: 5px solid var(--accent-green); margin-bottom: 20px; border-radius: 0 10px 10px 0; font-size: 0.9rem; }
.license-card-flat h4 { font-size: 1rem; margin-bottom: 10px; }
.license-card-flat h4 span { font-weight: normal; font-size: 0.8rem; display: block; color: #666; margin-top: 3px; }
.license-card-flat p { line-height: 1.6; margin-bottom: 10px; }

.price-details { display: flex; flex-direction: column; gap: 20px; margin-top: 15px; padding-top: 15px; border-top: 1px solid #eee; }
.price-item { font-size: 0.85rem; }
.price-item p { font-weight: bold; font-size: 1rem; margin: 2px 0; color: var(--sub-color); }
.price-item small { color: #888; font-size: 0.75rem; }

/* =============================================
   10. lesson.html：キャンセルポリシー
   ============================================= */
.policy-box { 
    background: #f9f9f9; 
    padding: 30px 20px; 
    border-radius: 10px; 
    border: 1px solid #eee; 
}
.policy-intro {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
}
.cancel-policy-wrapper {
    max-width: 400px !important; 
    margin: 25px auto 0 !important;
    text-align: center;
}
.cancel-group {
    margin-bottom: 15px;
}
.cancel-label {
    background-color: #f4f4f4;
    color: #333;
    padding: 10px 0;
    font-size: 0.9rem;
}
.cancel-value {
    background-color: #e2e7da;
    color: #333;
    padding: 10px 0;
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 2px;
}
.policy-note {
    text-align: center;
    font-size: 0.75rem;
    color: #888;
    margin-top: 20px;
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fdfaf5; /* サイトの背景色に合わせて調整してください */
    border-radius: 15px;
}

/* =============================================
   11. フッター & ドロワー
   ============================================= */
.footer {
    padding: 50px 20px;
    background-color: #fff;
    text-align: center;
    border-top: 1px solid var(--line-color);
    width: 100%;
}
.footer-nav { margin-bottom: 30px; }
.footer-nav a { color: var(--text-color); text-decoration: underline; margin: 0 10px; font-size: 0.8rem; display: block; margin-bottom: 10px; }
.copyright { font-size: 0.75rem; color: #666; }

.drawer-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 200;
}

/* =============================================
   12. 【PCレイアウト最適化】大画面での広がり・マヌケな余白を完全に防ぐ
   ============================================= */
@media screen and (min-width: 768px) {
    .concept .container,
    .lesson-preview .container,
    .lunch-gallery .container,
    .lesson-section,
    .policy-section,
    .tea-description,
    .info-box,
    .license-box,
    .policy-box,
    .section-intro-text {
        max-width: 1000px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* About me セクション横並び */
    .about-flex {
        flex-direction: row;
        align-items: stretch;
        max-width: 900px;
        margin: 0 auto 30px;
    }
    
    .about-profile-box {
        flex: 1;
        border-radius: 40px 0 0 0;
    }
    
    .profile-img {
        width: 45%;
        height: auto;
        min-height: 100%;
        border-radius: 0 0 40px 0;
    }
    
    .about-message-box {
        max-width: 900px;
        margin: -40px auto 0;
        padding: 50px 40px;
    }

    /* ギャラリー3列化 */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 40px !important;
        max-width: 900px !important;
        margin: 0 auto !important;
    }

    /* 講座カード2列化 */
    .card-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px;
    }

    /* 横並び調整 */
    .info-row,
    .price-details {
        flex-direction: row !important;
    }
    
    .info-item,
    .price-item {
        flex: 1 !important;
    }

    .footer-nav a {
        display: inline-block;
        margin: 0 15px;
    }
}
/* ドロワーメニューのアニメーション用　ハンバーガーメニュー箇所 */
.drawer-menu {
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    /* align-items: center;  ← これを削除（これが左寄せを邪魔していました） */
    align-items: center; /* コンテナ自体を親の中で中央にするために残す場合は以下が必要 */
}

.drawer-nav {
    /* ここがポイント：メニュー幅を固定または最大幅を決めて中央に寄せる */
    width: 200px; /* メニューの項目の長さに合わせて調整してください */
    margin: 0 auto; /* これでメニュー全体が中央に配置されます */
}

.drawer-nav ul {
    list-style: none;
    padding: 0;
    text-align: left; /* リストの中身（文字）を左寄せにする */
}

.drawer-nav li {
    margin-bottom: 30px;
}

.drawer-nav a {
    display: flex;       /* アイコンとテキストを横並びにする */
    align-items: center; /* 縦位置を揃える */
    gap: 12px;           /* ← ここを追加！アイコンとテキストの隙間を広げます */
    font-size: 1.5rem;
    color: var(--sub-color);
    text-decoration: none;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}
