/* 基本設定と変数 */
:root {
    --text-color: #5c4c40;     /* テキスト基本色 */
    --accent-color: #8a786a;   /* アクセントカラー */
    --footer-bg: #5c4c40;      /* フッター背景色 */
    --font-serif: 'Noto Serif JP', serif; /* 明朝体フォント */
    --font-brush: 'Yuji Syuku', serif;    /* 筆文字フォント */
}

/* 全体のスタイル */
body {
    font-family: var(--font-serif);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.8;

}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle; /* 画像下の余白対策 */
}

/* ヘッダー */
.site-header {
    background-color: #ffffff;
}

.header-container {
    display: flex;
    justify-content: space-between; /* 両端揃え */
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px; /* 上下の余白を追加 */
    position: relative; /* 中央配置のための基準 */
}

.logo {
    margin: 0;
    font-weight: normal;
}

.logo img {
    display: block;
    max-width: 100px; /* ロゴ画像の最大幅を指定 */
    height: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.main-nav a {
    font-size: 0.9rem;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--accent-color);
}

/* メインコンテンツ */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-image {
    width: 100vw; /* 画面幅いっぱいに */
    max-width: 1200px;
    position: relative;
    left: 50%;
    margin-bottom: 60px;
}

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

.section-title {
    font-size: 1.8rem;
    font-weight: normal;
    margin-bottom: 40px;
    letter-spacing: 0.1em;
}

.about-text p {
    margin-bottom: 1.5em;
}



/* お品書きギャラリー */
.menu-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 画像間の余白を広げる */
    gap: 30px 25px;
    padding: 0 20px; /* 左右の余白を追加 */
}

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

.menu-item img {
    width: 100%;
    /* 画像を正方形に整える */
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.menu-item .menu-name {
    margin-top: 5px; /* 画像との余白を縮小 */
    color: var(--text-color);
}

/* アクセス */
.access-info {
    max-width: 600px; /* 横幅を制限 */
    margin: 0 auto 40px; /* 中央寄せと下の余白 */
    text-align: left;
}

.store-name {
    font-size: 1.5rem; /* 少し大きく */
    font-weight: normal; /* 太字を解除 */
    margin-bottom: 30px; /* 下の余白 */
    text-align: left;
    border-bottom: 1px solid #eee; /* 区切り線 */
    padding-bottom: 15px;
}

.access-grid {
    display: grid;
    /* 1列目（ラベル）を約100px、2列目（情報）を残りの幅に */
    grid-template-columns: 100px 1fr;
    /* 行と列の隙間 */
    gap: 20px 15px;
    align-items: center; /* 要素の縦方向中央揃え */
}

.access-label {
    color: #d4b77a; /* ラベルの色を画像に合わせる */
    text-align: right;
    font-size: 0.9rem;
}

.access-value {
    line-height: 1.7;
}

.phone-number {
    display: flex;
    align-items: center;
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-color);
}

.phone-icon {
    width: 1.8rem;
    height: 1.8rem;
    fill: currentColor; /* 文字色と同じ色にする */
    margin-right: 15px;
}

/* map-container内のiframeのスタイル調整 */
.map-container iframe {
    border: 0; /* iframeのデフォルトの枠線を消す */
    width: 100%; /* 幅をコンテナに合わせる */
}


/* フッター */
.site-footer {
    background-color: var(--footer-bg);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.8rem;
}

/* トップへ戻るボタン */
.to-top-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    opacity: 0; /* 初期状態は非表示 */
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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


/* 画面幅が600px以下の場合のスタイル調整 */
@media (max-width: 600px) {

    /* 「彩について」の文章 */
    .about-text p {
        font-size: 0.8rem; 
        margin-bottom: 1.5em; /* 間隔を狭くする */
    }

    /* アクセス情報の電話番号 */
    .phone-number {
        font-size: 1.6rem; 
        letter-spacing: 1px; 
        margin-bottom: 15px; /* 間隔を狭くする */
    }

    /* アクセス情報の表全体を縦並びにする */
    .access-grid {
        grid-template-columns: 1fr; 
        gap: 10px 0; 
    }

    /* ラベルの文字揃えを左に変更 */
    .access-label {
        text-align: left; 
    }

    /* ヘッダーの「彩について」、「お品書き」、「アクセス」の文字や文字間隔 */
    .main-nav ul {
        gap: 15px; /* 3つの要素同士の間隔を狭くする */
    }
    
    .main-nav a {
        font-size: 0.8rem; 
        letter-spacing: 0.05em; 
    }

    .section-title {
        font-size: 1.5rem; 
        letter-spacing: 0.08em; 
    }

    .store-name {
        font-size: 1.3rem; 
        letter-spacing: 0.05em; 
    }
}

/* style.css に追加、または前回のコードをこちらに置換 */

/* アクセスセクションの店名とアイコンのコンテナ */
.store-name-container {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

/* 元の.store-nameから余白や線を削除 */
.store-name {
    margin: 0;
    padding: 0;
    border: none;
}

/* インスタグラムのアイコン画像 */
.instagram-icon img {
    width: 35px;  /* アイコンの幅 */
    height: 35px; /* アイコンの高さ */
    display: block;
    transition: opacity 0.3s; /* アニメーション効果 */
}

/* アイコンのホバーエフェクト */
.instagram-icon:hover img {
    opacity: 0.7; /* マウスを乗せたら少し透明にする */
}

/* フェードインアニメーションの基本設定 */
.fade-in {
    opacity: 0; /* 最初は透明にする */
    transform: translateY(30px); /* 少し下にずらしておく */
    transition: opacity 1s, transform 0.8s; /* 変化にかかる時間 */
  }
  
  /* 画面に入ったら付与されるクラス */
  .fade-in.is-visible {
    opacity: 1; /* 透明度をなくす */
    transform: translateY(0); /* 元の位置に戻す */
  }

  /* hero-imageのフェードイン専用スタイル */
.hero-image.fade-in {
    /* 横方向の中央寄せ と 縦方向の初期位置 を両方指定 */
    transform: translateX(-50%) translateY(30px);
  }
  
  .hero-image.fade-in.is-visible {
    /* 横方向の中央寄せ と 縦方向の最終位置 を両方指定 */
    transform: translateX(-50%) translateY(0);
  }