﻿/* 繝ｪ繧ｻ繝・ヨ縺ｨ繝吶・繧ｹ繧ｹ繧ｿ繧､繝ｫ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ヘッダースタイル */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e5e7eb;
}

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

.header-left {
    flex-shrink: 0;
}

.header-right {
    flex-shrink: 0;
}

.datacount-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    max-width: 200px;
}

.header-logo {
    flex-shrink: 0;
}

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
    max-width: 200px;
}

.header-title {
    flex: 1;
    color: #333333;
}

.header-title h1 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    color: #333333;
}

.header-subtitle {
    font-size: 0.9rem;
    margin: 0.2rem 0 0 0;
    color: #666666;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .header-container {
        padding: 0 0.5rem;
        gap: 0.5rem;
    }
    
    .logo-image {
        height: 50px;
        max-width: 150px;
    }
    
    .datacount-image {
        height: 40px;
        max-width: 150px;
    }
}

/* 横スクロール完全防止 - 特定の要素のみに適用 */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* フォーム関連要素の横スクロール防止 */
.estimate-form,
.form-container,
.form-slider-container,
.site-wrapper {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden !important; /* 横スクロール完全防止 */
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5; /* グレー背景に変更 */
    overflow-x: hidden !important; /* 横スクロール完全防止 */
    margin: 0;
    padding: 0;
    width: 100% !important;
    max-width: 100vw !important; /* ビューポート幅を超えない */
}

/* サイト全体のラッパー - PC画面での横幅制限 */
.site-wrapper {
    max-width: 100%; /* デフォルトは全幅 */
    margin: 0 auto; /* 中央配置 */
    overflow-x: hidden !important; /* 横スクロール防止 */
    width: 100% !important;
    background: #fff; /* 白い背景 */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); /* 影を追加 */
    min-height: 100vh; /* 最小高さを設定 */
}

/* 逕ｻ蜒上・繝ｬ繧ｹ繝昴Φ繧ｷ繝門ｯｾ蠢・*/
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

/* 上部帯 */
.top-stripe {
    background: #E0F5EC; /* 薄い緑色 */
    height: 3rem;
    width: 100%;
}

/* トップ帯 */
.top-banner {
    background: #ff6b35; /* オレンジ色 */
    padding: 0.8rem 0;
    text-align: center;
    width: 100%;
}

.banner-text {
    color: white;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

.banner-text strong {
    font-weight: 900;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.top-image-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #E0F5EC; /* 背景色を#E0F5ECに変更 */
    overflow: hidden;
    height: auto;
    min-height: auto !important;
    flex-shrink: 0;
    margin-top: 0; /* margin-topを0に戻す */
    position: relative;
    top: 0;
}

.top-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 auto !important;
}


.latest-requests-section {
    background: #fff;
    padding: 40px 20px;
    text-align: center;
}

.requests-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.requests-header {
    background: #d0e6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e0e0e0;
}

.header-icon {
    color: #ff6b35;
    font-size: 1.2rem;
    font-weight: bold;
}

.requests-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.request-item.request-hidden-top,
.request-item.request-hidden-bottom {
    opacity: 0;
    height: 0;
    padding: 0;
    border: none;
    overflow: hidden;
    pointer-events: none;
}



.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ff6b35;
    margin: 0;
    text-align: center;
    font-family: 'Noto Sans JP', sans-serif;
}

.request-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1rem;
    font-weight: 500;
    opacity: 1;
    transform: translateY(0);
    width: 100%;
    box-sizing: border-box;
    background: #fff;
}

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

.request-item.slide-up {
    transform: translateY(-100%);
    transition: transform 0.5s ease;
}

.request-item.slide-down {
    transform: translateY(100%);
    transition: transform 0.5s ease;
}



.request-item.slide-from-top {
    transform: translateY(-100%);
    transition: transform 0.5s ease;
}

.request-item.slide-from-bottom {
    transform: translateY(100%);
}

.request-date {
    color: #666;
    font-weight: 500;
    font-size: 1rem;
    flex: 1;
    text-align: left;
}

.request-info {
    color: #333;
    font-weight: 500;
    font-size: 1rem; /* PC: サイズを調整 */
    flex: 2;
    text-align: center;
    line-height: 1.2;
    min-width: 0;
    white-space: normal; /* デフォルト: 改行を許可 */
    overflow: visible;
    text-overflow: unset;
    max-width: 100%;
}

/* PCビュー専用: 改行を完全に防ぐ */
@media (min-width: 769px) {
    .request-info {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: flex !important;
        align-items: center !important;
        max-width: 100% !important;
        flex-shrink: 1 !important;
    }
    
    .request-item {
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .request-date {
        flex-shrink: 0 !important;
        min-width: 120px !important;
    }
    
    .request-price {
        flex-shrink: 0 !important;
        min-width: 100px !important;
    }
    
    /* PCビュー: companies-titleの設定 */
    .companies-title {
        font-size: 3rem !important; /* PC: サイズを大きく */
        font-weight: 700 !important; /* 太字にする */
    }
    
    /* PCビュー: 見積もりスタートボタンの設定 */
    .btn-estimate-start {
        font-size: 2.2rem !important; /* PC: サイズをさらに大きく */
        padding: 2rem 4rem !important; /* PC: パディングをさらに大きく */
        min-width: 400px !important; /* PC: 最小幅をさらに大きく */
        white-space: nowrap !important; /* PC: 改行を防ぐ */
    }
    
    /* PCビュー: 次へ進むボタンの設定 */
    .btn-next,
    .btn-submit {
        font-size: 1.8rem !important; /* PC: フォントサイズをさらに大きく */
        padding: 2.2rem 4rem !important; /* PC: パディングをさらに大きく */
        min-width: 300px !important; /* PC: 最小幅をさらに大きく */
        height: 80px !important; /* PC: 高さをさらに大きく */
        border-radius: 15px !important; /* PC: 角丸を大きく */
    }
}

/* より大きなデスクトップ画面（1200px以上）でのボタンサイズ調整 */
@media (min-width: 1200px) {
    /* 大きなデスクトップ: 見積もりスタートボタンの設定 */
    .btn-estimate-start {
        font-size: 2.5rem !important; /* 大きなPC: サイズをさらに大きく */
        padding: 2.5rem 5rem !important; /* 大きなPC: パディングをさらに大きく */
        min-width: 450px !important; /* 大きなPC: 最小幅をさらに大きく */
    }
    
    /* 大きなデスクトップ: 次へ進むボタンの設定 */
    .btn-next,
    .btn-submit {
        font-size: 2rem !important; /* 大きなPC: フォントサイズをさらに大きく */
        padding: 2.5rem 5rem !important; /* 大きなPC: パディングをさらに大きく */
        min-width: 350px !important; /* 大きなPC: 最小幅をさらに大きく */
        height: 90px !important; /* 大きなPC: 高さをさらに大きく */
    }
}

/* 超大型デスクトップ画面（1400px以上）でのボタンサイズ調整 */
@media (min-width: 1400px) {
    /* 超大型デスクトップ: 見積もりスタートボタンの設定 */
    .btn-estimate-start {
        font-size: 2.8rem !important; /* 超大型PC: サイズを最大に */
        padding: 3rem 6rem !important; /* 超大型PC: パディングを最大に */
        min-width: 500px !important; /* 超大型PC: 最小幅を最大に */
    }
    
    /* 超大型デスクトップ: 次へ進むボタンの設定 */
    .btn-next,
    .btn-submit {
        font-size: 2.2rem !important; /* 超大型PC: フォントサイズを最大に */
        padding: 3rem 6rem !important; /* 超大型PC: パディングを最大に */
        min-width: 400px !important; /* 超大型PC: 最小幅を最大に */
        height: 100px !important; /* 超大型PC: 高さを最大に */
    }
}

.request-price {
    color: #ff6b35;
    font-weight: 700;
    font-size: 1rem;
    flex: 1;
    text-align: right;
}

@media (max-width: 768px) {
    /* トップ帯 - モバイル対応 */
    .top-banner {
        padding: 0.2rem 0;
    }
    
    .banner-text {
        font-size: 1.1rem;
        letter-spacing: 0.3px;
    }
    
    .banner-text strong {
        font-weight: 900;
        font-size: 1.3rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .latest-requests-section {
        padding: 30px 0;
    }
    
    .requests-container {
        margin: 0 15px;
        padding: 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin: 0;
        padding: 20px 25px;
        border-radius: 15px 15px 0 0;
        white-space: normal; /* モバイル: 改行を許可 */
    }
    
    .requests-wrapper {
        padding: 20px;
    }
    
    .request-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 12px 15px;
        text-align: left;
    }
    
    .request-date {
        flex: 1;
        text-align: left;
    }
    
    .request-info {
        flex: 2;
        text-align: left;
        line-height: 1.3;
        min-width: 0;
    }
    
    .request-price {
        flex: none;
        text-align: right;
        min-width: 80px;
    }
    
    .request-date {
        font-size: 0.85rem; /* モバイル: 元のサイズに戻す */
    }
    
    .request-info {
        font-size: 0.85rem; /* モバイル: 元のサイズに戻す */
        line-height: 1.3;
        white-space: normal; /* モバイル: 改行を許可 */
        overflow: visible;
        text-overflow: unset;
        display: block; /* モバイル: ブロック表示で改行を確実に */
    }
    
    .request-price {
        font-size: 1.05rem; /* モバイル: 元のサイズに戻す */
    }
}

/* 蜿､縺・ｨｭ螳壹ｒ蜑企勁 */

/* 白背景セクション */
.white-background-section {
    background: #ffffff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ボタンリンクコンテナ */
.button-link-container a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.button-link-container a:hover {
    transform: translateY(-5px);
}

/* 繧ｵ繝ｼ繝薙せ隱ｬ譏弱そ繧ｯ繧ｷ繝ｧ繝ｳ */
.service-explanation {
    margin: 0;
    position: relative;
}

/* 説明画像のスタイル */
.explanation-image-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.explanation-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-explanation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.explanation-title-image {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.explanation-title-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: -3rem;
    border-radius: 10px;
}


.explanation-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.1);
}

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

/* 萓｡譬ｼ繝｡繝ｪ繝・ヨ隱ｬ譏弱そ繧ｯ繧ｷ繝ｧ繝ｳ */
.price-benefit-explanation {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    padding: 3rem 0;
    margin: 2rem 0;
    position: relative;
}

.price-benefit-explanation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c, #c0392b, #e74c3c);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.benefit-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.benefit-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    border-radius: 2px;
}

.benefit-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.1);
}

/* 繝倥ャ繝繝ｼ */
.header {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.main-catch {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.4;
}

/* 繝｡繧､繝ｳ繧ｳ繝ｳ繝・Φ繝・*/
.main {
    border:10px solid #d0e6ff;
    border-bottom: 30px solid #d0e6ff;
}

/* 見積もりフォーム */
.estimate-form {
    background: #fff; /* 背景色を白に設定 */
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* 繝輔か繝ｼ繝蜑阪・逕ｻ蜒・*/
.form-before-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: -2rem;
    z-index: 10;
}

.form-before-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 15vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* 期間選択セクションの強制表示 */
#period-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* カレンダーセクションの非表示（デフォルト） */
#calendar-section {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* 「決まってない」が選択されている場合の強制表示 */
input[name="date-status"][value="undecided"]:checked ~ #period-section,
body:has(input[name="date-status"][value="undecided"]:checked) #period-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 「決まってない」が選択されている場合のカレンダー非表示 */
input[name="date-status"][value="undecided"]:checked ~ #calendar-section,
body:has(input[name="date-status"][value="undecided"]:checked) #calendar-section {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* 「おおよそ決まってる」が選択されている場合の期間セクション非表示 */
input[name="date-status"][value="decided"]:checked ~ #period-section,
body:has(input[name="date-status"][value="decided"]:checked) #period-section {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* 「おおよそ決まってる」が選択されている場合のカレンダーセクション表示 */
input[name="date-status"][value="decided"]:checked ~ #calendar-section,
body:has(input[name="date-status"][value="decided"]:checked) #calendar-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.prev-info-link {
    display: inline-block;
    padding: 12px 50px;
    background-color: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    color: #666666;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 1rem;
}

.prev-info-link:hover {
    background-color: #e8e8e8;
    border-color: #d0d0d0;
    color: #555555;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.prev-info-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* モバイル対応 */
@media (max-width: 768px) {
    .prev-info-link {
        padding: 10px 50px;
        font-size: 0.9rem;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .prev-info-link {
        padding: 8px 16px;
        font-size: 0.85rem;
        border-radius: 18px;
    }
}
.steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.step {
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
    color: #4a90e2;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    border: 2px solid rgba(74, 144, 226, 0.2);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.1);
    position: relative;
}





.step.active {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
    border-color: #4a90e2;
    transform: scale(1.05);
}

.step.completed {
    background: #cef5ff;
    color: rgb(1, 0, 41);
    position: relative;
}


/* 隕狗ｩ阪ｂ繧翫ヵ繧ｩ繝ｼ繝 */
.estimate-form {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    height: auto !important; /* 鬮倥＆繧定・蜍戊ｪｿ謨ｴ */
    max-height: none !important; /* 最大高さ制限を解除 */
    position: relative;
    transition: height 0.3s ease; /* 鬮倥＆螟画峩縺ｮ繧｢繝九Γ繝ｼ繧ｷ繝ｧ繝ｳ */
}

/* 繝輔か繝ｼ繝繧ｿ繧､繝医Ν */
.form-title-container {
    background: #cbe1f9;
    padding: 1rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}





.form-title-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.8s;
}

.form-title-container:hover::before {
    left: 100%;
}

.form-main-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: rgb(48, 48, 48);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ステップインジケーター */
.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    margin: 0;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    gap: 0;
    overflow: hidden; /* はみ出しを防ぐ */
}

.steps-container .step {
    margin-left: -20px; /* 矢印部分をより重ねて隙間を埋める */
}

.steps-container .step:first-child {
    margin-left: 0; /* 最初のステップは重ねない */
    border-radius: 0; /* 最初のステップの角丸を削除 */
}

/* パーツ1の時はステップコンテナ全体を非表示 */
body:has(#part1.active) .steps-container {
    display: none !important;
}

/* パーツ1のform-partの高さを動的に調整 */
#part1.form-part,
#part1.form-part.active,
body:has(#part1.active) #part1.form-part {
    height: auto !important;
    min-height: 200px !important;
    max-height: none !important;
}

/* パーツ1のフォーム要素の間隔を狭める */
#part1 .form-group {
    margin-bottom: 0.5rem !important;
}

#part1 .form-actions {
    margin-top: 0.5rem !important;
    margin-bottom: 0 !important;
}

/* 2つ目のフォーム用：パーツ1の時はステップコンテナ全体を非表示 */
body:has(#part1-2.active) .steps-container {
    display: none !important;
}

/* 引っ越し業者ロゴスライダー */
.company-slider-container {
    width: 100%;
    background: #ffffff;
    padding: 20px 0;
    overflow: hidden;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.company-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    animation: slideLeft 60s linear infinite;
    width: max-content;
}

.slider-item {
    flex-shrink: 0;
    margin-right: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    min-width: 120px;
}

.slider-item img {
    max-height: 50px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.slider-item:hover img {
    filter: grayscale(0%);
}

/* スライダーアニメーション */
@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* スライダーを一時停止するホバー効果 */
.company-slider:hover .slider-track {
    animation-play-state: paused;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .company-slider-container {
        padding: 5px 0;
    }
    
    .slider-item {
        margin-right: 30px;
        height: 50px;
        min-width: 100px;
    }
    
    .slider-item img {
        max-height: 40px;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .company-slider-container {
        padding: 5px 0;
    }
    
    .slider-item {
        margin-right: 20px;
        height: 40px;
        min-width: 80px;
    }
    
    .slider-item img {
        max-height: 35px;
        max-width: 100px;
    }
}

.step {
    flex: 1;
    text-align: center;
    color: #555;
    padding: 20px 20px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    background: #ffffff;
    border: 1px solid #ddd;
    margin: 0;
    clip-path: polygon(0% 0%, calc(100% - 15px) 0%, 100% 50%, calc(100% - 15px) 100%, 0% 100%);
    z-index: 1;
}

/* ステップの重ね順を設定 */
.step:nth-child(1) {
    z-index: 30; /* step1が最前面 */
    border-radius: 0; /* step1の角丸を削除 */
}

.step:nth-child(2) {
    z-index: 20; /* step2が2番目 */
    border-radius: 0; /* step2の角丸を削除 */
}

.step:nth-child(3) {
    z-index: 10; /* step3が最背面 */
    border-radius: 0; /* step3の角丸を削除 */
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); /* 最後のステップは四角形 */
    margin-right: 0; /* 右側の余白を削除 */
    padding-right: 15px; /* 右側のパディングを調整 */
}

.step.active {
    background: rgb(9, 1, 85);
    color: rgb(255, 225, 225);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.step.completed {
    background: #cef5ff;
    color: rgb(1, 0, 41);
    font-weight: 700;
    position: relative;
}


.step-arrow {
    display: none;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .steps-container .step {
        margin-left: -16px; /* モバイル用の重なり調整（隙間を埋める） */
    }
    
    .steps-container .step:first-child {
        margin-left: 0;
        border-radius: 0; /* 最初のステップの角丸を削除 */
    }
    
    .step {
        padding: 10px 16px;
        font-size: 16px;
    }
    
    /* モバイル版でも重ね順を維持 */
    .step:nth-child(1) {
        z-index: 30; /* step1が最前面 */
        border-radius: 0; /* step1の角丸を削除 */
    }
    
    .step:nth-child(2) {
        z-index: 20; /* step2が2番目 */
        border-radius: 0; /* step2の角丸を削除 */
    }
    
    .step:nth-child(3) {
        z-index: 10; /* step3が最背面 */
        border-radius: 0; /* step3の角丸を削除 */
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); /* 最後のステップは四角形 */
        margin-right: 0; /* 右側の余白を削除 */
        padding-right: 12px; /* 右側のパディングを調整（モバイル用） */
    }
}

@media (max-width: 480px) {
    .steps-container .step {
        margin-left: -14px; /* 小さいモバイル用の重なり調整（隙間を埋める） */
    }
    
    .steps-container .step:first-child {
        margin-left: 0;
        border-radius: 0; /* 最初のステップの角丸を削除 */
    }
    
    .step {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    /* 小さいモバイル版でも重ね順を維持 */
    .step:nth-child(1) {
        z-index: 30; /* step1が最前面 */
        border-radius: 0; /* step1の角丸を削除 */
    }
    
    .step:nth-child(2) {
        z-index: 20; /* step2が2番目 */
        border-radius: 0; /* step2の角丸を削除 */
    }
    
    .step:nth-child(3) {
        z-index: 10; /* step3が最背面 */
        border-radius: 0; /* step3の角丸を削除 */
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); /* 最後のステップは四角形 */
        margin-right: 0; /* 右側の余白を削除 */
        padding-right: 10px; /* 右側のパディングを調整（小さいモバイル用） */
    }
}



.estimate-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #357abd, #4a90e2);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 繧ｹ繝ｩ繧､繝繝ｼ繧ｳ繝ｳ繝・リ */
.form-slider-container {
    overflow: visible; /* 繧ｨ繝ｩ繝ｼ繝｡繝・そ繝ｼ繧ｸ縺瑚ｦ九∴繧九ｈ縺・↓ */
    position: relative;
    height: auto !important; /* 鬮倥＆繧定・蜍戊ｪｿ謨ｴ */
    max-height: none !important; /* 最大高さ制限を解除 */
    min-height: auto !important; /* 譛蟆城ｫ倥＆繧貞炎髯､ */
    transition: height 0.3s ease; /* 鬮倥＆螟画峩縺ｮ繧｢繝九Γ繝ｼ繧ｷ繝ｧ繝ｳ */
}

/* form-slider-containerにpaddingを適用 */
.form-slider-container {
    padding: 1rem;
}

.form-slider {
    display: flex;
    width: 400%; /* 4縺､縺ｮ繝代・繝・・縺ｮ蟷・*/
    transform: translateX(0); /* 蛻晄悄菴咲ｽｮ繧偵ヱ繝ｼ繝・縺ｫ險ｭ螳・*/
    justify-content: flex-start; /* 蟾ｦ謠・∴縺ｧ髢句ｧ・*/
}

/* パーツ3がアクティブな時のスライダー幅調整 */
#part3.active ~ .form-slider {
    width: 400% !important;
}

/* 繝輔か繝ｼ繝繝代・繝・*/
.form-part {
    width: 25%; /* 蜷・ヱ繝ｼ繝・・蟷・ｼ・縺､縺ｫ蛻・牡・・*/
    padding: 1.5rem 2rem 1rem 2rem; /* 荳矩Κ繝代ョ繧｣繝ｳ繧ｰ繧貞炎貂・*/
    flex-shrink: 0;
    height: auto !important; /* 鬮倥＆繧定・蜍戊ｪｿ謨ｴ */
    min-height: auto !important; /* 譛鬮伜倥＆繧貞炎髯､ */
    max-height: none !important; /* 最大高さ制限を解除 */
    overflow: visible; /* 繧ｨ繝ｩ繝ｼ繝｡繝・そ繝ｼ繧ｸ縺瑚ｦ九∴繧九ｈ縺・↓ */
    margin: 0; /* 繝槭・繧ｸ繝ｳ繧貞炎髯､ */
    text-align: center; /* 荳ｭ螟ｮ謠・∴ */
}

/* 繝代・繝・縺ｨ繝代・繝・縺ｮ鬮倥＆繧定ｪｿ謨ｴ */
#part1 {
    min-height: auto !important; /* 譛蟆城ｫ倥＆繧貞炎髯､ */
    height: auto !important; /* 鬮倥＆繧定・蜍戊ｪｿ謨ｴ */
    max-height: none !important; /* 最大高さ制限を解除 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 荳頑純縺医↓螟画峩 */
}

#part2 {
    height: auto; /* 繝代・繝・縺ｯ鬮倥＆繧定・蜍戊ｪｿ謨ｴ */
    min-height: 400px; /* 譛蟆城ｫ倥＆繧定ｪｿ謨ｴ */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 荳頑純縺医↓螟画峩 */
}

/* 繝代・繝・縺ｮ鬮倥＆繧定ｪｿ謨ｴ */
#part3 {
    min-height: 400px; /* 譛蟆城ｫ倥＆繧定ｪｿ謨ｴ */
    height: auto !important; /* 鬮倥＆繧定・蜍戊ｪｿ謨ｴ */
    max-height: none !important; /* 最大高さ制限を解除 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 荳頑純縺医↓螟画峩 */
}

/* 繝代・繝・縺ｮ鬮倥＆繧定ｪｿ謨ｴ */
#part4 {
    min-height: 400px; /* 譛蟆城ｫ倥＆繧定ｪｿ謨ｴ */
    height: auto !important; /* 鬮倥＆繧定・蜍戊ｪｿ謨ｴ */
    max-height: none !important; /* 最大高さ制限を解除 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 荳頑純縺医↓螟画峩 */
}



/* 繝｢繝舌う繝ｫ蟇ｾ蠢・*/
@media (max-width: 768px) {
    .form-part {
        padding: 1rem 1.5rem 0 1.5rem; /* 荳矩Κ縺ｮ繝代ョ繧｣繝ｳ繧ｰ繧貞炎髯､ */
        height: auto !important; /* 鬮倥＆繧定・蜍戊ｪｿ謨ｴ */
    max-height: none !important; /* 最大高さ制限を解除 */
    }
    
    /* パーツ1の高さを動的に調整 */
    #part1.form-part,
    #part1.form-part.active {
        height: auto !important;
        min-height: 200px !important;
        max-height: none !important;
    }
    
    .form-actions {
    flex-direction: column;
    align-items: center;
    margin-top: 1.5rem; /* 荳企Κ繝槭・繧ｸ繝ｳ繧定ｪｿ謨ｴ */
    margin-bottom: 0.5rem; /* 荳矩Κ繝槭・繧ｸ繝ｳ繧貞炎貂・*/
    padding: 0.5rem 0; /* 荳贋ｸ九ヱ繝・ぅ繝ｳ繧ｰ繧貞炎貂・*/
    flex-shrink: 0; /* 邵ｮ蟆上ｒ髦ｲ縺・*/
}
    
    .btn-next {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
    
    .estimate-form {
        height: auto !important; /* 鬮倥＆繧定・蜍戊ｪｿ謨ｴ */
    max-height: none !important; /* 最大高さ制限を解除 */
    }
    
    .form-slider-container {
        height: fit-content; /* 鬮倥＆繧貞・螳ｹ縺ｫ蜷医ｏ縺帙ｋ */
        min-height: 300px; /* 繝｢繝舌う繝ｫ逕ｨ縺ｮ譛蟆城ｫ倥＆ */
    }
}

/* 髱槭い繧ｯ繝・ぅ繝悶↑繝代・繝・・髱櫁｡ｨ遉ｺ・亥━蜈磯・ｽ阪ｒ荳九￡繧具ｼ・*/
.form-part:not(.active) {
    display: none;
}

/* 繧｢繧ｯ繝・ぅ繝悶↑繝代・繝・・陦ｨ遉ｺ・亥━蜈磯・ｽ阪ｒ荳翫￡繧具ｼ・*/
.form-part.active {
    display: block !important;
}

/* 蛻晄悄陦ｨ遉ｺ譎ゅ・繝代・繝・繧定｡ｨ遉ｺ */
.form-part:first-child {
    display: block !important;
}

/* 繝代・繝・縺檎｢ｺ螳溘↓陦ｨ遉ｺ縺輔ｌ繧九ｈ縺・↓ */
#part1 {
    display: block !important;
}

/* 繧｢繧ｯ繝・ぅ繝悶↑繝代・繝・ｒ遒ｺ螳溘↓陦ｨ遉ｺ */
.form-part.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important; /* 動的高さを強制 */
    min-height: auto !important; /* 最小高さを自動調整 */
    max-height: none !important; /* 最大高さ制限を解除 */
}

/* パーツ1専用の動的高さ強制 */
#part1.form-part.active,
#part1.form-part,
body:has(#part1.active) #part1.form-part {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* フォームスライダーコンテナの動的高さ強制 */
.form-slider-container.part1-active,
.form-slider-container:has(#part1.active) {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* 繝代・繝・縺檎｢ｺ螳溘↓陦ｨ遉ｺ縺輔ｌ繧九ｈ縺・↓ */
#part2.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* パーツ3のアクティブ状態（削除 - 重複） */

/* 繝代・繝・縺ｮ繧ｹ繝ｩ繧､繝繝ｼ菴咲ｽｮ繧剃ｿ晁ｨｼ */
/* パーツ1のスライダー位置 */
#part1.active ~ .form-slider {
    transform: translateX(0%) !important;
}

/* パーツ2のスライダー位置 */
#part2.active ~ .form-slider {
    transform: translateX(-100%) !important;
}

/* パーツ3のスライダー位置 */
#part3.active ~ .form-slider {
    transform: translateX(-200%) !important;
    width: 400% !important;
    height: auto !important;
    min-height: 400px !important;
    max-height: none !important;
    overflow: visible !important;
}

/* パーツ3がアクティブな時のスライダーコンテナ設定 */
.form-slider-container:has(#part3.active) .form-slider {
    transform: translateX(-200%) !important;
    width: 400% !important;
}

/* パーツ3表示時のフォームスライダーコンテナ設定 */
.form-slider-container:has(#part3.active) {
    overflow: visible !important;
    height: auto !important;
    min-height: 400px !important;
    max-height: none !important;
}

/* パーツ3表示時のフォームスライダー設定 */
.form-slider:has(#part3.active) {
    overflow: visible !important;
    height: auto !important;
    min-height: 400px !important;
    max-height: none !important;
}

/* パーツ3の基本設定（パーツ1、2と同じ） */
#part3 {
    height: auto !important;
    min-height: 400px !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* パーツ1の現在の住所の都道府県セレクトボックスの高さを低く */
#part1 .form-group select[name="current-prefecture-from"] {
    font-size: 1.1rem !important;
    padding: 0.8rem 1rem !important;
    height: auto !important;
    border: 2px solid #ddd !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    color: #666 !important;
    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto !important;
}

/* パーツ1の引越し先の都道府県セレクトボックスの高さを低く */
#part1 .form-group select[name="current-prefecture"] {
    font-size: 1.1rem !important;
    padding: 0.8rem 1rem !important;
    height: auto !important;
    border: 2px solid #ddd !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    color: #666 !important;
    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto !important;
}

/* パーツ3の都道府県セレクトボックスを統一 */
#part3 .form-group select[name="destination-prefecture"],
#part3 .form-group select[name="destination-city"] {
    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    padding: 1.3rem 1.5rem !important;
    font-size: 1.1rem !important;
    height: 65px !important;
    min-height: 65px !important;
    border-radius: 12px !important;
    border: 2px solid #e1e8ed !important;
    background-color: #ffffff !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* パーツ3のセレクトボックスをより強力に適用 */
#part3 select[name="destination-prefecture"],
#part3 select[name="destination-city"] {
    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    padding: 1.3rem 1.5rem !important;
    font-size: 1.1rem !important;
    height: 65px !important;
    min-height: 65px !important;
    border-radius: 12px !important;
    border: 2px solid #e1e8ed !important;
    background-color: #ffffff !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* パーツ3の郵便番号入力フィールドも同じ幅に揃える */
#part3 .form-group input[name="destination-postal"] {
    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    padding: 1.3rem 1.5rem !important;
    font-size: 1.1rem !important;
    height: 65px !important;
    min-height: 65px !important;
    border-radius: 12px !important;
    border: 2px solid #e1e8ed !important;
    background-color: #ffffff !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* パーツ3の郵便番号入力フィールドをより強力に適用 */
#part3 input[name="destination-postal"] {
    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    padding: 1.3rem 1.5rem !important;
    font-size: 1.1rem !important;
    height: 65px !important;
    min-height: 65px !important;
    border-radius: 12px !important;
    border: 2px solid #e1e8ed !important;
    background-color: #ffffff !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* パーツ3の郵便番号ボタンを小さく調整 */
#part3 .postal-btn {
    height: 50px !important;
    min-height: 50px !important;
    padding: 0.8rem 1.2rem !important;
    font-size: 0.9rem !important;
    border-radius: 8px !important;
    border: 2px solid #e1e8ed !important;
    background-color: #007bff !important;
    color: white !important;
    box-sizing: border-box !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

/* パーツ3の郵便番号ボタンをより強力に適用 */
#part3 button[id="destination-postal-btn"] {
    height: 50px !important;
    min-height: 50px !important;
    padding: 0.8rem 1.2rem !important;
    font-size: 0.9rem !important;
    border-radius: 8px !important;
    border: 2px solid #e1e8ed !important;
    background-color: #007bff !important;
    color: white !important;
    box-sizing: border-box !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

/* パーツ1とパーツ3のフォームグループを統一 */
#part1 .form-group,
#part3 .form-group {
    margin-bottom: 1.2rem;
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
}

/* パーツ1とパーツ3のフォームグループをより強力に適用 */
#part1 .form-section .form-group,
#part3 .form-section .form-group {
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
}

/* パーツ3の詳細情報リンクを右側に配置 */
#part3 .detail-link {
    text-align: right !important;
    display: block !important;
    margin-top: 0.5rem !important;
    margin-bottom: 1rem !important;
    color: #007bff !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
}

#part3 .detail-link:hover {
    text-decoration: underline !important;
    color: #0056b3 !important;
}

/* パーツ3の引っ越し先住所の詳細情報（任意）を右揃えに */
#part3 .section-toggle {
    text-align: right !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    cursor: pointer !important;
    padding: 0.5rem 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    margin-top: 0.5rem !important;
    margin-bottom: 1rem !important;
    width: 100% !important;
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transition: all 0.3s ease !important;
}

#part3 .section-toggle:hover {
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

#part3 .section-toggle h4 {
    text-align: right !important;
    display: block !important;
    margin: 0 !important;
    color: #87CEEB !important;
    text-decoration: underline !important;
    font-size: 0.8rem !important;
    font-weight: normal !important;
    cursor: pointer !important;
    float: right !important;
    clear: both !important;
    transition: all 0.3s ease !important;
}

#part3 .section-toggle:hover h4 {
    color: #87CEEB !important;
    text-decoration: underline !important;
}

/* より強力な右寄せ設定 */
#part3 #destination-details-section + .section-toggle,
#part3 .section-toggle[onclick*="destination-details-section"] {
    text-align: right !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    cursor: pointer !important;
    padding: 0.5rem 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transition: all 0.3s ease !important;
}

#part3 #destination-details-section + .section-toggle h4,
#part3 .section-toggle[onclick*="destination-details-section"] h4 {
    text-align: right !important;
    display: block !important;
    float: right !important;
    clear: both !important;
    margin: 0 !important;
    color: #87CEEB !important;
    text-decoration: underline !important;
    font-size: 0.8rem !important;
    font-weight: normal !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

/* パーツ3の詳細情報トグルのアイコン設定 */
#part3 .section-toggle .toggle-icon {
    font-size: 0.8rem !important;
    color: #87CEEB !important;
    transition: transform 0.2s ease !important;
    margin-left: 5px !important;
}

#part3 .section-toggle.collapsed .toggle-icon {
    transform: rotate(-90deg) !important;
}   

#part3 .section-toggle:not(.collapsed) .toggle-icon {
    transform: rotate(0deg) !important;
}

#part3 .form-section {
    margin-bottom: 2rem;
}

/* パーツ3のアクティブ状態（パーツ1、2と同じ） */
#part3.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* パーツ3の強制表示（デバッグ用） */
#part3[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #ffffff !important;
}

/* スマホ画面でのパーツ3の調整（パーツ1、2と同じ） */
@media (max-width: 768px) {
    #part3 {
        min-height: 300px !important;
    }
    
    /* スマホ画面での現在の住所の都道府県セレクトボックス調整 */
    #part1 .form-group select[name="current-prefecture-from"] {
        font-size: 1rem !important;
        padding: 0.7rem 0.8rem !important;
        max-width: 100% !important;
    }
    
    /* スマホ画面での引越し先の都道府県セレクトボックス調整 */
    #part1 .form-group select[name="current-prefecture"] {
        font-size: 1rem !important;
        padding: 0.7rem 0.8rem !important;
        max-width: 100% !important;
    }
    
    /* スマホ画面でのパーツ3の都道府県と市区町村のセレクトボックス調整 */
    #part3 .form-group select[name="destination-prefecture"],
    #part3 .form-group select[name="destination-city"],
    #part3 .form-group input[name="destination-postal"] {
        max-width: 100% !important;
        padding: 1.2rem 1.4rem !important;
        font-size: 1.1rem !important;
        min-height: 62px !important;
        margin: 0 auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* スマホ版でのdestination-prefecture専用のpadding設定 */
    #part3 select[name="destination-prefecture"] {
        padding: 1.2rem 1.4rem !important;
        min-height: 62px !important;
        box-sizing: border-box !important;
    }
    
    /* より強力なセレクタでdestination-prefectureのpaddingを確実に適用 */
    #part3 .form-group select[name="destination-prefecture"],
    #part3 select[name="destination-prefecture"] {
        padding: 1.2rem 1.4rem !important;
        min-height: 62px !important;
        box-sizing: border-box !important;
        font-size: 1.1rem !important;
    }
    
    /* スマホ版での市区町村と住所入力フォームのサイズ調整 */
    #part3 .form-group input[name="destination-city"],
    #part3 .form-group input[name="destination-address"] {
        font-size: 1rem !important;
        padding: 1rem 1rem !important;
        min-height: 50px !important;
        max-width: 100% !important;
    }
    
    /* スマホ画面での詳細情報（任意）調整 */
    #part3 .section-toggle {
        margin-top: 0.3rem !important;
        margin-bottom: 0.8rem !important;
        padding: 0.3rem 0 !important;
    }
    
    #part3 .section-toggle h4 {
        font-size: 0.8rem !important;
        color: #87CEEB !important;
        text-decoration: underline !important;
    }
    
    /* モバイル用の荷物の種類と数量、オプションサービス、ダンボールのトグルカードデザイン */
    #part3 .section-toggle[onclick*="items-section"],
    #part3 .section-toggle[onclick*="options-section"],
    #part3 .section-toggle[onclick*="cardboard-section"] {
        padding: 0.5rem 0.8rem !important;
        margin: 0.4rem auto !important;
        margin-bottom: 0.8rem !important;
        max-width: 100% !important;
    }
    
    /* モバイル用のこのトグル専用文字スタイル（より強力なセレクター） */
    #part3 .section-toggle[onclick*="items-section"] h4,
    #part3 .section-toggle[onclick*="options-section"] h4,
    #part3 .section-toggle[onclick*="cardboard-section"] h4,
    #part3 .section-toggle[onclick*="items-section"] h3,
    #part3 .section-toggle[onclick*="options-section"] h3,
    #part3 .section-toggle[onclick*="cardboard-section"] h3 {
        font-size: 1rem !important;
        color: #495057 !important;
        font-weight: 600 !important;
        border-bottom: none !important;
    }
    
    /* モバイル用afterの線を削除 */
    #part3 .section-toggle[onclick*="items-section"] h4::after,
    #part3 .section-toggle[onclick*="options-section"] h4::after,
    #part3 .section-toggle[onclick*="cardboard-section"] h4::after,
    #part3 .section-toggle[onclick*="items-section"] h3::after,
    #part3 .section-toggle[onclick*="options-section"] h3::after,
    #part3 .section-toggle[onclick*="cardboard-section"] h3::after {
        display: none !important;
        content: none !important;
    }
    
    /* スマホ画面での郵便番号ボタン調整 */
    #part3 .postal-btn {
        height: 45px !important;
        min-height: 45px !important;
        padding: 0.6rem 1rem !important;
        font-size: 0.8rem !important;
    }
    
    /* スマホ画面での詳細情報リンク調整 */
    #part3 .detail-link {
        font-size: 0.8rem !important;
        margin-top: 0.3rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    /* スマホ画面での郵便番号ボタンの調整 */
    .postal-btn {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    
    #part3 .postal-input-container {
        display: flex !important;
        align-items: flex-end !important;
        gap: 0.3rem !important;
        flex-wrap: nowrap !important;
        margin-top: 0.3rem !important;
    }
    
    #part3 .postal-input-container input {
        flex: 1 !important;
        margin-bottom: 0 !important;
        margin-right: 0 !important;
    }
    
    #part3 .postal-input-container .postal-btn {
        flex-shrink: 0 !important;
        margin-left: 0 !important;
    }
}

/* パーツ4のスライダー位置 */
#part4.active ~ .form-slider {
    transform: translateX(0%) !important;
    width: 100% !important; /* パーツ4表示時は100%幅 */
}

/* 繝代・繝・縺ｮ蠑ｷ蛻ｶ陦ｨ遉ｺ・・D繧ｻ繝ｬ繧ｯ繧ｿ縺ｧ譛鬮伜━蜈亥ｺｦ・・*/

/* 髱槭い繧ｯ繝・ぅ繝悶↑繝代・繝・・蠑ｷ蛻ｶ髱櫁｡ｨ遉ｺ */
.form-part:not(.active) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.form-part h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #2c3e50;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    position: relative;
}

.form-part h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4a90e2, #357abd);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* 任意テキストのスタイル */
.optional-text {
    font-size: 0.8rem;
    color: #666;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px 6px;
    margin-left: 4px;
    display: inline-block;
}

/* 繝代・繝・蜀・・繝輔か繝ｼ繝繧ｰ繝ｫ繝ｼ繝励・髢馴囈繧定ｪｿ謨ｴ */
#part2 .form-group {
    margin-bottom: 1.2rem;
}

#part2 .form-section {
    margin-bottom: 2rem;
}

/* 期間選択の説明文を左揃えにする */
.period-help-text {
    text-align: left !important;
    display: block;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: normal;
    font-size: 0.9rem;
    color: #666;
    text-align: left;
}

/* ステップ番号アイコンのスタイル */
.step-number {
    display: inline-block;
    width: 1.3rem;
    height: 1.3rem;
    background-color: #2c5aa0;
    color: white;
    border-radius: 6px;
    text-align: center;
    line-height: 1.2rem;
    font-size: 1rem;
    font-weight: bold;
    margin-right: 12px;
    vertical-align: baseline;
    margin-top: 0.1rem;
}

/* ハイライト部分を大きくしてオレンジ色に */
.highlight-orange {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c5aa0;
}

/* index.html専用のhighlight-orangeスタイル */
#part1 .highlight-orange {
    font-size: 1.2rem !important;
    color: #ff6b35 !important;
}

/* part3.htmlの市区町村入力フォームのサイズを調整 */
#part3 .form-group input[name="destination-city"],
#part3 .form-group input[name="destination-address"] {
    font-size: 1.1rem !important;
    padding: 1.2rem 1rem !important;
    min-height: 55px !important;
    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto !important;
}

/* 入力フォームでの画面拡大を防ぐ */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
    font-size: 16px !important;
}

/* 荷物情報トグルのスタイル調整 - 詳細情報トグルと同じデザインに */
#part3 .section-toggle[onclick*="optional-items-section"] {
    text-align: right !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    cursor: pointer !important;
    padding: 0.5rem 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    margin-top: 0.5rem !important;
}

#part3 .section-toggle[onclick*="optional-items-section"]:hover {
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

#part3 .section-toggle[onclick*="optional-items-section"] h4 {
    text-align: right !important;
    display: block !important;
    margin: 0 !important;
    color: #87CEEB !important;
    text-decoration: underline !important;
    font-size: 0.8rem !important;
    font-weight: normal !important;
    cursor: pointer !important;
    float: right !important;
    clear: both !important;
}

#part3 .section-toggle[onclick*="optional-items-section"]:hover h4 {
    color: #87CEEB !important;
    text-decoration: underline !important;
}

#part3 .section-toggle[onclick*="optional-items-section"] .toggle-icon {
    font-size: 0.8rem !important;
    color: #87CEEB !important;
    transition: transform 0.2s ease !important;
    margin-left: 5px !important;
}

#part3 .section-toggle[onclick*="optional-items-section"].collapsed .toggle-icon {
    transform: rotate(-90deg) !important;
}

#part3 .section-toggle[onclick*="optional-items-section"]:not(.collapsed) .toggle-icon {
    transform: rotate(0deg) !important;
}

/* スマホでの入力フォーム拡大防止 */
@media screen and (max-width: 768px) {
    input[type="text"], input[type="email"], input[type="tel"], textarea, select {
        font-size: 16px !important;
        transform: scale(1) !important;
    }
}

/* 引っ越し希望日のタイトルをグレーに - 削除（新しいスタイルと競合するため） */

/* 大きなセレクトボックス */
.large-select {
    font-size: 1.2rem !important;
    padding: 1rem 1rem !important;
    height: auto !important;
    min-height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
}

/* 選択してくださいオプションをグレーに */
.large-select option[value=""] {
    color: #999 !important;
    font-style: italic;
}

.required {
    color: #ffffff;
    font-weight: bold;
    font-size: 0.7rem;
    margin-left: 0.5rem;
    padding: 0.2rem 0.5rem;
    background-color: #ff6b35;
    border-radius: 12px;
    display: inline-block;
}

.optional {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: Arial, sans-serif;
    transition: none;
    background: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: #fff;
}

/* 入力済みフィールドのスタイル */
.form-group input:not([value=""]):not(:focus),
.form-group select:not([value=""]):not(:focus),
.form-group textarea:not([value=""]):not(:focus) {
    background: #fff;
}

/* 選択されたselectのオプションスタイル */
.form-group select:focus option:checked {
    background-color: #f0f0f0;
    color: #333;
}

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

/* パーツ1の都道府県と人数選択フィールドを小さくする（郵便番号は除く） - 削除（統一スタイルに統合） */

/* 人数選択フォーム専用の強力なセレクター（全画面サイズ対応） */
select[name="move-people-count"],
select[name="move-people-count-2"] {
    padding: 1.4rem 1.6rem !important;
    font-size: 1.15rem !important;
    min-height: 70px !important;
    height: 70px !important;
    border-radius: 12px !important;
    border: 2px solid #e1e8ed !important;
    background-color: #ffffff !important;
    box-sizing: border-box !important;
    width: 100% !important;
    line-height: 1.2 !important;
}

/* スマホ画面での都道府県と人数選択フィールドのサイズ調整 */
@media (max-width: 768px) {
    /* 都道府県と人数選択フィールドを小さくする */
    .form-group select[name="current-prefecture"],
    .form-group select[name="move-people-count"],
    .form-group select[name="current-prefecture-2"],
    .form-group select[name="move-people-count-2"],
    /* 引っ越し先住所のフィールドも小さくする */
    .form-group select[name="destination-prefecture"],
    .form-group select[name="destination-city"] {
        padding: 1rem 1rem !important; /* さらに小さく */
        font-size: 1.2rem !important; /* フォントサイズを小さく */
        min-height: auto !important; /* 高さを自動に */
        height: auto;
        border-radius: 12px;
        border: 2px solid #e1e8ed;
        margin: 0 auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* 480px以下でのdestination-prefecture専用のpadding設定 */
    #part3 select[name="destination-prefecture"] {
        padding: 1rem 1rem !important;
        box-sizing: border-box !important;
    }
    
    /* より強力なセレクタでdestination-prefectureのpaddingを確実に適用（480px以下） */
    #part3 .form-group select[name="destination-prefecture"],
    #part3 select[name="destination-prefecture"] {
        padding: 1rem 1rem !important;
        box-sizing: border-box !important;
        font-size: 1.2rem !important;
    }
    
    
    /* その他の入力フォーム（郵便番号など）は元のサイズを維持 */
    .form-group input:not([name*="prefecture"]):not([name*="move-people"]),
    .form-group select:not([name*="prefecture"]):not([name*="move-people"]) {
        padding: 1rem 1.2rem; /* 元のサイズを維持 */
        font-size: 1rem; /* 元のフォントサイズを維持 */
    }
    
    /* 人数選択フォーム専用のモバイル用スタイル（より強力なセレクター） */
    #part1 .form-group select[name="move-people-count"],
    #part1 .form-group select[name="move-people-count-2"],
    .estimate-form .form-group select[name="move-people-count"],
    .estimate-form .form-group select[name="move-people-count-2"] {
        padding: 1.3rem 1.5rem !important;
        font-size: 1.15rem !important;
        min-height: 65px !important;
        height: 65px !important;
        border-radius: 12px !important;
        border: 2px solid #e1e8ed !important;
        background-color: #ffffff !important;
        box-sizing: border-box !important;
        line-height: 1.2 !important;
    }
}

/* より小さいスマホ画面での調整 */
@media (max-width: 480px) {
    /* 都道府県と人数選択フィールドを小さくする */
    .form-group select[name="current-prefecture"],
    .form-group select[name="move-people-count"],
    .form-group select[name="current-prefecture-2"],
    .form-group select[name="move-people-count-2"],
    /* 引っ越し先住所のフィールドも小さくする */
    .form-group select[name="destination-prefecture"],
    .form-group select[name="destination-city"] {
        padding: 1rem 1rem !important; /* さらに小さく */
        font-size: 1.2rem !important; /* フォントサイズをさらに小さく */
        min-height: auto !important; /* 高さを自動に */
        margin: 0 auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* 480px以下でのdestination-prefecture専用のpadding設定（2回目） */
    #part3 select[name="destination-prefecture"] {
        padding: 1rem 1rem !important;
        box-sizing: border-box !important;
    }
    
    /* より強力なセレクタでdestination-prefectureのpaddingを確実に適用（480px以下・2回目） */
    #part3 .form-group select[name="destination-prefecture"],
    #part3 select[name="destination-prefecture"] {
        padding: 1rem 1rem !important;
        box-sizing: border-box !important;
        font-size: 1.2rem !important;
    }
    
    
    /* その他の入力フォーム（郵便番号など）は元のサイズを維持 */
    .form-group input:not([name*="prefecture"]):not([name*="move-people"]),
    .form-group select:not([name*="prefecture"]):not([name*="move-people"]) {
        padding: 1rem 1.2rem; /* 元のサイズを維持 */
        font-size: 1rem; /* 元のフォントサイズを維持 */
    }
    
    /* 小さいスマホ用人数選択フォーム専用スタイル（より強力なセレクター） */
    #part1 .form-group select[name="move-people-count"],
    #part1 .form-group select[name="move-people-count-2"],
    .estimate-form .form-group select[name="move-people-count"],
    .estimate-form .form-group select[name="move-people-count-2"] {
        padding: 1.2rem 1.4rem !important;
        font-size: 1.1rem !important;
        min-height: 60px !important;
        height: 60px !important;
        border-radius: 12px !important;
        border: 2px solid #e1e8ed !important;
        background-color: #ffffff !important;
        box-sizing: border-box !important;
        line-height: 1.2 !important;
    }
}

.note {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}



.checkbox-label {
    display: flex;
    align-items: center; /* flex-startからcenterに変更 */
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
    line-height: 1.4;
    text-align: left;
    margin-bottom: 0; /* 提供元テキストにより近づける */
}

.checkbox-label input[type="checkbox"] {
    width: 12px;
    height: 12px;
    margin: 0; /* margin-topを削除 */
    transform: scale(1);
}

.terms-text {
    font-size: 0.75rem;
    line-height: 1.4;
    color: #666;
    margin: 0;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.required-checkbox {
    font-weight: 500;
}

.form-actions {
    display: flex;
    justify-content: center; /* 荳ｭ螟ｮ縺ｫ驟咲ｽｮ */
    align-items: center; /* 邵ｦ譁ｹ蜷代ｂ荳ｭ螟ｮ謠・∴ */
    margin-top: 2rem; /* 荳企Κ縺ｮ繝槭・繧ｸ繝ｳ繧定・蜍戊ｪｿ謨ｴ */
    margin-bottom: 0.2rem; /* ボタン下の余白をさらに縮小 */
    gap: 1rem;
    flex-wrap: wrap; /* 繝懊ち繝ｳ縺悟､壹＞蝣ｴ蜷医・謚倥ｊ霑斐＠ */
    position: relative;
}



/* next-bottom画像のスタイル */
.next-bottom-container {
    text-align: center;
    margin: 2rem 0 2rem 0;
    padding: 0 1rem;
}

.next-bottom-container img {
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* シンプルボタンコンテナのスタイル */
.simple-button-container {
    padding: 0 1rem;
    margin: 2rem 0;
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 吹き出し付きボタンのスタイル */
.btn-c {
    font-size: 2.2rem;
    position: relative;
    padding: 1rem 3rem;
    color: #fff;
    background: #e94919;
    box-shadow: 0 5px 0 #d44114;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin: 0 auto;
    text-align: center;
    gap: 1rem;
    min-height: 60px;
    white-space: nowrap;
}

.btn-c span {
    font-size: 1.5rem;
    position: absolute;
    top: -5rem;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    width: 400px;
    max-width: calc(100vw - 2rem);
    padding: 0.3rem 1.2rem;
    color: #d44114;
    border: 2px solid #d44114;
    border-radius: 100vh;
    background: #fff;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
    text-align: center;
    white-space: nowrap;
}

.btn-c span:before,
.btn-c span:after {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    content: "";
}

.btn-c span:before {
    bottom: -25px;
    border-width: 25px 25px 0 25px;
    border-style: solid;
    border-color: #d44114 transparent transparent transparent;
}

.btn-c span:after {
    bottom: -22px;
    border-width: 25px 25px 0 25px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.btn-c i {
    margin-right: 1rem;
}

.btn-c:hover {
    transform: translate(0, 3px);
    color: #fff;
    background: #eb5b30;
    box-shadow: 0 2px 0 #d44114;
}

.btn-next,
.btn-submit {
    padding: 2rem 2.5rem;
    border: none;
    border-radius: 15px;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-width: 100%;
    width: 100%;
    height: 60px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-next::before,
.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-next:hover::before,
.btn-submit:hover::before {
    left: 100%;
}


.btn-next {
    background: #ff6b35;
    color: white;
}

.btn-next:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.btn-submit {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    width: 100%;
    padding: 1.2rem;
    font-size: 1.5rem;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

/* 驛ｵ萓ｿ逡ｪ蜿ｷ陦ｨ遉ｺ */
.postal-display {
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
}

.postal-code {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

/* 繧ｨ繝ｩ繝ｼ繝｡繝・そ繝ｼ繧ｸ */
.part-error-message {
    background: #fdf2f2;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    color: #e74c3c;
    font-weight: 600;
    text-align: center;
    animation: fadeIn 0.3s ease-in;
}

.part-error-message div:first-child {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.part-error-message div:last-child {
    font-size: 0.9rem;
    line-height: 1.4;
}

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

/* 隕狗ｩ阪ｂ繧顔ｵ先棡萓・*/
.estimate-examples {
    margin-top: 4rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.estimate-examples h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.example-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #4a90e2;
}

.example-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #555;
}

.disclaimer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #856404;
}

/* 繝輔ャ繧ｿ繝ｼ */
.footer {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.8rem;
}

.footer-nav a:hover {
    color: white;
}

.copyright {
    text-align: center;
    color: #95a5a6;
    font-size: 0.9rem;
}

/* 繝ｬ繧ｹ繝昴Φ繧ｷ繝悶ョ繧ｶ繧､繝ｳ */
@media (max-width: 768px) {

    .site-title {
        font-size: 2rem;
    }

    .main-catch {
        font-size: 1.1rem;
    }

    .steps {
        gap: 0.3rem;
    }
    
    .step-row {
        gap: 0.5rem;
    }

    .step {
        padding: 0.5rem 1rem;
        font-size: 1.1rem;
    }

    .form-part {
        padding: 1.5rem;
    }

    .form-part h2 {
        font-size: 1.5rem;
    }



    .form-actions {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .btn-next,
    .btn-submit {
        width: 100%;
        min-width: 100%;
        padding: 1rem 2rem;
        font-size: 1.5rem;
        height: 55px;
    }

    .footer-nav {
        flex-direction: row;
        justify-content: center;
        gap: 0.8rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.8rem;
    }

    .main-catch {
        font-size: 1rem;
    }

    .form-part {
        padding: 1rem;
    }

    .form-part h2 {
        font-size: 1.3rem;
    }

    .estimate-examples {
        padding: 1.5rem;
    }

    .estimate-examples h2 {
        font-size: 1.5rem;
    }
}

/* 繧ｹ繝ｩ繧､繝峨い繝九Γ繝ｼ繧ｷ繝ｧ繝ｳ */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* 繝輔か繝ｼ繝縺ｮ繝舌Μ繝・・繧ｷ繝ｧ繝ｳ繧ｹ繧ｿ繧､繝ｫ */
.form-group input:invalid,
.form-group select:invalid {
    border-color: #e74c3c;
}

.form-group input:valid,
.form-group select:valid {
    border-color: #397ec4;
}

/* 繝懊ち繝ｳ縺ｮ辟｡蜉ｹ迥ｶ諷・*/
.btn-next:disabled,
.btn-submit:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.btn-next:disabled:hover,
.btn-submit:disabled:hover {
    background: #bdc3c7;
}

/* 螳御ｺ・Γ繝・そ繝ｼ繧ｸ */
.completion-message {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: none;
    padding: 3rem;
    text-align: center;
}

.completion-content h2 {
    font-size: 2rem;
    color: #27ae60;
    margin-bottom: 1rem;
}

.completion-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

.completion-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: left;
}

.completion-details h3 {
    color: #333;
    margin-bottom: 1rem;
}

.completion-details ul {
    list-style: none;
    padding: 0;
}

.completion-details li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    color: #555;
}

.completion-details li:last-child {
    border-bottom: none;
}

/* 繝ｩ繧ｸ繧ｪ繝懊ち繝ｳ繧ｰ繝ｫ繝ｼ繝・*/
.radio-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.3rem;
    margin-bottom: 0.8rem;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.3rem 0.8rem;
    background: transparent;
    border: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    line-height: 1;
    flex: 0 0 auto;
    min-width: 120px;
}

.radio-label:hover {
    background-color: #f8f9ff;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    transform: scale(1.2);
    accent-color: #4a90e2;
    vertical-align: middle;
}

.radio-label input[type="radio"]:checked + span {
    color: #4a90e2;
    font-weight: 600;
    font-size: 1.1rem;
}

.radio-label span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* フォームセクションの基本スタイル */
.form-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-section h3 {
    color: white !important;
    font-size: 1.2rem !important;
    margin-bottom: 1.5rem !important;
    padding: 0.8rem 1rem !important;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    border-radius: 6px !important;
    border-bottom: none !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}

/* フォームセクション間の余白調整 */
.form-section + .form-section {
    margin-top: 0;
}

/* パーツ3のform-section間の余白をさらに短く */
#part3 .form-section + .form-section {
    margin-top: 0;
}

/* より強力なセレクターでh3スタイルを確実に適用 */
#part1 .form-section h3,
#part2 .form-section h3,
#part3 .form-section h3,
#part4 .form-section h3,
.form-section h3 {
    color: #333333 !important;
    background: none !important;
    padding: 0.8rem 1rem !important;
    border-radius: 0 !important;
    font-weight: 600 !important;
    margin: 0 0 1.5rem 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
}

/* h3の後に線を表示 */
#part1 .form-section h3::after,
#part2 .form-section h3::after,
#part3 .form-section h3::after,
#part4 .form-section h3::after,
.form-section h3::after {
    content: "" !important;
    display: block !important;
    width: 100% !important;
    height: 2px !important;
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%) !important;
    margin-top: 0.5rem !important;
    border-radius: 1px !important;
}

/* h3のpaddingを確実に制御するための追加ルール */
h3[class*="form-section"],
div[class*="form-section"] h3,
section[class*="form-section"] h3 {
    padding: 0.8rem 1rem !important;
    margin: 0 0 1.5rem 0 !important;
    box-sizing: border-box !important;
    background: none !important;
    color: #333333 !important;
    position: relative !important;
}

/* 追加セレクターのh3の後に線を表示 */
h3[class*="form-section"]::after,
div[class*="form-section"] h3::after,
section[class*="form-section"] h3::after {
    content: "" !important;
    display: block !important;
    width: 100% !important;
    height: 2px !important;
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%) !important;
    margin-top: 0.5rem !important;
    border-radius: 1px !important;
}

/* すべてのh3要素のpaddingをリセットしてから適用 */
h3 {
    padding: 0.8rem 1rem !important;
    margin: 0 0 1.5rem 0 !important;
    box-sizing: border-box !important;
    background: none !important;
    color: #333333 !important;
    position: relative !important;
}

/* すべてのh3の後に線を表示 */
h3::after {
    content: "" !important;
    display: block !important;
    width: 100% !important;
    height: 2px !important;
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%) !important;
    margin-top: 0.5rem !important;
    border-radius: 1px !important;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .form-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .form-section h3 {
        font-size: 1.1rem !important;
        padding: 0.6rem 0.8rem !important;
        color: #333333 !important;
        background: none !important;
        margin: 0 0 1.5rem 0 !important;
        box-sizing: border-box !important;
        position: relative !important;
    }
    
    /* モバイル版のh3の後に線を表示 */
    .form-section h3::after {
        content: "" !important;
        display: block !important;
        width: 100% !important;
        height: 2px !important;
        background: linear-gradient(90deg, #007bff 0%, #0056b3 100%) !important;
        margin-top: 0.5rem !important;
        border-radius: 1px !important;
    }
    
    /* モバイル版のh3のpaddingを確実に制御 */
    h3[class*="form-section"],
    div[class*="form-section"] h3,
    section[class*="form-section"] h3 {
        padding: 0.6rem 0.8rem !important;
        margin: 0 0 1.5rem 0 !important;
        box-sizing: border-box !important;
        background: none !important;
        color: #333333 !important;
        position: relative !important;
    }
    
    /* モバイル版の追加セレクターのh3の後に線を表示 */
    h3[class*="form-section"]::after,
    div[class*="form-section"] h3::after,
    section[class*="form-section"] h3::after {
        content: "" !important;
        display: block !important;
        width: 100% !important;
        height: 2px !important;
        background: linear-gradient(90deg, #007bff 0%, #0056b3 100%) !important;
        margin-top: 0.5rem !important;
        border-radius: 1px !important;
    }
}

/* 譌･莉倬∈謚槭→譛滄俣驕ｸ謚槭・繝ｬ繧､繧｢繧ｦ繝・*/
.date-selection {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
}

.date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.period-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    max-width: 500px;
}

/* パソコンビューで3列横並び */
@media (min-width: 1024px) {
    .period-selection {
        grid-template-columns: 1fr 1fr 1fr;
        width: 100%;
        gap: 0.8rem;
    }
}

.date-selection .form-group,
.period-selection .form-group {
    margin-bottom: 0;
}

/* 譌･莉倬∈謚槭ヵ繧ｩ繝ｼ繝縺ｮ繝輔か繝ｳ繝医し繧､繧ｺ */
.date-selection .form-group label {
    font-size: 1rem;
    font-weight: 600;
}

.date-selection .form-group select {
    font-size: 1rem;
    padding: 0.75rem;
}

/* 繝ｬ繧ｹ繝昴Φ繧ｷ繝門ｯｾ蠢懶ｼ壹Δ繝舌う繝ｫ縺ｧ繧よｨｪ荳ｦ縺ｳ */
@media (max-width: 768px) {
    .date-selection {
        gap: 0.5rem;
        max-width: 100%;
    }
    
    .date-row {
        gap: 0.5rem;
    }
    
    .period-selection {
        gap: 0.3rem;
        max-width: 100%;
    }
    
    .date-selection .form-group {
        margin-bottom: 0;
    }
    
    .date-selection .form-group label {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .date-selection .form-group select {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
}

/* 蟆上＆縺ｪ繧ｹ繝槭・逕ｨ */
@media (max-width: 480px) {
    .date-selection {
        gap: 0.3rem;
    }
    
    .date-row {
        gap: 0.3rem;
    }
    
    .period-selection {
        gap: 0.2rem;
        max-width: 100%;
    }
    
    .date-selection .form-group label {
        font-size: 0.8rem;
        font-weight: 600;
    }
    
    .date-selection .form-group select {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}

/* 繧ｫ繝ｬ繝ｳ繝繝ｼ繧ｳ繝ｳ繝・リ・井ｸ崎ｦ√↓縺ｪ縺｣縺溘◆繧∝炎髯､・・*/
#calendar-container {
    display: none;
}

/* 郵便番号入力コンテナ */
.postal-input-container {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    max-width: 800px;
}

.postal-input-container input {
    flex: 1;
    max-width: 500px;
    min-width: 300px;
    padding: 1rem 1.2rem;
    font-size: 1.1rem;
    height: 60px;
}

/* パーツ2の郵便番号入力フォームとボタンの横並びレイアウト（パーツ3と同じ設定） */
#part2 .postal-input-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    align-items: center !important;
    max-width: 800px !important;
    margin-top: 0.5rem !important;
}

#part2 .postal-input-container input {
    flex: 1 !important;
    max-width: 500px !important;
    min-width: 300px !important;
    padding: 1.3rem 1.5rem !important;
    font-size: 1.2rem !important;
    height: 62px !important;
    min-height: 62px !important;
    margin-bottom: 0 !important;
    margin-right: 0 !important;
}

#part2 .postal-input-container .btn-address-search {
    flex-shrink: 0 !important;
    margin-left: 0 !important;
    background: #397ec4 !important;
    color: white !important;
    border: none !important;
    padding: 1rem 1.5rem !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    height: 62px !important;
    min-height: 62px !important;
}

.btn-address-search {
    background: #397ec4;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    height: 60px;
}

.btn-address-search:hover {
    background: #2c5aa0;
}

.btn-address-search:active {
    background: #1e3d6b;
}

/* 菴乗園陦ｨ遉ｺ縺ｮ繧ｹ繧ｿ繧､繝ｫ */
.address-display {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #ffffff;
    border: 2px solid #ddd;
    border-radius: 8px;
    min-height: 50px;
    margin-top: 0.5rem;
}

.address-display .full-address {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
    word-break: break-all;
}


/* パーツ2のモバイル版スタイル（パーツ3と同じ設定） */
@media (max-width: 768px) {
    #part2 .postal-input-container {
        flex-direction: row !important;
        gap: 0.8rem !important;
        max-width: 100% !important;
    }
    
    #part2 .postal-input-container input {
        flex: 1 !important;
        min-width: 200px !important;
        padding: 1.2rem 1.4rem !important;
        font-size: 1.3rem !important;
        height: 62px !important;
        min-height: 62px !important;
    }
    
    #part2 .postal-input-container .btn-address-search {
        flex-shrink: 0 !important;
        padding: 0.8rem 1.2rem !important;
        font-size: 1rem !important;
        white-space: nowrap !important;
        height: 62px !important;
        min-height: 62px !important;
    }
    
    #part2 .address-display .full-address {
        font-size: 1rem !important;
        font-weight: 600 !important;
    }
}

/* モバイル対応 */
@media (max-width: 768px) {
    .address-display .full-address {
        font-size: 1rem;
        font-weight: 600;
    }
    
    .postal-input-container {
        flex-direction: row;
        gap: 0.6rem;
        max-width: 100%;
    }
    
    .postal-input-container input {
        flex: 1;
        min-width: 180px;
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
        height: 45px;
    }
    
    .btn-address-search {
        flex-shrink: 0;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
        height: 45px;
    }
}

/* パーツ2の小さいスマホ画面対応（パーツ3と同じ設定） */
@media (max-width: 480px) {
    #part2 .postal-input-container {
        flex-direction: row !important;
        gap: 0.4rem !important;
        max-width: 100% !important;
    }
    
    #part2 .postal-input-container input {
        flex: 1 !important;
        min-width: 140px !important;
        padding: 0.6rem 0.7rem !important;
        font-size: 1.3rem !important;
        height: 40px !important;
    }
    
    #part2 .postal-input-container .btn-address-search {
        flex-shrink: 0 !important;
        padding: 0.6rem 0.8rem !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        height: 40px !important;
    }
    
    #part2 .address-display .full-address {
        font-size: 1rem !important;
        font-weight: 600 !important;
    }
}

/* 小さいスマホ画面対応 */
@media (max-width: 480px) {
    .address-display .full-address {
        font-size: 1rem;
        font-weight: 600;
    }
    
    .postal-input-container {
        flex-direction: row;
        gap: 0.4rem;
        max-width: 100%;
    }
    
    .postal-input-container input {
        flex: 1;
        min-width: 140px;
        padding: 0.6rem 0.7rem;
        font-size: 0.85rem;
        height: 40px;
    }
    
    .btn-address-search {
        flex-shrink: 0;
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        white-space: nowrap;
        height: 40px;
    }
}

/* パーツ2の非常に小さい画面対応（パーツ3と同じ設定） */
@media (max-width: 360px) {
    #part2 .postal-input-container {
        flex-direction: row !important;
        gap: 0.3rem !important;
    }
    
    #part2 .postal-input-container input {
        flex: 1 !important;
        min-width: 100px !important;
        padding: 0.5rem 0.6rem !important;
        font-size: 1.3rem !important;
        height: 35px !important;
    }
    
    #part2 .postal-input-container .btn-address-search {
        flex-shrink: 0 !important;
        padding: 0.5rem 0.7rem !important;
        font-size: 0.75rem !important;
        white-space: nowrap !important;
        height: 35px !important;
    }
    
    #part2 .address-display .full-address {
        font-size: 1rem !important;
        font-weight: 600 !important;
    }
}

/* 非常に小さい画面でも横並びを維持 */
@media (max-width: 360px) {
    .address-display .full-address {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .postal-input-container {
        flex-direction: row;
        gap: 0.3rem;
    }
    
    .postal-input-container input {
        flex: 1;
        min-width: 100px;
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
        height: 35px;
    }
    
    .btn-address-search {
        flex-shrink: 0;
        padding: 0.5rem 0.7rem;
        font-size: 0.75rem;
        white-space: nowrap;
        height: 35px;
    }
}

/* 建物タイプ用のラジオボタングループ */
.building-type-group {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 0.5rem;
    justify-content: space-between;
}

.building-type-group .radio-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-weight: 400;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.8rem 1rem;
    background: transparent;
    border: none;
    transition: all 0.2s ease;
    position: relative;
    line-height: 1.2;
    flex: 1;
    min-width: 140px;
    max-width: 200px;
}

.building-type-group .radio-label:hover {
    color: #397ec4;
}

.building-type-group .radio-label input[type="radio"] {
    margin-right: 0.5rem;
    transform: scale(1.1);
}

.building-type-group .radio-label input[type="radio"]:checked + span {
    font-weight: 600;
    color: #397ec4;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .building-type-group {
        flex-direction: column;
        gap: 1rem;
        justify-content: flex-start;
    }
    
    .building-type-group .radio-label {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        min-width: auto;
        max-width: none;
        flex: none;
    }
}

@media (max-width: 480px) {
    .building-type-group {
        gap: 0.8rem;
    }
    
    .building-type-group .radio-label {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* 任意の荷物情報セクション - シンプルな表示 */
.optional-items-section {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 300px;
    max-height: 80vh;
    overflow-y: auto;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    z-index: 1000;
}

/* より強力なセレクターで（任意）荷物情報のトグルスタイルを適用 */
#part3 .optional-items-section .section-toggle,
.optional-items-section .section-toggle {
    text-align: left !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    cursor: pointer !important;
    padding: 0.5rem 0 !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
    border: none !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

#part3 .optional-items-section .section-toggle:hover,
.optional-items-section .section-toggle:hover {
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

#part3 .optional-items-section .section-toggle h3,
.optional-items-section .section-toggle h3 {
    text-align: right !important;
    display: block !important;
    margin: 0 !important;
    color: #87CEEB !important;
    text-decoration: underline !important;
    font-size: 0.8rem !important;
    font-weight: normal !important;
    float: right !important;
    clear: both !important;
    transition: all 0.3s ease !important;
}

#part3 .optional-items-section .section-toggle:hover h3,
.optional-items-section .section-toggle:hover h3 {
    color: #87CEEB !important;
    text-decoration: underline !important;
}

#part3 .optional-items-section .section-toggle .toggle-icon,
.optional-items-section .section-toggle .toggle-icon {
    font-size: 0.8rem !important;
    color: #87CEEB !important;
    transition: transform 0.3s ease !important;
    margin-left: 5px !important;
}

#part3 .optional-items-section .section-toggle.collapsed .toggle-icon,
.optional-items-section .section-toggle.collapsed .toggle-icon {
    transform: rotate(-90deg) !important;
}

#part3 .optional-items-section .section-toggle:not(.collapsed) .toggle-icon,
.optional-items-section .section-toggle:not(.collapsed) .toggle-icon {
    transform: rotate(0deg) !important;
}

.optional-items-section .section-content {
    padding: 0.5rem 0;
    max-height: none;
    overflow-y: visible;
    background: transparent;
    border: none;
}

.optional-items-section .section-content h4,
#optional-items-section h4,
.items-subsection h4,
.options-subsection h4,
.cardboard-subsection h4 {
    text-align: center !important;
}

.optional-items-section .items-subsection,
.optional-items-section .options-subsection,
.optional-items-section .cardboard-subsection {
    margin-top:2rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: none;
}

.optional-items-section .items-subsection:last-child,
.optional-items-section .options-subsection:last-child,
.optional-items-section .cardboard-subsection:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.optional-items-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.optional-items-section p {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.8rem;
}

.optional-items-section .items-table {
    font-size: 0.8rem;
}

.optional-items-section .options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.optional-items-section .option-item {
    font-size: 0.8rem;
    padding: 0.4rem 0;
}

.optional-items-section .cardboard-content {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.optional-items-section .cardboard-image {
    width: 40px;
    height: 40px;
}

.optional-items-section .cardboard-select {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
}

/* より強力なセレクターで既存スタイルを上書き */
#part3 .optional-items-section .section-toggle[onclick*="optional-items-section"] {
    text-align: left !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    cursor: pointer !important;
    padding: 0.5rem 0 !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
    border: none !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

#part3 .optional-items-section .section-toggle[onclick*="optional-items-section"] h3 {
    text-align: right !important;
    display: block !important;
    margin: 0 !important;
    color: #87CEEB !important;
    text-decoration: underline !important;
    font-size: 0.8rem !important;
    font-weight: normal !important;
    float: right !important;
    clear: both !important;
    transition: all 0.3s ease !important;
}

#part3 .optional-items-section .section-toggle[onclick*="optional-items-section"] .toggle-icon {
    font-size: 0.8rem !important;
    color: #87CEEB !important;
    transition: transform 0.3s ease !important;
    margin-left: 5px !important;
}

#part3 .optional-items-section .section-toggle[onclick*="optional-items-section"].collapsed .toggle-icon {
    transform: rotate(-90deg) !important;
}

#part3 .optional-items-section .section-toggle[onclick*="optional-items-section"]:not(.collapsed) .toggle-icon {
    transform: rotate(0deg) !important;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .optional-items-section {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        max-height: none;
        margin-top: 1rem;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    
    #part3 .optional-items-section .section-toggle[onclick*="optional-items-section"],
    .optional-items-section .section-toggle {
        margin-top: 0.3rem !important;
        margin-bottom: 0.8rem !important;
        padding: 0.3rem 0 !important;
    }
    
    #part3 .optional-items-section .section-toggle[onclick*="optional-items-section"] h3,
    .optional-items-section .section-toggle h3 {
        font-size: 0.8rem !important;
        color: #87CEEB !important;
        text-decoration: underline !important;
    }
}

/* フォーム行のスタイル */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.form-row .form-group {
    flex: 1;
    width: calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
}

/* 住所と建物名入力フィールドの高さ調整 */
input[name="destination-address"],
input[name="destination-building-name"] {
    height: 60px !important;
    padding: 15px 20px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-row .form-group {
        width: 100%;
        max-width: 100%;
    }
    
    input[name="destination-address"],
    input[name="destination-building-name"] {
        height: 55px !important;
        padding: 12px 16px !important;
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    input[name="destination-address"],
    input[name="destination-building-name"] {
        height: 50px !important;
        padding: 10px 14px !important;
        font-size: 14px !important;
    }
}

/* チェックボックスのサイズ調整（PCビュー） */
@media (min-width: 769px) {
    input[type="checkbox"] {
        width: 20px !important;
        height: 20px !important;
        margin-right: 10px !important;
        transform: scale(1.2) !important;
    }
    
    /* チェックボックスラベルのスタイル */
    label:has(input[type="checkbox"]) {
        display: flex !important;
        align-items: center !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
        cursor: pointer !important;
    }
    
    /* キャンペーン情報のチェックボックス専用スタイル */
    input[type="checkbox"][name*="campaign"],
    input[type="checkbox"][name*="newsletter"],
    input[type="checkbox"][name*="marketing"],
    input[type="checkbox"]:not([name*="required"]) {
        width: 22px !important;
        height: 22px !important;
        transform: scale(1.3) !important;
        margin-right: 12px !important;
    }
    
    /* キャンペーン情報のラベルスタイル */
    label:has(input[type="checkbox"][name*="campaign"]),
    label:has(input[type="checkbox"][name*="newsletter"]),
    label:has(input[type="checkbox"][name*="marketing"]) {
        font-size: 15px !important;
        line-height: 1.5 !important;
        padding: 8px 0 !important;
    }
}

/* モバイル用チェックボックスサイズ */
@media (max-width: 768px) {
    input[type="checkbox"] {
        width: 16px !important;
        height: 16px !important;
        margin-right: 6px !important;
        transform: scale(1.0) !important;
    }
    
    /* キャンペーン情報のチェックボックス専用スタイル（モバイル） */
    input[type="checkbox"][name*="campaign"],
    input[type="checkbox"][name*="newsletter"],
    input[type="checkbox"][name*="marketing"],
    input[type="checkbox"]:not([name*="required"]) {
        width: 18px !important;
        height: 18px !important;
        transform: scale(1.1) !important;
        margin-right: 8px !important;
    }
}

@media (max-width: 480px) {
    input[type="checkbox"] {
        width: 14px !important;
        height: 14px !important;
        margin-right: 5px !important;
        transform: scale(0.9) !important;
    }
    
    /* 小さいモバイル用のキャンペーンチェックボックス */
    input[type="checkbox"][name*="campaign"],
    input[type="checkbox"][name*="newsletter"],
    input[type="checkbox"][name*="marketing"],
    input[type="checkbox"]:not([name*="required"]) {
        width: 16px !important;
        height: 16px !important;
        transform: scale(1.0) !important;
        margin-right: 6px !important;
    }
}

/* インターネット回線・電気セクションのタイトルスタイル */
.internet-electricity-title {
    color: #666666 !important;
    font-size: 0.9rem !important;
    text-align: left !important;
    display: block !important;
    width: 100% !important;
    justify-content: flex-start !important;
    text-decoration: none !important;
}

.section-toggle.collapsed .internet-electricity-title {
    color: #666666 !important;
    text-align: left !important;
    text-decoration: none !important;
}

/* インターネット回線・電気セクションのトグルボタンスタイル */
.section-toggle[onclick*="internet-electricity-section"] {
    text-align: left !important;
    justify-content: flex-start !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

/* より強力な左寄せとグレー色の設定 */
.section-toggle.collapsed[onclick*="internet-electricity-section"] {
    text-align: left !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
}

.section-toggle.collapsed[onclick*="internet-electricity-section"] .internet-electricity-title {
    color: #666666 !important;
    text-align: left !important;
    text-decoration: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* インラインスタイルを上書きするためのより強力なセレクタ */
div.section-toggle.collapsed[onclick*="internet-electricity-section"] span.internet-electricity-title {
    color: #666666 !important;
    text-align: left !important;
    text-decoration: none !important;
    display: block !important;
    width: 100% !important;
    justify-content: flex-start !important;
}

/* 最も強力なセレクタでインラインスタイルを確実に上書き */
div.section-toggle.collapsed[onclick="toggleSection('internet-electricity-section')"] span.internet-electricity-title[style*="text-align: left"] {
    color: #666666 !important;
    text-align: left !important;
    text-decoration: none !important;
    display: block !important;
    width: 100% !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
    float: left !important;
    clear: left !important;
    position: relative !important;
    left: 0 !important;
    right: auto !important;
}

/* さらに強力なセレクタ - 属性セレクタを使用 */
span.internet-electricity-title[style*="text-align: left"] {
    color: #666666 !important;
    text-align: left !important;
    text-decoration: none !important;
    display: block !important;
    width: 100% !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
    float: left !important;
    clear: left !important;
    position: relative !important;
    left: 0 !important;
    right: auto !important;
}

/* クラス名のみでの強力なセレクタ */
.internet-electricity-title {
    color: #666666 !important;
    text-align: left !important;
    text-decoration: none !important;
    display: block !important;
    width: 100% !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
    float: left !important;
    clear: left !important;
    position: relative !important;
    left: 0 !important;
    right: auto !important;
}

/* セクショントグル全体の左寄せ */
div.section-toggle.collapsed[onclick="toggleSection('internet-electricity-section')"] {
    text-align: left !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    display: flex !important;
    width: 100% !important;
}

/* すべてのインターネット回線・電気関連の要素をリセット */
.internet-electricity-title,
span.internet-electricity-title,
div.section-toggle span.internet-electricity-title,
div.section-toggle.collapsed span.internet-electricity-title {
    color: #666666 !important;
    text-align: left !important;
    text-decoration: none !important;
    display: block !important;
    width: 100% !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
    float: left !important;
    clear: left !important;
}
.btn-estimate {
    background: linear-gradient(135deg, #ff6b35, #f7931e) !important;
    color: white !important;
    border: none !important;
    font-weight: bold !important;
    font-size: 1.2rem !important;
    padding: 1rem 2rem !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3) !important;
    transition: all 0.3s ease !important;
}

.btn-estimate:hover {
    background: linear-gradient(135deg, #e55a2b, #e0851a) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4) !important;
}

.btn-estimate:active {
    transform: translateY(0) !important;
}

/* 繝代・繝・蟆ら畑縺ｮ荳諡ｬ隕狗ｩ阪ｂ繧翫・繧ｿ繝ｳ */
.btn-estimate-start {
    color: #ffffff !important;
    background: linear-gradient(135deg, #ff6b35 0%, #ff6b35 100%) !important;
    border: none !important;
    font-weight: 600 !important;
    font-size: 1.7rem !important;
    padding: 0.8rem 2rem !important;
    border-radius: 50px !important;
    box-shadow: 
        0 4px 15px rgba(208, 230, 255, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    min-width: 300px !important;
    min-height: 60px !important;
    width: 100% !important;
    max-width: 400px !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    margin: 1rem auto !important;
    position: relative !important;
    cursor: pointer !important;
    overflow: hidden !important;
    text-decoration: none !important;
}

/* btn-estimate-start内の無料バッジ */
.btn-estimate-start .free-badge {
    display: inline-block !important;
    background: #fff !important;
    color: #ff6b35 !important;
    font-size: 1.6rem !important;
    font-weight: bold !important;
    padding: 0.3rem 0.8rem !important;
    border-radius: 20px !important;
    margin-right: 0.8rem !important;
    border: 2px solid #ff6b35 !important;
    box-shadow: 0 2px 4px rgba(44, 90, 160, 0.2) !important;
    text-shadow: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    vertical-align: middle !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.btn-estimate-start:hover {
    transform: translateY(-2px) !important;
    background: linear-gradient(135deg, #e55a2b 0%, #e55a2b 100%) !important;
    box-shadow: 
        0 8px 25px rgba(255, 107, 53, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.btn-estimate-start:active {
    transform: translateY(0) !important;
    background: linear-gradient(135deg, #d1491f 0%, #d1491f 100%) !important;
    box-shadow: 
        0 2px 8px rgba(255, 107, 53, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* 繝懊ち繝ｳ蜀・・繧｢繧､繧ｳ繝ｳ繧ｹ繧ｿ繧､繝ｫ */
.btn-icon {
    font-size: 1.6rem !important;
    margin-right: 0.8rem !important;
    display: inline-block !important;
    vertical-align: middle !important;
    animation: phoneRing 2s infinite ease-in-out !important;
}

/* 無料バッジ */
.free-badge {
    display: inline-block !important;
    background: #fff !important;
    color: #ff6b35 !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    padding: 0.3rem 0.8rem !important;
    border-radius: 20px !important;
    margin-right: 0.8rem !important;
    border: 2px solid #ff6b35 !important;
    box-shadow: 0 2px 4px rgba(44, 90, 160, 0.2) !important;
    text-shadow: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    vertical-align: middle !important;
}

/* 繝医Λ繝・け繧｢繧､繧ｳ繝ｳ繧ｹ繧ｿ繧､繝ｫ */
.btn-track-icon {
    width: 40px !important;
    height: 40px !important;
    margin-right: 0.8rem !important;
    display: inline-block !important;
    vertical-align: middle !important;
    filter: brightness(0) invert(1) !important; /* 逋ｽ濶ｲ縺ｫ螟画鋤 */
    flex-shrink: 0;
}

/* 繧ｹ繝槭・繧｢繧､繧ｳ繝ｳ縺ｮ繧｢繝九Γ繝ｼ繧ｷ繝ｧ繝ｳ */
@keyframes phoneRing {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-5deg) scale(1.05); }
    50% { transform: rotate(5deg) scale(1.1); }
    75% { transform: rotate(-3deg) scale(1.05); }
}

/* テスト用：荷物情報トグルセクション */
.test-items-section {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin: 2rem 0;
}

.test-items-section .form-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 表形式の荷物情報デザイン */
.items-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
    font-size: 12px;
    table-layout: fixed;
}

/* パーツ3の荷物情報テーブルの幅調整 */
#part3 .items-table {
    width: 100%;
    max-width: 100%;
    margin: 0.5rem auto;
    margin-left: auto;
    margin-right: auto;
    table-layout: fixed;
}

/* 荷物テーブルの列幅を固定 */
.items-table td:nth-child(1) {
    width: 15%;
}

.items-table td:nth-child(2) {
    width: 15%;
}

.items-table td:nth-child(3) {
    width: 50%;
}

.items-table td:nth-child(4) {
    width: 20%;
}

/* パーツ3の荷物情報セクション全体の中央配置 */
#part3 .form-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#part3 .section-content {
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

/* 大画面（1200px以上）でのテーブル調整 */
@media (min-width: 1200px) {
    .items-table {
        font-size: 11px;
    }
    
    .items-table td {
        padding: 16px 12px;
    }
    
    .items-table img {
        height: 50px;
    }
    
    .items-table .item-name {
        font-size: 12px;
    }
    
    .table-quantity-controls {
        height: 40px;
        gap: 8px;
    }
    
    .table-btn-minus,
    .table-btn-plus {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* 中画面（992px-1199px）でのテーブル調整 */
@media (min-width: 992px) and (max-width: 1199px) {
    .items-table {
        font-size: 10px;
    }
    
    .items-table td {
        padding: 14px 10px;
    }
    
    .items-table img {
        height: 45px;
    }
    
    .items-table .item-name {
        font-size: 11px;
    }
    
    .table-quantity-controls {
        height: 36px;
        gap: 7px;
    }
    
    .table-btn-minus,
    .table-btn-plus {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
}

/* 小画面（768px-991px）でのテーブル調整 */
@media (min-width: 768px) and (max-width: 991px) {
    .items-table {
        font-size: 9px;
    }
    
    .items-table td {
        padding: 12px 8px;
    }
    
    .items-table img {
        height: 40px;
    }
    
    .items-table .item-name {
        font-size: 10px;
    }
    
    .table-quantity-controls {
        height: 32px;
        gap: 6px;
    }
    
    .table-btn-minus,
    .table-btn-plus {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* モバイル表示時のテーブル調整 */
@media (max-width: 768px) {
    .items-table {
        width: 100%;
        max-width: 100%;
        margin: 1rem auto;
        font-size: 7px;
        table-layout: fixed;
    }
    
    .items-table td:nth-child(1) {
        width: 15%;
    }
    
    .items-table td:nth-child(2) {
        width: 15%;
    }
    
    .items-table td:nth-child(3) {
        width: 50%;
    }
    
    .items-table td:nth-child(4) {
        width: 20%;
    }
    
    #part3 .items-table {
        max-width: 100%;
        margin: 1rem 0;
        table-layout: fixed;
    }
    
    #part3 .section-content {
        max-width: 100%;
        padding: 0 0.5rem;
        overflow-x: hidden;
    }
    
    .items-table td {
        padding: 8px 3px;
        word-wrap: break-word;
        vertical-align: top;
        min-height: 60px;
    }
    
    .items-table .item-name {
        font-size: clamp(5px, 2vw, 8px);
        line-height: 1.2;
        white-space: normal;
        word-wrap: break-word;
        word-break: break-word;
        max-width: 100%;
        text-align: center;
    }
    
    .items-table img {
        height: 25px;
        width: auto;
    }
    
    .table-quantity-controls {
        height: 24px;
        gap: 2px;
        min-width: 60px;
    }
    
    .table-btn-minus,
    .table-btn-plus {
        width: 20px;
        height: 20px;
        font-size: 10px;
        padding: 0;
    }
}

/* より小さな画面（480px以下）での調整 */
@media (max-width: 480px) {
    .items-table {
        font-size: 6px;
        max-width: 100%;
        table-layout: fixed;
    }
    
    .items-table td:nth-child(1) {
        width: 12%;
    }
    
    .items-table td:nth-child(2) {
        width: 12%;
    }
    
    .items-table td:nth-child(3) {
        width: 56%;
    }
    
    .items-table td:nth-child(4) {
        width: 20%;
    }
    
    #part3 .items-table {
        max-width: 100%;
        margin: 0.5rem 0;
        table-layout: fixed;
    }
    
    #part3 .section-content {
        max-width: 100%;
        padding: 0 0.3rem;
        overflow-x: hidden;
    }
    
    .items-table td {
        padding: 6px 2px;
        word-wrap: break-word;
        vertical-align: top;
        min-height: 50px;
    }
    
    .items-table .item-name {
        font-size: clamp(4px, 1.8vw, 7px);
        line-height: 1.1;
        white-space: normal;
        word-wrap: break-word;
        word-break: break-word;
        max-width: 100%;
        text-align: center;
    }
    
    .items-table img {
        height: 20px;
        width: auto;
    }
    
    .table-quantity-controls {
        height: 20px;
        gap: 1px;
        min-width: 50px;
    }
    
    .table-btn-minus,
    .table-btn-plus {
        width: 18px;
        height: 18px;
        font-size: 8px;
        padding: 0;
    }
}

/* 超小型画面（360px以下）での調整 */
@media (max-width: 360px) {
    /* next-bottom画像の超小型画面用スタイル */
    .next-bottom-container {
        margin: 1rem 0 2rem 0;
        padding: 0 0.8rem;
    }
    
    .next-bottom-container img {
        max-width: 200px;
    }
    
    /* シンプルボタンコンテナの超小型画面用スタイル */
    .simple-button-container {
        padding: 0 0.8rem;
        margin: 2rem 0 1rem 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* 超小型画面用吹き出し付きボタン */
    .btn-c {
        font-size: 1.3rem;
        padding: 0.6rem 1.2rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        min-height: 45px;
        white-space: nowrap;
    }
    
    /* 超小型画面用無料バッジ */
    .free-badge {
        font-size: 0.9rem !important;
        padding: 0.15rem 0.5rem !important;
        margin-right: 0.5rem !important;
    }
    
    .btn-c span {
        font-size: 1rem;
        width: 280px;
        max-width: calc(100vw - 1.6rem);
        left: 50%;
        transform: translateX(-50%);
        padding: 0.2rem 0.8rem;
        top: -4rem;
    }
    
    .btn-next,
    .btn-submit {
        padding: 16px 25px;
        font-size: 0.9rem;
        min-width: 100%;
        width: 100%;
        height: 45px;
    }
    
    /* 360px以下の超小型画面: 見積もりスタートボタンの設定 */
    .btn-estimate-start {
        padding: 0.8rem 1.2rem !important;
        font-size: 1.3rem !important;
        min-width: auto !important;
        min-height: 40px !important;
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 20px !important;
    }
    
    /* 超小型画面用btn-estimate-start内の無料バッジ */
    .btn-estimate-start .free-badge {
        font-size: 1.1rem !important;
        padding: 0.15rem 0.5rem !important;
        margin-right: 0.5rem !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .items-table {
        font-size: 5px;
        table-layout: fixed;
    }
    
    .items-table td:nth-child(1) {
        width: 10%;
    }
    
    .items-table td:nth-child(2) {
        width: 10%;
    }
    
    .items-table td:nth-child(3) {
        width: 60%;
    }
    
    .items-table td:nth-child(4) {
        width: 20%;
    }
    
    .items-table td {
        padding: 5px 1px;
        word-wrap: break-word;
        vertical-align: top;
        min-height: 45px;
    }
    
    .items-table .item-name {
        font-size: clamp(3px, 1.5vw, 6px);
        line-height: 1.1;
        white-space: normal;
        word-wrap: break-word;
        word-break: break-word;
        max-width: 100%;
        text-align: center;
    }
    
    .items-table img {
        height: 18px;
        width: auto;
    }
    
    .table-quantity-controls {
        height: 18px;
        gap: 1px;
        min-width: 45px;
    }
    
    .table-btn-minus,
    .table-btn-plus {
        width: 16px;
        height: 16px;
        font-size: 6px;
        padding: 0;
    }
}

    .items-table td {
        padding: 12px 8px;
        text-align: center;
        border-bottom: 2px solid #dee2e6;
        border-right: 2px solid #dee2e6;
        vertical-align: middle;
    }

.items-table td:last-child {
    border-right: none;
}

.items-table tr:hover {
    background-color: #f8f9fa;
}

.items-table tr:last-child td {
    border-bottom: none;
}

/* カテゴリタイトルのスタイル */
.category-title {
    background-color: #397ec4;
    font-weight: 600;
    color: white;
    text-align: center;
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 0.9rem;
}

/* カテゴリタイトル行のセルはパディングなし */
.items-table td:has(.category-title) {
    padding: 0;
}

/* 表形式の数量コントロール */
.table-quantity-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px; /* カウンターの高さを固定 */
    justify-content: center;
}

/* アイテム画像の高さを統一 */
.items-table img {
    height: 40px; /* 画像の高さを統一 */
    width: auto;
    object-fit: contain;
}

/* アイテム名の文字サイズを小さくして改行を許可 */
.items-table .item-name {
    font-size: clamp(6px, 2.5vw, 10px);
    line-height: 1.3;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    display: block;
    text-align: center;
}

/* 現住所の建物タイププルダウンを大きくする */
select[name="current-building-type"],
select[name="current-building-type-2"] {
    font-size: 16px;
    padding: 12px 16px;
    height: 50px;
    min-height: 50px;
}

.table-btn-minus,
.table-btn-plus {
    width: 32px;
    height: 32px;
    border: 1px solid #6c757d;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: #495057;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.table-btn-minus:hover,
.table-btn-plus:hover {
    background: #f8f9fa;
    border-color: #495057;
}

.table-quantity-count {
    font-size: 16px;
    font-weight: 700;
    color: #495057;
    min-width: 40px;
    text-align: center;
    padding: 4px 8px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

/* 莠倶ｾ狗判蜒上そ繧ｯ繧ｷ繝ｧ繝ｳ */
.examples-section {
    background: #ffffff;
}



.examples-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333333;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.examples-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    border-radius: 2px;
}

.examples-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 800px;
    margin-top: 2rem;
    padding: 0 2rem;
}

.example-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 2rem;
}



.example-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* 繝ｬ繧ｹ繝昴Φ繧ｷ繝門ｯｾ蠢・*/
@media (max-width: 768px) {
    .examples-grid {
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .examples-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    

    
    .example-image {
        max-width: 100%;
    }
}

/* API 繝・・繧ｿ繝昴ャ繝励い繝・・ */
.api-data-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.api-data-popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
}

.popup-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.api-data-popup.show .popup-content {
    transform: scale(1);
}

.popup-header {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #fff;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.popup-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.popup-body {
    padding: 2rem;
    max-height: calc(90vh - 140px);
    overflow-y: auto;
}

.data-display {
    margin-bottom: 2rem;
}

.data-fields {
    display: grid;
    gap: 1rem;
}

.data-field {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

.field-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.field-key {
    font-family: 'Courier New', monospace;
    background: #e9ecef;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #495057;
}

.field-value {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.null-value {
    color: #6c757d;
    font-style: italic;
}

.empty-value {
    color: #6c757d;
    font-style: italic;
}

.bool-true {
    color: #28a745;
    font-weight: bold;
}

.bool-false {
    color: #dc3545;
    font-weight: bold;
}

.number-value {
    color: #007bff;
    font-weight: bold;
}

.string-value {
    color: #28a745;
}

.object-value {
    color: #6f42c1;
}

.url-params-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.url-params-section h4 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.json-display {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.json-display h4 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.json-code {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #495057;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
}

.popup-footer {
    background: #f8f9fa;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 1px solid #e9ecef;
}

.btn-copy {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-close {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* 繝昴ャ繝励い繝・・縺ｮ繝ｬ繧ｹ繝昴Φ繧ｷ繝門ｯｾ蠢・*/
@media (max-width: 768px) {
    .popup-overlay {
        padding: 1rem;
    }
    
    .popup-content {
        max-width: 100%;
        max-height: 95vh;
    }
    
    .popup-header {
        padding: 1rem 1.5rem;
    }
    
    .popup-header h3 {
        font-size: 1.2rem;
    }
    
    .popup-body {
        padding: 1.5rem;
    }
    
    .data-field {
        grid-template-columns: 1fr　;
        gap: 0.5rem;
    }
    
    .field-label {
        font-weight: bold;
        color: #4a90e2;
    }
    
    .popup-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
    }
    
    .json-code {
        font-size: 0.7rem;
        padding: 1rem;
    }
}

/* Q&Aセクション */
.qa-section {
    padding: 80px 0;
    position: relative;
}

.qa-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.qa-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 60px;
    position: relative;
    pointer-events: none; /* クリック効果を無効化 */
    user-select: none; /* テキスト選択を無効化 */
    cursor: default; /* カーソルをデフォルトに */
}

.qa-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    border-radius: 2px;
}

.qa-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.qa-item {
    background: transparent;
    margin-bottom: 0;
    box-shadow: none;
    overflow: visible;
    border: none;
    border-bottom: 1px solid #e0e0e0;
}

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

.qa-question {
    padding: 25px 0 25px 2rem;
    background: transparent;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: none;
    transition: background-color 0.2s ease;
}

.qa-question:hover {
    background: transparent;
}

.qa-number {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.3rem;
    margin-right: 20px;
    min-width: 50px;
}

.qa-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
    line-height: 1.4;
    margin-right: 30px;
}

.qa-toggle {
    font-size: 1.4rem;
    color: #666;
    font-weight: bold;
    transition: transform 0.3s ease;
    min-width: 25px;
    text-align: center;
    flex-shrink: 0;
}

.qa-item.active .qa-toggle {
    transform: rotate(180deg);
}

.qa-answer {
    padding: 0;
    background: transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.qa-item.active .qa-answer {
    max-height: 200px;
    padding: 20px 0 25px 0;
}

.qa-answer p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* 繝懊ち繝ｳ繝ｪ繝ｳ繧ｯ繧ｻ繧ｯ繧ｷ繝ｧ繝ｳ */
.button-link-section {
    background: transparent;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.button-link-container {
    max-width: 800px;
    margin: 0 auto 6rem;
}

.companies-logo {
    max-width: 600px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 25px 40px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 600;
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    width: auto;
}

.btn-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-link:hover::before {
    left: 100%;
}

.btn-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ff5252 0%, #d63031 100%);
}

.btn-link .btn-track-icon {
    width: 32px;
    height: 32px;
    margin-right: 15px;
    filter: brightness(0) invert(1);
}

/* 繝ｬ繧ｹ繝昴Φ繧ｷ繝門ｯｾ蠢・*/
@media (max-width: 767px) {
    /* サイトラッパー - モバイルでは全幅使用 */
    .site-wrapper {
        max-width: 100% !important; /* モバイルでは全幅使用 */
        box-shadow: none !important; /* モバイルでは影を削除 */
    }
    
    /* 蝓ｺ譛ｬ繝ｬ繧､繧｢繧ｦ繝・*/
    .container {
        margin: 0 auto; /* 中央配置を維持 */
    }
    
    /* 繝医ャ繝礼判蜒・*/
    .top-image-container {
        padding: 0;
        margin: 0 auto; /* 中央配置を維持 */
        height: auto;
        min-height: auto !important;
        max-width: 100%; /* モバイルでは全幅使用 */
    }
    
    .top-image {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: none !important;
        min-height: auto !important;
        object-fit: cover !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    /* 譛譁ｰ螳溽ｸｾ陦ｨ遉ｺ繧ｻ繧ｯ繧ｷ繝ｧ繝ｳ */
    .latest-requests-section {
        padding: 30px 0;
    }
    
    .requests-container {
        padding: 20px;
        margin: 0 15px;
    }
    
    .section-title {
        font-size: 1.4rem;
        padding: 15px;
        margin: -20px -20px 20px -20px;
        border-radius: 10px 10px 0 0;
    }
    
    .request-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .request-date {
        flex: 1;
        text-align: left;
    }
    
    .request-info {
        flex: 2;
        text-align: left;
        font-size: 0.8rem; /* 小さいモバイル: 元のサイズに戻す */
        line-height: 1.3;
        min-width: 0;
        white-space: normal; /* 小さいモバイル: 改行を許可 */
        overflow: visible;
        text-overflow: unset;
        display: block; /* 小さいモバイル: ブロック表示で改行を確実に */
    }
    
    .request-price {
        flex: none;
        text-align: right;
        min-width: 70px;
    }
    
    /* 繧ｵ繝ｼ繝薙せ隱ｬ譏弱そ繧ｯ繧ｷ繝ｧ繝ｳ */
    .service-explanation {
        padding: 40px 0 0;
    }
    
    .explanation-title-image {
        max-width: 100%;
    }
    
    .explanation-title-img { 
        border-radius: 8px;
    }
    
    
    .examples-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .example-image {
        width: 100%;
        height: auto;
        max-width: 100%;
    }
    
    /* 蜈ｨ蝗ｽ300遉ｾ繧ｻ繧ｯ繧ｷ繝ｧ繝ｳ */
    .companies-section {
        padding: 10px 0 10px;
    }
    
    .companies-title {
        font-size: 3rem; /* デフォルトサイズ */
        margin-bottom: 30px;
        line-height: 1.2; /* 行間を調整 */
        white-space: normal; /* 改行を許可 */
        font-weight: 600; /* 太字にする */
    }
    
    /* 改行タグを表示 */
    .companies-title .mobile-br {
        display: inline; /* 改行を表示 */
    }
    
    .companies-logo {
        max-width: 100%;
        height: auto;
        width: 100%;
    }
    
    /* 繝輔か繝ｼ繝 */
    .form-before-image {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 10vh;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }
    
    .form-main-title {
        font-size: 1.2rem;
    }
    
    .steps {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .step {
        font-size: 1.1rem;
        padding: 10px 16px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 1rem;
    }
    
    .form-group input,
    .form-group select {
        font-size: 1rem; /* 元のフォントサイズに戻す */
        padding: 1rem 1.2rem; /* 元のパディングに戻す */
    }
    
    .btn-next,
    .btn-submit {
        padding: 15px 25px;
        font-size: 1.5rem;
        max-width: 100%;
        width: 100%;
        min-width: 100%;
        white-space: nowrap !important; /* 改行を防ぐ */
    }
    
    .btn-track-icon {
        width: 20px;
        height: 20px;
    }
    
    /* Q&Aセクション */
    .qa-section {
        padding: 60px 0;
    }
    
    .qa-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .qa-list {
        padding: 0 15px;
    }
    
    .qa-question {
        padding: 22px 0 22px 1.5rem;
    }
    
    .qa-number {
        font-size: 1.2rem;
        margin-right: 15px;
        min-width: 45px;
    }
    
    .qa-text {
        font-size: 1.2rem;
        margin-right: 25px;
    }
    
    .qa-toggle {
        font-size: 1.3rem;
        min-width: 22px;
    }
    
    .qa-answer {
        padding: 0;
    }
    
    .qa-item.active .qa-answer {
        padding: 18px 0 22px 0;
    }
    
    .qa-answer p {
        font-size: 1.1rem;
    }
    
    /* 繝懊ち繝ｳ繝ｪ繝ｳ繧ｯ繧ｻ繧ｯ繧ｷ繝ｧ繝ｳ */
    .button-link-section {
        padding: 60px 0;
    }
    
    .btn-link {
        padding: 20px 30px;
        font-size: 1.2rem;
        max-width: 100%;
        width: auto;
    }
    
    .btn-link .btn-track-icon {
        width: 28px;
        height: 28px;
        margin-right: 12px;
    }
    
    /* 繝輔ャ繧ｿ繝ｼ */
    .footer {
        padding: 15px 0;
    }
    
    .footer-nav {
        flex-direction: row;
        justify-content: center;
        gap: 0.6rem;
        flex-wrap: wrap;
    }
    
    .footer-nav a {
        font-size: 0.75rem;
    }
    
    .copyright {
        font-size: 0.8rem;
        margin-top: 20px;
    }
    
    /* 荳諡ｬ隕狗ｩ阪ｂ繧翫・繧ｿ繝ｳ */
    .btn-estimate-start {
        padding: 2rem 2.5rem !important;
        font-size: 1.3rem !important;
        min-width: auto !important;
        min-height: 60px !important;
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 40px !important;
    }
    
    /* 繝輔か繝ｼ繝髢｢騾｣縺ｮ隱ｿ謨ｴ */
    .form-slider-container {
        height: auto !important;
        min-height: auto !important;
        padding: 1rem 0.5rem 0.5rem 0.5rem !important;
        padding-bottom: 0 !important;
    }
    
    .form-part {
        padding: 0.8rem 1rem 0.3rem 1rem !important;
        margin-bottom: 0 !important;
    }
    
    .form-actions {
        margin-top: 1.5rem !important;
        margin-bottom: 0 !important;
        padding: 0.5rem 0 0.3rem 0 !important;
    }
    

    
    .estimate-form {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* 繧医ｊ蟆上＆縺ｪ繧ｹ繝槭・逕ｨ */
@media (max-width: 480px) {

    
    .requests-container {
        margin: 0 10px;
        padding: 0;
    }
    
    .requests-wrapper {
        padding: 15px;
    }
    
    .section-title {
        font-size: 1.2rem;
        margin: 0;
        padding: 15px 20px;
        border-radius: 15px 15px 0 0;
        white-space: normal; /* 小さいモバイル: 改行を許可 */
    }
    
    .form-main-title {
        font-size: 1rem;
    }
}

/* 非常に小さなスマホ (320px以下) */
@media (max-width: 320px) {
    .form-main-title {
        font-size: 1rem;
    }
    
    .steps {
        flex-direction: column;
        align-items: center;
        gap: 3px;
    }
    
    .step-row {
        display: flex;
        justify-content: center;
        gap: 5px;
        flex-wrap: wrap;
    }
    
    .step {
        width: auto;
        text-align: center;
        margin-bottom: 0;
        font-size: 1.0rem;
        padding: 8px 12px;
    }
    
    .btn-link {
        padding: 18px 25px;
        font-size: 1.1rem;
        max-width: 100%;
        width: auto;
    }
    
    .qa-title {
        font-size: 1.8rem;
    }
    
    .companies-title {
        font-size: 1.8rem; /* モバイル: サイズを大きく */
        line-height: 1.3;
        white-space: normal; /* モバイル: 改行を許可 */
        font-weight: 600; /* 適度な太字 */
    }
    
    /* モバイル: 改行を表示 */
    .companies-title .mobile-br {
        display: inline !important;
    }
}

/* 480px以下のモバイル用設定 */
@media (max-width: 480px) {
    /* next-bottom画像のモバイル用スタイル */
    .next-bottom-container {
        margin: 1.5rem 0 2rem 0;
        padding: 0 1rem;
    }
    
    .next-bottom-container img {
        max-width: 250px;
    }
    
    /* シンプルボタンコンテナのモバイル用スタイル */
    .simple-button-container {
        padding: 0 1rem;
        margin: 2rem 0 1.5rem 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* モバイル用吹き出し付きボタン */
    .btn-c {
        font-size: 1.6rem;
        padding: 0.8rem 1.5rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
        min-height: 50px;
        white-space: nowrap;
    }
    
    /* モバイル用無料バッジ */
    .free-badge {
        font-size: 1rem !important;
        padding: 0.2rem 0.6rem !important;
        margin-right: 0.6rem !important;
    }
    
    .btn-c span {
        font-size: 1.2rem;
        width: 320px;
        max-width: calc(100vw - 2rem);
        left: 50%;
        transform: translateX(-50%);
        padding: 0.25rem 1rem;
        top: -4.5rem;
    }
    
    .btn-next,
    .btn-submit {
        padding: 18px 30px;
        font-size: 1.5rem;
        max-width: 100%;
        width: 100%;
        min-width: 100%;
        height: 50px;
    }
    
    /* 480px以下のモバイル: 見積もりスタートボタンの設定 */
    .btn-estimate-start {
        padding: 1rem 1.5rem !important;
        font-size: 1.3rem !important;
        min-width: auto !important;
        min-height: 45px !important;
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 25px !important;
    }
    
    /* モバイル用btn-estimate-start内の無料バッジ */
    .btn-estimate-start .free-badge {
        font-size: 1rem !important;
        padding: 0.2rem 0.6rem !important;
        margin-right: 0.6rem !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .companies-title {
        font-size: 1.6rem; /* より小さいモバイル: サイズを調整 */
        line-height: 1.3;
        white-space: normal; /* より小さいモバイル: 改行を許可 */
        font-weight: 600; /* 適度な太字 */
    }
    
    /* より小さいモバイル: 改行を表示 */
    .companies-title .mobile-br {
        display: inline !important;
    }
    
    .qa-list {
        padding: 0 12px;
    }
    
    .qa-question {
        padding: 18px 0 18px 1rem;
    }
    
    .qa-number {
        font-size: 1.1rem;
        margin-right: 12px;
        min-width: 40px;
    }
    
    .qa-text {
        font-size: 1.1rem;
        margin-right: 20px;
    }
    
    .qa-toggle {
        font-size: 1.2rem;
        min-width: 20px;
    }
    
    .qa-answer {
        padding: 0;
    }
    
    .qa-item.active .qa-answer {
        padding: 15px 0 18px 0;
    }
    
    .qa-answer p {
        font-size: 1rem;
    }
    
    .banner-text {
        font-size: 1rem;
        letter-spacing: 0.2px;
    }
    
    /* 小さいモバイル: ボタンの改行を防ぐ */
    .btn-next,
    .btn-submit {
        white-space: nowrap !important; /* 改行を防ぐ */
    }
    
    .banner-text strong {
        font-weight: 900;
        font-size: 1.2rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .top-image {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: none !important;
        min-height: auto !important;
        object-fit: cover !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    .top-image-container {
        height: auto;
        min-height: auto !important;
        padding: 0;
        margin: 0;
    }
    
    .form-before-image {
        max-height: 8vh;
    }
    
    /* 荳諡ｬ隕狗ｩ阪ｂ繧翫・繧ｿ繝ｳ */
    .btn-estimate-start {
        padding: 2rem 2rem !important;
        font-size: 1.3rem !important;
        min-width: auto !important;
        min-height: 50px !important;
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 30px !important;
    }
    
    /* 繝輔か繝ｼ繝髢｢騾｣縺ｮ隱ｿ謨ｴ */
    .form-slider-container {
        height: auto !important;
        min-height: auto !important;
        padding: 0.8rem 0.3rem 0.3rem 0.3rem !important;
        padding-bottom: 0 !important;
    }
    
    .form-part {
        padding: 0.5rem 0.8rem 0.2rem 0.8rem !important;
        margin-bottom: 0 !important;
    }
    
    .form-actions {
        margin-top: 1rem !important;
        margin-bottom: 0 !important;
        padding: 0.2rem 0 0.2rem 0 !important;
    }
    

}
    
/* 繧ｫ繝ｬ繝ｳ繝繝ｼ繧ｹ繧ｿ繧､繝ｫ */
.calendar-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.calendar-nav-btn {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.calendar-nav-btn:hover {
    background: #0056b3;
}

.calendar-month-year {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.calendar-grid {
    width: 100%;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 5px;
}

.calendar-weekday {
    text-align: center;
    padding: 8px;
    font-weight: 600;
    color: #666;
    background: #f8f9fa;
    font-size: 14px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.calendar-day {
    height: 40px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #eee;
    background: #fff;
    transition: all 0.3s;
    font-size: 14px;
    position: relative;
    min-height: 40px;
}

.calendar-day:hover {
    background: #f0f8ff;
}

.calendar-day.available {
    background: #e8f5e8;
    color: #2d5a2d;
    font-weight: 600;
}

.calendar-day.available:hover {
    background: #d4edda;
    transform: scale(1.05);
}

.calendar-day.selected {
    background: #007bff;
    color: white;
    font-weight: 600;
}

.calendar-day.selected:hover {
    background: #0056b3;
}

.calendar-day.disabled {
    background: #f8f9fa;
    color: #ccc;
    cursor: not-allowed;
}

.calendar-day.other-month {
    color: #ccc;
    background: #f8f9fa;
}

.calendar-day.today {
    border: 2px solid #ffc107;
}

.calendar-day.today.available {
    border: 2px solid #28a745;
}

/* 繝｢繝舌う繝ｫ逕ｨ繧ｫ繝ｬ繝ｳ繝繝ｼ隱ｿ謨ｴ */
@media (max-width: 768px) {
    .calendar-container {
        padding: 15px;
    }
    
    .calendar-day {
        font-size: 12px;
        height: 35px;
        min-height: 35px;
    }
    
    .calendar-weekday {
        font-size: 12px;
        padding: 6px;
    }
}

/* 重複チェックポップアップのスタイル */
#duplicateCheckPopup .popup-content {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

#duplicateCheckPopup .error-section {
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

#duplicateCheckPopup .error-section h4 {
    color: #c33;
    margin-bottom: 10px;
}

#duplicateCheckPopup .success-section {
    background-color: #efe;
    border: 1px solid #cfc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

#duplicateCheckPopup .success-section h4 {
    color: #3c3;
    margin-bottom: 10px;
}

#duplicateCheckPopup .original-data-section {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

#duplicateCheckPopup .original-data-section h4 {
    color: #495057;
    margin-bottom: 10px;
}

#duplicateCheckPopup .json-code {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
}

/* パーツ3の郵便番号入力フォームとボタンの横並びレイアウト */
#part3 .postal-input-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    align-items: center !important;
    max-width: 800px !important;
    margin-top: 0.5rem !important;
}

#part3 .postal-input-container input {
    flex: 1 !important;
    min-width: 300px !important;
    padding: 1rem 1.2rem !important;
    font-size: 1.1rem !important;
    height: 60px !important;
    margin-bottom: 0 !important;
    margin-right: 0 !important;
}

#part3 .postal-input-container .postal-btn {
    flex-shrink: 0 !important;
    margin-left: 0 !important;
    background: #397ec4 !important;
    color: white !important;
    border: none !important;
    padding: 1rem 1.5rem !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    height: 60px !important;
}

/* パーツ3のモバイル版スタイル */
@media (max-width: 768px) {
    #part3 .postal-input-container {
        flex-direction: row !important;
        gap: 0.8rem !important;
        max-width: 100% !important;
    }
    
    #part3 .postal-input-container input {
        flex: 1 !important;
        min-width: 200px !important;
        padding: 0.8rem 1rem !important;
        font-size: 1rem !important;
        height: 50px !important;
    }
    
    #part3 .postal-input-container .postal-btn {
        flex-shrink: 0 !important;
        padding: 0.8rem 1.2rem !important;
        font-size: 1rem !important;
        white-space: nowrap !important;
        height: 50px !important;
    }
    
    #part3 .address-display .full-address {
        font-size: 1.1rem !important;
        font-weight: 600 !important;
    }
}

@media (max-width: 480px) {
    #part3 .postal-input-container {
        flex-direction: row !important;
        gap: 0.4rem !important;
        max-width: 100% !important;
    }
    
    #part3 .postal-input-container input {
        flex: 1 !important;
        min-width: 140px !important;
        padding: 0.6rem 0.7rem !important;
        font-size: 0.85rem !important;
        height: 40px !important;
    }
    
    #part3 .postal-input-container .postal-btn {
        flex-shrink: 0 !important;
        padding: 0.6rem 0.8rem !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        height: 40px !important;
    }
    
    #part3 .address-display .full-address {
        font-size: 1rem !important;
        font-weight: 600 !important;
    }
}

@media (max-width: 360px) {
    #part3 .postal-input-container {
        flex-direction: row !important;
        gap: 0.3rem !important;
    }
    
    #part3 .postal-input-container input {
        flex: 1 !important;
        min-width: 100px !important;
        padding: 0.5rem 0.6rem !important;
        font-size: 0.8rem !important;
        height: 35px !important;
    }
    
    #part3 .postal-input-container .postal-btn {
        flex-shrink: 0 !important;
        padding: 0.5rem 0.7rem !important;
        font-size: 0.75rem !important;
        white-space: nowrap !important;
        height: 35px !important;
    }
    
    #part3 .address-display .full-address {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
    }
}

/* 郵便番号ボタンのスタイル */
.postal-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 0 !important;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.postal-btn:hover {
    background-color: #0056b3;
}

.postal-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* 荷物セクションのタイトルスタイル */
.form-section h3 {
    font-size: 28px !important;
    font-weight: 900 !important;
    color: #333333 !important;
    text-align: center !important;
    margin-bottom: 15px !important;
    text-shadow: none !important;
    letter-spacing: 2px !important;
    background: none !important;
    padding: 0.8rem 1rem !important;
    border-radius: 0 !important;
    position: relative !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
}

/* 荷物セクションのh3の後に線を表示 */
.form-section h3::after {
    content: "" !important;
    display: block !important;
    width: 100% !important;
    height: 2px !important;
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%) !important;
    margin-top: 0.5rem !important;
    border-radius: 1px !important;
}

/* カレンダースタイル */
.calendar-container {
    background: #fff;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.calendar-nav {
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.calendar-nav:hover {
    background: #357abd;
}

.calendar-nav:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.calendar-month-year {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

/* 3ヶ月表示用のカレンダー */
.calendar-three-months {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.calendar-month {
    background: #f8f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 0.5rem;
}

.calendar-month-title {
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.calendar-month-day-header {
    text-align: center;
    padding: 0.25rem;
    font-weight: 600;
    color: #666;
    background: #e9ecef;
    border-radius: 2px;
    font-size: 0.8rem;
}

.calendar-month-day {
    text-align: center;
    padding: 0.5rem 0.25rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-month-day:hover {
    background: #e3f2fd;
}

.calendar-month-day.available {
    color: #333;
    background: #fff;
    border: 1px solid #e1e8ed;
}

.calendar-month-day.available:hover {
    background: #4a90e2;
    color: white;
}

.calendar-month-day.unavailable {
    color: #ccc;
    background: #f8f9fa;
    cursor: not-allowed;
}

.calendar-month-day.selected {
    background: #4a90e2;
    color: white;
    font-weight: 600;
}

.calendar-month-day.other-month {
    color: #ccc;
    background: #f8f9fa;
}

/* 時間帯選択のスタイル */
.time-slot-selection {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.time-slot-selection label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.time-slot-option {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #fff;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none !important; /* ボックスシャドウを削除 */
}

.time-slot-option:hover {
    border-color: #4a90e2;
    background: #f0f7ff;
    box-shadow: none !important; /* ホバー時もボックスシャドウを削除 */
}

.time-slot-option input[type="radio"] {
    margin-right: 0.5rem;
}

/* パソコンでラジオボタンを大きくする */
@media (min-width: 769px) {
    .time-slot-option input[type="radio"] {
        width: 20px !important;
        height: 20px !important;
        margin-right: 0.75rem !important;
        transform: scale(1.2) !important;
    }
    
    /* フォームのラジオボタンも大きくする */
    .radio-label input[type="radio"] {
        width: 22px !important;
        height: 22px !important;
        transform: scale(1.3) !important;
    }
    
    /* フォームラベルも大きくする */
    .form-group label {
        font-size: 1.2rem !important;
        font-weight: 700 !important;
    }
    
    /* ラジオボタンのラベルテキストも大きくする */
    .radio-label span {
        font-size: 1.2rem !important;
        font-weight: 600 !important;
    }
}

.time-slot-option input[type="radio"]:checked + span {
    color: #4a90e2;
    font-weight: 600;
}

.time-slot-option:has(input[type="radio"]:checked) {
    border-color: #4a90e2;
    background: #e3f2fd;
    box-shadow: none !important; /* 選択時もボックスシャドウを削除 */
}

.selected-date-info {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 6px;
    color: #2e7d32;
    font-weight: 500;
}

.calendar-day-header {
    text-align: center;
    padding: 0.5rem;
    font-weight: 600;
    color: #666;
    background: #f8f9fa;
    border-radius: 4px;
}

/* 土曜日を青、日曜日を赤にする */
.calendar-day-header:nth-child(7) {
    color: #0066cc; /* 土曜日を青 */
}

.calendar-day-header:nth-child(1) {
    color: #cc0000; /* 日曜日を赤 */
}

.calendar-day.saturday {
    color: #0066cc; /* 土曜日を青 */
}

.calendar-day.sunday {
    color: #cc0000; /* 日曜日を赤 */
}

.calendar-day.saturday.available {
    color: #0066cc;
    background: #fff;
    border: 1px solid #e1e8ed;
}

.calendar-day.sunday.available {
    color: #cc0000;
    background: #fff;
    border: 1px solid #e1e8ed;
}

.calendar-day.saturday.available:hover {
    background: #0066cc;
    color: white;
}

.calendar-day.sunday.available:hover {
    background: #cc0000;
    color: white;
}

.calendar-day.saturday.selected {
    background: #007bff;
    color: white;
    font-weight: 600;
}

.calendar-day.sunday.selected {
    background: #007bff !important;
    color: white !important;
    font-weight: 600;
}

.calendar-day.saturday.selected {
    background: #007bff !important;
    color: white !important;
    font-weight: 600;
}

.calendar-day {
    text-align: center;
    padding: 0.75rem 0.5rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day:hover {
    background: #e3f2fd;
}

.calendar-day.available {
    color: #333;
    background: #fff;
    border: 1px solid #e1e8ed;
}

.calendar-day.available:hover {
    background: #4a90e2;
    color: white;
}

.calendar-day.unavailable {
    color: #ccc;
    background: #f8f9fa;
    cursor: not-allowed;
}

.calendar-day.selected {
    background: #4a90e2;
    color: white;
    font-weight: 600;
}

.calendar-day.other-month {
    color: #ccc;
    background: #f8f9fa;
}

.selected-date-display {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 6px;
    color: #2e7d32;
    font-weight: 500;
}

.form-section p {
    font-size: 12px !important;
    color: #636e72 !important;
    text-align: center !important;
    font-weight: 500 !important;
}

/* 荷物グリッドのスタイル - モダンデザイン */
.items-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100% !important;
    max-width: 100% !important;
    margin: 1.5rem auto 0 auto;
    padding: 1rem;
    box-sizing: border-box !important;
}

/* パーツ3内の荷物グリッドの幅調整（削除 - はみ出しの原因） */

/* すべての画面サイズで2列を強制 */
.items-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.8rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 荷物カードの幅を小さくして2列表示を確実にする */
.items-grid .item-card {
    width: 100% !important;
    min-width: 150px !important;
    margin: 0 auto !important;
}

/* 荷物グリッドの強制2列レイアウト - モダンデザイン */
#items-grid, #items-grid-2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    column-gap: 0.8rem !important;
    row-gap: 0.8rem !important;
    grid-auto-flow: row !important;
    padding: 0.8rem !important;
    background: transparent !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 5 !important;
    min-height: 400px !important;
}

/* 全画面サイズ用の荷物カードデザイン - より具体的なセレクター */
#items-grid .item-card,
#items-grid-2 .item-card,
.items-grid .item-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1rem !important;
    border: 2px solid #007bff !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    transition: all 0.3s ease !important;
    min-height: 120px !important;
    max-height: 150px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    overflow: visible !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2) !important;
    transform: scale(1) !important;
    aspect-ratio: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10 !important;
}

/* PCサイズ用の荷物カードデザイン - より具体的なセレクター */
@media (min-width: 769px) {
    #items-grid .item-card,
    #items-grid-2 .item-card {
        display: flex !important;
        flex-direction: column !important;
        padding: 1.2rem !important;
        border: 2px solid #dee2e6 !important;
        border-radius: 8px !important;
        background: #ffffff !important;
        transition: all 0.3s ease !important;
        min-height: 140px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
        overflow: visible !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        transform: scale(1) !important;
        aspect-ratio: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    #items-grid .btn-minus,
    #items-grid .btn-plus,
    #items-grid-2 .btn-minus,
    #items-grid-2 .btn-plus {
        width: 40px !important;
        height: 40px !important;
        border: 2px solid #6c757d !important;
        background: #ffffff !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        color: #495057 !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    #items-grid .item-count,
    #items-grid-2 .item-count {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #495057 !important;
        min-width: 30px !important;
        text-align: center !important;
        padding: 6px 10px !important;
        background: #f8f9fa !important;
        border-radius: 6px !important;
        border: 2px solid #6c757d !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    #items-grid .item-image,
    #items-grid-2 .item-image {
        width: 70px !important;
        height: 70px !important;
        margin-bottom: 1rem !important;
        object-fit: contain !important;
    }
    
    #items-grid .item-name,
    #items-grid-2 .item-name {
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #2d3436 !important;
        line-height: 1.4 !important;
        margin: 0 0 10px 0 !important;
        letter-spacing: 0.3px !important;
        text-align: center !important;
    }
    
    /* PCサイズ用のホバー効果 */
    #items-grid .item-card:hover,
    #items-grid-2 .item-card:hover {
        border-color: #6c757d !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        transform: translateY(-2px) !important;
        background: #f8f9fa !important;
    }
    
    #items-grid .btn-minus:hover,
    #items-grid .btn-plus:hover,
    #items-grid-2 .btn-minus:hover,
    #items-grid-2 .btn-plus:hover {
        background: #f8f9fa !important;
        transform: scale(1.05) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        border-color: #6c757d !important;
        color: #495057 !important;
    }
}

/* パーツ3の高さ制限を解除（削除 - 重複） */

/* 全パーツの高さ制限を解除（削除 - 重複） */

/* パーツ1と2は動的高さ調整を維持 */
#part1 {
    height: auto !important;
    overflow: visible !important;
}

#part2 {
    height: auto !important;
    overflow: visible !important;
}

/* フォームコンテナの高さ制限を解除 */
.form-slider-container, .form-slider {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* パーツ3専用の高さ調整（削除 - 重複） */

/* 荷物グリッドの親要素の高さ調整 */
.form-section:has(.items-grid) {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* ダンボールセクションのスタイル */
.cardboard-section {
    display: flex !important;
    justify-content: center !important;
}

/* ダンボールオプションのスタイル */
.cardboard-option {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1.5rem !important;
    border-radius: 8px !important;
    max-width: 600px !important;
    margin: 0 auto !important;
}

/* ダンボールタイトル */
.cardboard-title {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #495057 !important;
    margin: 0 !important;
    text-align: center !important;
}

/* ダンボールコンテンツ（画像とプルダウンメニュー） */
.cardboard-option .cardboard-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem !important;
    width: 100% !important;
    min-height: 140px !important;
}

/* ダンボール画像コンテナ */
.cardboard-option .cardboard-image-container {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 140px !important;
    height: 140px !important;
}

/* ダンボール画像 */
.cardboard-option .cardboard-image {
    width: 120px !important;
    height: 120px !important;
    object-fit: contain !important;
    border-radius: 4px !important;
}

/* ダンボール選択コンテナ */
.cardboard-option .cardboard-select-container {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-width: 120px !important;
    max-width: 150px !important;
}

.cardboard-option .option-text {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #495057 !important;
    margin-bottom: 0.5rem !important;
}

.cardboard-option .cardboard-select {
    width: 100% !important;
    min-width: 120px !important;
    max-width: 150px !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    border: 2px solid #ced4da !important;
    border-radius: 6px !important;
    background: white !important;
    color: #495057 !important;
    cursor: pointer !important;
    transition: border-color 0.3s ease !important;
}

.cardboard-option .cardboard-select:focus {
    outline: none !important;
    border-color: #007bff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

/* モバイル対応 - ダンボールオプション */
@media (max-width: 768px) {
    .cardboard-option {
        gap: 1rem !important;
        padding: 1rem !important;
        max-width: 100% !important;
    }
    
    .cardboard-content {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    
    .cardboard-image {
        width: 80px !important;
        height: 80px !important;
    }
    
    .cardboard-select-container {
        width: auto !important;
        min-width: 120px !important;
        max-width: 150px !important;
    }
}

.cardboard-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 15 !important;
    width: 100% !important;
    justify-content: space-between !important;
}

.cardboard-label {
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    color: #007bff !important;
    min-width: 80px !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.cardboard-select {
    padding: 8px 12px !important;
    border: 2px solid #007bff !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    background-color: #fff !important;
    color: #007bff !important;
    min-width: 80px !important;
    max-width: 120px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    z-index: 20 !important;
    flex-shrink: 0 !important;
}

.cardboard-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.cardboard-select:hover {
    border-color: #007bff;
}

/* 荷物セクションの高さ制限を解除 */
.form-section {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* 中間サイズ画面（600px-768px）での調整 */
@media (max-width: 768px) and (min-width: 601px) {
    #items-grid, #items-grid-2 {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.8rem !important;
        padding: 0.8rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* タブレットでの荷物カードの調整 */
    #items-grid .item-card,
    #items-grid-2 .item-card {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.8rem !important;
        border: 2px solid #dee2e6 !important;
        border-radius: 8px !important;
        background: #ffffff !important;
        min-height: 120px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* タブレットでの画像サイズ調整 */
    #items-grid .item-image,
    #items-grid-2 .item-image {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* タブレットでのアイテム名サイズ調整 */
    #items-grid .item-name,
    #items-grid-2 .item-name {
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #2d3436 !important;
        line-height: 1.3 !important;
        margin: 0 0 0.8rem 0 !important;
        text-align: center !important;
    }
    
    /* タブレットでのボタンサイズ調整 */
    #items-grid .btn-minus,
    #items-grid .btn-plus,
    #items-grid-2 .btn-minus,
    #items-grid-2 .btn-plus {
        width: 32px !important;
        height: 32px !important;
        border: 2px solid #6c757d !important;
        background: #ffffff !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #6c757d !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }
    
    /* タブレットでのカウント表示サイズ調整 */
    #items-grid .item-count,
    #items-grid-2 .item-count {
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #495057 !important;
        min-width: 28px !important;
        text-align: center !important;
        margin: 0 0.5rem !important;
    }
}

/* レスポンシブデザイン - モバイル対応 */
@media (max-width: 600px) {
    #items-grid, #items-grid-2 {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
        padding: 0.8rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* スマホ画面での荷物カードの調整 */
    #items-grid .item-card,
    #items-grid-2 .item-card {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.8rem !important;
        border: 2px solid #dee2e6 !important;
        border-radius: 8px !important;
        background: #ffffff !important;
        min-height: 70px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* スマホでの画像サイズ調整 */
    #items-grid .item-image,
    #items-grid-2 .item-image {
        width: 50px !important;
        height: 50px !important;
        margin-right: 0.8rem !important;
        flex-shrink: 0 !important;
    }
    
    /* スマホでのアイテム名サイズ調整 */
    #items-grid .item-name,
    #items-grid-2 .item-name {
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #2d3436 !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        flex: 1 !important;
        text-align: left !important;
    }
    
    /* スマホでのボタンサイズ調整 */
    #items-grid .btn-minus,
    #items-grid .btn-plus,
    #items-grid-2 .btn-minus,
    #items-grid-2 .btn-plus {
        width: 30px !important;
        height: 30px !important;
        border: 2px solid #6c757d !important;
        background: #ffffff !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #6c757d !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        flex-shrink: 0 !important;
    }
    
    /* スマホでのカウント表示サイズ調整 */
    #items-grid .item-count,
    #items-grid-2 .item-count {
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #495057 !important;
        min-width: 25px !important;
        text-align: center !important;
        margin: 0 0.5rem !important;
    }
    
    /* スマホでの数量セレクター調整 */
    .quantity-selector {
        display: flex !important;
        align-items: center !important;
        gap: 0.3rem !important;
        flex-shrink: 0 !important;
    }
    
    .options-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
        padding: 15px !important;
    }
    
    .item-card {
        padding: 0.8rem !important;
        min-height: auto !important;
        border: 2px solid #dee2e6 !important;
        border-radius: 8px !important;
        background: #ffffff !important;
    }
    
    .option-item {
        padding: 15px !important;
        min-height: 70px !important;
    }
    
    .item-name {
        font-size: 16px !important;
        font-weight: 800 !important;
        color: #2d3436 !important;
    }
    
    .option-text {
        font-size: 15px !important;
    }
    
    .btn-minus, .btn-plus {
        width: 45px !important;
        height: 45px !important;
        font-size: 20px !important;
        border: 3px solid #ff4757 !important;
        background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%) !important;
    }
    
    .item-count {
        font-size: 20px !important;
        padding: 10px 14px !important;
        border: 3px solid #ff4757 !important;
        background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%) !important;
    }
}

@media (max-width: 480px) {
    /* 小さなスマホ画面では1列に変更 */
    #items-grid, #items-grid-2 {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0.6rem !important;
        padding: 0.6rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .items-grid, .options-grid {
        padding: 0;
    }
    
    .item-card, .option-item {
        padding: 0.6rem !important;
    }
    
    .item-card {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        min-height: 60px !important;
        width: 100% !important;
        max-width: 100% !important;
        border: 2px solid #dee2e6 !important;
        border-radius: 8px !important;
        background: #ffffff !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* 小さなスマホでの画像サイズ調整 */
    #items-grid .item-image,
    #items-grid-2 .item-image {
        width: 40px !important;
        height: 40px !important;
        margin-right: 0.6rem !important;
        flex-shrink: 0 !important;
    }
    
    /* 小さなスマホでのアイテム名サイズ調整 */
    #items-grid .item-name,
    #items-grid-2 .item-name {
        font-size: 11px !important;
        font-weight: 600 !important;
        color: #2d3436 !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        flex: 1 !important;
        text-align: left !important;
    }
    
    /* 小さなスマホでのボタンサイズ調整 */
    #items-grid .btn-minus,
    #items-grid .btn-plus,
    #items-grid-2 .btn-minus,
    #items-grid-2 .btn-plus {
        width: 28px !important;
        height: 28px !important;
        border: 2px solid #6c757d !important;
        background: #ffffff !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #6c757d !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        flex-shrink: 0 !important;
    }
    
    /* 小さなスマホでのカウント表示サイズ調整 */
    #items-grid .item-count,
    #items-grid-2 .item-count {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #495057 !important;
        min-width: 22px !important;
        text-align: center !important;
        margin: 0 0.4rem !important;
    }
    
    /* 小さなスマホでの数量セレクター調整 */
    .quantity-selector {
        display: flex !important;
        align-items: center !important;
        gap: 0.2rem !important;
        flex-shrink: 0 !important;
    }
    
    .item-name, .option-text {
        font-size: 14px;
    }
    
    .cardboard-select {
        font-size: 12px !important;
        padding: 6px 8px !important;
    }
}

/* 名前入力の横並びレイアウト */
.name-inputs {
    display: flex;
    gap: 10px;
}

.name-inputs input {
    flex: 1;
    width: 50%;
}

/* モバイル表示では縦並び */
@media (max-width: 768px) {
    .name-inputs {
        flex-direction: column;
        gap: 10px;
    }
    
    .name-inputs input {
        width: 100%;
    }
}

/* 汎用的なitem-cardスタイルは削除 - PCサイズ用のメディアクエリで管理 */

/* 荷物カードの上部の赤い線を削除 */
.item-card::before {
    display: none !important;
}

.item-card:hover {
    border-color: #6c757d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    background: #f8f9fa;
}

/* ホバー時の赤い線も削除 */
.item-card:hover::before {
    display: none !important;
}

.item-card.selected {
    border-color: #495057;
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

/* 選択時の赤い線も削除 */
.item-card.selected::before {
    display: none !important;
}

.item-info {
    flex: 1 !important;
    margin-bottom: 15px !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}

.item-name {
    font-size: 15px;
    font-weight: 800;
    color: #2d3436;
    line-height: 1.4;
    margin: 0;
    letter-spacing: 0.5px;
}

.item-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-top: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    flex-shrink: 0 !important;
}

/* 全画面サイズ用のボタンスタイル */
#items-grid .btn-minus,
#items-grid .btn-plus,
#items-grid-2 .btn-minus,
#items-grid-2 .btn-plus,
.items-grid .btn-minus,
.items-grid .btn-plus {
    width: 35px !important;
    height: 35px !important;
    border: 2px solid #495057 !important;
    background: transparent !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #495057 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(73, 80, 87, 0.2) !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 20 !important;
}

/* 全画面サイズ用のカウント表示スタイル */
#items-grid .item-count,
#items-grid-2 .item-count,
.items-grid .item-count {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #495057 !important;
    min-width: 30px !important;
    text-align: center !important;
    padding: 6px 10px !important;
    background: #ffffff !important;
    border: 2px solid #495057 !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(73, 80, 87, 0.2) !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: inline-block !important;
    z-index: 15 !important;
}

/* 全画面サイズ用のアイテム名スタイル */
#items-grid .item-name,
#items-grid-2 .item-name,
.items-grid .item-name {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #6b7280 !important;
    line-height: 1.4 !important;
    margin: 0 0 10px 0 !important;
    border: none !important;
    background: transparent !important;
    letter-spacing: 0.3px !important;
    text-align: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    background: #ffffff !important;
    padding: 5px !important;
    border-radius: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 全画面サイズ用のホバー効果 */
#items-grid .item-card:hover,
#items-grid-2 .item-card:hover,
.items-grid .item-card:hover {
    /* ホバー効果を無効化 */
    border-color: #dee2e6 !important;
    box-shadow: none !important;
    transform: none !important;
    background: #ffffff !important;
}

#items-grid .btn-minus:hover,
#items-grid .btn-plus:hover,
#items-grid-2 .btn-minus:hover,
#items-grid-2 .btn-plus:hover,
.items-grid .btn-minus:hover,
.items-grid .btn-plus:hover {
    background: #f8f9fa !important;
    transform: scale(1.1) !important;
    box-shadow: 0 2px 8px rgba(73, 80, 87, 0.3) !important;
    border-color: #343a40 !important;
    color: #343a40 !important;
}

/* 古い汎用的なホバー効果は削除 - 全画面サイズ用のセレクターで管理 */

.btn-minus:active, .btn-plus:active {
    transform: scale(0.95);
}

.btn-minus:disabled {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 古い汎用的なitem-countスタイルは削除 - 全画面サイズ用のセレクターで管理 */

/* セクショントグルのスタイル */
.section-toggle {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    cursor: pointer !important;
    padding: 0.5rem 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    transition: all 0.3s ease !important;
}





/* このトグル専用のアイコンスタイル（より強力なセレクター） */
#part3 .section-toggle[onclick*="items-section"] .toggle-icon,
#part3 .section-toggle[onclick*="options-section"] .toggle-icon,
#part3 .section-toggle[onclick*="cardboard-section"] .toggle-icon,
#part3 .section-toggle[onclick*="items-section"] i,
#part3 .section-toggle[onclick*="options-section"] i,
#part3 .section-toggle[onclick*="cardboard-section"] i {
    font-size: 0.9rem !important;
    transition: transform 0.3s ease !important;
    margin-left: 4px !important;
}

#part3 .section-toggle[onclick*="items-section"]:hover,
#part3 .section-toggle[onclick*="options-section"]:hover,
#part3 .section-toggle[onclick*="cardboard-section"]:hover {
    border-color: #adb5bd !important;
    transform: translateY(-2px) !important;
}

/* afterの線を削除 */
#part3 .section-toggle[onclick*="items-section"] h4::after,
#part3 .section-toggle[onclick*="options-section"] h4::after,
#part3 .section-toggle[onclick*="cardboard-section"] h4::after,
#part3 .section-toggle[onclick*="items-section"] h3::after,
#part3 .section-toggle[onclick*="options-section"] h3::after,
#part3 .section-toggle[onclick*="cardboard-section"] h3::after {
    display: none !important;
    content: none !important;
}

.section-toggle:hover {
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

.section-toggle h3,
.section-toggle h4 {
    margin: 0 !important;
    color: #87CEEB !important;
    font-size: 0.8rem !important;
    font-weight: normal !important;
    text-decoration: underline !important;
}

/* より強力なセレクターで確実に適用 */
div.section-toggle h3,
div.section-toggle h4 {
    color: #87CEEB !important;
    font-size: 0.8rem !important;
    text-decoration: underline !important;
}

.toggle-icon {
    font-size: 0.8rem !important;
    color: #87CEEB !important;
    transition: transform 0.3s ease !important;
}

.section-toggle.collapsed .toggle-icon {
    transform: rotate(-90deg) !important;
}

.section-content {
    display: block !important;
    transition: all 0.3s ease !important;
}

.section-content.collapsed {
    display: none !important;
}

/* オプションサービスのスタイル - モダンデザイン */
.options-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    margin-top: 30px !important;
    padding: 0 10px !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10 !important;
}

.option-item {
    display: flex !important;
    align-items: center !important;
    padding: 20px !important;
    border: none !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    user-select: none !important;
    position: relative !important;
    overflow: visible !important;
    min-height: 80px !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 15 !important;
}

/* オプションアイテムの上線を削除 */
.option-item::before {
    display: none !important;
}

.option-item:hover {
    border-color: transparent;
    background: #f8f9fa;
    box-shadow: none;
    transform: none;
}

/* ホバー時の上線も削除 */
.option-item:hover::before {
    display: none !important;
}

.option-item input[type="checkbox"] {
    margin-right: 16px;
    width: 12px;
    height: 12px;
    cursor: pointer;
    accent-color: #007bff;
    border-radius: 6px;
    transform: scale(1.2);
}

.option-item input[type="checkbox"]:checked + .option-text {
    color: #6b7280;
    font-weight: 700;
}

.option-item:has(input[type="checkbox"]:checked) {
    border-color: transparent;
    background: #f8f9fa;
    box-shadow: none;
    transform: none;
}

/* 選択時の上線も削除 */
.option-item:has(input[type="checkbox"]:checked)::before {
    display: none !important;
}

.option-text {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    transition: all 0.3s ease !important;
    line-height: 1.4 !important;
    visibility: visible !important;
}

/* ダンボールオプションのスタイル */
.cardboard-option {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
}

.cardboard-option .option-text {
    margin-bottom: 5px !important;
}

.cardboard-select {
    width: 100% !important;
    padding: 8px 12px !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    font-size: 14px !important;
    color: #495057 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.cardboard-select:focus {
    border-color: #007bff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1) !important;
}

.cardboard-select:hover {
    border-color: #007bff !important;
    opacity: 1 !important;
    display: block !important;
}

/* オプションサービスタグのスタイル */
.option-tag {
    display: inline-block;
    padding: 4px 8px;
    margin: 2px;
    background-color: #007bff;
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* 提供元情報のスタイル */
.provider-info {
    font-size: 12px;
    color: #666;
    margin-top: 2px; /* インターネット回線の文言により近づける */
    margin-bottom: 0;
    font-style: italic;
}

/* ダンボールのプルダウンスタイル */
.item-select {
    width: 80px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.item-select:hover {
    border-color: #007bff;
}

.item-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* エラー通知のスタイル */
.error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background-color: #dc3545;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-icon {
    font-size: 18px;
}

.notification-message {
    flex: 1;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

/* 相場価格表示のスタイル */
.price-estimate {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 0;
    max-width: 500px;
    width: 90%;
    animation: fadeInScale 0.3s ease-out;
}

.estimate-content {
    padding: 30px;
}

.estimate-content h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 24px;
    text-align: center;
}

.price-range {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.price-item {
    flex: 1;
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.price-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.price-value {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #007bff;
}

.estimate-details {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.estimate-details p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.estimate-close {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.estimate-close:hover {
    background-color: #0056b3;
}

/* アニメーション */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInScale {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* パーツ1の基本設定（モバイル優先） */
#part1 {
    height: 200px !important; /* 基本: 200px */
    min-height: 200px !important;
    max-height: 200px !important;
    transition: none !important; /* アニメーションを完全に無効化 */
    padding-bottom: 0px !important;
    overflow: hidden !important;
    position: relative !important; /* 位置を固定 */
    box-sizing: border-box !important; /* ボックスサイズを固定 */
    transform: none !important; /* 変形を無効化 */
    animation: none !important; /* アニメーションを無効化 */
    will-change: auto !important; /* GPU最適化を無効化 */
}

/* PCビュー専用のパーツ1設定 */
@media (min-width: 769px) {
    #part1 {
        height: 600px !important; /* PC: 600px */
        min-height: 600px !important;
        max-height: 600px !important;
    }
}

/* パーツ1は常に固定高さ（アニメーションなし） - 基本設定 */
#part1.active,
#part1:not(.active) {
    height: 200px !important; /* 基本: 200px */
    min-height: 200px !important;
    max-height: 200px !important;
    transition: none !important;
    position: relative !important; /* 位置を固定 */
    box-sizing: border-box !important; /* ボックスサイズを固定 */
    transform: none !important; /* 変形を無効化 */
    animation: none !important; /* アニメーションを無効化 */
    will-change: auto !important; /* GPU最適化を無効化 */
}

/* PCビュー専用のパーツ1.activeと:not(.active)設定 */
@media (min-width: 769px) {
    #part1.active,
    #part1:not(.active) {
        height: 600px !important; /* PC: 600px */
        min-height: 600px !important;
        max-height: 600px !important;
    }
}

/* パーツ1専用のボタン下余白調整 */
#part1 .form-actions {
    margin-bottom: 1rem !important; /* ボタン下の余白を1remに設定 */
    padding-bottom: 0 !important; /* パディングは削除 */
}

/* パーツ1専用のフォーム下余白調整 */
#part1 .estimate-form {
    margin-bottom: 1rem !important; /* フォーム下の余白を1remに設定 */
}



/* デスクトップ: スクロール時の変動を完全に防ぐ */
#part1 * {
    transition: none !important; /* すべての子要素のアニメーションを無効化 */
    transform: none !important; /* 変形を無効化 */
    animation: none !important; /* アニメーションを無効化 */
    will-change: auto !important; /* GPU最適化を無効化 */
}


/* デスクトップ: フォーム要素の高さを固定 */
#part1 .form-group,
#part1 .form-actions,
#part1 .main {
    transition: none !important;
    transform: none !important;
    animation: none !important;
    will-change: auto !important;
    position: static !important; /* 位置を静的に固定 */
}

/* フォームコンテナの固定 */
.form-slider-container {
    transition: none !important;
    transform: none !important;
    animation: none !important;
    will-change: auto !important;
}

/* モバイル用パーツ1の高さ調整（基本設定で既に500pxに設定済み） */
@media (max-width: 768px) {
    /* 基本設定で既に500pxに設定されているため、追加設定は不要 */
    /* 必要に応じてモバイル専用の調整をここに記述 */
}
    
/* フォームコンテナの基本設定 */
.form-slider-container.part1-active {
    height: auto !important; /* 動的高さに変更 */
    min-height: 450px !important;
    max-height: none !important;
    overflow: visible !important;
}

/* PCビュー専用のフォームコンテナ設定 */
@media (min-width: 769px) {
    .form-slider-container.part1-active {
        height: auto !important; /* 動的高さに変更 */
        min-height: 450px !important;
        max-height: none !important;
    }
}
    
/* estimate-formの基本設定 */
.estimate-form.part1-active {
    height: auto !important; /* 動的高さに変更 */
    min-height: 450px !important;
    max-height: none !important;
    overflow: visible !important;
}

/* PCビュー専用のestimate-form設定 */
@media (min-width: 769px) {
    .estimate-form.part1-active {
        height: auto !important; /* 動的高さに変更 */
        min-height: 450px !important;
        max-height: none !important;
    }
}
    
/* パーツ1表示時のフォーム全体の基本設定 */
.form-slider-container.part1-active {
    height: auto !important; /* 動的高さに変更 */
    min-height: 200px !important;
    max-height: none !important;
    overflow: visible !important;
}

/* PCビュー専用のフォーム全体設定 - パーツ1のみに適用 */
@media (min-width: 769px) {
    .form-slider-container.part1-active {
        height: auto !important; /* 動的高さに変更 */
        min-height: 450px !important;
        max-height: none !important;
    }
}
    
    .estimate-form.part1-active {
        height: auto !important;
        min-height: 450px !important;
        max-height: none !important;
        overflow: visible !important;
    }

/* パーツ2以降用の動的高さ設定 */
.form-slider-container.part2plus-active {
    height: auto !important;
    min-height: 600px !important;
    max-height: none !important;
    overflow-x: hidden !important; /* 横スクロール防止 */
    overflow-y: visible !important; /* 縦スクロールは許可 */
}

.estimate-form.part2plus-active {
    height: auto !important;
    min-height: 600px !important;
    max-height: none !important;
    overflow-x: hidden !important; /* 横スクロール防止 */
    overflow-y: visible !important; /* 縦スクロールは許可 */
}

/* PCビュー専用のパーツ2以降設定 */
@media (min-width: 769px) {
    .form-slider-container.part2plus-active {
        min-height: 700px !important;
    }
    
    .estimate-form.part2plus-active {
        min-height: 700px !important;
    }
}

/* モバイル用のパーツ2以降設定 */
@media (max-width: 768px) {
    .form-slider-container.part2plus-active {
        height: auto !important;
        min-height: 600px !important;
        max-height: none !important;
        overflow-x: hidden !important; /* 横スクロール防止 */
        overflow-y: visible !important; /* 縦スクロールは許可 */
    }
    
    .estimate-form.part2plus-active {
        height: auto !important;
        min-height: 600px !important;
        max-height: none !important;
        overflow-x: hidden !important; /* 横スクロール防止 */
        overflow-y: visible !important; /* 縦スクロールは許可 */
    }
    }
    

    
    /* スクロール時の変動を完全に防ぐ */
    #part1 * {
        transition: none !important; /* すべての子要素のアニメーションを無効化 */
    }
    
    /* フォーム要素の高さを固定 */
    #part1 .form-group,
    #part1 .form-actions,
    #part1 .main {
        transition: none !important;
        transform: none !important;
}


#part2 {
    min-height: 550px; /* パーツ2: 日付選択（動的に調整） */
    max-height: 650px; /* 初期値、JavaScriptで動的に変更される */
    height: auto !important;
    transition: min-height 0.3s ease, max-height 0.3s ease !important;
    padding-bottom: 40px !important;
    overflow-x: hidden !important; /* 横スクロール防止 */
    overflow-y: visible !important; /* 縦スクロールは許可 */
}

/* パーツ3の最後の設定（削除 - 重複） */

#part4 {
    min-height: 400px !important; /* パーツ4: 確認画面 */
    height: auto !important; /* 高さを自動調整 */
    max-height: none !important; /* 最大高さ制限を削除 */
    transition: min-height 0.3s ease !important;
    padding-bottom: 20px !important;
    overflow-x: hidden !important; /* 横スクロール防止 */
    overflow-y: visible !important; /* 縦スクロールは許可 */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 100% !important; /* 画面幅に合わせる */
    max-width: 100% !important; /* 最大幅を画面幅に制限 */
    box-sizing: border-box !important; /* パディングとボーダーを含む */
    margin: 2rem 0 0 0 !important; /* マージンをリセット */
    padding-left: 10px !important; /* 左パディングを追加 */
    padding-right: 10px !important; /* 右パディングを追加 */
}

/* フォームコンテナの動的高さ調整 */
.estimate-form {
    margin-bottom: 0 !important;
    padding-bottom: 10px !important; /* 20pxから10pxに削減 */
    overflow: hidden !important;
    /* パーツ1の時は固定高さ、パーツ2以降は動的調整 */
}

/* パーツ4表示時のフォームコンテナ調整 */
#part4.active ~ .form-slider-container,
.form-slider-container:has(#part4.active) {
    height: auto !important;
    min-height: 600px !important; /* 一括見積もりボタンを含む高さに調整 */
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 10px !important; /* ボタン用の余白を削減 */
    width: 100% !important; /* スライダーコンテナも100%幅 */
}

#part4.active ~ .estimate-form,
.estimate-form:has(#part4.active) {
    height: auto !important;
    min-height: 600px !important; /* 一括見積もりボタンを含む高さに調整 */
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 10px !important; /* ボタン用の余白を削減 */
    width: 100% !important; /* フォームも100%幅 */
}

/* パーツ4表示時のスライダー設定 */
.form-slider-container:has(#part4.active) .form-slider {
    width: 100% !important; /* パーツ4表示時は100%幅 */
    transform: translateX(0%) !important;
}

.form-slider-container {
    margin-bottom: 0 !important;
    padding-bottom: 10px !important; /* 20pxから10pxに削減 */
    overflow: hidden !important;
    /* パーツ1の時は固定高さ、パーツ2以降は動的調整 */
}

/* パーツ1表示時の動的高さ調整 */
.estimate-form.part1-active {
    height: auto !important;
    min-height: 450px !important;
    max-height: none !important;
    transition: none !important;
}

.form-slider-container.part1-active {
    height: auto !important;
    min-height: 450px !important;
    max-height: none !important;
    transition: none !important;
}

/* パーツ2以降表示時の動的調整 */
.estimate-form.part2plus-active {
    transition: min-height 0.3s ease, max-height 0.3s ease !important;
}

.form-slider-container.part2plus-active {
    transition: min-height 0.3s ease, max-height 0.3s ease !important;
}

/* フォーム全体の余白調整 */
.form-container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    overflow-x: hidden !important; /* 横スクロール防止 */
    width: 100% !important;
    max-width: 100vw !important; /* ビューポート幅を超えない */
}

/* 引っ越し一括見積もりフォーム全体の余白調整 */
.moving-estimate-form {
    margin-bottom: 0 !important;
    padding-bottom: 20px !important;
}


/* パーツ4のform-groupの間隔を大きくする */
#part4 .form-group {
    margin-bottom: 2.5rem !important;
}

#part4-2 .form-group {
    margin-bottom: 2.5rem !important;
}

#part4-2 .form-section {
    margin-top: 4rem !important;
}

/* パーツ4の表示を確実にする */
#part4 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important; /* 画面幅に制限 */
    height: auto !important;
    min-height: 400px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    margin: 2rem 0 0 0 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    flex: none !important; /* flex-shrinkを無効化 */
    flex-shrink: 0 !important; /* 縮小を防止 */
}

/* パーツ4がアクティブな時の表示強化 */
#part4.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important; /* 画面幅に制限 */
    height: auto !important;
    min-height: 400px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    flex: none !important; /* flex-shrinkを無効化 */
    flex-shrink: 0 !important; /* 縮小を防止 */
}

/* パーツ2専用の表示設定 */
#part2.form-part {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 1.5rem 10px 2rem !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* パーツ2がアクティブな場合の表示設定 */
#part2.form-part.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1 !important;
}

/* パーツ2ページ専用のフォーム設定 */
body:has(#part2.active) .estimate-form {
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    overflow: visible !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 2rem !important;
}

/* パーツ2ページ専用のフォームコンテナ設定 */
body:has(#part2.active) .form-container {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* パーツ2ページ専用のメイン設定 */
body:has(#part2.active) .main {
    margin-top: 0 !important;
    padding-top: 0 !important;
    min-height: 100vh !important;
    border: none !important; /* borderを削除 */
}

/* パーツ2ページ専用のコンテナ設定 */
body:has(#part2.active) .container {
    margin-top: 0 !important;
    padding-top: 0 !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* パーツ2のフォームアクション（ボタン）設定 */
#part2 .form-actions {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    padding: 1rem 0 !important;
    width: 100% !important;
    position: relative !important;
    z-index: 10 !important;
}

/* パーツ2のボタンスタイル */
#part2 .btn {
    min-width: 120px !important;
    padding: 0.8rem 1.5rem !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}


#part2 .btn-next {
    background-color: #ff6b35 !important;
    color: white !important;
}

#part2 .btn:hover {
    opacity: 0.8 !important;
    transform: translateY(-2px) !important;
}

/* パーツ2のラジオボタンのサイズを小さくする */
#part2 input[type="radio"] {
    width: 16px !important;
    height: 16px !important;
    margin-right: 4px !important;
    transform: scale(0.8) !important;
}

#part2 .radio-label {
    display: flex !important;
    align-items: center !important;
    font-size: 14px !important;
    margin-bottom: 0 !important;
    cursor: pointer !important;
}

#part2 .radio-group {
    display: flex !important;
    flex-direction: row !important;
    gap: 0 !important;
    align-items: center !important;
}

/* パーツ4専用の幅設定（親要素の25%制限を上書き） */
#part4.form-part {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
}

/* パーツ4のフォーム要素の文字サイズ調整 */
#part4 .form-group label,
#part4-2 .form-group label {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
}

/* パーツ4の上部マージン設定 */
#part4,
#part4-2 {
    margin-top: 2.5rem !important;
}

/* パーツ4表示時のステップナビゲーションとパーツの間の余白 */
#part4.active ~ .form-slider-container,
.form-slider-container:has(#part4.active) {
    padding-top: 2rem !important;
}

/* パーツ4表示時のステップナビゲーションの下マージン */
body:has(#part4.active) .steps-container {
    margin-bottom: 2rem !important;
}

/* パーツ4のトグルスタイル */
#part4 .section-toggle {
    text-align: right !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    cursor: pointer !important;
    padding: 0.5rem 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transition: all 0.3s ease !important;
}

#part4 .section-toggle:hover {
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

#part4 .section-toggle .internet-electricity-title {
    text-align: left !important;
    display: block !important;
    margin: 0 !important;
    color: #87CEEB !important;
    text-decoration: underline !important;
    font-size: 1rem !important;
    float: right !important;
    clear: both !important;
    transition: all 0.3s ease !important;
}

#part4 .section-toggle:hover .internet-electricity-title {
    color: #87CEEB !important;
    text-decoration: underline !important;
}

#part4 .section-toggle .toggle-icon {
    font-size: 0.8rem !important;
    color: #87CEEB !important;
    transition: transform 0.3s ease !important;
    margin-left: 5px !important;
}

#part4 .section-toggle.collapsed .toggle-icon {
    transform: rotate(-90deg) !important;
}

#part4 .section-toggle:not(.collapsed) .toggle-icon {
    transform: rotate(0deg) !important;
}

#part4 .section-content {
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

#part4 .section-content.collapsed {
    display: none !important;
}

/* パーツ4のh3タイトル（他のパーツと同じスタイル） */
#part4 h3,
#part4-2 h3 {
    color: #333333 !important;
    font-size: 28px !important; /* 1.2remから1.5remに拡大 */
    margin-bottom: 1.5rem !important;
    padding-bottom: 0.5rem !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}

/* インターネット回線・電気についてのh3タイトル（文字サイズを小さく） */
#part4 .internet-electricity-title,
#part4-2 .internet-electricity-title {
    font-size: 20px !important;
}

#part4 .form-group input,
#part4-2 .form-group input {
    font-size: 18px !important;
    padding: 18px 22px !important;
    height: 55px !important;
}

#part4 .form-group .required,
#part4-2 .form-group .required {
    font-size: 14px !important;
}

/* メルマガとインターネット回線の説明文の文字サイズ調整 */
#part4 .form-group .checkbox-label,
#part4-2 .form-group .checkbox-label {
    font-size: 16px !important;
    line-height: 1.4 !important;
    font-weight: normal !important; /* 太字を解除 */
}

#part4 .form-group .checkbox-description,
#part4-2 .form-group .checkbox-description {
    font-size: 14px !important;
    line-height: 1.3 !important;
    margin-top: 8px !important;
    font-weight: normal !important; /* 太字を解除 */
}

/* パーツ4のレスポンシブ対応 */
@media (max-width: 768px) {
    #part4 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    #part4 .form-group label,
    #part4-2 .form-group label {
        font-size: 1.4rem !important;
    }
    
    #part4 .form-group input,
    #part4-2 .form-group input {
        font-size: 15px !important;
        padding: 14px 16px !important;
        height: 45px !important;
    }
    
    #part4 h3,
    #part4-2 h3 {
        font-size: 28px !important; /* 1.1remから1.3remに拡大 */
        margin-bottom: 1.2rem !important;
    }
    
    #part4 .internet-electricity-title,
    #part4-2 .internet-electricity-title {
        font-size: 18px !important;
    }
    
    #part4 .form-group .checkbox-label,
    #part4-2 .form-group .checkbox-label {
        font-size: 14px !important;
    }
    
    #part4 .form-group .checkbox-description,
    #part4-2 .form-group .checkbox-description {
        font-size: 10px !important;
    }
}

@media (max-width: 480px) {
    #part4 {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    #part4 .form-group label,
    #part4-2 .form-group label {
        font-size: 1.4rem !important;
    }
    
    #part4 .form-group input,
    #part4-2 .form-group input {
        font-size: 14px !important;
        padding: 12px 14px !important;
        height: 40px !important;
    }
    
    #part4 h3,
    #part4-2 h3 {
        font-size: 28px !important; /* 1remから1.2remに拡大 */
        margin-bottom: 1rem !important;
    }
    
    #part4 .internet-electricity-title,
    #part4-2 .internet-electricity-title {
        font-size: 16px !important;
    }
    
    #part4 .form-group .checkbox-label,
    #part4-2 .form-group .checkbox-label {
        font-size: 14px !important;
    }
    
    #part4 .form-group .checkbox-description,
    #part4-2 .form-group .checkbox-description {
        font-size: 9px !important;
    }
}

/* エラーポップアップのスタイル */
.error-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-popup-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
}

.error-popup-header {
    background: #e74c3c;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.error-popup-header h3 {
    margin: 0;
    font-size: 18px;
}

.error-popup-header h3::after {
    display: none !important;
    content: none !important;
}

.error-popup-close {
    display: none !important;
}

.error-popup-body {
    padding: 20px;
}

.error-popup-body p {
    margin: 0 0 8px 0;
    color: #333;
    line-height: 1.5;
}

.error-popup-body p:last-child {
    margin-bottom: 0;
}

.error-popup-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    text-align: right;
}

.error-popup-footer .btn {
    padding: 8px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.error-popup-footer .btn:hover {
    background: #0056b3;
}

/* エラー時の入力フィールドの赤い縁 */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border: 2px solid #e74c3c !important;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.3) !important;
}

.form-group.error label {
    color: #e74c3c !important;
}



/* カレンダーローディング表示のスタイル */
.calendar-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin: 20px 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #6b7280;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loading-text {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 価格表示エリアのスタイル - モダンでシンプル */
.price-display-area {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: #374151;
    text-align: center;
}

.price-display-container {
    max-width: 480px;
    margin: 0 auto;
}

.price-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #111827;
    letter-spacing: -0.025em;
}

.price-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.price-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9fafb;
    padding: 16px 20px;
    border-radius: 6px;
    border: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.price-item:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.price-label {
    font-size: 1rem;
    font-weight: 500;
    flex: 1;
    text-align: left;
    color: #6b7280;
}

.price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #059669;
    margin: 0 8px;
    letter-spacing: -0.025em;
}

.price-unit {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

/* 荷物セクションのタイトルスタイル */
.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin: 1rem 0 1rem 0;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}


/* レスポンシブ対応 */
@media (max-width: 768px) {
    .price-display-area {
        padding: 20px;
        margin: 20px 0;
        border-radius: 6px;
    }
    
    .price-title {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }
    
    .price-item {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 12px 16px;
    }
    
    .price-label {
        text-align: center;
        font-size: 0.875rem;
    }
    
    .price-value {
        font-size: 1.125rem;
    }
    
    .price-unit {
        font-size: 0.75rem;
    }
}

/* パーツ3専用のスタイル */
#part3.form-part {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    padding: 1.5rem 10px 2rem !important;
    height: auto !important;
    min-height: calc(100vh - 200px) !important;
    max-height: none !important;
    overflow: visible !important;
}

#part3.form-part.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1 !important;
}

/* パーツ3のフォーム全体の表示を確実にする */
body:has(#part3.active) .estimate-form {
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    overflow: visible !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 2rem !important;
}

body:has(#part3.active) .form-container {
    height: auto !important;
    min-height: calc(100vh - 200px) !important;
    max-height: none !important;
    overflow: visible !important;
}

body:has(#part3.active) .main {
    margin-top: 0 !important;
    padding-top: 0 !important;
    min-height: 100vh !important;
}

body:has(#part3.active) .container {
    margin-top: 0 !important;
    padding-top: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* パーツ3のボタン表示を確実にする */
#part3 .form-actions {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    padding: 1rem 0 !important;
    width: 100% !important;
    position: relative !important;
    z-index: 10 !important;
}

#part3 .btn {
    min-width: 120px !important;
    padding: 0.8rem 1.5rem !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}


#part3 .btn-next {
    background-color: #ff6b35 !important;
    color: white !important;
}

#part3 .btn:hover {
    opacity: 0.8 !important;
    transform: translateY(-2px) !important;
}

/* パーツ2の希望日入力フォームのスタイル */
#part2 .date-dropdown-container select {
    font-size: 18px !important;
    padding: 15px 20px !important;
    height: 60px !important;
    border: 2px solid #ddd !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#part2 .date-dropdown-container select:focus {
    border-color: #007bff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1) !important;
}

/* 時間帯選択の表形式スタイル */
.form-group.time-selection {
    margin-top: 3rem !important;
}

#part2 .time-selection {
    margin-top: 3rem !important;
}

#part2 .time-selection-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 15px !important;
    background-color: #fff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

#part2 .time-selection-table td {
    padding: 0 !important;
    text-align: left !important;
    border: 1px solid #e0e0e0 !important;
    width: 50% !important;
    vertical-align: middle !important;
    height: 60px !important;
}

/* 時間帯ラジオボタンの表形式スタイル */
#part2 .time-selection-table .radio-label {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    font-size: 16px !important;
    padding: 15px 20px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: 60px !important;
    vertical-align: middle !important;
}

#part2 .time-selection-table .radio-label:hover {
    background-color: #f8f9fa !important;
}

#part2 .time-selection-table .radio-label input[type="radio"] {
    width: 20px !important;
    height: 20px !important;
    margin-right: 12px !important;
    transform: scale(0.8) !important;
}

#part2 .time-selection-table .radio-label input[type="radio"]:checked + span {
    font-weight: bold !important;
    color: #007bff !important;
}

#part2 .time-selection-table .radio-label:has(input[type="radio"]:checked) {
    background-color: #e3f2fd !important;
}

/* 期間選択用のスタイル */
.period-dropdown-container {
    margin-bottom: 1rem;
}

.period-dropdown-container select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 18px !important;
    height: 60px;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.period-dropdown-container select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.period-dropdown-container select:hover {
    border-color: #999;
}

/* PCビューでのページ全体と画像サイズ制限 */
@media screen and (min-width: 768px) {
    .site-wrapper {
        max-width: 800px !important;
        margin: 0 auto !important;
        width: 100% !important;
    }
    
    .top-image-container {
        margin: 0 auto !important;
    }
    
    .top-image {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .container {
        max-width: 100% !important;
    }
    
    /* PC版での文字サイズ調整 */
    .form-group label {
        font-size: 1.2rem !important;
    }
    
    .radio-label {
        font-size: 1.3rem !important;
    }
    
    .step-number {
        font-size: 1.5rem !important;
    }
    
    .highlight-orange {
        font-size: 1.4rem !important;
    }
    
    .required {
        font-size: 0.9rem !important;
    }
    
    .form-group select {
        font-size: 1.1rem !important;
        padding: 0.8rem !important;
    }
    
    .time-selection-table td {
        font-size: 1.1rem !important;
    }
    
    .time-selection-table label {
        font-size: 1.1rem !important;
    }
    
}

@media screen and (min-width: 1024px) {
    .site-wrapper {
        max-width: 700px !important;
        margin: 0 auto !important;
        width: 100% !important;
    }
    
    .top-image-container {
        margin: 0 auto !important;
    }
    
    .top-image {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .container {
        max-width: 100% !important;
    }
    
    /* PC版での文字サイズ調整（1024px以上） */
    .form-group label {
        font-size: 1.3rem !important;
    }
    
    .radio-label {
        font-size: 1.4rem !important;
    }
    
    .step-number {
        font-size: 1.7rem !important;
    }
    
    .highlight-orange {
        font-size: 2.2rem !important;
    }
    
    #part1 .highlight-orange {
        font-size: 2rem !important;
    }
    
    .required {
        font-size: 0.95rem !important;
    }
    
    .form-group select {
        font-size: 1.2rem !important;
        padding: 0.9rem !important;
    }
    
    .time-selection-table td {
        font-size: 1.2rem !important;
    }
    
    .time-selection-table label {
        font-size: 1.2rem !important;
    }
    
}

@media screen and (min-width: 1200px) {
    .site-wrapper {
        max-width: 650px !important;
        margin: 0 auto !important;
        width: 100% !important;
    }
    
    .top-image-container {
        margin: 0 auto !important;
    }
    
    .top-image {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .container {
        max-width: 100% !important;
    }
    
    /* PC版での文字サイズ調整（1200px以上） */
    .form-group label {
        font-size: 1.4rem !important;
    }
    
    .radio-label {
        font-size: 1.5rem !important;
    }
    
    .step-number {
        font-size: 1.5rem !important;
        height:2rem;
        width:2rem;
        line-height: 1.9rem;
    }
    
    .highlight-orange {
        font-size: 2rem !important;
    }
    
    #part1 .highlight-orange {
        font-size: 2rem !important;
    }
    
    #part2 .radio-group {
        margin-top: 1.5rem;
    }

    #part2 .radio-label {
        font-size: 1.3rem !important;
    }

    .required {
        font-size: 1rem !important;
    }
    
    .form-group select {
        font-size: 1.3rem !important;
        padding: 1rem !important;
    }
    
    .time-selection-table td {
        font-size: 1.3rem !important;
    }
    
    .time-selection-table label {
        font-size: 1.3rem !important;
    }

    #part2 .postal-input-container input{
        font-size: 1.3rem !important;
    }
    
    /* PCビューで選択肢を2行に分散配置（1200px以上） */
    .building-type-group {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        grid-template-rows: 1fr 1fr !important;
        gap: 1rem !important;
    }
    
    .building-type-group .radio-label:nth-child(1) {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }
    
    .building-type-group .radio-label:nth-child(2) {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }
    
    .building-type-group .radio-label:nth-child(3) {
        grid-column: 3 !important;
        grid-row: 1 !important;
    }
    
    .building-type-group .radio-label:nth-child(4) {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }
    
    .building-type-group .radio-label:nth-child(5) {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }
    
    .building-type-group .radio-label:nth-child(6) {
        grid-column: 3 !important;
        grid-row: 2 !important;
    }
}

/* 利用規約・プライバシーポリシー・運営者情報ページ */
.terms-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.terms-container h1 {
    color: #2c5aa0;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 1rem;
}

.last-updated {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.terms-section {
    margin-bottom: 2rem;
}

.terms-section h2 {
    color: #2c5aa0;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-left: 4px solid #ff6b35;
    padding-left: 1rem;
}

.terms-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #333;
}

.terms-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.terms-section li {
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: #333;
}

.back-link {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.back-link a {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

.back-link a:hover {
    color: #ff6b35;
    text-decoration: underline;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .terms-container {
        padding: 1rem;
        margin: 1rem;
        max-width: calc(100% - 2rem);
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    }
    
    .terms-container h1 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
        padding-bottom: 0.8rem;
    }
    
    .last-updated {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .terms-section {
        margin-bottom: 1.5rem;
    }
    
    .terms-section h2 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        padding-left: 0.8rem;
        border-left-width: 3px;
    }
    
    .terms-section p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
    }
    
    .terms-section ul {
        margin-left: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .terms-section li {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.4rem;
    }
    
    .back-link {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .back-link a {
        font-size: 1rem;
    }
}

/* より小さい画面（480px以下）での調整 */
@media (max-width: 480px) {
    .terms-container {
        padding: 0.8rem;
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
        border-radius: 4px;
    }
    
    .terms-container h1 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
        padding-bottom: 0.6rem;
    }
    
    .last-updated {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .terms-section {
        margin-bottom: 1rem;
    }
    
    .terms-section h2 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
        padding-left: 0.6rem;
        border-left-width: 2px;
    }
    
    .terms-section p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 0.6rem;
    }
    
    .terms-section ul {
        margin-left: 0.8rem;
        margin-bottom: 0.6rem;
    }
    
    .terms-section li {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 0.3rem;
    }
    
    .back-link {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    
    .back-link a {
        font-size: 0.9rem;
    }
}

/* スマホ版でのdestination-prefectureのpaddingを確実に適用するための最終設定 */
@media (max-width: 768px) {
    #part3 .form-group select[name="destination-prefecture"] {
        padding: 1.2rem 1.4rem !important;
        min-height: 62px !important;
        box-sizing: border-box !important;
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    #part3 .form-group select[name="destination-prefecture"] {
        padding: 1rem 1rem !important;
        box-sizing: border-box !important;
        font-size: 1.2rem !important;
    }
}

/* 下部固定ポップアップ */
.sticky-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    padding: 1rem 1rem 1rem 1.5rem;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.sticky-popup-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    width: 100%;
}

.sticky-popup-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0 0 0 0; /* paddingを削除 */
}

.sticky-popup-message {
    margin: 0;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    width: 100%;
}

.sticky-popup-button {
    width: 100%;
    max-width: none;
    padding: 1rem 2rem;
    background: white;
    color: #ff6b35;
    text-decoration: none;
    text-align: center;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: block;
}

.sticky-popup-button:hover {
    background: #fff5f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.sticky-popup-close {
    position: absolute;
    right: 0;
    top: 0;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 0 0 0 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 10000;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    padding: 0;
    margin: 0; /* marginもリセット */
}

.sticky-popup-close:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.sticky-popup-close:active {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(0.95);
}

/* モバイル対応 */
@media (max-width: 768px) {
    .sticky-popup {
        padding: 0.8rem;
    }
    
    .sticky-popup-text {
        gap: 0.4rem;
        padding: 0 0 0 0; /* paddingを削除 */
    }
    
    .sticky-popup-message {
        font-size: 0.85rem;
        white-space: normal;
        line-height: 1.3;
        width: 100%;
    }
    
    .sticky-popup-button {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        max-width: none;
        width: 100%;
    }
    
    .sticky-popup-close {
        right: 0;
        top: 0;
        width: 32px;
        height: 32px;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 0 0 0 50%;
    }
    
    .sticky-popup-close:active {
        background: rgba(255, 255, 255, 0.7);
        transform: scale(0.95);
    }
}

