@import url('https://fonts.googleapis.com/css2?family=BIZ+UDPGothic:wght@400;700&display=swap');

:root {
    /* Colors extracted from reference */
    --color-primary-green-start: #3FAF35;
    --color-primary-green-end: #8FC31F;
    --color-primary-text: #008000;
    /* Text green */
    --color-cta-orange: #E87313;
    --color-cta-shadow: #b3590e;
    --color-text-main: #232B39;
    --color-text-sub: #666666;
    --color-bg-body: #F4F4F4;
    --color-bg-content: #F6FAED;
    --color-bg-white: #FFFFFF;
    --color-accent-gold: #D4AF37;
    --color-accent-gold-light: #F9E79F;
    --color-border-gray: #ddd;

    /* Layout */
    --width-container-max: 500px;
    --radius-card: 16px;
    /* Increased for friendlier look */
    --radius-btn: 100px;
    --spacing-base: 16px;
    --spacing-section: 40px;
}

/* Material Icons Customization */
.material-icons-round {
    vertical-align: middle;
    line-height: 1;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'BIZ UDPGothic', YuGothic, 'Lucida Grande', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', Meiryo, メイリオ, sans-serif;
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'palt' on;
}

/* 見出し系は全てbold */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
}

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

/* Main Container */
.app-container {
    width: 100%;
    max-width: var(--width-container-max);
    margin: 0 auto;
    background-color: var(--color-bg-content);
    min-height: 100vh;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow-x: hidden;
}

@media (min-width: 1180px) {
    .app-container {
        left: -60px;
    }
}

main {
    background-color: var(--color-bg-content);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
    padding-top: 132px;
    margin-top: 30px;
    position: relative;
    z-index: 0;
}

@media (max-width: 500px) {
    main {
        padding-top: 92px;
        margin-top: 60px;
    }
}

/* Typography Utilities */
.text-center {
    text-align: center;
}

.font-bold {
    font-weight: bold;
}

.text-white {
    color: white;
}

.text-primary {
    color: var(--color-primary-text);
}

.text-orange {
    color: var(--color-cta-orange);
}

.text-sm {
    font-size: 0.85rem;
}

.text-xs {
    font-size: 0.75rem;
}

/* Sections */
section {
    padding: 24px;
    padding-bottom: calc(24px + var(--spacing-section));
    position: relative;
}

.fv-cta-wrapper {
    padding: 0 20px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-text-main);
    position: relative;
    z-index: 2;
}

.section-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 4px;
    /* Thicker */
    background-color: var(--color-primary-green-start);
    margin: 12px auto 0;
    border-radius: 4px;
}

.section-nayami .section-title {
    text-shadow: 
        -1px -1px 0 white,
        1px -1px 0 white,
        -1px 1px 0 white,
        1px 1px 0 white,
        -1px 0 0 white,
        1px 0 0 white,
        0 -1px 0 white,
        0 1px 0 white;
}

/* Common Components */
.btn-cta {
    display: flex;
    justify-content: space-between;
    /* Space between flex children */
    align-items: center;
    background: linear-gradient(180deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 0 #2a5a8a;
    transition: transform 0.1s, box-shadow 0.1s;
    width: 100%;
    max-width: 480px;
    /* Wider to accommodate 3 columns */
    margin: 0 auto 20px;
    border: none;
    cursor: pointer;
    line-height: normal;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-text-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center horizontally */
    justify-content: center;
    flex: 1;
    /* Take up remaining space */
}

/* Icon Styles */
.cta-icon-left {
    font-size: 2rem !important;
    margin-right: 15px;
    /* Spacing from screen edge or text */
}

.cta-icon-right {
    font-size: 2rem !important;
    margin-left: 15px;
}

.btn-cta small {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #FFF500;
    margin-bottom: 4px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.cta-main-text {
    font-size: 1.4rem;
    line-height: 1.2;
}

/* Orange CTA Button */
.btn-cta-blue {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, #FA9A4E 0%, #E87313 100%);
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 0 var(--color-cta-shadow);
    transition: transform 0.1s, box-shadow 0.1s;
    width: 100%;
    max-width: 480px;
    margin: 12px auto 20px;
    border: none;
    cursor: pointer;
    line-height: normal;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-cta-blue small {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #FFF500;
    margin-bottom: 4px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.cta-icon {
    font-size: 2rem !important;
    margin-left: 10px;
}

.card {
    background: white;
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    /* Softer, deeper shadow */
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.02);
    /* Very subtle border */
}

/* FIRST VIEW Richer Design */
.header-fv {
    background: #3FAF35;
    color: white;
    padding-bottom: 0;
    border-radius: 0;
    text-align: center;
    position: relative;
    overflow: visible;
}

.header-logo-top {
    background: white;
    padding: 15px 20px;
    text-align: left;
    position: relative;
    z-index: 100;
}

.header-logo-img {
    /* height: 40px; */
    width: 310px;
    /* display: inline-block; */
    /* transform: scale(0.5); */
    /* transform-origin: center; */
    margin: auto;
}


.header-fv::before {
    display: none;
}

.nav-bar {
    padding: 15px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.btn-cta,
.btn-cta-blue {
    position: relative;
    z-index: 10;
}

.fv-copy {
    font-size: 1.7rem;
    line-height: 1.5;
    margin: 30px 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
    font-weight: bold;
}

.fv-image-container {
    margin: 0 auto 0;
    width: 60%;
    /* Reduced size */
    max-width: 320px;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.header-fv .fv-image-container + .btn-cta {
    margin-top: 0;
    margin-bottom: 20px;
}

.highlight-underline {
    border-bottom: 4px solid #FFF500;
    font-weight: bold;
    display: inline-block;
    padding-bottom: 2px;
}

/* TRUST / ACHIEVEMENTS - NEW BADGE DESIGN */
.trust-badges-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 0 10px 20px;
    margin: 0 auto -132px;
    margin-top: 0;
    position: relative;
    z-index: 20;
    width: 100%;
    background: transparent;
}

.trust-badge {
    background: none;
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    box-shadow: none;
    width: 26%;
    min-width: 95px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border: none;
    overflow: visible;
}

.badge-decoration {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: auto;
    max-height: 80%;
    z-index: 1;
    pointer-events: none;
}

.badge-decoration-left {
    left: -15px;
    max-width: 30px;
}

.badge-decoration-right {
    right: -15px;
    max-width: 30px;
}

/* Gold Badge styles removed */

.badge-icon {
    color: white;
    margin-bottom: 0px;
    position: relative;
    z-index: 2;
}

.badge-icon .material-icons-round {
    font-size: 2rem;
}

.badge-crown {
    color: #FFD700;
    margin-bottom: 2px;
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

.badge-label {
    font-size: 0.7rem;
    color: white;
    font-weight: bold;
    margin-bottom: 3px;
    position: relative;
    z-index: 2;
}

.badge-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

/* スマホ用の調整 */
@media (max-width: 500px) {
    .btn-cta,
    .btn-cta-blue {
        padding: 1rem 1.5rem;
    }
    
    .trust-badges-container {
        padding: 0 15px 20px;
        gap: 32px;
    }
    
    .trust-badge {
        padding: 15px 8px;
        min-width: 90px;
    }
    
    .badge-label {
        font-size: 0.6rem;
    }
    
    .badge-value {
        font-size: 1rem;
    }
    
    .badge-icon .material-icons-round {
        font-size: 1.8rem;
    }
    
    .badge-decoration-left,
    .badge-decoration-right {
        max-width: 22px;
    }
}

@media (max-width: 420px) {
    .fv-copy {
        font-size: 1.45rem;
    }
    
    .btn-cta,
    .btn-cta-blue {
        font-size: 1.125rem;
        padding: 0.9rem 1.35rem;
    }
    
    .btn-cta .cta-main-text,
    .btn-cta-blue .cta-main-text {
        font-size: 1.26rem;
    }
    
    .btn-cta small,
    .btn-cta-blue small {
        font-size: 0.765rem;
    }
    
    .cta-icon-left,
    .cta-icon-right {
        font-size: 1.8rem !important;
    }
}

.trust-badge.gold .badge-value {
    font-size: 1.4rem;
    color: #DAA520;
    /* Goldenrod */
}

/* Ribbon decorations */
.badge-ribbon-bottom {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #FFD700;
}

/* CHECK LIST (Material Icons) */
.styled-list {
    list-style: none;
    padding: 0;
}

.styled-list li {
    margin-bottom: 14px;
    padding-left: 0;
    /* Clear old padding */
    display: flex;
    align-items: flex-start;
    font-weight: 500;
    line-height: 1.5;
}

.icon-check {
    color: var(--color-primary-green-start);
    margin-right: 12px;
    font-size: 1.4rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(63, 175, 53, 0.2));
}

/* TARGET CHECKLIST (Updated) */
.check-list-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    /* Added padding as requested */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* clip corners */
    border: 1px dashed #3FAF35;
}

.section-target .check-list-card {
    border: none;
}

.target-list li {
    font-weight: bold;
    color: #444;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
    padding: 18px 20px;
}

.target-list li:last-child {
    border-bottom: none;
}

.target-list .icon-check {
    color: var(--color-cta-orange);
    margin-right: 15px;
}

.bg-icon-decor {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 8rem;
    opacity: 0.05;
    color: var(--color-primary-green-start);
    pointer-events: none;
    transform: rotate(15deg);
}


/* BENEFITS */
.benefit-item {
    /* border removed */
    display: flex;
    flex-direction: column;
    border: 0;
}

.benefit-item .text-center:last-child {
    margin-top: auto;
    margin-bottom: 0;
}

.benefit-item:has(.text-center:last-child img) {
    padding-bottom: 0;
}

.benefit-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.benefit-num {
    background: var(--color-primary-green-start);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.benefit-title {
    font-weight: bold;
}

/* TESTIMONIALS */
.testimonial-item {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: none;
    /* Removed border for cleaner shadow look */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    position: relative;
}

.user-meta {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-weight: bold;
    color: var(--color-primary-text);
}

.speech-bubble {
    background: #f8fcf8;
    /* Very slight green tint */
    padding: 18px;
    border-radius: 12px;
    font-style: italic;
    font-size: 0.95rem;
    color: #333;
    position: relative;
}

.speech-bubble::before {
    display: none;
    /* Removed as requested */
}

/* FLOW STEPS (Restored) */
.flow-step {
    display: flex;
    gap: 18px;
    margin-bottom: 0;
    padding-bottom: 30px;
    position: relative;
    border-bottom: none;
}

.flow-step::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: #ddd;
}

.flow-step:last-child::before {
    display: none;
}

.flow-num {
    background: var(--color-primary-green-start);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.flow-content {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    width: 100%;
}

.flow-content h4 {
    font-size: 1.05rem;
    margin-bottom: 5px;
    color: var(--color-text-main);
    font-weight: bold;
}

/* SUPPORT SYSTEM (Updated) */
.support-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.support-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    padding-top: 40px; /* アイコンが飛び出す分のスペースを確保 */
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #3FAF35; /* 緑色のボーダーを追加 */
    position: relative;
}

.support-icon {
    position: absolute;
    top: -25px; /* カードの上部から少し飛び出す */
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0;
    color: var(--color-primary-green-start);
    background: white; /* アイコンの背景を白にして、ボーダーと重なる部分を隠す */
    padding: 5px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-icon .material-icons-round {
    font-size: 3.5rem;
    /* Larger icon */
}

.support-title {
    color: var(--color-primary-green-start);
    font-size: 1.15rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.support-desc {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.6;
    text-align: left;
    width: 100%;
}




/* FAQ */
.faq-item {
    margin-bottom: 20px;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.faq-q {
    background: white;
    font-weight: bold;
    position: relative;
    padding: 20px;
    padding-left: 65px;
    /* Increased from 55px for larger badge */
    color: #333;
    line-height: 1.5;
    line-height: 1.5;
    margin-bottom: 0;
    border: 1px solid #ccc;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.faq-q::before {
    content: "Q";
    position: absolute;
    left: 20px;
    top: 20px;
    width: 30px;
    height: 30px;
    background: var(--color-primary-green-start);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 0 0 1px var(--color-primary-green-start);
    z-index: 2;
    /* Ensure badge is above line */
}



.faq-a {
    padding: 20px;
    padding-left: 65px;
    /* Increased from 55px */
    position: relative;
    font-size: 0.95rem;
    color: #333;
    background: white;
    border: 1px solid #ccc;
    border-top: 1px solid #ccc;
    /* Separator line */
    border-radius: 0 0 8px 8px;
}

.faq-a::before {
    content: "A";
    position: absolute;
    left: 20px;
    top: 20px;
    width: 30px;
    height: 30px;
    background: #FF6B6B;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 0 0 1px #FF6B6B;
}

/* FINAL APPEAL (Updated) */
.final-appeal {
    background: #EAF6EA;
    /* Light green gentle background */
    color: #333;
    padding: 60px 20px !important;
}

.final-appeal-title {
    display: block;
    margin: 0 auto;
    width: fit-content;
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #222;
}

.highlight-text {
    /* Green highlighter */
    background: linear-gradient(transparent 60%, #b8e6b8 60%);
    font-weight: 800;
}

.final-appeal-content {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.final-message {
    font-weight: bold;
    font-size: 1.4rem;
    /* Considerably larger */
    margin-top: 15px;
    color: var(--color-primary-green-start);
    border-top: none;
    padding-top: 0;
    text-align: center;
    /* Ensure centered */
    line-height: 1.6;
}

.appeal-arrow-container {
    display: flex;
    justify-content: center;
    /* Center the triangle */
    margin: 20px 0;
}

.appeal-triangle {
    width: 60px;
    /* Larger size */
    height: 40px;
    background: linear-gradient(180deg, #d4edda 0%, #a8d5ba 100%);
    /* Green gradient */
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    /* Inverted triangle */
}


/* FOOTER */
.footer {
    margin: 0;
}

.footer__nav {
    border-top: 1px solid #ccb;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__nav > li {
    border-bottom: 1px solid #ccb;
}

.footer__nav > li > a {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    font-size: 12px;
    text-decoration: none;
    color: #333;
}

.footer__nav > li > a::after {
    content: "chevron_right";
    font-family: "Material Icons Round";
    font-feature-settings: "liga";
    -webkit-font-feature-settings: "liga";
    font-size: 20px;
    line-height: 1;
}

.footer__pmark,
.footer__jpx {
    background-color: #f5f5f5;
    display: flex;
    align-items: start;
    justify-content: center;
    gap: 10px;
    border-bottom: 1px solid #dedede;
    padding: 24px 16px;
    font-size: 14px;
}

.footer__pmark > img,
.footer__jpx > img {
    width: 40px;
    height: auto;
}

.footer__pmark > p,
.footer__jpx > p {
    margin: 0;
    line-height: 1.6;
}

.footer__copyright {
    background-color: #000;
    color: #fff;
    font-size: 12px;
    text-align: center;
    padding: 16px 0;
    line-height: 1.6;
    margin: 0;
}

/* PC版固定CTA */
.fixed-cta-pc {
    display: none;
}

@media (min-width: 1180px) {
    .fixed-cta-pc {
        display: block;
        position: fixed;
        left: calc(100vw * 2/3 + 30px);
        top: 50%;
        transform: translateY(-50%);
        width: 366px;
        z-index: 999;
        max-height: 90vh;
        overflow-y: auto;
        background: transparent;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    .fixed-cta-pc__inner {
        background: #EAF6EA;
        border-radius: 16px;
        padding: 30px 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    .fixed-cta-pc__title {
        font-size: 1.2rem;
        font-weight: bold;
        color: var(--color-text-main);
        margin-bottom: 20px;
        line-height: 1.6;
        text-align: center;
    }

    .fixed-cta-pc__text {
        background: white;
        border-radius: 8px;
        padding: 15px;
        font-size: 0.9rem;
        color: var(--color-text-main);
        margin-bottom: 20px;
        line-height: 1.6;
        text-align: center;
    }

    .fixed-cta-pc__text strong {
        color: var(--color-cta-orange);
        font-weight: bold;
    }

    .fixed-cta-pc .btn-cta,
    .fixed-cta-pc .btn-cta-blue {
        margin: 12px auto;
        max-width: 100%;
    }
}

@media (min-width: 1180px) {
    .fixed-cta-pc .btn-cta .cta-main-text {
        font-size: 1.04rem;
    }
    
    .fixed-cta-pc .btn-cta small {
        font-size: 0.65rem;
    }
    
    .fixed-cta-pc .btn-cta-blue .cta-main-text {
        font-size: 1.1rem;
        line-height: 1.2;
    }
}

/* PC版左側ロゴ */
.fixed-logo-pc {
    display: none;
}

@media (min-width: 1180px) {
    .fixed-logo-pc {
        display: block;
        position: fixed;
        left: 0;
        top: 22px;
        z-index: 999;
        padding-left: 20px;
        width: 33%;
    }
}

@media (min-width: 1180px) {
    .fixed-logo-img {
        width: 267px;
        display: inline-block;
    }
}