/**
 * Styles for the First-time Visitors Page (初めての方へ)
 * Figma Frame: 3239:1007
 */

/* --- Sub MV (Subpage Main Visual) --- */
.sub-mv {
    position: relative;
    width: 100%;
    margin-top: 170px;
    padding: 0;
}

.sub-mv-container {
    width: 1520px;
    margin: 0 auto;
    position: relative;
}

.sub-mv-image-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 30px;
    overflow: hidden;
}

.sub-mv-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.sub-mv-heading-card {
    position: absolute;
    left: 120px;
    bottom: 0;
    background-color: #f1f1f1;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    padding: 24px 64px 24px 48px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-sizing: border-box;
    z-index: 10;
}

.sub-mv-heading-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sub-mv-leaf-decor {
    width: 20px;
    height: 20px;
    background-color: #2faa87;
    border-top-left-radius: 30px;
    border-top-right-radius: 2px;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 30px;
    display: inline-block;
    flex-shrink: 0;
}

.sub-mv-en-title {
    font-family: 'Cormorant Infant', serif;
    font-weight: 400;
    font-size: 56px;
    line-height: 1.3;
    color: #63574d;
    letter-spacing: 1.68px;
    margin: 0;
}

.sub-mv-jp-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.6;
    color: #2faa87;
    letter-spacing: 1px;
    margin: 0;
    padding-left: 27px;
}

/* --- Page Layout & Container --- */
.first-page-body {
    background-color: #faf9f6;
    padding-top: 120px;
    padding-bottom: 120px;
    box-sizing: border-box;
    width: 100%;
}

.first-page-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Top Notice --- */
.first-top-notice {
    width: 100%;
    margin-bottom: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.first-top-notice-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.8;
    color: #333333;
    text-align: center;
    margin: 0;
}

.first-intro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 320px;
    height: 59px;
    background-color: #63574d;
    border-radius: 53.231px;
    text-decoration: none;
    gap: 17px;
    flex-shrink: 0;
    margin: 0;
    box-shadow: 0px 0px 2.129px rgba(0, 0, 0, 0.05);
}

.first-intro-btn-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 19.163px;
    color: #ffffff;
    letter-spacing: 0.9582px;
    line-height: 1.6;
    margin: 0;
}

.first-intro-btn-arrow {
    width: 22.357px;
    height: 22.357px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    background-color: transparent;
}

.first-intro-btn-arrow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: rotate(90deg);
}


/* --- Reusable Section Card Layout --- */
.first-card {
    width: 1520px;
    background-color: #ffffff;
    border-radius: 30px;
    padding: 48px 120px;
    margin-bottom: 80px;
    box-sizing: border-box;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.first-card-left {
    width: 600px;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.first-card-right {
    width: 600px;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
}

.first-card-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* --- Headings --- */
.first-heading-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
}

.first-heading-row.align-start {
    align-items: flex-start;
}

.first-heading-row.align-start .first-heading-leaf {
    margin-top: 10px;
}

.first-heading-leaf {
    width: 20px;
    height: 20px;
    background-color: #2faa87;
    border-top-left-radius: 30px;
    border-top-right-radius: 2px;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 30px;
    display: inline-block;
    flex-shrink: 0;
}

.first-heading-title {
    font-family: 'Shippori Mincho', serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 1.3;
    color: #63574d;
    letter-spacing: 0.96px;
    margin: 0;
}

/* --- Section 1: Intro Text --- */
.first-intro-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-left: 30px;
}

.first-intro-p {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #575757;
    letter-spacing: 0.5px;
    margin: 0;
    text-align: justify;
}

.first-intro-highlights {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.first-intro-highlight-item {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.6;
    color: #2faa87;
    letter-spacing: 0.5px;
    margin: 0;
}

.first-intro-bold-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #575757;
    letter-spacing: 0.5px;
    margin: 0;
}

.highlight-green {
    color: #2faa87;
}

.first-intro-bold-text .highlight-green {
    font-weight: 700;
    color: #2faa87;
}

/* --- Section 2: Philosophy --- */
.first-philosophy-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.first-philosophy-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.6;
    color: #2faa87;
    letter-spacing: 0.5px;
}

.first-philosophy-bullet {
    width: 6px;
    height: 6px;
    background-color: #2faa87;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* --- Section 3: Why Choose Us (Reason Grid) --- */
.first-reason-section {
    width: 1520px;
    margin-bottom: 80px;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 120px 120px;
    overflow: visible;
}

.first-reason-bg-curve {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1920px;
    height: 855px;
    pointer-events: none;
    z-index: 1;
}

.first-reason-bg-curve img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.first-reason-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
    margin-bottom: 80px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.first-reason-title-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.first-reason-en-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.first-reason-en-title {
    font-family: 'Cormorant Infant', serif;
    font-weight: 400;
    font-size: 56px;
    line-height: 1.3;
    color: #63574d;
    letter-spacing: 1.68px;
    margin: 0;
}

.first-reason-jp-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.6;
    color: #2faa87;
    letter-spacing: 1px;
    margin: 0;
    padding-left: 28px;
}

.first-reason-lead {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #575757;
    letter-spacing: 0.5px;
    margin: 0;
    padding-left: 30px;
}

.first-reason-grid {
    display: flex;
    flex-direction: column;
    gap: 64px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.first-reason-row {
    display: flex;
    justify-content: center;
    gap: 64px;
    width: 100%;
}

.first-reason-card {
    background-color: #ffffff;
    border-radius: 30px;
    width: 468px;
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 32px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.03);
}

.first-reason-img-wrapper {
    position: relative;
    width: 420px;
    height: 269px;
    flex-shrink: 0;
    border-radius: 20px;
}

.first-reason-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: inherit;
}

/* Overlapping leaf-shaped number badge */
.first-reason-badge {
    position: absolute;
    left: -31px;
    top: -30px;
    width: 113px;
    height: 113px;
    background-color: #2faa87;
    border-top-left-radius: 48px;
    border-top-right-radius: 11px;
    border-bottom-left-radius: 11px;
    border-bottom-right-radius: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.first-reason-badge-num {
    font-family: 'Cormorant Infant', serif;
    font-weight: 400;
    font-size: 48px;
    color: #ffffff;
    letter-spacing: 1.44px;
    line-height: 1.3;
    margin-top: -6px;
    margin-left: -6px;
}

.first-reason-card-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 10px;
    text-align: center;
}

.first-reason-card-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.6;
    color: #2faa87;
    letter-spacing: 1.2px;
    margin: 0;
}

.first-reason-card-desc {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #575757;
    letter-spacing: 0.5px;
    margin: 0;
    text-align: justify;
}

/* Specific overlay image styling for Card 03 */
.first-reason-img-overlay-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.first-reason-overlay-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Section 4: Common Worries & LINE button --- */
.first-worries-bullets {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.first-worries-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.6;
    color: #2faa87;
    letter-spacing: 0.5px;
}

.first-worries-bullet {
    width: 6px;
    height: 6px;
    background-color: #2faa87;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.first-line-btn-wrapper {
    margin-top: 0;
}

.first-line-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 55px;
    background-color: #575757;
    border-radius: 50px;
    padding: 12px 40px 12px 32px;
    box-sizing: border-box;
    text-decoration: none;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.first-line-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.first-line-btn-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.first-line-btn-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

/* --- Section 5: Reservation --- */
.first-reserve-intro {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #575757;
    letter-spacing: 0.5px;
    margin: 0;
}

.first-reserve-intro span.highlight-green {
    font-weight: 700;
    color: #2faa87;
}

.first-reserve-bullets {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.first-reserve-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.6;
    color: #2faa87;
    letter-spacing: 0.5px;
}

.first-reserve-bullet {
    width: 6px;
    height: 6px;
    background-color: #2faa87;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.first-reserve-btn-row {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 0;
    flex-wrap: wrap;
}

.first-reserve-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 55px;
    border-radius: 50px;
    padding: 12px 40px 12px 32px;
    box-sizing: border-box;
    text-decoration: none;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.first-reserve-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.first-reserve-btn.btn-tel {
    background-color: #2faa87;
}

.first-reserve-btn.btn-web {
    background-color: #63574d;
}

.first-reserve-btn-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.first-reserve-btn-icon.btn-icon-calendar {
    width: 32px;
    height: 32px;
}

.first-reserve-btn-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.first-reserve-btn-text.large-tel {
    font-size: 20px;
    letter-spacing: 0.5px;
}

/* --- Section 6: Treatment Flow --- */
.first-flow-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 120px 120px;
}

.first-flow-header-intro {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #575757;
    letter-spacing: 0.5px;
    text-align: center;
    margin: 0 0 64px 0;
}

.first-flow-header-intro span.highlight-green {
    font-weight: 600;
    color: #2faa87;
}

.first-flow-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.first-flow-phase {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.first-flow-phase-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.6;
    color: #2faa87;
    letter-spacing: 1.2px;
    margin: 0;
    text-align: center;
}

.first-flow-phase-intro {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #575757;
    letter-spacing: 0.5px;
    text-align: center;
    margin: 0;
}

.first-flow-phase-intro .highlight-green {
    color: #2faa87;
    font-weight: 600;
}

.first-flow-steps-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0px;
    align-items: center;
    width: 100%;
}

.first-flow-step-card {
    background-color: #f1f1f1;
    border-radius: 30px;
    width: 1087px;
    min-height: 158px;
    padding: 16px 56px 16px 16px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 40px;
}

.first-flow-step-card.large-height {
    min-height: 262px;
}

.first-flow-icon-circle {
    width: 113px;
    height: 113px;
    background-color: #ffffff;
    border-radius: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Icon layout styles */
.flow-icon-reception {
    width: 52px;
    height: 61px;
    object-fit: contain;
}

.flow-icon-counseling-wrapper {
    position: relative;
    width: 90px;
    height: 70px;
}

.flow-icon-counseling-1 {
    position: absolute;
    left: 6px;
    bottom: 3px;
    width: 60px;
    height: 64px;
}

.flow-icon-counseling-2 {
    position: absolute;
    right: 2px;
    top: 5px;
    width: 32px;
    height: 29px;
}

.flow-icon-exam-wrapper {
    position: relative;
    width: 70px;
    height: 57px;
}

.flow-icon-exam-bg {
    width: 70px;
    height: 57px;
}

.flow-icon-exam-icon {
    position: absolute;
    left: 18px;
    top: 11px;
    width: 35px;
    height: 34px;
}

.flow-icon-exam-decor-1 {
    position: absolute;
    left: 3px;
    top: 5px;
    width: 6px;
    height: 45px;
}

.flow-icon-exam-decor-2 {
    position: absolute;
    right: 3px;
    top: 5px;
    width: 6px;
    height: 45px;
}

.flow-icon-explanation {
    width: 62px;
    height: 58px;
}

.flow-icon-result-wrapper {
    position: relative;
    width: 90px;
    height: 70px;
}

.flow-icon-result-bg {
    position: absolute;
    left: 6px;
    top: 3px;
    width: 60px;
    height: 64px;
}

.flow-icon-result-bubble {
    position: absolute;
    right: 2px;
    top: 5px;
    width: 32px;
    height: 29px;
}

.flow-icon-treatment {
    width: 66px;
    height: 66px;
}

.flow-icon-maintenance-wrapper {
    position: relative;
    width: 51px;
    height: 60px;
}

.flow-icon-maintenance-1 {
    position: absolute;
    left: 5px;
    top: 4px;
    width: 8px;
    height: 52px;
}

.flow-icon-maintenance-2 {
    position: absolute;
    left: 20px;
    top: 4px;
    width: 12px;
    height: 53px;
}

.flow-icon-maintenance-3 {
    position: absolute;
    left: 38px;
    top: 4px;
    width: 9px;
    height: 52px;
}

.first-flow-text-area {
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

.first-flow-step-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.6;
    color: #2faa87;
    letter-spacing: 1px;
    margin: 0;
}

.first-flow-step-desc {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #575757;
    letter-spacing: 0.5px;
    margin: 0;
    text-align: justify;
}

.first-flow-step-desc span.highlight-green {
    font-weight: 600;
    color: #2faa87;
}

.first-flow-step-bullets {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 12px 0;
    padding: 0;
    list-style: none;
}

.first-flow-bullet-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.6;
    color: #2faa87;
    letter-spacing: 0.5px;
}

.first-flow-bullet-dot {
    width: 6px;
    height: 6px;
    background-color: #2faa87;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* Connecting Arrow */
.first-flow-arrow-container {
    width: 1087px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.first-flow-arrow-img {
    width: 29px;
    height: 20px;
    object-fit: contain;
    transform: rotate(180deg);
}

/* --- Section 7: Estimated Costs --- */
.first-cost-price-box {
    margin-top: 0;
}

.first-cost-price {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.6;
    color: #2faa87;
    letter-spacing: 0.5px;
    margin: 0;
}

.first-cost-notes {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #575757;
    letter-spacing: 0.8px;
    margin-top: 0;
}

/* --- Section 8: What to Bring --- */
.first-bring-bullets {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.first-bring-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.6;
    color: #2faa87;
    letter-spacing: 0.5px;
}

.first-bring-bullet {
    width: 6px;
    height: 6px;
    background-color: #2faa87;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.first-bring-outro {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #575757;
    letter-spacing: 0.5px;
    margin: 0;
}

/* --- Section 9: Bottom CTA Banner (Text) --- */
.first-cta-card {
    margin-bottom: 40px;
}

.first-cta-p {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #575757;
    letter-spacing: 0.5px;
    margin: 0;
    text-align: justify;
}




/* =========================================
   RESPONSIVE MEDIA QUERIES
   ========================================= */

@media (max-width: 1800px) {

    .first-flow-content {
        gap: 2.083vw;
    }

    .first-top-notice {
        margin-bottom: 6.25vw;
        gap: 2.083vw;
    }

    .first-top-notice-text {
        font-size: 1.042vw;
    }

    .first-intro-btn {
        width: 16.667vw;
        height: 3.073vw;
        border-radius: 2.772vw;
        gap: 0.887vw;
    }

    .first-intro-btn-arrow {
        width: 1.164vw;
        height: 1.164vw;
        background-color: transparent;
    }

    .first-intro-btn-text {
        font-size: 0.99vw;
    }


    /* Sub MV Scaling */
    .sub-mv {
        margin-top: 8.854vw;
    }

    .sub-mv-container {
        width: 79.167vw;
    }

    .sub-mv-image-wrapper {
        height: 20.833vw;
        border-radius: 1.563vw;
    }

    .sub-mv-heading-card {
        left: 6.25vw;
        border-top-left-radius: 1.563vw;
        border-top-right-radius: 1.563vw;
        padding: 1.25vw 3.333vw 1.25vw 2.5vw;
        gap: 0.781vw;
    }

    .sub-mv-heading-title-row {
        gap: 0.417vw;
    }

    .sub-mv-en-title {
        font-size: 2.917vw;
    }

    .sub-mv-jp-subtitle {
        font-size: 1.042vw;
        padding-left: 1.4vw;
    }

    /* Core Layouts Scaling */
    .first-page-body {
        padding-top: 6.25vw;
        padding-bottom: 6.25vw;
    }

    .first-card {
        width: 79.167vw;
        /* Matches 1520px */
        padding: 2.5vw 6.25vw;
        margin-bottom: 4.167vw;
        border-radius: 1.563vw;
    }

    .first-card-left {
        width: 31.25vw;
        /* Matches 600px */
        padding-top: 2.083vw;
    }

    .first-card-right {
        width: 31.25vw;
        /* Matches 600px */
        height: 31.25vw;
        border-radius: 1.042vw;
    }

    .first-heading-row {
        margin-bottom: 2.083vw;
        gap: 0.417vw;
    }

    .first-heading-row.align-start {
        align-items: flex-start;
    }

    .first-heading-row.align-start .first-heading-leaf {
        margin-top: 0.521vw;
    }



    .first-heading-title {
        font-size: 1.667vw;
        /* 32px */
        letter-spacing: 0.05vw;
    }

    .first-intro-content {
        gap: 2.083vw;
        padding-left: 1.563vw;
    }

    .first-intro-p,
    .first-intro-highlight-item,
    .first-intro-bold-text,
    .first-philosophy-item,
    .first-worries-item,
    .first-reserve-intro,
    .first-reserve-item,
    .first-flow-header-intro,
    .first-flow-phase-intro,
    .first-flow-step-desc,
    .first-flow-bullet-item,
    .first-bring-item,
    .first-bring-outro,
    .first-cta-p,
    .common-reservation-intro {
        font-size: 0.938vw;
        /* 18px */
        letter-spacing: 0.026vw;
    }

    .first-philosophy-list,
    .first-bring-bullets {
        gap: 0.833vw;
    }

    .first-worries-bullets {
        gap: 0.521vw;
    }

    .first-reserve-bullets {
        gap: 0.521vw;
    }

    .first-philosophy-bullet,
    .first-worries-bullet,
    .first-reserve-bullet,
    .first-flow-bullet-dot,
    .first-bring-bullet {
        width: 0.313vw;
        height: 0.313vw;
    }

    /* Section 3: Reason Scaling */
    .first-reason-section {
        width: 79.167vw;
        padding: 6.25vw 6.25vw;
        margin-bottom: 4.167vw;
    }

    .first-reason-bg-curve {
        width: 100vw;
        height: 44.531vw;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .first-reason-header {
        gap: 3.333vw;
        margin-bottom: 4.167vw;
    }

    .first-reason-title-block {
        gap: 0.833vw;
    }

    .first-reason-en-row {
        gap: 0.417vw;
    }

    .first-reason-en-title {
        font-size: 2.917vw;
        /* 56px */
        letter-spacing: 0.088vw;
    }

    .first-reason-jp-subtitle {
        font-size: 1.042vw;
        /* 20px */
        letter-spacing: 0.052vw;
        padding-left: 1.458vw;
    }

    .first-reason-lead {
        font-size: 0.938vw;
        letter-spacing: 0.026vw;
        padding-left: 1.563vw;
    }

    .first-reason-grid {
        gap: 3.333vw;
    }

    .first-reason-row {
        gap: 3.333vw;
    }

    .first-reason-card {
        width: 24.375vw;
        padding: 1.25vw;
        gap: 1.667vw;
        border-radius: 1.563vw;
    }

    .first-reason-img-wrapper {
        width: 21.875vw;
        height: 14.01vw;
        border-radius: 1.042vw;
    }

    .first-reason-badge {
        width: 5.885vw;
        height: 5.885vw;
        border-top-left-radius: 2.5vw;
        border-top-right-radius: 0.573vw;
        border-bottom-left-radius: 0.573vw;
        border-bottom-right-radius: 8.854vw;
        left: -1.615vw;
        top: -1.562vw;
    }

    .first-reason-badge-num {
        font-size: 2.5vw;
        margin-top: -0.3vw;
        margin-left: -0.3vw;
    }

    .first-reason-card-content {
        gap: 2.083vw;
        padding: 0 0.521vw;
    }

    .first-reason-card-title {
        font-size: 1.25vw;
        letter-spacing: 0.062vw;
    }

    .first-reason-card-desc {
        font-size: 0.938vw;
        letter-spacing: 0.026vw;
    }

    /* Section 6: Flow Timeline Scaling */
    .first-flow-card {
        padding: 6.25vw 6.25vw;
    }

    .first-flow-header-intro {
        margin-bottom: 3.333vw;
    }

    .first-flow-phase-title {
        font-size: 1.25vw;
        /* 24px */
        letter-spacing: 0.062vw;
    }

    .first-flow-steps-wrapper {
        gap: 0px;
    }

    .first-flow-step-card {
        width: 56.615vw;
        /* 1087px -> scales with viewport */
        min-height: 8.229vw;
        /* 158px */
        padding: 0.833vw 2.917vw 0.833vw 0.833vw;
        gap: 2.083vw;
        border-radius: 1.563vw;
    }

    .first-flow-step-card.large-height {
        min-height: 13.646vw;
        /* 262px */
    }

    .first-flow-icon-circle {
        width: 5.885vw;
        /* 113px */
        height: 5.885vw;
        border-radius: 1.563vw;
    }

    /* Scaling inner flow icons */
    .flow-icon-reception {
        width: 2.708vw;
        height: 3.177vw;
    }

    .flow-icon-counseling-wrapper {
        width: 4.688vw;
        height: 3.646vw;
    }

    .flow-icon-counseling-1 {
        width: 3.125vw;
        height: 3.333vw;
        left: 0.313vw;
        bottom: 0.156vw;
    }

    .flow-icon-counseling-2 {
        width: 1.667vw;
        height: 1.51vw;
        right: 0.104vw;
        top: 0.26vw;
    }

    .flow-icon-exam-wrapper {
        width: 3.646vw;
        height: 2.969vw;
    }

    .flow-icon-exam-bg {
        width: 3.646vw;
        height: 2.969vw;
    }

    .flow-icon-exam-icon {
        width: 1.823vw;
        height: 1.771vw;
        left: 0.938vw;
        top: 0.573vw;
    }

    .flow-icon-exam-decor-1 {
        width: 0.313vw;
        height: 2.344vw;
        left: 0.156vw;
        top: 0.26vw;
    }

    .flow-icon-exam-decor-2 {
        width: 0.313vw;
        height: 2.344vw;
        right: 0.156vw;
        top: 0.26vw;
    }

    .flow-icon-explanation {
        width: 3.229vw;
        height: 3.021vw;
    }

    .flow-icon-result-wrapper {
        width: 4.688vw;
        height: 3.646vw;
    }

    .flow-icon-result-bg {
        width: 3.125vw;
        height: 3.333vw;
        left: 0.313vw;
        top: 0.156vw;
    }

    .flow-icon-result-bubble {
        width: 1.667vw;
        height: 1.51vw;
        right: 0.104vw;
        top: 0.26vw;
    }

    .flow-icon-treatment {
        width: 3.438vw;
        height: 3.438vw;
    }

    .flow-icon-maintenance-wrapper {
        width: 2.656vw;
        height: 3.125vw;
    }

    .flow-icon-maintenance-1 {
        width: 0.417vw;
        height: 2.708vw;
        left: 0.26vw;
        top: 0.208vw;
    }

    .flow-icon-maintenance-2 {
        width: 0.625vw;
        height: 2.76vw;
        left: 1.042vw;
        top: 0.208vw;
    }

    .flow-icon-maintenance-3 {
        width: 0.469vw;
        height: 2.708vw;
        left: 1.979vw;
        top: 0.208vw;
    }

    .first-flow-text-area {
        gap: 0.833vw;
    }

    .first-flow-step-title {
        font-size: 1.042vw;
        /* 20px */
        letter-spacing: 0.052vw;
    }

    .first-flow-arrow-container {
        width: 56.615vw;
        height: 3.125vw;
    }

    .first-flow-arrow-img {
        width: 1.51vw;
        height: 1.04vw;
    }

    /* Section 7: Cost Scaling */
    .first-cost-price {
        font-size: 0.938vw;
        /* 18px */
    }

    .first-cost-notes {
        font-size: 0.833vw;
        /* 16px */
        margin-top: 0;
    }

    .first-line-btn-text {
        font-size: 0.938vw;
    }

    .first-reserve-btn-text {
        font-size: 0.938vw;
    }

    .first-reserve-btn-text.large-tel {
        font-size: 1.042vw;
    }


    /* Auto-generated PC Liquid (vw) Layout Rules */
    .sub-mv-leaf-decor {
        width: 1.042vw;
        height: 1.042vw;
    }

    .sub-mv-en-title {
        letter-spacing: 0.088vw;
    }

    .sub-mv-jp-subtitle {
        letter-spacing: 0.052vw;
    }

    .first-intro-btn-text {
        letter-spacing: 0.050vw;
    }

    .first-card-left {
        padding-top: 2.083vw;
    }

    .first-card-right {
        height: 31.250vw;
    }

    .first-heading-leaf {
        width: 1.042vw;
        height: 1.042vw;
    }

    .first-heading-title {
        letter-spacing: 0.050vw;
    }

    .first-intro-p {
        letter-spacing: 0.026vw;
    }

    .first-intro-highlights {
        gap: 0.833vw;
    }

    .first-intro-highlight-item {
        letter-spacing: 0.026vw;
    }

    .first-intro-bold-text {
        letter-spacing: 0.026vw;
    }

    .first-philosophy-item {
        gap: 0.417vw;
        letter-spacing: 0.026vw;
    }

    .first-reason-en-title {
        letter-spacing: 0.088vw;
    }

    .first-reason-jp-subtitle {
        letter-spacing: 0.052vw;
    }

    .first-reason-card {
        padding: 1.250vw;
    }

    .first-reason-img-wrapper {
        height: 14.010vw;
    }

    .first-reason-badge-num {
        letter-spacing: 0.075vw;
    }

    .first-worries-item {
        gap: 0.417vw;
        letter-spacing: 0.026vw;
    }

    .first-line-btn {
        gap: 0.833vw;
        height: 2.865vw;
        border-radius: 2.604vw;
        padding: 0.625vw 2.083vw 0.625vw 1.667vw;
    }

    .first-line-btn-icon {
        width: 1.667vw;
        height: 1.667vw;
    }

    .first-line-btn-text {
        letter-spacing: 0.026vw;
    }

    .first-reserve-item {
        gap: 0.417vw;
        letter-spacing: 0.026vw;
    }

    .first-reserve-btn-row {
        gap: 0.833vw;
    }

    .first-reserve-btn {
        gap: 0.833vw;
        height: 2.865vw;
        border-radius: 2.604vw;
        padding: 0.625vw 2.083vw 0.625vw 1.667vw;
    }

    .first-reserve-btn-icon {
        width: 1.458vw;
        height: 1.458vw;
    }

    .first-reserve-btn-icon.btn-icon-calendar {
        width: 1.667vw;
        height: 1.667vw;
    }

    .first-reserve-btn-text {
        letter-spacing: 0.026vw;
    }

    .first-reserve-btn-text.large-tel {
        letter-spacing: 0.031vw;
    }

    .first-flow-header-intro {
        letter-spacing: 0.026vw;
        margin: 0 0 3.333vw 0;
    }

    .first-flow-content {
        gap: 2.083vw;
    }

    .first-flow-phase {
        gap: 2.083vw;
    }

    .first-flow-phase-title {
        letter-spacing: 0.062vw;
    }

    .first-flow-steps-wrapper {
        gap: 0.000vw;
    }

    .first-flow-step-card {
        min-height: 8.229vw;
        padding: 0.833vw 2.917vw 0.833vw 0.833vw;
    }

    .first-flow-icon-circle {
        height: 5.885vw;
    }

    .first-flow-step-title {
        letter-spacing: 0.052vw;
    }

    .first-flow-step-desc {
        letter-spacing: 0.026vw;
    }

    .first-flow-step-bullets {
        gap: 0.208vw;
        margin: 0.625vw 0;
    }

    .first-flow-bullet-item {
        gap: 0.417vw;
        letter-spacing: 0.026vw;
    }

    .first-cost-price {
        letter-spacing: 0.026vw;
    }

    .first-cost-notes {
        letter-spacing: 0.042vw;
    }

    .first-bring-item {
        gap: 0.417vw;
        letter-spacing: 0.026vw;
    }

    .first-bring-outro {
        letter-spacing: 0.026vw;
    }

    .first-cta-p {
        letter-spacing: 0.026vw;
    }


    /* Auto-fixed missing PC Liquid (vw) Layout Rules */
    .sub-mv {
        margin-top: 8.854vw;
    }

    .first-card {
        padding: 2.500vw 6.250vw;
    }

    .first-flow-card {
        padding: 6.25vw 6.25vw;
    }

    .first-reason-img-overlay-container {
        border-radius: 1.042vw;
    }

    .first-reserve-intro {
        letter-spacing: 0.026vw;
    }

    .first-cta-card {
        margin-bottom: 2.083vw;
    }
}

/* Tablet Layout (1024px and below) */
@media (max-width: 1024px) {
    /* 1800px 以下を完全比例（vw）にしたため、タブレット以下は従来の値を維持する */
    .first-heading-title {
        font-size: calc(14.84px + 0.894vw);
    }

    .first-intro-p, .first-intro-highlight-item, .first-intro-bold-text, .first-philosophy-item, .first-worries-item, .first-reserve-intro, .first-reserve-item, .first-flow-header-intro, .first-flow-phase-intro, .first-flow-step-desc, .first-flow-bullet-item, .first-bring-item, .first-bring-outro, .first-cta-p, .common-reservation-intro {
        font-size: calc(9.42px + 0.447vw);
    }

    .first-reason-lead {
        font-size: calc(9.42px + 0.447vw);
    }

    .first-reason-card-title {
        font-size: calc(11.13px + 0.67vw);
    }

    .first-reason-card-desc {
        font-size: calc(9.42px + 0.447vw);
    }

    .first-flow-phase-title {
        font-size: calc(11.13px + 0.67vw);
    }

    .first-flow-step-title {
        font-size: calc(10.35px + 0.503vw);
    }

    .first-cost-price {
        font-size: calc(9.42px + 0.447vw);
    }

    .first-cost-notes {
        font-size: calc(9.56px + 0.335vw);
    }

    .first-line-btn-text {
        font-size: calc(9.42px + 0.447vw);
    }


    /* Top notice mobile overrides */
    .first-top-notice {
        margin-bottom: 60px;
        gap: 24px;
        padding: 0 20px;
    }

    .first-top-notice-text {
        font-size: 15px;
        text-align: left;
    }

    .first-intro-btn {
        width: 100%;
        max-width: 320px;
        height: 55px;
        margin: 0 auto;
        border-radius: 30px;
    }

    .first-intro-btn-text {
        font-size: 16px;
    }

    .first-intro-btn-arrow {
        width: 20px;
        height: 20px;
    }

    .first-reserve-btn-row {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        width: 100%;
    }

    .first-reserve-btn {
        width: 100%;
        max-width: 320px;
        height: 55px;
        border-radius: 50px;
        padding: 12px 24px;
        gap: 16px;
    }

    .first-reserve-btn-icon {
        width: 28px;
        height: 28px;
    }

    .first-reserve-btn-icon.btn-icon-calendar {
        width: 32px;
        height: 32px;
    }

    .first-reserve-btn-text {
        font-size: 16px;
    }

    .first-reserve-btn-text.large-tel {
        font-size: 18px;
    }

    .first-flow-text-area.step1-text {
        width: 100%;
        max-width: none;
    }

    .sub-mv-container {
        width: 100%;
        padding: 0;
    }

    .sub-mv-image-wrapper {
        height: 250px;
        border-radius: 0;
    }

    .sub-mv-heading-card {
        left: 40px;
        padding: 16px 36px 16px 24px;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        gap: 8px;
    }

    .sub-mv-en-title {
        font-size: 36px;
    }

    .sub-mv-jp-subtitle {
        font-size: 16px;
        padding-left: 20px;
    }

    .sub-mv-leaf-decor,
    .first-heading-leaf {
        width: 16px;
        height: 16px;
        border-top-left-radius: 16px;
        border-bottom-right-radius: 16px;
        border-top-right-radius: 2px;
        border-bottom-left-radius: 2px;
    }

    .first-page-body {
        padding-top: 60px;
        padding-bottom: 80px;
        padding-left: 40px;
        padding-right: 40px;
    }

    .first-card {
        width: 100%;
        padding: 40px 60px;
        margin-bottom: 40px;
        border-radius: 20px;
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .first-card-left {
        width: 100%;
        padding-top: 0;
    }

    .first-card-right {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        max-width: 600px;
        border-radius: 15px;
    }

    .first-intro-content {
        padding-left: 0;
    }

    .first-bring-outro {
        margin-left: 0;
    }

    /* Reason Section */
    .first-reason-section {
        width: 100%;
        padding: 60px 40px;
        margin-bottom: 40px;
        background-color: transparent;
    }

    .first-reason-bg-curve {
        display: none;
    }

    .first-reason-header {
        gap: 32px;
        margin-bottom: 40px;
    }

    .first-reason-en-title {
        font-size: 36px;
    }

    .first-reason-jp-subtitle {
        font-size: 16px;
        padding-left: 20px;
    }

    .first-reason-lead {
        padding-left: 0;
    }

    .first-reason-row {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .first-reason-grid {
        gap: 40px;
    }

    .first-reason-card {
        width: 100%;
        max-width: 500px;
        height: auto;
        padding: 24px;
        gap: 24px;
        border-radius: 20px;
    }

    .first-reason-img-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 16/10;
        border-radius: 15px;
    }

    .first-reason-badge {
        width: 70px;
        height: 70px;
        border-top-left-radius: 30px;
        border-top-right-radius: 8px;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 100px;
        left: -20px;
        top: -20px;
    }

    .first-reason-badge-num {
        font-size: 28px;
    }

    /* Flow Section */
    .first-flow-card {
        padding: 60px 40px;
    }

    .first-flow-header-intro {
        margin-bottom: 40px;
        text-align: left;
    }

    .first-flow-phase-intro {
        text-align: left;
    }

    .first-flow-step-card {
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 24px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    .first-flow-step-card.large-height {
        min-height: 0;
    }

    .first-flow-icon-circle {
        width: 100px;
        height: 100px;
    }

    /* Rescale SVG inside flow icon */
    .first-flow-icon-circle img {
        transform: scale(1.0);
    }

    /* Restore fixed sizes for inner icons on mobile! */
    .flow-icon-reception {
        width: 52px;
        height: 61px;
    }

    .flow-icon-counseling-wrapper {
        width: 90px;
        height: 70px;
    }

    .flow-icon-counseling-1 {
        width: 60px;
        height: 64px;
        left: 6px;
        bottom: 3px;
    }

    .flow-icon-counseling-2 {
        width: 32px;
        height: 29px;
        right: 2px;
        top: 5px;
    }

    .flow-icon-exam-wrapper {
        width: 70px;
        height: 57px;
    }

    .flow-icon-exam-bg {
        width: 70px;
        height: 57px;
    }

    .flow-icon-exam-icon {
        width: 35px;
        height: 34px;
        left: 18px;
        top: 11px;
    }

    .flow-icon-exam-decor-1 {
        width: 6px;
        height: 45px;
        left: 3px;
        top: 5px;
    }

    .flow-icon-exam-decor-2 {
        width: 6px;
        height: 45px;
        right: 3px;
        top: 5px;
    }

    .flow-icon-explanation {
        width: 62px;
        height: 58px;
    }

    .flow-icon-result-wrapper {
        width: 90px;
        height: 70px;
    }

    .flow-icon-result-bg {
        width: 60px;
        height: 64px;
        left: 6px;
        top: 3px;
    }

    .flow-icon-result-bubble {
        width: 32px;
        height: 29px;
        right: 2px;
        top: 5px;
    }

    .flow-icon-treatment {
        width: 66px;
        height: 66px;
    }

    .flow-icon-maintenance-wrapper {
        width: 51px;
        height: 60px;
    }

    .flow-icon-maintenance-1 {
        width: 8px;
        height: 52px;
        left: 5px;
        top: 4px;
    }

    .flow-icon-maintenance-2 {
        width: 12px;
        height: 53px;
        left: 20px;
        top: 4px;
    }

    .flow-icon-maintenance-3 {
        width: 9px;
        height: 52px;
        left: 38px;
        top: 4px;
    }


    .first-flow-text-area {
        align-items: flex-start;
        text-align: left;
    }

    .first-flow-step-title {
        text-align: center;
        width: 100%;
    }

    .first-flow-step-desc {
        text-align: left;
    }

    .first-flow-arrow-container {
        width: 100%;
        height: 40px;
    }

    .first-flow-arrow-img {
        transform: rotate(180deg);
        width: 29px;
        height: 20px;
    }


}

/* Mobile Layout (768px and below) */
@media (max-width: 768px) {
    .sub-mv {
        margin-top: 175px;
    }

    .admin-bar .sub-mv {
        margin-top: calc(175px + 46px);
    }

    .first-page-body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .first-worries-bullets {
        flex-direction: column;
        gap: 10px;
    }

    .first-reserve-bullets {
        flex-direction: column;
        gap: 10px;
    }

    .first-card {
        padding: 24px 16px;
        border-radius: 15px;
        gap: 24px;
    }

    .first-heading-row {
        margin-bottom: 24px;
    }

    .first-heading-row.align-start {
        align-items: flex-start;
    }

    .first-heading-row.align-start .first-heading-leaf {
        margin-top: 5px;
    }

    .first-heading-title {
        font-size: 22px;
    }

    .first-intro-p,
    .first-intro-highlight-item,
    .first-intro-bold-text,
    .first-philosophy-item,
    .first-worries-item,
    .first-reserve-intro,
    .first-reserve-item,
    .first-flow-header-intro,
    .first-flow-phase-intro,
    .first-flow-step-desc,
    .first-flow-bullet-item,
    .first-bring-item,
    .first-bring-outro,
    .first-cta-p,
    .common-reservation-intro {
        font-size: 15px;
    }

    .first-reason-section {
        padding: 40px 16px;
    }

    .first-reason-en-title {
        font-size: 28px;
    }

    .first-reason-jp-subtitle {
        font-size: 14px;
        padding-left: 16px;
    }

    .first-reason-lead {
        font-size: 15px;
    }

    .first-reason-card {
        padding: 16px;
        gap: 16px;
    }

    .first-reason-card-title {
        font-size: 18px;
    }

    .first-reason-card-desc {
        font-size: 14px;
    }

    .first-flow-card {
        padding: 40px 16px;
    }

    .first-flow-phase-title {
        font-size: 18px;
    }

    .first-flow-step-title {
        font-size: 16px;
    }

    .first-flow-step-desc {
        font-size: 15px;
    }

    .first-cost-price {
        font-size: 15px;
    }

    .first-cost-notes {
        font-size: 14px;
    }

    /* 1800px 以下の vw 指定が SP で極端に小さくならないよう px に戻す */
    .first-intro-btn {
        gap: 16px;
    }

    .sub-mv-heading-title-row {
        gap: 8px;
    }

    .first-heading-row {
        gap: 8px;
    }

    .first-philosophy-list {
        gap: 16px;
    }

    .first-bring-bullets {
        gap: 16px;
    }

    .first-philosophy-bullet {
        width: 6px;
        height: 6px;
    }

    .first-worries-bullet {
        width: 6px;
        height: 6px;
    }

    .first-reserve-bullet {
        width: 6px;
        height: 6px;
    }

    .first-flow-bullet-dot {
        width: 6px;
        height: 6px;
    }

    .first-bring-bullet {
        width: 6px;
        height: 6px;
    }

    .first-reason-title-block {
        gap: 16px;
    }

    .first-reason-en-row {
        gap: 8px;
    }

    .first-reason-badge-num {
        margin-top: -6px;
        margin-left: -6px;
    }

    .first-reason-card-content {
        padding: 0 10px;
    }

    .first-flow-text-area {
        gap: 16px;
    }

    .first-intro-highlights {
        gap: 16px;
    }

    .first-philosophy-item {
        gap: 8px;
    }

    .first-worries-item {
        gap: 8px;
    }

    .first-reserve-item {
        gap: 8px;
    }

    .first-flow-step-bullets {
        gap: 4px;
        margin: 12px 0;
    }

    .first-flow-bullet-item {
        gap: 8px;
    }

    .first-bring-item {
        gap: 8px;
    }

    .first-step1-pdf-btn {
        gap: 16px;
    }

    .first-step1-dock-btn {
        gap: 16px;
    }
}

/* Mobile Small Layout (590px and below) */
@media (max-width: 590px) {
    .sub-mv {
        margin-top: 150px;
    }

    .admin-bar .sub-mv {
        margin-top: calc(150px + 46px);
    }

    .sub-mv-image-wrapper {
        height: 180px;
    }

    .sub-mv-heading-card {
        left: 16px;
        padding: 12px 24px 12px 16px;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
        gap: 4px;
    }

    .sub-mv-en-title {
        font-size: 24px;
    }

    .sub-mv-jp-subtitle {
        font-size: 13px;
        padding-left: 16px;
    }

    .sub-mv-leaf-decor,
    .first-heading-leaf {
        width: 18px;
        height: 18px;
        border-top-left-radius: 20px;
        border-bottom-right-radius: 20px;
        border-top-right-radius: 2px;
        border-bottom-left-radius: 2px;
    }

    /* Headings: smaller title, leaf aligned to the first line */
    .first-heading-title {
        font-size: 20px;
    }

    .first-heading-row {
        align-items: flex-start;
    }

    .first-heading-leaf {
        margin-top: 4px;
    }

    .first-intro-p,
    .first-intro-highlight-item,
    .first-intro-bold-text,
    .first-philosophy-item,
    .first-worries-item,
    .first-reserve-intro,
    .first-reserve-item,
    .first-flow-header-intro,
    .first-flow-phase-intro,
    .first-flow-step-desc,
    .first-flow-bullet-item,
    .first-bring-item,
    .first-bring-outro,
    .first-cta-p,
    .common-reservation-intro,
    .first-reason-lead {
        font-size: 14px;
    }

    .first-step1-pdf-btn-text,
    .first-step1-dock-btn-text {
        font-size: 14px;
    }
}

/* Specific crop for CTA staff image */
.first-cta-card .first-card-right img {
    object-position: 57% center;
}

.flow-icon-png {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 30px;
}

.flow-icon-mail {
    width: 51px;
    height: 60px;
}

.flow-icon-emergency {
    width: 51px;
    height: 60px;
}



/* Step 1 custom layout */
.first-flow-text-area.step1-text {
    flex: none;
    width: auto;
    flex: 1;
    max-width: 100%;
}

/* Step 1 Buttons Group */
.first-step1-btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

/* Step 1 Buttons (問診票PDF / 歯科ドック) */
.first-step1-pdf-btn,
.first-step1-dock-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 320px;
    height: 59px;
    background-color: #63574d;
    border-radius: 53.231px;
    text-decoration: none;
    gap: 17px;
    flex-shrink: 0;
    margin: 0;
    box-shadow: 0px 0px 2.129px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.first-step1-pdf-btn:hover,
.first-step1-dock-btn:hover {
    background-color: #2faa87;
}

.first-step1-pdf-btn-text,
.first-step1-dock-btn-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 19.163px;
    color: #ffffff;
    letter-spacing: 0.9582px;
    line-height: 1.6;
    margin: 0;
    white-space: nowrap;
}

.first-step1-pdf-btn-arrow,
.first-step1-dock-btn-arrow {
    width: 22.357px;
    height: 22.357px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.first-step1-pdf-btn-arrow img,
.first-step1-dock-btn-arrow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: rotate(90deg);
}

@media (max-width: 1800px) {

    .first-flow-content {
        gap: 2.083vw;
    }

    .first-step1-btn-group {
        gap: 0.625vw;
    }

    .first-step1-pdf-btn,
    .first-step1-dock-btn {
        width: 16.667vw;
        height: 3.073vw;
        border-radius: 2.772vw;
        gap: 0.887vw;
    }

    .first-step1-pdf-btn-text,
    .first-step1-dock-btn-text {
        font-size: 0.99vw;
        letter-spacing: 0.05vw;
    }

    .first-step1-pdf-btn-arrow,
    .first-step1-dock-btn-arrow {
        width: 1.164vw;
        height: 1.164vw;
    }
}

@media (max-width: 1024px) {
    /* 1800px 以下を完全比例（vw）にしたため、タブレット以下は従来の値を維持する */
    .first-step1-pdf-btn-text, .first-step1-dock-btn-text {
        letter-spacing: 0.9582px;
    }

    .first-step1-pdf-btn, .first-step1-dock-btn {
        gap: 10px;
    }

    .first-step1-btn-group {
        width: 100%;
        align-items: center;
        gap: 12px;
    }

    .first-step1-pdf-btn,
    .first-step1-dock-btn {
        width: 100%;
        max-width: 320px;
        height: 55px;
        margin: 0 auto;
        border-radius: 30px;
    }

    .first-step1-pdf-btn-text,
    .first-step1-dock-btn-text {
        font-size: 16px;
    }

    .first-step1-pdf-btn-arrow,
    .first-step1-dock-btn-arrow {
        width: 20px;
        height: 20px;
    }
}

.first-worries-line-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px 16px 32px;
    background-color: #575757;
    color: #ffffff;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    gap: 16px;
    margin-top: 16px;
    transition: opacity 0.3s ease;
    height: 55px;
    box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.first-worries-line-btn:hover {
    opacity: 0.8;
}

.btn-line-icon {
    width: 32px;
    height: 32px;
}

@media (max-width: 1800px) {

    .first-flow-content {
        gap: 2.083vw;
    }

    .first-worries-line-btn {
        padding: 0.833vw 2.083vw 0.833vw 1.667vw;
        height: 2.865vw;
        font-size: 0.938vw;
        border-radius: 2.604vw;
        gap: 0.833vw;
        margin-top: 0.833vw;
    }

    .btn-line-icon {
        width: 1.667vw;
        height: 1.667vw;
    }

    .flow-icon-mail {
        width: 2.656vw;
        height: 3.125vw;
    }
}

@media (max-width: 1024px) {
    /* 1800px 以下を完全比例（vw）にしたため、タブレット以下は従来の値を維持する */
    .flow-icon-mail {
        width: 51px;
        height: 60px;
    }

    .first-worries-line-btn {
        width: 100%;
        max-width: 320px;
        height: 55px;
        padding: 16px 24px;
        border-radius: 50px;
        font-size: 16px;
        gap: 16px;
        margin: 16px auto 0;
    }

    .btn-line-icon {
        width: 28px;
        height: 28px;
    }
}