@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/* h2の背景色を透明に設定 */
h2 {
    background-color: transparent !important;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/*
Theme Name: Cocoon Child
Template: cocoon
*/

/* --- ここから静的サイトの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 {
    position: relative;
    height: 60vh; /* スマートフォンでは少し高めに (h-[60vh]) */
    /* ここが修正されました: 正しいWordPressのアップロードフォルダのURL */
    background-image: url('https://ohtake-store.com/wp-content/uploads/2025/06/top_image2.png');
    background-size: cover;
    background-position: center;
    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('https://ohtake-store.com/wp-content/uploads/2025/06/service_image4.png');
    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('https://ohtake-store.com/wp-content/uploads/2025/06/service_image1.png');
    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('https://ohtake-store.com/wp-content/uploads/2025/06/tenpo_gaikan.jpg');
    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('https://ohtake-store.com/wp-content/uploads/2025/06/service_image3.png');
    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('https://ohtake-store.com/wp-content/uploads/2025/06/tenpo_naikan.jpg');
    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;
    }
}
