@import 'variables.css';
@import 'reset.css';

/* ==========================================================================
   Layout Utilities
   ========================================================================== */
.l-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.u-text-center {
    text-align: center;
}

.u-mb-sm {
    margin-bottom: var(--spacing-sm);
}

.u-mb-md {
    margin-bottom: var(--spacing-md);
}

.u-mb-lg {
    margin-bottom: var(--spacing-lg);
}

.u-mt-md {
    margin-top: var(--spacing-md);
}

.u-sp-only {
    display: inline;
}

@media (min-width: 768px) {
    .u-sp-only {
        display: none;
    }
}

/* ==========================================================================
   Shared Section Headings
   ========================================================================== */
.p-section-heading {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--color-navy);
    text-align: center;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.p-section-heading--white {
    color: var(--color-white);
}

@media (min-width: 768px) {
    .p-section-heading {
        font-size: 2.2rem;
    }
}

.p-section-sub {
    font-size: 1rem;
    color: var(--color-text-sub);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.p-section-sub--white {
    color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   Components
   ========================================================================== */

/* Button (.c-button) */
.c-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    font-weight: 700;
    border-radius: 999px;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.3;
    cursor: pointer;
    border: none;
    font-family: var(--font-base);
    font-size: 1rem;
    text-decoration: none;
}

.c-button--primary {
    background: linear-gradient(135deg, #F28C3E 0%, #E07A2C 100%);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(242, 140, 62, 0.4);
}

.c-button--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(242, 140, 62, 0.55);
}

.c-button--lg {
    padding: 1.1em 2.5em;
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .c-button--lg {
        padding: 1.2em 3em;
        font-size: 1.2rem;
    }
}

/* Shine Animation */
.c-button--shine {
    position: relative;
    overflow: hidden;
}

.c-button--shine::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(30deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -60%;
    }

    20% {
        left: 120%;
    }

    100% {
        left: 120%;
    }
}

/* Badge (.c-badge) */
.c-badge {
    display: inline-block;
    padding: 0.5em 1.2em;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    font-weight: 900;
    font-family: var(--font-base);
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.c-badge--orange {
    background-color: var(--color-orange);
    border-color: var(--color-orange);
}

.c-badge--dark {
    background-color: #444444;
    border-color: #444444;
}

/* Section Spacing */
section {
    padding: var(--spacing-lg) 0;
}

/* ==========================================================================
   Hero Section (.p-hero)
   ========================================================================== */
.p-hero {
    position: relative;
    background-color: #FFFFFF;
    color: #333333;
    padding: var(--spacing-lg) 0 var(--spacing-xl) 0;
    overflow: hidden;
}

@media (min-width: 768px) {
    .p-hero {
        padding: 0;
        /* PC版は画像を上下いっぱいに広げるためpadding削除 */
        height: 660px;
        /* 固定高さを指定してFVのインパクトを確保 */
        display: flex;
        align-items: center;
    }
}

.p-hero__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    width: 100%;
}

/* ... (snip) ... */

/* Visual */
.p-hero__visual {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.p-hero__visual-img {
    width: 100%;
    height: auto;
    display: block;
    /* 背景に馴染ませるため枠線・影を削除 */
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
}

/* --- モバイル order 制御 --- */
.p-hero__badges {
    order: 1;
}

.p-hero__title {
    order: 2;
}

.p-hero__visual {
    order: 3;
}

.p-hero__subtitle {
    order: 4;
}

.p-hero__cta {
    order: 5;
}

@media (min-width: 768px) {
    .p-hero__container {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: var(--spacing-sm);
        height: 100%;
        position: relative;
        z-index: 2;
    }

    /* PC: 左側にテキスト、右側の画像はabsolute配置 */
    .p-hero__badges,
    .p-hero__title,
    .p-hero__subtitle,
    .p-hero__cta {
        width: 40%;
        /* 左半分にテキストを寄せる */
        order: unset;
    }

    /* 画像エリアを右半分・上下幅いっぱいに */
    .p-hero__visual {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 60%;
        /* 画面右半分 */
        max-width: none;
        height: 100%;
        margin: 0;
        z-index: 1;
        order: unset;
    }

    .p-hero__visual-img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: 30% center;
    }
}

/* Badges */
.p-hero__badges {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

@media (min-width: 768px) {
    .p-hero__badges {
        justify-content: flex-start;
    }
}

/* Title */
.p-hero__title {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
    color: #333333;
    text-align: center;
}

@media (min-width: 768px) {
    .p-hero__title {
        font-size: 2.5rem;
        text-align: left;
    }
}

/* Subtitle */
.p-hero__subtitle {
    font-size: 0.95rem;
    line-height: 2;
    margin-bottom: var(--spacing-md);
    color: #555555;
    text-align: center;
}

.p-hero__subtitle strong {
    color: #333333;
}

@media (min-width: 768px) {
    .p-hero__subtitle {
        font-size: 1.05rem;
        text-align: left;
    }
}

/* CTA */
.p-hero__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    width: 100%;
}

.p-hero__cta .c-button {
    width: 100%;
    max-width: 400px;
}

@media (min-width: 768px) {
    .p-hero__cta {
        align-items: flex-start;
    }

    .p-hero__cta .c-button {
        width: auto;
        max-width: none;
    }
}

/* Micro Copy */
.p-hero__micro-copy {
    font-size: 0.82rem;
    color: #888888;
    margin-top: 6px;
}




/* ==========================================================================
   Works Section (Infinite Scroll)
   ========================================================================== */
.p-works {
    background-color: #FFFFFF;
    padding: 60px 0;
    overflow: hidden;
}

.p-works__track {
    display: flex;
    width: max-content;
    gap: 40px;
    padding-left: 20px;
    animation: scroll-left 60s linear infinite;
}

.p-works__item img {
    height: 150px;
    width: auto;
    display: block;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    /* border-radius: 4px; Optional quality touch */
}

@media (min-width: 768px) {
    .p-works__item img {
        height: 220px;
    }
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   Problem Section (.p-problem)
   ========================================================================== */
.p-problem {
    background-color: var(--color-bg-light);
}

.p-problem__title {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--color-navy);
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
}

@media (min-width: 768px) {
    .p-problem__title {
        font-size: 2rem;
    }
}

.p-problem__container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .p-problem__container {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-lg);
    }
}

/* モバイルでは画像を先に表示 */
@media (max-width: 767px) {
    .p-problem__container {
        display: flex;
        flex-direction: column;
    }

    .p-problem__visual {
        order: -1;
        margin-bottom: 1rem;
    }

    .p-problem__content {
        order: 1;
    }
}

.p-problem__visual {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.p-problem__content {
    width: 100%;
    max-width: 600px;
}

.p-problem__list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.p-problem__item {
    display: flex;
    align-items: flex-start;
    padding: var(--spacing-sm);
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.p-problem__icon {
    font-size: 1.3rem;
    color: var(--color-orange);
    margin-right: var(--spacing-sm);
    line-height: 1;
    flex-shrink: 0;
}

.p-problem__text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1.5;
}

.square-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

/* ==========================================================================
   Solution / Before-After Section (.p-solution)
   ========================================================================== */
.p-solution {
    background-color: var(--color-white);
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

/* Before/After タブUI（モバイル用） */
.p-ba-tabs {
    display: flex;
    gap: 0;
    margin: 0 auto var(--spacing-md);
    max-width: 400px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--color-navy);
}

.p-ba-tabs__btn {
    flex: 1;
    padding: 0.8em 0.5em;
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    background: var(--color-white);
    color: var(--color-navy);
    font-family: var(--font-base);
    transition: all 0.25s ease;
}

.p-ba-tabs__btn.is-active {
    background: var(--color-navy);
    color: var(--color-white);
}

/* PC ではタブを非表示にして横並び表示 */
@media (min-width: 768px) {
    .p-ba-tabs {
        display: none;
    }
}

/* Before/After 比較カード */
.p-ba-comparison {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
    .p-ba-comparison {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
        align-items: stretch;
    }
}

.p-ba-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: transparent;
    text-align: center;
    transition: transform 0.3s ease;
}


.p-ba-card__label {
    display: inline-block;
    padding: 0.6em 2em;
    font-weight: 900;
    font-size: 0.9rem;
    text-align: center;
    border-radius: 999px;
    margin-bottom: 2rem;
}

.p-ba-card__label--before {
    background: #e8e8e8;
    color: #444;
}

.p-ba-card__label--after {
    background: var(--color-orange);
    color: #fff;
}

/* モバイルでタブ連動のパネル表示 */
@media (max-width: 767px) {
    .p-ba-card {
        display: none;
    }

    .p-ba-card.is-active {
        display: block;
    }

    .p-ba-arrow {
        display: none;
    }

    .p-ba-card__label {
        display: none;
    }
}



.p-ba-card__image-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.2;
    overflow: hidden;
}

.p-ba-card__image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* プロの改善ポイント注釈バッジ */
.p-ba-annotation {
    position: absolute;
    padding: 0.4em 0.7em;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 6px;
    line-height: 1.3;
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    max-width: 130px;
}

.p-ba-annotation--neg {
    background: #999999d5;
    color: #fff;
}

.p-ba-annotation--neg::after {
    content: "✕";
    display: inline-block;
    margin-left: 4px;
    font-size: 0.65rem;
}

.p-ba-annotation--pos {
    background: #f28c3ed5;
    color: #fff;
}

.p-ba-annotation--pos::after {
    content: "✓";
    display: inline-block;
    margin-left: 4px;
    font-size: 0.65rem;
}

@media (min-width: 768px) {
    .p-ba-annotation {
        font-size: 0.8rem;
        padding: 0.5em 0.9em;
        max-width: 160px;
    }
}

/* 矢印（PC用） */
.p-ba-arrow {
    display: none;
    color: var(--color-orange);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .p-ba-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Solution Features (3カード) */
.p-solution__features {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

@media (min-width: 768px) {
    .p-solution__features {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }
}

.p-solution__card {
    background: var(--color-bg-light);
    padding: var(--spacing-md);
    border-radius: 12px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.p-solution__card:hover {
    transform: translateY(-3px);
}

.p-solution__card-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(26, 54, 93, 0.08);
    position: absolute;
    top: 8px;
    left: var(--spacing-sm);
    line-height: 1;
}

.p-solution__card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: var(--spacing-xs);
    position: relative;
}

.p-solution__card-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-sub);
}

/* ==========================================================================
   Features / Benefits Section (.p-features)
   ========================================================================== */
.p-features {
    background: linear-gradient(135deg, #2C363F 0%, #1A2127 100%);
    color: var(--color-white);
}

.p-features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .p-features__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }
}

.p-features__item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: var(--spacing-md);
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.p-features__item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
}

.p-features__icon-flat {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-features__icon-svg {
    width: 56px;
    height: 56px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.p-features__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-yellow);
    line-height: 1.4;
}

.p-features__desc {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.88;
}



.p-flow-section {
    background-color: var(--color-bg-light);
}

.p-flow__container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .p-flow__container {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.p-flow__step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: var(--spacing-md);
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.p-flow__step:hover {
    transform: translateY(-3px);
}

.p-flow__num {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-orange);
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.p-flow__content h3 {
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--color-navy);
    font-size: 1.1rem;
}

.p-flow__content p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-sub);
}

.p-flow__arrow {
    display: none;
}

@media (min-width: 768px) {
    .p-flow__arrow {
        display: block;
        width: 40px;
        height: 2px;
        background: #ccc;
        align-self: center;
        margin: 0 var(--spacing-sm);
        position: relative;
    }

    .p-flow__arrow::after {
        content: "";
        position: absolute;
        right: 0;
        top: -4px;
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
        border-left: 5px solid #ccc;
    }
}

/* ==========================================================================
   Pricing Section (.p-price)
   ========================================================================== */
.p-price {
    background-color: var(--color-white);
}

.p-price__wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .p-price__wrapper {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: var(--spacing-md);
    }
}

.p-price__card {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: var(--spacing-md) var(--spacing-sm);
    text-align: center;
    position: relative;
    background: var(--color-white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.p-price__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* 推奨プランのハイライト */
.p-price__card--recommend {
    border: 3px solid var(--color-orange);
    box-shadow: 0 10px 30px rgba(242, 140, 62, 0.15);
    transform: scale(1.03);
}

.p-price__card--recommend:hover {
    transform: scale(1.03) translateY(-3px);
    box-shadow: 0 14px 35px rgba(242, 140, 62, 0.2);
}

.p-price__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color-orange), #E07A2C);
    color: white;
    font-weight: 900;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    box-shadow: 0 3px 10px rgba(242, 140, 62, 0.3);
}

.p-price__card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: var(--spacing-sm);
    min-height: 3em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.p-price__card-subtitle {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-sub);
}

.p-price__amount {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-text-main);
    margin-bottom: var(--spacing-md);
}

.p-price__amount--highlight {
    color: var(--color-orange);
}

.p-price__small {
    font-size: 1rem;
    font-weight: normal;
}

.p-price__list {
    text-align: left;
    display: inline-block;
    font-size: 0.9rem;
}

.p-price__list li {
    margin-bottom: 0.6em;
    padding-left: 1.4em;
    position: relative;
    line-height: 1.4;
}

.p-price__list li::before {
    content: "✔";
    color: var(--color-orange);
    position: absolute;
    left: 0;
    font-size: 0.85em;
}

.p-price__list-highlight {
    font-weight: bold;
    color: var(--color-orange);
}

/* 料金注釈 */
.p-price__note {
    max-width: 700px;
    margin: var(--spacing-md) auto 0;
    padding: var(--spacing-sm);
    background: #fdf6ec;
    border-radius: 8px;
    border: 1px solid #f0d8a8;
}

.p-price__note p {
    font-size: 0.85rem;
    color: var(--color-text-sub);
    line-height: 1.6;
    margin-bottom: 0.3em;
}

.p-price__note p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Q&A Section (.p-qa)
   ========================================================================== */
.p-qa {
    background-color: var(--color-bg-light);
}

.p-qa__list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.p-qa__item {
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Accordion Trigger (Button) */
.p-qa__head {
    width: 100%;
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.p-qa__head:hover {
    background-color: #f9f9f9;
}

.p-qa__head .p-qa__icon {
    flex-shrink: 0;
    margin-right: 1rem;
}

.p-qa__question {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.5;
    margin-right: 2rem;
    flex: 1;
}

/* Toggle Icon (+/-) */
.p-qa__toggle-icon {
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.p-qa__toggle-icon::before,
.p-qa__toggle-icon::after {
    content: "";
    position: absolute;
    background-color: var(--color-orange);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

/* Horizontal bar */
.p-qa__toggle-icon::before {
    width: 100%;
    height: 2px;
}

/* Vertical bar */
.p-qa__toggle-icon::after {
    width: 2px;
    height: 100%;
}

/* Open state */
.p-qa__head[aria-expanded="true"] .p-qa__toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

/* Accordion Body */
.p-qa__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}

.p-qa__body.is-open {
    grid-template-rows: 1fr;
}

.p-qa__body-inner {
    overflow: hidden;
    min-height: 0;
    display: flex;
    align-items: flex-start;
    padding: 0 var(--spacing-md);
    opacity: 0;
    transition: opacity 0.3s ease, padding 0.3s ease;
}

.p-qa__body.is-open .p-qa__body-inner {
    opacity: 1;
    padding-bottom: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 2px dashed #eee;
}

.p-qa__body .p-qa__icon {
    margin-top: 0.2rem;
    margin-right: 1rem;
}

/* Shared Icons */
.p-qa__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    font-weight: 900;
    font-size: 1.1rem;
    color: #fff;
    line-height: 1;
    flex-shrink: 0;
}

.p-qa__icon--q {
    background: var(--color-orange);
}

.p-qa__icon--a {
    background: var(--color-navy);
}

.p-qa__answer {
    font-size: 0.95rem;
    color: var(--color-text-main);
    line-height: 1.7;
    margin-top: 0.2rem;
}

@media (min-width: 768px) {

    .p-qa__head,
    .p-qa__body-inner {
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }

    .p-qa__toggle-icon {
        right: var(--spacing-lg);
    }

    .p-qa__question {
        font-size: 1.15rem;
    }
}

/* ==========================================================================
   Contact Form Section (.p-form-section)
   ========================================================================== */
.p-form-section {
    background: linear-gradient(135deg, #2C363F 0%, #1A2127 100%);
    color: var(--color-white);
    padding: var(--spacing-xl) 0;
}

.p-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: 16px;
    padding: var(--spacing-md);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    color: var(--color-text-main);
}

@media (min-width: 768px) {
    .p-form {
        padding: var(--spacing-lg);
    }
}

.p-form__group {
    margin-bottom: var(--spacing-md);
}

.p-form__label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--color-navy);
}

.p-form__required {
    display: inline-block;
    background: #dc3545;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    font-weight: 700;
    vertical-align: middle;
}

.p-form__optional {
    display: inline-block;
    background: #999;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    font-weight: 700;
    vertical-align: middle;
}

.p-form__radio-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
}

@media (min-width: 480px) {
    .p-form__radio-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.p-form__radio-card {
    cursor: pointer;
}

.p-form__radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.p-form__radio-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2em 0.8em;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.25s ease;
    text-align: center;
    min-height: 110px;
    background: #fafafa;
}

.p-form__radio-card input[type="radio"]:checked+.p-form__radio-card-inner {
    border-color: var(--color-orange);
    background: #fff8f0;
    box-shadow: 0 4px 15px rgba(242, 140, 62, 0.15);
}

.p-form__radio-card:hover .p-form__radio-card-inner {
    border-color: var(--color-orange);
    transform: translateY(-2px);
}

.p-form__radio-card-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5em;
}

.p-form__radio-card-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1.4;
}

.p-form__row {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (min-width: 768px) {
    .p-form__row {
        flex-direction: row;
        gap: var(--spacing-sm);
    }
}

.p-form__group--half {
    flex: 1;
}

.p-form__input,
.p-form__textarea {
    width: 100%;
    padding: 0.9em 1em;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-base);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    background: #fafafa;
    box-sizing: border-box;
}

.p-form__input:focus,
.p-form__textarea:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(242, 140, 62, 0.15);
    background: #fff;
}

.p-form__textarea {
    resize: vertical;
    min-height: 80px;
}

.p-form__submit {
    text-align: center;
    margin-top: var(--spacing-md);
}

.p-form__privacy {
    font-size: 0.8rem;
    color: var(--color-text-sub);
    margin-top: var(--spacing-sm);
}

.p-form__privacy a {
    color: var(--color-orange);
    text-decoration: underline;
}

/* Submit button loading state */
.c-button.is-loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.c-button.is-loading::after {
    content: "" !important;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
    animation: spin 0.6s linear infinite !important;
    position: static !important;
    transform: none !important;
    background: none !important;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form success message */
.p-form__success {
    animation: fadeInUp 0.6s ease;
}

.p-form__success-inner {
    background: var(--color-white);
    border-radius: 16px;
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.p-form__success-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.p-form__success-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-navy);
    margin-bottom: var(--spacing-sm);
}

.p-form__success-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-main);
    margin-bottom: var(--spacing-sm);
}

.p-form__success-note {
    font-size: 0.85rem;
    color: var(--color-text-sub);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Honeypot - hidden from users */
.p-form__honeypot {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

/* ==========================================================================
   CTA Section (.p-cta-section)
   ========================================================================== */
.p-cta-section {
    background-color: var(--color-bg-light);
    padding: var(--spacing-xl) 0;
}

.p-cta-section__text {
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
    font-size: 0.95rem;
    color: var(--color-text-main);
}

.p-cta-section__micro {
    font-size: 0.85rem;
    color: var(--color-text-sub);
    margin-top: var(--spacing-sm);
}

/* ==========================================================================
   Footer (.p-footer)
   ========================================================================== */
.p-footer {
    background: var(--color-navy);
    color: var(--color-white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    font-size: 0.9rem;
}

/* 2カラム構成 */
.p-footer__columns {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

@media (min-width: 768px) {
    .p-footer__columns {
        flex-direction: row;
        gap: var(--spacing-lg);
        align-items: stretch;
    }
}

/* 左カラム：会社情報 */
.p-footer__info {
    flex: 1;
}

.p-footer__company-name {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.05em;
}

.p-footer__details {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}

.p-footer__detail-row {
    display: flex;
    align-items: baseline;
    gap: 1em;
    line-height: 1.6;
}

.p-footer__detail-row dt {
    flex-shrink: 0;
    width: 5.5em;
    font-weight: 700;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.05em;
}

.p-footer__detail-row dd {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.p-footer__hp {
    color: rgba(101, 187, 236, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.p-footer__hp:hover {
    color: var(--color-orange);
}

.p-footer__tel {
    color: rgba(101, 187, 236, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.p-footer__tel:hover {
    color: var(--color-orange);
}

/* 右カラム：Googleマップ */
.p-footer__map {
    flex: 1;
    min-height: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.p-footer__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 250px;
}

/* フッター下部 */
.p-footer__bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.p-footer__link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.p-footer__link:hover {
    color: var(--color-white);
}

.p-footer__copyright {
    opacity: 0.5;
    font-size: 0.75rem;
    margin-top: var(--spacing-xs);
}

/* ==========================================================================
   Floating CTA (.p-floating-cta)
   ========================================================================== */
.p-floating-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #ddd;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: var(--z-floating-cta);
    padding: var(--spacing-sm);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.p-floating-cta.is-visible {
    transform: translateY(0);
}

.p-floating-cta__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    max-width: 400px;
    margin: 0 auto;
}

.p-floating-cta__main {
    width: 100%;
    font-size: 0.95rem;
    padding: 0.9em 1.5em;
}

.p-floating-cta__micro {
    font-size: 0.75rem;
    color: var(--color-text-sub);
}

@media (min-width: 768px) {
    .p-floating-cta {
        bottom: 30px;
        right: 30px;
        left: auto;
        width: auto;
        background: none;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .p-floating-cta__inner {
        flex-direction: column;
        gap: 4px;
    }

    .p-floating-cta__main {
        width: auto;
        font-size: 1rem;
        padding: 1em 2em;
        box-shadow: 0 6px 25px rgba(242, 140, 62, 0.5);
        border-radius: 999px;
    }

    .p-floating-cta__main:hover {
        box-shadow: 0 10px 35px rgba(242, 140, 62, 0.65);
    }

    .p-floating-cta__micro {
        text-align: center;
        background: rgba(0, 0, 0, 0.6);
        color: #fff;
        padding: 4px 12px;
        border-radius: 12px;
        font-size: 0.72rem;
    }
}

/* ==========================================================================
   Animation Utilities (JS連動)
   ========================================================================== */
.u-fade-in-init {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.u-fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Schedule Section (.p-schedule)
   ========================================================================== */
.p-schedule {
    background-color: var(--color-white);
}

.p-schedule__scroll-hint {
    text-align: right;
    font-size: 0.75rem;
    color: var(--color-text-sub);
    margin-bottom: var(--spacing-xs);
    animation: flash 2s infinite;
}

@keyframes flash {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ==========================================================
   ★ 修正の核心：テーブルのラッパー
   ========================================================== */
.p-schedule__wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--spacing-sm);

    /* ↓ ブラウザによる「枠線の1px切り取りバグ」を防ぐための余白 */
    padding-top: 1px;
    padding-left: 1px;

    position: relative;
    z-index: 1;
}

/* ==========================================================
   Schedule Section (.p-schedule) のテーブル枠線設定
   ========================================================== */

/* 1. テーブル全体への設定（ここには border を引かない） */
.p-schedule__table {
    width: 100%;
    min-width: 850px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-size: 0.9rem;
}

/* 2. すべてのセル（共通で「下」と「右」に枠線を引く） */
.p-schedule__table th,
.p-schedule__table td {
    border-bottom: 1px solid var(--color-schedule-border);
    border-right: 1px solid var(--color-schedule-border);
    padding: 0.8em;
    vertical-align: middle;
}

/* 3. 一番上の行（thead内のthに「上」の枠線を追加） */
.p-schedule__table thead th {
    background-color: var(--color-schedule-header-bg);
    padding: 1em;
    font-weight: 700;
    text-align: center;
    color: var(--color-navy);
    border-top: 1px solid var(--color-schedule-border);
    /* 上枠線を足す */
}

/* 4. 一番左の列（thの最初の子要素に「左」の枠線を追加） */
.p-schedule__table th:first-child {
    border-left: 1px solid var(--color-schedule-border);
    /* 左枠線を足す */
}

/* ==========================================================
   固定列（Sticky）の設定
   ========================================================== */

/* 左上の「タスク」セル */
.p-schedule__th-task {
    width: 220px;
    background-color: var(--color-white) !important;
    position: sticky;
    left: 0;
    top: 0;
    z-index: 20;
    /* ★修正: バー(最大5)よりも最前面に出すため、一気に20へ引き上げ */
}

/* 左側の「お客様」「自社」セル（横スクロールで固定） */
.p-schedule__table tbody th {
    background-color: var(--color-white);
    text-align: left;
    font-weight: normal;
    position: sticky;
    left: 0;
    z-index: 10;
    /* ★修正: バー(最大5)よりも前面に出すため、10へ引き上げ */
}

/* 行ホバー時の背景色変更 */
.p-schedule__table tbody tr:hover td,
.p-schedule__table tbody tr:hover th {
    background-color: #f8fafc;
}

/* ==========================================================
   タスク内のテキスト・装飾スタイル
   ========================================================== */

.p-schedule__task-name--inline {
    display: inline-block;
    font-weight: 900;
    font-size: 0.85rem;
    margin-left: 4px;
}

.p-schedule__task-sub {
    display: block;
    font-size: 0.85rem;
    margin-top: 4px;
    margin-left: 1.5em;
    color: var(--color-navy);
}

.p-schedule__dot {
    font-size: 0.8rem;
    line-height: 1;
}

.p-schedule__dot--customer {
    color: var(--color-schedule-customer-main);
}

.p-schedule__dot--company {
    color: var(--color-schedule-company-main);
}

.u-text-customer {
    color: var(--color-schedule-customer-main);
}

.u-text-company {
    color: var(--color-schedule-company-main);
}

.p-schedule__td-holiday {
    background-color: var(--color-schedule-holiday-bg);
}

/* ==========================================================
   Gantt Bars (チャートのバー)
   ========================================================== */

.p-schedule__bar {
    display: block;
    padding: 0.4em 0.8em;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    /* ★追加: 空セルの枠線よりもバーを前面に出す */
    z-index: 2;
}

.p-schedule__bar--customer {
    background-color: var(--color-schedule-customer-light);
    color: #92400e;
    border: 1px solid var(--color-schedule-customer-main);
}

.p-schedule__bar--company {
    background-color: var(--color-schedule-company-light);
    color: #1e40af;
    border: 1px solid var(--color-schedule-company-main);
}

/* ==========================================================
   複数日にまたがるバーの設定（印刷・配送など）
   ========================================================== */
/* バーの親となるセルに相対位置を設定 */
.p-schedule__td-relative {
    position: relative;
}

/* 3日間またぐバーのスタイル */
.p-schedule__bar--span-3 {
    position: absolute;
    top: 50%;
    left: 0.8em;
    /* tdのpaddingと揃える */
    transform: translateY(-50%);

    /* 3セル分の幅 + 間のボーダー2本分(2px) - 左右の余白(1.6em) */
    width: calc(300% + 2px - 1.6em);
    z-index: 5;
}