/* --- 全体の設定 --- */
*{
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', 'Arial', 'Hiragino Sans', 'Meiryo', sans-serif;
}


body {
    line-height: 1.6;
    color: #333333; 
    background-color: #F5F3E8; 
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- 1. ヘダー --- */
.header {
    padding: 10px 0;
    background-color: #d92828; 
}

.header .container {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    color: #000000; 
    font-weight: bold;
}

.header-tagline {
    color: #fff; 
    font-size: 1.1rem;
    font-weight: bold;
    margin-right: 20px; 
}

.header-info {
    max-width: 10%;
    min-width: 100px; 
}


/* --- 2. ヒーローセクション --- */
.hero-section {
    padding: 10px 0 0 0;
    position: relative; 
    overflow: hidden; 
    min-height: auto;
    box-sizing: border-box;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* セクション1: 最初から45-46行目まで → bg2.png */
.hero-section-top {
    background-color: #F5F3E8;
    margin-bottom: 0;
    padding-bottom: 0;
    overflow: hidden;
}

.hero-section-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #F5F3E8;
    z-index: -1; 
    pointer-events: none;
    margin-bottom: -1px;
}

/* セクション2: 45-46行目から85-86行目まで → bg.png */
.hero-section-middle {
    background-color: #F5F3E8;
    background-image: url('./lp-img/bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}

.hero-section-middle::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #F5F3E8;
    background-image: url('./lp-img/bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1; 
    pointer-events: none;
    transform: scale(1.01);
    margin-bottom: -1px;
}

/* .hero-section::after { 
    content: '';
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 30px; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 5 Q 25 0, 50 5 T 100 5 L 100 0 L 0 0 Z' fill='%23d92828'/%3E%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%; 
    z-index: 6; 
    filter: none;
    transform: none;
} */

.hero-layout {
    display: flex;
    align-items: flex-start; 
    gap: 40px; 
    position: relative; 
    z-index: 1; 
}

.hero-content {
    flex: 1; 
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.mv-content {
    text-align: center; 
    position: relative; /* ▼▼▼ 修正: 吹き出しの配置基準にする ▼▼▼ */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.mv-content h2 {
    font-size: 2.0rem; 
    font-weight: 700;  
    text-align: center;
    line-height: 2;  
    color: #333333; 
    text-shadow: none; 
    margin-top: 5px;    
    margin-bottom: 5px; 
    padding: 20px; 
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: inline-block; 
    max-width: calc(100% - 20px);
    width: auto;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.8); 
}


.mv-content p {
    font-size: 1.1rem;
    font-weight: bold;
    color: #555555; 
    text-shadow: 0 0 5px rgba(255,255,255,0.7); 
    margin-top: 10px;
    margin-bottom: 20px; 
    line-height: 2.0; 
}


.text-highlight1{
    color: #D92828;
    font-size: 3rem;
}

.text-highlight2{
    font-size: 3rem;
    color: #D92828;
    text-shadow: 
        1px 1px 0 #FFFF00,   
        -1px 1px 0 #FFFF00,  
        1px -1px 0 #FFFF00,  
        -1px -1px 0 #FFFF00; 

}


.mv-stats {
    display: flex;
    justify-content: center; 
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    position: relative;
}


.stat-item-border {
    background: linear-gradient(
        to top, 
        #FFD700,    
        #FFA500,    
        #D92828     
    );

    width: 200px;  
    height: 200px; 
    border-radius: 50%; 

    padding: 10px; 
    
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    box-sizing: border-box; 
}

.stat-item-content {
    width: 100%;  
    height: 100%; 
    background: #fff; 
    border-radius: 50%; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box; 
}

.stat-item-content .stat-title {
    font-weight: bold;
    display: block;
    font-size: 1.2rem;
    color: #555;
}
.stat-item-content .stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
}
.stat-item-content .stat-value strong {
    font-size: 2.5rem;
    color: #D92828; 
    margin-right: 5px;
}


/* --- ヒーローセクション内のボタン --- */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start; 
    gap: 40px;
    margin-top: 30px;
    margin-bottom: 0;
    position: relative; /* ▼▼▼ 修正: 吹き出しの配置基準(PC) ▼▼▼ */
    padding-bottom: 80px; /* ▼▼▼ 修正: 吹き出しのスペース確保(PC) ▼▼▼ */
}


/* --- ボタンデザイン --- */
.button_solid011 a {
    background: #ff6b6b;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 240px; /* ▼▼▼ 修正: max-width から width に変更 ▼▼▼ */
    padding: 20px 25px 10px;
    color: #FFF;
    transition: 0.3s ease-in-out;
    font-weight: 600;
    flex-direction: column;
    border-radius: 8px;
    border-bottom: solid 5px #de1d1d;
    text-decoration: none; 
}

.button_solid011 a span {
    background: #FFFF00;
    width: 80%;
    text-align: center;
    position: absolute;
    top: -15px;
    filter: drop-shadow(0px 1px 2px #aaa);
    padding: 3px 0;
    font-size: 0.8rem;
    color: #2b7fde;
    border-radius: 5px;
}
.button_solid011 a span:after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top: 5px solid #ffffff; 
}
.button_solid011 a:hover {
    border-bottom: solid 2px #1d7fde;
    transform: translateY(3px);
}


.es-note {
    position: absolute;
    bottom: 0px; 
    left: 32%;
    transform: translateX(140px); 
    margin-top: 0; 
    padding: 5px 10px;
    background-color: #FFFF00; 
    border-radius: 8px;
    font-size: 0.5rem;   /* ← 修正 (お好みのサイズに調整してください) */
    color: #3794ff;
    /* font-weight: bold; */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    box-sizing: border-box;    
    white-space: nowrap;  /* ← 修正 (改行を禁止) */
}

.es-note::after {
    content: '';
    position: absolute;
    bottom: 100%; 
    left: 50%; 
    transform: translateX(-50%); 
    border: 10px solid transparent;
    border-bottom-color: #FFFF00;  
    top: -19px;  
}
/* ▲▲▲ 修正 ▲▲▲ */


.flow-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333333;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2;
}

.flow-chart {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    margin: 10px auto 0;
    position: relative;
    z-index: 2;
    padding: 0;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.flow-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(217, 40, 40, 0.2);
}

.flow-step-final {
    background: linear-gradient(135deg, rgba(217, 40, 40, 0.1), rgba(255, 215, 0, 0.1));
}

.step-icon {
    width: 100px;
    height: 80px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: rgba(217, 40, 40, 0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
    margin-bottom: 5px;
}

.step-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    /* clip-path: inset(0 0 50% 0); */
}

.flow-step:hover .step-icon {
    transform: scale(1.1);
}

.step-content {
    text-align: center;
}

.step-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #D92828;
    margin: 0 0 5px 0;
}

.step-description {
    font-size: 0.95rem;
    color: #555555;
    margin: 0;
}

.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D92828;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateX(5px);
        opacity: 0.7;
    }
}


.flow-section {
    padding: 0; 
    margin-top: 0;
    margin-bottom: 40px;
    position: relative; 
    z-index: 1; 
    overflow: hidden; 
}

.flow-section .container {
    padding: 10px 0 0 0;
    margin: 0 auto;
}

.flow-section {
    background-color: #F5F3E8;
}

.flow-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #F5F3E8;
    z-index: -1; 
}


/* --- スクロールアニメーション --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px); 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- 5. フッター --- */
.footer {
    padding: 40px 0;
    background-color: #d92828; 
    color: #fff;
    text-align: center;
    padding-top: 70px; 
    position: relative; 
    z-index: 1; 
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #F5F3E8;
    z-index: -1; 
    opacity: 0.3; /* フッターの背景色が少し見えるように透明度を設定 */
}
.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}
.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}
.footer-links a:hover {
    text-decoration: underline;
}
.copyright {
    font-size: 0.8rem;
}


/* --- 8. レスポンシブデザイン (モバイル対応) --- */
@media (max-width: 768px) {

    .container {
        width: 90%; 
        padding-left: 5%;
        padding-right: 5%;
    }
    
    .hero-section .container {
        padding-top: 20px;
        padding-bottom: 0;
    }
    
    .hero-section-top .container {
        padding-bottom: 0;
    }
    
    .hero-section-middle .container {
        padding-top: 0;
        padding-bottom: 0;
    }

    .header .container {
        flex-direction: column; 
        text-align: center;
        gap: 5px; 
    }
    
    .header-tagline {
        font-size: 0.9rem; 
        margin-right: 0; 
    }
    
    .container img.header-info {
        margin-top: 7px;
        max-width: 30%;
        min-width: 100px; 
    }
    
    .hero-section {
        padding: 20px 0 0 0;
        margin: 0;
        min-height: auto; 
    }
    
    .hero-section-top {
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .hero-section-middle {
        padding-top: 0;
        padding-bottom: 0;
        margin-top: 0;
        margin-bottom: 0;
        background-image: none;
    }
    
    .hero-section-middle::before {
        display: none;
    }
    
    .hero-section-top::before {
        background-size: 100% auto;
        background-repeat: repeat-y;
        background-position: top center;
        background-attachment: scroll;
        transform: none;
    }

    .mv-content {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .mv-content h2 {
        font-size: 0.9rem; 
        line-height: 1.6;  
        padding: 15px;     
        margin-top: 10px;
        margin-bottom: 10px;
        max-width: calc(100% - 10px);
        width: auto;
    }

    .text-highlight1{
        font-size: 1.3rem;
    }

    .text-highlight2{
        font-size: 1.3rem;
    }

    .mv-content p {
        font-size: 0.7rem; 
        line-height: 1.8;   
        margin-bottom: 10px;
        text-shadow: 0 0 5px rgba(255,255,255,1); 
    }

    .mv-stats {
        gap: 10px; 
        margin-top: 20px;
        margin-bottom: 30px; /* ▼▼▼ 修正: 余白調整 ▼▼▼ */
        padding: 30px 20px;
        background-image: url('./lp-img/bg.png');
        background-size: 100% auto;
        background-position: center center;
        background-repeat: no-repeat;
        border-radius: 10px;
        position: relative;
        z-index: 0;
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        box-sizing: border-box;
    }
    
    .mv-stats::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url('./lp-img/bg.png');
        background-size: 100% auto;
        background-position: center center;
        background-repeat: no-repeat;
        border-radius: 10px;
        z-index: -1;
    }
    
    .mv-stats > * {
        position: relative;
        z-index: 1;
    }


    .stat-item-border {
        width: 100px;  
        height: 100px; 
        padding: 5px;  /* ← 以前の 2px から 5px に戻しました */
    }

    .stat-item-content .stat-title {
        font-size: 0.6rem; /* ← 以前の 0.75rem から 0.6rem に戻しました */
        line-height: 1.3;
    }

    .stat-item-content .stat-value strong {
        font-size: 1.8rem;
    }

    .hero-buttons {
        gap: 30px; 
        margin-top: 30px;
        margin-bottom: 10px;
        align-items: center; 
        position: static; /* ▼▼▼ 修正: PCの絶対配置をリセット ▼▼▼ */
        padding-bottom: 0; /* ▼▼▼ 修正: PCの余白をリセット ▼▼▼ */
        flex-direction: column; /* ▼▼▼ 修正: 縦積みに変更 ▼▼▼ */
    }

    .button_solid011 a {
        width: 300px; /* ▼▼▼ 修正: max-width から width に変更 ▼▼▼ */
    }

/* ▼▼▼ モバイル用の es-note (吹き出し) 設定 ▼▼▼ */
.es-note {
    position: relative;       /* 三角の位置基準 */
    display: block;           /* ブロック要素にする */
    width: fit-content;       /* 文字数に合わせて幅を自動調整 */    
    margin: 25px auto 0;      /* ★重要: 左右を auto にして中央寄せ */
    transform: none;          /* PCの位置調整をリセット */
    font-size: 1.2rem;        /* 文字サイズ */
    padding: 10px 15px;       /* 内側の余白 */
    background-color: #FFFF00; 
    color: #0378fe;
    border-radius: 8px;
    text-align: center;       /* 中のテキストも中央揃え */
    white-space: normal;      /* PCの改行禁止を解除 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    left: 0%;
}

/* 上向きの三角を作る設定 */
.es-note::after {
    content: '';
    position: absolute;
    bottom: 100%;             /* ボックスの上に配置 */
    left: 50%;                /* 左から50%の位置 */
    transform: translateX(-50%); /* 三角自体の幅の半分戻して完全中央へ */
    border: 10px solid transparent;
    border-bottom-color: #FFFF00; /* 下のボーダーに色をつけて上向き三角に */
}

    .flow-title {
        font-size: 1.8rem;
        margin: 0;
        padding: 0;
    }

    .flow-chart {
        flex-direction: column;
        gap: 15px;
        padding: 0;
        margin: 10px auto 0;
    }

    .flow-step {
        min-width: 100%;
        max-width: 280px;
    }

    .flow-arrow {
        margin: -10px 0;
    }

    .flow-arrow svg {
        width: 25px;
        height: 25px;
    }

    @keyframes pulse-mobile {
        0%, 100% {
            transform: rotate(90deg) translateY(0);
            opacity: 1;
        }
        50% {
            transform: rotate(90deg) translateY(5px);
            opacity: 0.7;
        }
    }

    .flow-arrow {
        animation: pulse-mobile 2s infinite;
    }

    .step-icon {
        width: 60px;
        height: 60px;
    }

    .step-icon img {
        width: 100%;
        height: auto;
    }

    .step-title {
        font-size: 1.2rem;
    }

    .step-description {
        font-size: 0.85rem;
    }

    .flow-section {
        padding: 0;
        margin-top: 0;
        margin-bottom: 30px;
    }
    
    .flow-section .container {
        padding: 10px 0 0 0;
    }
    
    .flow-section::before {
        background-size: 100% auto;
        background-repeat: repeat-y;
        background-position: top center;
        background-attachment: scroll;
        transform: none;
    }

    .footer-links {
        flex-direction: column; 
        gap: 10px; 
    }
    
    .footer {
        padding-top: 60px;
    }
    
    .footer::before {
        background-size: 100% auto;
        background-repeat: repeat-y;
        background-position: top center;
        background-attachment: scroll;
        transform: none;
    }

}