/* =========================================================
   塚本鑛吉商店 style.css (整理・統合版)
========================================================= */

html {
    scroll-behavior: smooth;
    /* 慣性スクロールと喧嘩しないように auto に変更 */
    scroll-behavior: auto;
}

/* --- Base & Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 15px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* --- Loading --- */
#loading {
    position: fixed;
    inset: 0;
    background: #001a33;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.8s;
}

#loading.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    height: 80px; /* ★ スマホでもPCでもバランスの良い大きさに設定 */
    width: auto;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 40px;
    background: linear-gradient(to bottom, rgba(0, 38, 74, 1), transparent);
    transition: 0.4s;
    color: #fff;
}

.header.scrolled {
    background: #00264a;
    padding: 15px 40px;
    border-bottom: 0.5px solid #fcf7f07e; /* ★ここを追加！ゴールドの細い線を引きます */
}

/* 2ページ目専用：最初からベタ塗りのヘッダーの場合も追加 */
.header.header-solid {
    background: #00264a;
    border-bottom: 0.5px solid #fcf7f07e; /* ★ここを追加！ゴールドの細い線を引きます */
}

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

.header__logo {
    display: flex;
    align-items: center;
}

.header__logo a {
    display: block;
    line-height: 1;
}

.header__logo img {
    height: 50px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.header__logo a:hover img {
    opacity: 0.8;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header__nav-list {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* --- Header Navigation --- */
.header__nav-list > li > a {
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
    display: inline-block;
}

.header__nav-list > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #A88647;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.header__nav-list > li > a:hover::after {
    width: 100%;
}

.header__dropdown li a::after {
    display: none;
}

.header__nav-item-has-child {
    position: relative;
}

/* --- プルダウンメニュー --- */
.header__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    background: rgba(0, 38, 74, 0.601); 
    backdrop-filter: blur(8px);
    width: 260px;
    padding: 8px 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border-radius: 0 0 8px 8px;
    border-top: 2px solid #A88647; 
}

.header__nav-item-has-child:hover .header__dropdown {
    display: block;
}

.header__dropdown li {
    list-style: none;
}

.header__dropdown li a {
    display: flex;
    align-items: center;
    padding: 6px 20px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.header__dropdown li a::before {
    content: '─';
    margin-right: 12px;
    color: #A88647;
    font-size: 0.7rem;
    opacity: 0.6;
}

.header__dropdown li a:hover {
    background: rgba(168, 134, 71, 0.15);
    color: #fff;
    padding-left: 28px;
}

.header__dropdown li a::after {
    display: none !important;
}

/* ドロップダウンメニューの「中古探索依頼」「杜氏さんアイディア」の上に区切り線を引く */
.header__dropdown li:nth-last-child(1),
.header__dropdown li:nth-last-child(2) {
    border-top: 1px solid rgba(168, 134, 71, 0.3);
    margin-top: 4px;
    padding-top: 4px;
}
/* =========================================================
   タブレット〜小さめのPC（769px〜960px）のヘッダー改行防止
========================================================= */
@media (min-width: 769px) and (max-width: 960px) {
    /* ヘッダー左右の余白を少し狭く */
    .header {
        padding: 12px 20px;
    }
    .header.scrolled {
        padding: 8px 20px;
    }
    
    /* ロゴを少しだけ小さくしてスペースを確保 */
    .header__logo img {
        height: 32px;
    }
    
    /* メニュー全体と電話番号の間の隙間を縮小（30px → 15px） */
    .header__nav {
        gap: 15px;
    }
    
    /* 各メニュー項目同士の隙間を縮小（20px → 10px） */
    .header__nav-list {
        gap: 10px;
    }
    
    /* メニューの文字サイズを微調整 */
    .header__nav-list > li > a {
        font-size: 0.8rem;
    }
    
    /* 電話番号の文字サイズを微調整 */
    .header__tel {
        font-size: 0.9rem;
    }
}
/* ============================================
   Hero (Key Visual)
============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #001a33;
}

.hero__bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    object-position: left;
}

.hero__floating-box {
    position: absolute;
    right: 5%;
    bottom: 8%;
    width: 36vw;
    max-width: 500px;
    height: 42vh;
    max-height: 320px;
    z-index: 3;
    border: 8px solid #fff;
    box-shadow: -10px 15px 30px rgba(0, 0, 0, 0.4);
    animation: floatImage 6s ease-in-out infinite;
}

.hero__floating-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes floatImage {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(0, 38, 74, 0.6) 50%, rgba(0, 38, 74, 0.95) 100%);
}

.hero__content {
    position: relative;
    z-index: 4;
    text-align: center;
    color: #fff;
    width: 100%;
    padding: 0 20px;
    pointer-events: none;
}

.hero__copy-main {
    display: block;
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 3.5rem); 
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 10px 40px rgba(0, 0, 0, 0.9);
}

.hero__copy-sub {
    display: block;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 1.6vw, 1.5rem);
    letter-spacing: 0.15em;
    color: #e8d5b5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 10px 30px rgba(0, 0, 0, 0.9);
}

@media screen and (max-width: 768px) {
    .hero__bg-img {
        object-position: 20% center; 
    }
    .hero__floating-box {
        width: 60vw;
        height: 25vh;
        right: 10vw;
        bottom: 12%;
        border-width: 5px;
    }
    .hero__copy {
        padding: 30px 20px;
    }
    .hero__copy-main {
        letter-spacing: 0.1em;
        line-height: 1.5; /* ★ 改行されたときに詰まりすぎないよう 1.4 から 1.5 に微調整 */
        font-size: 2.0rem; /* ★ ここを追加！（大きさを 2.0rem 〜 2.5rem でお好みで調整してください） */
    }
    .hero__copy-sub {
        font-size: 1.1rem; /* ★ サブコピーもバランスを取って少し大きくしました */
        margin-top: 10px;  /* ★ メインとの間に少し余白を追加 */
    }

}

/* ============================================
   Page Links / Section Common
============================================ */
#news, #products, #company, #access, #contact, #section-used, #section-idea {
    scroll-margin-top: 100px;
}

.section { padding: 100px 0; }
.section--gray { background: #f8f8f8; }

.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.4rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #A88647; 
}

.section-subtitle {
    display: block;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #888;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title.title-inverse {
    color: #fff;
    margin-bottom: 0;
}

.section-title.title-inverse::after {
    background: #A88647; 
}

.section-title.title-inverse .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .section-title { font-size: 1.8rem; }
    .section-subtitle { font-size: 0.8rem; }
}

/* =========================================
   お知らせ（News）
========================================= */
.news-list {
    background: #fff;
    border: 1px solid #e0e4e8; /* ★ この行を追加（製品カードと同じ薄いグレーの線） */
    border-radius: 12px;       /* ★ 他のカードに合わせて 10px から 12px に変更 */
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.news-list::-webkit-scrollbar { width: 6px; }
.news-list::-webkit-scrollbar-track { background: #f1f1f1; }
.news-list::-webkit-scrollbar-thumb { background: #00264a; border-radius: 10px; }

/* ★ PCでは1行（日付・タイトル・アイコンが横並び）のレイアウトを作ります */
.news-item {
    display: grid !important;
    grid-template-columns: 130px 1fr 30px; /* 左:日付130px、中:タイトル残り全部、右:アイコン30px */
    align-items: center;
    gap: 15px; /* 要素間の隙間 */
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.3s;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: #f0f4f8; }

/* 1列目：日付 */
.news-item__date {
    grid-column: 1;
    grid-row: 1;
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 2列目：タイトル */
.news-item__title {
    grid-column: 2;
    grid-row: 1;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* 3列目：アイコン */
.news-item__icon {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #ccc; 
    transition: all 0.3s ease;
    width: 22px;
    height: 22px;
}

.news-item__icon svg {
    width: 100%;
    height: 100%;
}

/* マウスを乗せた時の演出 */
.news-item:hover .news-item__icon {
    color: #A88647; 
    transform: translate(2px, -2px) scale(1.1);
}

/* =========================================
   スマホ用（768px以下）は2行にする設定
========================================= */
@media (max-width: 768px) {
    .news-item {
        grid-template-columns: 1fr 30px; /* 左は文字、右はアイコン */
        grid-template-rows: auto auto;   /* 縦に2行 */
        gap: 4px 15px; /* 上下の隙間4px、左右15px */
        padding: 16px 20px; /* スマホでは少し余白を狭めてスマートに */
    }

    /* 1行目：日付 */
    .news-item__date {
        grid-column: 1;
        grid-row: 1;
        font-size: 0.85rem;
    }

    /* 2行目：タイトル */
    .news-item__title {
        grid-column: 1;
        grid-row: 2;
        font-size: 1rem;
    }

    /* 2列目：アイコン（2行ぶち抜き） */
    .news-item__icon {
        grid-column: 2;
        grid-row: 1 / 3;
    }
}
/* --- Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}
.modal-overlay.active { display: flex; }

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    /* 右の余白を少し狭くして、スクロールバーのスペースを作ります */
    padding: 40px 20px 40px 40px; 
    border-radius: 15px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.4s ease;
    
    /* ▼ 枠が画面からはみ出さないための絶対設定 ▼ */
    max-height: 90vh; 
    display: flex;
    flex-direction: column;
}

/* ▼ 中身（文字）だけをスクロールさせる設定 ▼ */
#modalBody {
    overflow-y: auto;
    padding-right: 20px; /* 文字がスクロールバーと被らないように */
    flex-grow: 1;
}

/* スクロールバーのデザイン */
#modalBody::-webkit-scrollbar { width: 6px; }
#modalBody::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
#modalBody::-webkit-scrollbar-thumb { background: #A88647; border-radius: 10px; }

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    z-index: 10; /* ×ボタンが文字の下に潜り込まないように */
}

.modal-date { color: #888; font-size: 0.9rem; margin-bottom: 10px; }
.modal-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 20px; color: #00264a; }
.modal-text { font-size: 1rem; line-height: 1.8; color: #444; margin-bottom: 30px; }

.modal-btn {
    display: inline-block;
    background: #00264a;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}
.modal-btn:hover { background: #004080; }

/* ============================================
   Products & Pickups
============================================ */
.products-header-gradient {
    background: linear-gradient(135deg, #002D58 30%, #001A33 70%);
    color: #fff;
    text-align: center;
    padding: 90px 0;
    position: relative;
	margin-top: 60px; /* ★ここを追加（数値はお好みで調整してください） */
}
.products-header-gradient + .container {
    padding-top: 50px;
}

/* =========================================
   見出しバナー (おすすめ PICK UP / カテゴリーで選ぶ 等)
   ========================================= */
.section-banner {
    background: linear-gradient(to right, #002D58, #001A33);
    color: #fff;
    text-align: center;
    padding: 20px 20px; /* ★ 高さをしっかり確保 */
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    cursor: default;
    position: relative;
    overflow: hidden;
    font-family: 'Noto Serif JP', serif;
    font-size: 1.6rem;
    letter-spacing: 0.2em;
    display: flex;           /* ★ テキストを天地中央に配置 */
    align-items: center;     /* ★ テキストを天地中央に配置 */
    justify-content: center; /* ★ 横方向も中央に配置 */
}

/* index.html内のおすすめバナー用 (h3タグ) */
.section-banner h3 {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 0 !important;
    margin-top: 0; 
}

.pickup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.pickup-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* --- カード全体の枠組み --- */
.pickup-card {
    border: 1px solid #e0e4e8;
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    position: relative; /* ★ テキストや画像を重ねるための基準にする */
    height: 380px;      /* ★ カードの高さを指定（お好みで調整可能） */
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pickup-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 38, 74, 0.15);
    border-color: #b3d1ff;
}

/* --- 画像エリア（カード全体に配置） --- */
.pickup-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* ★ 背景を少し明るいグレーにして、画像がない部分と馴染ませる */
    background: #fcfcfd;
}

.pickup-img-wrapper img {
    width: 100%;
    height: 100%;
    /* ★ object-fit を contain に変更して、画像全体を枠内に綺麗に収める */
    object-fit: contain;
    /* ★ 画像を中央に配置 */
    object-position: center; 
    transition: transform 0.5s ease;
}

/* ホバー時の演出（containなのでズームは控えめに） */
.pickup-card:hover .pickup-img-wrapper img {
    transform: scale(1.02);
}

/* --- テキストエリア（画像の下部に明るいグラデーションで重ねる） --- */
.pickup-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    /* ★ テキストと被らないよう、上の余白を多めに取ってグラデーションをなだらかに */
    padding: 80px 25px 25px; 
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* ★ 明るいゴールド・白系グラデーション */
    /* 上(透明) -> 真ん中(薄い白) -> 下(上品な薄いゴールド #fdfaf3) へ変化 */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 40%, rgba(253, 250, 243, 0.95) 100%);
}

/* --- 杜氏さんのアイディア専用 OVERRIDE (ひらめきデザイン修正版) --- */
.pickup-card-toji {
    border: 2px solid #A88647; /* 枠線を少し太めのゴールドに */
    background: linear-gradient(135deg, #fdfaf3 0%, #f4e8d1 100%);
}

.pickup-card-toji:hover {
    border-color: #d4b572;
    box-shadow: 0 12px 25px rgba(168, 134, 71, 0.25);
}

.pickup-card-toji .pickup-img-wrapper {
    background: transparent;
    position: relative;
    overflow: hidden;
    padding-bottom: 0; 
}

/* ① 背景画像（人物イラスト）はハッキリ見せる */
.pickup-card-toji .pickup-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 1; /* 透かしをなくしハッキリ表示 */
    transition: transform 0.5s ease;
}

.pickup-card-toji:hover .pickup-img-wrapper img {
    transform: scale(1.02); /* ホバー時に少しズーム */
}

/* ② 電球アイコンを右下に配置し、絶対に切れないようにする */
.pickup-card-toji .pickup-img-wrapper .bulb-icon {
    position: absolute;
    top: 125px;  /* 配置（上から）はお好みで微調整してください */
    left: 105px; /* 配置（左から）はお好みで微調整してください */
    z-index: 2;
    width: 90px;
    height: 90px;
    object-fit: contain; /* ★ 画像全体を枠内に綺麗に収める魔法のコード！ */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    filter: drop-shadow(0 0 0 rgba(243, 203, 116, 0)); 
}

/* ホバー時に電球が光り、少し上に跳ねる */
.pickup-card-toji:hover .pickup-img-wrapper .bulb-icon {
    transform: scale(1.45) translateY(-5px); /* 少しだけ大きくなって跳ねる */
    filter: drop-shadow(0 0 5px rgba(254, 247, 41, 0.9)); 
}

/* ③ タイトル部分の背景グラデーションを復活（noneを削除） */
.pickup-card-toji .pickup-text {
    padding-bottom: 25px; /* 下の余白だけ他のカードと揃える */
}

/* 杜氏さんカード内のテキスト色調整 */
.pickup-card-toji .pickup-title-ja {
    color: #664E23; /* 温かみのあるブラウン */
}
.pickup-card-toji .pickup-desc {
    color: #8b7d6b;
}

/* =========================================
   消えてしまった共通テキスト色指定を復活
   ========================================= */
.pickup-title-en { 
    font-weight: 700; font-size: 0.91rem; color: #A88647; 
    letter-spacing: 0.05em; margin-bottom: 5px; 
}
.pickup-title-ja { 
    font-weight: 700; font-size: 1.35rem; color: #00264a; 
    line-height: 1.3; margin-bottom: 8px; text-shadow: none; 
}
.pickup-desc { 
    font-size: 0.94rem; color: #555; margin-bottom: 0; line-height: 1.5; 
}
/* =========================================
   「おすすめ PICKUP」ジャンプマーク
========================================= */
.pickup-jump-icon {
    display: none !important;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(0, 38, 74, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 3;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.pickup-card:hover .pickup-jump-icon {
    background: #A88647;
    transform: translate(3px, -3px) scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.pickup-jump-icon svg {
    width: 16px;
    height: 16px;
}

/* =========================================
   POPUP用のリッチなボタン
========================================= */
.btn-rich-jump {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #A88647 0%, #664E23 100%);
    color: #fff !important;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(168, 134, 71, 0.3);
    transition: all 0.3s ease;
}
.btn-rich-jump:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(168, 134, 71, 0.5);
    background: linear-gradient(135deg, #bfa05d 0%, #7d602b 100%);
}
.btn-rich-jump svg {
    width: 20px;
    height: 20px;
    margin-left: 10px;
}

/* ============================================
   Category Grid & Buttons
============================================ */
.category-nav-wrapper {
    background: #fff;
    padding: 40px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.category-nav-wrapper2 {
    background: #fff;
    padding: 0 0 40px 0;
    border-radius: 10px;
    margin-bottom: 20px;
}
/* ★ 下のボタンの枠と続く場合の余白をさらに詰める追加コード */
.category-nav-wrapper + .category-nav-wrapper {
    margin-top: -10px;
    padding-top: 10px;
}
@media (max-width: 768px) {
    .category-nav-wrapper { display: none !important; }
}


.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.cat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700; /* ★ ここを追加して太字にしました */
    color: #333;
    text-decoration: none;
    min-height: 60px;
    line-height: 1.3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06); 
    transition: all 0.3s ease; 
}
.cat-btn:hover {
    background: #00264a;
    color: #fff;
    border-color: #00264a;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

@media (max-width: 960px) {
    .pickup-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .category-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   「おすすめ PICKUP」横4列化に伴うレスポンシブ（画面割れ防止）
========================================================= */
@media (max-width: 1024px) {
    /* タブレットサイズ（1024px以下）のときは2列×2行にする */
    .pickup-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    /* スマホサイズ（600px以下）のときは縦に1列で並べる */
    .pickup-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Company, History, Access, Contact
============================================ */
.company-header-gradient, .access-header-gradient, .contact-header-gradient, .news-header-gradient {
    background: linear-gradient(135deg, #002D58 30%, #001A33 70%);
    color: #fff;
    text-align: center;
    padding: 90px 0;
    position: relative;
	margin-top: 60px; /* ★ここを追加（数値はお好みで調整してください） */
}

.company-card, .access-card {
    background: #fff;
    border: 1px solid #b3d1ff;
    border-radius: 10px;
    padding: 60px 50px;
    margin-bottom: 55px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.company-card .yakusyoku{
    font-size: 16px;
    display: inline-block;
    margin-right: 1em;
    font-weight: 400;
}
.company-card-title {
    font-size: 1.8rem;
    font-family: 'Noto Serif JP', serif;
    color: #001a33;
}
.company-card-title, .access-card-title, .section-banner h3 {
    position: relative;
    padding-bottom: 15px; 
    margin-bottom: 30px;
    display: block;
    text-align: center;
}
.company-card-title::after, .access-card-title::after, .section-banner h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px; 
    height: 1px;  
    background: #A88647; 
}

.greeting-layout, .info-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}
.greeting-text-area { flex: 1; font-size: 1.1rem; line-height: 2.2; }
.greeting-image-area, .info-image-area { width: 220px; flex-shrink: 0; }
.info-image-area { width: 280px; }
.greeting-image-area img, .info-image-area img { width: 100%; height: auto; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); }
.info-table-area { flex: 1; }

.company-detail-table { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.company-detail-table th { width: 100px; text-align: left; vertical-align: top; padding: 12px 0; font-weight: 500; color: #333; }
.company-detail-table td { padding: 12px 0; vertical-align: top; line-height: 1.8; }
/* 特定のthの2文字のところ、間隔を広げる */
.company-detail-table th.space-2 {letter-spacing: 0.95em;}
.invoice-number { text-align: center; margin-top: 40px; font-size: 0.95rem; font-weight: 700; }

/* History */
.history-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 50px;
    padding: 10px 0;
}
.history-timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 120px;
    width: 2px;
    background: rgba(0, 38, 74, 0.15); 
}
.history-item {
    display: flex;
    position: relative;
    margin-bottom: 35px;
    align-items: center; 
}
.history-item:last-child { margin-bottom: 0; }
.history-item::before {
    content: '';
    position: absolute;
    top: 50%; 
    left: 110px; 
    transform: translateY(-50%); 
    width: 14px; 
    height: 14px;
    border-radius: 50%;
    background: #A88647; 
    border: 4px solid #fff; 
    z-index: 1;
    transition: all 0.3s ease;
}
.history-item:hover::before {
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 0 8px rgba(168, 134, 71, 0.5);
}
.history-date { width: 100px; padding-right: 30px; text-align: right; font-weight: 700; color: #00264a; font-family: 'Noto Serif JP', serif; }
.history-desc { flex: 1; padding-left: 30px; color: #333; line-height: 1.6; }

@media (max-width: 768px) {
    .history-timeline::before { left: 15px; }
    .history-item { flex-direction: column; margin-bottom: 25px; align-items: flex-start; }
    .history-item::before { top: 14px; left: 5px; transform: none; }
    .history-date { width: 100%; text-align: left; padding-left: 40px; margin-bottom: 5px; color: #A88647; }
    .history-desc { padding-left: 40px; }
}

.history-gallery { margin-top: 50px; display: flex; flex-direction: column; gap: 40px; }
.history-gallery-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.history-gallery-item { display: flex; flex-direction: column; }
.history-gallery-caption { background: #d9d9d9; color: #333; font-size: 0.9rem; font-weight: 700; text-align: center; padding: 8px 10px; margin-bottom: 10px; }
.history-gallery-group { display: flex; flex-direction: column; }
.history-gallery-img { flex: 1; display: flex; justify-content: center; align-items: flex-start; }
.history-gallery-img img { max-width: 100%; width: auto; height: auto; max-height: 280px; border: 1px solid #ccc; box-shadow: 2px 2px 5px rgba(0,0,0,0.1); }

@media (max-width: 768px) {
    .history-gallery-row { grid-template-columns: 1fr; gap: 20px; }
    .history-gallery { gap: 30px; }
}
@media (max-width: 960px) {
    .greeting-layout, .info-layout { flex-direction: column-reverse; }
    .greeting-image-area, .info-image-area { width: 100%; max-width: 300px; margin: 0 auto 30px; }
    .company-card { padding: 40px 20px; }
}

/* Access */
.access-card { display: flex; gap: 40px; }
.access-left { flex: 0 0 250px; display: flex; flex-direction: column; }
.access-card-title { font-family: 'Noto Serif JP', serif; font-size: 1.8rem; margin-bottom: 20px; letter-spacing: 0.1em; color: #001a33; line-height: 1.4; }
.access-card-subtitle { display: block; font-size: 0.95rem; color: #666; font-family: 'Noto Sans JP', sans-serif; margin-bottom: 5px; }
.access-left img { width: 100%; height: auto; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); border-radius: 4px; }
.access-right { flex: 1; display: flex; flex-direction: column; }
.access-info-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin-bottom: 20px; }
.access-info-table th { width: 90px; text-align: left; vertical-align: top; font-weight: 500; padding-bottom: 10px; color: #333; }
.access-info-table td { padding-bottom: 10px; line-height: 1.6; }
.access-map { width: 100%; height: 280px; background: #eee; border-radius: 5px; overflow: hidden; border: 1px solid #ddd; }
.access-map iframe { width: 100%; height: 100%; border: 0; }

.access-left .access-card-title { text-align: left; padding-bottom: 10px; }
.access-left .access-card-title::after { left: 0; transform: none; width: 30px; }

@media (max-width: 768px) {
    .access-card { flex-direction: column; padding: 30px 20px; }
    .access-left { flex: none; width: 100%; max-width: 300px; margin: 0 auto; text-align: center; }
    .access-info-table th { width: 70px; }
}

/* Contact */
.contact-info-area { text-align: center; margin-bottom: 50px; }
.contact-lead { font-size: 1.1rem; font-weight: 500; margin-bottom: 40px; line-height: 1.8; color: #333; }
.contact-tel-fax { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.contact-tel { font-size: 2.5rem; font-weight: 400; color: #00264a; display: flex; align-items: center; gap: 10px; letter-spacing: 0.05em; }
.contact-fax { font-size: 1.4rem; font-weight: 400; color: #888; display: flex; align-items: center; gap: 10px; letter-spacing: 0.05em; }
.contact-icon { width: 1em; height: 1em; fill: currentColor; }
.contact-form-card { background: #fff; border-radius: 15px; padding: 60px; max-width: 1000px; margin: 0 auto; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); }
.form-card-title { text-align: center; font-size: 1.2rem; font-weight: 500; margin-bottom: 40px; position: relative; }
.form-card-title::before { content: 'CONTACT'; display: block; font-size: 0.7rem; color: #999; letter-spacing: 0.2em; margin-bottom: 5px; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-size: 0.9rem; margin-bottom: 8px; font-weight: 500; }
.form-group label .required { color: #c41e3a; margin-left: 5px; font-size: 0.8rem; }
.form-control { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 8px; background: #fafafa; font-family: inherit; font-size: 1rem; transition: all 0.3s; }
.form-control:focus { outline: none; border-color: #00264a; background: #fff; }
textarea.form-control { min-height: 150px; resize: vertical; }
.form-submit-wrapper { text-align: center; margin-top: 40px; }
.btn-submit { background: #333; color: #fff; border: none; padding: 15px 60px; border-radius: 50px; font-size: 1rem; letter-spacing: 0.1em; cursor: pointer; transition: 0.3s; }
.btn-submit:hover { background: #00264a; }

@media (max-width: 768px) {
    .contact-tel { font-size: 1.8rem; }
    .contact-fax { font-size: 1.2rem; }
    .contact-form-card { padding: 40px 20px; }
}


/* ============================================
   Product Details (Accordion & Cards)
============================================ */
.product-list-section { scroll-margin-top: 100px; margin-bottom: 100px; }
.product-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

/* --- 製品一覧カードのレイアウト変更 --- */
.product-card { 
    background: #fff; border: 1px solid #e0e4e8; border-radius: 12px; padding: 18px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03); transition: transform 0.3s, box-shadow 0.3s; 
    display: grid; 
    grid-template-columns: 140px 1fr; 
    /* ★ さらに変更：3行目(説明)と4行目(スペック)も高さを固定し、余った空間は5行目(PDFボタンの行)で吸収させる */
    grid-template-rows: max-content max-content max-content max-content 1fr;
    gap: 0 25px; 
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08); border-color: #b3d1ff; }

/* HTML構造を無視してGridに直接配置 */
.product-info { display: contents; }

/* 1行目：キャッチコピー */
/* ★ 隙間を詰めるために margin-bottom と min-height を減らしました */
.product-catch { font-size: 1.05rem; color: #002D58; font-weight: 700; margin-bottom: 0; line-height: 1.3; grid-column: 1 / -1; min-height: 46px; display: flex; align-items: center;}

/* 2行目：製品名タイトル */
.product-title { font-family: 'Noto Serif JP', serif; font-size: 1.57rem; font-weight: 700; color: #001a33; margin-top: 0; margin-bottom: 10px; line-height: 1.3; grid-column: 1 / -1; padding-bottom: 0px; border-bottom: 1px solid #e0e4e8; min-height: 80px; }
.product-img { grid-column: 1; grid-row: 3 / 10; width: 100%; display: flex; align-items: flex-start; justify-content: center; }
.product-img img { max-height: 200px; object-fit: contain; }

/* 3行目以降（右側）：説明 */
.product-desc { font-size: 0.98rem; color: #555; margin-bottom: 25px; line-height: 1.6; grid-column: 2; }

/* カウンタークロス／メンテナンスクロス 等のバリエーション表示用 */
.cross-variation {
    margin-bottom: 10px;
    grid-column: 2; /* 右側のテキストエリアに配置 */
}
.cross-variation-item {
    margin-bottom: 12px;
    line-height: 1.4;
}
.cross-variation-item:last-child {
    margin-bottom: 0;
}
.cross-variation-name {
    display: block;
    font-weight: 700;
    color: #001a33;       /* メインタイトルと同じ紺色で太字に */
    font-size: 1.05rem;
    margin-bottom: 2px;
}
.cross-variation-size {
    display: block;
    font-size: 0.95rem;
    color: #333;
}

.product-accordion { 
    margin-bottom: 20px; 
    border: 1px solid #c5c5c5; 
    border-radius: 8px; background: #fff; 
    scroll-margin-top: 100px; 
}
.product-accordion-title { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; padding: 18px 25px; 
    background: #fdfaf3; 
    color: #00264a; 
    font-size: 1.2rem; font-weight: 700; 
    cursor: pointer; 
    list-style: none; 
    transition: background 0.3s ease, color 0.3s ease; 
    /* ▼ここから追加▼ */
    position: sticky;
    top: 70px;         /* スクロール時の上部ヘッダーの高さ分だけ下げる */
    z-index: 90;       /* 重なり順（製品画像より上、ヘッダーより下） */
    border-radius: 8px;/* 角丸をタイトル自体に指定 */
}
.product-accordion-title::-webkit-details-marker { display: none; }
.product-accordion-title:hover { background: #f4e8d1; }
.accordion-icon { position: relative; width: 24px; height: 24px; }
.accordion-icon::before, .accordion-icon::after { content: ''; position: absolute; background: #A88647; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease; }
.accordion-icon::before { width: 16px; height: 2px; }
.accordion-icon::after { width: 2px; height: 16px; }

/* --- 乾燥機などのバリエーション内部用 dl, dt, dd グリッド設定 --- */
.toji-specs-dl {
    display: grid;
    grid-template-columns: max-content 1fr; /* 左の見出し幅を自動でピタッと揃える */
    gap: 2px 0; /* 計量クレーンと同じ隙間ゼロ設定 */
    line-height: 1.4;
    font-size: 0.95rem;
    color: #333;
    margin-top: 6px; /* 「ボックス」という文字との間の微調整 */
}

.toji-specs-dl dt {
    font-weight: 700;
    text-align: right;
    font-size: 0.85rem; /* 他のdtと同じ小さめフォント */
    padding-top: 2px;
}

.toji-specs-dl dd {
    margin-left: 0;
    margin-bottom: 0;
}

details[open] .product-accordion-title { 
    background: #00264a; 
    color: #fff; 
    /* ▼ここから追加▼ */
    border-radius: 8px 8px 0 0; /* アコーディオンが開いている時は下半分の角丸をなくす */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* 重なっている感を出すために影をつける */
}
details[open] .accordion-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
details[open] .accordion-icon::before, details[open] .accordion-icon::after { background: #fff; }

.product-accordion-content { padding: 30px 25px; background: #fff; animation: accordion-fade-in 0.4s ease-out forwards; }
@keyframes accordion-fade-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Used Equip Box */
.used-equip-box { background: #fff; padding: 60px 40px; border-radius: 12px; text-align: center; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03); border: 1px solid #e0e4e8; }
.used-equip-text { margin-bottom: 30px; font-size: 1.1rem; color: #001A33; line-height: 1.8; }
.btn-used-equip { display: inline-flex; align-items: center; justify-content: center; background: #00264a; color: #fff; padding: 18px 50px; border-radius: 50px; font-size: 1.1rem; font-weight: 700; letter-spacing: 0.05em; transition: all 0.3s; box-shadow: 0 5px 15px rgba(0, 38, 74, 0.2); text-decoration: none; }
.btn-used-equip:hover { background: #001a33; color: #fff; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 38, 74, 0.3); }
.btn-used-equip svg { margin-left: 10px; width: 20px; height: 20px; fill: currentColor; }

/* Product Specs */
.product-specs { 
    font-size: 0.95rem; 
    color: #001A33; 
    margin-bottom: 12px; 
    grid-column: 2; 
    /* ★ Gridレイアウトに変更し、どんな文字数でも自動でピシッと揃える */
    display: grid;
    grid-template-columns: max-content 1fr;
    /* ★ 上下の隙間を4pxから「2px」に減らしました（0pxにしてもOKです） */
    /* ★ 左右の隙間を 10px から「6px」に狭めました */
    gap: 2px 0; 
    /* ★ 文字自体の行間も少し引き締めてコンパクトにしました */
    line-height: 1.4;}
    
/* ★ !important をつけて、HTMLに直接書かれている古い幅指定をすべて無効化する */
.product-specs dt { 
    font-weight: 700; 
    width: auto !important; 
    text-align: right;
    font-size: 0.85rem; /* ← ★これを追加して文字を小さくします */
    padding-top: 2px;   /* ← ★右側の文字（dd）と高さがズレる場合は、ここで微調整します */
}
.product-specs dd { margin-left: 0 !important; margin-bottom: 0; }

/* Product Links (PDF/Video) */
/* ★ margin-top: auto; をやめて固定の余白にし、ボタンを上に詰める(align-self: start)設定を追加 */
.product-links { 
    margin-top: 7px; 
    display: flex; 
    gap: 15px; 
    padding-top: 5px; 
    grid-column: 2; 
    align-self: start; 
}
.link-btn-item { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 55px; height: 50px; border: 1px solid #e0e4e8; border-radius: 8px; background: #fff; transition: all 0.3s; text-decoration: none; }
.link-btn-item:hover { background: #f0f4f8; border-color: #00264a; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
.link-btn-icon { width: 24px; height: 24px; margin-bottom: 2px; }
.icon-pdf { color: #c41e3a; }
.icon-video { color: #00264a; }
.link-btn-label { font-size: 0.6rem; font-weight: 700; color: #001A33; letter-spacing: 0.05em; }

/* Business Items (Category 16) */
.business-items-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.business-card { background: #fff; border: 1px solid #e0e4e8; border-radius: 10px; padding: 30px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03); transition: transform 0.3s, box-shadow 0.3s; }
.business-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 38, 74, 0.08); border-color: #b3d1ff; }
.business-card-title { font-family: 'Noto Serif JP', serif; font-size: 1.3rem; color: #00264a; border-bottom: 2px solid #00264a; padding-bottom: 12px; margin-bottom: 15px; line-height: 1.4; }
.business-card-list { list-style: none; font-size: 1rem; color: #444; line-height: 1.6; }
.business-card-list li { position: relative; padding-left: 1.2em; }
.business-card-list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 5px; height: 5px; background: #004080; border-radius: 50%; }
/* リストの特定の項目の「下」に区切り線を引くクラス */
.business-card-list li.line-bottom {
    border-bottom: 1px dashed #c5c5c5; /* 点線（実線がいい場合は dashed を solid に変更） */
    padding-bottom: 8px; /* 線と「上の文字」との隙間 */
    margin-bottom: 8px;  /* 線と「下の文字」との隙間 */
}
@media (max-width: 960px) { .business-items-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { 
    .business-items-grid { grid-template-columns: 1fr; } 
    
    /* スマホ時の製品カード上書き */
    /* ★ grid-template-rows: none; を追加して固定を解除 */
    .product-card { grid-template-columns: 1fr; grid-template-rows: none; text-align: center; }
    .product-catch, .product-title, .product-img, .product-desc, .product-specs, .product-links { grid-column: 1 / -1; }
    .product-img { grid-row: auto; margin-bottom: 15px; }
    .product-links { justify-content: center; }
}

/* =========================================================
   中古探索依頼 セクション (吹き出し等)
========================================================= */
.used-request-intro {
    display: flex;
    align-items: center;
    gap: 25px;
    /* 光るグラデーションをやめて単色に固定します */
    background: #e4f0e9;
    padding: 30px;
    border-radius: 15px;
    border: none;
    margin-bottom: 50px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 77, 64, 0.05);
    /* 背景が動く設定を削除し、浮き上がる動きだけ残します */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.used-request-intro:hover {
    /* ホバー時は少し浮き上がるだけになります */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 77, 64, 0.1);
}
.used-request-intro::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-top: 20px solid #e4f0e9;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
}
.used-request-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: #00264a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.used-request-icon svg { width: 30px; height: 30px; }
.used-request-text { font-size: 1.1rem; line-height: 1.5; color: #001A33; font-weight: 500; }
.used-request-text .text-note { font-size: 0.95rem; color: #666; display: inline-block; margin-top: 5px; }
.google-form-container { width: 100%; border-radius: 8px; overflow: hidden; background: #fafafa; border: 1px solid #ddd; }

@media (max-width: 768px) {
    .used-request-wrapper { padding: 30px 20px; }
    .used-request-intro { flex-direction: column; text-align: left; padding: 20px 15px; gap: 15px; }
    .used-request-icon { margin: 0 auto; }
}

/* =========================================================
   杜氏さんのアイディア セクション
========================================================= */
.toji-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e4e8;
}
.toji-intro-box-button-style {
    background: linear-gradient(135deg, #fdfaf3 0%, #f4e8d1 100%);
    border: 1px solid #e8d5b5;
    border-left: 5px solid #A88647; 
    padding: 20px 40px 20px; 
    border-radius: 12px;
    margin-bottom: 70px; 
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.toji-intro-box-button-style:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(168, 134, 71, 0.2); 
}
.toji-intro-text { font-size: 1.1rem; line-height: 1.5; color: #333; font-weight: 500; }
.toji-intro-note { font-size: 0.85rem; color: #c41e3a; margin-top: 20px; font-weight: 700; }

.toji-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.toji-card { border: 1px solid #eaeaea; border-radius: 8px; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; background: #fff; position: relative; overflow: hidden; }
.toji-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); border-color: #A88647; }
.toji-card::before { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%); transform: skewX(-25deg); pointer-events: none; z-index: 10; }
.toji-card:hover::before { animation: shine-card 0.7s ease-in-out forwards; }
@keyframes shine-card { 0% { left: -100%; } 100% { left: 200%; } }

.toji-img { background: #f1e5cf3a; padding: 10px; text-align: center; border-bottom: 1px solid #eaeaea; display: flex; align-items: center; justify-content: center; min-height: 190px; }
.toji-img img { max-height: 180px; width: auto; }
.toji-content { padding: 15px; flex: 1; display: flex; flex-direction: column; }

/* --- 杜氏さんのアイディア タイトル強弱設定 --- */
.toji-title {
    display: flex;
    flex-direction: column; /* 縦に並べる */
    margin-bottom: 10px; /* 余白を縮小 */
    line-height: 1.3;
}
/* 上部のキャッチコピー（小さめ・緑色） */
.toji-title-sub {
    font-size: 0.8rem;
    font-weight: 700;
    color: #006644; 
    margin-bottom: 5px; /* 余白を縮小 */
}
/* 下部の製品名（大きめ・太字） */
.toji-title-main {
    font-size: 1.15rem;
    font-weight: 700;
    color: #4a3f35;
}

/* 新しく追加：下部の価格とボタンを横並びにするエリア */
.toji-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* 余白を埋めて一番下に押し下げる */
    gap: 10px; /* ボタンと価格の間隔 */
}

/* 金額の指定を上書き（ボタンがないカードも考慮） */
.toji-price { font-size: 1.2rem; font-weight: 700; color: #c41e3a; text-align: right; margin-top: auto; }
.toji-bottom .toji-price { margin-top: 0; }
.toji-desc { font-size: 0.85rem; color: #444; margin-bottom: 15px; line-height: 1.6; }
.toji-specs { font-size: 0.8rem; color: #666; background: #f1e5cf3a; padding: 10px; border-radius: 4px; margin-bottom: 15px; line-height: 1.5; }

/* ボタンの指定を上書き（コンパクトに！） */
.toji-jump-btn { display: inline-block; background: #A88647; color: #fff; font-size: 0.8rem; font-weight: 700; padding: 6px 18px; border-radius: 50px; text-decoration: none; transition: background 0.3s; }
.toji-jump-btn:hover { background: #004080; }

@media (max-width: 960px) { .toji-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .toji-wrapper { padding: 30px 20px; }
    .toji-grid { grid-template-columns: 1fr; }
    .toji-intro-box-button-style { text-align: left; padding: 25px 15px; }
}


/* =========================================================
   中古探索依頼 ＆ 杜氏さんのアイディア：ボタンと見出しの統合デザイン
========================================================= */

/* --- 単体・横並びコンテナ共通 --- */
.search-request-container { margin: 40px 0; width: 100%; display: flex; justify-content: center; }
.action-buttons-flex { display: flex; gap: 15px; margin: 30px auto; width: 100%; max-width: 1060px; }

/* --- ボタン本体 --- */
.search-request-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(50% - 5px);
    padding: 34px 70px; 
    margin: 0 auto;
    background: linear-gradient(135deg, #e0f2f1 0%, #f1f8e9 100%);
    border-radius: 100px;
    border: 1px solid rgba(128, 203, 196, 0.3);
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 77, 64, 0.05);
    transition: all 0.3s ease;
}
.action-buttons-flex .search-request-button { flex: 1; padding: 30px 60px; max-width: none; }
.search-request-button:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(0, 77, 64, 0.1); border-color: rgba(128, 203, 196, 0.6); }

/* 杜氏のアイディア専用カラー */
.btn-toji-idea { background: linear-gradient(135deg, #fdfaf3 0%, #f7f0e0 100%) !important; border: 1px solid rgba(240, 230, 210, 0.6) !important; }

/* --- アイコンとテキスト --- */
.search-request-button .icon-circle {
    position: absolute;
    left: 25px;
    background: transparent;
    box-shadow: none; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}
.search-request-button .icon-circle svg { width: 36px; height: 36px; color: #00796b; }
.btn-toji-idea .icon-circle svg, .btn-toji-idea .chevron { color: #8b7d6b !important; }

.search-request-button .chevron {
    position: absolute;
    right: 25px;
    font-size: 20px;
    color: #00796b;
    transition: transform 0.3s ease;
    margin: 0;
}
.search-request-button:hover .chevron { transform: translateX(5px); }

/* --- アイコンとテキスト --- */
.search-request-button .text-content { flex-grow: 0; text-align: center; margin: 0; }

.search-request-button .main-title-text { 
    font-size: 24px !important; /* ★ 26pxに大きくし、HTML側の指定を強制上書き */
    font-weight: 700; 
    color: #37474f; 
    letter-spacing: 0.05em; 
    line-height: 1.1; 
}

.search-request-button .sub-text { 
    font-size: 18px !important; /* ★ ついでにサブテキストも少しだけ見やすく */
    color: #78909c; 
    margin-top: 5px; 
    font-weight: 500; 
}

/* 2ページ目ボタン：電球画像が絶対に切れないように枠内に綺麗に収める設定 */
.btn-toji-idea .icon-circle .bulb-icon-btn {
    width: 52px;         /* ボタン内のバランスに合わせてサイズを微調整 */
    height: 52px;
    object-fit: contain; /* ★これを入れることで、画像がはみ出さず全体が綺麗に縮小されます */
    transition: transform 0.3s ease, filter 0.3s ease; /* アニメーションをなめらかに */
}

/* ホバー時に電球が少し大きくなって上に跳ねる演出（トップページと統一） */
.btn-toji-idea:hover .icon-circle .bulb-icon-btn {
    transform: scale(1.15) translateY(-2px);
    filter: drop-shadow(0 0 8px rgba(243, 203, 116, 0.6)); /* ほんのり光らせる */
}

/* --- リッチ見出しデザイン --- */
.custom-heading-wrapper { width: 100%; margin: 150px 0 50px; text-align: center; }
.custom-section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 30px 20px; 
    margin-top: 60px;    
    margin-bottom: 40px; 
    border-radius: 8px;
    border: none;
    font-family: 'Noto Serif JP', serif;
    font-size: 1.8rem; 
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    cursor: default;
}
.custom-section-heading .heading-icon { display: flex; align-items: center; justify-content: center; background: transparent; box-shadow: none; margin-right: 15px; width: auto; height: auto; flex-shrink: 0; }
.custom-section-heading .heading-icon svg { width: 50px; height: 50px; color: #fff; }

.heading-search { background: linear-gradient(to right, #006644, #003322); }
.heading-idea { background: linear-gradient(to right, #A88647, #664E23); }

/* --- 見出しバー・バナーの波紋エフェクト --- */
@keyframes ripple-wave {
    0% { width: 0; height: 0; opacity: 0.5; }
    100% { width: 200%; padding-top: 200%; opacity: 0; }
}
.custom-section-heading::after, .section-banner::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%; 
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}
.custom-section-heading:hover::after, .section-banner:hover::after { animation: ripple-wave 1.0s ease-out forwards; }

/* 見出し内の電球画像が切れないように枠内に綺麗に収める設定 */
.custom-section-heading .heading-icon .bulb-icon-heading {
    width: 62px;  /* 先ほどの変更に合わせて、こちらも52pxに設定 */
    height: 62px;
    object-fit: contain; /* 画像がはみ出さないように全体を縮小・調整 */
    
    /* 背景のゴールドグラデーションと同化しないよう、ほんのり白い光（影）を落とす */
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7)); 
}


/* =========================================================
   Responsive (Products Page Grid / Shared)
========================================================= */
@media (max-width: 960px) {
    .product-card-grid { grid-template-columns: 1fr; width: 100%; min-width: 0; }
    .search-request-button { width: 100%; }
}
@media (max-width: 768px) {
    .custom-heading-wrapper { margin-top: 80px; }
    .custom-section-heading { margin-top: 60px; margin-bottom: 30px; font-size: 1.4rem; padding: 20px 15px; min-height: 80px; letter-spacing: 0.1em; }
    .custom-section-heading .heading-icon svg { width: 28px; height: 28px; margin-right: 10px; }
    .search-request-button { padding: 15px 50px; }
    .search-request-button .icon-circle { left: 15px; }
    .search-request-button .chevron { right: 15px; }
    .search-request-button .main-title-text { font-size: 18px !important; }
}
@media (max-width: 600px) {
    .header__nav, .header__tel { display: none; }
    .action-buttons-flex { flex-direction: column; }
    .product-card { flex-direction: column; align-items: center; text-align: center; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
    .product-info { width: 100%; min-width: 0; }
    .product-title, .product-catch, .product-desc, .product-specs { overflow-wrap: anywhere; text-align: left; margin-bottom: 30px;}
    .product-img { width: 100%; min-width: 0; }
    .product-img img { max-width: 100%; height: auto; }
    .product-specs dt { float: none; width: auto; display: inline-block; }
    .product-specs dd { margin-left: 0; display: inline; text-align: left; }
    .product-specs dd::after { content: '\A'; white-space: pre; }
    .product-list-section { margin-bottom: 80px; }
}


/* =========================================================
   Footer
========================================================= */
.footer { background: linear-gradient(135deg, #002D58 30%, #001A33 70%); color: #fff; padding: 60px 0 40px; font-family: 'Noto Sans JP', sans-serif; }
.footer-container { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.footer-banners { display: flex; justify-content: space-between; align-items: center; margin-bottom: 60px; gap: 40px; }
.footer-banner-left { flex: 0 0 450px; }
.footer-banner-right { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.custom-banner { display: flex; align-items: center; justify-content: flex-start; border-radius: 12px; padding: 15px 25px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); transition: transform 0.3s ease, box-shadow 0.3s ease; text-decoration: none; color: inherit; position: relative; overflow: hidden; }
.custom-banner:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }
.footer-banner-left .custom-banner { height: 90px; }
.footer-banner-right .custom-banner { min-height: 60px; height: auto; padding: 12px 45px 12px 20px; }
.banner-content { flex: 1; display: flex; flex-direction: column; }
.banner-title { font-family: 'Noto Serif JP', serif; font-size: 1.2rem; font-weight: 700; line-height: 1.2; letter-spacing: 0.1em; }
.footer-banner-right .banner-title { font-size: 0.95rem; line-height: 1.4; word-break: keep-all; text-align: left; }
.banner-desc { font-size: 0.75rem; font-weight: 400; opacity: 0.8; margin-top: 5px; }
.banner-jump-icon { position: absolute; top: 15px; right: 20px; width: 20px; height: 20px; color: #fff; opacity: 0.8; transition: all 0.3s ease; }
.footer-banner-right .banner-jump-icon { top: 50%; transform: translateY(-50%); right: 15px; }
.banner-jump-icon svg { width: 100%; height: 100%; }
.custom-banner:hover .banner-jump-icon { opacity: 1; transform: translate(3px, -3px) scale(1.1); }
.footer-banner-right .custom-banner:hover .banner-jump-icon { transform: translateY(-50%) translate(3px, -3px) scale(1.1); }

/* フッターバナー内のよみがな（小さくする設定） */
.banner-title small {
    font-size: 0.65em !important;  /* 親の文字に対して一回り小さく */
    font-weight: 400 !important;   /* 少しだけ文字を細くして強弱をつける */
    margin-left: 2px;   /* 「酒栞館」との間にほんの少しだけ隙間をあける */
}

.banner-blue { background: linear-gradient(135deg, #004D8C 0%, #001A33 100%); }
.color-1 { background: linear-gradient(135deg, #B97632 0%, #6F451F 100%); }
.color-2 { background: linear-gradient(135deg, #003366 0%, #001122 100%); }
.color-3 { background: linear-gradient(135deg, #006644 0%, #003322 100%); }
.color-4 { background: linear-gradient(135deg, #D41A5C 0%, #801037 100%); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 30px; }
.footer-logo { font-family: 'Noto Serif JP', serif; font-size: 1.5rem; letter-spacing: 0.1em; color: #fff; display: flex; align-items: center; }
.footer-logo img { height: 50px; /* ヘッダーと同じ高さに設定 */
    width: auto;}
.footer-copyright { font-size: 0.75rem; color: #888; letter-spacing: 0.05em; }

@media (max-width: 960px) { .footer-banners { gap: 30px; } .footer-banner-left { flex: 0 0 100%; } }
@media (max-width: 768px) { .footer-banners { flex-direction: column; align-items: flex-start; } .footer-banner-left, .footer-banner-right { width: 100%; } .footer-banner-left .custom-banner { height: auto; padding: 20px; justify-content: center; } .footer-banner-left .banner-title { font-size: 1rem; } .footer-bottom { flex-direction: column; gap: 20px; align-items: flex-start; } }
@media (max-width: 480px) { .footer-banner-right { grid-template-columns: 1fr; } .footer-banner-right .custom-banner { height: auto; padding: 15px 20px; } }

/* =========================================================
   Scroll Animation (is-visible) - アニメーション解除
========================================================= */
.section-title, .custom-section-heading { 
    opacity: 1; 
    transform: none; 
    transition: none; 
}

/* =========================================
   お知らせのカテゴリタグ・色分け設定
   ========================================= */
/* 共通設定（すべてのタグを太字にし、右側に少し隙間をあける） */
.news-tag-disp,
.news-tag-prod,
.news-tag-idea {
    font-weight: bold;
    margin-right: 5px;
}

/* ①［展示］：展示会バナーに合わせた深緑 */
.news-tag-disp {
    color: #7e014a; 
}

/* ②［製品］：会社のベースカラーに合わせた紺色 */
.news-tag-prod {
    color: #00264a; 
}

/* ③［杜氏さんのアイディア］：特設ページに合わせたゴールド */
.news-tag-idea {
    color: #A88647; 
}
/* =========================================
   お知らせ（News）のポップアップアイコン
   ========================================= */
/* 要素を縦の中央で綺麗に揃える */
.news-item {
    align-items: center; 
}

/* タイトルとアイコンの間に余白を作る */
.news-item__title {
    padding-right: 20px; 
}

/* アイコン自体のデザイン（通常時は薄いグレー） */
.news-item__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: #ccc; 
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-item__icon svg {
    width: 100%;
    height: 100%;
}

/* マウスを乗せた時の演出（ゴールドに光って少し右上に動く） */
.news-item:hover .news-item__icon {
    color: #A88647; 
    transform: translate(2px, -2px) scale(1.1);
}

/* =========================================================
   「お知らせ」上部の隙間調整（白帯を消して背景色を広げる）
========================================================= */
.news-header-gradient {
    margin-top: 0 !important;      /* 白い隙間（外側の余白）をゼロにする */
    padding-top: 140px !important; /* 背景色のある部分（内側の余白）を上に広げる */
}

/* =========================================
   スクロールマーク（Hero Scroll Mark）
========================================= */
.scroll-mark {
    position: absolute;
    bottom: 40px; 
    left: 50%;
    transform: translateX(-50%); 
    z-index: 10; 
    text-align: center;
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.3s ease;
    opacity: 0.8; 
    pointer-events: auto; 
}

.scroll-mark:hover {
    opacity: 1; 
}

.scroll-mark__text {
    font-size: 0.75rem; 
    font-weight: 500;
    letter-spacing: 0.2em; 
    text-transform: uppercase; 
    margin-bottom: 12px; 
    font-family: 'Noto Sans JP', sans-serif; 
}

.scroll-mark__arrow {
    width: 1px;
    height: 50px; 
    background-color: rgba(255, 255, 255, 0.4); 
    position: relative;
    overflow: hidden; 
}

/* アニメーションする下向きの小さな矢印 */
.scroll-mark__arrow::after {
    content: '';
    position: absolute;
    top: -15px; 
    left: -4px; 
    width: 8px; 
    height: 8px; 
    border-bottom: 1px solid #fff; 
    border-right: 1px solid #fff;
    transform: rotate(45deg); 
    animation: scrollMarkArrowFadeMove 2.0s ease-out infinite; 
    opacity: 0;
}

/* スマホ表示の調整 */
@media screen and (max-width: 768px) {
    .scroll-mark { bottom: 25px; }
    .scroll-mark__arrow { height: 40px; }
}

/* アニメーションの動き設定 */
@keyframes scrollMarkArrowFadeMove {
    0% { top: -15px; opacity: 0; }
    20% { top: 0; opacity: 1; }
    80% { top: 100%; opacity: 1; }
    100% { top: calc(100% + 15px); opacity: 0; }
}

/* =========================================================
   各セクション見出し（グラデーション帯）の下の白い隙間を広げる
========================================================= */
.news-header-gradient + .container,
.products-header-gradient + .container,
.company-header-gradient + .container,
.access-header-gradient + .container,
.contact-header-gradient + .container {
    padding-top: 100px !important; /* ★ ここの数値を大きくします */
}
/* =========================================================
   設備・配管工事：画像3枚縦並び用の設定
========================================================= */
.product-img.triple {
    display: flex;
    flex-direction: column;
    gap: 10px; /* 画像同士の隙間 */
    justify-content: flex-start;
}
.product-img.triple img {
    width: 100%;
    height: auto;
    max-height: none; /* 元の画像高さ制限を解除 */
    border-radius: 4px;
    border: 1px solid #e0e4e8;
}

/* =========================================================
   設備・配管工事：画像3枚のカードだけ画像を大きく・テキストを狭くする
========================================================= */
.product-card:has(.triple) {
    /* ★ 通常の「140px」から「200px」に広げました！その分テキストが自動で狭くなります */
    grid-template-columns: 200px 1fr; 
}

/* ※印などの注釈で、2行目以降の文字の頭をピシッと揃える（ぶら下がりインデント） */
.indent-note {
    display: block;        /* 前後で改行されるブロックにする */
    padding-left: 1em;     /* まず全体を1文字分右にズラす */
    text-indent: -1em;     /* 1行目だけ1文字分左に戻す（ここに「※」が入ります） */
    margin-top: 4px;       /* 上の行とほんの少し隙間を空けて見やすくする */
}