/* ============================================================
  PC設定 - Base Styles
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:wght@400;700&family=Noto+Sans+JP:wght@400;700&display=swap');

/* CSS Reset */
*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #181D29;
    --header-height: 80px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Google Sans Flex', 'Noto Sans JP', 'Hiragino Sans', 'ヒラギノ角ゴ ProN', Hiragino Kaku Gothic ProN, 'メイリオ', Meiryo, '游ゴシック Medium', YuGothic, YuGothicM, sans-serif;
    font-weight: 400;
    color: #FFFFFF;
    background-color: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "palt";
    letter-spacing: 0.02rem;
}

/* Device specific display control */
.sp-only {
    display: none !important;
}

@media (max-width: 767px) {
    .sp-only {
        display: block !important;
    }

    .pc-only {
        display: none !important;
    }
}

/* Common Layout */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 4%;
    /* 固定60pxから5%の相対値に変更し、狭い画面でも柔軟に */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.header {
    height: var(--header-height);
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(30px);
    /* background-color: rgba(24, 29, 41, 0.8); */
}

.header-container {
    height: 100%;
    width: 100%;
    /* max-width: 1040px; */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 36px;
}

.header-cta-img {
    height: 72px;
    transition: transform 0.3s ease;
}

.header-cta-img:hover {
    transform: scale(1.06);
}

/* Hero Section */
.hero-section {
    padding-top: var(--header-height);
    padding-bottom: 0;
    position: relative;
    background-color: #12161F;
    overflow: hidden;
    /* Ensure BG doesn't spill */
}

.hero-container {
    max-width: 1140px;
    margin: 0px auto 0;
    padding: 0px 20px 0 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 2;
    gap: 20px;
}

.hero-content {
    flex: 1.05;
    display: flex;
    flex-direction: column;
    margin: 0px 20px;
}

/* Hero Entrance Animations */
.hero-stage-1 {
    opacity: 0;
    animation: fadeIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.4s;
}

.hero-stage-2 {
    opacity: 0;
    animation: fadeIn 1.0s ease-out forwards;
    animation-delay: 0.8s;
}

.hero-stage-3 {
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
    animation-delay: 1.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero-item {
    margin-bottom: 18px;
    width: 100%;
}

.mein-text {
    font-size: 68px;
    font-weight: 700;
    line-height: 1;
    color: #FFFFFF;
    letter-spacing: 0.04em;
    text-align: center;
    white-space: nowrap;
}

.mein-text .num {
    display: inline-block;
    min-width: 0.8em;
    text-align: center;
    font-size: 1.4em;
    font-family: 'Google Sans Flex', sans-serif;
    font-weight: 600;
    vertical-align: -0.06em;
    margin: 0;
    line-height: 1;
}

.logo-tagline {
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 5px;
    text-align: center;
    letter-spacing: 0.18em;
}

.main-logo-img {
    width: 100%;
}

/* CTA Block (Width 100%) */
.cta-inner {
    position: relative;
    padding-top: 40px;
    width: 100%;
    margin-bottom: 0px;
    /* Column Full Width */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cta-inner:hover {
    transform: scale(1.03);
}

.cta-bubble {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 82%;
    max-width: 360px;
    z-index: 3;
}

.cta-link-main {
    width: 100%;
    text-decoration: none;
    /* Clean and simple layout unit */
}

.cta-img-main {
    width: 100%;
    transition: filter 0.3s ease;
    filter: drop-shadow(0 15px 25px rgba(46, 125, 255, 0.6));
}

.cta-inner:hover .cta-img-main {
    filter: drop-shadow(0 20px 35px rgba(46, 125, 255, 0.8));
}

/* .sub-text-img removed */

/* Availability Board */
.availability-board-wrap {
    position: relative;
    z-index: 6;
    max-width: 1140px;
    margin: 40px auto 0;
    padding: 0 4%;
}

.availability-board {
    position: relative;
    padding: 24px 26px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background: rgba(17, 22, 30, 0.52);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.availability-board::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(97, 230, 167, 0.12), transparent 38%);
    pointer-events: none;
}

.availability-board__header,
.availability-board__subhead,
.availability-board__legend,
.availability-board__grid,
.availability-board__note {
    position: relative;
    z-index: 1;
}

.availability-board__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 10px;
}

.availability-board__title {
    font-size: 26px;
    line-height: 1.35;
    letter-spacing: 0.04em;
    font-weight: 700;
    color: #f5f9ff;
}

.availability-board__count {
    color: #4ef2a3;
    text-shadow: 0 0 18px rgba(78, 242, 163, 0.26);
}

.availability-board__summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.availability-board__subhead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

.availability-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(102, 224, 163, 0.28);
    background: rgba(21, 58, 42, 0.7);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #b7ffd7;
}

.availability-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5cff9d;
    box-shadow: 0 0 12px rgba(92, 255, 157, 0.8);
}

.availability-board__meta {
    font-size: 14px;
    letter-spacing: 0.06em;
    color: rgba(235, 243, 255, 0.76);
    text-align: right;
}

.availability-board__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: rgba(224, 234, 248, 0.72);
}

.availability-board__legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
}

.legend-dot.is-used {
    background: #ff666e;
}

.legend-dot.is-open {
    background: #39ec9b;
}

.legend-dot.is-reserved {
    background: linear-gradient(180deg, #ffd65c, #ffb01f);
}

.availability-board__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.server-card {
    padding: 16px 16px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.server-card--overseas {
    background: rgba(74, 166, 214, 0.18);
    box-shadow: inset 0 1px 0 rgba(190, 236, 255, 0.12);
}

.server-card--overseas .server-card__region {
    color: rgba(186, 234, 255, 0.86);
}

.server-card--overseas .server-card__name {
    color: #f3fcff;
}

.server-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.server-card__region {
    font-size: 10px;
    letter-spacing: 0.22em;
    color: rgba(180, 196, 220, 0.72);
    margin-bottom: 5px;
}

.server-card__name {
    font-size: 16px;
    font-weight: 700;
    color: #f5f9ff;
}

.server-card__status {
    text-align: right;
    flex-shrink: 0;
}

.server-card__status-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.18em;
    color: rgba(205, 219, 240, 0.62);
    margin-bottom: 2px;
}

.server-card__status strong {
    display: inline-block;
    font-size: 16px;
    color: #f5f9ff;
    white-space: nowrap;
}

.server-card__status strong .count-open {
    color: #4ef2a3;
}

.server-card__status strong.is-full {
    color: #ff666e;
}

.server-slots {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
}

.slot {
    aspect-ratio: 1;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
}

.slot.is-used {
    background: rgba(147, 161, 183, 0.2);
}

.slot.is-open {
    background: #39ec9b;
}

.slot.is-full {
    background: rgba(255, 102, 110, 0.82);
}

.slot.is-reserved {
    background: #ffc53d;
    border-color: rgba(255, 220, 140, 0.32);
}

.availability-board__note {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.7;
    letter-spacing: 0.05em;
    color: rgba(219, 229, 242, 0.58);
}

/* Recent Application Log */
.status-bar-wrap {
    width: 100%;
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.status-bar-wrap--after-board {
    position: relative;
    z-index: 6;
    max-width: 1140px;
    margin: 18px auto 0;
    padding: 0 4%;
}

.recent-log {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 22px 24px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background: rgba(17, 22, 30, 0.52);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}

.recent-log::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(97, 230, 167, 0.12), transparent 38%);
    pointer-events: none;
}

.recent-log__header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.recent-log__title {
    font-size: 20px;
    font-weight: 700;
    color: #F3F7FF;
    letter-spacing: 0.06em;
}

.recent-log__live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(92, 232, 165, 0.28);
    background: rgba(51, 156, 112, 0.12);
    color: #6ef5b5;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.recent-log__live::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #62f0ae;
    box-shadow: 0 0 14px rgba(98, 240, 174, 0.8);
}

.recent-log__list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(138, 151, 188, 0.12);
}

.recent-log__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.recent-log__item + .recent-log__item {
    border-top: 1px solid rgba(138, 151, 188, 0.12);
}

.recent-log__text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(241, 246, 255, 0.92);
    letter-spacing: 0.04em;
}

.recent-log__name {
    display: inline-block;
    width: 28px;
    min-width: 28px;
    flex-shrink: 0;
    line-height: 1;
}

.recent-log__plan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    margin: 0;
    padding: 6px 8px;
    border-radius: 6px;
    background: transparent;
    color: #4c9aff;
    border: 1px solid rgba(76, 154, 255, 0.7);
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.recent-log__server {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    min-width: 132px;
    margin: 0;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    background: transparent;
    color: rgba(241, 246, 255, 0.78);
    font-size: 14px;
    flex-shrink: 0;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.recent-log__plan--annual {
}

.recent-log__plan--term {
    background: transparent;
    color: #4c9aff;
    border: 1px solid rgba(76, 154, 255, 0.7);
}

.recent-log__time {
    flex-shrink: 0;
    font-size: 16px;
    color: rgba(197, 208, 231, 0.56);
    letter-spacing: 0.08em;
}

@media (max-width: 767px) {
    .status-bar-wrap {
        margin-top: 32px;
    }

    .status-bar-wrap--after-board {
        margin-top: 16px;
    }

    .recent-log {
        padding: 18px 16px 0;
        border-radius: 18px;
    }

    .recent-log__header {
        margin-bottom: 14px;
    }

    .recent-log__title {
        font-size: 16px;
    }

    .recent-log__live {
        padding: 6px 10px;
        font-size: 12px;
    }

    .recent-log__item {
        align-items: flex-start;
        gap: 4px;
        padding: 14px 0 12px;
    }

    .recent-log__text {
        gap: 8px;
        font-size: 13px;
    }

    .recent-log__name {
        width: 24px;
        min-width: 24px;
    }

    .recent-log__plan {
        width: 100px;
        margin: 0;
        padding: 4px 2px;
        border-radius: 4px;
        font-size: 13px;
        line-height: 1;
    }

    .recent-log__server {
        width: 110px;
        min-width: 110px;
        margin: 0;
        padding: 5px 4px;
        border-radius: 4px;
        font-size: 12px;
        white-space: nowrap;
    }

    .recent-log__time {
        font-size: 12px;
    }
}

/* Visual Block (Right Side) */
.hero-visual {
    flex: 0.95;
    display: flex;
    justify-content: center;
    letter-spacing: 0.08rem;
}

.visual-info {
    position: relative;
}

.phone-tagline {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 10px;
    text-align: center;
}

.phone-img {
    width: 370px;
    height: 645px;
    display: block;
    margin-top: -20px;
    border: 0;
    background: transparent;
    filter: none;
}

/* Background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/fv_background.jpg');
    /* PC版の背景 */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
    opacity: 1;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Error States */
.error-text {
    color: #ff4d4d;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.has-error input {
    border: 1px solid #ff4d4d !important;
}

.has-error .error-text {
    display: block;
}

@media (max-width: 767px) {
    :root {
        --header-height: 70px;
    }

    .container {
        padding: 0 20px;
    }

    .header {
        height: 70px;
    }



    .header-cta-img {
        height: 42px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 0px;
        gap: 28px;
        padding: 0px 20px;
        margin: 20px 0;
    }

    .hero-content {
        align-items: center;
    }

    .mein-text {
        font-size: 44px;
        margin-bottom: 0px;
    }

    .mein-text .num {
        font-size: 1.4em;
    }

    .logo-tagline {
        font-size: 16px;
        letter-spacing: 0.15em;
        margin-bottom: 4px;
    }

    .hero-visual {
        justify-content: center;
        width: 100%;
        margin-top: 0px;
    }

    .phone-img {
        width: 100%;
    }

    .phone-tagline {
        text-align: center;
        margin-bottom: 0px;
    }

    .phone-img {
        width: 80vw;
        max-width: 320px;
        height: auto;
        aspect-ratio: 390 / 680;
        display: block;
        margin: 0 auto;
    }

    .world-first-badge-wrap {
        position: static;
        margin-bottom: 20px;
    }
}

/* Survey Section */
.survey-section-wrap {
    padding: 100px 0 0;
    background-color: #12161F;
}

.survey-header {
    margin-bottom: 48px;
}

.survey-intro {
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.1em;
    text-align: center;
}

.survey-inner {
    background-color: #FFFFFF;
    border-radius: 24px;
    padding: 40px 0px 40px;
    /* Reduced vertical padding */
    max-width: 880px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    /* box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3); */
}

.survey-carousel-container {
    position: relative;
    width: 100%;
}

.survey-q-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.q-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #1A1A1A;
    color: #FFFFFF;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
}

.survey-question {
    font-size: 24px;
    font-weight: 700;
    color: #1A1A1A;
}

.highlight-invert {
    background-color: #FFFFFF;
    color: #10151E;
    padding: 1px 4px;
    /* border-radius: 4px; */
    margin: 0 4px;
    line-height: normal;
}

.highlight-blue {
    background-color: #4C9AFF;
    color: #FFFFFF;
    padding: 1px 6px;
    /* border-radius: 4px; */
    margin: 0 4px;
    line-height: normal;
}

.survey-carousel-container {
    position: relative;
    width: 100%;
}

.survey-carousel-wrap {
    width: 100%;
    cursor: grab;
    user-select: none;
    overflow: visible;
}

.survey-carousel-wrap:active {
    cursor: grabbing;
}

.survey-carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.survey-card {
    flex: 0 0 320px;
    margin: 0 10px;
    background: #FFFFFF;
    border: 4px solid #EAEAEA;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0.3;
    transition: all 0.6s ease;
    transform: scale(0.9);
}

.survey-card.active {
    opacity: 1;
    transform: scale(1);
    border-color: #4C9AFF;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* .survey-btn removed for scroll-sync version */

.survey-card.active:hover {
    transform: scale(1.02);
    border-color: #4C9AFF;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.survey-img {
    width: 100%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.survey-card.active:hover .survey-img {
    transform: scale(1.08);
}

/* Animations Trigger (Fade + Up) */
.fade-in {
    opacity: 0;
    transition: opacity 1.0s ease;
}

.fade-in.is-active {
    opacity: 1 !important;
}

/* Simple Fade (No Movement) */
.fade-simple {
    opacity: 0;
    transition: opacity 1.0s ease;
}

.fade-simple.is-active {
    opacity: 1 !important;
}

@media (max-width: 767px) {
    .availability-board-wrap {
        margin-top: 40px;
        padding: 0 12px;
    }

    .availability-board {
        padding: 18px 16px 16px;
        border-radius: 18px;
    }

    .availability-board__header {
        flex-direction: row;
        align-items: center;
        gap: 14px;
        display: flex;
        margin-bottom: 6px;
    }

    .availability-board__title {
        font-size: 17px;
        line-height: 1.5;
    }

    .availability-board__summary {
        align-items: flex-end;
    }

    .availability-board__subhead {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .availability-board__meta {
        text-align: left;
        font-size: 12px;
    }

    .availability-board__legend {
        gap: 10px 14px;
        font-size: 12px;
    }

    .availability-board__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .server-card {
        padding: 14px 12px 12px;
        border-radius: 14px;
    }

    .server-card__head {
        margin-bottom: 10px;
    }

    .server-card__name {
        font-size: 15px;
    }

    .server-card__status strong {
        font-size: 17px;
    }

    .server-slots {
        gap: 5px;
    }

    .survey-section-wrap {
        padding: 40px 0 0;
    }

    .survey-inner {
        padding: 32px 20px;
        margin: 0 10px;
    }

    .survey-carousel-wrap {
        margin: 0;
    }

    .survey-carousel-track {
        padding: 0;
        gap: 15px;
    }

    .survey-card {
        flex: 0 0 80%;
        margin: 0 10px;
    }

    .survey-btn {
        display: none;
        /* Hide buttons on mobile, swipe is enough */
    }
}


/* Logo Slider */
.logo-slider {
    position: relative;
    width: 100%;
    height: auto;
    /* background-color: rgba(0, 0, 0, 0.2); */
    /* border-top: 1px solid rgba(255, 255, 255, 0.1); */
    overflow: hidden;
    z-index: 5;
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.slider-track {
    display: flex;
    width: calc(250px * 48);
    /* Doubled from 24 */
    animation: scroll 120.0s linear infinite;
    padding: 40px 0;
}

.slider-track img {
    height: 38px;
    margin: 0 20px;
    opacity: 0.2;
}

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

    100% {
        transform: translateX(calc(-250px * 24));
    }

    /* Doubled from 12 */
}

/* Solution Section */
.solution-section {
    padding: 100px 0;
    background-color: #10151E;
    /* XD Precise Dark Navy */
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.solution-pre-intro {
    font-size: 20px;
    font-weight: 700;
    color: #4C9AFF;
    /* XD Blue */
    margin-bottom: 24px;
    letter-spacing: 0.1em;
}

.section-title-white {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0px;
    color: #FFFFFF;
    letter-spacing: 0.1em;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0px;
    color: #1A1A1A;
    letter-spacing: 0.1em;
}

@media (max-width: 767px) {

    .section-title,
    .section-title-white {
        font-size: 26px;
        /* 28pxからさらに精査して26pxに */
        margin-bottom: 2px;
    }
}

.solution-main-intro {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 64px;
    letter-spacing: 0.1em;
}

/* Bubbles Styling (Scrolling Rows) */
.bubbles-area-scroll {
    position: relative;
    width: 100%;
    margin: 60px 0;
    overflow: hidden;
    pointer-events: none;
}

.bubble-row {
    display: flex;
    margin-bottom: 20px;
}

.bubble-track-left,
.bubble-track-right {
    display: flex;
    width: max-content;
    white-space: nowrap;
}

.bubble-set {
    display: flex;
    flex-shrink: 0;
    will-change: transform;
}

.bubble-track-left .bubble-set {
    animation: scrollLeft 26s linear infinite;
    /* PCSP共通：落ち着いて読める速度 */
}

.bubble-track-right .bubble-set {
    animation: scrollRight 30s linear infinite;
    /* PCSP共通：少しズラして自然さを演出 */
}

.bubble-row img {
    height: 160px;
    /* PC版：160pxの大型表示へ */
    margin: 0 10px;
    opacity: 1;
    flex-shrink: 0;
    backface-visibility: hidden;
    /* アニメーション中の文字のぼやけ・チラつきを防止 */
    -webkit-backface-visibility: hidden;
}

@keyframes scrollLeft {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }

    /* 箱自体の幅なので、ブラウザ計算誤差はゼロ！ */
}

@keyframes scrollRight {
    0% {
        transform: translate3d(-100%, 0, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

.solution-declaration {
    margin-top: 60px;
    padding-bottom: 0px;
}

.declaration-text {
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.1em;
}

.declaration-subtext {
    font-size: 24px;
    color: #A0AEC0;
}

@media (max-width: 767px) {
    .solution-main-intro {
        font-size: 28px;
        margin-top: 40px;
        /* 追加：スマホ用のマージンを設定 */
        margin-bottom: 40px;
    }

    .bubbles-area-scroll {
        margin: 48px 0 0px;
        /* 追加：スマホ用のマージンを適正化 */
    }

    .declaration-text {
        font-size: 22px;
        /* 24pxからさらに精査して22pxに */
    }

    .solution-declaration {
        margin-top: 40px;
        /* 追加：スマホ用のマージンを設定 */
    }

    .declaration-subtext {
        font-size: 18px;
    }

    .float-bubble {
        width: 140px;
    }
}

/* Product Introduction Section (Faithful 2-column layout) */
.intro-section {
    padding: 160px 0;
    background-image: url('img/body-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #FFFFFF;
    overflow: hidden;
}

.intro-flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.intro-content-left {
    flex: 1;
    text-align: left;
}

.intro-headline-left {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 50px;
    letter-spacing: 0.05em;
}

.intro-description-area {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.intro-desc-item {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.7;
    color: #FFFFFF;
}

.intro-visual-right {
    flex: 1.2;
    display: flex;
    justify-content: flex-end;
}

.comparison-img-right {
    width: 140%;
    /* Overflow looks like XD design */
    transform: translateX(10%);
    filter: drop-shadow(0 40px 100px rgba(0, 0, 0, 0.7));
}

@media (max-width: 767px) {
    .intro-flex-container {
        flex-direction: column;
        text-align: center;
    }

    .intro-content-left {
        text-align: center;
    }

    .intro-headline-left {
        font-size: 28px;
    }

    .intro-visual-right {
        width: 100%;
        justify-content: center;
    }

    .comparison-img-right {
        width: 100%;
        transform: none;
    }
}

/* Case Study Section */
.case-study-section {
    padding: 100px 0 64px;
    background-color: #FFFFFF;
    overflow: hidden;
}

@media (max-width: 767px) {
    .case-study-section {
        padding: 64px 0 64px;
    }
}

.case-header {
    margin-bottom: 60px;
    text-align: center;
}

/* Case Carousel */
.case-carousel-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 20px;
    margin-top: -20px;
}

.case-carousel {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
    cursor: grab;
}

.case-carousel:active {
    cursor: grabbing;
}

.case-slide {
    flex: 0 0 85%;
    /* Show 85% to peek the next one */
    max-width: 780px;
    margin: 0;
    opacity: 0.3;
    transition: all 0.6s ease;
    transform: scale(0.9);
}

.case-slide.active {
    opacity: 1;
    transform: scale(1);
}

.case-img {
    width: 100%;
    border-radius: 20px;
    background: #111;
    padding: 28px 48px 48px;
}

/* Controls */
.carousel-btn {
    position: absolute;
    top: 46%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: #000000;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-btn:hover {
    background: #333333;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: calc(50% - 390px - 30px);
}

.carousel-btn.next {
    right: calc(50% - 390px - 30px);
}

.arrow-left::before,
.arrow-right::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-top: 3px solid #FFFFFF;
    border-right: 3px solid #FFFFFF;
}

.arrow-left::before {
    transform: rotate(-135deg);
    margin-left: 5px;
}

.arrow-right::before {
    transform: rotate(45deg);
    margin-right: 5px;
}

.arrow-right::before {
    transform: rotate(45deg);
    margin-right: 4px;
}

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots .dot.active {
    background: #4C9AFF;
    transform: scale(1.5);
}

/* Nav Hover Zones */
.nav-trigger-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 220px;
    /* さらに広げて 220px に */
    z-index: 5;
    background: transparent;
    cursor: pointer;
}

.nav-trigger-zone.prev {
    left: 0;
}

.nav-trigger-zone.next {
    right: 0;
}

@media (max-width: 767px) {
    .nav-trigger-zone {
        display: none;
        /* スマホはスワイプ主体なので不要 */
    }
}

@media (max-width: 767px) {
    .case-slide {
        flex: 0 0 90%;
        margin: 0 10px;
    }

    .case-img {
        padding: 28px 20px !important;
    }

    .carousel-btn {
        width: 28px;
        height: 28px;
    }

    .arrow-left::before,
    .arrow-right::before {
        width: 8px;
        /* 12pxから縮小 */
        height: 8px;
        /* 12pxから縮小 */
        border-width: 2px;
        /* 3pxから少し細く */
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }
}

/* .case-item:hover .case-img {
    transform: translateY(-8px);
} */


/* Reveal Animation (Slide background then show text) */
.reveal-text {
    display: inline-block;
    position: relative;
    overflow: hidden;
    opacity: 0;
    /* Hidden initially */
}

.reveal-text.is-active {
    animation: revealTextShow 0.1s forwards;
    animation-delay: 0.3s;
}

.reveal-text::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #4C9AFF;
    /* Brand Color */
    transform: translateX(-101%);
    z-index: 2;
}

.reveal-text.is-active::after {
    animation: revealSlideMask 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes revealSlideMask {
    0% {
        transform: translateX(-101%);
    }

    50% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(101%);
    }
}

@keyframes revealTextShow {
    to {
        opacity: 1;
    }
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background-image: url('img/body-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    color: #FFFFFF;
}

@media (max-width: 767px) {
    .features-section {
        padding: 64px 0;
        background-attachment: scroll !important;
        background-image: url('img/body-bg_sp.jpg');
        /* スマホ専用背景：特徴セクション */
        background-repeat: repeat;
        background-size: 100% auto;
        /* 横幅いっぱいにフィットさせる */
    }
}

.features-header {
    text-align: center;
    margin-bottom: 80px;
}

@media (max-width: 767px) {
    .features-header {
        margin-bottom: 48px;
        /* 追加：スマホ用のマージンを設定 */
    }
}

.section-subtitle {
    font-size: 18px;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0px;
    font-weight: 700;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px 56px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center for default grid items */
    gap: 32px;
}

/* Featured Highlight (Full Width) */
.feature-item.feature-highlight {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 56px;
    padding: 0;
    margin-bottom: 0;
}

.feature-item.feature-reverse {
    flex-direction: row-reverse;
}

.feature-highlight .feature-visual,
.feature-highlight .feature-text-content {
    flex: 1;
}

.feature-highlight .feature-title {
    font-size: 36px;
}

.feature-highlight .feature-desc {
    font-size: 18px;
    line-height: 1.8;
}

.feature-visual {
    flex: 1;
}

.feature-img-main {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-text-content {
    flex: 1;
}

.feature-num {
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 2px;
    display: block;
    line-height: 1;
    /* Added */
}

.feature-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.feature-desc {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
}

/* Mid CTA in Features */
.feature-mid-cta {
    text-align: center;
    margin: 40px 0 100px;
}

@media (max-width: 767px) {
    .feature-mid-cta {
        margin: 0px 0 60px;
    }
}

@media (max-width: 767px) {
    .feature-mid-cta {
        margin: 0px 0 60px;
    }
}

.mid-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 24px 60px;
    background: linear-gradient(135deg, #4C9AFF 0%, #2E7DFF 100%);
    color: #FFFFFF;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    border-radius: 100px;
    box-shadow: 0 15px 30px rgba(46, 125, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mid-cta-button:hover {
    transform: scale(1.05);
    /* Zoom effect as requested */
    box-shadow: 0 20px 40px rgba(46, 125, 255, 0.6);
}

.mid-cta-button .arrow {
    margin-left: 15px;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M13 7l5 5m0 0l-5 5m5-5H6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

@media (max-width: 767px) {
    .features-list {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .feature-item {
        flex-direction: column !important;
        /* Force vertical on mobile */
        gap: 20px;
        text-align: left;
    }

    .feature-item.feature-highlight {
        padding: 0;
        border-bottom: none;
        margin-bottom: 0;
        gap: 20px;
    }

    .feature-visual {
        width: 100%;
    }

    .feature-title {
        font-size: 24px;
    }

    .feature-highlight .feature-title {
        font-size: 22px;
    }

    .feature-highlight .feature-desc {
        font-size: 15px;
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background-color: #E4ECF7;
    color: #1A1A1A;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 60px;
}

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

.testimonial-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 24px;
    color: #333333;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #111111;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 15px;
}

.star-icon {
    width: 18px;
    height: 18px;
}

.star-icon.star-off {
    filter: grayscale(100%);
    opacity: 1;
}

.rating-num {
    font-weight: 700;
    font-size: 18px;
    color: #333333;
    margin-left: 8px;
    line-height: 1;
}

.user-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #EEEEEE;
}

.user-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.user-info-text {
    font-size: 13px;
    color: #666666;
    font-weight: 500;
}

.card-text {
    font-size: 15px;
    line-height: 1.6;
    color: #444444;
}

/* Security Section */
.security-section {
    padding: 100px 0;
    background-color: #10151E;
    /* Solid dark navy for visual consistency */
    color: #FFFFFF;
}

/* Updated from redundant definition */

.security-header {
    text-align: center;
    margin-bottom: 60px;
}





.security-lead {
    margin-top: 16px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    text-align: center;
    color: rgba(255, 255, 255, 0.74);
}

.grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.security-item {
    text-align: center;
}

.security-item-icon {
    width: 80px;
    height: auto;
    margin: 0 auto 25px;
    /* Added: Center horizontally */
}

.security-item-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.security-item-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
}

@media (max-width: 767px) {

    .testimonials-grid,
    .grid-3col {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 30px;
    }
}

/* Price Section */
.price-section {
    padding: 100px 0;
    background-image: url('img/body-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    color: #FFFFFF;
}

.price-intro {
    margin-top: 16px;
    font-size: 18px;
    line-height: 1.7;
    text-align: center;
    color: rgba(255, 255, 255, 0.74);
}

.price-plans-wrap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px;
    margin-top: 36px;
}

.price-card {
    position: relative;
    padding: 20px 16px 20px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    min-height: 600px;
    opacity: 0.88;
}

.price-card--featured {
    background: rgba(255, 255, 255, 0.055);
    border: 3px solid rgba(76, 154, 255, 1);
    box-shadow: 0 0 0 1px rgba(76, 154, 255, 0.38), 0 18px 42px rgba(0, 0, 0, 0.22), 0 0 16px rgba(46, 125, 255, 0.82);
    opacity: 1;
}

.price-card:last-child {
    border-color: transparent;
}

.price-card:first-child {
    border-color: transparent;
}

.price-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.price-card__label {
    display: inline-block;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 22px;
    font-weight: 700;
    white-space: nowrap;
}

.price-card__lead {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
}

.price-card--featured .price-card__label {
    color: #ffffff;
}

.price-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #ffe44d;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.price-card__badge--blue {
    background: #ff6b8f;
    color: #ffffff;
}

.price-card__summary {
    margin-top: 6px;
    padding: 8px 8px 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.price-card__summary-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    padding-bottom: 6px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.price-card__summary-row:last-child {
    margin-bottom: 0;
    padding-bottom: 4px;
    border-bottom: none;
}

.price-card__summary-row span {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.62);
}

.price-card__summary-row strong {
    font-size: 15px;
    line-height: 1.5;
    text-align: right;
    color: #FFFFFF;
    font-weight: 700;
}

.price-card__features {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(244, 248, 255, 0.92);
}

.price-card__amount {
    font-weight: 700;
}

.price-card__check {
    width: 16px;
    height: 16px;
    margin-top: 0.22em;
    flex-shrink: 0;
}

.price-card__features .price-card__note {
    margin-top: 2px;
    margin-bottom: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.56);
}

.price-card__cta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0px 20px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: #232838;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: transform 0.3s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.price-card__cta:hover {
    transform: scale(1.05);
    background: #2a3042;
    border-color: rgba(255, 255, 255, 0.16);
}

.price-card__cta--featured {
    background: #2f80ff;
    border-color: #5ea0ff;
    box-shadow: 0 18px 32px rgba(47, 128, 255, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.price-card__cta--featured:hover {
    background: #438dff;
    border-color: #78b1ff;
}

.price-card__capacity {
    margin-top: 12px;
    margin-bottom: 12px;
}

.price-card__capacity-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.price-card__capacity-head span {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.56);
}

.price-card__capacity-head strong {
    font-size: 16px;
    font-weight: 700;
    color: #61e6a7;
}

.price-card__capacity-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.price-card__capacity-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #4fe0c6;
    box-shadow: 0 0 18px rgba(79, 224, 198, 0.18);
}

.price-card__main {
    margin-top: 8px;
}

.price-card__headline {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 6px;
}

.price-card__term {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.64);
    margin: 0;
    white-space: nowrap;
}

.price-card__price {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    font-size: 52px;
    font-weight: 600;
    line-height: 1;
    color: #ffffff;
    letter-spacing: -0.01em;
    white-space: nowrap;
    margin: 0;
}

.price-card__unit {
    margin-left: 4px;
    font-size: calc(0.28em + 2px);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.78);
    letter-spacing: 0;
    flex-shrink: 0;
}

.price-card__tax {
    margin-top: 0px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.42);
    text-align: right;
}

.price-card--featured .price-card__term,
.price-card--featured .price-card__price {
    color: #ffffff;
}

.price-card--featured .price-card__tax {
    color: rgba(255, 255, 255, 0.56);
}

.price-options-panel {
    margin-top: 10px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.price-options-panel__block {
    text-align: left;
    color: rgba(255, 255, 255, 0.68);
}

.option-label {
    display: inline-block;
    font-weight: 700;
    color: #ffffff;
}

.price-side-grid {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.price-side-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.price-side-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.price-side-item:first-child {
    padding-top: 0;
}

.price-side-label-col {
    flex: 0 0 160px;
    text-align: left;
}

.price-side-amount-col {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 32px;
}

.price-item-label {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 100px;
    letter-spacing: 0.1em;
    line-height: 1;
    white-space: nowrap;
}

.price-amount-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price-huge-initial {
    color: #FFFFFF;
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
}

.price-huge {
    color: #FFFFFF;
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
}

.price-huge small {
    font-size: 14px;
    font-weight: 700;
    margin-left: 0px;
}

.price-tax-note {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
    line-height: 1;
}

.price-header {
    width: 100%;
    margin-bottom: 48px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.price-header .section-title-white,
.price-header .section-subtitle {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.option-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 10px 0 0 !important;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.68);
}

.option-list li {
    list-style: none !important;
    padding: 0 !important;
    display: block !important;
}



/* Options Box */
.plan-options-box {
    margin-top: 20px;
    padding: 20px;
    background: #ffffff0f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    text-align: left;
}

.options-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

.options-info {
    width: 100%;
}

.sub-plan-info {
    width: 100%;
    text-align: left;
}



@media (max-width: 991px) {
    .price-plans-wrap {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .price-card--featured {
        box-shadow: 0 0 0 1px rgba(76, 154, 255, 0.18), 0 14px 32px rgba(0, 0, 0, 0.2);
    }
}





/* Price Header */



/* Plan Variant List (Added for detailed info) */
.plan-info-list-box {
    margin: 24px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
}

.plan-variant-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-variant-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.variant-name {
    font-size: 14px;
    font-weight: 700;
    color: #4C9AFF;
}

.variant-detail {
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
}

.variant-detail strong {
    font-size: 1.1em;
}

.text-blue {
    color: #4C9AFF !important;
}

@media (max-width: 767px) {
    .variant-detail {
        font-size: 15px;
    }
}



.price-notes-wrap {
    margin-top: 12px;
    text-align: left;
}

.price-note-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    text-align: left;
}

/* Agency CTA */
.price-agency-cta {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.agency-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    min-width: 280px;
    /* PCでの幅を揃える */
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    border-radius: 100px;
    transition: all 0.3s ease;
    line-height: 1;
    /* Added */
}

.line-button {
    background-color: #06C755 !important;
    border-color: #06C755 !important;
    color: #FFFFFF !important;
}

.line-button:hover {
    background-color: #05b34c !important;
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
}

.line-icon-img {
    width: 24px;
    height: auto;
    margin-right: 12px;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .price-agency-cta {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }

    .agency-cta-button {
        font-size: 15px;
        padding: 12px 12px;
        width: 100%;
        max-width: 320px;
    }
}

.agency-cta-button:hover {
    background: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
}

.agency-cta-button .arrow {
    margin-left: 12px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: filter 0.3s ease;
}

.agency-cta-button:hover .arrow {
    filter: invert(1);
    /* Switch arrow color on hover */
}

/* Separator Line */
.price-separator {
    display: none;
}


/* FAQ Section */
.faq-section {
    padding: 100px 0 40px;
    background-color: #12161F;
}



.plan-toggle {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px;
    border-radius: 100px;
    display: flex;
    position: relative;
    width: fit-content;
    gap: 0;
}

.toggle-pill {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: #FFFFFF;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
}

.toggle-btn {
    background: none;
    border: none;
    flex: 1;
    padding: 12px 0;
    min-width: 140px;
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
}

.toggle-btn.active {
    color: #1A1A1A;
}

.discount-badge-img {
    position: absolute;
    top: -45px;
    right: -30px;
    width: 80px;
    height: auto;
    z-index: 10;
    pointer-events: none;
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 60px;
}

.faq-tab-btn {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    /* Added */
}

.faq-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.faq-tab-btn.active {
    background: #007AFF;
    border-color: #007AFF;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item.is-collapsed {
    display: none;
}

.faq-item {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px 20px;
    color: #333333;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.faq-item.hide {
    display: none;
}

.faq-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.faq-more-wrap.is-hidden {
    display: none;
}

.faq-more-btn {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.faq-more-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.faq-question {
    display: flex;
    gap: 8px;
    /* 15pxから8pxに微調整 */
    align-items: center;
    margin-bottom: 12px;
    /* 15pxから12pxに */
}

.q-label {
    font-size: 20px;
    font-weight: 700;
    color: #007AFF;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
}

.faq-answer {
    display: flex;
    gap: 15px;
    padding-left: 0;
}

.a-label {
    font-size: 20px;
    font-weight: 700;
    color: #718096;
    /* 薄いグレーから濃いグレーへ調整 */
}

.faq-answer p {
    font-size: 15px;
    line-height: 1.8;
    color: #444444;
}

.faq-answer a {
    color: #007AFF;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.faq-answer a:hover {
    color: #007AFF;
    opacity: 0.85;
}

@media (max-width: 767px) {
    .faq-item {
        padding: 24px;
    }

    .faq-question h3 {
        font-size: 16px;
    }
}

/* Final CTA Section */
.final-cta-section {
    padding: 60px 0px 30px;
    background-image: url('img/fv_background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta-content {
    max-width: 540px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .final-cta-section {
        background-attachment: scroll !important;
        background-image: url('img/fv_background_sp.jpg');
        /* スマホ専用背景 */
        background-position: center bottom;
    }
}




/* Footer Section */

.final-subtext-wrap {
    margin-bottom: 24px;
    margin-top: 24px;
}

.final-subtext-img {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Footer Section */
.footer {
    padding: 40px 0 40px;
    background-color: #10151E;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px 15px;
    /* 30pxから縮小して、仕切り線との距離を適正化 */
    margin-bottom: 30px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-nav a:not(:last-child)::after {
    content: "|";
    margin-left: 15px;
    /* 仕切り線の左側の余白 */
    opacity: 0.4;
    font-size: 10px;
    /* 線を少し小さくして上品に */
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    /* 線はクリック不可に */
}

.footer-nav a:hover {
    color: #007aff;
}

.copyright {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@media (max-width: 767px) {

    .final-badges-row {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .footer-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px 10px;
        /* 仕切り線があるためさらに間隔を詰め */
        text-align: left;
    }

    .footer-nav a:not(:last-child)::after {
        margin-left: 10px;
        /* スマホ用に余白を少し詰め */
    }

    .footer-nav a {
        font-size: 12px;
    }
}

.section-subtitle-dark {
    font-size: 18px;
    letter-spacing: 0.2em;
    color: rgba(0, 0, 0, 0.4);
    margin-top: 0px;
    font-weight: 700;
    text-align: center;
    display: block;
}

/* Modal Popup Styles */
@keyframes modalOverlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalContentPopIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes movingGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 24px 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    /* Two backgrounds for gradient border */
    background-image: linear-gradient(#fff, #fff), linear-gradient(45deg, #007aff, #00c6ff, #4facfe, #0052d4, #007aff);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border: 4px solid transparent;

    width: 100%;
    max-width: 560px;
    padding: 16px 32px 24px;
    margin: auto;
    border-radius: 28px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);

    /* Animation / Transition state */
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;

    background-size: 100%, 400% 400%;
}

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

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

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

.modal-overlay.is-active .modal-content {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: movingGradientBorder 8s ease infinite;
}

.modal-close {
    position: absolute;
    top: 6px;
    right: 12px;
    background: none;
    border: none;
    font-size: 36px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

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

.modal-header {
    text-align: center;
    margin-bottom: 12px;
}

.modal-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #007AFF 0%, #00C6FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.modal-title--plain {
    background: none;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: #1f2937;
    background-clip: border-box;
    color: #1f2937;
}

.modal-subtitle {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.account-info-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(0, 122, 255, 0.1);
}

.account-info-card__icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007AFF;
    flex: 0 0 24px;
    margin-top: 1px;
}

.account-info-card__icon i {
    font-size: 16px;
}

.account-info-card__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: #007AFF;
}

.account-info-card__text {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.5;
    color: #555;
}

.account-success-card {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(34, 197, 94, 0.08);
}

.account-success-card__icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #16a34a;
    color: #ffffff;
    flex: 0 0 24px;
}

.account-success-card__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: #1f2937;
}

.account-success-card__title span {
    font-weight: 400;
    color: #667085;
}

.plan-summary-card {
    display: block;
}

.plan-summary-card__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.plan-summary-card__label {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    color: #007AFF;
}

.plan-summary-card__title {
    margin-top: 4px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    color: #1f2937;
}

.plan-summary-card__price-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 4px;
    text-align: right;
    flex-shrink: 0;
}

.plan-summary-card__price {
    display: block;
    font-size: 28px;
    line-height: 1;
    color: #007AFF;
}

.plan-summary-card__unit {
    display: block;
    font-size: 14px;
    line-height: 1;
    color: #667085;
}

.plan-summary-card__divider {
    height: 1px;
    margin: 12px 0;
    background: rgba(0, 122, 255, 0.18);
}

.plan-summary-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
    line-height: 1.5;
    color: #475467;
}

.plan-summary-card__row + .plan-summary-card__row {
    margin-top: 8px;
}

.plan-summary-card__row strong {
    font-size: 18px;
    color: #16a34a;
}

.plan-summary-card__row--subtle {
    font-size: 13px;
    color: #667085;
}

.plan-summary-card__row--option {
    font-size: 15px;
    color: #475467;
}

.plan-summary-card__row--option span:last-child {
    white-space: nowrap;
}

.payment-secure-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 20px;
    color: #667085;
}

.payment-secure-note i {
    font-size: 14px;
    color: #667085;
    flex: 0 0 auto;
}

.payment-secure-note p {
    font-size: 11px;
    line-height: 1.4;
}

.payment-input-wrap {
    position: relative;
}

.payment-input-wrap input {
    padding-right: 44px !important;
}

.payment-input-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    font-size: 18px;
    color: #98a2b3;
    pointer-events: none;
}

.payment-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.payment-confirm-card {
    margin: 4px 0 16px;
    padding: 14px 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    background: #ffffff;
}

.payment-confirm-card__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #475467;
}

.payment-confirm-card__item i {
    margin-top: 2px;
    color: #16a34a;
    flex: 0 0 auto;
}

.payment-confirm-card__item p {
    font-size: 13px;
    line-height: 1.6;
}

.payment-confirm-card__item strong {
    color: #344054;
}

.form-group--half {
    min-width: 0;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #333;
}

.required-badge {
    background-color: #ff0062;
    color: #FFFFFF;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 700;
    line-height: 1.2;
}

.optional-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(0, 122, 255, 0.08);
    color: #007AFF;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.error-text {
    display: none;
    color: #ff0062;
    font-size: 12px;
    font-weight: 700;
    margin-top: 6px;
    letter-spacing: 0;
}

.form-group.has-error input {
    border-color: #ff0062 !important;
    background-color: #fffafb;
}

.form-group.has-error .error-text {
    display: block;
}


.form-group input:not([type="checkbox"]) {
    width: 100%;
    padding: 12px;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    font-size: 16px;
    background: #F7F7F7;
    transition: all 0.3s ease;
}

.form-group input:not([type="checkbox"])::placeholder {
    color: rgba(0, 0, 0, 0.36);
}

.form-group input:not([type="checkbox"]):focus {
    outline: none;
    border-color: #007AFF;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.form-option-box {
    width: 100%;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    background: #FFFFFF;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.form-option-box:has(input[type="checkbox"]:checked) {
    background: rgba(0, 122, 255, 0.05);
    border-color: rgba(0, 122, 255, 0.18);
}

.form-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin: 0;
    border: 1.5px solid rgba(0, 122, 255, 0.35);
    border-radius: 6px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.form-checkbox input[type="checkbox"]::before {
    content: "";
    display: block;
    width: 10px;
    height: 6px;
    border-left: 2px solid #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
    transform: translateY(-1px) rotate(-45deg) scale(0);
    transform-origin: center;
    transition: transform 0.16s ease;
    margin: 0;
}

.form-checkbox input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #1E88FF 0%, #007AFF 100%);
    border-color: #007AFF;
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.22);
}

.form-checkbox {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-option-box .form-checkbox {
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0;
    padding: 10px;
}

.form-option-box .form-checkbox {
    cursor: pointer;
}

.form-option-box .form-checkbox span {
    font-size: 16px;
    font-weight: 400;
    color: #555;
    line-height: 1.5;
}

.form-checkbox input[type="checkbox"]:checked::before {
    transform: translateY(-1px) rotate(-45deg) scale(1);
}

.form-checkbox input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.16);
}

.form-checkbox label {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    cursor: pointer;
}

.form-checkbox label a {
    color: #007AFF;
    text-decoration: underline;
}

.form-checkbox--terms {
    margin-top: 16px;
    margin-bottom: 16px;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #007AFF;
    color: #FFF;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
    line-height: 1.6;
}

.submit-btn.loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    pointer-events: none;
    opacity: 0.92;
}

.submit-btn.loading::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: submitSpinner 0.75s linear infinite;
}

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

.submit-btn:hover {
    background: #0056B3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

@media (max-width: 767px) {
    .submit-btn {
        width: 100%;
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .account-success-card {
        padding: 10px 12px;
    }

    .account-success-card__title {
        font-size: 13px;
    }

    .plan-summary-card {
        padding: 12px 14px;
    }

    .plan-summary-card__title {
        font-size: 16px;
    }

    .plan-summary-card__price {
        font-size: 24px;
    }

    .plan-summary-card__row {
        font-size: 14px;
    }

    .plan-summary-card__row strong {
        font-size: 16px;
    }

    .plan-summary-card__row--subtle {
        font-size: 12px;
    }

    .payment-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .payment-confirm-card {
        padding: 12px 14px;
    }

    .payment-confirm-card__item {
        gap: 10px;
    }

    .payment-confirm-card__item p {
        font-size: 12px;
    }
}

.form-note {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-top: 12px;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 20px 0;
}

.success-icon-wrap {
    margin-bottom: 20px;
}

.success-msg-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.success-msg-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

.close-success-btn {
    padding: 12px 30px;
    background: #12161F;
    color: #FFF;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
}

/* Modal Flow */
.modal-flow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 0;
}

.flow-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.flow-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 1px solid #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.flow-arrow {
    padding-top: 26px;
    color: #007AFF;
    font-size: 34px;
    opacity: 1;
}

.flow-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    white-space: nowrap;
}

.flow-subtitle {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #007aff;
    margin-top: 0;
    white-space: nowrap;
}

/* ============================================================
  モバイル設定 (Mobile Settings) - max-width: 767px
============================================================ */
@media (max-width: 767px) {
    .form-option-box .form-checkbox span {
        font-size: 14px;
    }

    .header {
        height: 64px;
    }

    /* Hero Section Bubble */
    .cta-bubble {
        top: 6px;
    }

    /* Responsive Image Swap (PC -> SP) */
    .hero-bg {
        background-image: url('img/fv_background_sp.jpg');
        /* スマホ専用背景 */
        background-attachment: scroll !important;
        /* iPhone等の実機対策: 固定を解除 */
        background-position: center bottom;
    }

    .logo-img {
        content: url('img/header-logo_sp.png');
        /* スマホ専用ヘッダーロゴ */
        height: 32px;
        width: auto;
    }

    .header-cta-img {
        content: url('img/header-btn_sp.png');
        /* スマホ専用ヘッダーボタン */
        height: 36px;
        width: auto;
    }

    .cta-img-main {
        content: url('img/cta-btn_sp.png');
        /* スマホ専用CTAボタン */
    }

    .mein-text-img {
        content: url('img/mein-text_sp.png');
        /* スマホ専用メインキャッチ */
    }

    .sub-text-img {
        content: url('img/sub-text_sp.png');
        /* スマホ専用サブキャッチ */
    }

    #caseImg1 {
        content: url('img/case_1_sp.png');
    }

    #caseImg2 {
        content: url('img/case_2_sp.png');
    }

    #caseImg3 {
        content: url('img/case_3_sp.png');
    }

    #caseImg4 {
        content: url('img/case_4_sp.png');
    }

    #caseImg5 {
        content: url('img/case_5_sp.png');
    }

    .cta-inner {
        padding-top: 28px;
        margin-bottom: 0px;
    }

    .phone-img {
        width: 80vw;
        max-width: 320px;
    }

    /* Survey Section */
    .survey-section {
        padding: 48px 0;
    }

    .survey-q-title {
        margin-bottom: 32px;
    }

    .survey-intro {
        font-size: 22px;
    }

    /* Solution & Titles */
    .solution-section {
        padding: 64px 0;
    }

    .bubble-track-left .bubble-set {
        animation: scrollLeft 26s linear infinite !important;
        /* スマホ：落ち着いて読める速度へ調整 */
    }

    .bubble-track-right .bubble-set {
        animation: scrollRight 30s linear infinite !important;
        /* スマホ：下段のリズム調整 */
    }

    .bubble-row img {
        height: 142px;
        /* スマホ最適化：142px */
        margin: 0 10px;
        will-change: transform;
        flex-shrink: 0;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .section-subtitle,
    .section-subtitle-dark {
        font-size: 14px;
    }

    .case-header,
    .testimonials-header {
        margin-bottom: 48px;
    }

    /* Features Section */
    .feature-title {
        font-size: 22px;
    }

    .feature-desc {
        font-size: 15px;
        line-height: 1.8;
        text-align: left;
    }

    /* Testimonials */
    .testimonials-section {
        padding: 64px 0;
    }

    .testimonials-grid,
    .grid-3col {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .card-title {
        font-size: 17px;
        margin-bottom: 8px;
    }

    .card-text {
        font-size: 15px;
        line-height: 1.8;
        text-align: left;
    }

    /* Price Section */
    .price-section {
        padding: 64px 0;
        background-attachment: scroll !important;
        background-image: url('img/body-bg_sp.jpg');
        background-repeat: repeat;
        background-size: 100% auto;
    }

    .price-header {
        margin-bottom: 40px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .price-plans-wrap {
        margin-top: 0px;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .price-intro {
        margin-top: 14px;
        font-size: 15px;
        line-height: 1.8;
    }

    .price-card {
        min-height: auto;
        padding: 22px 18px 20px;
    }

    .price-card__top {
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
        gap: 10px;
        margin-bottom: 10px;
    }

    .price-card__label {
        font-size: 20px;
    }

    .price-card__lead {
        min-height: 0;
        margin-bottom: 0px;
        font-size: 15px;
    }

    .price-card__summary {
        padding: 6px 10px 4px;
        border-radius: 14px;
    }

    .price-card__summary-row span,
    .price-card__summary-row strong {
        font-size: 14px;
    }

    .price-card__features {
        margin-top: 18px;
        gap: 2px;
    }

    .price-card__features li {
        font-size: 14px;
    }

    .price-card__features .price-card__note {
        font-size: 12px;
    }

    .price-card__cta {
        min-height: 60px;
        margin-top: 16px;
        padding: 0px 18px;
        border-radius: 999px;
        font-size: 18px;
    }

    .price-card__capacity {
        margin-top: 14px;
    }

    .price-card__capacity-head span,
    .price-card__capacity-head strong {
        font-size: 14px;
    }

    .price-card__capacity-bar {
        height: 8px;
    }

    .price-card__headline {
        gap: 10px;
    }

    .price-card__price {
        font-size: 44px;
    }

    .price-card__term {
        font-size: 12px;
    }

    .price-options-panel {
        margin-top: 18px;
        padding: 0;
    }

    .option-list {
        font-size: 13px;
        line-height: 1.5;
    }

    /* Security */
    .security-section {
        padding: 64px 0;
    }

    .security-lead {
        margin-top: 14px;
        font-size: 15px;
        line-height: 1.8;
    }

    .security-item-text {
        font-size: 15px;
        line-height: 1.8;
        text-align: left;
        margin: 0px 20px;
        /* 余白を追加 */
    }

    /* FAQ */
    .faq-section {
        padding: 64px 0;
    }

    .faq-tabs {
        margin-bottom: 40px;
    }

    .faq-tab-btn {
        padding: 8px 16px;
        font-size: 15px;
    }

    .faq-item {
        padding: 16px;
    }

    .faq-more-wrap {
        margin-top: 18px;
    }

    .faq-more-btn {
        font-size: 13px;
        padding: 9px 18px;
    }

    .q-label,
    .a-label {
        font-size: 18px;
    }

    .faq-question h3 {
        font-size: 15px;
    }

    .faq-answer p {
        font-size: 14px;
        line-height: 1.8;
        text-align: left;
    }

    /* Modal Flow for Mobile */
    .modal-content {
        padding: 40px 15px;
    }

    .flow-icon-wrap {
        width: 64px;
        height: 64px;
    }

    .flow-icon-wrap lord-icon {
        width: 40px !important;
        height: 40px !important;
    }

    .modal-title {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .modal-content {
        padding: 28px 16px;
    }

    .flow-title {
        font-size: 13px;
    }

    .flow-arrow {
        padding-top: 18px;
        font-size: 24px;
    }


    /* Final CTA */
    .final-cta-content {
        margin: 0 20px;
    }
}

/* Floating Button */
.float-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateY(20px);
    cursor: pointer;
}

.float-btn img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.float-btn:hover img {
    transform: scale(1.05);
}

.float-btn.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .float-btn {
        right: 20px;
        bottom: 20px;
        width: 180px;
    }
}

@media (max-width: 767px) {
    .float-btn {
        display: none !important;
        /* SPでは非表示 */
    }
}
