/* --- Variables & Reset --- */
:root {
    /* 色設定：シンプル・ナチュラル */
    --color-bg: #ffffff;      /* 純白 */
    --color-bg-sub: #f9f9f9;  /* 淡いグレー（区切り用） */
    --color-text: #444444;    /* やわらかい黒 */
    --color-main: #8da399;    /* セージグリーン（くすんだ緑） */
    --color-line: #06c755;    /* LINE公式カラー */
    
    /* フォント */
    --font-serif: "Shippori Mincho", serif;
    --font-sans: "Noto Sans JP", sans-serif;
}

/* 横スクロール防止の必須設定 */
html, body {
    overflow-x: hidden;
    width: 100%;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 2;
    letter-spacing: 0.08em;
    font-weight: 300; /* 細めの文字で洗練さを */
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 共通クラス */
.container {
    max-width: 900px; /* 少し狭めてミニマルに */
    margin: 0 auto;
    padding: 0 20px;
}

.img-placeholder {
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-family: var(--font-sans);
    width: 100%;
    min-height: 250px;
}

/* フェードイン */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 100;
}

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

.header__logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.header__nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
    font-size: 0.9rem;
}

.btn-nav--line {
    border: 1px solid var(--color-line);
    color: var(--color-line);
    padding: 8px 20px;
    border-radius: 2px;
    transition: all 0.3s;
}

.btn-nav--line:hover {
    background-color: var(--color-line);
    color: #fff;
    opacity: 1;
}

.header__hamburger {
    display: none;
}

/* --- Hero Area (左上配置・有機的な形) --- */
.hero {
    position: relative;
    width: 100%;
    height: 90vh;
    display: flex;
    /* ▼ 中央揃え(center)をやめて、上・左寄せに変更 */
    align-items: flex-start; 
    justify-content: flex-start;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* 写真URL */
    background-image: url(images/sample-cooking-hero.png);
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    
    /* ▼ 背景色：少し透けさせて馴染ませる */
    background-color: rgba(255, 255, 255, 0.9); 
    color: var(--color-text);
    
    /* ▼ 配置調整：左上の位置 */
    margin-top: 18vh;  /* 上からの距離 */
    margin-left: 8vw; /* 左からの距離 */
    padding: 60px 50px; /* 余白をたっぷりとる */
    
    /* ▼ 形の変更：ここでお茶碗やお米のような丸みを作っています */
    /* 左上・右上・右下・左下の順で丸みを指定 */
    border-radius: 48% 52% 56% 44% / 54% 45% 55% 46%;
    
    /* ふわふわ浮いているようなアニメーション（任意） */
    animation: float 6s ease-in-out infinite;
    
    max-width: 500px; /* 横に広がりすぎないように */
}

/* 浮遊アニメーションの定義 */
@keyframes float {
    0% { transform: translateY(0px); border-radius: 48% 52% 56% 44% / 54% 45% 55% 46%; }
    50% { transform: translateY(-10px); border-radius: 52% 48% 44% 56% / 45% 55% 46% 54%; }
    100% { transform: translateY(0px); border-radius: 48% 52% 56% 44% / 54% 45% 55% 46%; }
}

.hero__title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.6;
    letter-spacing: 0.1em;
}

.hero__sub {
    font-size: 0.95rem;
    color: #666;
    line-height: 2;
}

/* --- Section Common --- */
.section {
    padding: 120px 0;
}

.section__header {
    text-align: center;
    margin-bottom: 80px;
}

.section__en {
    display: block;
    font-size: 0.75rem;
    color: var(--color-main);
    letter-spacing: 0.2em;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section__jp {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
}

/* --- About --- */
.about__grid {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-direction: row-reverse; /* 画像を右、テキストを左に */
}

.about__img {
    flex: 1;
    height: auto; /* 画像の高さに合わせる */
    aspect-ratio: 4 / 3; /* 比率を4:3に保つ（画像読み込み前のガタつき防止） */
}

.about__text {
    flex: 1;
}

.about__text h4 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.about__text p {
    margin-bottom: 20px;
    color: #666;
}

/* --- Lesson --- */
.lesson {
    background-color: var(--color-bg-sub); /* 背景色を少し変える */
}

.lesson__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.lesson__item {
    background: #fff;
    padding-bottom: 20px;
}

.lesson__img {
    height: 220px;
    margin-bottom: 25px;
}

.lesson__body {
    padding: 0 25px;
}

.lesson__body h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--color-text);
}

.lesson__body p {
    font-size: 0.9rem;
    color: #666;
}

/* --- Gallery --- */
.gallery__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery__item {
    aspect-ratio: 1 / 1;
    cursor: pointer;
    transition: opacity 0.3s;
}

.gallery__item:hover {
    opacity: 0.8;
}

/* --- Price --- */
.price__box {
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid #eee;
    padding: 60px;
}

.price__row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 0;
}

.price__name {
    font-family: var(--font-serif);
}

.price__value {
    font-family: var(--font-sans);
    font-weight: 500;
}

.price__note {
    font-size: 0.8rem;
    color: #999;
    text-align: right;
    margin-top: 30px;
}

/* --- Voice --- */
.voice__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.voice__item {
    text-align: center;
}

.voice__text {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 2.2;
}

.voice__meta {
    font-size: 0.85rem;
    color: var(--color-main);
}

/* --- FAQ --- */
.faq__list {
    max-width: 700px;
    margin: 0 auto;
}

.faq__item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.faq__item summary {
    padding: 20px 0;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-serif);
    position: relative;
    padding-right: 30px;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-main);
    font-weight: 300;
    font-size: 1.2rem;
}

.faq__item[open] summary::after {
    content: '-';
}

.faq__item p {
    padding: 0 0 30px 0;
    font-size: 0.95rem;
    color: #666;
}

/* --- Info --- */
.info__content {
    max-width: 600px;
    margin: 0 auto;
    font-family: var(--font-serif);
}

.info__content dl {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.info__content dt {
    width: 120px;
    color: var(--color-main);
}

.info__content dd {
    flex: 1;
}

/* --- Contact (LINE) --- */
.contact {
    background-color: var(--color-bg-sub);
    text-align: center;
}

.contact__box {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 60px 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.contact__msg {
    margin-bottom: 40px;
    line-height: 2.2;
}

.btn-line {
    display: inline-block;
    background-color: var(--color-line);
    color: #fff;
    font-weight: bold;
    padding: 16px 50px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
    transition: opacity 0.3s;
}

.btn-line:hover {
    opacity: 0.8;
}

/* --- Footer --- */
.footer {
    padding: 40px 0;
    text-align: center;
    font-size: 0.75rem;
    color: #aaa;
}

/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {
    .header__inner {
        padding: 15px 20px;
    }

    /* ！！前回の教訓：スマホでは全て1列に強制 ！！ */
    .lesson__grid,
    .gallery__list,
    .voice__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about__grid {
        flex-direction: column;
        gap: 30px;
    }

    .header__nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: #fff;
        padding: 40px 20px;
        z-index: 99;
    }
    
    .header__nav.is-open {
        display: block;
    }
    
    .header__nav ul {
        flex-direction: column;
        gap: 30px;
    }

    /* Hamburger Menu Icon */
    .header__hamburger {
        display: block;
        width: 30px;
        height: 14px; /* 少し高さを狭くして繊細に */
        background: none;
        border: none;
        position: relative;
        cursor: pointer;
        z-index: 101;
    }
    
    .header__hamburger span {
        position: absolute;
        width: 100%;
        height: 1px; /* 細い線 */
        background: var(--color-text);
        left: 0;
        transition: all 0.3s;
    }
    
    .header__hamburger span:nth-child(1) { top: 0; }
    .header__hamburger span:nth-child(2) { bottom: 0; }

    /* Open State (×印) */
    .header__nav.is-open + .header__hamburger span:nth-child(1) {
        top: 50%;
        transform: rotate(45deg);
    }
    .header__nav.is-open + .header__hamburger span:nth-child(2) {
        bottom: auto;
        top: 50%;
        transform: rotate(-45deg);
    }

    /* ヒーローエリアの高さ調整 */
    .hero {
        /* スマホでは中央に戻す（左上だと狭すぎるため） */
        align-items: center;
        justify-content: center;
        height: 500px;
    }

    .hero__content {
        margin: 0; /* マージンリセット */
        padding: 40px 30px;
        width: 85%;
        max-width: none;
        
        /* スマホでは少し形を安定させる */
        border-radius: 20px; 
    }
    
    .hero__title {
        font-size: 1.6rem;
    }

    .price__box,
    .contact__box {
        padding: 40px 20px;
    }
    
    .info__content dl {
        flex-direction: column;
        gap: 5px;
    }
    
    .info__content dt {
        width: 100%;
        font-weight: bold;
    }
}