/* =========================================
   main_kotei - メインコピー
   ========================================= */
.main_kotei .main-copy {
    font-family: 'Shippori Mincho B1', 'A1 Mincho', 'A1明朝', "Yu Mincho", "游明朝", "Hiragino Mincho ProN", serif;
    color: #ffffff;
    font-size: 36px;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.15em;
    margin: 0;
    text-align: center;
    text-shadow: 0px 0px 2px rgba(255, 255, 255, 0.4);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: mainCopyFadeIn 2.5s ease-in-out;
}

@keyframes mainCopyFadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 768px) {
    .main_kotei .main-copy {
        font-size: 20px;
        line-height: 2.2;
        letter-spacing: 0.1em;
    }
}


/* =========================================
   top_content - メッセージセクション
   ========================================= */

/* --- top_content カラー設定 --- */
:root {
    --bg-color: #f2f4f5;
    /* ラフ画像の上品な薄いグレー */
    --text-main: #333333;
    /* メインコピーの濃いグレー */
    --text-sub: #555555;
    /* 本文のグレー */
    --svg-fill: #ffffff;
    /* 背景の巨大文字（純白） */
}

/* --- セクション全体 --- */
.message-section {
    position: relative;
    width: 100%;
    /* min-height: 80vh; */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 0;
    box-sizing: border-box;
    overflow: hidden;
}

/* =========================================
 1. 背景のFIRST MOVE スクロール＆SVGアニメーション
 ========================================= */
.bg-text-wrapper {
    position: absolute;
    top: -25px;
    /* 上部に配置 */
    left: 0;
    width: 100%;
    z-index: 0;
    pointer-events: none;
    /* マウス操作の邪魔をしない */
    user-select: none;
}

.bg-text-track {
    display: flex;
    width: max-content;
    /* 40秒かけてゆっくり横に流れる無限ループ */
    animation: scrollBg 40s linear infinite;
}

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

    100% {
        transform: translateX(-50%);
    }
}

.bg-svg {
    height: 180px;
    /* 巨大文字の高さ */
}

/* --- 文字をなぞる（ドローイング）アニメーション --- */
.svg-text,
.bg-svg path {
    font-family: 'Times New Roman', serif;
    font-size: 180px;
    font-weight: bold;
    letter-spacing: 0.05em;

    /* 初期状態：塗りは透明、線は純白 */
    fill: transparent;
    stroke: var(--svg-fill);
    stroke-width: 2px;

    /* 線の長さを大きく設定し、最初は隠しておく */
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;

    /* 3秒かけてなぞり、2.5秒後からジワッと白く塗りつぶす */
    animation:
        drawStroke 3s cubic-bezier(0.25, 1, 0.5, 1) forwards,
        fillColor 1.5s ease 2.5s forwards;
}

@keyframes drawStroke {
    0% {
        stroke-dashoffset: 2000;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes fillColor {
    0% {
        fill: transparent;
        stroke-width: 2px;
    }

    100% {
        fill: var(--svg-fill);
        stroke-width: 0;
    }
}

/* =========================================
 2. 中央のテキストコンテンツ
 ========================================= */
.message-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;

    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.5s ease 1.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-title {
    font-family: 'Shippori Mincho B1', serif;
    font-size: 34px;
    color: var(--text-main);
    line-height: 1.8;
    letter-spacing: 0.12em;
    margin: 0 0 50px 0;
    font-weight: 500;
}

.message-desc {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    color: var(--text-sub);
    line-height: 2.4;
    letter-spacing: 0.05em;
    font-weight: 400;
    margin: 0;
}

.message-desc p {
    margin: 0 0 30px 0;
}

.message-desc p:last-child {
    margin: 0;
}

/* 📱 スマホ用レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .bg-text-wrapper {
        top: -15px;
    }

    .bg-svg {
        height: 80px;
    }

    .svg-text {
        font-size: 80px;
        stroke-width: 1.5px;
    }

    .message-title {
        font-size: 22px;
        margin-bottom: 40px;
        line-height: 1.8;
    }

    .message-desc {
        font-size: 13px;
        line-height: 2.2;
    }

    .pc-br {
        display: none;
    }
}


/* =========================================
   SERVICES セクション
   ========================================= */

/* --- test03 SERVICES カラー設定 --- */
.sv-container {
    margin: 0 auto;
    padding-top: 80px;
}

/* --- 1. タイトル部分 --- */
.sv-section-title {
    text-align: center;
    margin-bottom: 80px;
    padding: 0 20px;
}

.sv-section-title h2 {
    font-size: 38px;
    color: #1c355e;
    letter-spacing: 0.1em;
    margin: 0 0 15px 0;
    font-family: 'Shippori Mincho B1', serif;
    font-weight: bold;
}

.sv-title-line {
    width: 40px;
    height: 2px;
    background-color: #1c355e;
    margin: 0 auto 15px auto;
}

.sv-section-title p {
    font-size: 14px;
    color: #555555;
    letter-spacing: 0.1em;
    margin: 0;
}

/* --- 2. サービスブロック（コンテナ） --- */
.sv-service-block {
    margin-bottom: 120px;
    position: relative;
}

/* --- 3. 背景の自動スライダー --- */
.sv-slider-container {
    width: 100%;
    height: 340px;
    overflow: hidden;
    position: relative;
    background-color: #e2e8f0;
}

.sv-slider-track {
    display: flex;
    width: max-content;
    height: 100%;
    animation: svScroll 40s linear infinite;
}

.sv-slider-track.sv-reverse {
    animation: svScrollReverse 40s linear infinite;
}

.sv-slider-track img {
    width: 470px;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

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

    100% {
        transform: translateX(-50%);
    }
}

@keyframes svScrollReverse {
    0% {
        transform: translateX(-50%);
    }

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

/* --- 4. ホワイトカード --- */
.sv-service-box {
    width: 85%;
    max-width: 650px;
    margin: -120px auto 0 auto;
    background-color: #ffffff;
    position: relative;
    z-index: 10;
    padding: 60px 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    overflow: hidden;
    border-radius: 0 0 60px 0;
    border-top: 1px solid #cbe0ef;
}

.sv-service-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #0066cc;
}

/* --- 5. 右下の透かし文字 --- */
.sv-watermark {
    position: absolute;
    right: 20px;
    bottom: -8px;
    display: flex;
    align-items: baseline;
    font-family: 'Times New Roman', "Yu Mincho", "游明朝", serif;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

.sv-wm-text {
    font-size: 34px;
    color: #cbe0ef;
    margin-right: -5px;
}

.sv-wm-num {
    font-size: 140px;
    color: transparent;
    -webkit-text-stroke: 1.5px #cbe0ef;
    line-height: 0.8;
}

/* --- 6. コンテンツ・ボタン --- */
.sv-content {
    position: relative;
    z-index: 2;
}

.sv-content h3 {
    font-size: 24px;
    color: #333333;
    margin: 0 0 25px 0;
    font-weight: 500;
}

.sv-content p {
    font-size: 14px;
    color: #555555;
    line-height: 2;
    margin: 0 0 35px 0;
}

.sv-btn,
a.sv-btn:link,
a.sv-btn:visited,
a.sv-btn:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #2d3748;
    color: #ffffff;
    padding: 16px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.sv-btn:hover,
a.sv-btn:hover {
    background-color: #1a202c;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.sv-btn .sv-arrow {
    margin-left: 10px;
    font-size: 16px;
    transition: transform 0.3s;
}

.sv-btn:hover .sv-arrow {
    transform: translateX(4px);
}

/* 📱 スマホ用レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .sv-container {
        padding-top: 50px;
    }

    .sv-section-title {
        margin-bottom: 40px;
    }

    .sv-section-title h2 {
        font-size: 28px;
    }

    .sv-service-block {
        margin-bottom: 80px;
    }

    .sv-slider-container {
        height: 220px;
    }

    .sv-slider-track img {
        width: 320px;
    }

    .sv-service-box {
        width: 90%;
        margin-top: -60px;
        padding: 40px 20px;
        border-radius: 0 0 40px 0;
    }

    .sv-service-box::before {
        width: 60px;
    }

    .sv-watermark {
        right: 15px;
        bottom: -10px;
    }

    .sv-wm-text {
        font-size: 22px;
    }

    .sv-wm-num {
        font-size: 90px;
        -webkit-text-stroke: 1px #cbe0ef;
    }

    .sv-content h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .sv-content p {
        font-size: 13px;
        margin-bottom: 25px;
    }

    .sv-content p br {
        display: none;
    }

    .sv-btn {
        padding: 14px 20px;
        font-size: 13px;
        width: 100%;
        box-sizing: border-box;
    }
}