/* ============================================
   CSS Variables - カラーパレット・基本設定
   ============================================ */
:root {
    /* Colors - 濃紺ベースのカラーパレット */
    --color-primary: #1B2544;       /* 濃紺 - メインカラー */
    --color-primary-light: #2D3E63; /* 薄紺 */
    --color-primary-dark: #111B38;  /* 深紺 */
    --color-accent: #C4A265;        /* 金色 - アクセント */
    --color-accent-light: #D4B87A;
    --color-green: #4A6741;         /* 苔色 */
    --color-green-light: #6B8B62;
    --color-gold: #C4A265;          /* 金 */

    /* Neutrals */
    --color-bg: #FAF8F5;            /* 生成り */
    --color-bg-warm: #F0EDE6;       /* 温かい白 */
    --color-bg-section: #E8E4DC;    /* セクション背景 */
    --color-text: #1E1E2A;          /* 墨紺色 */
    --color-text-light: #5A5A6A;    /* 薄墨 */
    --color-text-lighter: #8E8E9A;
    --color-border: #D0CEC8;
    --color-white: #FFFFFF;

    /* Typography */
    --font-serif: 'Noto Serif JP', 'Yu Mincho', '游明朝', serif;
    --font-sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    --font-en: 'Noto Sans JP', sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-width: 1100px;
    --header-height: 80px;

    /* Transitions */
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.8;
    letter-spacing: 0.04em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base), opacity var(--transition-base);
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

table {
    border-collapse: collapse;
    width: 100%;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Placeholder Image (ダミー画像)
   ============================================ */
.placeholder-image {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, var(--color-bg-section) 0%, var(--color-border) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-lighter);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
}

.placeholder-image::after {
    content: attr(data-label);
}

/* ============================================
   Fade-in Animation
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   HEADER（Hero内ロゴ - 絶対配置）
   ============================================ */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    pointer-events: none;
}

.page-template-page-contact .site-header,
.page-template-page-privacy .site-header {
    display: none;
}

.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 24px 24px 0;
    display: flex;
    align-items: flex-start;
}

@media (min-width: 1261px) {
    .header-inner {
        max-width: none;
        margin: 0;
        padding-left: 48px;
    }
}

/* Logo（Hero上に表示） */
.site-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    pointer-events: auto;
}

.site-logo-image {
    display: inline-flex;
    align-items: center;
    pointer-events: auto;
    line-height: 1.2;
    text-decoration: none;
}

.site-logo-image img {
    display: block;
    width: auto;
    height: 202px;
    max-width: 960px;
    object-fit: contain;
}

@media (max-width: 1260px) {
    .site-logo-image img { height: 168px; }
}

@media (max-width: 768px) {
    .site-logo-image img { height: 126px; max-width: 60vw; }
}

@media (max-width: 380px) {
    .header-inner { padding: 8px 8px 0; }
    .site-logo-image img { height: 101px; }
}

.logo-main {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.12em;
}

.logo-sub {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.08em;
}

.logo-wave {
    display: block;
    margin-top: 8px;
}

/* ============================================
   STICKY NAV（Hero下に配置、スクロール追従）
   ============================================ */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 10001;
    background-color: rgba(250, 248, 245, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.sticky-nav-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sticky-nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.1em;
    flex-shrink: 0;
    text-decoration: none;
}

.sticky-nav-logo-img {
    display: block;
    height: 36px;
    width: auto;
    object-fit: contain;
}

.sticky-nav-logo-text {
    display: inline-block;
}

.sticky-nav-logo:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .sticky-nav-logo { gap: 8px; font-size: 0.9rem; }
    .sticky-nav-logo-img { height: 30px; }
}

.sticky-nav-list {
    display: flex;
    gap: 32px;
    list-style: none;
}

.sticky-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: 0.1em;
    padding: 6px 0;
    position: relative;
}

.sticky-nav-link-en {
    display: block;
    font-size: 0.58rem;
    font-family: var(--font-en);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-lighter);
    margin-top: 1px;
}

.sticky-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1.5px;
    background-color: var(--color-accent);
    transition: width var(--transition-base), left var(--transition-base);
}

.sticky-nav-link:hover {
    opacity: 1;
    color: var(--color-primary);
}

.sticky-nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Hamburger Menu（スティッキーナビ内） */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle-bar {
    display: block;
    width: 24px;
    height: 1.5px;
    background-color: var(--color-text);
    transition: transform var(--transition-base),
                opacity var(--transition-base);
}

.menu-toggle.is-active .menu-toggle-bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .menu-toggle-bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Menu（スティッキーナビ内ドロップダウン） */
.mobile-menu {
    display: none;
    background-color: rgba(250, 248, 245, 0.98);
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu.is-open {
    display: block;
}

.mobile-menu-list {
    list-style: none;
    padding: 16px 24px 24px;
}

.mobile-menu-link {
    display: block;
    padding: 14px 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: 0.12em;
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu-link-en {
    display: inline-block;
    font-size: 0.6rem;
    font-family: var(--font-en);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-lighter);
    margin-left: 12px;
}

/* ============================================
   SVG Clip Paths (referenced from inline SVG)
   ============================================ */
.clip-blob-1 { clip-path: url(#blob-1); }
.clip-blob-2 { clip-path: url(#blob-2); }
.clip-blob-3 { clip-path: url(#blob-3); }
.clip-circle { clip-path: url(#clip-circle); }

/* ============================================
   HERO セクション - コラージュレイアウト
   ============================================ */
.section-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-primary);
}

/* 背面イラスト装飾 */
.hero-bg-illustrations {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-bg-illust {
    position: absolute;
    opacity: 0.5;
    object-fit: contain;
    pointer-events: none;
}

/* R1: 山 — 右上寄り中央 */
.hero-bg-illust-1 {
    width: 350px;
    top: 5%;
    right: 29%;
}

/* R2: 家屋 — 左（ロゴ下） */
.hero-bg-illust-2 {
    width: 300px;
    top: 25%;
    left: 8%;
}

/* R3: トンネル — 左下 */
.hero-bg-illust-3 {
    width: 400px;
    bottom: 12%;
    left: 8%;
}

/* R4: 城 — 右下 */
.hero-bg-illust-4 {
    width: 392px;
    bottom: 10%;
    right: 8%;
}

/* R5: 橋 — 中央下 */
.hero-bg-illust-5 {
    width: 340px;
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
}

/* コラージュ画像コンテナ */
.hero-collage {
    position: absolute;
    inset: 0;
    z-index: 0;
    -webkit-user-select: none;
    user-select: none;
}

.hero-collage-item {
    position: absolute;
    overflow: hidden;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.2);
    will-change: transform;
    top: 0;
    left: 0;
}

.hero-collage-item img,
.hero-collage-item .placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
}

/* 円サイズ定義（位置はJSで制御） */
.hero-collage-item:nth-child(1) { width: 420px; height: 420px; }
.hero-collage-item:nth-child(2) { width: 380px; height: 380px; }
.hero-collage-item:nth-child(3) { width: 360px; height: 360px; }
.hero-collage-item:nth-child(4) { width: 400px; height: 400px; }
.hero-collage-item:nth-child(5) { width: 300px; height: 300px; }
.hero-collage-item:nth-child(6) { width: 340px; height: 340px; }

/* コラージュ画像のプレースホルダー色 */
.hero-collage-item .placeholder-image {
    background: linear-gradient(135deg, #4a6080 0%, #3a5070 100%);
    color: transparent;
    min-height: 100%;
}

/* 排出しいたけイラスト（衝突時に飛び出して重力落下） */
.ejected-mushroom {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    object-fit: contain;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

/* お問い合わせボタン（body直下に移動後） */
.contact-btn-floating {
    position: absolute;
    z-index: 10000;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 48px;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid var(--color-primary);
    transition: background var(--transition-base), color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
    box-shadow: 0 4px 16px rgba(27, 37, 68, 0.2);
    pointer-events: auto;
}

.contact-btn-floating:hover {
    background: transparent;
    color: var(--color-primary);
    box-shadow: 0 6px 24px rgba(27, 37, 68, 0.3);
    transform: translateY(-2px);
    opacity: 1;
}

/* 中央の球体イラスト（バブル衝突判定用、サイズは旧hero-center-circleを継承） */
.hero-center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 650px;
    background: url('../images/heroCenterSph.png') center / contain no-repeat;
    z-index: 0;
    pointer-events: none;
}

/* ヒーローコンテンツ */
/* スクロールインジケータ */
.hero-scroll-indicator {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
}

.hero-scroll-indicator::after {
    content: '';
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Hero Wave - 手書き風 */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 2;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 100px;
    fill: var(--color-bg);
}

/* ============================================
   Side Decoration - 原木しいたけイラスト
   ============================================ */
.side-deco {
    position: relative;
    overflow: hidden;
}

.side-deco-left,
.side-deco-right {
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    pointer-events: none;
    opacity: 1;
    z-index: 0;
    background-repeat: repeat-y;
    background-size: 150px auto;
}

.side-deco-left {
    left: 0;
    background-image: url('../images/deco-log-left.png');
    background-position: right top;
}

.side-deco-right {
    right: 0;
    background-image: url('../images/deco-log-right.png');
    background-position: left top;
}

.side-deco > .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 1260px) {
    .side-deco-left,
    .side-deco-right {
        width: 130px;
        background-size: 130px auto;
    }
}

@media (max-width: 1200px) {
    .side-deco-left,
    .side-deco-right {
        width: 100px;
        background-size: 100px auto;
    }

    .side-deco > .container {
        padding-left: 110px;
        padding-right: 110px;
    }

    .section-news > .container,
    .section-company > .container,
    .page-contact > .container {
        margin-left: 20px;
        margin-right: 20px;
    }

    /* R5: 橋 — 中央下 → R1の斜め右下へ配置換え */
    .hero-bg-illust-5 {
        bottom: auto;
        left: auto;
        transform: none;
        top: 22%;
        right: 8%;
    }

}

/* ============================================
   Section Wave Dividers
   ============================================ */
.section-wave {
    line-height: 0;
    margin-top: -1px;
}

.section-wave svg {
    width: 100%;
    height: 60px;
    display: block;
}

.section-wave--to-warm svg {
    fill: var(--color-bg-warm);
}

.section-wave--to-bg svg {
    fill: var(--color-bg);
}

/* ============================================
   Section Common Styles
   ============================================ */
.section-about,
.section-products,
.section-genboku,
.section-news,
.section-company {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label-en {
    display: block;
    font-family: var(--font-en);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-text-lighter);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-primary);
}

.section-divider {
    margin-top: 20px;
    color: var(--color-accent);
}

/* ============================================
   ABOUT / こだわりセクション
   ============================================ */
.section-about {
    background-color: var(--color-bg);
    padding-bottom: 0;
}

.section-about .section-header {
    margin-bottom: 12px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.about-card {
    text-align: center;
    padding: 40px 24px;
}

.about-card-icon {
    color: var(--color-accent);
    margin-bottom: 8px;
}

.about-card-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.about-card-text {
    font-size: 0.875rem;
    line-height: 2;
    color: var(--color-text-light);
}

/* Brand Story */
.about-story {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-story-image {
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
    clip-path: url(#blob-2);
}

.about-story-image .placeholder-image,
.about-story-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: url(#blob-2);
}

.about-story-image .placeholder-image {
    min-height: 100%;
}

/* 汎用スライドショー */
.slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.slideshow .slideshow-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
    will-change: transform, opacity;
}

.slideshow .slideshow-slide:first-child {
    position: relative;
}

.slideshow .slideshow-slide.is-active {
    opacity: 1;
}

.slideshow[data-kenburns="true"] .slideshow-slide.is-active {
    animation: kenBurnsPan var(--slideshow-duration, 5.6s) ease-in-out forwards;
}

/* クリック/スワイプ可能スライドショー */
.slideshow[data-clickable="true"] {
    cursor: pointer;
    touch-action: pan-y; /* 水平スワイプをカスタムハンドラに委ね、縦スクロールは許可 */
}

/* ページネーションドット（複数枚時のみJSで挿入） */
.slideshow-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
    pointer-events: auto;
}

.slideshow-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.slideshow-dot:hover {
    background: rgba(255, 255, 255, 0.85);
}

.slideshow-dot.is-active {
    background: #ffffff;
    transform: scale(1.3);
}

.about-story-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.about-story-text {
    font-size: 0.9rem;
    line-height: 2.2;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.about-story-text:last-child {
    margin-bottom: 0;
}

/* ============================================
   PRODUCTS / 商品紹介セクション
   ============================================ */
.section-products {
    background-color: var(--color-bg-warm);
}

.section-products .section-header {
    margin-bottom: 24px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background: var(--color-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(27, 37, 68, 0.08);
    transition: transform var(--transition-base),
                box-shadow var(--transition-base);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(27, 37, 68, 0.14);
}

.product-card-image {
    aspect-ratio: 3/2;
    overflow: hidden;
    background-color: var(--color-bg-section);
    position: relative;
    cursor: pointer;
}

.product-card-image img,
.product-card-image .placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card-image img,
.product-card:hover .product-card-image .placeholder-image {
    transform: scale(1.05);
}


@keyframes kenBurnsPan {
    0% {
        transform: scale(1.15) translateX(-3%);
    }
    100% {
        transform: scale(1.25) translateX(3%);
    }
}

/* ホバー時のスケール無効化（スライドショーはKen Burnsで動くため） */
.product-card:hover .slideshow .slideshow-slide {
    transform: none;
}

.product-card-body {
    padding: 28px 24px;
}

.product-card-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.product-card-excerpt {
    font-size: 0.85rem;
    line-height: 1.9;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.product-card-price-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.product-card-price {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-accent);
}

.price-tax {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-lighter);
}

.product-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    border-radius: 1px;
    transition: background-color var(--transition-base);
}

.product-card-btn:hover {
    background-color: var(--color-primary-dark);
    opacity: 1;
}

.product-card-btn svg {
    transition: transform var(--transition-base);
}

.product-card-btn:hover svg {
    transform: translateX(4px);
}

.product-card-btn-cart {
    display: none;
}

/* ============================================
   GENBOKU / 原木とは？セクション
   ============================================ */
.section-genboku {
    background: linear-gradient(rgba(250, 248, 245, 0.85), rgba(250, 248, 245, 0.85)),
                url('../images/genboku-bg.jpg') center / cover no-repeat fixed;
}

.section-subtitle {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-top: 24px;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 1em;
}

.section-subtitle::before,
.section-subtitle::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-accent);
}

.section-subtitle span {
    border: 1px solid var(--color-accent);
    outline: 1px solid var(--color-accent);
    outline-offset: 4px;
    padding: 0.3em 1em;
    background-color: var(--color-bg);
}

/* 菌床しいたけ vs 原木しいたけ 比較 */
.genboku-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 840px;
    margin: 50px auto 70px;
}

.genboku-compare-item {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.genboku-compare-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 4px;
    background: var(--color-bg-warm);
    box-shadow: 0 6px 20px rgba(27, 37, 68, 0.14);
}

.genboku-compare-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.genboku-compare-caption {
    margin-top: 18px;
    text-align: center;
    font-family: var(--font-serif);
}

.genboku-compare-label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: var(--color-text-light);
    margin-bottom: 6px;
}

.genboku-compare-name {
    display: block;
    font-size: 1.15rem;
    color: var(--color-primary);
    letter-spacing: 0.06em;
}

.genboku-compare-item--featured .genboku-compare-name {
    color: var(--color-accent);
}

.genboku-compare-text {
    margin: 16px 4px 0;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    line-height: 1.9;
    color: var(--color-text);
    text-align: justify;
}

/* 工程紹介のリード文 */
.genboku-process-lead {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--color-primary);
    letter-spacing: 0.1em;
    margin: 0 auto 40px;
    display: flex;
    align-items: center;
    gap: 1em;
}

.genboku-process-lead span {
    border: 1px solid var(--color-accent);
    outline: 1px solid var(--color-accent);
    outline-offset: 4px;
    padding: 0.3em 1em;
    background-color: var(--color-bg);
}

.genboku-process-lead::before,
.genboku-process-lead::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-accent);
}

/* Process Grid Layout - PC: 2行×3列 + 矢印 */
.genboku-process {
    display: grid;
    grid-template-columns: 1fr 48px 1fr 48px 1fr;
    gap: 8px 0;
    align-items: start;
}

/* PC grid areas */
.genboku-step-s1 { grid-area: 1 / 1; }
.genboku-arrow-a1 { grid-area: 1 / 2; }
.genboku-step-s2 { grid-area: 1 / 3; }
.genboku-arrow-a2 { grid-area: 1 / 4; }
.genboku-step-s3 { grid-area: 1 / 5; }
.genboku-arrow-down { grid-area: 2 / 1 / 3 / 6; }
.genboku-step-s4 { grid-area: 3 / 1; }
.genboku-arrow-a4 { grid-area: 3 / 2; }
.genboku-step-s5 { grid-area: 3 / 3; }
.genboku-arrow-a5 { grid-area: 3 / 4; }
.genboku-step-s6 { grid-area: 3 / 5; }

/* a6 は PC では非表示（モバイル用5→6矢印） */
.genboku-arrow.genboku-arrow-a6 { display: none; }

.genboku-step {
    text-align: center;
}

.genboku-step-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 16px;
    background-color: var(--color-bg-section);
}

.genboku-step-image img,
.genboku-step-image .placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.genboku-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.genboku-step-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.genboku-step-text {
    font-size: 0.82rem;
    line-height: 1.9;
    color: var(--color-text-light);
    padding: 0 8px;
}

/* 横矢印（工程間） */
.genboku-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    padding-top: 98px;
}

.genboku-arrow .genboku-arrow-img {
    width: 40px;
    height: auto;
}

/* 769-1200px: 矢印列をautoにして1fr列（工程）へ余白を還元
   arrow col = auto（画像幅に追従）、step col = (content - 2*arrow_col) / 3
   padding-top式: 11*100vw/96 - 4436/96 ≈ 0.1146*100vw - 46.2px、cap 80px */
@media (max-width: 1200px) and (min-width: 769px) {
    .genboku-process {
        grid-template-columns: 1fr auto 1fr auto 1fr;
    }
    .genboku-arrow {
        padding-top: min(calc(100vw * 0.1146 - 46.2px), 80px);
    }
    .genboku-arrow .genboku-arrow-img {
        width: clamp(22px, calc((100vw - 316px) / 24), 40px);
    }
}

/* PC: turn矢印は非表示（a2・a5でモバイル用に埋め込んだarrow3） */
.genboku-arrow-img--turn {
    display: none;
}

/* 下矢印（行間）: Step3中央→Step4中央のスパン（PC 2行レイアウト）
   グリッド: 1fr 48px 1fr 48px 1fr → 固定幅合計96px、fr合計3
   半fr = (100% - 96px) / 6  */
.genboku-arrow-down {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-accent);
    padding-left: calc((100% - 96px) / 6);
    padding-right: calc((100% - 96px) / 6);
}

.genboku-arrow-down .genboku-arrow-img {
    width: 100%;
    height: auto;
}

/* ============================================
   NEWS / お知らせセクション
   ============================================ */
.section-news {
    background-color: var(--color-bg);
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
    transition: background-color var(--transition-base);
}

a.news-item:hover {
    opacity: 1;
    background-color: var(--color-bg-warm);
    padding-left: 16px;
    padding-right: 16px;
    margin-left: -16px;
    margin-right: -16px;
}

.news-date {
    font-family: var(--font-en);
    font-size: 0.8rem;
    color: var(--color-text-lighter);
    letter-spacing: 0.05em;
    flex-shrink: 0;
    min-width: 90px;
}

.news-title {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.7;
}

/* ============================================
   COMPANY / 会社概要セクション
   ============================================ */
.section-company {
    background-color: var(--color-bg-warm);
}

.company-table-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.company-table th,
.company-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
    line-height: 1.7;
    vertical-align: top;
}

.company-table th {
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--color-primary);
    width: 160px;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.company-table td {
    color: var(--color-text-light);
}

.company-table td a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.company-contact-cta {
    text-align: center;
    margin-top: 48px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 48px;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    border-radius: 50px;
    border: 2px solid var(--color-primary);
    transition: background var(--transition-base), color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
    box-shadow: 0 4px 16px rgba(27, 37, 68, 0.2);
}

.contact-btn:hover {
    background: transparent;
    color: var(--color-primary);
    box-shadow: 0 6px 24px rgba(27, 37, 68, 0.3);
    transform: translateY(-2px);
    opacity: 1;
}

.contact-btn svg {
    flex-shrink: 0;
}

/* ============================================
   Contact Page
   ============================================ */
.page-contact {
    padding-top: 120px;
    padding-bottom: var(--section-padding);
    min-height: 100vh;
    background: var(--color-bg);
}

.contact-inner {
    max-width: var(--container-width);
}

.contact-lead {
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 2;
    margin-bottom: 48px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 680px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-primary);
    letter-spacing: 0.06em;
}

.form-label .required {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    background: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 400;
    border-radius: 3px;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    appearance: none;
    -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(27, 37, 68, 0.08);
}

.form-textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.8;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A5A6A' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-privacy {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

.form-submit-wrap {
    text-align: center;
    margin-top: 8px;
}

.form-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 56px;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    border: 2px solid var(--color-primary);
    border-radius: 50px;
    cursor: pointer;
    transition: background var(--transition-base), color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
    box-shadow: 0 4px 16px rgba(27, 37, 68, 0.2);
}

.form-submit-btn:hover {
    background: transparent;
    color: var(--color-primary);
    box-shadow: 0 6px 24px rgba(27, 37, 68, 0.3);
    transform: translateY(-2px);
}

.contact-back {
    text-align: center;
    margin-top: 48px;
}

.contact-back a {
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 768px) {
    .page-contact {
        padding-top: 80px;
    }

    .contact-lead {
        font-size: 0.88rem;
    }

    .form-submit-btn {
        width: 100%;
        justify-content: center;
    }

    .company-contact-cta {
        margin-top: 36px;
    }

    .contact-btn {
        padding: 14px 36px;
        font-size: 0.9rem;
    }

    .contact-lead br {
        display: none;
    }
}

/* Honeypot（非表示） */
.form-group-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* エラーメッセージ */
.form-error {
    display: none;
    font-size: 0.82rem;
    color: #c0392b;
    margin-top: 2px;
}

.form-error.is-visible {
    display: block;
}

.form-input.is-error,
.form-textarea.is-error,
.form-select.is-error {
    border-color: #c0392b;
}

/* サーバーエラーバナー */
.contact-error-banner {
    max-width: 680px;
    margin: 0 auto 32px;
    padding: 14px 20px;
    background: #fdf0ef;
    border: 1px solid #e6b0aa;
    border-radius: 6px;
    color: #c0392b;
    font-size: 0.9rem;
    text-align: center;
}

/* ============================================
   Contact Modal
   ============================================ */
.contact-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(27, 37, 68, 0.55);
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.contact-modal-overlay.is-open {
    display: flex;
}

.contact-modal {
    background: var(--color-white);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.contact-modal-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 0.06em;
}

.contact-modal-lead {
    font-size: 0.88rem;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.7;
}

.contact-modal-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 20px;
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.contact-modal-dl dt {
    font-weight: 500;
    color: var(--color-primary);
    font-family: var(--font-serif);
    white-space: nowrap;
}

.contact-modal-dl dd {
    color: var(--color-text);
    word-break: break-word;
}

.confirm-message-text {
    white-space: pre-wrap;
    line-height: 1.7;
}

.contact-modal-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.contact-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    border-radius: 50px;
    cursor: pointer;
    transition: background var(--transition-base), color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
    text-decoration: none;
}

.contact-modal-btn--back {
    background: transparent;
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
}

.contact-modal-btn--back:hover {
    background: var(--color-bg-warm);
    color: var(--color-text);
}

.contact-modal-btn--submit {
    background: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 16px rgba(27, 37, 68, 0.2);
}

.contact-modal-btn--submit:hover {
    background: transparent;
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(27, 37, 68, 0.3);
}

/* 完了モーダル */
.contact-modal--thanks {
    text-align: center;
}

.contact-modal-icon {
    margin-bottom: 20px;
    color: var(--color-green);
}

.contact-modal-icon svg {
    display: inline-block;
}

/* モーダル レスポンシブ */
@media (max-width: 768px) {
    .contact-modal {
        padding: 28px 20px;
    }

    .contact-modal-dl {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .contact-modal-dl dt {
        font-size: 0.8rem;
        color: var(--color-text-light);
        margin-top: 8px;
    }

    .contact-modal-actions {
        flex-direction: column;
    }

    .contact-modal-btn {
        width: 100%;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.75);
    position: relative;
}

.footer-wave {
    position: absolute;
    top: -99px;
    left: 0;
    right: 0;
    line-height: 0;
    color: var(--color-primary);
}

.footer-wave svg {
    width: 100%;
    height: 100px;
}

.footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 80px 24px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-logo-main {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.12em;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-logo-image {
    display: inline-block;
    line-height: 0;
}

.footer-logo-image img {
    display: block;
    width: auto;
    height: 144px;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 1260px) {
    .footer-logo-image img { height: 120px; }
}

@media (max-width: 768px) {
    .footer-logo-image img { height: 96px; }
}

.footer-description {
    font-size: 0.8rem;
    line-height: 1.8;
    margin-top: 12px;
    opacity: 0.7;
}

.footer-heading {
    font-family: var(--font-en);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    font-size: 0.85rem;
    transition: color var(--transition-base);
}

.footer-nav a:hover {
    color: var(--color-white);
    opacity: 1;
}

.footer-info-list dt {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-bottom: 4px;
    margin-top: 12px;
}

.footer-info-list dt:first-child {
    margin-top: 0;
}

.footer-info-list dd {
    font-size: 0.85rem;
}

.footer-info-list a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: border-color var(--transition-base),
                background-color var(--transition-base);
}

.social-link:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

/* 無効化状態（押下不可＋斜線上塗り） */
.social-link.is-disabled {
    position: relative;
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.5;
}

.social-link.is-disabled::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(
        to top right,
        transparent calc(50% - 1px),
        rgba(255, 255, 255, 0.85) calc(50% - 1px),
        rgba(255, 255, 255, 0.85) calc(50% + 1px),
        transparent calc(50% + 1px)
    );
    pointer-events: none;
}

/* 送料・注意事項 */
.footer-notice {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    margin-bottom: 40px;
}

.footer-notice .footer-heading {
    margin-bottom: 24px;
}

.notice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.notice-item h4 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.notice-item p {
    font-size: 0.8rem;
    line-height: 1.8;
    opacity: 0.7;
}

/* Copyright */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-legal-links a {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.footer-legal-links a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.footer-legal-sep {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
}

.copyright {
    font-size: 0.75rem;
    opacity: 0.5;
    letter-spacing: 0.05em;
}

/* ============================================
   Legal Page（プライバシーポリシー等）
   ============================================ */
.page-legal {
    padding-bottom: var(--section-padding);
    min-height: 100vh;
    background: var(--color-bg);
}

.page-legal-hero {
    padding: 120px 24px 48px;
    text-align: center;
    background: var(--color-primary);
    color: #fff;
}

.page-legal-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 400;
    letter-spacing: 0.1em;
}

.page-legal-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 56px 24px;
}

.page-legal-content {
    font-size: 0.75rem;
    line-height: 2;
    color: var(--color-text);
}

.page-legal-content h2 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-primary);
    border-left: 3px solid var(--color-accent);
    padding-left: 12px;
    margin: 40px 0 16px;
}

.page-legal-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 24px 0 8px;
}

.page-legal-content p {
    margin-bottom: 16px;
}

.page-legal-content ul,
.page-legal-content ol {
    padding-left: 1.5em;
    margin-bottom: 16px;
}

.page-legal-content li {
    margin-bottom: 6px;
}

.page-legal-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.page-legal-back {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.page-legal-back a {
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.page-legal-back a:hover {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .page-legal-hero {
        padding: 100px 24px 36px;
    }

    .page-legal-inner {
        padding: 40px 16px;
    }

    .page-legal-content {
        font-size: 0.7rem;
    }
}

.privacy-date {
    margin-top: 40px;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* ============================================
   404 Page
   ============================================ */
.page-404 {
    min-height: 100vh;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
}

.error404-inner {
    text-align: center;
    max-width: 560px;
    width: 100%;
}

.error404-code {
    font-family: var(--font-en);
    font-size: clamp(6rem, 20vw, 10rem);
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px var(--color-accent);
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.error404-divider {
    width: 48px;
    height: 1px;
    background: var(--color-accent);
    margin: 0 auto 20px;
}

.error404-label {
    font-family: var(--font-en);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.error404-title {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 400;
    color: #fff;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.error404-desc {
    font-size: 0.875rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 40px;
}

.error404-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.error404-btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-radius: 2px;
    transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

.error404-btn--primary {
    background: var(--color-accent);
    color: var(--color-primary);
    border: 1px solid var(--color-accent);
}

.error404-btn--primary:hover {
    background: var(--color-accent-light);
    border-color: var(--color-accent-light);
}

.error404-btn--secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.error404-btn--secondary:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.error404-nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
}

.error404-nav a {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color var(--transition-base);
}

.error404-nav a:hover {
    color: var(--color-accent);
}

/* プレビューバナー */
.error404-preview-banner {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: var(--color-primary);
    font-size: 0.75rem;
    padding: 6px 20px;
    border-radius: 0 0 4px 4px;
    z-index: 9999;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .page-404 {
        padding: 100px 20px 60px;
    }

    .error404-actions {
        flex-direction: column;
        align-items: center;
    }

    .error404-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .error404-nav ul {
        gap: 16px;
    }
}

@media (max-width: 380px) {
    .error404-code {
        -webkit-text-stroke-width: 1.5px;
    }
}

/* ============================================
   RESPONSIVE - Tablet
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .hero-bg-illust-1 { width: 260px; }
    .hero-bg-illust-2 { width: 220px; }
    .hero-bg-illust-3 { width: 300px; }
    .hero-bg-illust-4 { width: 294px; }
    .hero-bg-illust-5 { width: 260px; }

    .about-grid {
        gap: 8px;
    }

    .about-story {
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .notice-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

}

@media (max-width: 1260px) and (min-width: 769px) {
    /* Hero Collage - Tablet/Small Desktop */
    .hero-collage-item {
        border-width: 6px;
    }

    .hero-collage-item:nth-child(1) { width: 290px; height: 290px; }
    .hero-collage-item:nth-child(2) { width: 260px; height: 260px; }
    .hero-collage-item:nth-child(3) { width: 250px; height: 250px; }
    .hero-collage-item:nth-child(4) { width: 280px; height: 280px; }
    .hero-collage-item:nth-child(5) { width: 210px; height: 210px; }
    .hero-collage-item:nth-child(6) { width: 240px; height: 240px; }

    .hero-center-circle {
        width: 475px;
        height: 475px;
    }
}

/* ============================================
   RESPONSIVE - Mobile
   ============================================ */
@media (max-width: 768px) {
    :root {
        --section-padding: 64px;
        --header-height: 64px;
    }

    /* Side Deco Mobile */
    .side-deco-left,
    .side-deco-right {
        width: 67px;
        background-size: 67px auto;
    }

    .side-deco > .container {
        padding-left: 36px;
        padding-right: 36px;
    }

    /* Sticky Nav Mobile */
    .menu-toggle {
        display: flex;
    }

    .sticky-nav-list {
        display: none;
    }

    .sticky-nav-inner {
        height: 50px;
    }

    /* Hero Mobile */
    .section-hero {
        min-height: 100svh;
    }

    .hero-bg-illust-1 { width: 160px; top: 3%;  right: 29%; }
    .hero-bg-illust-2 { width: 140px; top: 20%;  left: 8%; }
    .hero-bg-illust-3 { width: 188px; bottom: 14%; left: 8%; }
    .hero-bg-illust-4 { width: 182px; bottom: 12%; right: 8%; }
    .hero-bg-illust-5 { width: 160px; bottom: auto; left: auto; transform: none; top: 18%; right: 8%; }

    .hero-collage-item {
        border-width: 5px;
    }

    .hero-collage-item:nth-child(1) { width: 180px; height: 180px; }
    .hero-collage-item:nth-child(2) { width: 160px; height: 160px; }
    .hero-collage-item:nth-child(3) { width: 160px; height: 160px; }
    .hero-collage-item:nth-child(4) { width: 170px; height: 170px; }
    .hero-collage-item:nth-child(5) { width: 130px; height: 130px; }
    .hero-collage-item:nth-child(6) { width: 150px; height: 150px; }

    .hero-center-circle {
        width: 350px;
        height: 350px;
    }

    .hero-scroll-indicator {
        bottom: 80px;
    }

    /* About Mobile */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 8px;
    }

    .about-card {
        padding: 32px 20px;
    }

    .about-story {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-story-title {
        font-size: 1.25rem;
    }

    /* Compare block Mobile */
    .genboku-compare {
        gap: 16px;
        margin: 30px auto 50px;
    }

    .genboku-compare-caption {
        margin-top: 12px;
    }

    .genboku-compare-label {
        font-size: 0.72rem;
    }

    .genboku-compare-name {
        font-size: 0.95rem;
    }

    .genboku-compare-text {
        font-size: 0.8rem;
        line-height: 1.8;
        margin-top: 12px;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .genboku-process-lead {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    /* Genboku Mobile - 3行×2列 */
    .genboku-process {
        grid-template-columns: 1fr 40px 1fr;
    }

    /* Mobile grid positions */
    .genboku-step-s1 { grid-area: 1 / 1; }
    .genboku-arrow-a1 { grid-area: 1 / 2; }
    .genboku-step-s2 { grid-area: 1 / 3; }

    /* a2 → 行間折り返し矢印（Step2中央→Step3中央）*/
    .genboku-arrow-a2 {
        grid-area: 2 / 1 / 3 / 4;
        padding-top: 0;
        justify-content: center;
    }
    .genboku-arrow-img--h { display: none; }
    /* 詳細度0,2,0で width:40px ルールを上書き / vw基準: コンテナpadding 36px×2 → 50vw-26px */
    .genboku-arrow-a2 .genboku-arrow-img--turn,
    .genboku-arrow-a5 .genboku-arrow-img--turn {
        display: block;
        width: calc(50vw - 26px);
        height: auto;
    }

    .genboku-step-s3 { grid-area: 3 / 1; }
    .genboku-arrow-a4 { grid-area: 3 / 2; }
    .genboku-step-s4 { grid-area: 3 / 3; }

    /* a5 → 行間折り返し矢印（Step4中央→Step5中央）*/
    .genboku-arrow-a5 {
        grid-area: 4 / 1 / 5 / 4;
        padding-top: 0;
        justify-content: center;
    }

    .genboku-step-s5 { grid-area: 5 / 1 / 6 / 2; }
    .genboku-arrow.genboku-arrow-a6 {
        display: flex;
        grid-area: 5 / 2 / 6 / 3;
    }
    .genboku-step-s6 { grid-area: 5 / 3 / 6 / 4; }

    /* 横矢印(a1/a4/a6): 工程画像中央に矢印中央を揃える */
    .genboku-arrow-a1,
    .genboku-arrow-a4,
    .genboku-arrow-a6 {
        padding-top: calc((100vw - 92px) * 0.1875 - 22px);
    }

    /* PC用の下矢印は非表示 */
    .genboku-arrow-down {
        display: none;
    }

    /* Products Mobile */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* News Mobile */
    .news-item {
        flex-direction: column;
        gap: 4px;
        padding: 16px 0;
    }

    .news-date {
        min-width: auto;
    }

    /* Company Mobile */
    .company-table th,
    .company-table td {
        display: block;
        padding: 8px 0;
        border-bottom: none;
    }

    .company-table th {
        padding-top: 20px;
        width: 100%;
        font-size: 0.8rem;
    }

    .company-table tr:not(:last-child) td {
        border-bottom: 1px solid var(--color-border);
        padding-bottom: 20px;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 4fr 6fr;
        grid-template-areas:
            "brand brand"
            "links info"
            "social social";
        gap: 32px 24px;
    }

    .footer-brand  { grid-area: brand; }
    .footer-links  { grid-area: links; }
    .footer-info   { grid-area: info; }
    .footer-social { grid-area: social; }

    .footer-inner {
        padding: 60px 24px 32px;
    }

    .notice-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-about .section-header {
        margin-bottom: 12px;
    }

    .section-products .section-header {
        margin-bottom: 24px;
    }
}

/* ============================================
   Fixed Purchase Button
   ============================================ */
.fixed-purchase-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(196, 162, 101, 0.45);
    transition: background var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base), opacity var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.fixed-purchase-btn.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.fixed-purchase-btn:hover {
    background: #b89555;
    box-shadow: 0 6px 28px rgba(196, 162, 101, 0.6);
    transform: translateY(-2px);
}

.fixed-purchase-btn svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .fixed-purchase-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 22px;
        font-size: 0.85rem;
    }
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top-btn {
    position: fixed;
    bottom: 92px;
    right: 28px;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 1.2rem;
    line-height: 1;
    text-decoration: none;
    border-radius: 50%;
    border: 2px solid var(--color-white);
    box-shadow: 0 4px 16px rgba(27, 37, 68, 0.35);
    transition: background var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base), opacity var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.back-to-top-btn.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    animation: btt-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes btt-pop {
    0%   { opacity: 0; transform: scale(0.4) translateY(20px); }
    60%  { opacity: 1; transform: scale(1.15) translateY(-2px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.back-to-top-btn:hover {
    background: var(--color-primary-light);
    box-shadow: 0 6px 24px rgba(27, 37, 68, 0.5);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top-btn {
        bottom: 80px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1.05rem;
    }
}

/* ============================================
   ≤768px にも ≤380px と同じ独自レイアウトを適用
   （必ず ≤380px ブロックより前に配置すること。後ろに置くと
    378px 画面で 768px 側の値が ≤380px の値を上書きしてしまう）
   ============================================ */
@media (max-width: 768px) {
    .side-deco > .container {
        padding-left: 36px;
        padding-right: 36px;
    }

    /* こだわり・商品・原木: 内部コンテンツの左右パディング/マージンを削除し、両端68px（67pxサイドデコ+1px）以外を表示領域として使う */
    .section-about .about-card {
        padding-left: 0;
        padding-right: 0;
    }

    .about-story-content {
        margin-left: 15px;
        margin-right: 15px;
    }

    .products-grid {
        margin-left: 8px;
        margin-right: 8px;
    }

    .section-products .product-card-body {
        padding-left: 15px;
        padding-right: 15px;
    }

    .section-genboku .genboku-step-text {
        padding-left: 0;
        padding-right: 0;
    }

    .section-products .product-card-excerpt {
        display: none;
    }

    .section-products .product-card-image {
        aspect-ratio: 1 / 1;
    }

    /* 原木工程: 中央の矢印列を縮小してコンテンツ幅を拡張 */
    .genboku-process {
        grid-template-columns: 1fr 20px 1fr;
    }

    /* 比較ブロックの説明文をプルダウン化 */
    .genboku-compare-item {
        cursor: pointer;
    }

    .genboku-compare-caption {
        position: relative;
        display: block;
        text-align: center;
        padding-bottom: 32px;
    }

    .genboku-compare-caption::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: rgba(196, 162, 101, 0.13);
        border: 1.5px solid rgba(196, 162, 101, 0.45);
        transition: background 0.25s ease;
    }

    .genboku-compare-item.is-open .genboku-compare-caption::before {
        background: rgba(196, 162, 101, 0.22);
    }

    .genboku-compare-caption::after {
        content: '';
        position: absolute;
        bottom: 10px;
        left: 50%;
        width: 6px;
        height: 6px;
        border-right: 1.5px solid var(--color-accent);
        border-bottom: 1.5px solid var(--color-accent);
        transform: translateX(-50%) rotate(45deg);
        transition: transform 0.25s ease, bottom 0.25s ease;
    }

    .genboku-compare-item.is-open .genboku-compare-caption::after {
        transform: translateX(-50%) rotate(-135deg);
        bottom: 8px;
    }

    .genboku-compare-text {
        display: none;
        margin-top: 10px;
    }

    .genboku-compare-item.is-open .genboku-compare-text {
        display: block;
    }

    /* プルダウン展開テキスト共通: グラスモーフィズム */
    .genboku-compare-item.is-open .genboku-compare-text,
    .genboku-step.is-open .genboku-step-text,
    .about-card.is-open .about-card-text {
        background: rgba(255, 255, 255, 0.001);
        backdrop-filter: blur(1px);
        -webkit-backdrop-filter: blur(1px);
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 10px;
        padding: 14px 16px;
        box-shadow: 0 2px 12px rgba(27, 37, 68, 0.08);
    }

    /* 原木セクション: 展開テキストを列位置に応じて中央方向へ大きく広げる */
    .genboku-compare-item.is-open .genboku-compare-text,
    .genboku-step.is-open .genboku-step-text {
        padding: 14px 12px;
        position: relative;
        z-index: 1;
    }

    /* 吹き出し三角形（共通） */
    .genboku-compare-item.is-open .genboku-compare-text::before,
    .genboku-step.is-open .genboku-step-text::before {
        content: '';
        position: absolute;
        top: -8px;
        width: 0;
        height: 0;
        border-left: 9px solid transparent;
        border-right: 9px solid transparent;
        border-bottom: 8px solid rgba(255, 255, 255, 0.5);
        transform: translateX(-50%);
    }

    /* 吹き出し位置: 左列 → calc(50% - 80px) = 元の列中央 */
    .genboku-compare-item:first-child.is-open .genboku-compare-text::before,
    .genboku-step-s1.is-open .genboku-step-text::before,
    .genboku-step-s3.is-open .genboku-step-text::before,
    .genboku-step-s5.is-open .genboku-step-text::before {
        left: calc(50% - 80px);
    }

    /* 吹き出し位置: 右列 → calc(50% + 80px) = 元の列中央 */
    .genboku-compare-item:last-child.is-open .genboku-compare-text::before,
    .genboku-step-s2.is-open .genboku-step-text::before,
    .genboku-step-s4.is-open .genboku-step-text::before,
    .genboku-step-s6.is-open .genboku-step-text::before {
        left: calc(50% + 80px);
    }

    /* 比較ブロック: 左列 → 右へ拡張 / 右列 → 左へ拡張 */
    .genboku-compare-item:first-child.is-open .genboku-compare-text {
        margin-left: 0;
        margin-right: -160px;
    }
    .genboku-compare-item:last-child.is-open .genboku-compare-text {
        margin-left: -160px;
        margin-right: 0;
    }

    /* 工程グリッド: 左列(s1,s3,s5) → 右へ拡張 / 右列(s2,s4,s6) → 左へ拡張 */
    .genboku-step-s1.is-open .genboku-step-text,
    .genboku-step-s3.is-open .genboku-step-text,
    .genboku-step-s5.is-open .genboku-step-text {
        margin-left: 0;
        margin-right: -160px;
    }
    .genboku-step-s2.is-open .genboku-step-text,
    .genboku-step-s4.is-open .genboku-step-text,
    .genboku-step-s6.is-open .genboku-step-text {
        margin-left: -160px;
        margin-right: 0;
    }

    /* 各工程の説明文をプルダウン化 */
    .genboku-step {
        cursor: pointer;
    }

    .genboku-step-title {
        position: relative;
        display: block;
        text-align: center;
        padding-right: 0;
        padding-bottom: 32px;
        margin-bottom: 0;
    }

    .genboku-step-title::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: rgba(196, 162, 101, 0.13);
        border: 1.5px solid rgba(196, 162, 101, 0.45);
        transition: background 0.25s ease;
    }

    .genboku-step.is-open .genboku-step-title::before {
        background: rgba(196, 162, 101, 0.22);
    }

    .genboku-step-title::after {
        content: '';
        position: absolute;
        bottom: 10px;
        left: 50%;
        width: 6px;
        height: 6px;
        border-right: 1.5px solid var(--color-accent);
        border-bottom: 1.5px solid var(--color-accent);
        transform: translateX(-50%) rotate(45deg);
        transition: transform 0.25s ease, bottom 0.25s ease;
    }

    .genboku-step.is-open .genboku-step-title::after {
        transform: translateX(-50%) rotate(-135deg);
        bottom: 8px;
    }

    .genboku-step-text {
        display: none;
        margin-top: 10px;
    }

    .genboku-step.is-open .genboku-step-text {
        display: block;
    }

    /* 購入するボタン: 「購入」+カートアイコンの順に表示 */
    .fixed-purchase-btn {
        flex-direction: row-reverse;
    }

    .fixed-purchase-btn-text {
        font-size: 0;
    }

    .fixed-purchase-btn-text::before {
        content: '購入';
        font-size: 0.85rem;
        letter-spacing: 0.08em;
    }

    /* 商品カード内の購入ボタン: 「購入」+カートアイコンの順に表示 */
    .product-card-btn {
        flex-direction: row-reverse;
    }

    .product-card-btn-arrow {
        display: none;
    }

    .product-card-btn-cart {
        display: inline-block;
    }

    .product-card-btn-text {
        font-size: 0;
    }

    .product-card-btn-text::before {
        content: '購入';
        font-size: 0.8rem;
        letter-spacing: 0.1em;
    }

    /* こだわり3カード: 正三角形の頂点配置（上段中央 / 下段2列） */
    .about-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 16px 12px;
    }

    .about-card:nth-child(1) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 70%;
    }

    /* カード本文のプルダウン（初期非表示・タイトルクリックで展開） */
    .about-card {
        padding-top: 20px;
        padding-bottom: 20px;
        cursor: pointer;
    }

    .about-card-title {
        position: relative;
        margin-bottom: 0;
        padding-right: 34px;
        display: inline-block;
    }

    .about-card-title::before {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: rgba(196, 162, 101, 0.13);
        border: 1.5px solid rgba(196, 162, 101, 0.45);
        transition: background 0.25s ease;
    }

    .about-card.is-open .about-card-title::before {
        background: rgba(196, 162, 101, 0.22);
    }

    .about-card-title::after {
        content: '';
        position: absolute;
        right: 9px;
        top: 50%;
        width: 6px;
        height: 6px;
        border-right: 1.5px solid var(--color-accent);
        border-bottom: 1.5px solid var(--color-accent);
        transform: translateY(-65%) rotate(45deg);
        transition: transform 0.25s ease;
    }

    .about-card.is-open .about-card-title::after {
        transform: translateY(-35%) rotate(-135deg);
    }

    .about-card-text {
        display: none;
        margin-top: 12px;
    }

    .about-card.is-open .about-card-text {
        display: block;
    }
}

/* ============================================
   RESPONSIVE - Small Mobile
   ============================================ */
@media (max-width: 380px) {
    .side-deco-left,
    .side-deco-right {
        width: 33px;
        background-size: 33px auto;
    }

    .side-deco > .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .section-news > .container,
    .section-company > .container,
    .page-contact > .container {
        margin-left: 12px;
        margin-right: 12px;
    }

    .section-about .about-card {
        padding-left: 0;
        padding-right: 0;
    }

    .about-story-content {
        margin-left: 8px;
        margin-right: 8px;
    }

    .products-grid {
        margin-left: 5px;
        margin-right: 5px;
    }

    .section-products .product-card-body {
        padding-left: 8px;
        padding-right: 8px;
    }

    .section-genboku .genboku-step-text {
        padding-left: 0;
        padding-right: 0;
    }

    .section-products .product-card-excerpt {
        display: none;
    }

    .section-products .product-card-image {
        aspect-ratio: 1 / 1;
    }

    /* 原木工程: 中央の矢印列を縮小してコンテンツ幅を拡張 */
    .genboku-process {
        grid-template-columns: 1fr 20px 1fr;
    }

    /* 横矢印(a1/a4/a6): コンテナpadding 18px に合わせて工程画像中央に揃える */
    .genboku-arrow-a1,
    .genboku-arrow-a4,
    .genboku-arrow-a6 {
        padding-top: calc((100vw - 56px) * 0.1875 - 22px);
    }

    /* コンテナpadding 18px×2=36px → (100vw-36px)/2 + 10px = 50vw-8px */
    .genboku-arrow-a2 .genboku-arrow-img--turn,
    .genboku-arrow-a5 .genboku-arrow-img--turn {
        width: calc(50vw - 8px);
    }

    /* ≤380px: 展開テキストの列位置別拡張（コンテナpadding 18pxに合わせ縮小） */
    .genboku-compare-item.is-open .genboku-compare-text,
    .genboku-step.is-open .genboku-step-text {
        padding: 12px 10px;
    }

    .genboku-compare-item:first-child.is-open .genboku-compare-text {
        margin-left: 0;
        margin-right: -96px;
    }
    .genboku-compare-item:last-child.is-open .genboku-compare-text {
        margin-left: -96px;
        margin-right: 0;
    }

    .genboku-step-s1.is-open .genboku-step-text,
    .genboku-step-s3.is-open .genboku-step-text,
    .genboku-step-s5.is-open .genboku-step-text {
        margin-left: 0;
        margin-right: -96px;
    }
    .genboku-step-s2.is-open .genboku-step-text,
    .genboku-step-s4.is-open .genboku-step-text,
    .genboku-step-s6.is-open .genboku-step-text {
        margin-left: -96px;
        margin-right: 0;
    }

    /* ≤380px: 吹き出し位置を96px/2=48pxに調整 */
    .genboku-compare-item:first-child.is-open .genboku-compare-text::before,
    .genboku-step-s1.is-open .genboku-step-text::before,
    .genboku-step-s3.is-open .genboku-step-text::before,
    .genboku-step-s5.is-open .genboku-step-text::before {
        left: calc(50% - 48px);
    }

    .genboku-compare-item:last-child.is-open .genboku-compare-text::before,
    .genboku-step-s2.is-open .genboku-step-text::before,
    .genboku-step-s4.is-open .genboku-step-text::before,
    .genboku-step-s6.is-open .genboku-step-text::before {
        left: calc(50% + 48px);
    }

    /* ≤380px 固有の上書きのみ（プルダウンの基本スタイルは ≤768px ブロックで定義済み） */

    /* 購入するボタン: 「購入」+カートアイコンの順に表示 */
    .fixed-purchase-btn {
        flex-direction: row-reverse;
    }

    .fixed-purchase-btn-text {
        font-size: 0;
    }

    .fixed-purchase-btn-text::before {
        content: '購入';
        font-size: 0.85rem;
        letter-spacing: 0.08em;
    }

    /* 商品カード内の購入ボタン: 「購入」+カートアイコンの順に表示 */
    .product-card-btn {
        flex-direction: row-reverse;
    }

    .product-card-btn-arrow {
        display: none;
    }

    .product-card-btn-cart {
        display: inline-block;
    }

    .product-card-btn-text {
        font-size: 0;
    }

    .product-card-btn-text::before {
        content: '購入';
        font-size: 0.8rem;
        letter-spacing: 0.1em;
    }

    /* こだわり3カード: 正三角形の頂点配置（上段中央 / 下段2列） */
    .about-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 16px 12px;
    }

    .about-card:nth-child(1) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 70%;
    }

    .about-card {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .section-title {
        font-size: 1.25rem;
    }
}

