@charset "UTF-8";
/*
Theme Name: Ootake Store (GeneratePress Child)
Theme URI: https://ohtake-store.com/
Description: 大竹商店サイト専用の GeneratePress 子テーマ。Cocoon 子テーマから移行（デザインは同一）。
Author: 大竹商店
Template: generatepress
Version: 1.0.0
Text Domain: ootake-child
*/

/* ==================================================================
 * 0. GeneratePress レイアウト調整
 *    旧テーマ（Cocoon 子テーマ）はコンテンツを囲むコンテナを持たず、
 *    各セクションが画面幅いっぱいに広がる構造だったため、
 *    GeneratePress 側のコンテナ余白・最大幅を無効化して同じ土台を作る。
 * ================================================================== */
.site.grid-container,
.full-width-content .container.grid-container {
    max-width: 100%;
    width: 100%;
    padding: 0;
}

.site-content {
    display: block;
    padding: 0;
}

.content-area,
.site-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    float: none;
}

.site-main > *,
.sidebar .widget,
.page-header {
    margin-bottom: 0;
}

.inside-article {
    padding: 0;
}

.entry-content:not(:first-child),
.page-content:not(:first-child),
.entry-summary:not(:first-child) {
    margin-top: 0;
}

/* 旧テーマ同様、投稿・固定ページのタイトル／日付ヘッダーは本文内の見出しに任せる
 * （検索結果・404 ページの見出しは消さないよう .wp-singular に限定する） */
.wp-singular .entry-header,
.wp-singular .page-header-image,
.wp-singular .entry-meta {
    display: none !important;
}

/* GeneratePress のフッターラッパーは装飾を持たせず、内側の footer 要素で描画する */
.site-footer {
    background: none;
    padding: 0;
}

/* GeneratePress は .container に背景色を敷くが、本文中にも container クラスを
 * 持つ要素があるため、サイト直下のコンテナ以外は透過にする */
.entry-content .container,
.page-content-bottom .container,
.widget .container {
    background-color: transparent;
}

/* 全幅セクション（margin-left:-50vw 等）が切れないようにする */
.site,
.site-content,
.content-area,
.site-main,
.inside-article {
    overflow: visible;
}

body {
    overflow-x: hidden;
}

/* ==================================================================
 * 0-2. 旧親テーマ（Cocoon）の基本タイポグラフィ
 *      本文のHTMLは Cocoon の基本スタイルを前提に作られているため、
 *      該当する部分だけを移植して同じ字送り・余白を保つ。
 * ================================================================== */

body {
    font-size: 16px;
}

h2 {
    background-color: transparent !important;
}

.article h1,
.article h2,
.article h3,
.article h4,
.article h5,
.article h6 {
    line-height: 1.25;
    font-weight: bold;
}

.article h2 {
    font-size: 24px;
    padding: 25px;
    border-radius: 2px;
}

.article h3 {
    font-size: 22px;
    padding: 12px 20px;
    border-left: 7px solid #888;
    border-right: 1px solid #ddd;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.article h2,
.article h3,
.article h4,
.article h5,
.article h6 {
    margin-bottom: 1.62em;
}

.article h4,
.article h5,
.article h6 {
    font-size: 20px;
    padding: 9px 10px;
}

.article h4 {
    border-top: 2px solid #ddd;
    border-bottom: 2px solid #ddd;
}

.article h5 {
    border-bottom: 2px solid #ddd;
}

.article h6 {
    border-bottom: 1px solid #ddd;
}

.article ul,
.article ol {
    margin-left: 0;
}

.article ul li,
.article ol li {
    margin: 0.2em;
}

.article ul ul,
.article ul ol,
.article ol ul,
.article ol ol {
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-right: 0;
}

.article dd {
    margin-left: 40px;
}

table {
    margin-bottom: 20px;
    max-width: 100%;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

table th,
table td {
    position: relative;
    padding: 0.5em;
}

table th {
    background-color: #f5f6f7;
}

table tr:nth-of-type(2n+1) {
    background-color: #fafbfc;
}

table:not(.has-border-color) :where(th, td) {
    border: 1px solid #eee;
}

blockquote {
    background-color: #fafbfc;
    border: 1px solid #ddd;
    padding: 1.4em 1.8em;
    position: relative;
}

/* 旧テーマの本文ブロック余白・行間（Cocoon のインラインCSS相当） */
.entry-content > * {
    line-height: 1.8;
}

.entry-content > *,
.article p,
.article dl,
.article ul,
.article ol,
.article blockquote,
.article pre,
.article table,
.article .wp-block-image,
.article .wp-block-gallery,
.article .wp-block-columns,
.article .wp-block-group,
.article .wp-block-table,
.article .wp-block-buttons,
.article .wp-block-embed,
.related-entries,
.comments-area {
    margin-bottom: 1.8em;
}

/* 中央寄せ指定のブロック画像 */
.entry-content .wp-block-latest-posts__featured-image.aligncenter img,
.entry-content .aligncenter img {
    margin-left: auto;
    margin-right: auto;
}

/* ==================================================================
 * 1. サイト固有デザイン（旧 Cocoon 子テーマ style.css から移植）
 * ================================================================== */

/* --- ここから静的サイトのCSSを追加します --- */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    /* padding-top: 60px; /* ヘッダーの高さに合わせてコンテンツを下にずらす（仮） */
}

/* Custom Properties (CSS Variables) */
:root {
    --brand-color-primary: #8FBC8F; /* 落ち着いた黄緑色の例 */
    /* 他のブランドカラーや共通で使う色があればここに追加 */
}

/* Optional: Improve typography defaults */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    line-height: 1.2;
}

p {
    margin-bottom: 1em;
}

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

/* First View Section */
/* First View Section - さらに強力な指定で上書き */
body.home #first-view {
    position: relative;
    height: 60vh;
    /* backgroundプロパティで一括指定し、!importantで強制的に適用 */
    background: url('../../uploads/2025/08/top-image_gaikan.webp') center center / cover no-repeat !important;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 0;
    z-index: 1;
    width: 100%;
    max-width: none;
}

#first-view::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* 画像の上に重ねる半透明のオーバーレイ */
    z-index: -1; /* 画像より奥に */
}

.first-view-content {
    width: 100%; /* コンテナの幅 */
    max-width: 1280px; /* lg:px-8 (container) */
    margin-left: auto; /* mx-auto */
    margin-right: auto; /* mx-auto */
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem; /* px-4 */
    text-align: center; /* コンテンツ内のテキスト中央寄せ */
    padding-top: 80px; /* 元のパディングをコンテンツに適用 */
    padding-bottom: 80px; /* 元のパディングをコンテンツに適用 */
}

@media (min-width: 640px) { /* sm */
    .first-view-content {
        padding-left: 1.5rem; /* sm:px-6 */
        padding-right: 1.5rem; /* sm:px-6 */
    }
}

@media (min-width: 1024px) { /* lg */
     .first-view-content {
        padding-left: 2rem; /* lg:px-8 */
        padding-right: 2rem; /* lg:px-8 */
    }
}

/* Style for inner content divs within sections */
.section-content {
    max-width: 1200px; /* セクションコンテンツの最大幅 */
    margin: 0 auto; /* 中央寄せ */
    padding: 0 20px; /* 左右のパディング */
}

@media (min-width: 768px) {
    .section-content {
        padding: 0 20px; /* デスクトップでもパディングを維持 */
    }
}

#first-view h1 {
    font-size: 3em; /* デスクトップ基準のフォントサイズ */
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* 読みやすくするために影 */
}

#first-view p {
    font-size: 1.3em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* 読みやすくするために影 */
}

.first-view-buttons a {
    display: inline-block;
    margin: 0 10px;
    padding: 12px 25px;
    background-color: var(--brand-color-primary); /* ブランドカラーを使用 */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 1.1em;
}

.first-view-buttons a:hover {
    /* darken関数はCSSでは動作しないため、近似色を指定するか、opacityを使用します */
    /* background-color: darken(var(--brand-color-primary), 10%); */
    opacity: 0.9; /* または透明度を変更 */
}

/* News Section */
#news {
    padding: 40px 20px; /* 上下左右にパディング */
    background-color: #f9f9f9; /* 薄いグレーの背景色 */
    text-align: center;
}

#news h2 {
    font-size: 2.2em; /* セクションタイトルのフォントサイズ */
    margin-bottom: 40px; /* タイトルの下に大きめのマージン */
    position: relative;
    display: inline-block; /* 下線のためにインラインブロックに */
}

#news h2::after {
    content: '';
    display: block;
    width: 60px; /* 下線の幅 */
    height: 3px; /* 下線の太さ */
    background-color: var(--brand-color-primary); /* ブランドカラーの下線 */
    margin: 10px auto 0; /* 中央寄せ */
}

#news p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 30px; /* 本文の下にマージン */
    color: #555;
}

.instagram-embed-area {
    margin: 0 auto 30px auto; /* 中央寄せと下マージン */
    max-width: 600px; /* 埋め込みエリアの最大幅 */
    border: 1px solid #ddd; /* 枠線 */
    padding: 20px;
    background-color: #fff;
    /* Instagram埋め込みのスタイルは、実際の埋め込みコードに合わせて調整が必要な場合があります */
}

.news-buttons a {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--brand-color-primary); /* ブランドカラーを使用 */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.news-buttons a:hover {
    /* background-color: darken(var(--brand-color-primary), 10%); */
    opacity: 0.9;
}

/* Services Section */
#services {
    padding: 40px 20px;
    text-align: center;
    background-color: transparent; /* セクション背景色を透明に修正 */
}

#services h2 {
    font-size: 2.2em; /* セクションタイトルのフォントサイズ */
    margin-bottom: 40px; /* タイトルの下に大きめのマージン */
    position: relative;
    display: inline-block; /* 下線のためにインラインブロックに */
}

#services h2::after {
    content: '';
    display: block;
    width: 60px; /* 下線の幅 */
    height: 3px; /* 下線の太さ */
    background-color: var(--brand-color-primary); /* ブランドカラーの下線 */
    margin: 10px auto 0; /* 中央寄せ */
}

#services p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 30px; /* 本文の下にマージン */
    color: #555;
}

.service-items.multi-column {
    display: flex; /* Flexboxを使って子要素を横並びに */
    justify-content: center; /* 中央寄せ */
    gap: 30px;
    flex-wrap: wrap; /* 画面幅が狭い場合に折り返す */
    flex-direction: column; /* スマートフォンではサービスカードを縦積みに */
    align-items: center; /* 中央寄せ */
    margin-top: 40px; /* 単独アイテムとの間にマージン */
}

.service-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px; /* カード内のパディングを増やす */
    max-width: 90%; /* スマートフォンでの最大幅 */
    width: 300px; /* 固定幅 */
    text-align: left; /* テキストを左寄せに */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* 影を強める */
    display: flex;
    flex-direction: column; /* 子要素を縦方向に並べる */
    justify-content: space-between; /* コンテンツを均等配置 */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* ホバーアニメーション */
    /* margin-bottom: 20px; /* アイテム間の下マージン（モバイル縦積みのgap代替） */ /* gapで対応するため削除 */
}

.service-item.single-column {
    max-width: 600px; /* 単独アイテムの最大幅 */
    width: 90%; /* スマートフォンでの幅 */
    margin: 0 auto; /* 中央寄せ */
}

.service-item:hover {
    transform: translateY(-5px); /* 少し浮き上がるアニメーション */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); /* ホバー時の影 */
}

.service-item img {
    max-width: 100%;
    height: 150px; /* 画像の高さを固定 */
    object-fit: cover; /* 画像のアスペクト比を維持してコンテナに収める */
    border-radius: 4px;
    margin-bottom: 15px;
}

/* 以下の .service-item h3 の定義を削除します */
/*
.service-item h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #333;
}
*/

/* 「大竹商店ができること」セクションのh3のスタイルを確実に適用するための追加 */
/* こちらの定義に !important を追加し、スタイルを強制的に適用します */
#services .service-item h3 {
    font-size: 1.25rem !important; /* フォントサイズを確実に適用 */
    margin-bottom: 15px !important; /* 下マージンを確実に適用 */
    color: #333 !important; /* 文字色を確実に適用 */
    text-align: left !important; /* 左寄せを確実に適用 */
    border: none !important; /* 余分な枠線を確実に削除 */
    background: transparent !important; /* 背景色も念のため透明に */
    padding: 0 !important; /* 余分なパディングも念のためリセット */
    line-height: 1.2 !important; /* 行の高さを確実に適用 */
}

.service-item p {
    font-size: 1em;
    color: #555;
    margin-bottom: 20px;
}

.service-item a {
    display: inline-block;
    margin-top: auto; /* ボタンを下に配置 */
    padding: 10px 15px;
    background-color: var(--brand-color-primary); /* ブランドカラーを使用 */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-align: center; /* ボタン内のテキストを中央寄せ */
}

.service-item a:hover {
    /* background-color: darken(var(--brand-color-primary), 10%); */
    opacity: 0.9;
}

/* Store Info Intro Section */
#store-info-intro {
    padding: 40px 20px;
    background-color: #f9f9f9; /* 薄いグレーの背景色 */
    text-align: center;
}

/* Contact Section (Added from user's reference) */
#contact {
    padding: 64px 20px; /* py-16 */
    background-color: #F0F4E8; /* bg-brand-light */
    text-align: center;
}

#contact .container {
    max-width: 1280px; /* lg:px-8 (container) */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem; /* px-4 */
}

@media (min-width: 640px) { /* sm */
    #contact {
        padding-top: 96px; /* sm:py-24 */
        padding-bottom: 96px; /* sm:py-24 */
    }
    #contact .container {
        padding-left: 1.5rem; /* sm:px-6 */
        padding-right: 1.5rem; /* sm:px-6 */
    }
}

@media (min-width: 1024px) { /* lg */
     #contact .container {
        padding-left: 2rem; /* lg:px-8 */
        padding-right: 2rem; /* lg:px-8 */
    }
}

#contact h2 {
    font-size: 2.2em; /* text-3xl (approx) */
    font-weight: bold; /* font-bold */
    color: #556B2F; /* text-brand-dark */
    margin-bottom: 1rem; /* mb-4 */
    text-align: center; /* text-center */
}

#contact p {
    margin-top: 1rem; /* mt-4 */
    max-width: 56rem; /* max-w-2xl (approx) */
    margin-left: auto; /* mx-auto */
    margin-right: auto; /* mx-auto */
    color: #495057; /* text-text-color-light */
    margin-bottom: 3rem; /* mb-12 */
    line-height: 1.6; /* default line-height */
}

#contact .flex {
    display: flex;
    flex-direction: column; /* flex-col */
    justify-content: center; /* justify-center */
    align-items: center; /* items-center */
    gap: 2rem; /* gap-8 (approx) */
}

@media (min-width: 768px) {
    #contact .flex {
        flex-direction: row; /* md:flex-row */
    }
}

#contact .bg-white {
    background-color: #fff;
    padding: 2rem; /* p-8 */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); /* shadow-lg */
    text-align: center;
    width: 100%; /* w-full */
}

@media (min-width: 768px) { /* md */
    #contact .bg-white {
        width: auto; /* md:w-auto */
    }
}

#contact .bg-white h3 {
    font-size: 1.25rem; /* text-xl */
    font-weight: bold; /* font-bold */
    color: #556B2F; /* text-brand-dark */
    margin-bottom: 0.5rem; /* mb-2 */
    /* ここから追加・修正 */
    border: none !important; /* 余分な枠線を確実に削除 */
    background: transparent !important; /* 背景色も念のため透明に */
    padding: 0 !important; /* 余分なパディングも念のためリセット */
    line-height: 1.2 !important; /* 行の高さを確実に適用 */
}

#contact .bg-white .text-5xl {
     font-size: 3rem; /* text-5xl */
     font-weight: bold; /* font-bold */
     color: #6B8E23; /* text-brand */
     margin-top: 1rem; /* my-4 */
     margin-bottom: 1rem; /* my-4 */
}

#contact .bg-white .text-sm {
    font-size: 0.875rem; /* text-sm */
    color: #495057; /* text-text-color-light */
}

#contact .bg-white .w-40 {
    width: 10rem; /* w-40 */
}

#contact .bg-white .h-40 {
    height: 10rem; /* h-40 */
}

#contact .bg-white .bg-gray-200 {
    background-color: #e5e7eb; /* bg-gray-200 */
    margin-left: auto; /* mx-auto */
    margin-right: auto; /* mx-auto */
    margin-top: 1rem; /* my-4 */
    margin-bottom: 1rem; /* my-4 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem; /* text-sm */
    color: #6b7280; /* text-gray-500 */
    border-radius: 0.5rem; /* rounded */
}

#contact .bg-white a {
    color: #6B8E23; /* text-brand */
    text-decoration: none; /* default */
}

#contact .bg-white a:hover {
    text-decoration: underline; /* hover:underline */
}

#store-info-intro h2 {
    font-size: 2.2em; /* セクションタイトルのフォントサイズ */
    margin-bottom: 40px; /* タイトルの下に大きめのマージン */
    position: relative;
    display: inline-block; /* 下線のためにインラインブロックに */
}

#store-info-intro h2::after {
    content: '';
    display: block;
    width: 60px; /* 下線の幅 */
    height: 3px; /* 下線の太さ */
    background-color: var(--brand-color-primary); /* ブランドカラーの下線 */
    margin: 10px auto 0; /* 中央寄せ */
}

.store-info-content {
    display: flex; /* Flexboxを使って子要素（画像と詳細）を横並びに */
    flex-direction: column; /* デフォルトは縦積み（モバイルファースト） */
    align-items: center; /* 中央寄せ */
    gap: 60px; /* 店舗情報セクションの画像と詳細の間の隙間 */
    max-width: 1000px; /* コンテンツの最大幅 */
    margin: 0 auto; /* 中央寄せ */
    flex-direction: column; /* スマートフォンでは画像と詳細を縦積みに */
}

@media (min-width: 768px) {
    section {
        padding: 60px 20px;
        margin: 0 !important; /* ここを追加・修正：セクション間のマージンをリセット */
    }

    #first-view {
        height: 80vh; /* デスクトップでの高さ (md:h-[80vh]) */
    }

    #first-view h1 {
        font-size: 3em;
    }

    #first-view p {
        font-size: 1.2em;
    }

    .first-view-buttons a {
        padding: 10px 20px;
        font-size: 1em;
    }

    #news h2, #services h2, #store-info-intro h2 {
        font-size: 2.5em;
        margin-bottom: 20px;
    }

    #news p, #services p, .store-details p, .contact-info p {
        font-size: 1.1em;
        margin-bottom: 20px;
    }

    .service-items.multi-column {
        flex-direction: row; /* デスクトップでは横並びに */
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px; /* デスクトップの隙間 */
    }

    .service-item {
        max-width: 300px; /* カードの最大幅 */
        width: auto; /* 幅指定解除 */
    }

    .service-item.single-column {
         max-width: 800px; /* デスクトップでの単独アイテムの最大幅 */
         width: auto; /* 幅指定解除 */
         margin-bottom: 40px; /* 下の3カラムとの間にマージン */
    }

    .store-info-content {
        flex-direction: row; /* デスクトップでは横並びに */
        text-align: left;
        max-width: 1000px;
    }

    .store-images {
        flex: 1;
        width: auto;
        gap: 20px;
    }

    .store-details {
        flex: 1;
        width: auto;
    }

    .store-buttons a {
        margin-right: 10px; /* ボタン間の隙間 */
        padding: 10px 20px;
        font-size: 1em;
    }

    /* ナビゲーションのデスクトップスタイルは既存のものを維持 */
    .main-nav {
        display: flex; /* デスクトップではFlexboxで横並び */
    }

    .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        display: none; /* デフォルトでは非表示 */
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        width: auto; /* 幅指定解除 */
        min-width: 180px;
        padding: 0;
    }

    .sub-menu a {
         padding: 10px 15px;
         padding-left: 15px; /* インデントを解除 */
         font-size: 1em;
    }

    /* 親要素にホバーしたときにサブメニューを表示 */
    .main-nav li:hover > .sub-menu {
        display: block; /* サブメニューを表示 */
    }

    /* デスクトップではハンバーガーアイコンを非表示 */
    .menu-toggle {
        display: none !important; /* 強制的に非表示 */
    }
}

.store-images {
    flex: 1; /* 利用可能なスペースを埋める */
    display: flex;
    flex-direction: column; /* 画像を縦に並べる */
    gap: 20px; /* 複数の店舗画像の間の隙間 */
    width: 90%; /* スマートフォンでの幅調整 */
}

.store-images img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 軽い影 */
}

.store-details {
    flex: 1; /* 利用可能なスペースを埋める */
    width: 90%; /* スマートフォンでの幅調整 */
}

.store-details p {
    font-size: 1em;
    color: #555;
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #333;
}

.contact-info a {
    color: #333;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.store-buttons {
    margin-top: 30px;
    display: flex; /* ボタンをFlexboxコンテナにする */
    gap: 10px; /* ボタン間の隙間 */
    justify-content: center; /* ボタンを中央寄せ */
    flex-wrap: wrap; /* 画面幅が狭い場合に折り返す */
}

.store-buttons a {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--brand-color-primary); /* ブランドカラーを使用 */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.store-buttons a:hover {
    /* background-color: darken(var(--brand-color-primary), 10%); */
    opacity: 0.9;
}

/* Footer Styles (Basic Placeholder) */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 30px 20px; /* パディング調整 */
}

footer p {
    font-size: 1em;
    margin-bottom: 0; /* フッターのパラグラフのマージンをリセット */
}

/* Header Styles */
/* !重要: このヘッダー関連のCSSは、CocoonのヘッダーHTML構造と競合する可能性が高いです。
   もしデザインが正しく適用されない場合、Cocoonのカスタマイザー設定を優先するか、
   子テーマのheader.phpを編集してHTML構造を調整する必要があります。 */
header {
    background-color: #fff; /* 白背景 */
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 軽い影 */
    /* position: fixed; /* ヘッダーを上部に固定 */
    /* width: 100%; /* 幅を100%に */
    /* top: 0; /* 上からの位置 */
    /* left: 0; /* 左からの位置 */
    z-index: 1000; /* 他のコンテンツの上に表示 */
    position: static; /* 固定解除 */
    width: auto; /* 幅指定解除 */
}

.header-content {
    display: flex;
    /* align-items: center; /* 垂直方向中央揃え - 縦並びにするため解除 */
    justify-content: space-between; /* ロゴとナビゲーションを両端に配置 */
    max-width: 1200px; /* ヘッダーコンテンツの最大幅 */
    margin: 0 auto; /* 中央寄せ */
    flex-direction: column; /* 子要素を縦並びに */
    align-items: flex-start; /* 子要素を左寄せ */
}

.header-top {
    display: flex; /* ロゴと連絡先情報を横並びに */
    justify-content: space-between; /* ロゴと連絡先情報を両端に配置 */
    align-items: center; /* 垂直方向中央揃え */
    width: 100%; /* 横幅いっぱい */
    padding-bottom: 10px; /* 下に少し隙間 */
    border-bottom: 1px solid #eee; /* 下線 */
}

.site-logo {
    max-height: 70px; /* ロゴの最大高さ */
    width: auto; /* アスペクト比を維持 */
    display: block; /* 画像を下付きにしない */
}

.header-contact {
    display: flex; /* 電話番号、営業時間、LINEボタンを横並びに */
    align-items: center; /* 垂直方向中央揃え */
    gap: 20px; /* 要素間の隙間 */
    font-size: 0.9em; /* フォントサイズ調整 */
    flex-wrap: wrap; /* 要素が多い場合に折り返す */
    justify-content: center; /* モバイルで中央寄せ */
}

.contact-details {
    display: flex;
    flex-direction: column; /* 上下に配置 */
    align-items: flex-end; /* 右寄せ（親要素に対して）*/
}

.header-contact p {
    margin-bottom: 0; /* パラグラフの下マージンをリセット */
}

.header-contact a {
    color: #333; /* リンクの色 */
    text-decoration: none; /* 下線を消す */
}

.header-contact a:hover {
    text-decoration: underline; /* ホバーで下線 */
}

.phone-number a {
    font-size: 1.2em; /* 電話番号を大きく */
    font-weight: bold;
}

.line-button {
    display: inline-block;
    padding: 5px 10px; /* パディング調整 */
    background-color: #00b900; /* LINEのイメージカラー */
    color: #fff !important; /* 文字色を白に（強制） */
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-align: center; /* テキストを中央寄せ */
}

.line-button:hover {
    background-color: #009900;
}

/* Main Navigation Styles */
/* !重要: このナビゲーション関連のCSSは、CocoonのメニューHTML構造と競合する可能性が高いです。
   WordPressの「外観」->「メニュー」でメニューを作成し、Cocoonのメニュー設定で表示してください。
   正確なデザインを再現するには、子テーマでのHTML構造の調整が必要になる場合があります。 */
.main-nav {
    list-style: none; /* リストのデフォルトの点を消す */
    margin: 0;
    padding: 0;
    display: flex; /* 子要素（li）を横並びに */
    gap: 20px; /* メニュー項目間の隙間 */
}

.main-nav li {
    margin: 0; /* liのデフォルトマージンを消す */
}

.main-nav a {
    text-decoration: none; /* リンクの下線を消す */
    color: #333; /* 文字色 */
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--brand-color-primary); /* ホバー時にブランドカラーに変更 */
}

/* Dropdown Menu Styles */
.main-nav li {
    position: relative; /* サブメニューの位置の基準にする */
}

.sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute; /* 親要素（li）からの絶対位置 */
    top: 100%; /* 親要素の真下に配置 */
    left: 0;
    background-color: #fff; /* サブメニューの背景色 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* サブメニューの影 */
    z-index: 1000; /* 他のコンテンツの上に表示 */
    min-width: 180px; /* サブメニューの最小幅 */
    display: none; /* デフォルトでは非表示 */
}

.sub-menu li {
    margin: 0; /* サブメニュー項目のマージンをリセット */
}

.sub-menu a {
    padding: 10px 15px;
    color: #333; /* サブメニューのリンク色 */
    display: block; /* クリック可能な領域を広げる */
    white-space: nowrap; /* テキストの折り返しを防ぐ */
}

.sub-menu a:hover {
    background-color: #f0f0f0; /* ホバー時の背景色 */
    color: var(--brand-color-primary); /* ホバー時の文字色 */
}

/* 親要素にホバーしたときにサブメニューを表示 */
.main-nav li:hover > .sub-menu {
    display: block; /* サブメニューを表示 */
}

/* General Responsive Adjustments (Mobile First) */
section {
    padding: 60px 20px; /* 各セクションの上下に広めのパディング */
    margin: 0 !important; /* ここを追加・修正：セクション間のマージンをリセット */
}

/* Mobile Menu Toggle (Hamburger Icon) */
/* !重要: このハンバーガーメニューのCSSは、JavaScriptと連携して動作します。
   Cocoonの標準モバイルメニューを無効にし、子テーマのheader.phpなどでHTMLを記述し、
   別途JavaScriptを読み込む必要があります。 */
.menu-toggle {
    display: block; /* スマートフォンでは表示 */
    width: 30px;
    height: 20px;
    position: absolute; /* ヘッダー上部に配置するため absolute */
    top: 20px; /* 上からの位置調整 */
    right: 20px; /* 右からの位置調整 */
    cursor: pointer;
    z-index: 1100; /* ナビゲーションより手前に */
    /* margin-left: 20px; /* レイアウト変更に伴い調整 */
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333; /* アイコンの色 */
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

/* Main Navigation Styles (Mobile) */
.main-nav {
    /* 既存のPC用スタイルはそのまま */
    list-style: none;
    margin: 0;
    padding: 0;
    display: none !important; /* ← これがモバイル時のデフォルト */
    flex-direction: column;
    position: absolute;
    top: auto;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    padding-bottom: 20px;
  }
  
  /* メニューが開いた時だけ表示 */
  .main-nav.active {
    display: flex !important;
  }

.main-nav li {
    margin: 0;
    text-align: center; /* メニュー項目を中央寄せ */
}

.main-nav a {
    display: block; /* タップ領域を広く */
    padding: 10px 20px;
    border-bottom: 1px solid #eee; /* 区切り線 */
}

.sub-menu {
    /* サブメニューはモバイルではドロップダウンではなく展開表示 */
    position: static; /* 絶対位置指定を解除 */
    box-shadow: none; /* 影を解除 */
    background-color: #f9f9f9; /* サブメニューの背景色 */
    width: 100%;
    padding: 0;
}

.sub-menu a {
    padding-left: 30px; /* 下層リンクのインデント */
    font-size: 0.9em;
}

/* タイムスタンプ・メタ情報を非表示にするCSS */
.entry-date,
.entry-time,
.post-date,
.update-date,
.entry-header{
    display: none !important;
}

article{
    margin-bottom: 0px !important;
}

.entry-content{
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

/* 特定のブロックやセクション内の日付を非表示にする場合 */
/* 例: ナビゲーション直下の特定の時間要素を非表示にする */
.header-container time,
.site-header time,
.main-content-top time {
    display: none !important;
}

/* footer-meta を非表示にする */
.entry-footer {
    /*display: none !important; */
    background-color: #F0F4E8;
}

/* Media Query for larger screens (e.g., Tablets and Desktops) */
@media (min-width: 768px) {
    section {
        padding: 60px 20px;
        margin: 0 !important; /* ここを追加・修正：セクション間のマージンをリセット */
    }

    #first-view {
        height: 80vh; /* デスクトップでの高さ (md:h-[80vh]) */
    }

    #first-view h1 {
        font-size: 3em;
    }

    #first-view p {
        font-size: 1.2em;
    }

    .first-view-buttons a {
        padding: 10px 20px;
        font-size: 1em;
    }

    #news h2, #services h2, #store-info-intro h2 {
        font-size: 2.5em;
        margin-bottom: 20px;
    }

    #news p, #services p, .store-details p, .contact-info p {
        font-size: 1.1em;
        margin-bottom: 20px;
    }

    .service-items.multi-column {
        flex-direction: row; /* デスクトップでは横並びに */
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px; /* デスクトップの隙間 */
    }

    .service-item {
        max-width: 300px; /* カードの最大幅 */
        width: auto; /* 幅指定解除 */
    }

    .service-item.single-column {
         max-width: 800px; /* デスクトップでの単独アイテムの最大幅 */
         width: auto; /* 幅指定解除 */
         margin-bottom: 40px; /* 下の3カラムとの間にマージン */
    }

    .store-info-content {
        flex-direction: row; /* デスクトップでは横並びに */
        text-align: left;
        max-width: 1000px;
    }

    .store-images {
        flex: 1;
        width: auto;
        gap: 20px;
    }

    .store-details {
        flex: 1;
        width: auto;
    }

    .store-buttons a {
        margin-right: 10px; /* ボタン間の隙間 */
        padding: 10px 20px;
        font-size: 1em;
    }

    /* ナビゲーションのデスクトップスタイルは既存のものを維持 */
    .main-nav {
        display: flex; /* デスクトップではFlexboxで横並び */
    }

    .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        width: auto; /* 幅指定解除 */
        min-width: 180px;
        padding: 0;
    }

    .sub-menu a {
         padding: 10px 15px;
         padding-left: 15px; /* インデントを解除 */
         font-size: 1em;
    }

    /* 親要素にホバーしたときにサブメニューを表示 */
    .main-nav li:hover > .sub-menu {
        display: block; /* サブメニューを表示 */
    }

    .header-content {
        flex-direction: column; /* デスクトップでも縦並び */
        align-items: center; /* 垂直方向中央揃え */
        /* justify-content: space-between; /* 縦並びなので不要 */
    }

    .header-top {
        width: 100%; /* 上段を横幅いっぱいに */
        display: flex; /* ロゴと連絡先情報を横並びに */
        justify-content: space-between; /* ロゴと連絡先情報を両端に */
        align-items: center; /* 垂直方向中央揃え */
        padding-bottom: 10px; /* 下に少し隙間 */
        border-bottom: 1px solid #eee; /* 下線 */
        margin-bottom: 10px; /* 下段ナビゲーションとの隙間 */
    }

    .header-contact {
        display: flex;
        align-items: center;
        gap: 20px;
        font-size: 0.9em;
        margin-left: auto; /* 右寄せ */
    }

    .contact-details {
        display: flex;
        flex-direction: column; /* 上下に配置 */
        align-items: flex-end; /* 右寄せ */
    }

    .phone-number a {
        font-size: 1.2em; /* 電話番号を大きく */
    }

    .line-button {
        padding: 5px 10px; /* デスクトップのパディング調整 */
        color: #fff !important; /* 文字色を白に（強制） */
    }

    /* デスクトップでのナビゲーションスタイル */
    .main-nav {
        display: flex; /* Flexboxで横並び */
        position: static; /* 位置指定を解除 */
        flex-direction: row; /* 横並びに */
        background-color: transparent; /* 背景色を透明に */
        box-shadow: none;
        padding-bottom: 0;
        width: 100%; /* 横幅いっぱい */
        justify-content: center; /* ナビゲーション項目を中央寄せ */
        margin-top: 0; /* 上マージンをリセット */
    }

    .main-nav li {
        text-align: left; /* テキスト左寄せに戻す */
    }

    .main-nav a {
        border-bottom: none; /* 区切り線を消す */
        padding: 5px 10px; /* デスクトップのパディング */
    }

    .sub-menu a {
        padding: 10px 15px; /* サブメニューのパディング */
        padding-left: 15px; /* インデント解除 */
        font-size: 1em;
    }
}

/* Styles for when the mobile menu is active */
.main-nav.active {
    display: flex; /* JavaScriptでactiveクラスが付与されたときに表示 */
    /* 必要に応じてその他のスタイル（高さ、オーバーフローなど）を追加 */
}

/* Styles for when the menu toggle (hamburger) is active */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* 他のセクションのスタイルはここに追加 */

/* Media Query for smaller screens (Mobile adjustments) */
@media (max-width: 767px) {
    section {
        padding: 40px 15px; /* モバイルのパディング */
    }

     #first-view {
        padding: 60px 15px;
     }

     #first-view h1 {
        font-size: 2em;
     }

     #first-view p {
        font-size: 1.1em;
     }

    #news h2, #services h2, #store-info-intro h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }

    #news p, #services p, .store-details p {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .service-item {
        padding: 25px;
        /* margin-bottom: 15px; /* アイテム間の下マージン（Flexboxのgapで対応） */
    }

    .service-item.single-column {
        margin-bottom: 30px; /* 下の3カラムとの間にマージン */
    }

    /* スマートフォンで連絡先情報を非表示 */
    .header-contact {
        display: none;
    }
}

/* 商品配達ページ専用スタイル */
.delivery-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../uploads/2025/06/service_image4.webp');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 8rem 2rem;
    margin-bottom: 3rem;
    min-height: 568px; /* 固定の最小高さを設定 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.delivery-hero h1 {
    font-size: 3em;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.delivery-hero .hero-text {
    font-size: 1.2em;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.delivery-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.delivery-info {
    margin-bottom: 4rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.info-item {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 0;
    text-align: center;
    position: relative;
}

.info-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: -80px auto 1.5rem;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.info-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.info-item h2 {
    color: var(--brand-color-primary);
    font-size: 1.5em;
    margin-bottom: 1rem;
}

.info-item p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.info-item .note {
    font-size: 0.9em;
    color: #888;
    margin-top: 1rem;
}

.delivery-notes {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 8px;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    position: relative;
}

.delivery-notes h2 {
    font-size: 2.2em;
    margin-bottom: 1.5rem;
    color: #333;
    position: relative;
    text-align: center;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.delivery-notes h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--brand-color-primary);
    margin: 10px auto 0;
}

.delivery-notes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.delivery-notes li {
    margin-bottom: 1rem;
    line-height: 1.6;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 6px;
}

.delivery-notes li strong {
    display: block;
    color: #333;
    margin-bottom: 0.5rem;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .delivery-hero {
        padding: 6rem 1rem;
    }
    .delivery-hero h1 {
        font-size: 2.2em;
    }
    .delivery-hero .hero-text {
        font-size: 1.05em;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .info-item {
        margin-bottom: 1rem;
    }
    
    .delivery-content {
        padding: 0 15px;
    }
}

/* 修理ページ専用スタイル */
.repair-hero {
    background: linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5)), url('../../uploads/2025/06/service_image1.webp');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 8rem 2rem;
    margin-bottom: 3rem;
    min-height: 568px; /* 固定の最小高さを設定 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.repair-hero h1 {
    font-size: 3em;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.repair-hero .hero-text {
    font-size: 1.2em;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.repair-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.repair-items-section {
    margin-bottom: 4rem;
}

.repair-items-section h2 {
    font-size: 2.2em;
    margin-bottom: 5rem;
    color: #333;
    position: relative;
    text-align: center;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.repair-items-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--brand-color-primary, #8FBC8F);
    margin: 10px auto 0;
}

.repair-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.repair-items-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
}

.repair-items-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: -80px auto 1.5rem;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.repair-items-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.repair-items-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.repair-items-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.repair-items-card .note {
    font-size: 0.9em;
    color: #888;
    margin-top: 1rem;
}

.repair-flow {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 8px;
    max-width: 1200px;
    margin: 0 auto 2rem auto !important;
    position: relative;
}

.repair-flow h2 {
    font-size: 2.2em;
    margin-bottom: 1.5rem;
    color: #333;
    position: relative;
    text-align: center;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.repair-flow h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--brand-color-primary);
    margin: 10px auto 0;
}

.repair-flow-steps {
    max-width: 1200px;
    margin: 0 auto 48px auto;
    padding: 40px 20px;
}

.repair-flow-step {
    text-align: center;
    margin-bottom: 40px;
}

.repair-flow-number {
    font-size: 2.2rem;
    font-weight: bold;
    color: #8bc34a;
    margin-bottom: 8px;
}

.repair-flow-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: 0.05em;
}

.repair-flow-desc {
    font-size: 1rem;
    color: #333;
    text-align: center;
    margin: 0 auto;
    max-width: 600px;
}

.repair-price {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 8px;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    position: relative;
}

.repair-price h2 {
    font-size: 2.2em;
    margin-bottom: 1.5rem;
    color: #333;
    position: relative;
    text-align: center;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.repair-price h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--brand-color-primary);
    margin: 10px auto 0;
}

.repair-faq {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 8px;
    max-width: 1200px;
    margin: 0 auto 2rem auto !important;
    position: relative;
}

.repair-faq h2 {
    font-size: 2.2em;
    margin-bottom: 1.5rem;
    color: #333;
    position: relative;
    text-align: center;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.repair-faq h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--brand-color-primary);
    margin: 10px auto 0;
}

.repair-faq ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.repair-faq li {
    margin-bottom: 2rem;
    padding: 1.2rem 1rem;
    background: transparent;
    border-radius: 6px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.repair-faq li i {
    color: var(--brand-color-primary);
    font-size: 1.4em;
    margin-bottom: 0.3em;
    margin-right: 0;
    display: block;
}

.repair-faq strong {
    display: block;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 0.5em;
}

.repair-faq span {
    display: block;
    color: #555;
    font-size: 1em;
    line-height: 1.7;
    margin-left: 0;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .repair-hero {
        padding: 6rem 1rem;
    }
    .repair-hero h1 {
        font-size: 2.2em;
    }
    .repair-hero .hero-text {
        font-size: 1.05em;
    }
    
    .repair-items-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .repair-items-card {
        margin-top: 5rem;
    }
    
    .repair-content {
        padding: 0 15px;
    }
    
    .repair-flow-steps {
        padding: 20px 10px;
    }
    
    .repair-flow-step {
        margin-bottom: 30px;
    }
}

/* 親テーマのCSSによるh3の装飾を完全にリセット */
.article h3,
.service-item h3,
.repair-items-card h3,
.info-item h3,
.delivery-notes h3,
.repair-flow h3,
.repair-price h3,
.repair-faq h3,
.repair-flow-title,
.repair-flow-step h3 {
    /* 基本的なリセット */
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    outline: none !important;
    
    /* フォントスタイル */
    font-family: inherit !important;
    font-size: 1.6em !important;
    font-weight: bold !important;
    line-height: 1.2 !important;
    color: #333 !important;
    
    /* テキストスタイル */
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    
    /* その他の装飾を除去 */
    border-radius: 0 !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    
    /* 疑似要素も除去 */
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

/* 特定のセクション用のカスタムスタイル */
.repair-flow-title {
    font-size: 1.4rem !important;
    margin-bottom: 10px !important;
    letter-spacing: 0.05em !important;
}

.repair-items-card h3 {
    font-size: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.info-item h3 {
    color: var(--brand-color-primary) !important;
    font-size: 1.5em !important;
    margin-bottom: 1rem !important;
}

.delivery-notes h3,
.repair-faq h3 {
    font-size: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

/* 修理ページ用：セクション背景（store-mapと同じ） */
.repair-section-bg {
    background: #f9f9f9;
    padding: 2rem 0;
    border-radius: 0;
    max-width: none;
    width: 100vw;
    margin: 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* 親コンテナのoverflowを上書きして背景がはみ出るようにする */
.main, .repair-content {
    overflow: visible !important;
}

/* --- 店舗案内ページ専用スタイル --- */
.store-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../uploads/2025/06/tenpo_gaikan.webp');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 8rem 2rem;
    margin-bottom: 3rem;
    min-height: 568px; /* 固定の最小高さを設定 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.store-hero h1 {
    font-size: 3em;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.store-hero .hero-text {
    font-size: 1.2em;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.store-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.store-info {
    margin-bottom: 4rem;
}

.info-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 0 2rem;
}

.info-section {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.info-section h2 {
    font-size: 2.2em;
    margin-bottom: 1.5rem;
    color: #333;
    position: relative;
    text-align: center;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.info-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--brand-color-primary);
    margin: 10px auto 0;
}

.info-section h2 i {
    color: var(--brand-color-primary);
    margin-right: 0.5rem;
}

.info-section ul {
    list-style: none;
    padding: 0;
}

.info-section li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.info-section li strong {
    display: inline-block;
    color: #555;
}

.payment-methods {
    margin-top: 0.5rem;
    padding-left: 120px;
}

.payment-methods p {
    margin: 0.5rem 0;
}

.store-map {
    background: #f9f9f9;
    padding: 2rem 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    margin-bottom: 2rem !important;
}

.store-map > h2,
.store-map > .map-container,
.store-map > .access-info {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.store-map h2 {
    font-size: 2.2em;
    margin-bottom: 2rem;
    color: #333;
    text-align: center;
    position: relative;
}

.store-map h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--brand-color-primary);
    margin: 10px auto 0;
}

.store-map .map-container {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.store-map iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

.store-gallery {
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 60px; /* 下部に空白を追加 */
}

.store-gallery h2 {
    font-size: 2.2em;
    margin-bottom: 1rem;
    color: #333;
    position: relative;
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.store-gallery h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--brand-color-primary);
    margin: 10px auto 0;
}

.store-gallery > p {
    color: #666;
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    margin: 0;
    padding: 0.5rem;
    text-align: center;
}

.access-info {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 8px;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    position: relative;
}

.access-info h3 {
    font-size: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    color: #333 !important;
    text-align: center !important;
    position: relative !important;
    display: inline-block !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.access-info h3::after {
    display: none;
}

.access-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.access-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    line-height: 1.6;
}

.access-info li i {
    color: var(--brand-color-primary);
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .store-hero {
        padding: 6rem 1rem;
    }
    .store-hero h1 {
        font-size: 2.5em;
    }
    .store-hero .hero-text {
        font-size: 1.1em;
    }
    .info-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    .info-section {
        margin-bottom: 1rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
}

/* 工事ページ用スタイル */
.construction-hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 100%), url('../../uploads/2025/06/service_image3.webp');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 8rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    min-height: 568px; /* 固定の最小高さを設定 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.construction-hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    line-height: 1.3;
}

.construction-hero .hero-text {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.construction-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.construction-services {
    padding: 60px 0;
}

.construction-services h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 50px;
    position: relative;
}

.construction-services h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #8FBC8F;
}

.service-category {
    margin-bottom: 60px;
}

.category-title {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.category-description {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1em;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-item {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.service-item h4 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 10px;
}

.service-item p {
    color: #666;
    font-size: 0.9em;
}

.portfolio {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.portfolio h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 50px;
    position: relative;
}

.portfolio h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #8FBC8F;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.portfolio-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.portfolio-images {
    padding: 20px;
}

.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.image-container {
    text-align: center;
}

.image-container h4 {
    margin-bottom: 10px;
    color: #333;
}

.placeholder-image {
    background-color: #ddd;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #666;
    font-weight: bold;
}

.portfolio-details {
    padding: 20px;
    background-color: #f8f9fa;
}

.portfolio-details h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.portfolio-details p {
    margin-bottom: 8px;
    color: #666;
}

.workflow {
    padding: 60px 0;
}

.workflow h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 50px;
    position: relative;
}

.workflow h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #8FBC8F;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.step-number {
    background-color: #8FBC8F;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    flex-shrink: 0;
}

.step-content h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

.pricing {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.pricing h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 50px;
    position: relative;
}

.pricing h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #8FBC8F;
}

.pricing-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.pricing-info, .estimate-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pricing-info h3, .estimate-info h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.pricing-info p, .estimate-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.service-area {
    padding: 60px 0;
}

.service-area h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 30px;
    position: relative;
}

.service-area h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #8FBC8F;
}

.area-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.area-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.contact-cta {
    padding: 60px 0;
    background: linear-gradient(135deg, #8FBC8F 0%, #6B8E6B 100%);
    color: white;
    text-align: center;
}

.contact-cta h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
}

.contact-cta p {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button.phone {
    background-color: #28a745;
    color: white;
}

.cta-button.line {
    background-color: #00B900;
    color: white;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .construction-hero h1 {
        font-size: 2em;
    }
    
    .construction-hero .hero-text {
        font-size: 1em;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .workflow-steps {
        grid-template-columns: 1fr;
    }
    
    .pricing-content {
        grid-template-columns: 1fr;
    }
    
    .before-after {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .construction-content {
        padding: 0 15px;
    }
}

/* LINE QRコード表示エリア */
.line-qr-section {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.line-qr-section h3 {
    font-size: 1.5rem !important;
    color: #333 !important;
    margin-bottom: 1.5rem !important;
    text-align: center !important;
    position: relative !important;
    display: inline-block !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.line-qr-section h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #00B900; /* LINEのブランドカラー */
    margin: 10px auto 0;
}

.line-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.line-qr-image {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.line-qr-text {
    color: #666;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

.line-qr-text strong {
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .line-qr-section {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    .line-qr-image {
        max-width: 150px;
    }
    
    .line-qr-text {
        font-size: 0.9rem;
    }
}

/* LINE QRコードモーダルウィンドウ */
.line-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.line-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.line-modal h3 {
    font-size: 1.5rem !important;
    color: #333 !important;
    margin-bottom: 1.5rem !important;
    text-align: center !important;
    position: relative !important;
    display: inline-block !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.line-modal h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #00B900;
    margin: 10px auto 0;
}

.line-modal .qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.line-modal .qr-image {
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.line-modal .qr-text {
    color: #666;
    line-height: 1.6;
}

.line-modal .qr-text strong {
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}

.line-modal .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.line-modal .close:hover {
    color: #333;
}

.line-modal .close:focus {
    color: #333;
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
    .line-modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
    }
    
    .line-modal .qr-image {
        max-width: 200px;
    }
    
    .line-modal .close {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
}

#contact .w-40.h-40 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }
  
  #contact .w-40.h-40 img {
    display: block !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
  }
  #contact img[alt="LINE QRコード"] {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
  }
/* --- ここから静的サイトのCSSを追加します --- */

.mobile-contact-info {
    display: none;
    padding: 16px 0;
    text-align: center;
    background: #fff;
    border-bottom: 1px solid #eee;
}

@media (max-width: 767px) {
  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    padding-bottom: 20px;
  }
  
  .main-nav.active {
    display: flex !important;
    flex-direction: column;
  }
  
  .mobile-contact-info {
    display: none;
  }
  
  .main-nav.active ~ .mobile-contact-info,
  .mobile-contact-info.active {
    display: block !important;
    position: absolute;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1040;
    padding: 16px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
  }
  
  /* mobile-contact-infoが表示された時、navを下にずらす */
  .mobile-contact-info.active ~ .main-nav.active {
  }
}

@media (min-width: 768px) {
  .main-nav {
    display: flex !important;
    flex-direction: row;
    position: static;
  }
  
  .mobile-contact-info {
    display: none !important;
  }
}

/* --- 商品ページ専用スタイル --- */

/* 商品ページ専用スタイル */
.products-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../uploads/2025/06/tenpo_naikan.webp');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 8rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    min-height: 568px; /* 固定の最小高さを設定 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.products-description {
    font-size: 1.2em;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 2.5em auto;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .products-hero {
        padding: 6rem 1rem;
    }
    .products-description {
        font-size: 1.05em;
    }
}

.products-list {
    padding: 40px 0 60px 0;
    background: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.product-category {
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.3s;
}

.product-category:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.product-category h2 {
    font-size: 1.3em;
    color: #6B8E23;
    margin-bottom: 1em;
    border-bottom: 2px solid var(--brand-color-primary);
    display: inline-block;
    padding-bottom: 0.3em;
}

.product-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-category li {
    font-size: 1em;
    color: #333;
    margin-bottom: 0.5em;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 0 1rem;
    }
    .product-category {
        padding: 1.5rem 0.8rem 1.2rem 0.8rem;
    }
}

/* ==================================================================
 * 2. 一覧・投稿まわりのパーツ
 *    旧テーマ（Cocoon）が生成していたカード／パンくず／ページ送り等を
 *    同じ見た目のまま、軽量なマークアップで再現する。
 * ================================================================== */

/* --- アーカイブ見出し --- */
.archive-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin: 16px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.archive-title .archive-title-icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    flex: 0 0 auto;
}

.archive-description {
    margin: 0 0 16px;
    color: #666;
    font-size: 0.9em;
}

/* --- 記事一覧カード --- */
.entry-card-wrap {
    display: block;
    margin-bottom: 16px;
    padding: 1.35em;
    color: #333;
    text-decoration: none;
}

.entry-card-wrap:hover {
    background-color: #f5f8fa;
    transition: background-color 0.3s ease-in-out;
}

.entry-card {
    display: flow-root;
}

.entry-card-thumb {
    float: left;
    width: 320px;
    max-width: 38%;
    margin: 3px 1.4em 0.4em 0;
    position: relative;
    line-height: 0;
}

.entry-card-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background-color: #f5f5f5;
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    width: 100%;
    color: #ccc;
    font-size: 1.3em;
    line-height: 1.2;
    letter-spacing: 0.08em;
    background-color: #f2f2f2;
}

.cat-label {
    position: absolute;
    top: 0.24em;
    left: 0.24em;
    border: 1px solid #eee;
    font-size: 10px;
    line-height: 1.6;
    color: #fff;
    background-color: rgba(51, 51, 51, 0.7);
    padding: 1px 5px;
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entry-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
    margin: 0 0 0.4em;
    color: #333;
    background: none;
    padding: 0;
}

.entry-card-snippet {
    font-size: 0.8em;
    line-height: 1.3;
    margin: 0 0 0.4em;
    color: #333;
}

.entry-card-meta {
    font-size: 0.75em;
    color: #999;
}

/* --- ページ送り --- */
.pagination {
    margin: 24px 0;
    clear: both;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    width: 100%;
}

.pagination .page-numbers {
    color: #333;
    text-decoration: none;
    display: inline-block;
    height: 46px;
    width: 46px;
    border: 1px solid #ddd;
    margin: 0 4px;
    line-height: 44px;
    text-align: center;
    border-radius: 4px;
    font-size: 16px;
}

.pagination .current {
    background-color: #eee;
}

.pagination a:hover {
    background-color: #f5f8fa;
    transition: all 0.3s ease-in-out;
    color: #333;
}

.pagination .page-numbers svg {
    width: 0.8em;
    height: 0.8em;
    fill: currentColor;
    vertical-align: middle;
}

.pagination-next {
    margin-top: 24px;
}

.pagination-next-link {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    color: #333;
    display: block;
    font-size: 1.2em;
    text-decoration: none;
    width: 100%;
    text-align: center;
    padding: 10px;
}

.pagination-next-link:hover {
    background-color: #f5f8fa;
    transition: all 0.3s ease-in-out;
}

/* --- 投稿フッター（カテゴリー・タグ） --- */
.entry-footer {
    background-color: #F0F4E8;
    padding: 30px 20px;
}

.entry-categories-tags {
    text-align: center;
    margin: 0 0 18px;
}

.entry-categories-tags a {
    font-size: 12px;
    line-height: 1.6;
    color: #fff;
    background-color: #333;
    margin: 0 5px 0 0;
    padding: 2px 6px;
    border-radius: 2px;
    display: inline-block;
    text-decoration: none;
}

.entry-categories-tags a:hover {
    opacity: 0.8;
}

.entry-categories-tags svg {
    width: 0.9em;
    height: 0.9em;
    fill: currentColor;
    margin-right: 4px;
    vertical-align: -0.1em;
}

/* --- 関連記事 --- */
.under-entry-content {
    padding: 0;
}

.related-entries {
    margin: 32px 0;
}

.related-entry-heading {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px;
    color: #333;
    background: none;
    padding: 0;
}

.related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12.8px 0.6666%;
    margin: 0 0 32px;
}

.related-entry-card-wrap {
    display: block;
    width: 24.5%;
    padding: 5px;
    color: #333;
    text-decoration: none;
}

.related-entry-card-wrap:hover {
    background-color: #f5f8fa;
    transition: background-color 0.3s ease-in-out;
}

.related-entry-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.related-entry-card-thumb {
    position: relative;
    margin: 3px 0 0.4em;
    line-height: 0;
}

.related-entry-card-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background-color: #f5f5f5;
}

.related-entry-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    margin: 0 0 0.4em;
    color: #333;
    background: none;
    padding: 0;
}

@media screen and (max-width: 834px) {
    .related-entry-card-wrap {
        width: 49%;
    }
}

@media screen and (max-width: 480px) {
    .entry-card-thumb {
        max-width: 38%;
        margin-right: 2%;
    }

    .entry-card-snippet {
        display: none;
    }

    .entry-card-title {
        font-size: 16px;
    }
}

/* --- パンくずリスト --- */
.breadcrumb {
    margin: 1em 0.4em;
    color: #999;
    font-size: 13px;
}

.breadcrumb div {
    display: inline;
}

.breadcrumb a {
    text-decoration: none;
    color: #999;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .sp {
    margin: 0 10px;
}

.breadcrumb svg {
    width: 0.95em;
    height: 0.95em;
    fill: currentColor;
    vertical-align: -0.1em;
}

.breadcrumb-caption {
    margin: 0 3px;
}

/* --- コメント --- */
.comments-area {
    padding: 0 1.35em 2em;
}

.comments-title,
.comment-reply-title {
    font-size: 20px;
    font-weight: 700;
    background: none;
    padding: 0;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.comment-form .submit {
    background-color: #7bb13c;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 24px;
    cursor: pointer;
}

/* --- 検索結果・404 --- */
.no-results {
    padding: 2em 1.35em;
}

/* --- ページ本文下ウィジェット --- */
.page-content-bottom .widget {
    margin: 0 0 1.8em;
}

/* ==================================================================
 * 3. 旧テーマとの描画差の調整
 * ================================================================== */

/* ファーストビューの暗幕（::before）を、背景画像の上・文字の下に固定する */
#first-view::before {
    z-index: 0;
}

.first-view-content {
    position: relative;
    z-index: 1;
}

/* --- 前後の記事ナビゲーション --- */
.pager-post-navi {
    margin: 38px 0;
    display: flex;
    flex-direction: column;
}

.pager-post-navi a {
    padding: 10px;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
    font-size: 0.8em;
    color: #333;
    text-decoration: none;
}

.pager-post-navi a:hover {
    background-color: #f5f8fa;
}

.pager-post-navi a figure {
    min-width: 120px;
    max-width: 120px;
    margin: 0;
    line-height: 0;
}

.pager-post-navi a figure img,
.pager-post-navi a figure .no-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    font-size: 0.8em;
}

.pager-post-navi .iconfont {
    display: inline-flex;
    font-size: 1.8em;
    color: #ddd;
    padding: 8px;
}

.pager-post-navi .iconfont svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.pager-post-navi a.prev-post {
    flex-direction: row;
    padding-left: 5px;
}

.pager-post-navi a.prev-post .iconfont svg {
    transform: rotate(180deg);
}

.pager-post-navi a.prev-post .prev-post-title {
    margin-left: 10px;
}

.pager-post-navi a.next-post {
    flex-direction: row-reverse;
    padding-right: 5px;
}

.pager-post-navi a.next-post .next-post-title {
    margin-right: 10px;
}

/* --- コメント --- */
.comment-area {
    margin-bottom: 1.8em;
}

.comment-title {
    margin: 22px 0;
    font-size: 24px;
    font-weight: bold;
    background: none;
    padding: 0;
}

.comment-btn {
    margin: 24px 0;
    cursor: pointer;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    color: #333;
    display: block;
    font-size: 1.2em;
    width: 100%;
    text-align: center;
    padding: 10px;
}

.comment-btn:hover {
    background-color: #f5f8fa;
}

/* ボタンを押すまでフォームは隠しておく */
.comment-area .comment-respond {
    display: none;
}

.comment-area.comment-form-open .comment-respond {
    display: block;
}

.comment-list-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 動画は読み込み前でも縦横比の分だけ場所を確保する */
video {
    max-width: 100%;
    height: auto;
}

/* ==================================================================
 * 4. 商品・イベント紹介記事の共通スタイル
 *    大工道具・ミキサー・イベント告知などの記事で共通して使うクラス。
 *    （これまで各記事のカスタムフィールド _custom_css に書かれていたものを
 *      テーマ側に集約。既存記事は同じ内容を持っているため表示は変わらない）
 * ================================================================== */
.tool-post { max-width: 800px; margin: 0 auto; padding: 20px; font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; color: #333; line-height: 1.7; }
.tool-badge { display: inline-block; background-color: #222; color: #fff; padding: 4px 12px; font-size: 13px; font-weight: bold; border-radius: 3px; margin-bottom: 12px; letter-spacing: 0.05em; }
.tool-title { font-size: 24px; font-weight: bold; color: #111; border-bottom: 2px solid #222; padding-bottom: 12px; margin-bottom: 25px; }
.tool-intro { font-size: 16px; margin-bottom: 30px; }
.lang-en { display: block; margin-top: 12px; font-size: 14px; color: #666; line-height: 1.5; border-left: 3px solid #ddd; padding-left: 12px; }
.point-box { background-color: #eef6ff; border-left: 5px solid #1a73e8; border-radius: 4px; padding: 18px 20px; margin: 25px 0 30px; }
.point-label { display: inline-block; background-color: #1a73e8; color: #fff; font-size: 12px; font-weight: bold; padding: 3px 10px; border-radius: 3px; margin-bottom: 8px; letter-spacing: 0.05em; }
.point-text { font-size: 17px; font-weight: bold; color: #111; margin: 4px 0 0; line-height: 1.6; }
.point-text-en { font-size: 14px; color: #555; margin: 8px 0 0; line-height: 1.5; }
.section-heading, .feature-box h2 { font-size: 16px; font-weight: bold; color: #111; margin: 0 0 15px; padding-bottom: 6px; border-bottom: 1px solid #ddd; }
.feature-box h3 { font-size: 15px; color: #111; margin: 20px 0 10px; }
.tool-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 15px; }
.tool-gallery figure { margin: 0; background-color: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.tool-gallery img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.tool-gallery figcaption { font-size: 12px; color: #666; text-align: center; padding: 6px 4px; }
.tool-options-section { background-color: #fff8ea; border: 1px dashed #d9a300; border-radius: 6px; padding: 20px; margin-bottom: 30px; }
.option-item { position: relative; }
.option-badge { position: absolute; top: 8px; left: 8px; background-color: #d9a300; color: #fff; font-size: 11px; font-weight: bold; padding: 3px 8px; border-radius: 3px; letter-spacing: 0.03em; z-index: 2; }
.tool-gallery-section { margin-bottom: 30px; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; font-size: 14px; }
.spec-table th, .spec-table td { border: 1px solid #e5e5e5; padding: 8px 12px; text-align: left; }
.spec-table th { background-color: #f5f5f5; width: 30%; white-space: nowrap; }
.feature-box { background-color: #fcfcfc; border: 1px solid #e5e5e5; padding: 25px; border-radius: 6px; margin-bottom: 35px; }
.feature-box ul { margin: 10px 0; padding-left: 20px; }
.feature-box li { margin-bottom: 6px; }
.tool-cta { text-align: center; background-color: #fff; border: 2px dashed #ccc; padding: 30px 20px; border-radius: 6px; margin-top: 40px; }
.tool-cta h3 { margin-top: 0; margin-bottom: 12px; font-size: 20px; color: #111; }
.tool-cta p { margin-bottom: 25px; font-size: 15px; color: #555; }
.cta-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.btn-tel, .btn-line { display: inline-block; padding: 14px 30px; font-weight: bold; font-size: 15px; text-decoration: none !important; border-radius: 4px; color: #fff !important; transition: background-color 0.2s, transform 0.1s; min-width: 220px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.btn-tel:active, .btn-line:active { transform: translateY(1px); }
.btn-tel { background-color: #1a73e8; }
.btn-tel:hover { background-color: #1557b0; }
.btn-line { background-color: #06c755; }
.btn-line:hover { background-color: #05a647; }
@media (max-width: 600px) {
    .tool-title { font-size: 20px; }
    .tool-gallery { grid-template-columns: repeat(2, 1fr); }
    .cta-buttons { flex-direction: column; align-items: center; }
    .btn-tel, .btn-line { width: 100%; max-width: 300px; }
}
