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

body {
    font-family: "Montserrat", "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", sans-serif;
    color: #1A1A1A;
    line-height: 1.8;
    background-color: #fff;
    letter-spacing: 0.05em;
    overflow-x: hidden;
}

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

/* ==========================================================================
   Layout Components
   ========================================================================== */
.main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    display: flex;
    align-items: center;
    /* 縦方向の中央揃え */
    margin-bottom: 60px;
}

.section-header__en {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: #888;
    /* カンプに合わせた少し薄いグレー */
    display: flex;
    align-items: center;
}

/* オブジェクトとしての縦棒 */
.section-header__en::after {
    content: "";
    display: block;
    width: 1px;
    /* 線の太さ */
    height: 24px;
    /* 線の高さ */
    background-color: #1A1A1A;
    /* 線の色 */
    margin: 0 20px;
    /* 左右の余白（英語と日本語との距離） */
}

.section-header__ja {
    font-size: 18px;
    font-weight: bold;
    color: #1A1A1A;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    padding: 20px 40px;
    display: flex;
    justify-content: flex-end;
}

.header__logo img {
    height: 40px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

/* 1. ヒーロー全幅背景（最背面：背景色 ＋ 効果画像スクリーン合成） */
.hero__bg-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    /* 700px から変更：画面縦幅いっぱいに表示 */
    background-color: #f7f2e3;
    background-image: url("img/hero_bg_effect.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-blend-mode: screen;
    z-index: -3;
}

/* 2. 左端の縦書き英語テキスト（背景エリアの上に重ねる） */
.hero__side-text {
    position: absolute;
    left: 0;
    top: 0;
    width: clamp(40px, 8vw, 80px);
    /* 固定幅から変更：画面幅に応じて縮小 */
    height: 100vh;
    /* 700px から変更：画面縦幅いっぱいに表示 */
    background-image: url("img/hero_bg_text.svg");
    background-repeat: no-repeat;
    background-position: top left;
    background-size: contain;
    z-index: -2;
}

/* 3. ヒーローセクション本体 */
.hero {
    position: relative;
    padding: 0;
    /* 画面中央配置のため上下パディングを削除 */
    margin-bottom: 100px;
    height: 80vh;
    /* 600px から変更：背景エリアと高さを同期 */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 4. 中央のメインコピー画像 */
.hero__main-container {
    position: absolute;
    left: 54%;
    top: 45%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 800px;
    text-align: center;
    z-index: -1;
}

.hero__main-image {
    width: 100%;
    height: auto;
    display: block;
}


/* ==========================================================================
   Service Section
   ========================================================================== */
/* serviceセクションに基準点を設定 */
.service {
    position: relative;
    margin-bottom: 100px;
    margin-top: 20vh;
}

.service__top-illustration {
    position: absolute;
    right: calc((100% - 80vw) / 2);
    top: -30vh;
    width: 50%;
    max-width: 450px;
    z-index: 1;
}

/* Animation */

.service__top-illustration img {
  animation: floating-y 1.8s ease-in-out infinite alternate-reverse;
}
@keyframes floating-y {
  0% {
    transform: translateY(-2%);
  }
  100% {
    transform: translateY(2%);
  }
}


.service__intro {
    margin-bottom: 60px;
}

.service__intro-title {
    font-size: 36px;
    letter-spacing: 0.06em;
}

/* サービスリストの三角アイコン */
.service-list {
    max-width: 700px;
    margin: 0 auto 80px;
    list-style: none;
}

.service-list__item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
}

.service-list__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    border-left: 12px solid #EECA28;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.service-list__title {
    font-size: 20px;
    margin-bottom: 5px;
}

/* 伴走支援ボックス */
.support-box {
    position: relative;

    /* ガラス効果の設定 */
    background: rgba(255, 255, 255, 0.6);
    /* 半透明の背景色 */
    backdrop-filter: blur(16px);
    /* 背景のぼかし */
    -webkit-backdrop-filter: blur(16px);
    /* Safari対応 */
    border: 1px solid rgba(255, 255, 255, 0.8);
    /* ガラスのエッジを表現する枠線 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* 浮遊感を出す柔らかい影 */

    border-radius: 40px;
    padding: 60px 400px 60px 60px;
    margin-top: 120px;
    display: flex;
    align-items: center;
    min-height: 280px;
}

.support-box__title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #1A1A1A;
}

.support-box__text {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.support-box__note {
    font-size: 12px;
    color: #1A1A1A;
}

/* 図解画像の配置設定 */
.support-box__image {
    position: absolute;
    right: 0%;
    top: 0;
    width: 392px;
    transform: translateY(-18%);
}

.support-box__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ボタンエリア */
.contact-area {
    text-align: center;
    margin-top: 80px;
}

/* ==========================================================================
   問い合わせボタン（スライドホバーアニメーション適用）
   ========================================================================== */

.btn--contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #EECA28;
    /* 通常時の背景色 */
    color: #1A1A1A;
    text-decoration: none;
    font-weight: bold;
    padding: 15px 50px;
    border-radius: 50px;
    font-size: 18px;
    letter-spacing: 0.1em;

    /* アニメーション用の追加設定 */
    position: relative;
    overflow: hidden;
    /* はみ出したスライド背景を隠す */
    z-index: 1;
    /* 疑似要素の背景より手前に配置 */
}

/* 左からスライドしてくる背景 */
.btn--contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1A1A1A;
    /* ホバー時の背景色 */
    transform: scale(0, 1);
    transform-origin: left top;
    transition: .2s cubic-bezier(0.45, 0, 0.55, 1);
    z-index: -1;
}

/* ホバー時に背景をスライド表示 */
.btn--contact:hover::after {
    transform: scale(1, 1);
}

/* ==========================================================================
   内部要素の配置とホバー時の色変化
   ========================================================================== */

/* テキスト */
.btn--contact .btn__text {
    margin-right: 15px;
    transition: color 0.2s;
}

.btn--contact:hover .btn__text {
    color: #fff;
    /* ホバー時の文字色 */
}

/* オブジェクト：縦棒 */
.btn--contact .btn__separator {
    display: block;
    width: 1px;
    height: 18px;
    background-color: #1A1A1A;
    /* 通常時の棒の色 */
    margin-right: 15px;
    transition: background-color 0.2s;
}

.btn--contact:hover .btn__separator {
    background-color: #fff;
    /* ホバー時の棒の色 */
}

/* オブジェクト：矢印 */
.btn--contact .btn__arrow {
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 9px;
    border-color: transparent transparent transparent #1A1A1A;
    /* 通常時の矢印の色 */
    transition: border-color 0.2s;
}

.btn--contact:hover .btn__arrow {
    border-color: transparent transparent transparent #fff;
    /* ホバー時の矢印の色 */
}

.contact-area__status {
    margin-top: 20px;
}

/* ==========================================================================
   Mission Section
   ========================================================================== */

.mission {
    position: relative;
    /* 削除：ここにあった background-color: #f7f2e3; を下へ移動 */
    overflow: hidden; 
    z-index: 1;
}

/* 親背景コンテナ */
.mission .mission__bg {
    position: absolute;
    inset: 0;
    background-color: #f7f2e3; /* 追加：合成の土台を同じグループ内に作る */
    z-index: -1;
}

/* 個別の円（共通ベース設定） */
.mission__circle {
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    aspect-ratio: 1; /* 正方形（円形）の比率を維持 */
}

/* 青（小）：軽やかに少し速め */
.mission__circle--blue {
    top: 20px;
    left: 30px;
    width: 20%;
    background-image: url("img/mission_ellipse-blue.png");
    animation: float-blue 3s ease-in-out infinite alternate;
}

/* 赤（中）：標準的な速度でゆったり */
.mission__circle--red {
    top: 50%;
    right: -70px;
    width: 30%;
    background-image: url("img/mission_ellipse-red.png");
    /* 上下中央揃えを起点にしてアニメーションさせる */
    animation: float-red 6s ease-in-out infinite alternate;
}

/* 緑（大）：ごくゆっくり重厚に漂う */
.mission__circle--green {
    bottom: 0;
    left: -70px;
    width: 50%;
    background-image: url("img/mission_ellipse-green.png");
    animation: float-green 8s ease-in-out infinite alternate;
}

/* 効果画像（最前面から全体をスクリーン合成） */
.mission__bg-effect {
    position: absolute;
    inset: 0;
    background-image: url("img/mission_bg_effect.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    mix-blend-mode: screen; /* ブラウザ上でスクリーン効果を再現 */
    pointer-events: none;   /* テキスト選択やクリックの邪魔をしない設定 */
}

/* --- Animations (背景の有機的な浮遊感) --- */

@keyframes float-blue {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(15px, 10px) scale(1.08); }
}

@keyframes float-red {
    /* translateY(-50%) の基本位置を維持したまま動かす */
    0% { transform: translateY(-50%) translate(0, 0) scale(1); }
    100% { transform: translateY(-50%) translate(-20px, -15px) scale(1.05); }
}

@keyframes float-green {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    100% { transform: translate(25px, -20px) scale(1.1) rotate(5deg); }
}

.mission .misson__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 40px;
}

.mission-articles {
    max-width: 550px;
    margin: auto;
}

.mission__lead-title {
    font-size: 40px;
    margin-bottom: 40px;
    letter-spacing: 0.06em;
}

.mission__image {
    width: 350px;
    margin: 80px auto;
    display: block;
}

.article-block {
    margin-bottom: 80px;
}

.article-block__title {
    font-size: 28px;
    margin-bottom: 10px;
    width: fit-content;
    letter-spacing: 0.06em;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 60px 40px;
    text-align: center;
}

.footer__logo {
    margin-bottom: 20px;

    img {
        height: 40px;
    }
}

.footer__copyright {
    font-size: 12px;
}


/* ==========================================================================
   Responsive Styles (画面幅 768px 未満のモバイル・タブレット対応)
   ========================================================================== */
@media (width < 768px) {

    .header__logo img {
        height: 20px;
    }

    .hero {
        height: 60vh;
    }

    .hero__bg-area {
        height: 80vh;
    }

    /* 左右のパディング（余白）を狭く調整 */
    .main,
    .mission .misson__inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .section-header {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
    }

    /* 文字サイズのシームレスな縮小設定 */
    .section-header__en {
        font-size: clamp(24px, 6vw, 32px);
    }

    .section-header__ja {
        font-size: clamp(14px, 4vw, 18px);
    }

    .service__intro-title {
        font-size: clamp(22px, 6vw, 36px);
    }

    .mission__lead-title {
        font-size: clamp(24px, 6vw, 40px);
    }

    .article-block__title {
        font-size: clamp(20px, 5vw, 28px);
    }

    /* メインコピー：左端の縮小テキストと被らないよう配置を微調整 */
    .hero__main-container {
        left: 50%;
        width: 85%;
        top: 50%;
    }

    .service {
        margin: 150px auto 100px;
    }

    /* サービス上部イラスト：見出しへの丸被りを防ぐため縮小・位置調整 */
    .service__top-illustration {
        right: calc((100% - 100vw) / 2);
        top: -180px;
        width: 50%;
    }

    /* 伴走支援ボックス：絶対配置を解除し、テキストの下に画像を配置（縦積み） */
    .support-box {
        flex-direction: column;
        padding: 40px 20px;
        margin-top: 80px;
        border-radius: 24px;
    }

    .support-box__image {
        position: relative;
        width: 80%;
        max-width: 300px;
        transform: none;
        /* はみ出し設定を解除 */
        margin-top: 30px;
    }

    /* ミッションセクションのイラスト縮小 */
    .mission__image {
        width: 80%;
        max-width: 250px;
        margin: 40px auto;
    }

    /* ボタンのサイズ調整 */
    .btn--contact {
        padding: 12px 30px;
        font-size: 15px;
    }
}