@charset "utf-8";

/* ==========================================================
   statement.css - isolated component (STABLE TYPOGRAPHY Edition)
   - 修正：背景色をホワイト（#ffffff）
   - 修正：フッターをテキスト幅のブルーアンダーラインに変更
   - 解決：長文ステートメントの行間崩れ・無理やり感を根本から払拭
   ========================================================== */

.s-statement {
    position: relative;
    width: 100%;
    margin-top: 10px; 
    padding: 25px 0 60px; 
    background: #ffffff;
    overflow: hidden;
}

.s-statement__inner {
    max-width: 1100px; 
    margin: 0 auto;
    padding: 0 4%;
    text-align: center;
}

/* ==========================================================
   caption block (上部見出しエリア)
   ========================================================== */

.s-statement__caption {
    margin-bottom: 40px;
}

.s-statement__label {
    display: block;
    font-family: "Oswald", sans-serif;
    font-size: 16px;
    letter-spacing: 0.4em;
    color: #c5a059;
    margin-bottom: 12px;
    font-weight: 500;
}

.s-statement__sub {
    font-family: "Yu Mincho", "游明朝体", serif;
    font-size: 22px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
}

.s-statement__main {
    display: inline-block;
    font-family: "Yu Mincho", "游明朝体", serif;
    font-size: clamp(32px, 5.5vw, 56px); 
    font-weight: 800;
    letter-spacing: 0.15em;
    line-height: 1.3;
    padding-bottom: 8px;
    background-image: linear-gradient(#d4a74a, #d4a74a);
    background-repeat: no-repeat;
    background-position: center bottom; 
    background-size: 0% 1px; 
    transition: background-size 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.6s;
}

.s-statement__caption.is-visible .s-statement__main {
    background-size: 100% 1px;
}

.s-accent-gold { color: #d4a74a; }
.s-accent-blue { color: #0054a4; }

/* ==========================================================
   body blocks (長文メッセージエリア)
   ========================================================== */

.s-statement__body {
    display: flex;
    flex-direction: column;
    gap: 15px; 
}

.s-statement__group p {
    font-family: "Yu Mincho", "游明朝体", serif;
    font-size: 20px;
    line-height: 1.8;
    color: #222;
    margin: 0;
    word-break: normal; /* PC版では自然な改行を許容 */
    overflow-wrap: break-word;
    font-weight: 500;
}

/* ==========================================================
   footer (テキスト幅のブルーアンダーライン)
   ========================================================== */

.s-statement__footer {
    margin-top: 45px;
    padding-top: 0;
    position: relative;
    display: block;
}

.s-statement__footer::before {
    display: none;
}

.s-statement__footer p {
    display: inline-block;
    font-family: "Yu Mincho", "游明朝体", serif;
    font-size: 32px;
    color: #003366;
    line-height: 1.6;
    font-weight: 700;
    padding-bottom: 12px;
    background-image: linear-gradient(#0054a4, #0054a4);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 0% 2px;
    transition: background-size 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.8s;
}

.s-statement__footer.is-visible p {
    background-size: 100% 2px;
}

/* ==========================================================
   responsive (Mobile) - 768px以下
   ========================================================== */

@media (max-width: 768px) {
    .s-statement { margin-top: 40px; padding: 0 0 60px; }
    .s-statement__inner { padding: 0 6%; } /* 余白を広げ、中央のテキストに集中させる */
    .s-statement__caption { margin-bottom: 30px; }
    
    .s-statement__sub { font-size: 16px; margin-bottom: 10px; }
    
    /* 「鹿児島の人に笑顔を」等のメインコピー */
    .s-statement__main { 
        font-size: 26px !important; 
        line-height: 1.4 !important; 
        padding-bottom: 6px; 
    }

    /* 「笑顔は人を元気にし〜」等の長文部分：【ここを徹底修正】 */
    .s-statement__group p { 
        font-size: 18px !important; /* スマホでの長文読解に最適なサイズ */
        line-height: 2.0 !important; /* 行間を広げ、「無理やり感」を完全に消去 */
        text-align: center; /* 左右均等ではなく中央に寄せてメッセージ性を高める */
        letter-spacing: 0.05em;
        word-break: normal !important; /* 単語の途中で不自然に切れるのを防ぐ */
        margin-bottom: 10px;
    }
    
    .s-statement__footer { margin-top: 40px; }
    .s-statement__footer p {
        font-size: 22px;
        padding-bottom: 6px;
        line-height: 1.5;
    }
}

/* ==========================================================
   ANIMATION SYSTEM (保持)
   ========================================================== */

.s-statement__caption,
.s-statement__group,
.s-statement__footer {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.0s cubic-bezier(0.22, 1, 0.36, 1), transform 1.0s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.s-statement__group p { opacity: 0; transform: translateY(15px); transition: inherit; }

.s-statement__caption.is-visible,
.s-statement__group.is-visible,
.s-statement__footer.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.s-statement__group.is-visible p { opacity: 1; transform: translateY(0); }

.s-statement__group:nth-of-type(1) { transition-delay: 0.1s; }
.s-statement__group:nth-of-type(2) { transition-delay: 0.2s; }
.s-statement__footer { transition-delay: 0.4s; }