/* === Page-specific styles for plan.html below === */
h1 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 2px;
    color: #2c3e50;
    font-size: 28px;
    font-weight: bold;
}
.tax-note-header {
    text-align: center;
    font-size: 14.5px;
    color: #555555;
    margin-bottom: 25px;
}
.price-date {
    text-align: right;
    font-size: 14px;
    color: #6c757d;
    margin-top: 20px;
}
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}
.scroll-text-hint { /* Text hint for scrolling */
    display: none; /* JSで表示制御 */
    text-align: center;
    font-size: 13px;
    color: #555;
    font-weight: bold; /* 太字にする */
}
.scroll-text-hint-top {
     margin-bottom: 10px;
}
/* PCでのマウスオーバー案内テキストのスタイル */
.pc-mouseover-hint {
    display: none; /* スマホでは非表示 */
    text-align: center;
    font-weight: bold;
    color: #007bff; /* 目立つ色 */
    margin-bottom: 10px;
    padding: 8px 10px;
    background-color: #e7f3ff; /* 薄い背景色 */
    border: 1px solid #b8daff; /* 枠線 */
    border-radius: 4px;
}
.scroll-text-hint-bottom {
     margin-top: 10px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}
.pricing-table th,
.pricing-table td {
    border: 1px solid #dee2e6;
    padding: 14px 12px;
    font-size: 15.5px;
    vertical-align: middle;
    transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    font-weight: bold;
}
.pricing-table .annotation-ref {
    font-weight: normal !important;
}
.pricing-table thead th {
    background-color: #f8f9fa;
    color: #34495e;
    text-align: center;
    font-size: 17px;
}
.pricing-table thead th:first-child {
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    z-index: 4;
    background-color: #f8f9fa;
}
.pricing-table tbody th[scope="row"] {
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    background-color: #f8f9fa;
    z-index: 3;
    text-align: left;
    padding-left: 15px;
}
.pricing-table thead th.header-plan {
     z-index: 2;
     background-color: #f8f9fa;
}
.pricing-table thead th.header-item { width: 28%; }
.pricing-table thead th.header-plan { width: 24%; }

.pricing-table tbody th .annotation-ref {
    font-size: 0.8em;
    vertical-align: super;
    margin-left: 0.1em;
}
.pricing-table tbody td {
    text-align: center;
    background-color: #fff;
}
.pricing-table tbody td.mark-cell strong { font-size: 1.1em; }

.charge-details {
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    padding-left: 10px;
}
.price { font-size: 16px; }
.price-unit { font-size: 0.9em; color: #555; }

.pc-view {
    display: none;
    text-align: center;
}
.mobile-view {
    text-align: center;
}

@media (min-width: 769px) {
    .pc-view {
        display: table-cell;
    }
    .mobile-view {
        display: none;
    }
    .prevent-annotation-wrap {
        white-space: nowrap;
    }
    .scroll-text-hint {
        display: none !important;
    }
    .pc-mouseover-hint {
        display: block !important;
    }
}

@keyframes intense-shimmer-and-glow {
    0% {
        background-image: linear-gradient(110deg, var(--bg-color-1) 0%, var(--bg-color-2) 25%, var(--bg-color-3) 50%, var(--bg-color-4) 75%, var(--bg-color-5) 100%);
        background-size: 300% 100%;
        background-position: 150% 50%;
        box-shadow: 0 0 10px var(--glow-color-main), 0 0 20px var(--glow-color-outer), 2px 2px 2px 0px var(--sparkle-color-1), -3px -3px 3px 0px var(--sparkle-color-2), 5px -2px 2px 0px var(--sparkle-color-3);
        opacity: var(--opacity-start);
    }
    50% {
        background-image: linear-gradient(110deg, var(--bg-color-mid-1) 0%, var(--bg-color-mid-2) 25%, var(--bg-color-mid-3) 50%, var(--bg-color-mid-4) 75%, var(--bg-color-mid-5) 100%);
        background-size: 300% 100%;
        background-position: -50% 50%;
        box-shadow: 0 0 15px var(--glow-color-main-mid), 0 0 30px var(--glow-color-outer-mid), 3px 3px 3px 0px var(--sparkle-color-1-mid), -2px -2px 2px 0px var(--sparkle-color-2-mid), 4px -3px 3px 0px var(--sparkle-color-3-mid);
        opacity: var(--opacity-mid);
    }
    100% {
        background-image: linear-gradient(110deg, var(--bg-color-1) 0%, var(--bg-color-2) 25%, var(--bg-color-3) 50%, var(--bg-color-4) 75%, var(--bg-color-5) 100%);
        background-size: 300% 100%;
        background-position: 150% 50%;
        box-shadow: 0 0 10px var(--glow-color-main), 0 0 20px var(--glow-color-outer), 2px 2px 2px 0px var(--sparkle-color-1), -3px -3px 3px 0px var(--sparkle-color-2), 5px -2px 2px 0px var(--sparkle-color-3);
        opacity: var(--opacity-start);
    }
}

.highlight-col {
    position: relative;
    z-index: 1;
    animation: intense-shimmer-and-glow 2.2s infinite ease-in-out;
    color: #222222;
}
.highlight-col[data-plan-group="STANDARD"] {
    --bg-color-1: rgba(230, 245, 255, 0.9); --bg-color-2: rgba(190, 225, 255, 1.0);
    --bg-color-3: rgba(150, 200, 255, 0.8); --bg-color-4: rgba(190, 225, 255, 1.0);
    --bg-color-5: rgba(230, 245, 255, 0.9);
    --bg-color-mid-1: rgba(190, 225, 255, 0.9); --bg-color-mid-2: rgba(150, 200, 255, 1.0);
    --bg-color-mid-3: rgba(110, 170, 255, 0.8); --bg-color-mid-4: rgba(150, 200, 255, 1.0);
    --bg-color-mid-5: rgba(190, 225, 255, 0.9);
    --glow-color-main: rgba(173, 216, 230, 0.6); --glow-color-outer: rgba(200, 230, 255, 0.8);
    --glow-color-main-mid: rgba(173, 216, 230, 0.9); --glow-color-outer-mid: rgba(200, 230, 255, 1.0);
    --sparkle-color-1: rgba(220, 235, 255, 0.7); --sparkle-color-2: rgba(200, 225, 255, 0.6);
    --sparkle-color-3: rgba(210, 230, 255, 0.5);
    --sparkle-color-1-mid: rgba(220, 235, 255, 1.0); --sparkle-color-2-mid: rgba(200, 225, 255, 0.8);
    --sparkle-color-3-mid: rgba(210, 230, 255, 0.7);
    --opacity-start: 0.95; --opacity-mid: 1.0;
}
.highlight-col[data-plan-group="GROWTH"] {
    --bg-color-1: rgba(230, 255, 237, 0.9); --bg-color-2: rgba(170, 255, 187, 1.0);
    --bg-color-3: rgba(128, 230, 148, 0.8); --bg-color-4: rgba(170, 255, 187, 1.0);
    --bg-color-5: rgba(230, 255, 237, 0.9);
    --bg-color-mid-1: rgba(170, 255, 187, 0.9); --bg-color-mid-2: rgba(128, 230, 148, 1.0);
    --bg-color-mid-3: rgba(77, 208, 105, 0.8); --bg-color-mid-4: rgba(128, 230, 148, 1.0);
    --bg-color-mid-5: rgba(170, 255, 187, 0.9);
    --glow-color-main: rgba(144, 238, 144, 0.6); --glow-color-outer: rgba(180, 255, 180, 0.8);
    --glow-color-main-mid: rgba(144, 238, 144, 0.9); --glow-color-outer-mid: rgba(180, 255, 180, 1.0);
    --sparkle-color-1: rgba(240, 255, 240, 0.8); --sparkle-color-2: rgba(220, 255, 220, 0.7);
    --sparkle-color-3: rgba(200, 250, 200, 0.6);
    --sparkle-color-1-mid: rgba(240, 255, 240, 1.0); --sparkle-color-2-mid: rgba(220, 255, 220, 0.9);
    --sparkle-color-3-mid: rgba(200, 250, 200, 0.8);
}
.highlight-col[data-plan-group="PRIME"] {
    --bg-color-1: rgba(255, 230, 170, 0.95);
    --bg-color-2: rgba(245, 200, 100, 1.0);
    --bg-color-3: rgba(237, 194, 185, 0.9);
    --bg-color-4: rgba(245, 200, 100, 1.0);
    --bg-color-5: rgba(255, 230, 170, 0.95);
    --bg-color-mid-1: rgba(245, 200, 100, 0.95);
    --bg-color-mid-2: rgba(230, 180, 80, 1.0);
    --bg-color-mid-3: rgba(255, 215, 130, 0.9);
    --bg-color-mid-4: rgba(230, 180, 80, 1.0);
    --bg-color-mid-5: rgba(245, 200, 100, 0.95);
    --glow-color-main: rgba(255, 215, 100, 0.7);
    --glow-color-outer: rgba(255, 235, 190, 0.85);
    --glow-color-main-mid: rgba(255, 215, 100, 0.9);
    --glow-color-outer-mid: rgba(255, 235, 190, 1.0);
    --sparkle-color-1: rgba(255, 248, 220, 0.9);
    --sparkle-color-2: rgba(255, 255, 240, 0.8);
    --sparkle-color-3: rgba(255, 240, 190, 0.7);
    --sparkle-color-1-mid: rgba(255, 248, 220, 1.0);
    --sparkle-color-2-mid: rgba(255, 255, 240, 0.95);
    --sparkle-color-3-mid: rgba(255, 240, 190, 0.9);
    --opacity-start: 0.97; --opacity-mid: 1.0;
}

.notes {
    margin-top: 25px;
    font-size: 14px;
    color: #444;
}
.notes p {
    padding-left: 5em;
    text-indent: -2em;
}
.notes p .note-mark {
    font-weight: bold;
    margin-right: 0.3em;
    display: inline-block;
    width: 1.7em;
}
.notes p .note-text { display: inline; }

.company-info-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}
.company-info-section p {
    padding-left: 5px;
    padding-right: 5px;
}
.qr-block-after-contact {
     margin-top: 30px;
     padding-top: 30px;
     border-top: 1px solid #eee;
}

.ai-credit {
    font-size: 0.85em;
    color: #888;
    text-align: center;
    padding: 20px 15px;
}
.copyright {
    font-size: 0.8em;
    color: #aaa;
    text-align: center;
    padding-top: 15px;
    padding-bottom: 15px;
    margin-top: 10px;
    border-top: 1px solid #eee;
}

@keyframes pulse-arrow {
    0%, 100% { opacity: 0.7; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.15); }
}

.contact-button {
    background: linear-gradient(135deg, #007bff, #00d2ff, #0056b3, #00d2ff, #007bff);
    background-size: 300% 300%;
    animation: coolBlueSparkle 1.5s ease infinite;
    color: white !important;
    padding: 15px 30px;
    font-weight: bold;
    font-size: 1.15em;
    border: 2px solid #004085;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.6),
                0 0 15px rgba(173, 216, 230, 0.7) inset,
                2px 2px 5px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 0.5s ease;
    display: inline-block;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
    transform: skewX(-25deg);
    animation: shineEffect 3s infinite linear 0.5s;
}

.contact-button:hover, .contact-button:focus {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 12px rgba(0, 123, 255, 0.8),
                0 0 20px rgba(173, 216, 230, 0.9) inset,
                4px 4px 8px rgba(0,0,0,0.2);
    background-position: right center;
    text-decoration: none !important;
    color: white !important; /* ホバー時も文字色を維持 */
}

.contact-button:active {
    transform: translateY(0px) scale(0.97);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5),
                0 0 10px rgba(173, 216, 230, 0.7) inset,
                1px 1px 3px rgba(0,0,0,0.15);
    text-decoration: none !important;
}

@keyframes coolBlueSparkle {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shineEffect {
    0% { left: -120%; }
    30% { left: 150%; }
    100% { left: 150%; }
}

/* Simulator input styling */
.simulator-section .sim-input-field { /* Class for input fields */
    background-color: #ffffff; 
    border: 1px solid #b0bec5; 
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.075); /* Subtle inner shadow */
    padding: 10px; /* Ensure padding for all */
    font-size: 16px; /* Default font size for inputs */
}
.simulator-section .sim-input-field:focus {
    border-color: #007bff; 
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.075), 0 0 0 0.2rem rgba(0,123,255,.25); 
}
#selected-plan-display { /* New style for selected plan name display */
    text-align: center; 
    margin-top: 8px; /* Space below dropdown */
    margin-bottom: 15px; 
    font-weight: bold;
    font-size: 16px; /* Default size for desktop */
    color: #34495e;
}


@media (max-width: 768px) {
    h1 { font-size: 24px; margin-bottom: 4px; }
    .tax-note-header { font-size: 14px; margin-bottom: 20px; }
    .price-date { font-size: 13px; margin-top: 15px; }

    .scroll-text-hint {
        background-color: #FFFACD;
        color: #333;
        padding: 8px 10px;
        border-radius: 4px;
    }
    .table-wrapper.is-scrollable .scroll-text-hint,
    .scroll-text-hint.is-visible {
        display: block;
    }
    .scroll-text-hint-top {
         margin-bottom: 10px;
    }
    .scroll-text-hint-bottom {
         margin-top: 10px;
    }

    .pricing-table th, .pricing-table td {
        padding: 10px 6px;
        font-size: 13px;
        vertical-align: middle;
    }
    .pricing-table thead th {
        font-size: 13.5px;
    }
    .pricing-table tbody th[scope="row"] {
        min-width: 38px;
        line-height: 1.3;
        font-size: 12px;
        padding-left: 4px;
        padding-right: 4px;
    }
    .pricing-table tbody th[scope="row"] .unit-small,
    .pricing-table td .unit-small {
        display: block;
        font-size: 0.8em;
        color: #555;
        line-height: 1.2;
    }

    .charge-details {
        font-size: 12.5px;
        line-height: 1.5;
        text-align: left;
        padding-left: 6px;
    }
    .charge-details strong {
        display: inline-block;
        margin-bottom: 3px;
    }
    .charge-details .price-unit.normal-weight {
        font-size: 12px;
    }
    .price {
        font-size: 13.5px;
    }
    .pricing-table tbody th .annotation-ref { font-size: 0.7em; }
    .pricing-table tbody td.mark-cell strong { font-size: 1.1em; }

    .notes p {
        padding-left: 4em;
        text-indent: -2.5em;
    }
    .notes p .note-mark {
        width: 1.2em;
    }
    .contact-button {
        padding: 12px 24px;
        font-size: 1.05em;
        max-width: 100%;
        box-sizing: border-box;
        white-space: nowrap;
    }
    .contact-button::before {
        width: 40%;
    }
    .ai-credit {
        font-size: 0.75em;
        padding: 15px 10px;
    }
    .copyright {
        font-size: 0.7em;
        padding-top: 10px;
        padding-bottom: 10px;
        margin-top: 5px;
    }
    /* スマホ表示時のプラン選択ドロップダウンの文字サイズ調整 */
    .simulator-section #sim-plan {
        font-size: 18px; /* 文字を大きく */
        padding: 14px 10px; /* 内側の余白も調整 */
        height: auto; /* 高さを自動調整 */
    }
    .simulator-section #sim-shipments { /* スマホでもフォントサイズを維持または調整 */
        font-size: 18px; /* 文字を大きく */
        padding: 12px 10px;
    }
    #selected-plan-display { /* スマホでの選択中プラン名表示 */
        font-size: 20px; /* 文字を大きく */
        color: #007bff; /* 色を少し変えて目立たせる */
    }
}