/*
Theme Name: 青芳 Child Theme
Template: twentytwentyfour
Description: 青芳カスタムテーマ
Author: 青芳
Version: 1.0
*/

/* フォント設定 - 明朝体に変更 */
* {
    font-family: "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP", "MS PMincho", "Times New Roman", serif !important;
}

body, 
body * {
    font-family: "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP", "MS PMincho", "Times New Roman", serif !important;
}

h1, h2, h3, h4, h5, h6,
h1 *, h2 *, h3 *, h4 *, h5 *, h6 * {
    font-family: "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP", "MS PMincho", "Times New Roman", serif !important;
}

/* WordPressのフォント変数を上書き */
html {
    --wp--preset--font-family--body: "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP", "MS PMincho", "Times New Roman", serif !important;
    --wp--preset--font-family--heading: "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP", "MS PMincho", "Times New Roman", serif !important;
}

:root {
    --wp--preset--font-family--body: "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP", "MS PMincho", "Times New Roman", serif !important;
    --wp--preset--font-family--heading: "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP", "MS PMincho", "Times New Roman", serif !important;
}

/* WordPressブロック要素の明朝体指定 */
.wp-site-blocks,
.wp-site-blocks *,
.wp-block-site-title,
.wp-block-site-title *,
.wp-block-navigation,
.wp-block-navigation *,
.wp-block-paragraph,
.wp-block-paragraph *,
.wp-block-heading,
.wp-block-heading *,
.wp-block-list,
.wp-block-list * {
    font-family: "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP", "MS PMincho", "Times New Roman", serif !important;
}

/* 特定クラスを持つ要素も明朝体に */
.has-body-font-family,
.has-heading-font-family,
body .has-body-font-family,
body .has-heading-font-family {
    font-family: "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP", "MS PMincho", "Times New Roman", serif !important;
}

/* reCAPTCHAエラーバッジを非表示（ステージング環境用） */
.grecaptcha-badge {
    display: none !important;
}

/* シンプルなヘッダー - 固定表示 */
.simple-header {
    background: white;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-area a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #0073aa;
    font-size: 1.5em;
    font-weight: bold;
    gap: 10px;
}

.nav-menu {
    list-style: none !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 30px;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center;
}

.nav-menu li {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #0073aa;
}

/* ハンバーガーメニューボタン（デフォルトで非表示） */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

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

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

/* メインコンテンツ - 固定ヘッダー対応 */
.site-content {
    padding-top: 100px; /* 固定ヘッダーの高さ分 */
}

/* ページのbody要素に上部マージンを追加 */
body {
    margin-top: 0;
    padding-top: 0;
}

#page {
    position: relative;
}

/* 全ページのページタイトルを非表示 */
.wp-block-post-title,
.page-title,
.entry-title,
h1.wp-block-post-title,
h1.entry-title,
.wp-site-blocks .wp-block-post-title,
.wp-site-blocks h1.wp-block-post-title {
    display: none !important;
}

/* 不要なブロック要素を非表示 */
.wp-block-site-title,
.wp-block-site-tagline {
    display: none !important;
}

/* WordPressブロックエディタのタイトル非表示 */
.wp-site-blocks > .wp-block-post-title:first-child,
.wp-site-blocks > h1:first-child,
.wp-site-blocks > .wp-block-group > .wp-block-post-title:first-child {
    display: none !important;
}

/* 記事・ページタイトル関連のクラス */
.single .entry-header .entry-title,
.page .entry-header .entry-title,
.single-post .entry-title,
.page .page-title {
    display: none !important;
}

/* 採用情報ページスタイル */
.recruitment-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.recruitment-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 3px solid #0073aa;
}

.recruitment-header h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
}

.recruitment-section {
    margin-bottom: 50px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.recruitment-section h2 {
    font-size: 1.8em;
    color: #0073aa;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.recruitment-section h3 {
    font-size: 1.3em;
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
}

.recruitment-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.recruitment-table th {
    background-color: #f5f5f5;
    color: #333;
    font-weight: bold;
    padding: 15px;
    text-align: left;
    border: 1px solid #ddd;
    width: 30%;
}

.recruitment-table td {
    padding: 15px;
    border: 1px solid #ddd;
    line-height: 1.6;
}

.job-position {
    background: #f9f9f9;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 4px solid #0073aa;
}

.job-position h3 {
    color: #0073aa;
    margin-top: 0;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.benefits-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.benefits-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0073aa;
    font-weight: bold;
    font-size: 1.2em;
}

.application-button {
    text-align: center;
    margin: 40px 0;
}

.application-button a {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.application-button a:hover {
    background: #005a87;
}

.company-message {
    background: #f0f8ff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.company-message h2 {
    color: #0073aa;
    margin-bottom: 20px;
}

/* CTA Buttons Section */
.cta-buttons-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    margin: 40px 0;
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-buttons-wrapper {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: stretch;
}

.cta-button {
    flex: 1;
    max-width: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ffd700, #ffa500);
}

.cta-button.recruitment::before {
    background: linear-gradient(90deg, #0073aa, #005a87);
}

.cta-icon {
    text-align: center;
    padding: 30px 30px 20px;
    color: #ffa500;
}

.cta-button.recruitment .cta-icon {
    color: #0073aa;
}

.cta-content {
    padding: 0 30px 20px;
    text-align: center;
}

.cta-content h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.cta-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.cta-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.cta-features li {
    color: #666;
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
    font-size: 0.9em;
}

.cta-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ffa500;
    font-weight: bold;
}

.cta-button.recruitment .cta-features li:before {
    color: #0073aa;
}

.cta-link {
    display: block;
    background: linear-gradient(90deg, #ffd700, #ffa500);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    margin: 0;
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.cta-link.recruitment-link {
    background: linear-gradient(90deg, #0073aa, #005a87);
}

.cta-link:hover {
    transform: scale(1.02);
    text-decoration: none;
    color: white;
}

.cta-link .arrow {
    display: inline-block;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.cta-link:hover .arrow {
    transform: translateX(5px);
}

/* セクションタイトル */
.cta-section-title {
    text-align: center;
    margin-bottom: 50px;
}

.cta-section-title h2 {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 15px;
    position: relative;
}

.cta-section-title h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #0073aa);
    margin: 15px auto 0;
}

.cta-section-title p {
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    /* モバイルメニュー */
    .menu-toggle {
        display: block;
    }

    .main-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: white;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    .main-menu.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 20px 0 !important;
    }

    .nav-menu li {
        display: block !important;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu a {
        padding: 15px 20px !important;
        display: block !important;
        white-space: normal !important;
        font-size: 1em;
    }

    .nav-menu a:hover {
        background: #f8f9fa;
    }

    .logo-area a {
        font-size: 1.2em;
    }

    .recruitment-header h1 {
        font-size: 2em;
    }

    .recruitment-section {
        padding: 20px;
    }

    .recruitment-table th,
    .recruitment-table td {
        display: block;
        width: 100%;
    }

    .recruitment-table th {
        background: #0073aa;
        color: white;
    }

    .cta-buttons-section {
        padding: 60px 0;
    }

    .cta-buttons-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .cta-button {
        max-width: none;
    }

    .cta-section-title h2 {
        font-size: 1.8em;
    }
}

/* 超小型端末対応（320px〜400px） */
@media (max-width: 400px) {
    /* body全体の余白をリセット */
    body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        width: 100vw;
        max-width: 100%;
    }

    html {
        overflow-x: hidden;
        width: 100%;
    }

    #page {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    .site-content {
        padding-top: 70px !important;
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    /* ヘッダー調整 */
    .header-content {
        padding: 0 10px;
    }

    .logo-area a {
        font-size: 1em;
        gap: 5px;
    }

    .logo-area img {
        height: 30px;
    }

    /* メニューボタン */
    .menu-toggle span {
        width: 22px;
    }

    /* セクションヘッダー */
    .section-header {
        margin-bottom: 30px;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .section-header h2 {
        font-size: 1.1em;
        padding: 0 10px;
        margin: 0 auto 12px;
        line-height: 1.4;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-weight: bold;
    }

    .section-header h2:after {
        margin: 15px auto 0;
        width: 60px;
    }

    .section-subtitle {
        font-size: 0.85em;
        padding: 0 10px;
        margin: 0 auto;
        line-height: 1.5;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    /* コンテンツ内の見出し */
    .services-section h3,
    .portfolio-section h3,
    .about-section h3,
    .estimate-section h3 {
        font-size: 1.1em;
        line-height: 1.4;
    }

    .importance-item h3,
    .service-item h3,
    .business-item h3,
    .feature-item h3 {
        font-size: 1.1em;
        margin-bottom: 10px;
        font-weight: bold;
    }

    /* ヒーローセクション */
    .services-hero,
    .portfolio-hero,
    .page-hero {
        padding: 90px 15px 40px;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 40px;
        width: 100%;
        background-size: cover;
        background-position: center;
    }

    .services-hero-content,
    .portfolio-hero .hero-content,
    .page-hero .hero-content {
        padding: 20px 10px;
    }

    .services-hero-content h1,
    .portfolio-hero .hero-content h1,
    .page-hero h1 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .services-hero-subtitle,
    .portfolio-hero .hero-subtitle,
    .page-hero .hero-subtitle {
        font-size: 0.95em;
        line-height: 1.5;
    }

    .services-hero-description,
    .portfolio-hero .hero-description,
    .page-hero .hero-description {
        font-size: 0.9em;
        line-height: 1.6;
    }

    /* コンテナ */
    .services-container,
    .portfolio-container,
    .about-container,
    .estimate-container {
        padding: 0 15px;
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    /* すべてのセクション */
    .services-section,
    .portfolio-section,
    .about-section,
    .estimate-section {
        margin-bottom: 50px;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
    }

    /* グリッドレイアウト */
    .importance-grid,
    .services-grid,
    .business-grid,
    .licenses-grid,
    .estimate-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
        margin: 0 auto;
        width: 100%;
    }

    /* グリッドアイテム */
    .importance-item,
    .service-item,
    .business-item,
    .license-item,
    .feature-item,
    .paint-type {
        padding: 20px 15px;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
    }

    /* CTAボタン */
    .cta-button,
    .cta-link {
        font-size: 0.95em;
        padding: 12px 20px;
    }

    .cta-section-title h2 {
        font-size: 1.5em;
    }

    /* テーブル */
    .recruitment-table th,
    .recruitment-table td,
    .info-table th,
    .info-table td {
        padding: 12px 10px;
        font-size: 0.9em;
    }

    /* フォーム */
    .aoyoshi-contact-form {
        padding: 20px 15px;
    }

    .form-group label {
        font-size: 0.9em;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.9em;
        padding: 10px 12px;
    }

    .submit-btn {
        font-size: 1em;
        padding: 12px 30px;
    }

    /* フッター */
    .footer-main {
        padding: 30px 15px;
        gap: 25px;
    }

    .footer-contact h3,
    .footer-hours h3 {
        font-size: 1em;
    }

    .contact-value,
    .hours-info p {
        font-size: 0.9em;
    }

    /* 統計情報 */
    .stat-number {
        font-size: 1.8em;
    }

    .stat-label {
        font-size: 0.9em;
    }

    /* ギャラリー */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* プロセスステップ */
    .flow-number,
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2em;
    }

    .flow-content h3,
    .process-step h3 {
        font-size: 1.1em;
    }

    /* アイコン */
    .importance-icon,
    .business-icon,
    .feature-icon,
    .method-icon {
        font-size: 2.5em;
    }

    /* 電話番号 */
    .phone-number {
        font-size: 1.3em;
    }

    /* 画像関連 */
    .service-image,
    .deterioration-image,
    .step-image,
    .gallery-item img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: cover;
    }

    /* テキストコンテンツ */
    .deterioration-content,
    .step-content,
    .flow-content,
    .feature-content {
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
    }

    /* CTAセクション */
    .services-cta,
    .portfolio-cta,
    .about-cta,
    .estimate-cta {
        margin: 40px 15px;
        padding: 40px 20px;
        border-radius: 15px;
        width: calc(100% - 30px);
        box-sizing: border-box;
    }

    /* ボタンコンテナ */
    .cta-buttons,
    .cta-methods {
        width: 100%;
        padding: 0;
        margin: 0 auto;
    }

    /* プロセスフロー */
    .process-flow,
    .estimate-flow-grid {
        width: 100%;
        padding: 0;
    }

    .process-step,
    .flow-item {
        width: 100%;
        padding: 20px 15px;
        margin: 0 auto 15px;
        box-sizing: border-box;
    }

    /* アコーディオン */
    .deterioration-accordion {
        width: 100%;
        padding: 0;
    }

    .deterioration-item {
        width: 100%;
        margin: 0 auto 15px;
        box-sizing: border-box;
    }

    /* 余白の統一 */
    * {
        box-sizing: border-box;
    }

    /* 横スクロール防止 */
    .wp-site-blocks,
    .wp-block-group {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* 極小端末対応（320px〜360px） */
@media (max-width: 360px) {
    /* セクションヘッダー - カードと同じサイズ */
    .section-header h2 {
        font-size: 1.1em;
        padding: 0 8px;
        letter-spacing: 0;
    }

    .section-subtitle {
        font-size: 0.8em;
        padding: 0 8px;
    }

    /* カード内見出しも統一 */
    .importance-item h3,
    .service-item h3,
    .business-item h3,
    .feature-item h3 {
        font-size: 1.1em;
    }

    /* ヒーローコンテンツ */
    .services-hero-content h1,
    .portfolio-hero .hero-content h1,
    .page-hero h1 {
        font-size: 1.3em;
        letter-spacing: -0.01em;
    }

    /* コンテナの余白をさらに削減 */
    .services-container,
    .portfolio-container,
    .about-container,
    .estimate-container {
        padding: 0 12px;
    }

    .section-header {
        padding: 0 12px;
    }
}

/* 事業内容ページのスタイル */
.services-page {
    font-family: "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP", "MS PMincho", "Times New Roman", serif;
}

.services-hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('/wp-content/uploads/2024/12/inneerwall23-1024x768.jpg') center/cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center center;
    padding: 150px 20px 80px;
    text-align: center;
    margin-bottom: 60px;
    margin-top: -100px;
    position: relative;
}

.services-hero-content h1 {
    font-size: 2.5em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
}

.services-hero-subtitle {
    font-size: 1.3em;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: 600;
}

.services-hero-description {
    font-size: 1.1em;
    color: #ffffff;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-section {
    margin-bottom: 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.section-header h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #0073aa);
    margin: 20px auto 0;
}

.section-subtitle {
    font-size: 1.1em;
    color: #666;
    line-height: 1.6;
}

/* 重要性セクション */
.importance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.importance-item {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.importance-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.importance-item h3 {
    font-size: 1.4em;
    color: #0073aa;
    margin-bottom: 15px;
}

.importance-item p {
    color: #666;
    line-height: 1.7;
}

/* 劣化症状セクション - アコーディオン */
.deterioration-accordion {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.deterioration-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.deterioration-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
}

.deterioration-header:hover {
    background: #f8f9fa;
}

.deterioration-header.active {
    background: #e3f2fd;
}

.deterioration-item:nth-child(even) .deterioration-header {
    flex-direction: row-reverse;
}

.deterioration-image {
    flex: 0 0 300px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.deterioration-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.placeholder-image {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    border: 2px dashed #ccc;
}

.deterioration-content {
    flex: 1;
    padding: 30px;
}

.deterioration-content h3 {
    font-size: 1.5em;
    color: #0073aa;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-icon {
    font-size: 1.2em;
    font-weight: bold;
    color: #0073aa;
    transition: transform 0.3s ease;
}

.deterioration-header.active .accordion-icon {
    transform: rotate(45deg);
}

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

/* ギャラリーセクション */
.deterioration-gallery {
    display: none;
    padding: 30px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    animation: slideDown 0.3s ease-out;
}

.deterioration-gallery.active {
    display: block;
}

.deterioration-gallery h4 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.gallery-item p {
    padding: 15px;
    margin: 0;
    font-size: 0.9em;
    color: #666;
    text-align: center;
    line-height: 1.4;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 800px;
    }
}

/* 画像モーダル */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: #666;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
}

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

.modal-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
}

.modal-content p {
    margin: 15px 0 0;
    color: #666;
    font-size: 1em;
    line-height: 1.4;
}

.urgency {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.urgency.high {
    background: #ff6b6b;
    color: white;
}

.urgency.medium {
    background: #feca57;
    color: white;
}

/* サービスグリッド */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.services-list .service-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    width: 100%;
}

.service-header {
    display: flex;
    gap: 20px;
    align-items: center;
}

.services-list .service-item:nth-child(even) .service-header {
    flex-direction: row-reverse;
}

.service-accordion {
    display: block;
    width: 100%;
    margin-top: 12px;
}

.service-image {
    width: 220px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.service-accordion summary {
    list-style: none;
    display: block;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.service-accordion summary::-webkit-details-marker {
    display: none;
}

.service-summary-row {
    display: block;
}

.service-summary-row:focus {
    outline: none;
}

.service-header {
    display: flex;
    gap: 20px;
    align-items: center;
}

.services-list .service-item:nth-child(even) .service-header {
    flex-direction: row-reverse;
}

.service-item h3 {
    font-size: 1.4em;
    color: #0073aa;
    margin: 0 0 10px 0;
    text-align: left;
    padding-bottom: 0;
    border: none;
}

.service-item ul {
    list-style: none;
    padding: 0;
}

.service-item li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #666;
    line-height: 1.6;
}

.service-item li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ffd700;
    font-weight: bold;
}

.service-body {
    margin-top: 0;
    flex: 1;
}

.service-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 16px;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.35s ease;
    will-change: max-height, opacity;
}

.service-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-gallery img:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 18px rgba(0,0,0,0.18);
    z-index: 2;
}

.service-accordion[open] .service-gallery {
    max-height: 1200px;
    opacity: 1;
}

@media (max-width: 768px) {
    .services-list .service-item {
        padding: 16px;
    }

    .service-header,
    .services-list .service-item:nth-child(even) .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .service-image {
        width: 100%;
        height: auto;
        min-height: 0;
    }

    .service-body ul {
        padding-left: 0;
    }

    .service-body li {
        padding-left: 20px;
    }

    .service-gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

/* 塗料タイプ */
.paint-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.paint-type {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
}

.paint-type h3 {
    font-size: 1.4em;
    color: #0073aa;
    margin-bottom: 15px;
}

.paint-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.paint-info span {
    font-size: 0.9em;
    padding: 5px 10px;
    background: #f0f8ff;
    border-radius: 15px;
    color: #0073aa;
    font-weight: bold;
}

.paint-type p {
    color: #666;
    line-height: 1.7;
}

/* 施工の流れ */
.process-flow {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.process-step {
    display: flex;
    align-items: center;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.step-number {
    flex: 0 0 80px;
    height: 80px;
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    margin-right: 30px;
}

.step-content {
    flex: 1;
}

.step-image {
    flex: 0 0 200px;
    margin-left: 30px;
}

.step-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.process-step h3 {
    font-size: 1.4em;
    color: #0073aa;
    margin-bottom: 10px;
}

.process-step p {
    color: #666;
    line-height: 1.7;
}

/* CTAセクション */
.services-cta {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
}

.services-cta h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: white;
}

.services-cta p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #ffffff;
}

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

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

.cta-button.primary {
    background: #ffd700;
    color: #333;
}

.cta-button.primary:hover {
    background: #ffed4a;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: #ffd700;
    color: #333;
    border: 2px solid #ffd700;
}

.cta-button.secondary:hover {
    background: #ffed4a;
    color: #333;
    transform: translateY(-2px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .services-hero {
        padding: 120px 20px 60px;
        background-attachment: scroll;
        margin-top: -80px;
    }

    .services-hero-content h1 {
        font-size: 2em;
    }

    .section-header h2 {
        font-size: 1.6em;
        line-height: 1.4;
        padding: 0 10px;
    }

    .deterioration-item {
        flex-direction: column !important;
    }
    
    .deterioration-item:nth-child(even) {
        flex-direction: column !important;
    }
    
    .deterioration-image {
        flex: none;
        width: 100%;
        height: 150px;
    }
    
    .deterioration-header {
        flex-direction: column !important;
        text-align: center;
    }
    
    .deterioration-item:nth-child(even) .deterioration-header {
        flex-direction: column !important;
    }
    
    .deterioration-content {
        padding: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .deterioration-gallery {
        padding: 20px;
    }
    
    .modal-content {
        max-width: 95%;
        padding: 15px;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .step-image {
        margin-left: 0;
        margin-top: 20px;
        flex: none;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* お問い合わせページのスタイル */
.contact-page-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    margin-bottom: 40px;
}

.contact-page-header h1 {
    font-size: 2.5rem;
    color: #0073aa;
    margin-bottom: 20px;
    font-weight: bold;
}

.contact-page-header p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* お問い合わせフォームのスタイル */
.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.aoyoshi-contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    font-size: 1em;
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0,115,170,0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    transform: scale(1.2);
}

.form-group label:has(input[type="checkbox"]) {
    flex-direction: row;
    align-items: center;
    font-weight: normal;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.submit-btn {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #005a87, #004066);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,115,170,0.4);
}

/* フォームメッセージ */
.form-message {
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
}

.form-message.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 2px solid #c3e6cb;
}

.form-message.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* 送信完了後のアクションボタン */
.form-success-actions {
    text-align: center;
    padding: 40px 20px;
}

.btn-home,
.btn-services {
    display: inline-block;
    margin: 10px 15px;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.btn-home {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
}

.btn-home:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40,167,69,0.4);
}

.btn-services {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
}

.btn-services:hover {
    background: linear-gradient(135deg, #005a87, #004066);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,115,170,0.4);
}

/* 共通ヒーローセクション - 固定ヘッダー対応 */
.page-hero {
    background-size: cover;
    background-position: center;
    padding: 150px 20px 80px; /* 上部に固定ヘッダー分のpadding追加 */
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    margin-top: -100px; /* site-contentのpaddingとの調整 */
}

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

.page-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: 2.5em;
    color: white;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-hero .hero-subtitle {
    font-size: 1.3em;
    color: white;
    margin-bottom: 30px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    line-height: 1.6;
}

/* お問い合わせページ用背景画像 */
.contact-hero {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('/wp-content/uploads/2024/12/inneerwall23-1024x768.jpg');
}

/* 採用ページ用背景画像 */
.recruitment-hero {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('/wp-content/uploads/2024/12/inneerwall23-1024x768.jpg');
}

/* 旧スタイルの削除・置換 */
.contact-page-header {
    display: none;
}

.recruitment-header {
    display: none;
}

/* レスポンシブ対応 - 共通ヒーロー */
@media (max-width: 768px) {
    .page-hero {
        padding: 60px 20px;
    }
    
    .page-hero h1 {
        font-size: 2em;
    }
    
    .page-hero .hero-subtitle {
        font-size: 1.1em;
    }
}

/* レスポンシブ対応 - お問い合わせフォーム */
@media (max-width: 768px) {
    .contact-page-header {
        padding: 30px 15px;
    }
    
    .contact-page-header h1 {
        font-size: 2rem;
    }
    
    .contact-page-header p {
        font-size: 1rem;
    }
    
    .contact-form-container {
        padding: 20px 10px;
    }
    
    .aoyoshi-contact-form {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .submit-btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* トップページセクションのレスポンシブ調整 */
    .has-base-2-background-color.wp-block-group {
        width: 95% !important;
        max-width: none !important;
        margin: 15px auto !important;
    }
}

/* トップページ - 青芳のメッセージテキストをセンター表示 */
.wp-elements-447541f90e5cebc91347b7e43b36cbd6 {
    text-align: center !important;
}

/* トップページ - セクション背景色の調整 */

/* 私たち青芳のメッセージ部分 - 全体背景色に合わせる */
.wp-elements-447541f90e5cebc91347b7e43b36cbd6 {
    background-color: var(--wp--preset--color--base) !important;
    padding: 40px 20px !important;
    margin: 20px 0 !important;
    border-radius: 0 !important;
}

/* お客様へのご提案セクション - 白い背景で強調 */
.wp-elements-76f0d3d4edf7b4528f50fa1e456a1761 {
    background-color: #ffffff !important;
}

.wp-elements-6a487f8204d38f337a16b093909c9ad2 {
    background-color: #ffffff !important;
}

/* 気持ちに寄り添う誠実な施工セクション - 白い背景で強調 */
.wp-elements-f07d530a73ff5cbef0acf2159597442a {
    background-color: #ffffff !important;
}

.wp-elements-d5db5b53a93bf24e0495e5e21fea09dd {
    background-color: #ffffff !important;
}

/* セクション全体のスタイル調整 - 中央配置でコンパクトに */
.has-base-2-background-color.wp-block-group {
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
    border-radius: 10px !important;
    margin: 20px auto !important;
    max-width: 800px !important;
    width: 90% !important;
}

/* フッタースタイル */
.site-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ffffff;
    padding: 0;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 60px 20px 40px;
}

.footer-contact h3,
.footer-hours h3 {
    color: #ffffff;
    font-size: 1.2em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffd700;
    display: inline-block;
}

/* 連絡先情報 */
.contact-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    font-size: 1.2em;
}

.contact-value {
    color: #ecf0f1;
    font-size: 1em;
}

/* 営業時間 */
.hours-info p {
    color: #ecf0f1;
    line-height: 1.7;
    margin: 0;
}

.hours-info .closed {
    color: #ffd700;
    font-weight: bold;
}

/* SNSリンク */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ecf0f1;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
    padding: 4px 0;
}

.social-link svg {
    flex-shrink: 0;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-link span {
    font-size: 0.85em;
}

.social-link:hover {
    color: #ffd700;
    transform: translateX(3px);
}

/* 会社概要ページのスタイル */
.about-page {
    margin-top: 80px;
}

.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('/wp-content/uploads/2025/03/top_img01-scaled.jpg') center/cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center center;
    color: white;
}

.about-hero .hero-content {
    text-align: center;
}

.about-hero .hero-content h1 {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.about-hero .hero-subtitle {
    font-size: 1.3em;
    margin-bottom: 30px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.about-section {
    margin-bottom: 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 1.4em;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.section-header .section-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-top: 20px;
}

/* 会社情報セクション */
.company-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.info-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-table th,
.info-table td {
    padding: 20px;
    border-bottom: 1px solid #ecf0f1;
    text-align: left;
}

.info-table th {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    font-weight: bold;
    width: 200px;
}

.info-table td {
    background: white;
    color: #2c3e50;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

.company-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 事業内容セクション */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

.business-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.business-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.business-item h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.business-item ul {
    list-style: none;
    padding: 0;
}

.business-item li {
    padding: 8px 0;
    color: #7f8c8d;
    border-bottom: 1px solid #ecf0f1;
}

.business-item li:last-child {
    border-bottom: none;
}

/* 許可・資格セクション */
.licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

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

.license-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.license-item h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.license-item p {
    color: #7f8c8d;
    margin-bottom: 10px;
}

.license-detail {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* 代表メッセージセクション */
.message-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.president-info {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #ecf0f1;
}

.president-image {
    flex-shrink: 0;
}

.president-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.president-details h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.president-title {
    color: #3498db;
    font-weight: bold;
    margin-bottom: 5px;
}

.president-experience {
    color: #7f8c8d;
}

.message-text p {
    color: #2c3e50;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* アクセス情報セクション */
.access-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.access-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.access-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.access-icon {
    font-size: 2rem;
    color: #3498db;
    flex-shrink: 0;
    margin-top: 5px;
}

.access-text h4 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.access-text p {
    color: #7f8c8d;
    line-height: 1.6;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* 1:1 aspect ratio (square) */
}

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

/* CTAセクション */
.about-cta {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 15px;
    padding: 50px;
    text-align: center;
    color: white;
    margin-top: 40px;
}

.about-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

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

.cta-button.primary {
    background: white;
    color: #3498db;
}

.cta-button.secondary {
    background: transparent;
    color: white;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button.primary:hover {
    background: #ecf0f1;
}

.cta-button.secondary:hover {
    background: white;
    color: #3498db;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .about-hero {
        background-attachment: scroll;
    }
    
    .about-hero .hero-content h1 {
        font-size: 2em;
    }
    
    .about-hero .hero-subtitle {
        font-size: 1.1em;
    }
    
    .about-hero .hero-description {
        font-size: 1rem;
    }
    
    .company-info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
    }
    
    .licenses-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .president-info {
        flex-direction: column;
        text-align: center;
    }
    
    .access-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    .about-cta {
        padding: 30px 20px;
    }
    
    .message-content {
        padding: 30px 20px;
    }
}

.social-link:hover svg {
    opacity: 1;
}

/* 見積もりページのスタイル */
.estimate-page {
    margin-top: 80px;
}

.estimate-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('/wp-content/uploads/2025/03/top_img01-scaled.jpg') center/cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center center;
    color: white;
}

.estimate-hero .hero-content {
    text-align: center;
}

.estimate-hero .hero-content h1 {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.estimate-hero .hero-subtitle {
    font-size: 1.3em;
    margin-bottom: 30px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

.estimate-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.estimate-section {
    margin-bottom: 80px;
}

/* 見積もりの流れ - 会社概要スタイルを採用 */
.estimate-flow-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 50px;
}

.flow-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.flow-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.flow-content h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.flow-content p {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

/* 見積もり特徴 - 会社概要の事業内容スタイルを採用 */
.estimate-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    background: white;
    padding: 35px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-item h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: bold;
}

.feature-item p {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

/* FAQ - 会社概要スタイルを採用 */
.faq-content {
    margin-top: 50px;
}

.faq-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
}

.faq-question {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: bold;
    padding-left: 30px;
    position: relative;
}

.faq-question::before {
    content: 'Q.';
    position: absolute;
    left: 0;
    top: 0;
    color: #3498db;
    font-weight: bold;
    font-size: 1.2rem;
}

.faq-answer {
    padding-left: 30px;
    position: relative;
}

.faq-answer::before {
    content: 'A.';
    position: absolute;
    left: 0;
    top: 0;
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.1rem;
}

.faq-answer p {
    color: #7f8c8d;
    line-height: 1.7;
    margin: 0;
}

/* CTAセクション */
.estimate-cta {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    margin-top: 60px;
}

.estimate-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.estimate-cta > p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.cta-method {
    background: rgba(255, 255, 255, 0.1);
    padding: 35px 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    text-align: center;
    transition: transform 0.3s ease;
}

.cta-method:hover {
    transform: translateY(-3px);
}

.method-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-method h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.phone-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}

.business-hours {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.method-description {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .estimate-hero {
        background-attachment: scroll;
    }
    
    .estimate-hero .hero-content h1 {
        font-size: 2em;
    }
    
    .estimate-hero .hero-subtitle {
        font-size: 1.1em;
    }
    
    .estimate-flow-grid {
        gap: 15px;
    }
    
    .flow-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .estimate-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cta-methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .phone-number {
        font-size: 1.5rem;
    }
}

.social-link.facebook:hover {
    color: #3b5998;
}

.social-link.instagram:hover {
    color: #e1306c;
}

.social-link.twitter:hover {
    color: #1da1f2;
}

/* フッター下部 */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.copyright {
    margin: 0;
    color: #ecf0f1;
    font-size: 0.95em;
}

.footer-bottom-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-bottom-links a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #ffd700;
}

.footer-bottom-links .separator {
    color: #95a5a6;
}

/* レスポンシブ対応 - タブレット */
@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-social {
        grid-column: 1 / -1;
        text-align: center;
    }
}

/* レスポンシブ対応 - モバイル */
@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 20px;
        text-align: center;
    }
    
    .footer-contact,
    .footer-hours,
    .footer-social {
        text-align: center;
    }
    
    .contact-items {
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .social-links {
        align-items: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-bottom-links .separator {
        display: none;
    }
}

/* 施工実績ページのスタイル */
.portfolio-page {
    font-family: "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP", "MS PMincho", "Times New Roman", serif;
}

.portfolio-hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('/wp-content/uploads/2024/12/inneerwall23-1024x768.jpg') center/cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center center;
    padding: 150px 20px 80px;
    text-align: center;
    margin-bottom: 60px;
    margin-top: -100px;
    position: relative;
}

.portfolio-hero .hero-content h1 {
    font-size: 2.5em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
}

.portfolio-hero .hero-subtitle {
    font-size: 1.3em;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: 600;
}

.portfolio-hero .hero-description {
    font-size: 1.1em;
    color: #ffffff;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 施工実績統計 */
.portfolio-stats {
    margin-bottom: 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    padding: 60px 40px;
    border-radius: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1em;
    color: #666;
    font-weight: 500;
}

/* 施工実績ギャラリー */
.portfolio-section {
    margin-bottom: 80px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px 15px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-content h3 {
    font-size: 1.1em;
    margin-bottom: 5px;
    font-weight: bold;
    color: white;
}

.gallery-content p {
    font-size: 0.9em;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.9);
}

.gallery-tag {
    display: inline-block;
    background: #0073aa;
    color: white;
    font-size: 0.75em;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* 画像モーダル（ポップアップ） */
.image-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #333;
    cursor: pointer;
    z-index: 10001;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 1);
}

#modalImage {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10001;
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.05);
}

.modal-nav.prev { left: 12px; }
.modal-nav.next { right: 12px; }

.modal-info {
    padding: 20px;
    background: white;
}

.modal-info h3 {
    font-size: 1.3em;
    color: #0073aa;
    margin-bottom: 8px;
    font-weight: bold;
}

.modal-info p {
    color: #666;
    margin-bottom: 12px;
    font-size: 1em;
    line-height: 1.6;
}

.modal-tag {
    display: inline-block;
    background: #0073aa;
    color: white;
    font-size: 0.8em;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 500;
}

/* お客様の声 */
.testimonials {
    background: #f8f9fa;
    padding: 60px 40px;
    border-radius: 20px;
}

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

.testimonial-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
}

.testimonial-item:before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4em;
    color: #0073aa;
    opacity: 0.3;
    font-family: serif;
}

.testimonial-content p {
    color: #333;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author strong {
    color: #0073aa;
    font-weight: bold;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9em;
    display: block;
    margin-top: 5px;
}

/* 施工実績CTA */
.portfolio-cta {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
}

.portfolio-cta h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: white;
}

.portfolio-cta p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #ffffff;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .portfolio-hero {
        padding: 120px 20px 60px;
        background-attachment: scroll;
        margin-top: -80px;
    }
    
    .portfolio-hero .hero-content h1 {
        font-size: 2em;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2em;
    }
    
    .portfolio-stats,
    .testimonials,
    .portfolio-cta {
        padding: 40px 20px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .gallery-item {
        max-width: 350px;
        margin: 0 auto;
    }

    .modal-content {
        max-width: 95%;
        margin: 0 auto;
    }

    .modal-close {
        top: 10px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }

    #modalImage {
        max-height: 60vh;
    }

    .modal-info {
        padding: 15px;
    }
}
