@charset "UTF-8";

/* =========================================================
   Top Page Specific Styles (Refined & Fun Design)
   Base: main.css
========================================================= */

/* ---------------------------------------------------------
   共通アニメーション定義
--------------------------------------------------------- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1.05);
    }
}

/* 背景用ドットパターン（楽しさの演出） */
.bg-dots {
    background-image: radial-gradient(#e0efff 20%, transparent 20%), radial-gradient(#e0efff 20%, transparent 20%);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
}

/* セクション共通見出し装飾（波線） */
.section-title-deco {
    position: relative;
    display: inline-block;
}

.section-title-deco::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 6px;
    background: url('data:image/svg+xml;charset=utf8,%3Csvg viewBox="0 0 20 4" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 4 C5 4 5 0 10 0 C15 0 15 4 20 4" stroke="%232a9df4" stroke-width="2" fill="none"/%3E%3C/svg%3E') repeat-x;
    background-size: 20px 6px;
    opacity: 0.6;
}

/* ---------------------------------------------------------
   Hero Section (FV) - Adjustments
--------------------------------------------------------- */
/* 既存のFVスタイルを維持しつつ微調整 */
.fv__title {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.4;
    margin-bottom: 24px;
    font-weight: 900;
    color: #0e255a;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 0 #fff, -1px -1px 0 #fff;
    /* ポップな縁取り */
}

.fv__lead {
    font-weight: 700;
    color: #4a5568;
    padding: 16px;
}

/* ---------------------------------------------------------
   About Section - Organic & Floating
--------------------------------------------------------- */
.about-section {
    position: relative;
    padding: 140px 0;
    overflow: hidden;
    /* 背景に大きな有機的な形を配置 */
    background: linear-gradient(180deg, #fff 0%, #f0f7ff 100%);
}

.about-section::before {
    content: "";
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #dceeff 0%, #fff 100%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 0;
    animation: float 8s ease-in-out infinite;
    opacity: 0.6;
}

.about-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(40px, 8vw, 100px);
    align-items: center;
    position: relative;
    z-index: 1;
}

/* 画像エリア：有機的なマスク */
.about-main-image {
    position: relative;
    padding: 20px;
}

.about-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 30px;
    /* シンプルな角丸に変更し、清潔感を重視 */
    box-shadow: 20px 20px 0 rgba(30, 136, 255, 0.1);
    /* ずらした影で遊び心 */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.about-main-image:hover .about-img {
    transform: scale(1.02) rotate(-1deg);
}

/* テキストエリア */
.about-text {
    /* 縦書きをやめて、親しみやすい横書きレイアウトに変更（可読性向上） */
    writing-mode: horizontal-tb;
}

.about-text h2 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 900;
    color: #1e88ff;
    margin-bottom: 24px;
    line-height: 1.5;
    letter-spacing: 0.1em;
}

.about-description {
    font-size: 16px;
    line-height: 2;
    color: #5a6c88;
    margin-bottom: 32px;
    text-align: justify;
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: #1e88ff;
    text-decoration: none;
    font-size: 18px;
    transition: gap 0.3s;
}

.about-link:hover {
    gap: 18px;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-main-image {
        padding: 0;
        margin: 0 20px;
    }

    .about-section::before {
        width: 300px;
        height: 300px;
    }
}

/* --- About Collage Style --- */
.about-collage {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
}

.collage-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    border-radius: 20px 4px 20px 20px;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transform: rotate(-3deg);
    transition: transform 0.5s ease;
}

.collage-sub {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    border-radius: 4px 20px 20px 20px;
    border: 4px solid #fff;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 3;
    transform: rotate(3deg);
    transition: transform 0.5s ease;
}

.collage-deco {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #ffe0f0 20%, transparent 21%);
    background-size: 20px 20px;
    z-index: 1;
    animation: pop 3s infinite alternate;
}

/* ホバーで画像が離れるアクション */
.about-collage:hover .collage-main {
    transform: translate(-10px, -10px) rotate(0deg);
}

.about-collage:hover .collage-sub {
    transform: translate(10px, 10px) rotate(0deg);
}

/* ---------------------------------------------------------
   Services Section - Pop & Interactive Cards
--------------------------------------------------------- */
.services-section {
    padding: 120px 0;
    background-color: #f8fbff;
    /* 背景ドットパターン */
    background-image: radial-gradient(#d6eaff 15%, transparent 16%), radial-gradient(#d6eaff 15%, transparent 16%);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    position: relative;
}

/* 背景を白くぼかして文字を見やすく */
.services-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.8) 50%, #fff 100%);
    z-index: 0;
}

.services-header,
.svc-horizontal-grid,
.section-btn {
    position: relative;
    z-index: 1;
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-header h2 {
    font-size: clamp(32px, 5vw, 42px);
    color: #0e255a;
    margin-bottom: 16px;
}

/* カードグリッド */
.svc-horizontal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.svc-horizontal-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 10px 30px rgba(14, 37, 90, 0.05);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* アイコン装飾 */
.svc-horizontal-card__icon {
    font-size: 40px;
    width: 80px;
    height: 80px;
    background: #eaf4ff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    transition: transform 0.4s ease, background 0.4s ease;
}

.svc-horizontal-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0e255a;
    margin-bottom: 16px;
}

.svc-horizontal-card p {
    font-size: 14px;
    color: #6c7aa3;
    line-height: 1.8;
    margin-bottom: 24px;
    flex-grow: 1;
}

.svc-horizontal-card__link {
    color: #1e88ff;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 20px;
    background: #f0f7ff;
    transition: all 0.3s;
}

/* ホバーエフェクト */
.svc-horizontal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(30, 136, 255, 0.15);
    border-color: #dbeafe;
}

.svc-horizontal-card:hover .svc-horizontal-card__icon {
    transform: scale(1.1) rotate(10deg);
    background: #1e88ff;
    color: #fff;
    box-shadow: 0 8px 20px rgba(30, 136, 255, 0.3);
}

.svc-horizontal-card:hover .svc-horizontal-card__link {
    background: #1e88ff;
    color: #fff;
}

/* セクションボタン */
.section-btn {
    display: inline-block;
    margin-top: 40px;
    padding: 16px 40px;
    background: #1e88ff;
    color: #fff;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(30, 136, 255, 0.3);
    transition: all 0.3s;
}

.section-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(30, 136, 255, 0.4);
}

/* ---------------------------------------------------------
   Works Section - Magazine Style Layout
--------------------------------------------------------- */
.works-section {
    padding: 140px 0;
    background: #fff;
    overflow: hidden;
}

.works-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.works-info {
    position: relative;
    z-index: 2;
}

.works-info h2 {
    font-size: clamp(32px, 4vw, 44px);
    color: #0e255a;
    margin-bottom: 24px;
    line-height: 1.3;
}

.works-info p {
    color: #6c7aa3;
    line-height: 2;
    margin-bottom: 40px;
}

.works-stat {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stat-item .num {
    font-size: 48px;
    font-weight: 900;
    color: #1e88ff;
    line-height: 1;
    font-family: sans-serif;
}

.stat-item .label {
    font-size: 12px;
    font-weight: 700;
    color: #0e255a;
    letter-spacing: 0.1em;
}

/* 画像ボックス：少しずらして配置 */
.works-img-box {
    position: relative;
    z-index: 1;
}

.works-img-box::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid #1e88ff;
    border-radius: 30px;
    z-index: -1;
    transition: transform 0.4s;
}

.works-img-box img {
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    display: block;
    width: 100%;
    transition: transform 0.4s;
}

.works-showcase:hover .works-img-box img {
    transform: translate(-10px, -10px);
}

.works-showcase:hover .works-img-box::before {
    transform: translate(10px, 10px);
}

@media (max-width: 900px) {
    .works-showcase {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .works-stat {
        justify-content: center;
    }

    .works-img-box {
        order: -1;
        /* 画像を上に */
        margin: 0 20px 40px;
    }
}


/* ---------------------------------------------------------
   News Section - Card Style
--------------------------------------------------------- */
.news-section {
    padding: 120px 0;
    background: #fdfdfd;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 24px 32px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    text-decoration: none;
    color: #0e255a;
    transition: all 0.3s ease;
}

.news-date {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    color: #1e88ff;
    background: #eaf4ff;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-right: 24px;
    white-space: nowrap;
}

.news-title {
    font-weight: 700;
    font-size: 16px;
    flex-grow: 1;
}

.news-arrow {
    width: 32px;
    height: 32px;
    background: #f7fafc;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #1e88ff;
    font-weight: 900;
    transition: all 0.3s;
}

/* ホバー時の挙動 */
.news-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(30, 136, 255, 0.15);
    border-color: #1e88ff;
}

.news-item:hover .news-arrow {
    background: #1e88ff;
    color: #fff;
    transform: rotate(-45deg);
    /* 斜め上へ向くような動き */
}

@media (max-width: 600px) {
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .news-arrow {
        align-self: flex-end;
    }
}

/* ---------------------------------------------------------
   Common Fade Up Animation
--------------------------------------------------------- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* --- Floating Bubbles Animation --- */
.floating-bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-bubbles span {
    position: absolute;
    bottom: -100px;
    display: block;
    background: rgba(30, 136, 255, 0.15);
    /* 淡いブルー */
    border-radius: 50%;
    animation: riseUp 15s linear infinite;
}

/* 個別の泡の設定（サイズ・位置・速度） */
.floating-bubbles span:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.floating-bubbles span:nth-child(2) {
    width: 40px;
    height: 40px;
    left: 20%;
    animation-duration: 18s;
    animation-delay: 2s;
    background: rgba(255, 100, 150, 0.1);
    /* アクセントピンク */
}

.floating-bubbles span:nth-child(3) {
    width: 120px;
    height: 120px;
    left: 70%;
    animation-duration: 25s;
    animation-delay: 4s;
}

.floating-bubbles span:nth-child(4) {
    width: 60px;
    height: 60px;
    left: 85%;
    animation-duration: 15s;
    animation-delay: 1s;
}

.floating-bubbles span:nth-child(5) {
    width: 90px;
    height: 90px;
    left: 40%;
    animation-duration: 20s;
    animation-delay: 6s;
}

@keyframes riseUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}



/* --- 3D Hover Effect --- */
.svc-horizontal-card {
    /* 既存スタイルに追加 */
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.svc-horizontal-card:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 20px 20px 60px rgba(30, 136, 255, 0.2),
        -5px -5px 20px rgba(255, 255, 255, 0.8);
    border-color: transparent;
    /* 枠線を消して影で浮き立たせる */
}

/* アイコンにポヨンとした動きを追加 */
@keyframes bounce-icon {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.svc-horizontal-card:hover .svc-horizontal-card__icon {
    background: #1e88ff;
    color: #fff;
    animation: bounce-icon 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- 変更案：Serviceアイコンを水滴のように変形 --- */
.svc-horizontal-card__icon {
    /* 真ん丸(50%)ではなく、有機的な形に */
    border-radius: 63% 37% 30% 70% / 50% 45% 55% 50%;
    background: #eaf4ff;
    /* ふわふわ動かす */
    animation: blob-bounce 4s ease-in-out infinite;
}

@keyframes blob-bounce {

    0%,
    100% {
        border-radius: 63% 37% 30% 70% / 50% 45% 55% 50%;
    }

    50% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
}

/* --- 変更案：About画像のコラージュを柔らかく --- */
.collage-main,
.collage-sub {
    /* 角丸をランダムにして柔らかさを出す */
    border-radius: 25px 55px 30px 45px;
}

/* --- 固定マスコット（右下） --- */
.fixed-mascot {
    position: fixed;
    bottom: -10px;
    /* 下から少し顔を出している感じ */
    right: 20px;
    z-index: 100;
    width: 120px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
    text-decoration: none;
}

.fixed-mascot img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

/* 吹き出し */
.fixed-mascot__balloon {
    position: absolute;
    top: -40px;
    right: 10px;
    background: #fff;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    color: #0e255a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    opacity: 0;
    /* 最初は隠す */
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.fixed-mascot__balloon::after {
    content: "";
    position: absolute;
    bottom: -6px;
    right: 20px;
    border-top: 8px solid #fff;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}

/* ホバー時のアクション */
.fixed-mascot:hover {
    transform: translateY(-10px) rotate(-5deg);
    /* ぴょこっと上がる */
}

.fixed-mascot:hover .fixed-mascot__balloon {
    opacity: 1;
    transform: translateY(0);
}

/* モバイルでは少し小さく */
@media (max-width: 600px) {
    .fixed-mascot {
        width: 90px;
        right: 10px;
        bottom: -5px;
    }
}

/* --- 背景を飛ぶマスコット --- */
.bubble-mascot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.6;
    /* 背景なので少し薄くする */
    transform: rotate(15deg);
}

/* 既存のアニメーション定義を活用しつつ、マスコット用に微調整してもOK */
.floating-bubbles span.bubble-mascot {
    background: none;
    /* 色の玉を消す */
    border-radius: 0;
}

/* --- 固定マスコット（スクロールで出現＆吹き出し常時） --- */
.fixed-mascot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    width: 120px;
    display: block;
    text-decoration: none;

    /* ↓ 初期状態：下に隠しておく */
    opacity: 0;
    transform: translateY(100px);
    pointer-events: none;
    /* 隠れている時はクリック不可に */

    /* ふわっと出てくる動きの設定 */
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ↓ JavaScriptでこのクラスがつくと出現 */
.fixed-mascot.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.fixed-mascot img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
    /* 常時ゆらゆら揺らすアニメーション（お好みで） */
    animation: mascot-sway 3s ease-in-out infinite;
}

@keyframes mascot-sway {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(-5deg);
    }
}

/* 吹き出し（常時表示に変更） */
.fixed-mascot__balloon {
    position: absolute;
    top: -40px;
    right: 10px;
    background: #fff;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    color: #0e255a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;

    /* ↓ 常に見えるように設定 */
    opacity: 1;
    transform: translateY(0);
}

.fixed-mascot__balloon::after {
    content: "";
    position: absolute;
    bottom: -6px;
    right: 20px;
    border-top: 8px solid #fff;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}

/* ホバー時は少し浮く動きだけ残す */
.fixed-mascot:hover {
    transform: translateY(-10px);
}

/* モバイル対応 */
@media (max-width: 600px) {
    .fixed-mascot {
        width: 90px;
        right: 10px;
        bottom: 10px;
    }
}

/* =========================================
   ボタンホバー時の視認性修正
   文字が青くなって見えなくなるのを防ぐ
========================================= */

/* FVのボタン(.btn--primary) と セクションのボタン(.section-btn) 共通 */
.btn--primary:hover,
.section-btn:hover {
    color: #fff !important;
    /* 文字色を白で固定（!importantで強制） */
    text-decoration: none;
    /* 下線を消す */
    opacity: 0.8;
    /* 少し透けさせて反応を表現 */

    /* 背景色が白く反転してしまうのを防ぐ設定 */
    /* ↓前の手順で「オレンジ」にした場合はこちら */
    background-color: #ffaa00;
    box-shadow: 0 2px 0 #d48e00;
    /* 押した感じ（影を少し減らす） */
    transform: translateY(2px);
    /* 実際に少し沈む動き */
}

/* もし「青色」のまま使っている場合は、上の background-color を以下に変えてください */
/* background-color: #1e88ff; */

/* --- サービスカード内のリンクボタンも修正 --- */
.svc-horizontal-card:hover .svc-horizontal-card__link {
    color: #fff !important;
    background-color: #1e88ff;
    /* ここは青背景でOK */
    opacity: 0.9;
}

/* --- プランB：カプセル型ボタンスタイル --- */
.about-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 18px 48px;
    /* 他のボタンより少し大きく */
    background: #fff;
    color: #1e88ff;
    border: 3px solid #1e88ff;
    /* 太めの枠線 */
    border-radius: 50px;
    font-size: 18px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 4px 4px 0 #bce0fd;
    /* かわいい影 */
    transition: all 0.2s;
}

/* ホバー時のアクション */
.about-link:hover {
    transform: translate(2px, 2px);
    /* 押したように動く */
    box-shadow: 0 0 0 #bce0fd;
    /* 影がなくなる */
    background: #1e88ff;
    color: #fff;
    text-decoration: none;
    gap: 20px;
    /* 矢印が少し離れる */
}

/* =========================================
   全ボタン共通デザイン（プランB：ポップスタイル）
   白背景・太枠・影付きボタンへの統一
========================================= */

/* 対象：Aboutリンク、各セクションの主要ボタン、FVのメインボタン */
.about-link,
.section-btn,
.btn--primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 48px;
    /* 大きくて押しやすいサイズ */

    background: #fff;
    /* ベースは白 */
    color: #1e88ff;
    /* 文字は青 */
    border: 3px solid #1e88ff;
    /* 太めの枠線でポップに */
    border-radius: 50px;
    /* 丸いカプセル型 */

    font-size: 18px;
    font-weight: 900;
    text-decoration: none;
    line-height: 1;

    /* ポップな影（右下にずらす） */
    box-shadow: 4px 4px 0 #bce0fd;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ホバー時の動き（共通） */
.about-link:hover,
.section-btn:hover,
.btn--primary:hover {
    background: #1e88ff;
    /* 背景を青に */
    color: #fff !important;
    /* 文字を白に */
    box-shadow: 0 0 0 #bce0fd;
    /* 影をなくす */
    transform: translate(4px, 4px);
    /* 影の分だけ右下に動く（押した感じ） */
    text-decoration: none;
    opacity: 1;
    /* 以前の透明度指定をリセット */
}

/* -------------------------------------------
   サービスカード内の「詳しく見る」ボタン（小さめ版）
------------------------------------------- */
.svc-horizontal-card__link {
    display: inline-block;
    padding: 10px 24px;
    /* 少し小さめ */
    margin-top: auto;
    /* カード下部に配置 */

    background: #fff;
    color: #1e88ff;
    border: 2px solid #1e88ff;
    /* 枠線も少し細く */
    border-radius: 50px;

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    box-shadow: 3px 3px 0 #bce0fd;
    /* 影も小さく */
    transition: all 0.2s;
}

.svc-horizontal-card__link:hover {
    background: #1e88ff;
    color: #fff !important;
    box-shadow: 0 0 0 #bce0fd;
    transform: translate(3px, 3px);
}

/* -------------------------------------------
   FV（キービジュアル）内のお問い合わせボタン調整
------------------------------------------- */
/* .btn--ghost も似たデザインにするが、色は控えめに */
.btn--ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;

    background: rgba(255, 255, 255, 0.8);
    color: #0e255a;
    border: 3px solid #0e255a;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;

    box-shadow: 4px 4px 0 rgba(14, 37, 90, 0.2);
    transition: all 0.2s;
    margin-left: 10px;
    /* 隣のボタンとの隙間 */
}

.btn--ghost:hover {
    background: #0e255a;
    color: #fff;
    box-shadow: 0 0 0 rgba(14, 37, 90, 0.2);
    transform: translate(4px, 4px);
}

/* -------------------------------------------
   Aboutセクションのレイアウト調整（HTML変更に対応）
------------------------------------------- */
.about-btn-wrapper {
    margin-top: 32px;
    /* 文章との間隔 */
    text-align: left;
    /* 左揃えにする */
}

/* スマホ表示時は中央揃えに戻す */
@media (max-width: 900px) {
    .about-btn-wrapper {
        text-align: center;
    }
}

/* =========================================
   FVデザイン調整：白枠削除・文字色のみ
========================================= */

.masthead .fv .fv__title {
    /* 文字色をブランドの濃い青に */
    color: #0e255a !important;

    /* 白い縁取り（text-shadow）を完全に削除 */
    text-shadow: none !important;
}

/* リード文（サブテキスト）の白枠も削除 */
.masthead .fv .fv__lead {
    color: #0e255a !important;
    text-shadow: none !important;
    font-weight: 700 !important;
}

/* =========================================
   FVデザイン調整：タイトルを明るい青に変更
========================================= */

.masthead .fv .fv__title {
    /* 元の明るい青（ブランドカラー）に戻す */
    color: #1e88ff !important;

    /* 枠線（影）はなしのまま */
    text-shadow: none !important;
}

/* リード文は視認性確保のため「濃い青」を維持 */
.masthead .fv .fv__lead {
    color: #0e255a !important;
    text-shadow: none !important;
    font-weight: 700 !important;
}

/* =========================================
   FVリード文修正：光の暈（ハロー）効果
   背景ボックスなしで視認性を確保する
========================================= */

.masthead .fv .fv__lead {
    color: #0e255a !important;
    /* 濃い青 */
    font-weight: 700 !important;

    /* 文字の背後に「白い光のぼかし」を重ねて重ねて、浮き上がらせる */
    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.9),
        /* 近くを強く */
        0 0 10px rgba(255, 255, 255, 0.8),
        /* 少し広く */
        0 0 20px rgba(255, 255, 255, 0.6),
        /* 全体をぼんやりと */
        0 0 40px rgba(255, 255, 255, 0.5) !important;
    /* 広い範囲に光を広げる */

    /* 以前の不要な設定をリセット */
    background: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* =========================================
   FVタイトル修正：光の暈（ハロー）効果を追加
   リード文と同様に、背景なしで視認性を高める
========================================= */

.masthead .fv .fv__title {
    color: #1e88ff !important;
    /* 明るい青 */

    /* 白い光のレイヤーを重ねて、文字をふわっと浮き上がらせる */
    text-shadow:
        0 0 10px rgba(255, 255, 255, 1.0),
        /* 中心付近の強い光 */
        0 0 20px rgba(255, 255, 255, 0.8),
        /* 広がる光 */
        0 0 40px rgba(255, 255, 255, 0.6),
        /* 全体のぼんやりした光 */
        0 0 60px rgba(255, 255, 255, 0.5) !important;
    /* 背景に馴染ませる光 */
}

/* =========================================
   FVモバイル対応：画像を画面幅いっぱいに
========================================= */
@media (max-width: 900px) {

    /* FV全体を画面幅いっぱいに */
    .fv,
    .fv__inner {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    /* スライダー画像を画面幅いっぱいに */
    .fv-slider {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
    }

    .fv-slides {
        width: 100% !important;
    }

    .fv-slide {
        width: 100% !important;
        background-size: cover !important;
        background-position: center center !important;
    }

    /* CTAボタンを横並びに */
    .masthead .fv .fv__copy>div {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        justify-content: flex-start !important;
        margin-top: 20px !important;
    }

    .masthead .fv .fv__copy .btn,
    .masthead .fv .fv__copy .btn--primary,
    .masthead .fv .fv__copy .btn--ghost {
        display: inline-flex !important;
        width: auto !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding: 12px 20px !important;
        font-size: 14px !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 600px) {
    .fv-slide {
        background-position: 55% center !important;
    }

    .masthead .fv .fv__copy>div {
        gap: 8px !important;
    }

    .masthead .fv .fv__copy .btn,
    .masthead .fv .fv__copy .btn--primary,
    .masthead .fv .fv__copy .btn--ghost {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 400px) {

    /* 非常に狭い画面では縦並びに */
    .masthead .fv .fv__copy>div {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .masthead .fv .fv__copy .btn,
    .masthead .fv .fv__copy .btn--primary,
    .masthead .fv .fv__copy .btn--ghost {
        width: 100% !important;
        justify-content: center !important;
    }
}