@charset "UTF-8";

/*共通部分*/
html {
    font-size: 100%;
    font-family: 'Courier New', Courier, monospace
}

body {
    background-color: #f3e5ab;
    color: #a0522d;
    margin: 0;
}

/*ロゴ・タイトル・メニュー*/
.header-container {
    display: flex; /*横並びにする*/
    justify-content: space-between; /* これで左にタイトル、右にメニューが配置されます */
    align-items: center; /*ロゴと文字の高さを揃える*/
    gap: 20px; /*ロゴと文字の間の隙間を作る*/
    background-color: #4e342e;
    color: #f3e5ab;
    padding: 10px 30px;
}

/* ロゴとタイトルのセットを横に並べる */
.header-logo-group {
    display: flex;
    align-items: center; /* 上下の中心を揃える */
    gap: 20px;           /* 画像とタイトルの間の隙間 */
}

.logo {
    width: 80px; /*ロゴの大きさを調節(好きなように調節)*/
    height: auto;
}

/* 念のため、タイトル周りの余白をリセット */
.header-text h1, .header-text h2 {
    margin: 0;
}
h1 {
    line-height: 1.2;
}

h2 {
    font-size: 1rem;
}

.main-nav {
    display: flex;
    justify-content: flex-end;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    text-decoration: none;   /* 下線を消す */
    color: #f3e5ab;          /* 文字の色（お好みで！） */
    font-weight: bold;       /* 少し太くすると見やすいです */
    font-size: 1.3rem;
}

.main-nav li {
    white-space: nowrap;
}

.main-nav a:visited {
    color: #f3e5ab; 
    color: inherit
}

.main-nav a:hover {
    color: #8b4513;
}

/* リンクの「デフォルトの青」を無効化する魔法 */
nav a {
    color: inherit; /* 親要素の色（設定した色）をそのまま使うよ！という意味 */
    text-decoration: none; /* 下線を消す */
}



/*メイン*/
.about {
    background-color: #4e342e;
    color: #f3e5ab;
    max-width: 736px;
    margin: 3rem auto; /* 上下3rem、左右autoで中央寄せ */
    padding: 3rem 1.5rem; /* 上下にも余白を足すと茶色の箱に余裕が出ます */
    border-radius: 16px; /* 箱の角も丸くすると画像と合いますよ */
    padding-top: 4rem;    /* 上にゆとりを */
    padding-bottom: 4rem; /* 下にゆとりを */
    /* 中身を中央に並べる魔法 */
    display: flex;
    flex-direction: column; /* 上から順に並べる */
    align-items: center;    /* 横方向の中央揃え */
    text-align: center;     /* 文章も中央揃え */
}
.about p {
    margin-bottom: 1rem;
}

h3 {
     font-size: 3rem;
     margin: 2rem; 
    }

.about img {
    display: block;
    width: 100%;       /* 箱の幅いっぱいに広げる */
    max-width: 500px;  /* でも大きすぎないように制限 */
    height: auto;      /* 高さは自動 */
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 2rem; /* 下の文字との間に隙間を作る */
}

/*フッター*/
.page-footer {
    background-color: #4e342e;
    text-align: center;
    padding: 2rem 0;
    margin-top: 6rem;
    color: #f3e5ab;
}

.copyright {
    font-size: 0.8rem; /* 少し小さくするとフッターらしくなります */
}

/*items*/

.grid {
    display: grid;
    /* 横に3つ、同じ幅で並べる */
    grid-template-columns: repeat(3, 1fr); 
    gap: 3rem 2rem; /* アイテム同士の隙間 */
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.item {
    background-color: #ffffff; /* 白い背景をカード全体に敷く */
    border-radius: 12px; /* 角を丸くする */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* ふんわり影をつける */
    padding: 20px; /* カードの内側に余白を作る */
    text-align: center; /* 文字を真ん中揃えにする（お好みで！） */
    transition: transform 0.3s ease; /* ③のフワッと動く準備 */
}

.item img {
   width: 100%;
    aspect-ratio: 1 / 1; 
    object-fit: contain;
}

.item p {
    margin-top: 0.5px; /* 写真と文字の間に少し隙間を空ける */
    font-weight: bold; /* 文字を太くして目立たせる */
    color: #4a3b32; /* お店の雰囲気に合わせて、少しこげ茶色にする */
}

.item:hover {
    transform: translateY(-5px); /* 上に5px移動する */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* 浮いた分、影を少し濃くする */
}

/* style.css のヘッダー部分 */
.header-container, .sub-cover {
    background-color: #4e342e;
    color: #f3e5ab;
    /* ...その他の設定... */
}

/* =================================================
   モーダル（詳細窓）のスタイル
   ================================================== */

/* 1. モーダル全体の背景（黒い半透明の膜） */
.modal {
  display: none;    /* 最初は隠しておく */
  position: fixed;  /* 画面の決まった位置に固定 */
  z-index: 1000;    /* 他の要素より一番手前に出す */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* 黒色を70%薄くする */
  backdrop-filter: blur(5px); /* 👈 これを足すだけ！5pxの数字はお好みで！ */
}

/* 2. 真ん中の白い窓本体 */
.modal-content {
  background-color: #fff;
  margin: 10% auto;   /* 上から10%下げて、左右は中央に */
  padding: 30px;
  width: 80%;         /* スマホでも見やすい幅 */
  max-width: 500px;   /* パソコンで広がりすぎないように制限 */
  border-radius: 15px; /* 角を丸くして可愛く */
  position: relative;
  text-align: center; /* 中の文字や画像を真ん中に寄せる */
  animation: fadeIn 0.3s; /* ちょっとだけふわっと出すアニメーション */
}

/* ふわっと出すためのアニメーション設定 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 3. 閉じるボタン（×） */
.close-btn {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 30px;
  font-weight: bold;
  color: #999;
  cursor: pointer; /* マウスを乗せると指マークになる */
}

.close-btn:hover {
  color: #333; /* マウスを乗せた時に少し濃くする */
}

/*contact*/

.email h3 {
    text-align: center; /* 文字を真ん中に！ */
    margin-bottom: 10px; /* お好みで、下の茶色い箱との間に少し隙間をあけます */
}
/*背景を茶色に*/
.contact-wrapper {
    background-color: #4e342e; 
    color: #f3e5ab; /* 背景が暗いので、説明文の文字を白にします */
    padding: 40px 20px; /* 箱の内側にゆとりを持たせます */
    margin: 10px auto; /* 箱の外側（上下）に隙間をあけます */
    max-width: 800px; /* 箱が横に広がりすぎないようにします */
    border-radius: 8px; /* 角をほんの少し丸く（お好みで！） */
}

/* 説明文を読みやすくする */
.contact-wrapper p {
    text-align: center; /* 文字を真ん中寄せに */
    line-height: 1.8; /* 行間をあけて読みやすく */
    margin-bottom: 30px; /* フォームとの間に隙間をあける */
}

/* フォーム全体の枠組み */
.contact-form {
    max-width: 600px; /* フォームの最大幅 */
    margin: 30px auto; /* 中央寄せ＆上下の余白 */
    text-align: left; /* 中の文字は左寄せに */
    background-color: #ffffff; /* 背景を白に */
    padding: 40px; /* 内側の余白 */
    border: 1px solid #e0e0e0; /* 薄いグレーの枠線 */
}

/* 各項目のまとまり（余白をあける） */
.form-item {
    margin-bottom: 25px;
}

/* 「お名前」などのラベル */
.form-item label {
    display: block; /* 縦並びにする魔法 */
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 15px;
    color: #333;
}

/* 「必須」の赤い文字 */
.required {
    color: #d9534f; /* 画像のような少し落ち着いた赤 */
    font-size: 12px;
    margin-left: 10px;
    font-weight: normal;
}

/* 入力する箱（1行用と複数行用） */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%; /* 横幅いっぱいに広げる */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px; /* 角をほんの少し丸く */
    box-sizing: border-box; /* はみ出さないようにする魔法 */
    font-size: 16px; /* スマホで拡大されないように16pxに */
}

/* 送信ボタンのエリア（左寄せにする） */
.submit-btn {
    text-align: center; /* 画像に合わせて左寄せに */
    margin-top: 30px;
}

/* 送信ボタンのデザイン */
.submit-btn button {
    background-color: #f08323; /* 画像のようなオレンジ色 */
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer; /* マウスを乗せたら指のマークに */
    transition: 0.3s; /* ふわっと色を変える準備 */
}

/* ボタンにマウスを乗せたとき */
.submit-btn button:hover {
    opacity: 0.8; /* 少し透明にして押した感を出します */
}

.contact img {
    width: 100%;       /* 箱の幅いっぱいに広げる */
    max-width: 500px;  /* でも大きすぎないように制限 */
    height: auto;      /* 高さは自動 */
    border-radius: 15px; /* 角を丸くして可愛く */
    margin-bottom: 2rem;
    margin-top: 2rem;
    display: block;      /* 魔法1：画像を文字扱いから「ブロック（箱）」に変身させる！ */
    margin-left: auto;   /* 魔法2：左の隙間を「自動」にする */
    margin-right: auto;  /* 魔法3：右の隙間も「自動」にする（左右から均等に押されて真ん中になる！） */
}

/* --- ここからスマホ用の設定 --- */
@media screen and (max-width: 768px) {
 /* --- 既存の .about 設定 --- */
    .about {
        width: 90%; 
        margin: 2rem auto;
        padding: 1.5rem;
    }

    /* ヘッダー全体：要素を縦に並べる、または間隔を詰める */
    .header-container {
        flex-direction: column; /* タイトルとメニューを縦に並べる */
        padding: 15px;
        gap: 15px;
    }

    /* ロゴとタイトルのセット */
    .header-logo-group {
        flex-direction: row;    /* row（横）にする */
        justify-content: center; 
        align-items: center;    
        gap: 10px;               
    }

    .logo {
        width: 60px; /* スマホではロゴを少し小さく */
    }

    /* タイトルの文字サイズ調整 */
    h1 {
        font-size: 1.1rem; /* 横に並ぶよう、少し小さめに */
        text-align: left;
    }

    h2 {
        font-size: 0.7rem;
        text-align: left;
    }
    /* ナビゲーション（Itemsボタンなど） */
    .main-nav {
        justify-content: center; /* 中央に寄せる */
        gap: 1.5rem; /* ボタン同士の間隔を少し詰める */
        font-size: 1rem; /* 文字をスマホサイズに */
    }

/*items*/

.grid {
        grid-template-columns: repeat(1, 1fr); /* 1列にする */
        gap: 30px; /* 縦の隙間を広めにする */
    }
.item {
    background-color: #fff;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* 上詰めに配置 */
    height: auto !important;
}

.item img {
    width: 100% !important;
    /* 【ここが超重要！】高さを200pxに固定して、全員同じ土俵に乗せる */
    height: 200px !important; 
    /* 写真を切り取らず、枠の中に綺麗に収める（余白は自動で調整される） */
    object-fit: contain !important; 
    margin-bottom: 5px !important; /* 写真と文字の間の距離 */
    background-color: #f9f9f9; /* 写真の周りの余白が気になるなら、薄いグレーを敷くとオシャレ */
}

.item p {
    margin: 0 !important;
    padding: 5px 0 !important;
    text-align: center !important;
    width: 100% !important;
    font-size: 16px;
    line-height: 1.2;
}

/* ===================================
   スマホ用ハンバーガーメニューの設定
=================================== */

/* パソコン画面では3本線ボタンを隠す */
.menu-btn {
    display: none;
}

/* 👇ここから、画面の横幅が768px以下の時（スマホサイズ）だけ発動する魔法👇 */
@media (max-width: 768px) {
    /* ===================================
   パソコン画面では3本線ボタンを隠す（※必ず @media の外に書きます！）
=================================== */
.menu-btn {
    display: none;
}

/* --- ここからスマホ用の設定 --- */
@media screen and (max-width: 768px) {
    
    /* --- 既存の .about 設定 --- */
    .about {
        width: 90%; 
        margin: 2rem auto;
        padding: 1.5rem;
    }

    /* ヘッダー全体 */
    .header-container {
        flex-direction: column; 
        padding: 15px;
        gap: 15px;
        position: relative; /* 💡追加！これでボタンが右上にピタッとくっつきます */
    }

    /* ロゴとタイトルのセット */
    .header-logo-group {
        flex-direction: row;    
        justify-content: center; 
        align-items: center;    
        gap: 10px;               
    }

    .logo {
        width: 60px;
    }

    /* タイトルの文字サイズ調整 */
    h1 {
        font-size: 1.1rem;
        text-align: left;
    }

    h2 {
        font-size: 0.7rem;
        text-align: left;
    }

    /* ===================================
       👇ここから追加！ハンバーガーメニュー👇
    =================================== */
    
    /* 1. 3本線ボタンを表示して、右上に配置する */
    .menu-btn {
        display: block;
        position: absolute; 
        top: 70px; /* 上からの距離 */
        right: 15px; /* 右からの距離 */
        z-index: 100; 
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    /* 3本線のデザイン */
    .menu-btn span {
        display: block;
        width: 30px;
        height: 3px;
        background-color: #f3e5ab; 
        margin: 6px auto;
    }

    /* 2. メニュー全体を画面いっぱいに広げて隠す */
    #g-nav {
        position: fixed; 
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; 
        background-color: rgba(243, 229, 171, 0.95); /* クリーム色の半透明 */
        display: flex;
        justify-content: center;
        align-items: center; 
        z-index: 90; 
        opacity: 0; /* 最初は見えない状態 */
        visibility: hidden; 
        transition: opacity 0.4s ease, visibility 0.4s ease; 
    }

    /* スマホ用にメニューの文字を大きく、縦並びに！ */
    #g-nav ul {
        list-style: none;
        padding: 0;
        text-align: center;
        display: flex;
        flex-direction: column; /* 縦並びにする */
        gap: 30px; /* 文字同士の隙間 */
    }

    #g-nav ul li a {
        font-size: 24px;
        color: #4e342e;
        text-decoration: none;
        font-weight: bold;
    }

    /* 3. ボタンが押されたらフワッと現れる！ */
    #g-nav.is-active {
        opacity: 1; 
        visibility: visible; 
    }

    /* ===================================
       👆ハンバーガーメニューここまで👆
    =================================== */

    /*items*/
    .grid {
        grid-template-columns: repeat(1, 1fr); 
        gap: 30px; 
    }
}