/* 
*  TGM Wood Factory Website Stylesheet
*  Modern & Elegant Design for Woodworking Business
*/

/* 追加スタイルシートのインポート */
/* 存在しないファイルをコメントアウト（404エラーの原因） */
/* @import url('product-styles.css'); */
/* @import url('custom.css'); */
/* @import url('size-flexibility.css'); */
/* @import url('instagram.css'); */
/* @import url('table.css'); */

/* =============== 基本設定 =============== */
:root {
    /* カラーパレット - MS Solidwoodインスパイアのモダンな色調 */
    --color-primary: #8B6B3E;      /* メインカラー - 落ち着いた木目色 */
    --color-secondary: #D4B896;    /* アクセントカラー - 上品なベージュ */
    --color-dark: #2C2C2C;         /* ダークグレー - モダンなテキスト色 */
    --color-light: #FAFAFA;        /* ピュアライトグレー - 背景色 */
    --color-white: #FFFFFF;        /* 純白 - クリーンな背景用 */
    --color-gray: #F5F5F5;         /* ライトグレー - セクション背景 */
    --color-text: #4A4A4A;         /* ソフトグレー - 読みやすいテキスト色 */
    --color-accent: #A0845C;       /* 追加アクセントカラー - 暖かみのあるブラウン */
    
    /* フォント - よりモダンで洗練されたフォントスタック */
    --font-primary: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic Medium', 'Meiryo', sans-serif;
    --font-secondary: 'Hiragino Mincho ProN', 'Noto Serif JP', 'Yu Mincho Medium', 'Times New Roman', serif;
    
    /* スペース・サイズ */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 0.625rem;  /* 10px */
    --spacing-xl: 5rem;
    
    /* トランジション */
    --transition-slow: all 0.5s ease;
    --transition-normal: background-color 0.15s ease-out, color 0.15s ease-out;
    --transition-fast: all 0.1s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

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

/* =============== モバイル改行制御 =============== */
/* 日本語テキストの改行制御 */
.japanese-text {
    word-break: keep-all;       /* 日本語の単語を分割しない */
    line-break: strict;         /* 厳密な改行ルール */
    overflow-wrap: break-word;  /* 長い単語の改行 */
}

/* モバイル専用の改行制御 */
@media (max-width: 768px) {
    /* 短い1行タイトル用の改行制御 - 中央揃えを維持しつつ適切に改行 */
    .section-title,
    .hero-title,
    .category-title,
    .info-item h4 {
        word-break: keep-all;
        line-break: auto;
        overflow-wrap: break-word;  /* 必要時のみ改行 */
        text-align: center;         /* 中央揃えを明示的に設定 */
        white-space: normal;
        max-width: 100%;
    }
    
    /* セクションサブタイトルも同様 */
    .section-subtitle {
        word-break: keep-all;
        line-break: auto;
        overflow-wrap: break-word;
        text-align: center;
        white-space: normal;
    }
}

/* 改行を防ぐクラス */
.no-break {
    white-space: nowrap;        /* 改行を禁止 */
    overflow: hidden;           /* はみ出し部分を隠す */
    text-overflow: ellipsis;    /* 長すぎる場合は...表示 */
}

/* 通常の改行を許可するクラス */
.allow-break {
    white-space: normal;        /* 通常の改行 */
    word-wrap: break-word;      /* 長い単語の改行 */
    overflow-wrap: break-word;  /* モダンブラウザ対応 */
}

/* モバイル専用改行表示 */
.mobile-only-br {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only-br {
        display: inline;
    }
}

/* PC専用改行 - モバイルでは非表示 */
.pc-only-br {
    display: inline; /* PC: 通常表示 */
}

@media (max-width: 768px) {
    .pc-only-br {
        display: none !important; /* モバイル: 非表示 */
    }
}

/* タブレット以上でのみ改行 */
.tablet-up-br {
    display: none; /* モバイル: 非表示 */
}

@media (min-width: 769px) {
    .tablet-up-br {
        display: inline; /* タブレット以上: 表示 */
    }
}

/* 複数行説明文用のクラス */
.long-text-description {
    text-align: center; /* デフォルトは中央揃え */
}

@media (max-width: 768px) {
    .long-text-description {
        text-align: left !important;
        padding: 0 0.5rem;
        word-break: normal;
        line-break: auto;
        overflow-wrap: break-word;
    }
}

/* =============== 手動制御用ユーティリティクラス =============== */

/* モバイルでのみ左寄せ */
.mobile-left {
    /* PC: 変更なし（継承） */
}

@media (max-width: 768px) {
    .mobile-left {
        text-align: left !important;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* モバイルでのみ中央揃え */
.mobile-center {
    /* PC: 変更なし（継承） */
}

@media (max-width: 768px) {
    .mobile-center {
        text-align: center !important;
    }
}

/* モバイルでのみ右寄せ */
.mobile-right {
    /* PC: 変更なし（継承） */
}

@media (max-width: 768px) {
    .mobile-right {
        text-align: right !important;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* =============== 改行制御用ユーティリティクラス =============== */

/* モバイルでのみ改行を防ぐ */
.mobile-no-break {
    /* PC: 変更なし（継承） */
}

@media (max-width: 768px) {
    .mobile-no-break {
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* モバイルでのみ改行を許可 */
.mobile-allow-break {
    /* PC: 変更なし（継承） */
}

@media (max-width: 768px) {
    .mobile-allow-break {
        white-space: normal !important;
        word-break: keep-all;
        line-break: auto;
        overflow-wrap: break-word;
    }
}

/* モバイルでのみ積極的に改行 */
.mobile-force-break {
    /* PC: 変更なし（継承） */
}

@media (max-width: 768px) {
    .mobile-force-break {
        white-space: normal !important;
        word-break: break-all;
        line-break: anywhere;
        overflow-wrap: anywhere;
    }
}

/* モバイルでのみ文字サイズ調整 */
.mobile-text-sm {
    /* PC: 変更なし（継承） */
}

@media (max-width: 768px) {
    .mobile-text-sm {
        font-size: 0.9rem !important;
    }
}

.mobile-text-xs {
    /* PC: 変更なし（継承） */
}

@media (max-width: 768px) {
    .mobile-text-xs {
        font-size: 0.8rem !important;
    }
}

/* =============== ユーティリティクラス =============== */

.section {
    padding: var(--spacing-xl) 0;
}


.primary-btn {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);  /* 影を強く */
    border: none;
    font-weight: 500;  /* フォントを少し太く */
}

.primary-btn:hover {
    background-color: var(--color-accent);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.3);  /* ホバー時は影をさらに強く */
    transform: translateY(-2px);  /* 少し浮き上がる */
}

.secondary-btn {
    background-color: #FFFFFF;  /* 純白の背景 */
    color: var(--color-primary);
    border: 3px solid var(--color-primary);  /* 枠線をさらに太く */
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);  /* 影を強く */
    font-weight: 500;  /* フォントを少し太く */
}

.secondary-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.3);  /* ホバー時は影をさらに強く */
    transform: translateY(-2px);  /* 少し浮き上がる */
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* モバイルでのセクションヘッダー調整 - 基本は中央揃えを維持 */
@media (max-width: 768px) {
    .section-header {
        text-align: center; /* 基本は中央揃えを維持 */
        padding: 0 0.5rem;
    }
    
    /* 特定の長い説明文のみ左寄せクラスを適用 */
    .section-header.left-align-mobile {
        text-align: left;
    }
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 5vw, 3rem);  /* より大きく、モダンなサイズ */
    font-weight: 300;  /* より軽やかなウェイト */
    color: var(--color-dark);
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
    letter-spacing: 0.02em;  /* 文字間隔を調整 */
    /* 日本語の改行制御 */
    word-break: keep-all;
    line-break: strict;
    overflow-wrap: break-word;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background-color: var(--color-primary);
}

/* モバイルでの下線調整 - 基本は中央を維持 */
@media (max-width: 768px) {
    /* 左寄せクラスが適用された場合のみ左端に配置 */
    .left-align-mobile .section-title::after {
        left: 0;
        transform: translateX(0);
    }
}

.section-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);  /* わずかに大きく */
    color: var(--color-text);  /* より読みやすい色に */
    font-family: var(--font-primary);
    font-weight: 400;
    margin-top: var(--spacing-sm);
    opacity: 0.8;  /* 少し薄くしてエレガントに */
}

/* =============== ヘッダー =============== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    min-height: 80px;
    z-index: 1000;
    /* デフォルトは透明背景 */
    background-color: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    box-shadow: none;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
    padding: 1rem 0;
}

/* ヘッダー内の特定要素のみ透明にする（ヘッダー自体とサブメニューは除く） */
.header .nav,
.header .nav-list,
.header .nav-item,
.header .container {
    background-color: transparent !important;
}

/* 全ページでサブメニューにブラー効果を追加 */
.header .submenu {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* サブメニューの三角形もブラー効果に合わせて調整 */
.header .submenu::before {
    border-bottom-color: rgba(0, 0, 0, 0.6);
}

/* 全ページでサブメニューの文字を見やすくする */
.header .submenu-link {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* 全ページでサブメニューホバー時も見やすくする */
.header .submenu-link:hover {
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
    background-color: rgba(0, 0, 0, 0.3);
}

/* 全ページでスクロール後は半透明白背景を表示 */
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* スクロール時のサブメニューも白背景にする */
.header.scrolled .submenu {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* スクロール時のサブメニューの文字色を黒に変更 */
.header.scrolled .submenu-link {
    color: var(--color-text);
    text-shadow: none;
}

/* スクロール時のサブメニューホバー時 */
.header.scrolled .submenu-link:hover {
    color: var(--color-primary);
    background-color: rgba(0, 0, 0, 0.1);
}

/* スクロール時のナビゲーション文字色を元に戻す */
.header.scrolled .nav-link {
    color: var(--color-text);
    text-shadow: none;
}

/* スクロール時でもexternal-btnの色を保持 */
.header.scrolled .nav-link.external-btn {
    color: #fff;
    background-color: #2c7ba6;
}

/* 重複ルールを削除 */

/* 重複するスクロール時サブメニュールールを削除 */

/* 全国配送バナーがある場合の調整 - ヘッダーは常に固定表示に変更 */
.shipping-banner ~ .header {
    top: 48px; /* 配送バナーの高さ分下にずらす */
    position: fixed;
}

/* モバイルでの配送バナー対応 */
@media (max-width: 768px) {
    .header {
        height: 60px; /* モバイルでのヘッダー高さを固定 */
        min-height: 60px;
        padding:  0.5rem 0; /* パディングを調整 */
    }
    
    .header .container {
        height: 100%;
        align-items: center;
        justify-content: space-between;
    }
    
    .shipping-banner ~ .header {
        top: 56px; /* モバイルでの配送バナー高さに合わせて調整 */
        position: fixed;
        z-index: 1000; /* 配送バナーより下だがページコンテンツより上 */
        height: 80px; /* モバイルでのヘッダー高さを固定 */
    }
}

/* ヒーローセクションの上部マージン調整 */
.shipping-banner ~ .header ~ .hero {
    margin-top: calc(80px + 48px); /* ヘッダー高さ + 配送バナー高さ（padding 0.75rem * 2 = 24px + font-size） */
}

/* トップページではヒーローセクションを配送バナーの直下に配置 */
body.is-index .shipping-banner ~ .header ~ .hero {
    margin-top: 48px; /* 配送バナーの高さのみ */
}

.header ~ .hero {
    margin-top: 80px; /* ヘッダー高さのみ */
}

/* モバイルでのヒーローセクション上部マージン調整 */
@media (max-width: 768px) {
    .shipping-banner ~ .header ~ .hero {
        margin-top: calc(60px + 56px); /* モバイルのヘッダー高さ + 配送バナー高さ */
    }
    
    /* トップページではモバイルでも配送バナーの直下に配置 */
    body.is-index .shipping-banner ~ .header ~ .hero {
        margin-top: 56px; /* モバイル配送バナーの高さのみ */
    }
    
    .header ~ .hero {
        margin-top: 60px; /* モバイルのヘッダー高さのみ */
    }
}

/* 配送バナーがない場合のページ全体の上マージン */
.page-title,
.yndesign-hero {
    margin-top: 80px;
}

/* 配送バナーがある場合のページタイトル調整 */
.shipping-banner ~ .header ~ main .page-title,
.shipping-banner ~ .header ~ .page-title {
    margin-top: calc(80px + 48px); /* ヘッダー高さ + 配送バナー高さ */
}

/* モバイルでのページタイトル調整 */
@media (max-width: 768px) {
    .page-title,
    .yndesign-hero {
        margin-top: 60px;
    }
    
    .shipping-banner ~ .header ~ main .page-title,
    .shipping-banner ~ .header ~ .page-title {
        margin-top: calc(60px + 56px); /* モバイルのヘッダー高さ + 配送バナー高さ */
    }
}


.logo {
    z-index: 100;
}

.logo-img {
    height: 60px;
    width: auto;
}

.nav-list {
    display: flex;
    align-items: center;
    flex-wrap: nowrap; /* 改行を防ぐ */
    overflow: visible; /* はみ出しを許可しない */
}

.nav-item {
    margin: 0 1rem;
    flex-shrink: 1; /* 必要に応じて縮小を許可 */
}

/* 画面幅が狭い時のメニュー間隔調整 */
@media (max-width: 1200px) {
    .nav-item {
        margin: 0 0.8rem;
    }
}

@media (max-width: 1000px) {
    .nav-item {
        margin: 0 0.6rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.3rem;
    }
}

@media (max-width: 900px) {
    .nav-item {
        margin: 0 0.4rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.3rem 0.2rem;
    }
}

.nav-link {
    position: relative;
    font-weight: 500;
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9); /* 全ページで白文字を適用 */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}


/* nav-link::after スタイルは effects/rotating-bar.css に移動 */
/*
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-normal);
}
*/

.nav-link:hover {
    color: var(--color-primary);
}

/* nav-link:hover::after スタイルは effects/rotating-bar.css に移動 */
/*
.nav-link:hover::after {
    width: 100%;
}
*/

/* 英語＋日本語ナビゲーションスタイル */
.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    position: relative; /* 回転バーの基準位置 */
}

.nav-en {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.nav-jp {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
}

.nav-link:hover .nav-jp {
    opacity: 1;
}

/* サブメニューのスタイル調整 */
.submenu-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.submenu-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.submenu-text .nav-en {
    font-size: 0.85rem;
    margin-bottom: 1px;
}

.submenu-text .nav-jp {
    font-size: 0.7rem;
}

/* サブメニューのドロップダウンスタイル */
.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    min-width: 220px;
    z-index: 1000;
    padding: 0.5rem 0;
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu-item {
    list-style: none;
}

.submenu-link {
    padding: 0.75rem 1.5rem;
    transition: background-color 0.3s;
}

.submenu-link:hover {
    background-color: var(--color-light);
}

/* =============== ボタン統一スタイル =============== */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    padding: 1rem 2.5rem;
    border-radius: 2px;  /* よりシャープで現代的 */
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease-out, color 0.15s ease-out, transform 0.2s ease, box-shadow 0.2s ease;
    font-family: var(--font-primary);
    text-transform: none;  /* 大文字変換を削除 */
    letter-spacing: 0.5px;  /* 文字間隔を狭く */
    font-size: 0.95rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.primary-btn {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);  /* 影を強く */
    border: none;
    font-weight: 500;  /* フォントを少し太く */
}

.primary-btn:hover {
    background-color: var(--color-accent);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.3);  /* ホバー時は影をさらに強く */
    transform: translateY(-2px);  /* 少し浮き上がる */
}

.contact-btn {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 2rem;
    border-radius: 8px;
}

.contact-btn:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
}

/* 外部リンクボタンのスタイル */
.external-btn {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    margin-left: 0.5rem;
}

.external-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.external-btn i {
    margin-left: 0.5rem;
    font-size: 0.8em;
}

/* 外部リンクボタンのスタイルはnav-external.cssに定義 */

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 100;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: var(--color-dark);
    margin: 3px 0;
    transition: var(--transition-normal);
}

/* =============== ヒーローセクション =============== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
    margin: 0; /* マージンを除去 */
    padding: 0; /* パディングを除去 */
    background: none; /* 背景を除去 */
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 7vw, 3.5rem);  /* レスポンシブフォントサイズ */
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.5rem);  /* レスポンシブフォントサイズ */
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-secondary);
    font-weight: 400;
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1.2s ease;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.4s ease;
}

.hero-buttons .btn {
    min-width: 160px;
    flex: 0 1 auto;
}

.hero-buttons .secondary-btn {
    background-color: rgba(255, 255, 255, 0.98);  /* ほぼ純白 */
    color: var(--color-primary);
    border: 3px solid var(--color-primary);  /* 枠線をさらに太く */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);  /* 影を強く */
    font-weight: 500;  /* フォントを少し太く */
}

.hero-buttons .secondary-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);  /* ホバー時は影をさらに強く */
    transform: translateY(-2px);  /* 少し浮き上がる */
}

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

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-white);
    font-size: 0.9rem;
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-hint i {
    margin-top: 0.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* =============== コンセプトセクション =============== */
.about {
    background-color: var(--color-white);
    position: relative;
    background-image: url('../images/shop-2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.about-image {
    flex: 1;
    min-width: 300px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 450px; /* 高さを制限 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: var(--spacing-sm);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);  /* レスポンシブフォントサイズ */
    line-height: 1.8;
}

/* =============== 製品紹介セクション =============== */
.products {
    background-color: var(--color-white);
    position: relative;
    background-image: url('../images/table-2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
}

.products .container {
    position: relative;
    z-index: 2;
}

/* 新しい一枚板テーブルレイアウト */
/* デスクトップ版（タブレット以上） */
@media (min-width: 769px) {
    .products-content-new {
        display: flex;
        gap: var(--spacing-xl);
        align-items: flex-start;
    }

    .products-gallery {
        flex: 1;
        max-width: 50%;
    }

    .products-info {
        flex: 1;
        max-width: 50%;
    }
}

.main-image-container {
    margin-bottom: var(--spacing-md);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.main-table-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: opacity 0.3s ease;
    background-color: #f5f5f5;
    object-position: center;
}

.thumbnail-container {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    opacity: 0.7;
    outline: none;
}

.thumbnail:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.thumbnail.active {
    border-color: var(--color-primary);
    opacity: 1;
    box-shadow: 0 2px 8px rgba(139, 107, 62, 0.3);
    outline: none;
}

.thumbnail:focus {
    outline: none;
}

.thumbnail:active {
    outline: none;
}

.products-info .products-desc {
    text-align: left;
    margin: 0 0 var(--spacing-sm);
    max-width: none;
}

.products-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

/* デスクトップ版のボタンスタイル */
@media (min-width: 769px) {
    .products-buttons .btn {
        flex: 1;
        min-width: 140px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* 従来のレイアウト用 */
.products-desc {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);  /* レスポンシブフォントサイズ */
    line-height: 1.8;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .products-content-new,
    .custom-content-new {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .products-gallery,
    .products-info,
    .custom-gallery,
    .custom-info {
        max-width: 100%;
        flex: none;
        width: 100%;
    }

    .main-table-image,
    .main-custom-image {
        height: 250px;
    }

    .main-image-container,
    .thumbnail-container {
        width: 100%;
    }

    /* ボタンのモバイル2列表示は mobile-responsive.css で設定 */

}

/* モバイルでの長文説明専用クラス */
@media (max-width: 768px) {
    /* 長い説明文のみ左寄せ */
    .long-description-mobile {
        text-align: left !important;
        margin: 0 0 var(--spacing-lg);
        padding: 0 0.5rem;
    }
    
    /* 長文説明の親要素のボタングループも左寄せ */
    .long-description-mobile ~ .text-center,
    .section-header.left-align-mobile ~ .products-content .text-center {
        text-align: left;
        padding: 0 0.5rem;
    }
    
    .long-description-mobile ~ .text-center .button-group,
    .section-header.left-align-mobile ~ .products-content .button-group {
        justify-content: flex-start !important;
    }
}

.product-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.product-category {
    background-color: var(--color-white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
}

.product-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-image {
    height: 250px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-category:hover .category-image img {
    transform: scale(1.1);
}

.category-title {
    padding: 1.5rem 1.5rem 0.5rem;
    font-family: var(--font-secondary);
    font-size: clamp(1.1rem, 3vw, 1.3rem);  /* レスポンシブフォントサイズ */
    color: var(--color-dark);
    font-weight: 600;
}

.category-desc {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-text);
}

/* =============== オーダーメイドセクション =============== */
.custom {
    background-color: var(--color-white);
    position: relative;
    background-image: url('../images/3D-1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.91);
    z-index: 1;
}

.custom .container {
    position: relative;
    z-index: 2;
}

/* 新しいオーダーメイドレイアウト */
/* デスクトップ版（タブレット以上） */
@media (min-width: 769px) {
    .custom-content-new {
        display: flex;
        gap: var(--spacing-xl);
        align-items: flex-start;
    }

    .custom-gallery {
        flex: 1;
        max-width: 50%;
    }

    .custom-info {
        flex: 1;
        max-width: 50%;
    }
}

.custom-gallery .main-image-container {
    margin-bottom: var(--spacing-md);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.main-custom-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: opacity 0.3s ease;
    background-color: #f5f5f5;
    object-position: center;
}

.custom-desc {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.custom-info .custom-features {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0;
}

.custom-info .custom-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.custom-info .custom-features li i {
    color: var(--color-primary);
    margin-right: 0.75rem;
    font-size: 1rem;
    width: 16px;
    flex-shrink: 0;
}

.custom-info .custom-features li i.fa-robot {
    color: #ff6b6b;
}

.custom-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

/* デスクトップ版のボタンスタイル */
@media (min-width: 769px) {
    .custom-buttons .btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.custom-buttons .ai-btn {
    background-color: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

.custom-buttons .ai-btn:hover {
    background-color: #ff5252;
    border-color: #ff5252;
}

/* 一枚板テーブルとオーダーメイドのボタンを最適化 */
.products-buttons .btn,
.custom-buttons .btn {
    transition: background-color 0.15s ease-out, color 0.15s ease-out;
    will-change: background-color, color;
    transform: translateZ(0); /* GPU レイヤー強制作成 */
}

/* 従来のレイアウト用（互換性のため残す） */
.custom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.custom-text {
    flex: 1;
    min-width: 300px;
}

.custom-text p {
    margin-bottom: var(--spacing-md);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);  /* レスポンシブフォントサイズ */
    line-height: 1.8;
}

.custom-features {
    margin-bottom: var(--spacing-md);
}

.custom-features li {
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
}

.custom-features i {
    color: var(--color-primary);
    margin-right: 0.8rem;
}

.custom-image {
    flex: 1;
    min-width: 300px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 450px; /* 高さを制限 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 縦長画像の場合に適切に表示 */
}

/* =============== ワークショップセクション =============== */
.workshop {
    background-color: var(--color-light);
    position: relative;
    background-image: url('../images/shop-5.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.workshop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 248, 248, 0.92);
    z-index: 1;
}

.workshop .container {
    position: relative;
    z-index: 2;
}

.workshop-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.workshop-image {
    flex: 1;
    min-width: 300px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.workshop-text {
    flex: 1;
    min-width: 300px;
}

.workshop-text p {
    margin-bottom: var(--spacing-sm);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);  /* レスポンシブフォントサイズ */
    line-height: 1.8;
}

.workshop-info {
    margin: var(--spacing-md) 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.info-item {
    background-color: var(--color-white);
    padding: var(--spacing-md);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-item h4 {
    font-family: var(--font-secondary);
    font-size: clamp(1rem, 3vw, 1.2rem);  /* レスポンシブフォントサイズ */
    color: var(--color-dark);
    margin-bottom: var(--spacing-xs);
}

.workshop-details {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: var(--color-text);
}

.workshop-details span {
    font-weight: bold;
    color: var(--color-primary);
}

/* =============== ギャラリーセクション =============== */
.gallery {
    background-color: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 5px;
    position: relative;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.gallery-item.scroll-animation.visible:hover .gallery-img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* =============== 画像モーダル =============== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                backdrop-filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.image-modal .modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    margin: auto;
    display: block;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.image-modal .modal-image {
    max-width: 100%;
    max-height: calc(90vh - 80px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: block;
}

.image-modal .modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.image-modal .modal-close:hover {
    transform: scale(1.1);
}

.image-modal .modal-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    color: white;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.9;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* =============== アクセスセクション =============== */
.access {
    background-color: var(--color-gray);
}

.access-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    align-items: stretch;
}

.access-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* よりコンパクトな連絡先情報 */
.contact-info-compact {
    margin-bottom: 0.5rem;
}

/* 住所ブロックの水平レイアウト */
.address-block {
    display: flex;
    background-color: var(--color-white);
    padding: 0.75rem;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 0.5rem;
    align-items: flex-start;
}

.address-icon {
    margin-right: 0.75rem;
    color: var(--color-primary);
    font-size: 1.2rem;
    padding-top: 0.25rem;
}

.address-content p {
    margin: 0;
    line-height: 1.4;
}

/* コンパクトな連絡先行 */
.contact-compact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: var(--color-white);
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-compact-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-right: 1rem;
}

.contact-compact-item i {
    color: var(--color-primary);
    margin-right: 0.5rem;
    font-size: 0.95rem;
}

.access-map {
    flex: 2.5;
    min-width: 300px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-height: 500px;
    position: relative;
}

.access-map iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    position: absolute;
    top: 0;
    left: 0;
}

/* アクセス建物の説明用スタイル */
.access-building {
    background-color: var(--color-white);
    border-radius: 5px;
    padding: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.access-image {
    width: 100%;
    height: 240px; /* 適切な高さに調整 */
    overflow: hidden;
    border-radius: 3px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.access-description {
    font-size: 1rem;
    color: var(--color-dark);
    font-weight: 500;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-compact-row {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .contact-compact-item {
        white-space: normal;
        margin-right: 0;
    }
}

/* =============== お問い合わせセクション =============== */
.contact {
    background-color: var(--color-white);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background-color: var(--color-light);
    padding: var(--spacing-lg);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-dark);
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(155, 118, 83, 0.1);
}

.contact-form button {
    width: 100%;
    margin-top: var(--spacing-sm);
}

/* =============== 保証・アフターサービス =============== */
.warranty-section {
    background-color: #f8f9fa;
    padding: 40px 0;
    margin: 40px 0;
    border-radius: 12px;
}

.warranty-box {
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin: 0 auto;
    max-width: 1000px;
}

.warranty-header {
    text-align: center;
    margin-bottom: 40px;
}

.warranty-title {
    font-family: var(--font-secondary);
    font-size: 2rem;
    color: var(--color-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.warranty-title i {
    color: var(--color-primary);
}

.warranty-subtitle {
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.8;
}

.warranty-content {
    display: grid;
    gap: 30px;
}

.warranty-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    border-left: 4px solid var(--color-primary);
}

.warranty-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.warranty-card-content {
    color: var(--color-text);
    line-height: 1.8;
}

.warranty-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.warranty-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.warranty-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: bold;
}

.warranty-note {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.warranty-note-title {
    font-weight: 600;
    color: #856404;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warranty-important {
    background-color: #ffe4e1;
    border: 1px solid #ffb3ad;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.warranty-important-title {
    font-weight: 600;
    color: #d9534f;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* モバイル用の保証・アフターサービス表示調整 */
@media (max-width: 768px) {
    .warranty-section {
        padding: 30px 0;
        margin: 30px 0;
    }
    
    .warranty-box {
        padding: 20px 10px; /* パディングをさらに縮小して幅を広げる */
        margin: 0 5px; /* マージンも縮小 */
        max-width: none; /* 最大幅制限を解除 */
    }
    
    .warranty-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .warranty-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .warranty-card {
        padding: 20px 10px; /* カード内のパディングをさらに縮小 */
        margin: 0 -10px; /* 左右のマージンをより大きくマイナスにして幅を大幅に広げる */
    }
    
    .warranty-card-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .warranty-card-content {
        font-size: 0.95rem;
        line-height: 1.7; /* 読みやすい行間 */
    }
    
    .warranty-list li {
        padding: 6px 0;
        padding-left: 18px; /* 左パディングを少し縮小 */
        padding-right: 5px; /* 右パディングを追加して調整 */
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .warranty-note,
    .warranty-important {
        padding: 15px 12px; /* 注意事項も幅を広げる */
        margin: 15px -5px; /* 左右のマージンをマイナスにして幅を広げる */
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .warranty-note-title,
    .warranty-important-title {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    /* 保証セクション内のcontainerもより広く */
    .warranty-section .container {
        width: 98%; /* さらに広い幅を使用 */
        padding: 0 0.3rem; /* パディングをさらに縮小 */
    }
}

/* =============== フッター =============== */
.footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: var(--spacing-lg) 0 var(--spacing-sm);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.footer-info {
    flex: 2;
    min-width: 300px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: var(--spacing-sm);
}

.footer-contact {
    margin-top: var(--spacing-md);
}

.footer-contact p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    color: var(--color-secondary);
    margin-right: 0.8rem;
    width: 20px;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h3 {
    color: var(--color-secondary);
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    transition: var(--transition-normal);
}

.footer-links ul li a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-social h3 {
    color: var(--color-secondary);
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition-normal);
}

.social-icon:hover {
    background-color: var(--color-primary);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* スクロールトップボタン */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 100;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--color-dark);
    transform: translateY(-5px);
}

/* =============== レスポンシブデザイン =============== */
/* 992px以下での調整はclamp関数により自動対応されるため削除 */

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .header .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--color-white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        flex: none;
        overflow: hidden;
    }
    
    .header .nav.active {
        right: 0;
    }
    
    .header .nav .nav-list {
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        height: 100%;
        padding: 120px 1.5rem 2rem 1.5rem;
        margin: 0;
        overflow-y: auto;
    }
    
    .header .nav .nav-item {
        margin: 0.2rem 0;
        width: 100%;
    }
    
    .header .nav .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 1rem;
        padding: 0.75rem 0;
        width: 100%;
        border-bottom: 1px solid #eee;
        text-align: center;
    }
    
    /* ヒーローボタンのモバイル2列表示は mobile-responsive.css で設定 */
    
    .about-content,
    .custom-content,
    .workshop-content {
        flex-direction: column;
    }
    
    .about-image,
    .custom-image,
    .workshop-image {
        order: 1;
        margin-bottom: var(--spacing-md);
    }
    
    .about-text,
    .custom-text,
    .workshop-text {
        order: 2;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .gallery-img {
        height: 150px;
    }
    
    .access-content {
        flex-direction: column;
        align-items: stretch;
    }

    .access-map {
        min-height: 300px;
        height: auto;
    }
    
    .contact-form {
        padding: var(--spacing-md);
    }
    
    .footer-content > div {
        flex: 100%;
        margin-bottom: var(--spacing-md);
    }
    
    /* モバイル向けパディング・マージン調整 */
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .container {
        width: 95%;
        padding: 0 0.5rem;
    }

    /* モバイル向けモーダル調整 */
    .image-modal .modal-content {
        max-width: 95vw;
        max-height: 85vh;
        margin: 2.5vh auto;
    }

    .image-modal .modal-image {
        max-height: calc(85vh - 120px);
    }

    .image-modal .modal-close {
        top: -30px;
        font-size: 1.5rem;
    }

    .image-modal .modal-caption {
        bottom: -30px;
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
}

/* =============== スクロールアニメーション =============== */
.scroll-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animation.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.scroll-animation.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s ease;
}

.scroll-animation.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s ease;
}

.scroll-animation.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.7s ease;
}

.scroll-animation.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* 遅延アニメーション */
.scroll-animation.delay-1 {
    transition-delay: 0.1s;
}

.scroll-animation.delay-2 {
    transition-delay: 0.2s;
}

.scroll-animation.delay-3 {
    transition-delay: 0.3s;
}

.scroll-animation.delay-4 {
    transition-delay: 0.4s;
}

/* セクション固有のアニメーション調整 */
.section-header.scroll-animation {
    margin-bottom: var(--spacing-lg);
}

.btn.scroll-animation {
    display: inline-block;
}

.gallery-item.scroll-animation {
    transform: translateY(20px) scale(0.95);
}

.gallery-item.scroll-animation.visible {
    transform: translateY(0) scale(1);
}
    /* section-title、section-subtitleはclamp関数により自動調整 */
    
    /* 特定の長文のみ左寄せクラスを使用 */
    .about-text.long-text-description,
    .custom-text.long-text-description,
    .workshop-text.long-text-description {
        text-align: left;
        padding: 0 0.5rem;
    }
}

/* Refactored Inline Styles */
.about-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shipping-inline-banner-wrapper {
    margin-top: 2rem;
}

.new-badge {
    color: #ff6b6b;
}

.workshop-status-note {
    color: #666;
    font-style: italic;
    margin: 1rem 0;
}

.contact-info-compact-wrapper {
    margin-bottom: 0.75rem;
}

.access-info-card {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.access-map-iframe {
    border: 0;
}

.contact-options-wrapper {
    margin-top: 1.5rem;
    text-align: center;
}

.line-consult-btn {
    display: inline-block !important;
    background: #00C300;
    color: white;
    padding: 8px 20px !important;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 195, 0, 0.25);
    width: auto !important;
    max-width: 200px !important;
    margin: 0 auto;
}

.line-consult-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 195, 0, 0.35);
}

.submit-status-message {
    display: none;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.board-number-group-hidden {
    display: none;
}