/* -----------------------------------------
   1. 基本設定 & 共通パーツ
   ----------------------------------------- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Serif JP', "Yu Mincho", "MS Mincho", serif;
    color: #333;
    line-height: 1.8;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
}

.bg-light {
    background-color: #f9f7f4;
}

/* セクションタイトル */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 30px;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
    letter-spacing: 0.1em;
}

.section-title h2::after {
    content: "";
    width: 50px;
    height: 2px;
    background: #af8b3b;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    font-size: 12px;
    color: #af8b3b;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* -----------------------------------------
   2. ヘッダー
   ----------------------------------------- */
header {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    color: #222;
    margin: 0;
    letter-spacing: 3px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #444;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: #af8b3b;
}

.store-btn {
    background: #af8b3b;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 2px;
}

/* -----------------------------------------
   3. ヒーローエリア（インパクト重視版）
   ----------------------------------------- */
.hero {
    height: 90vh; /* インパクトを出すため高く設定 */
    background-color: #222;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
        url('images/titleback.jpg'); /* 仏壇のクローズアップ写真 */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* パララックス効果 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content h2 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.15em;
    margin: 20px 0;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.6);
}

.sub-title {
    letter-spacing: 0.3em;
    font-size: 18px;
}

.hero-desc {
    font-size: 18px;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

/* -----------------------------------------
   4. お店紹介（縦長写真対応ギャラリー）
   ----------------------------------------- */
.about-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 5:5の比率 */
    gap: 20px;
    margin-bottom: 60px;
}

.gallery-main {
    height: 600px;
    background: #eee;
    overflow: hidden;
}

.gallery-sub-grid.vertical-style {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
}

.gallery-item {
    height: 292.5px; /* メインの高さに合わせる計算 */
    background: #f4f4f4;
    overflow: hidden;
}

/* 画像を枠内に収める魔法の設定 */
.gallery-main img,
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.5s;
}

.gallery-item img:hover {
    transform: scale(1.05); /* 触れると少し拡大 */
}

/* 文章装飾 */
.about-detailed-text {
    max-width: 850px;
    margin: 0 auto;
}

.kodawari-box {
    background: #fdfaf5;
    border: 1px solid #f0ede9;
    padding: 40px;
    margin: 50px 0;
}

.kodawari-box h4 {
    margin-top: 0;
    color: #af8b3b;
    font-size: 20px;
    border-left: 4px solid #af8b3b;
    padding-left: 15px;
}

.owner-sign {
    text-align: right;
    font-weight: bold;
    font-size: 20px;
    margin-top: 40px;
}

/* -----------------------------------------
   5. 取扱商品
   ----------------------------------------- */

/* 1. 商品が並ぶ「親」の枠 */
.product-grid {
    display: grid;
    /* 画面幅に合わせて3列に。1列の最低幅を280pxに設定し、狭くなると自動で改行される設定 */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; /* アイテム同士の隙間 */
    margin-top: 40px;
}

/* 2. 商品アイテム1つずつの「箱」 */
.product-item {
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

/* 3. 画像を入れる枠（ここが拡大の原因でした） */
.image-sample, .product-image {
    width: 100%;       /* 箱の横幅に合わせる */
    height: 200px;     /* 高さを200px〜250px程度に「固定」する */
    overflow: hidden;  /* はみ出した分をカットする */
    background: #f9f9f9;
}

/* 4. 画像そのものの設定 */
.image-sample img, .product-image img {
    width: 100%;
    height: 100%;
    /* ここが重要！「cover」は枠を埋め尽くすように拡大します。
       もし拡大しすぎて困る場合は「contain」に変えると全体が表示されます */
    object-fit: cover; 
    object-position: center; /* 写真の中心を表示 */
}

/* 5. テキスト部分 */
.product-detail {
    padding: 20px;
}

/* マウスホバー時のエフェクト */
.product-item:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

/* ボタンを中央に配置するための親要素 */
.center-btn {
    text-align: center;
    margin-top: 60px; /* 商品グリッドとの間にたっぷり余白をとる */
    margin-bottom: 20px;
}

/* ボタン本体のデザイン */
.online-store-btn {
    display: inline-block;
    padding: 20px 60px;    /* ボタンを大きく、ゆったりさせる */
    background-color: #333; /* 重厚感のある墨色 */
    color: #fff !important;
    text-decoration: none;
    font-size: 18px;       /* 文字を少し大きく */
    font-weight: bold;
    letter-spacing: 0.2em; /* 文字の間隔を広げて高級感を出す */
    border: 1px solid #333;
    border-radius: 0;      /* あえて角を丸めず、伝統的な印象に */
    transition: all 0.4s ease; /* 変化を滑らかに */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* 軽く浮かせる */
}

/* マウスを置いた（ホバー）時の動き */
.online-store-btn:hover {
    background-color: #af8b3b; /* 富山の伝統を感じさせる金茶色に変化 */
    border-color: #af8b3b;
    color: #fff;
    transform: translateY(-3px); /* ぴょこっと上に浮く */
    box-shadow: 0 8px 25px rgba(175, 139, 59, 0.3); /* 影を強調 */
}






/* -----------------------------------------
   6. 店舗情報 & SNS
   ----------------------------------------- */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

table { width: 100%; border-collapse: collapse; }
table th { width: 100px; padding: 15px 0; text-align: left; color: #af8b3b; }
table td { padding: 15px 0; }

.sns-links { margin-top: 40px; display: flex; gap: 20px; }
.sns-icon {
    text-decoration: none;
    font-size: 14px;
    padding: 10px 20px;
    border: 1px solid #333;
    color: #333;
}


/* 地図のコンテナ設定 */
.map-container {
    width: 100%;
    line-height: 0; /* 下にできる謎の隙間を消す */
    border: 1px solid #eee;
}

.map-container iframe {
    width: 100%;
    height: 350px; /* お好みの高さに調整してください */
}


/* -----------------------------------------
   7. フッター
   ----------------------------------------- */
footer {
    background: #87cefa;
    color: #375466;
    padding: 60px 0;
    text-align: center;
}

/* -----------------------------------------
   8. スマホ対応
   ----------------------------------------- */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; }
    nav ul { margin-top: 20px; gap: 10px; }
    .hero h2 { font-size: 32px; }
    .about-gallery { grid-template-columns: 1fr; }
    .gallery-main { height: 400px; }
    .info-grid { grid-template-columns: 1fr; }
}