﻿@charset "utf-8";

/* ===== Reset （全要素の初期化・事故防止）===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* flex / grid の子要素が勝手に横に広がるのを防ぐ おさまるようになる！*/
    min-width: 0;
}

/* ===== Global （ページ全体の基準・ルール）===== */
html {
    font-size: 62.5%;
    /* 1rem = 10px */
    scroll-behavior: smooth;
    max-width: 100%;
    /* 万一はみ出した場合でも横スクロールを出さない保険 */
    overflow-x: hidden;
}

/* ===== （実コンテンツの見た目と挙動）===== */
body {
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 400;
    color: #222;
    line-height: 1.7;
    /* はみ出さないようにLPでは必須 ：bodyがviewport幅に従うことを明：*/
    width: 100%;
    overflow-x: hidden;
}

/* ===== Base ===== */
a {
    text-decoration: none;
    color: inherit;
}

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

li {
    list-style: none;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.3;
}

.text-sm {
    font-size: 1.8rem;
}

.text-md {
    font-size: 2.3em;
}

.text-lg {
    font-size: 3rem;
}

.text-xl {
    font-size: 4rem;
}

.text-body {
    text-align: justify;
    text-justify: inter-ideograph;
}

.text-num {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-variation-settings: "wdth" 700;
}

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

#merit,
#function,
#introduction {
    padding: 11rem 0;
}

/* はみ出し確認用フレーム 最終確認時にコメントアウトすること！ */
/* * {
    outline: 1px solid red;
} */

/* ======================
   Header 基本
====================== */
#g-nav_area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    z-index: 100;
}

/* ロゴ */
.logo img {
    width: 26rem;
    margin-left: 3rem;
}

/* ナビ全体を右寄せ */
.g-nav {
    margin-left: auto;
}

.g-nav_ul {
    display: flex;
    align-items: center;
    gap: 4.8rem;
}

.g-nav_ul a {
    color: #2f5597;
    font-size: 2rem;
    text-decoration: none;
    font-weight: 600;
}


/* 右隅お問い合わせボタン */

.contact_box {
    height: 100%;
    margin-left: 4.8rem;
}

.contact_box a {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 4rem;

    font-size: 2rem;
    color: #f9f3e8;
    text-decoration: none;
    white-space: nowrap;

    background: linear-gradient(90deg, #E78E1A 54%, #EB6818 87%, #DD571F 100%);
}

.function-title {
    font-size: 2.7rem;
}

/* ハンバーガー（PCでは非表示） */
/* ======================
   ハンバーガー
====================== */
.p-header__hamburger {
    display: none;
    margin-left: 1.6rem;
}

.c-hamburger {
    width: 48px;
    height: 48px;
    background: #005885;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.c-hamburger span {
    position: absolute;
    left: 50%;
    width: 24px;
    height: 2px;
    background: #fff;
    transform: translateX(-50%);
    transition: .4s;
}

.c-hamburger span:nth-child(1) {
    top: 14px;
}

.c-hamburger span:nth-child(2) {
    top: 23px;
}

.c-hamburger span:nth-child(3) {
    top: 32px;
}

.c-hamburger.is-active span:nth-child(1) {
    top: 23px;
    transform: translateX(-50%) rotate(45deg);
}

.c-hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.c-hamburger.is-active span:nth-child(3) {
    top: 23px;
    transform: translateX(-50%) rotate(-45deg);
}

/* ======================
   SP
====================== */
@media screen and (max-width: 768px) {

    .g-nav {
        display: none;
    }

    .contact_box {
        display: none;
    }

    /* ======================
   ハンバーガー（SP）
====================== */
    .p-header__hamburger {
        display: none;
    }

    @media (max-width: 768px) {

        .p-header__hamburger {
            display: block;
            position: absolute;
            top: 16px;
            right: 16px;
            z-index: 1000;
        }

        /* ナビは初期非表示 */
        .g-nav {
            display: block;
        }

        .g-nav_ul {
            display: none;
        }

        /* ナビOPEN状態 */
        .g-nav_ul.active {
            display: flex;
            position: fixed;
            top: 80px;
            left: 0;
            width: 100%;
            height: calc(100vh - 80px);
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 3.2rem;
            background: #fff;
            z-index: 999;
        }
    }

    /* ======================
   ハンバーガーアニメ
====================== */
    .c-hamburger {
        width: 48px;
        height: 48px;
        background: #005885;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        position: relative;
    }

    .c-hamburger span {
        position: absolute;
        left: 50%;
        width: 24px;
        height: 2px;
        background: #fff;
        transform: translateX(-50%);
        transition: .4s;
    }

    .c-hamburger span:nth-child(1) {
        top: 14px;
    }

    .c-hamburger span:nth-child(2) {
        top: 23px;
    }

    .c-hamburger span:nth-child(3) {
        top: 32px;
    }

    .c-hamburger.is-active span:nth-child(1) {
        top: 23px;
        transform: translateX(-50%) rotate(45deg);
    }

    .c-hamburger.is-active span:nth-child(2) {
        opacity: 0;
    }

    .c-hamburger.is-active span:nth-child(3) {
        top: 23px;
        transform: translateX(-50%) rotate(-45deg);
    }

}


/* トップエリア */
#top-area {
    position: relative;
    min-height: 100vh;
    padding-top: var(--header-h);

    display: flex;
    flex-direction: column;
    justify-content: center;

    background-image: url(./dp3-img/dp3-_top_bg_w@2x-100.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    overflow-x: hidden;
}

:root {
    --header-h: 80px;
}

.top-area-box {
    display: flex;
    align-items: flex-end;
    max-width: 1200px;
    margin: 0 auto;
    /* margin: auto auto 0; */
    /* ← 下寄せ上下左右はなりゆき */
}

@media (min-width: 1600px) {
    .top-area-box {
        max-width: 1400px;
    }
}

.title-box {
    display: flex;
    flex-direction: column;
    flex: 0 1 45%;
}

.top-image {
    flex: 0 1 55%;
}

/* 見出し */
.grad-title {
    position: relative;
    display: inline-block;
    align-self: flex-start;
    /* flexの伸びを止める */
    width: fit-content;
    /* 中身幅にする（超重要） */
    max-width: 100%;
    font-size: 3rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    padding: 8px 1.5em 8px 4em;
    margin-top: 0;
    /* 好きな位置に */
    margin-left: -1.5em;
    margin-bottom: 2rem;
    /* 下とだけ関係させる */
    /* 少しだけ左にはみ出す */
    background: linear-gradient(90deg,
            #805094 0%,
            #a05492 50%,
            #6f356f 100%);

    /* 斜め */
    clip-path: polygon(0 0,
            100% 0,
            calc(100% - 20px) 100%,
            0 100%);
}


.main-logo {
    padding-top: 5rem;
    width: 52rem;
    height: auto;
}

.top-sub-copy-box {
    padding-top: 1.5rem;
}

.top-sub-copy {
    line-height: 1.5;
    font-size: 2.1rem;
    text-align: center;
}

.top-content-img {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
    height: auto;
}

.top-pc-img {
    max-height: 70vh;
    width: auto;
    object-fit: contain;
}

/* お問い合わせボタン */
.contact-widget {
    border-radius: 1.8rem;
    position: fixed;
    bottom: 4rem;
    right: 4rem;
    background: linear-gradient(90deg, rgba(13, 86, 166, 1) 0%, rgba(0, 42, 104, 1) 100%);
    padding: 2.4rem 3.2rem;
    display: block;
    /* 初期状態で表示 */
    box-shadow: 0.5rem 0.5rem 0.3rem 0px rgba(0, 0, 0, 0.3);
    z-index: 99;
}

/* ======================
   ふわっと消えるアニメーション
====================== */
.contact-widget {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.contact-widget.is-hidden {
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}

/* ＝＝＝＝＝＝＝＝＝＝＝*/

.contact-widget h2,
.contact-widget p {
    margin: 0;
    color: #f9f3e8;
}

.contact-widget h2 {
    font-size: 2.5rem;
}

.contact-widget p {
    padding-top: 1.6rem;
    position: relative;
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
}

.close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    cursor: pointer;
    background: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 5px 5px 3px 0px rgba(0, 0, 0, 0.3);
}

.close-btn span {
    display: block;
    position: absolute;
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: #002a68;
}

.close-btn span:nth-of-type(1) {
    transform: rotate(225deg);
}

.close-btn span:nth-of-type(2) {
    transform: rotate(-225deg);
}

/* 4つのメリット */
.section__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.copy-box {
    display: flex;
    justify-content: center;
}

.copy1 {
    margin-bottom: 10rem;
}

.copy-h3,
.copy1 {
    line-height: 1.5;
    color: #6c356c;
    text-align: center;
}

.top-content-box {
    display: flex;
    justify-content: start;
}

.answer h4 {
    padding-bottom: 2rem;
}

.answer,
.recomend,
.introduction {
    text-align: center;
}

/* 4つのメリット */
#merit {
    margin-left: auto;
    margin-right: auto;
    background-color: #F9F3E8;
    padding-bottom: 11rem;
}

#merit h1 {
    text-align: center;
    margin-bottom: 3rem;
}

.box {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1200px;
    /* ここが重要！！ */
    gap: 1rem;
    /* お好みで間隔調整 */
}

.box>.item {
    width: calc(50% - 0.5rem);
    /* gapがある場合は調整 */
}

.merit-img {
    width: 25rem;
    height: 21rem;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
}

.in-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 0;
    margin: 4.8rem 1.8rem;
    background: #fff;
    border-radius: 1.6rem;
    box-shadow: 0.7rem 0.7rem 0.5rem 0 rgba(0, 0, 0, 0.3);
    width: 32rem;
    height: 44rem;
    justify-content: center;
}

.in-box-content {
    flex: 1 1 auto;
    /* 必要に応じて広がるし縮む（初期サイズはコンテンツ依存） */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.num-box {
    position: relative;
    display: flex;
    justify-content: center;
}

.merit-num {
    color: #6c356c;
    position: absolute;
    top: 1.2rem;
    left: 4.2rem;
    font-size: 5rem;
}

.merit-text {
    /* flex-grow: 1; */
    /* flex-grow「余っているスペースを、子要素がどれくらい広がって使うか」 */
    margin: 0 3.2rem;
    font-size: 1.6rem;
    line-height: 1.5;
    letter-spacing: 0.03em;
}

.in-box h3 {
    text-align: center;
    padding-top: 1.5rem;
}

/* 機能詳細 */
#function {
    margin: 0 auto;
    background-color: #F9F3E8;
}

.line {
    width: 40rem;
}

.function-box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.fc-title-sub {
    background-color: #6c356c;
    padding: 0.5rem 2rem;
    border-radius: 999px;
    color: #fff;
    display: inline-block;
    margin-top: 2rem;

}

.function-img-l,
.function-img-r {
    width: 47rem;
    height: auto;
}

.function-img-l {
    margin-right: 7.2rem;
}

.function-img-r {
    margin-left: 7.2rem;
}


.function-title-box {
    display: flex;
    align-items: center;
}

.function-title-box img {
    width: 7.8rem;
    height: auto;
    object-fit: contain;
    object-position: center;
    margin-right: 1.7rem;
}

.function-title {
    margin-bottom: 1.6rem;
    color: #6c356c;
    font-weight: bold;
    font-size: 3.2rem;
    line-height: 1.5;
}

.function-title-sub {
    margin-bottom: 1.6rem;
    color: #6c356c;
    font-weight: bold;
    font-size: 2.2rem;
    line-height: 1.5;
}

.function-text {
    font-size: 1.6rem;
    line-height: 2;
    text-align: justify;
}

/* ポイント２の画像 */
.function-img-box {
    max-width: 1200px;
    /* 念のため */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 3fr 0.5fr 5.5fr;
    gap: 16px;
    align-items: flex-start;
    padding-top: 2rem;
}

.function-img-box img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.arrow {
    margin-top: 164%;
}

.function-text-box {
    width: 52rem;
}

.point04 {
    display: grid;
    grid-template-columns: 10fr 3fr;
    align-items: center;
    gap: 32px;
    margin: 0 auto;
}



/* 導入 */
#introduction {
    background-color: #E0CBDC;
}

.introduction-line {
    width: 40rem;
}

.introduction-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    max-width: 100rem;
    margin: 0 auto;
}


.introduction h4 {
    margin-bottom: 2rem;
}

.introduction-in-box {
    margin-top: 3.6rem;
    min-height: 25rem;

    background-color: #fff;
    border-radius: 1.6rem;
    padding: 2rem;

    position: relative;
    display: flex;
    flex-direction: column;
}

.introduction-in-box {
    width: auto;
}

.introduction-in-box:nth-child(4) {
    margin-right: 0;
}

.step {
    margin-bottom: 3rem;
}

.intro-text-title {
    margin-bottom: 2rem;
}

.step,
.intro-text-title {
    color: #002a68;
    font-size: 2rem;
    font-weight: bold;
}

.intro-text {
    flex-grow: 1;
    line-height: 1.5;
    font-size: 1.6rem;
}

.card-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.introduction-in-box:not(:last-child):after {
    content: '';
    border: 0;
    border-top: solid 2px #002a68;
    border-right: solid 2px #002a68;
    display: inline-block;
    transform: rotate(45deg);
    width: 1rem;
    height: 1rem;
    position: absolute;
    top: 50%;
    right: -8%;
}

/* フッター */
footer {
    margin: 0 auto;
    padding: 11rem 0 12rem 0;
    background-color: #F9F3E8;
}

.footer-logo {
    display: block;
    margin: 0 auto;
    width: 40rem;
    margin-top: 5rem
}

.footer_area {
    margin: 5rem auto 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #2f5597;
    padding-bottom: 4.2rem;
}

.Btn-footer {
    margin-top: 5rem;
    margin-left: auto;
    margin-right: auto;
    display: block;
    letter-spacing: 0.1rem;
    text-align: center;
    width: 32rem;
    min-width: 300px;
    padding: 2rem;
    background: linear-gradient(90deg, #805094 0%, #a05492 50%, #6f356f 100%);
    border-radius: 9999px;
    color: #fff;
    border: none;
    font-size: 2rem;
}

.footer_img {
    width: 20rem;
}

.footer_text {
    margin-left: 3rem;
    font-size: small;
    color: #2f5597;
}

.footer_ul {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 2rem;
}

.footer_ul li a {
    padding: 0.8rem 2rem;
    color: #2f5597;
}

.footer_ul li+li::before {
    content: "";
    display: block;
    height: 2.4rem;
    border-left: 1px solid #2f5597;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
}

.copyright {
    text-align: center;
    color: #2f5597;
    margin-top: 2.4rem;
    font-size: small;
}

.Btn-A {
    margin-top: 6.4rem;
    margin-left: auto;
    margin-right: auto;
    display: block;
    letter-spacing: 0.1rem;
    text-align: center;
    width: 32rem;
    min-width: 300px;
    padding: 2rem;

    background: linear-gradient(90deg,
            #805094 0%,
            #a05492 50%,
            #6f356f 100%);
    border-radius: 9999px;
    color: #fff;
    border: none;
    font-size: 2rem;
}

@media (max-width: 600px) {

    .line,
    .introduction-line,
    .function-img-l,
    .function-img-r {
        width: 100%;
        max-width: 100%;
    }
}

/* PC */
/* @media (min-width: 769px) {} */

/* SP */
@media (max-width: 1092px) {
      .top-area-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  /* 左カラム・右カラムとも中央寄せ */
  .title-box,
  .top-image {
    flex: none;
    width: 100%;
    align-items: center;
  }

  /* ロゴ */
  .main-logo {
    width: 80%;
  }

  /* 画像 */
  .top-pc-img {
    max-height: none;
    width: 90%;
  }
    .logo img {
        width: 26rem;
        margin-left: 1rem;
    }

    .g-nav_ul a {
        font-size: 2.6rem;
    }

    .section__inner {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 24px;
    }

    .grad-title {
        margin-left: 0;
        padding: 12px 1.5em;
        width: 100%;
        box-sizing: border-box;
        font-size: 2.5rem;
        margin-top: 0;

    }

    .grad-title {
        clip-path: none
    }

    .point04 {
        grid-template-columns: 1fr;
    }

    .top-area-box,
    .box,
    .introduction-box {
        flex-direction: column;
    }

    .title-box {
        align-items: center;
    }

    h2 {
        font-size: 2.2rem;
    }

    h3 {
        font-size: 1.8rem;
    }

    p ,
    .function-text{
        font-size: 1.4rem;
        line-height: 1.7;
    }

    .text-lg {
        font-size: 2.3rem;
    }

    .fc-title-sub {
        display: block;
        width: fit-content;
        margin: 2rem auto 0;
    }

    .function-title {
        margin-bottom: 1.6rem;
        color: #6c356c;
        font-weight: bold;
        font-size: 2.5rem;
        line-height: 1.5;
    }

    .function-text-box,
    .function-img-l {
        width: 100%;
    }

    .function-img-l {
        margin-right: 0;
    }

    .introduction-box {
        display: flex;
        flex-direction: column;
        /* 縦並び */
        gap: 2rem;
        /* 上下の間隔 */
        width: 100%;
        /* 画面いっぱいに広げる */
        max-width: 40rem;
        /* 好みで最大幅を制限 */
        margin: 0 auto;
        /* 中央寄せ */
    }

    .introduction-in-box {
        width: 100%;
        /* 親に合わせる */
        margin-right: 0;
        /* 横余白はなし */
    }

    .point04 {
    justify-items: center;
}

    .introduction-in-box:not(:last-child):after {
        transform: rotate(135deg);
        position: absolute;
        top: 105%;
        right: 50%;
    }

    .contact-widget {
        position: fixed;
        right: 4rem;
        bottom: 4rem;
        width: auto;
    }


    /* ハンバーガーの開閉設定 */
    .g-nav_ul {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3.2rem;

        background: #fff;
        z-index: 999;

        height: calc(100dvh - 80px);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate3d(0, -8px, 0);

        transition:
            opacity .35s ease,
            transform .35s ease,
            visibility .35s ease;
    }

    .g-nav_ul.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        background-color: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(6px);
        transform: translate3d(0, 0, 0);
    }

    .footer_area {
        flex-direction: column;
        text-align: center;
    }

    .footer_ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        margin-top: 2rem;
    }

    .footer_ul li+li::before {
        content: none;
    }
}