/*
 * responsive-extra.css
 * レスポンシブ・レイアウト補完スタイル
 */


@media (max-width: 480px) {
    /* ページ全体の幅制限を完全解除 */
    body, html {
        width: 100%;
        max-width: none;
        overflow-x: hidden;
    }
    
    .content-Wrap {
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
    }
    
    .container {
        padding: 0;
        width: 100%;
        max-width: none;
        margin: 0;
    }
    
    .main-content {
        padding: 0.2rem;
        width: 100%;
        max-width: none;
    }
    
    /* セクションの幅をさらに広く使用 */
    section:not(.personal-touch):not(.one-man-operation):not(.professional-touch):not(.hero):not(.slider-section):not(.quick-nav-section):not(.pricing-section):not(.process-comparison):not(.pricing-comparison):not(.website-types-explanation):not(.local-seo-section):not(.contact-section),
    .pricing-section,
    .process-comparison,
    .pricing-comparison,
    .website-types-explanation,
    .local-seo-section,
    .contact-section {
        width: 100%;
        max-width: none;
        margin: 0.3rem auto;
        padding: 0.8rem 0;
    }
    
    /* 小さなスマホ画面での本文テキストのみ10%増 */
    p, li, span, div {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    /* サンプルメイン画像を小さなスマホで1列に（gapを調整） */
    .sample-main-images {
        grid-template-columns: 1fr;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .sample-main-images > div {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
        margin: 0;
        padding: 0;
    }
    
    .sample-main-images > div > div {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .sample-main-images img {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto;
        box-sizing: border-box;
        display: block;
    }
    
    /* ヒーローセクションのサブタイトルは除外 */
    .hero .subtitle {
        font-size: 1.3rem;
        font-weight: 600;
        margin: 0 auto 0.9rem auto;
        line-height: 1.5;
    }
    
    .hero .subtitle-points {
        font-size: 0.95rem;
        margin: 0 auto;
    }
    
    .hero .subtitle-points li {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        line-height: 1.6;
    }
    
    /* 5つボタンのスマホ対応 */
    .quick-nav-buttons,
    .quick-nav-section .quick-nav-buttons {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .quick-nav-btn {
        width: 100%;
        justify-content: center;
        padding: 9px 17px;
        font-size: 12px;
        min-height: 42px;
        line-height: 1.4;
        gap: 4px;
    }
    
    /* 3段目の「工房主に相談」ボタンをカラムいっぱいに */
    .quick-nav-btn:last-child {
        width: 100%;
        max-width: none;
        grid-column: 1 / -1;
    }
    
    /* 5つボタンのタブレット対応（削除 - 1列を維持） */
    
    .quick-nav-btn {
        padding: 12px 16px;
        font-size: 13px;
        min-height: 50px;
    }
    
    /* 無料相談セクションのスマホ対応 */
    .consultation-details-section {
        padding: 2rem 0;
        margin: 1rem auto;
    }
    
    /* .consultation-grid - クリア済み */
    
    .consultation-item {
        padding: 1.5rem;
    }
    
    /* .method-options - クリア済み */
    
    .method-option {
        padding: 1rem;
    }
    
    .floating-nav-btn {
        padding: 6px 10px;
        font-size: 10px;
        min-width: 70px;
    }
    
    .floating-quick-nav {
        left: 10px;
        right: auto;
        bottom: 10px;
        width: auto;
        max-width: 160px;
    }
    
    .page-top-btn {
        padding: 6px 10px;
        font-size: 10px;
        min-width: 50px;
    }
    
    .slider-container {
        margin: 0 10px;
    }
    
    .local-content-item {
        padding: 15px;
    }
}

/* PC対応 */
@media (min-width: 1024px) {
    .floating-quick-nav {
        flex-direction: column;
        gap: 10px;
        right: 20px;
        bottom: 20px;
    }
    
    .page-top-right {
        bottom: 200px;
        right: 20px;
    }
    
    .page-top-corner {
        bottom: 30px;
        right: 30px;
    }
    
    .page-top-btn {
        min-width: 90px;
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .floating-nav-btn {
        min-width: 140px;
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .slider-container {
        max-width: 1000px;
    }
}

/* 大画面モニター対応 */
@media (min-width: 1200px) {
    .floating-quick-nav {
        right: 30px;
        bottom: 30px;
    }
    
    .page-top-right {
        bottom: 250px;
        right: 30px;
    }
    
    .page-top-corner {
        bottom: 40px;
        right: 40px;
    }
}

/* 超大画面モニター対応 */
@media (min-width: 1400px) {
    .floating-quick-nav {
        right: 40px;
        bottom: 40px;
    }
    
    .page-top-right {
        bottom: 450px;
        right: 40px;
    }
    
    .page-top-corner {
        bottom: 50px;
        right: 50px;
    }
}

/* ========================================
 * 滋賀県中小企業向けレスポンシブ最適化
 * ======================================== */

/* タブレット対応 */
@media (max-width: 1024px) and (min-width: 769px) {
    /* .differences-grid - クリア済み */
    
    /* 工程比較図表のタブレット対応 */
    .process-flow-comparison {
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .process-flow {
        padding: 1.5rem;
    }
    
    .flow-title {
        font-size: 1.4rem;
        padding: 0.75rem;
        margin: 0 0 1.5rem 0;
    }
    
    .flow-steps {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .flow-step {
        min-width: 140px;
        padding: 0.9rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .flow-arrow {
        font-size: 1.3rem;
        margin: 0 0.3rem;
    }
    
    /* 料金比較テーブルのタブレット対応 */
    .pricing-table-wrapper {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.2);
        margin-bottom: 3.5rem;  /* スクロールバーとの間隔をより確保 */
        padding-bottom: 25px;  /* スクロールバーとの間隔をより確保 */
    }
    
    .pricing-table-wrapper::-webkit-scrollbar {
        height: 14px;  /* 10px → 14px でより太く */
        margin-top: 22px;  /* 10px → 22px でより離す */
    }
    
    .pricing-table-wrapper::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.2);  /* .type-titleと同じ透明度 */
        border-radius: 5px;
        margin: 0 4px;  /* 左右にマージン */
    }
    
    .pricing-table-wrapper::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.5);  /* .type-titleと同じ透明度 */
        border-radius: 5px;
        border: 1px solid rgba(255, 255, 255, 0.3);  /* .type-titleと同じボーダー */
    }
    
    .pricing-table-wrapper::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.7);  /* .type-titleと同じホバー効果 */
    }
    
    .pricing-table {
        min-width: 700px;
    }
    
    .pricing-header {
        grid-template-columns: 140px 180px 180px 180px;
    }
    
    .pricing-row {
        grid-template-columns: 140px 180px 180px 180px;
    }
    
    .pricing-item {
        padding: 1.1rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .pricing-item.feature {
        min-width: 180px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .quick-nav-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .personal-content {
        grid-template-columns: 250px 1fr;
        gap: 2.5rem;
    }
    
    .personal-image img {
        width: 220px;
        height: 220px;
    }
    
    
    /* 他のセクション内のh3のレスポンシブ対応 */
    section h3 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
    }
    
    section h3 .heading-icon {
        font-size: 1.4rem;
    }
}

/* スマートフォン対応（追加最適化） */
@media (max-width: 768px) {
    /* ヒーローセクション */
    .hero {
        padding: 2rem 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin: 0 auto 1.25rem auto;
        text-align: center;
        padding: 0 1rem;
    }
    
    .hero .subtitle {
        font-size: 1.4rem;
        font-weight: 600;
        margin: 0 auto 1rem auto;
        padding: 0 1rem;
        text-align: center;
    }
    
    .hero .subtitle-points {
        padding: 0 1rem;
        margin: 0 auto;
    }
    
    .hero .subtitle-points li {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .slide img {
        height: 250px;
    }
    
    /* クイックナビゲーション */
    .quick-nav-section {
        padding: 0.5rem 0;
        margin: 0.5rem auto;
        width: 95%;
    }
    
    .quick-nav-buttons,
    .quick-nav-section .quick-nav-buttons {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .quick-nav-btn {
        padding: 10px 15px;
        flex-direction: column;
        text-align: center;
        gap: 0.3rem;
        min-height: 45px;
        font-size: 12px;
    }
    
    .btn-text {
        font-size: 11px;
    }
    
    .btn-arrow {
        font-size: 11px;
    }
    
    /* 個人タッチセクション */
    .personal-touch {
        padding: 3rem 0;
        margin: 2rem auto;
        max-width: 100%;
    }
    
    .personal-touch-card h3 {
        font-size: 1.2rem;
    }
    
    .personal-touch-text {
        font-size: 0.9rem;
    }
    
    .personal-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .personal-image img {
        width: 180px;
        height: 180px;
    }
    
    .personal-text h3 {
        font-size: 1.3rem;
    }
    
    .personal-text p {
        font-size: 1rem;
    }
    
    /* ターゲットセクション - カード化スタイル適用済み */
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    
    /* 他のセクション内のh3のレスポンシブ対応 */
    section h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    section h3 .heading-icon {
        font-size: 1.4rem;
    }
    
    
    
    .footer-contact-details {
        align-items: center;
    }
    
    .footer-phone,
    .footer-email,
    .footer-address {
        justify-content: center;
    }
    
    .address-text {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .footer-company-description {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .company-logo {
        justify-content: center;
    }
    
    .footer-logo {
        height: 40px;
    }
    
    .company-logo h3 {
        font-size: 1.3rem;
    }
    
    .company-description {
        font-size: 0.95rem;
    }
    
    .service-list {
        text-align: left;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .contact-info {
        margin-bottom: 1.5rem;
    }
    
    .contact-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding: 1.5rem 0;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .footer-link {
        font-size: 0.85rem;
    }
    
    /* フッターお問い合わせセクション - モバイル対応 */
    .footer-contact-section {
        margin: 0 1rem 1.5rem 1rem;
        padding: 1.2rem 1rem;
    }
    
    .footer-contact-title {
        font-size: 1.1rem;
        margin: 0 0 1rem 0;
    }
    
    .footer-contact-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* 小さいスマートフォン対応 */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.3rem;
        line-height: 1.3;
        margin: 0 auto 1.25rem auto;
        text-align: center;
        padding: 0 0.75rem;
    }
    
    .hero .subtitle {
        font-size: 1.3rem;
        font-weight: 600;
        margin: 0 auto 0.9rem auto;
        padding: 0 0.75rem;
        text-align: center;
    }
    
    .hero .subtitle-points {
        padding: 0 0.75rem;
        margin: 0 auto;
    }
    
    .hero .subtitle-points li {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .slide img {
        height: 200px;
    }
    
    .quick-nav-btn {
        padding: 8px 12px;
        min-height: 40px;
        font-size: 11px;
    }
    
    .btn-text {
        font-size: 11px;
    }
    
    .btn-arrow {
        font-size: 11px;
    }
    
    /* .value-grid - クリア済み */
    
    .personal-touch-card h3 {
        font-size: 1.1rem;
    }
    
    .personal-touch-text {
        font-size: 0.85rem;
    }
    
    .personal-image img {
        width: 150px;
        height: 150px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    section h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }
    
    section h3 .heading-icon {
        font-size: 1.3rem;
    }
    
    
    .footer-service-title {
        font-size: 1.1rem;
    }
    
    
    .footer-company-description {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .contact-btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
    
    /* フッターお問い合わせセクション - 小さいスマートフォン対応 */
    .footer-contact-section {
        margin: 0 0.5rem 1.2rem 0.5rem;
        padding: 1rem 0.5rem;
    }
    
    .footer-contact-title {
        font-size: 1rem;
        margin: 0 0 0.8rem 0;
    }
    
    .footer-contact-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* ========================================
 * 中小企業経営者向け心理訴求要素
 * ======================================== */

/* 信頼感を演出する要素 */
.trust-indicators {
    background: var(--bg-secondary);
    padding: 2rem 0;
    border-top: 3px solid var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* スマホ専用personal-touchレイアウト - JavaScriptで制御 */
@media screen and (max-width: 480px) {
    /* JavaScriptで操作される要素のベーススタイル */
    section.personal-touch .personal-touch-section-wrapper,
    section.one-man-operation .personal-touch-section-wrapper,
    section.professional-touch .personal-touch-section-wrapper {
        text-align: center;
    }
}

/* ========================================
 * サンプルメイン画像
 * ======================================== */
.sample-main-images-frame-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

/* スマホ画面で画像下のスペースを削除 */
@media (max-width: 768px) {
    .sample-main-images-frame-container {
        margin-bottom: 0;
    }
}

.sample-main-image-frame-box {
    border: 1px solid #00a86b;
    width: 100%;
    aspect-ratio: 183 / 144;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    display: block;
    position: relative;
}

.sample-main-image-frame-box img {
    width: 100%;
    height: auto;
    display: block;
}

.sample-main-image-frame-box .sample-main-image-scrolling {
    height: 200%;
    max-height: none;
}

.sample-main-image-content-frame-1 {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

.sample-main-image-content-frame-1 img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.sample-main-image-content-frame-2 {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.sample-main-image-animated-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #f5f5f5;
    position: relative;
}

.sample-main-image-scrolling {
    width: 100%;
    height: 200%;
    object-fit: cover;
    object-position: top;
    display: block;
    animation: slideDown 90s linear infinite;
    cursor: pointer;
}

@media (min-width: 769px) {
    .sample-main-images-frame-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .sample-main-images-frame-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ========================================
 * 緊急用グリッドオーバーライド（最優先）
 * ======================================== */
@media (max-width: 768px) {
    /* 全てのグリッドを強制的に1列に */
    .quick-nav-buttons,
    .quick-nav-section .quick-nav-buttons,
    section .quick-nav-buttons {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* サンプルメイン画像をスマホで1列に */
    .sample-main-images {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .sample-main-images > div {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
        margin: 0;
        padding: 0;
    }
    
    .sample-main-images > div > div {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .sample-main-images img {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto;
        box-sizing: border-box;
        display: block;
    }
}

/* レスポンシブ対応 - グリッド設定クリア済み */

@media (max-width: 600px) {
    /* スマホで全グリッドを1列に */

    /* case-study-mainのスマホ対応 */
    .case-study-main {
        padding: 15px;
        margin: 0 auto 20px auto;
        max-width: 95%;
        border-radius: 12px;
    }
    
    /* case-study-mainの子要素を縦並びに */
    .case-study-main .case-study-layout {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .case-study-main .case-study-image-container {
        order: 1;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .case-study-main .case-study-content {
        order: 2;
        width: 100%;
        text-align: center;
    }
    
    /* 指定セクションのグリッドを強制的に1列に - クリア済み */
    
    /* flexboxの場合 */
    .personal-touch-content {
        display: flex;
        flex-direction: column;
    }
    
    /* professional-touchの特別対応 */
    .professional-touch .personal-touch-content,
    section.professional-touch .personal-touch-content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
}

.trust-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.trust-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.trust-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.trust-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 地域密着感を演出 */
.local-connection {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.local-connection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.local-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.local-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.local-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
}

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

.local-feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.local-feature h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-light);
}

.local-feature p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

/* コスト意識に訴求 */
.cost-benefit {
    background: var(--bg-primary);
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.cost-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.cost-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.cost-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cost-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cost-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.cost-item.featured {
    border-color: var(--primary-color);
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.cost-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.cost-item.featured:hover {
    transform: scale(1.02) translateY(-4px);
}

.cost-item h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: bold;
}

.cost-item .price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.cost-item .price-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

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

.cost-item li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    padding-left: 1.5rem;
}

.cost-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

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

/* 緊急感・限定感を演出 */
.urgency-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.urgency-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.urgency-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.urgency-description {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.urgency-cta {
    display: inline-block;
    background: white;
    color: var(--secondary-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.urgency-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--secondary-dark);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .local-title {
        font-size: 1.6rem;
    }
    
    .local-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cost-title {
        font-size: 1.6rem;
    }
    
    .cost-comparison {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cost-item.featured {
        transform: none;
    }
    
    .cost-item.featured:hover {
        transform: translateY(-4px);
    }
    
    .urgency-title {
        font-size: 1.3rem;
    }
    
    .urgency-cta {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    /* ボックスレイアウトのレスポンシブ対応 */
    .section-box {
        margin: 1rem 0;
        border-radius: 12px;
    }
    
    .section-box-header {
        padding: 1rem 1.5rem;
    }
    
    .section-box-content {
        padding: 1.5rem;
    }
    
    .content-box {
        padding: 1rem;
        margin: 0.5rem 0;
    }
    
    .card-grid {
        gap: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .highlight-box {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .quick-nav-section .container {
        padding: 0;
        margin: 0;
        border-radius: 0;
    }
    
    /* カード化されたセクションのレスポンシブ対応 */
    section:not(.personal-touch):not(.one-man-operation):not(.professional-touch):not(.hero):not(.slider-section):not(.quick-nav-section):not(.pricing-section):not(.process-comparison):not(.pricing-comparison):not(.website-types-explanation):not(.local-seo-section):not(.contact-section) {
        padding: 1.25rem;
        margin: 0.75rem auto;
        border-radius: 12px;
        width: 95%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    /* 事例紹介セクションのレスポンシブ対応 */
    .case-study-section {
        padding: 25px 0;
        margin: 15px auto;
        width: 95%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .case-study-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
        grid-template-columns: 1fr;
    }
    
    .case-study-title {
        order: 1; /* 1番目に表示 */
        margin-bottom: 10px;
    }
    
    .case-study-image-container {
        order: 2; /* 2番目に表示（タイトルのすぐ下） */
        width: 100%;
    }
    
    .case-study-content {
        order: 3; /* 3番目に表示 */
    }
    
    .case-study-description {
        order: 4; /* 4番目に表示 */
    }
    
    .case-study-details {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        justify-items: center;
        text-align: center;
    }
    
    /* 統合カード化セクションのレスポンシブ対応 - 縦長解消のため間隔を詰める */
    .pricing-section,
    .process-comparison,
    .pricing-comparison,
    .website-types-explanation,
    .local-seo-section,
    .contact-section {
        padding: 25px 0;
        margin: 15px auto;
        width: 95%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    /* 統合カード化セクション内のh2のレスポンシブ対応 */
    .pricing-section h2,
    .process-comparison h2,
    .pricing-comparison h2,
    .website-types-explanation h2,
    .local-seo-section h2,
    .contact-section h2 {
        font-size: 1.5rem;
        padding: 1rem 1.3rem;
        margin: 1rem 0 2.5rem 0;
    }
    
    /* 見出しボックスのレスポンシブ対応 */
    h2.heading-box {
        font-size: 1.5rem;
        padding: 1.2rem 1.5rem;
    }
    
    h3.heading-box {
        font-size: 1.2rem;
        padding: 1rem 1.2rem;
    }
    
    h4.heading-box {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
    }
    
    /* 写真タイルのレスポンシブ対応 */
    .photo-tile-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .photo-tile.featured {
        grid-column: span 1;
    }
    
    .photo-tile img {
        height: 200px;
    }
    
    .photo-small {
        max-width: 150px;
    }
    
    .photo-medium {
        max-width: 300px;
    }
    
    .photo-large {
        max-width: 100%;
    }
    
    .photo-hero {
        height: 250px;
        border-radius: 12px;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.75rem;
    }
    
    .photo-gallery-item img {
        height: 150px;
    }
    
    /* 写真タイルのレスポンシブ対応（修正版） */
    .photo-tile-section {
        padding: 0.8rem;
        margin: 1rem 0;
    }
    
    .photo-tile-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem;
        overflow: hidden;
    }
    
    /* 指定された写真セクション専用のレスポンシブ対応 */
    .photo-tile-section .photo-tile-grid .photo-tile-item {
        aspect-ratio: 3/2; /* 960×640の比率を維持 */
        height: auto;
        overflow: hidden;
    }
    
    /* より具体的なセレクターで確実に適用（レスポンシブ） */
    section .photo-tile-section .photo-tile-grid img.photo-tile-item {
        aspect-ratio: 3/2; /* 960×640の比率を維持 */
        height: auto;
        object-fit: cover;
    }
    
    /* その他の写真タイルアイテムのレスポンシブ対応 */
    .photo-tile-item {
        height: 120px;
        overflow: hidden;
    }
    
    /* h4ボックスのレスポンシブ対応 */
    .content-box-h4 {
        margin: 1rem 0;
    }
    
    .content-box-h4 h4 {
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    .content-box-h4 .content-text {
        padding: 1rem;
    }
    
    .content-box-h4 .content-image {
        padding: 0 1rem;
    }
    
    .content-box-h3 .content-image {
        margin: 0.75rem 0;
        padding: 0 1rem;
    }
    
    .image-caption {
        font-size: 0.8rem;
        padding: 0 0.25rem;
    }
    
    /* h2、h3ボックスのレスポンシブ対応 */
    .content-box-h2 {
        margin: 1rem 0;
    }
    
    .content-box-h2 h2 {
        font-size: 1.5rem;
        padding: 1.2rem 1.5rem;
    }
    
    .content-box-h2 .content-text {
        padding: 1.5rem;
    }
    
    .content-box-h3 {
        margin: 1rem 0;
    }
    
    .content-box-h3 h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .content-box-h3 .content-text {
        padding: 1.2rem;
    }
    
    /* ネストされたボックスのレスポンシブ対応 */
    .content-box-h2 .content-box-h3,
    .content-box-h2 .content-box-h4,
    .content-box-h3 .content-box-h4 {
        margin: 0.5rem 0;
    }
    
    .content-box-h2 .content-box-h3 h3,
    .content-box-h2 .content-box-h4 h4,
    .content-box-h3 .content-box-h4 h4 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }
    
    .content-box-h2 .content-box-h3 .content-text,
    .content-box-h2 .content-box-h4 .content-text,
    .content-box-h3 .content-box-h4 .content-text {
        padding: 0.8rem;
    }
    
    /* 工房主からひとことのレスポンシブ対応 */
    
    /* 工房主からひとことのレスポンシブ対応 */
    .personal-touch-section-wrapper {
        padding: 2rem;
        margin: 2rem 0;
        border-radius: 20px;
    }
    
    /* レスポンシブ対応 - 各セクションの背景色 */
    .personal-touch .personal-touch-section-wrapper {
        background: linear-gradient(135deg, rgba(255, 182, 193, 0.20), rgba(255, 192, 203, 0.15));
    }
    
    .one-man-operation .personal-touch-section-wrapper {
        background: linear-gradient(135deg, rgba(173, 216, 230, 0.20), rgba(176, 224, 230, 0.15));
    }
    
    .professional-touch .personal-touch-section-wrapper {
        background: linear-gradient(135deg, rgba(144, 238, 144, 0.20), rgba(152, 251, 152, 0.15));
    }
    
    .personal-touch-section-wrapper .personal-touch-main-title {
        font-size: 1.5rem;
        padding: 1rem 0;
        margin-bottom: 2rem;
    }
    
    
    
    .personal-touch-content {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .personal-touch-photo {
        width: 160px;
        height: 160px;
        padding: 10px;
        flex-shrink: 0;
    }
    
    .personal-touch-photo a {
        display: block;
        width: 100%;
        height: 100%;
        clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
        transition: transform 0.3s ease, opacity 0.3s ease;
        cursor: pointer;
        pointer-events: auto;
        position: relative;
        z-index: 1;
    }
    
    .personal-touch-photo a:hover {
        transform: scale(1.05);
        opacity: 0.9;
    }
    
    .personal-touch-photo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        cursor: default;
    }
    
    .personal-touch-text {
        text-align: center;
        flex: none;
    }
    
    .personal-touch-text h3 {
        color: var(--primary-color);
        font-size: 1.3rem;
        margin: 0 0 1rem 0;
        font-weight: bold;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex-shrink: 0;
        text-align: center;
        justify-content: center;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid #e2e8f0;
        background: transparent;
        border-radius: 0;
        border-left: none;
        box-shadow: none;
    }
    
    /* スマホでは3つ目のセクションも通常の縦並び */
    .professional-touch .personal-touch-content {
        flex-direction: column;
    }
    

    
    /* 工房主からひとことのレスポンシブ対応 - 目立たないデザイン */
    .personal-touch-section-wrapper {
        padding: 1.5rem;
        margin: 1.5rem auto;
        max-width: 90%;
    }
    
    
    /* グリッドレイアウトのレスポンシブ対応 - クリア済み */
    
    /* .differences-grid子要素 - クリア済み */
    
    /* 料金比較テーブルのスマホ対応 - 横スライダー */
    .pricing-table-wrapper {
        overflow-x: auto;  /* 横スクロールを強制 */
        overflow-y: visible;  /* 縦は表示 */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.2);
        margin: 0.5rem auto 3rem auto;  /* 上マージンを0.5remに削減、下は3remに調整 */
        border-radius: 8px;  /* 12px → 8px でよりコンパクト */
        padding-bottom: 25px;  /* 30px → 25px で少し削減 */
        max-width: 100%;  /* 親要素の幅を超えないように */
    }
    
    .pricing-table-wrapper::-webkit-scrollbar {
        height: 16px;  /* 12px → 16px でより太く */
        margin-top: 25px;  /* 12px → 25px でより離す */
    }
    
    .pricing-table-wrapper::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.2);  /* .type-titleと同じ透明度 */
        border-radius: 6px;  /* .type-titleと同じ角丸 */
        margin: 0 4px;  /* .type-titleと同じマージン */
    }
    
    .pricing-table-wrapper::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.5);  /* .type-titleと同じ透明度 */
        border-radius: 6px;  /* .type-titleと同じ角丸 */
        border: 1px solid rgba(255, 255, 255, 0.3);  /* .type-titleと同じボーダー */
    }
    
    .pricing-table-wrapper::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.7);  /* .type-titleと同じホバー効果 */
    }
    
    .pricing-table {
        min-width: 700px;  /* 600px → 700px で確実に横スクロール */
        width: auto;  /* width: 100%を上書き */
    }
    
    .pricing-header {
        grid-template-columns: 160px 170px 170px 170px;
        gap: 0;
    }
    
    .pricing-header-cell {
        padding: 0.5rem 0.3rem;  /* 0.75rem 0.5rem → 0.5rem 0.3rem でさらにコンパクト */
        font-size: 0.8rem;  /* 0.9rem → 0.8rem でさらに小さく */
        white-space: nowrap;
        line-height: 1.1;  /* 1.2 → 1.1 で行間をさらに詰める */
        font-weight: 600;  /* 小さくなった分、太字で視認性確保 */
    }
    
    .pricing-item {
        padding: 0.4rem 0.25rem;  /* 1.25rem 1rem → 0.4rem 0.25rem でコンパクト */
        font-size: 0.75rem;  /* 0.95rem → 0.75rem で小さく */
        line-height: 1.2;  /* 1.5 → 1.2 で行間を詰める */
    }
    
    
    .pricing-item.price-highlight {
        padding: 0.6rem 0.4rem;  /* 価格は重要なので少し大きめに */
        font-size: 0.9rem;  /* 価格は重要なので少し大きめに */
        font-weight: 800;  /* 価格は最も太字で */
    }
    
    .pricing-row {
        grid-template-columns: 160px 170px 170px 170px;
        gap: 0;
    }
    
    .pricing-item {
        padding: 0.75rem 0.5rem;  /* 1rem 0.75rem → 0.75rem 0.5rem で高さ削減 */
        font-size: 0.8rem;  /* 0.85rem → 0.8rem で高さ削減 */
        line-height: 1.3;  /* 1.4 → 1.3 で行間を詰める */
        min-width: 150px;
    }
    
    .pricing-item.price-highlight {
        font-size: 1rem;  /* 1.1rem → 1rem で高さ削減 */
        padding: 0.6rem 0.5rem;  /* パディングをさらに削減 */
    }
    
    /* ウェブサイト構造比較図表のレスポンシブ対応 */
    /*
    .structure-comparison-wrapper {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .structure-type {
        padding: 1.5rem;
    }
    
    .structure-title {
        font-size: 1.3rem;
        padding: 0.75rem;
        margin: 0 0 1.5rem 0;
    }
    
    .sub-pages {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .page-box {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
    

    
    .page-box.sub-page {
        min-width: 100px;
        font-size: 0.8rem;
        padding: 0.75rem 1rem;
    }
    
    .lp-section {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .lp-section:first-child,
    .lp-section:last-child {
        font-size: 1rem;
    }
    
    /* 製造業ホームページ構造図表のレスポンシブ対応 */
    .manufacturing-structure-wrapper {
        padding: 0 1rem;
    }
    
    .manufacturing-diagram {
        padding: 2rem 1rem;
    }
    
    .second-level {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .page-box.main-page {
        padding: 1rem 0.75rem;
        font-size: 0.9rem;
        min-width: 100px;
    }
    
    .page-box.sub-page {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        min-width: 80px;
    }
    
    .sub-level {
        gap: 0.5rem;
    }
    
    /* .case-study-section内の図表のレスポンシブ対応 */
    .case-study-section .structure-comparison-wrapper {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .case-study-section .structure-type {
        padding: 1rem;
    }
    
    .case-study-section .structure-title {
        font-size: 1.1rem;
        padding: 0.5rem;
        margin: 0 0 1rem 0;
    }
    */
    
    /*
    .case-study-section .sub-pages {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .case-study-section .page-box {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    
    .case-study-section .page-box.top-page {
        min-width: 120px;
        font-size: 0.9rem;
    }
    
    .case-study-section .page-box.sub-page {
        min-width: 80px;
        font-size: 0.7rem;
        padding: 0.5rem 0.75rem;
    }
    
    .case-study-section .lp-section {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    
    .case-study-section .lp-section:first-child,
    .case-study-section .lp-section:last-child {
        font-size: 0.9rem;
    }
    
    .case-study-section .manufacturing-structure-wrapper {
        padding: 0 0.5rem;
    }
    
    .case-study-section .manufacturing-diagram {
        padding: 1.5rem 1rem;
    }
    
    .case-study-section .second-level {
        display: flex;
        flex-direction: row;
        gap: 0.1rem;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    
    .case-study-section .page-box.main-page {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
        min-width: 80px;
    }
    
    .case-study-section .page-box.sub-page {
        padding: 0.4rem 0.5rem;
        font-size: 0.7rem;
        min-width: 60px;
    }
    
    .case-study-section .top-level {
        margin-bottom: 1.5rem;
    }
    
    .case-study-section .main-section {
        gap: 0.75rem;
    }
    
    /* 統合レイアウトのレスポンシブ対応 */
    .case-study-section .integrated-diagrams-wrapper {
        flex-direction: row;
        gap: 1rem;
        padding: 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) #f1f5f9;
    }
    
    .case-study-section .integrated-diagrams-wrapper::-webkit-scrollbar {
        height: 8px;
    }
    
    .case-study-section .integrated-diagrams-wrapper::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 4px;
    }
    
    .case-study-section .integrated-diagrams-wrapper::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
    }
    
    .case-study-section .integrated-diagrams-wrapper::-webkit-scrollbar-thumb:hover {
        background: var(--primary-dark);
    }
    
    .case-study-section .manufacturing-structure {
        flex: 0 0 120px;
    }
    
    .case-study-section .homepage-structure {
        flex: 0 0 100px;
    }
    
    .case-study-section .lp-structure {
        flex: 0 0 80px;
    }
    
    .case-study-section .diagram-title {
        font-size: 1rem;
        padding: 0.5rem;
        margin: 0 0 1rem 0;
    }
    
    .case-study-section .sub-pages {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    
    .case-study-section .page-box {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .case-study-section .page-box.top-page {
        min-width: 100px;
        font-size: 0.85rem;
    }
    
    .case-study-section .page-box.sub-page {
        min-width: 70px;
        font-size: 0.7rem;
        padding: 0.5rem 0.6rem;
    }
    
    .case-study-section .lp-section {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }
    
    .case-study-section .lp-section:first-child,
    .case-study-section .lp-section:last-child {
        font-size: 0.8rem;
    }
    
    .case-study-section .second-level {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .case-study-section .page-box.main-page {
        padding: 0.6rem 0.5rem;
        font-size: 0.75rem;
        min-width: 70px;
    }
    
    .case-study-section .page-box.sub-page {
        padding: 0.3rem 0.5rem;
        font-size: 0.65rem;
        min-width: 50px;
    }
    
    .case-study-section .top-level {
        margin-bottom: 1rem;
    }
    
    .case-study-section .main-section {
        gap: 0.6rem;
    }
    */

/* タブレット画面（769px - 1024px）での統合レイアウト対応 */
/*
@media (max-width: 1024px) and (min-width: 769px) {
    .case-study-section .integrated-diagrams-wrapper {
        flex-direction: row;
        gap: 1.2rem;
        padding: 1.2rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) #f1f5f9;
    }
    
    .case-study-section .integrated-diagrams-wrapper::-webkit-scrollbar {
        height: 8px;
    }
    
    .case-study-section .integrated-diagrams-wrapper::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 4px;
    }
    
    .case-study-section .integrated-diagrams-wrapper::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
    }
    
    .case-study-section .integrated-diagrams-wrapper::-webkit-scrollbar-thumb:hover {
        background: var(--primary-dark);
    }
    
    .case-study-section .manufacturing-structure {
        flex: 0 0 140px;
    }
    
    .case-study-section .homepage-structure {
        flex: 0 0 110px;
    }
    
    .case-study-section .lp-structure {
        flex: 0 0 90px;
    }
    
    .case-study-section .diagram-title {
        font-size: 1rem;
        padding: 0.6rem;
        margin: 0 0 1.2rem 0;
    }
    
    .case-study-section .sub-pages {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .case-study-section .page-box {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .case-study-section .page-box.top-page {
        min-width: 120px;
        font-size: 0.9rem;
    }
    
    .case-study-section .page-box.sub-page {
        min-width: 80px;
        font-size: 0.75rem;
        padding: 0.6rem 0.8rem;
    }
    
    .case-study-section .lp-section {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .case-study-section .lp-section:first-child,
    .case-study-section .lp-section:last-child {
        font-size: 0.9rem;
    }
    
    .case-study-section .second-level {
        display: flex;
        flex-direction: row;
        gap: 0.15rem;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    
    .case-study-section .page-box.main-page {
        padding: 0.8rem 0.6rem;
        font-size: 0.8rem;
        min-width: 80px;
    }
    
    .case-study-section .page-box.sub-page {
        padding: 0.5rem 0.6rem;
        font-size: 0.7rem;
        min-width: 60px;
    }
    
    .case-study-section .top-level {
        margin-bottom: 1.5rem;
    }
    
    .case-study-section .main-section {
        gap: 0.8rem;
    }
}
*/

/* スマホ画面（480px以下）での製造業構造図表 */
/*
@media (max-width: 480px) {
    .manufacturing-diagram {
        padding: 1.5rem 0.5rem;
    }
    
    .second-level {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .page-box.main-page {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
        min-width: 80px;
    }
    
    .page-box.sub-page {
        padding: 0.4rem 0.5rem;
        font-size: 0.7rem;
        min-width: 60px;
    }
    
    .top-level {
        margin-bottom: 2rem;
    }
    
    .main-section {
        gap: 1rem;
    }
    
    /* 統合レイアウトのスマホ対応 */
    .case-study-section .integrated-diagrams-wrapper {
        gap: 0.8rem;
        padding: 0 0.25rem;
    }
    
    .case-study-section .diagram-card {
        flex: 0 0 300px;
        padding: 0.8rem;
        min-height: 400px;
    }
    
    .case-study-section .diagram-title {
        font-size: 0.9rem;
        padding: 0.4rem;
        margin: 0 0 0.8rem 0;
    }
    
    .case-study-section .sub-pages {
        gap: 0.3rem;
    }
    
    .case-study-section .page-box {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .case-study-section .page-box.top-page {
        min-width: 80px;
        font-size: 0.8rem;
    }
    
    .case-study-section .page-box.sub-page {
        min-width: 60px;
        font-size: 0.65rem;
        padding: 0.4rem 0.5rem;
    }
    
    .case-study-section .lp-section {
        padding: 0.5rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .case-study-section .lp-section:first-child,
    .case-study-section .lp-section:last-child {
        font-size: 0.75rem;
    }
    
    .case-study-section .second-level {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .case-study-section .page-box.main-page {
        padding: 0.5rem 0.4rem;
        font-size: 0.7rem;
        min-width: 60px;
    }
    
    .case-study-section .page-box.sub-page {
        padding: 0.25rem 0.4rem;
        font-size: 0.6rem;
        min-width: 40px;
    }
    
    .case-study-section .top-level {
        margin-bottom: 0.8rem;
    }
    
    .case-study-section .main-section {
        gap: 0.5rem;
    }
*/
    
    /* 工程比較図表のレスポンシブ対応 */
    .process-flow-comparison {
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .process-flow {
        padding: 1rem;
    }
    
    .flow-title {
        font-size: 1.2rem;
        padding: 0.5rem;
        margin: 0 0 1rem 0;
    }
    
    .flow-steps {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .flow-step {
        min-width: auto;
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .flow-arrow {
        display: none;
    }
    
    .step-note {
        font-size: 0.7rem;
        margin-top: 0.25rem;
    }
    
    .problem-mark,
    .advantage-mark {
        width: 20px;
        height: 20px;
        font-size: 0.8rem;
        top: -6px;
        right: -6px;
    }
    
    /* 通常のfeatureセル（5行目と9行目以外） */
    
    /* セクション内のブロック要素のレスポンシブ対応 */
    section:not(.personal-touch):not(.one-man-operation):not(.professional-touch):not(.hero):not(.slider-section):not(.quick-nav-section):not(.pricing-section):not(.process-comparison):not(.pricing-comparison):not(.website-types-explanation):not(.local-seo-section):not(.contact-section) .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    section:not(.personal-touch):not(.one-man-operation):not(.professional-touch):not(.hero):not(.slider-section):not(.quick-nav-section):not(.pricing-section):not(.process-comparison):not(.pricing-comparison):not(.website-types-explanation):not(.local-seo-section):not(.contact-section) .case-study-layout,
    section:not(.personal-touch):not(.one-man-operation):not(.professional-touch):not(.hero):not(.slider-section):not(.quick-nav-section):not(.pricing-section):not(.process-comparison):not(.pricing-comparison):not(.website-types-explanation):not(.local-seo-section):not(.contact-section) .personal-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    /* スマートフォン対応 - 各セクションの背景色 */
    .personal-touch .personal-touch-section-wrapper {
        background: linear-gradient(135deg, rgba(255, 182, 193, 0.20), rgba(255, 192, 203, 0.15));
    }
    
    .one-man-operation .personal-touch-section-wrapper {
        background: linear-gradient(135deg, rgba(173, 216, 230, 0.20), rgba(176, 224, 230, 0.15));
    }
    
    .professional-touch .personal-touch-section-wrapper {
        background: linear-gradient(135deg, rgba(144, 238, 144, 0.20), rgba(152, 251, 152, 0.15));
    }
    
    .personal-touch-section-wrapper .personal-touch-main-title {
        font-size: 1.2rem;
        padding: 0.8rem 0;
        margin-bottom: 1.2rem;
    }
}

/* ========================================
 * 古いフローティングボタン関連は削除済み
 * ======================================== */



/* ========================================
 * 最終的なスマホ対応（最優先）
 * ======================================== */
@media screen and (max-width: 600px) {
    /* 全グリッドを強制的に1列に - クリア済み */
    
    /* case-study-mainのスマホ対応 */
    .case-study-main {
        padding: 15px;
        margin: 0 auto 20px auto;
        max-width: 95%;
        border-radius: 12px;
    }
    
    /* case-study-mainの子要素を縦並びに */
    .case-study-main .case-study-layout {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .case-study-main .case-study-image-container {
        order: 1;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .case-study-main .case-study-content {
        order: 2;
        width: 100%;
        text-align: center;
    }
}

/* 工房主の日常セクション - 他の写真と区別するスタイル */
.personal-touch-section {
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    padding: 1.5rem;
}

.personal-touch-section h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 0 0 1.5rem 0;
    font-weight: bold;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.75rem;
}

.personal-touch-section h4 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.personal-touch-section h4 a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.personal-touch-section .local-content-image {
    text-align: center;
    margin: 1rem 0;
}

.personal-touch-section .local-content-image a {
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.personal-touch-section .local-content-image a:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.personal-touch-section .local-small-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--primary-color);
    cursor: pointer;
}

.personal-touch-section .image-caption {
    font-style: italic;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .personal-touch-section {
        margin: 1.5rem 0;
        padding: 1rem;
    }
    
    .personal-touch-section h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .personal-touch-section .local-small-image {
        border-width: 2px;
    }
    }
}

