@charset "utf-8";

/* ==================================
  全体
=====================================*/
html {
    font-size: 100%;
}

body {
    padding-top: 85px;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 400;
    font-style: normal;
    box-sizing: border-box;
    background-color: #F9FDFF;
    color: #3f3f3f;
}

.wrapper {
    max-width: 1280px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 50px;
}

.bold {
    font-weight: 700;
}

iframe {
    max-width: 100%;
}

/* ちょうどいいところで改行 */
.br_span{
display: inline-block;
}
/* ヘッダー
-------------------------------------- */
.title {
    height: 85px;
    top: 0;
    align-items: center;
    background-color: #5DC1CF;
    display: flex;
    justify-content: space-between;
    position: fixed;
    width: 100%;
    z-index: 9999;
}

.title__logo {
    display: flex;
    align-items: center;
    height: 68px;
    width: 63px;
    margin-left: 40px;
    align-self: center;
}

.title__logo img {
    max-height: 100%;       /* 高さを親に合わせる */
    width: auto;
    display: block;
}

.gnav__list {
    display: flex;
    list-style-type: none;
}

.gnav__item {
    font-size: 1.5rem;
    font-weight: 400;
    font-style: normal;
    padding-right: 30px;
}

.gnav__link {
    color: #fff;
    text-decoration: none;
}

/* トップ以外のヒーロー画像
-------------------------------------- */
.hero,
.hero img {
    position: relative;
    height: 40vw;
    overflow: hidden;
    max-width: 1980px;
    margin: 0 auto;
}

.hero__text {
    position: absolute;
    top: 30%;
    left: 10%;
    z-index: 5;
}

.hero__text h1,
.hero__text p {
    color: #fff;
}

.hero__text h1 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 15px;
}

.hero__text p {
    font-size: 1.5rem;
}

/* ハンバーガーメニュー
-------------------------------------- */
.hamburger-menu {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 5px;
    display: none;
}

.hamburger-menu span {
    display: block;
    position: absolute;
    left: 50%;
    width: 100%;
    height: 3px;
    background-color: #fff;
    transform: translateX(-50%);
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.hamburger-menu span:nth-child(1) {
    top: 8px;
}

.hamburger-menu span:nth-child(2) {
    top: 18px;
}

.hamburger-menu span:nth-child(3) {
    top: 28px;
}

/* メニュー開閉時 */
.hamburger-menu.open span:nth-child(1) {
    transform: translateX(-50%) rotate(45deg);
    top: 18px;
    /* 中央に重ねる */
    width: 100%;
}

.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open span:nth-child(3) {
    transform: translateX(-50%) rotate(-45deg);
    top: 18px;
    /* 中央に重ねる */
    width: 100%;
}


/* ナビゲーションメニューのスタイル */
.nav-menu {
    margin-top: 75px;
    position: fixed;
    top: 0;
    right: -110%;
    /* 最初は画面外に隠す */
    width: 100%;
    height: 90%;
    color: #3f3f3f;
    background-color: #fff;
    /* 半透明の黒 */
    background-image: url(../img/index/back-2.svg);
    background-position: bottom;
    padding: 30px 20px;
    /* ハンバーガーアイコンの下に配置 */
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease-out;
    z-index: 1050;
    /* ハンバーガーアイコンより奥、コンテンツより手前 */
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 40px 0 0 40px;
    justify-content: center;
}

.hamburger-menu span {
    transform-origin: center;
    will-change: transform, top;
}

.nav-img {
    width: 170px;
    height: auto;
}

.nav-menu.open {
    right: 0;
    /* 画面内に表示 */
}


.nav-menu ul {
    margin-top: 25px;
    list-style: none;
    padding: 0;
    width: fit-content;
    /* ulの幅をコンテンツに合わせて自動調整 */
    /* text-align: left; // ul内のテキストには直接影響しないため削除 */
}

.nav-menu li {
    margin-bottom: 20px;
    display: flex;
    /* ★追加点★ liをフレックスコンテナにする */
    align-items: center;
    /* ★追加点★ 箇条書きとテキストを垂直方向の中央に揃える */
}

.nav-menu li:before {
    content: '● ';
    /* ★追加点★ 箇条書きの記号 */
    color: #5DC1CF;
    /* ★追加点★ 記号の色 */
    font-size: 1rem;
    /* ★追加点★ 記号のサイズを調整 */
    margin-right: 8px;
    /* ★追加点★ 記号とテキストの間にスペースを入れる */
    flex-shrink: 0;
    /* ★追加点★ 記号が縮小しないようにする */
}

.nav-menu a {
    color: #3f3f3f;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
    font-size: 1.3rem;
}

.nav-menu a:hover,.gnav__list a:hover {
    opacity: 0.7;
    /* ホバー時の色 */
}

.nav-sns img {
    width: 100px;
    height: auto;
    padding: 15px;
}

.nav-sns {
    display: flex;
}

/* 画面下の背景
-------------------------------------- */
.bottom-bg {
    background-image: url(../img/index/back.svg);
    position: fixed;
    bottom: 0;
    right: 0;
    aspect-ratio: 104/75;
    width: 40%;
    z-index: -1;
}

.touchedfooter {
    bottom: 100px;
    right: 0;
}

/* フッター
--------------------------------------- */
footer {
    width: 100%;
    padding: 20px 0;
    background-color: #5DC1CF;
    text-align: center;
    color: #fff;
}

footer .open {
    margin-bottom: 16px;
}

footer p small {
    display: block;
    padding-top: 6px;
    margin: 0 16px;
    border-top: 1px solid #fff;
}


/*レスポンシブ
-------------------------------------- */
@media (max-width: 960px) {
    body {
        padding-top: 75px;
    }

    .wrapper {
        padding: 0 15px;
    }

    /* ヘッダー
-------------------------------------- */
    .title {
        height: 75px;
    }

    .title__logo {
        width: 50px;
        height: auto;
        margin-left: 20px;
    }

    .gnav__list {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .hero__text {
        top: 20%;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        width: 90%;
    }

    .hero__text h1 {
        font-size: calc(20/16 *1.5rem);
    }

    .hero__text p {
        font-size: 1.5rem;
    }
}

@media (max-width: 428px) {
    .hero__text h1 {
        font-size: calc(20/16 *1rem);
    }

    .hero__text p {
        font-size: 1rem;
    }
}

@media (min-width: 961px) {
    .hamburger-menu {
        display: none;
    }
}

@media (min-width: 1920px) {

    /* 大きい画面でヒーロー画像が広がらないようにする */
    .hero,
    .hero img {
        height: 768px;
    }
}


/* モーション
-------------------------------------- */
/* 共通初期状態 */
.fade-up,
.fade-in-right,
.fade-in-left,
.zoom-in,
.smooth {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* フェードアップ fade-up */
.fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-right, .fade-in-left {
    opacity: 0; /* 最初は非表示にしておく */
    transition: transform 0.8s ease-out, opacity 0.8s ease-out; /* ★追加★ */
}

/* 右からフェードイン */
.fade-in-right {
    transform: translateX(30px);
}
.fade-in-right.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* 共通の初期設定 */
.fade-in-left,
.fade-in-right {
  opacity: 0;
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

/* 通常の方向（スマホ） */
.fade-in-left {
  transform: translateX(-30px);
}
.fade-in-right {
  transform: translateX(30px);
}

/* pc-reverse クラスも、スマホでは通常方向にしておく */
.fade-in-left.pc-reverse {
  transform: translateX(-30px);
}
.fade-in-right.pc-reverse {
  transform: translateX(30px);
}

/* --- スマホ用の in-view（429px未満） --- */
@media (max-width: 428px) {
  .fade-in-left.in-view,
  .fade-in-right.in-view {
    transform: translateX(0);
    opacity: 1;
  }
}

/* --- PC用：左右逆にした pc-reverse 初期状態 --- */
@media (min-width: 429px) {
  .fade-in-left.pc-reverse {
    transform: translateX(30px); /* ←PCで反転 */
  }

  .fade-in-right.pc-reverse {
    transform: translateX(-30px); /* ←PCで反転 */
  }

  /* PC用の in-view スタイル（通常 + 逆方向両方） */
  .fade-in-left.in-view,
  .fade-in-right.in-view,
  .fade-in-left.pc-reverse.in-view,
  .fade-in-right.pc-reverse.in-view {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 奥から手前にズームイン zoom-in */
.zoom-in {
    transform: scale(0.8);
}

.zoom-in.in-view {
    opacity: 1;
    transform: scale(1);
}

/* 滑らかに横から表示 smooth */
.smooth {
    clip-path: inset(0 100% 0 0);
    display: inline-block;
    font-size: 36px;
    font-weight: bold;
    transition: clip-path 1s cubic-bezier(0.37, 0, 0.63, 1);
    transition-delay: 0.6s;
    line-height: 1.4;
    margin-top: 15px;
    overflow: hidden;
}

.smooth.in-view {
    clip-path: inset(0);
}

/* ファーストビュー */
@keyframes fadeInOnly {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-scale {
    opacity: 0;
    animation: fadeInOnly 0.8s ease-out forwards;
    animation-delay: 0.3s;
    /* お好みで調整可能 */
    will-change: opacity;
}

/* スクロールボタン */
#scrollButtonsContainer {
    display: none;
    /* ← JSが flex に切り替える */
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1049;
}

.scroll-button {
    display: none;
    transition: transform .3s ease;
}

.scroll-button.active {
    display: block;
}

.scroll-button:hover {
    transform: scale(1.1);

}

.scroll-button img {
    width: 70px;
    height: auto;
}
