﻿@charset "UTF-8";

/* ===== 基本設定 ===== */
body {
    margin: 0;
    font-family: "Times New Roman", "游明朝", serif;
    background-color: #fdf5e6;
    color: #2e2a25;
    line-height: 1.8;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== ヘッダー ===== */
.site-header {
  background-color: #808080;
    color: #fff;
    padding: 2rem 1.5rem 0.4rem;
}

.site-header h1 {
    margin: 0;
    /* 1. タイトルの下の隙間をマイナス指定して、下のメニューを上に引き寄せます */
    margin-bottom: 1.2rem; 
    /* 2. 行の高さを最小限にして、文字の上下の透明な隙間を削ります */
    line-height: 1;
    font-size: 2rem;
    text-align: left;
}

.nav-list {
  list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
}

.nav-list a {
 color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
}
.nav-list a:hover {
    text-decoration: underline;
}
.back-btn {
   position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 8px 16px;
    background: #808080;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

.back-btn:hover {
    text-decoration: underline;
}

/* ===== ヒーロー ===== */
.hero {
    padding: 0; /* 画像を横いっぱいに広げる場合は0に */
    background: #e8e3dc;
    overflow: hidden;
   
}

.hero-image-container {
    position: relative; /* 文字を画像の上に重ねるための基準 */
    width: 100%;
    max-height: 570px; /* 必要に応じて高さを制限 */
}

.hero-img {
    width: 100%;
    height: auto;
    object-fit: cover; /* 比率を保ちつつエリアを埋める */
    display: block;
}

/* 画像の上に文字を載せる設定 */
.hero-text {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%); /* 中央配置 */
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* 文字を見やすくする影 */
    text-align: center;
    width: 100%;
}

.hero-text h2 {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    margin-bottom: 3rem;
}

.hero-text p {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
}

/* ===== 共通セクション ===== */
section {
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    margin-top: 0rem;
}

/* ===== About ===== */
.about p {
    text-align: center;
}

/* ===== Products ===== */
.product-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    /* もし親要素に display: block 等が他で指定されていたら無効化するため */
    width: 100%; 
}
/* 個別の商品カード */
.product {
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #eee;
    padding: 0 0 0 0; /* 上:0, 右:0, 下:20px, 左:0 に変更 */
    width: 300px;
    flex-shrink: 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden; /* 画像の角を丸めたい場合などに有効 */
}


.product h3 {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.product p {
    font-size: 0.9rem;
}

.price {
    display: block;
    margin: 0.5rem 0;
    font-weight: bold;
}

.product button {
    background: #808080;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.product button:hover {
    opacity: 0.8;
}

.product img {
    width: 100%;
    height: 300px;        /* ★ 高さを固定 */
    object-fit: cover;   /* ★ はみ出た分はトリミング */
    margin-bottom: 15px;
    display: block;
}

/* 3. テキスト部分だけに左右の余白（padding）を作る */
.product h3, 
.product p, 
.product .price, 
.product button {
    padding-left: 20px;
    padding-right: 20px;
}

/* ===== フッター ===== */
footer {
    text-align: center;
    padding: 1rem;
    background: #808080;
    color: #fff;
    font-size: 1rem;
}


/* ===== Contact SNS ===== */
.social-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center; 
}

.social-links a {
    display: inline-block;
    padding: 0.7rem 2rem;
    border: 1px solid #808080;
    color: #808080;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #808080;
    color: #fff;
}

/* 元のボタンの見た目を再現 */
.detail-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #808080; /* 画像のグレーに近い色 */
    color: white;
    cursor: pointer;
    border-radius: 0; /* 四角いデザインの場合 */
    font-size: 14px;
    text-decoration: none;
    /* ↓ 動きを滑らかにするための設定 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    margin-top: auto;    /* 上に自動でマージンを取り、ボタンを下に押し下げる */
    margin-bottom: 30px;
}
.detail-btn:hover {
    transform: translateY(-2px); /* 3px上に持ち上げる */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 影を付けて浮遊感を出す */
}
/* チェックボックスは完全に隠す */
.modal-check {
    display: none;
}

/* モーダル背景（画面全体を覆う） */
.modal-layer {
    display: none; /* 普段は隠す */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6); /* 背景を暗く */
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* チェックが入った時だけ表示 */
.modal-check:checked + .modal-layer {
    display: flex;
}

/* 白い詳細画面のボックス */
.modal-box {
    background: white;
    padding: 40px;
    width: 80%;
    max-width: 450px;
    position: relative;
    text-align: center; /* 中身を中央寄せ */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* 閉じるボタン */
.close-btn {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

