@charset "UTF-8";

/* ==================================================
   1. 基本設定・リセット
================================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  background-color: transparent;
}

p {
  margin: 0;
}

/* ==================================================
   2. 背景画像設定（SP幅: 750pxを超えたら表示）
================================================== */
@media screen and (min-width: 751px) {

  /* --- 背景とフィルター --- */
  body {
    background-image: url('../img/PC_shimaenaga_haikei.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    isolation: isolate;
  }

  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.45);
    z-index: -1;
    pointer-events: none;
  }
}

/* ==================================================
   3. 共通ユーティリティ（冗長化防止）
================================================== */
.slice-images img,
.cta-area a img,
.page-top img,
.pc-left-menu a img {
  width: 100%;
  height: auto;
  display: block;
}

.cta-area a,
.pc-left-menu a,
.menu-list a,
.menu-sns img,
.footer-sns img {
  transition: opacity 0.3s ease;
}

.cta-area a:hover,
.pc-left-menu a:hover,
.menu-list a:hover {
  opacity: 0.8;
}

.footer-sns a:hover img {
  opacity: 0.7;
}

.menu-sns a:hover img {
  opacity: 0.6;
}

/* ==================================================
   4. ベースレイアウト
================================================== */
.lp-wrapper {
  max-width: 750px;
  margin: 0 auto;
  background-color: #fff;
  width: 100%;
  position: relative;
  z-index: 1;
  /* 背景のシマエナガを裏に隠すために指定 */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

/* ==================================================
   5. コンテンツエリア
================================================== */
.slice-images {
  position: relative;
}

/* スペックテキストエリア */
.spec-text-area {
  padding: 30px 65px 10px;
  background-color: #fff;
  display: flex;
  justify-content: center;
}

.spec-list {
  width: 100%;
  max-width: 380px;
  margin: 0;
  padding: 0;
}

.spec-row {
  display: flex;
  margin-bottom: 12px;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.spec-row dt {
  width: 42%;
  margin: 0;
  font-weight: 500;
}

.spec-row dd {
  width: 58%;
  margin: 0;
  font-weight: 500;
}

/* CTAエリア */
.cta-area {
  padding: 40px 65px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  background-color: #fff;
}

.cta-area a {
  display: block;
  width: 100%;
  max-width: 500px;
}

/* ==================================================
   6. FAQセクション（アコーディオン）
================================================== */
.faq-section {
  padding: 50px 65px 40px;
  background-color: #fff;
}

.faq-title {
  text-align: center;
  margin: 0 0 30px 0;
}

.faq-title img {
  width: 100px;
  height: auto;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 20px;

  /* ★広がりすぎを防ぐため最大幅500pxを指定し、中央寄せ */
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

.faq-item {
  border: 2px solid #6abcb7;
  border-radius: 12px;
  overflow: hidden;
}

.faq-q {
  background-color: #6abcb7;
  color: #fff;
  padding: 20px 45px 20px 20px;
  position: relative;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  list-style: none;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::after, .faq-q::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 28px;
  background-color: #fff;
  transform: translate(50%, -50%);
}

.faq-q::after {
  width: 16px;
  height: 2px;
}

.faq-q::before {
  width: 2px;
  height: 16px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-item[open] .faq-q::before {
  transform: translate(50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-item.with-icon .faq-q {
  padding-left: 80px;
  justify-content: center;
}

.faq-item.with-icon .faq-q .q-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 65px;
  height: auto;
}

.faq-a {
  padding: 25px 20px;
  font-size: 14px;
  line-height: 1.8;
  color: #444;
}

.faq-item[open] .faq-a {
  animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

/* ==================================================
   7. 注意書き＆フッターエリア
================================================== */
.footer-attention {
  padding: 0 65px 80px;
  text-align: center;
}

.attention-box {
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 30px 0;

  max-width: 500px;
  width: 100%;
  margin: 0 auto 40px;
}

.attention-title {
  font-size: 16px;
  font-weight: 500;
  color: #444;
  margin-bottom: 15px;
}

.attention-text {
  font-size: 13px;
  line-height: 1.8;
  color: #666;
  text-align: left;
  display: inline-block;
}

.attention-text p {
  padding-left: 1em;
  text-indent: -1em;
  margin-bottom: 5px;
}

.attention-text p:last-child {
  margin-bottom: 0;
}

.footer-sns {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}

.footer-sns img {
  width: 45px;
  height: auto;
}

.footer-birds {
  margin-bottom: 20px;
}

.footer-birds img {
  width: 220px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.footer-logo img {
  width: 200px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* ==================================================
   8. トップへ戻るボタン
================================================== */
.page-top {
  position: fixed;
  bottom: 30px;
  right: 10px;
  z-index: 100;
  width: 200px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

/* 通常時（切り替え前）のクリック判定エリア */
.page-top::after {
  content: "";
  position: absolute;
  z-index: 10;
  top: 30%;
  bottom: 30%;
  left: 20%;
  right: 20%;
  pointer-events: auto;
  cursor: pointer;
  /* クリック判定確認 */
  /* background-color: rgba(255, 0, 0, 0.3); */
}

/* =======================================
   タップ・スクロール中（全デバイス共通）のアクション
======================================= */
.page-top:active::after,
.page-top.is-scrolling::after {
  top: 20%;
  /* シマエナガの頭頂部まで判定を拡張 */
  bottom: 15%;
  left: 25%;
  right: 25%;
}

.page-top:active,
.page-top.is-scrolling {
  transform: translateY(-8px);
}

.page-top img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s ease;
}

.page-top .pagetop-hover {
  position: absolute;
  bottom: 0;
  left: 0;
  opacity: 0;
}

.page-top:active .pagetop-default,
.page-top.is-scrolling .pagetop-default {
  opacity: 0;
}

.page-top:active .pagetop-hover,
.page-top.is-scrolling .pagetop-hover {
  opacity: 1;
}

/* =======================================
   マウスホバー用（PCデバイス限定）のアクション
   ※スマホでの「ホバー残り（タップ後戻らない現象）」を防止
======================================= */
@media (hover: hover) {
  .page-top:hover::after {
    top: 20%;
    /* シマエナガの頭頂部まで判定を拡張 */
    bottom: 15%;
    left: 25%;
    right: 25%;
    /* クリック判定確認 */
    /* background-color: rgba(255, 0, 0, 0.3); */
  }

  .page-top:hover {
    transform: translateY(-8px);
  }

  .page-top:hover .pagetop-default {
    opacity: 0;
  }

  .page-top:hover .pagetop-hover {
    opacity: 1;
  }
}

/* ==================================================
   9. PC用レイアウト (1050px以上でメニュー・鳥を一括表示)
================================================== */
.pc-left-menu, .pc-right-menu {
  display: none;
  position: fixed;
  z-index: 10;
}

.bg-bird {
  display: none;
}

@media screen and (min-width: 1050px) {

  /* --- SPナビの非表示 --- */
  .nav-toggle, .hamburger, .sp-nav {
    display: none !important;
  }

  /* --- 中央コンテンツ --- */
  .lp-wrapper {
    max-width: 475px;
  }

  /* --- 左右メニュー共通設定 --- */
  .pc-left-menu, .pc-right-menu {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1vw, 15px);

    /* 縦にはみ出た場合のみスクロール可能にする */
    overflow-y: auto;
    /* スクロールバーを非表示にする（Firefox, IE/Edge用） */
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  /* スクロールバーを非表示にする（Chrome, Safari用） */
  .pc-left-menu::-webkit-scrollbar,
  .pc-right-menu::-webkit-scrollbar {
    display: none;
  }

  /* --- 左メニュー --- */
  .pc-left-menu {
    align-items: center;
    left: calc((50vw - 237.5px) / 2);
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(280px, calc(50vw - 237.5px - 30px));
    /* 上下が見切れないように、最大の高さを画面の95%に制限 */
    max-height: 95vh;
  }

  .pc-left-menu a {
    display: block;
    width: 100%;
  }

  /* --- 右メニュー --- */
  .pc-right-menu {
    align-items: flex-start;
    /* 右側メニューは中央コンテンツとの被り防止（最低マージン確保）を維持 */
    left: calc(50vw + 237.5px + clamp(15px, 2vw, 30px) - 30px);
    width: calc(min(280px, calc(50vw - 237.5px - 30px)) + 30px);
    padding-left: 30px;

    top: clamp(80px, 12vh, 150px);
    transform: none;
    max-height: calc(100vh - clamp(80px, 12vh, 150px) - 30px);
  }

  /* ★追加：画面の高さが720px以下になり、メニュー全体が入り切らなくなったら
     上部余白を詰めて、ロゴ以降を画面最上部（20pxの位置）から表示させる */
  @media screen and (max-height: 720px) {
    .pc-right-menu {
      top: 20px;
      /* 表示可能高さを「画面の高さから上下余白20pxずつを引いたサイズ」に最大化 */
      max-height: calc(100vh - 40px);
    }
  }

  .menu-logo {
    width: 100%;
    /* margin-bottomを従来の半分くらいに縮小しつつ、マイナスマージンで調整 */
    margin-bottom: clamp(-15px, -1.5vw, -10px);
    /* 親のpadding-left（30px）を打ち消すように固定値で左に寄せ、左端が切れないようにします */
    margin-left: -30px;
  }

  .menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .menu-list a {
    display: block;
    padding: clamp(6px, 0.8vw, 12px) 0;
    text-decoration: none;
    color: #444;
    font-size: clamp(12px, 1.1vw, 15px);
    font-weight: 500;
  }

  .menu-list a span {
    display: block;
    font-size: clamp(10px, 0.8vw, 11px);
    color: #888;
    margin-top: 4px;
    padding-top: 4px;
    position: relative;
  }

  .menu-list a span::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #6abcb7;
    transition: width 0.3s ease-out;
  }

  .menu-list a:hover span::before {
    width: 87%;
  }

  .menu-sns {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    gap: clamp(8px, 1vw, 15px);
    margin-top: clamp(10px, 1.5vw, 20px);
    /* ★修正：padding-left: 34%; を削除（または0に指定）して行頭を左に揃える */
    padding-left: 0;
  }

  .menu-sns img {
    width: clamp(20px, 2vw, 28px);
  }

  /* --- シマエナガ --- */
  .bg-bird {
    display: block;
    position: fixed;
    /* bottom: 0を廃止し、メニューと同じ top: 50% を基準に設定 */
    top: 50%;
    z-index: -2;
    width: clamp(360px, 40vw, 620px);
    aspect-ratio: 5 / 6;
    height: auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top center;
  }

  .bird-left {
    background-image: url('../img/PC_shimaenaga_left.png');
    left: calc((50vw - 237.5px) / 2);
    /* プラスの値（11%）にすることで画面中央から下に押し下げる */
    transform: translate(-50%, 11%);
  }

  .bird-right {
    background-image: url('../img/PC_shimaenaga_right.png');
    right: calc((50vw - 237.5px) / 2);
    /* プラスの値（11%）にすることで画面中央から下に押し下げる */
    transform: translate(50%, 11%);
  }
}

/* ==================================================
   10. SP用：ハンバーガーメニュー＆フルスクリーンナビ
================================================== */
.nav-toggle {
  display: none;
}

.hamburger {
  display: block;
  position: fixed;
  top: 12px;
  left: 15px;
  width: 35px;
  height: 35px;
  z-index: 1000;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hamburger span {
  display: block;
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: #6abcb7;
  border-radius: 2px;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease-in-out;
}

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

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

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

.nav-toggle:checked~.hamburger span:nth-child(1) {
  top: 16px;
  transform: translateX(-50%) rotate(45deg);
}

.nav-toggle:checked~.hamburger span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked~.hamburger span:nth-child(3) {
  top: 16px;
  transform: translateX(-50%) rotate(-45deg);
}

.sp-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  /* ★スマホのアドレスバー領域を考慮した最新の高さ指定 */
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;

  /* ★修正：flexによる無理な中央寄せを廃止し、自然な縦スクロールを許可 */
  display: block;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* iOSでの滑らかなスクロールを有効化 */
}

.nav-toggle:checked~.sp-nav {
  opacity: 1;
  visibility: visible;
}

.sp-nav-inner {
  width: 80%;
  max-width: 400px;
  /* ★修正：閉じるボタン（高さ35px）と被らないよう上部に70px、下部に50pxの余白を取りつつ、横は中央寄せ */
  margin: 70px auto 50px;
}

.sp-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sp-menu-list li {
  border-bottom: 1px solid #eee;
}

.sp-menu-list a {
  display: block;
  padding: 15px 0;
  text-decoration: none;
  color: #444;
  font-size: 16px;
  font-weight: 500;
}

.sp-menu-list a span {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

.sp-menu-list .sp-menu-cta {
  border-bottom: none; /* 通常の区切り線を消す */
  margin-top: 15px;
}

.sp-menu-list .sp-menu-cta a {
  background-color: #6abcb7;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 15px 0;
}

.sp-menu-list .sp-menu-cta a span {
  color: #fff; /* サブテキストも白に変更 */
  opacity: 0.9;
}

.sp-sns {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.sp-sns img {
  width: 32px;
  height: auto;
}

.sp-birds img {
  width: 220px;
  height: auto;
  display: block;
  margin: 30px auto 0;
}

.sp-logo img {
  width: 200px;
  height: auto;
  margin: 30px auto 0;
  display: block;
}

/* ==================================================
   11. SP表示時（1049px以下）の微調整
================================================== */
@media screen and (max-width: 1049px) {

  /* スペックテキストのSP調整 */
  .spec-text-area {
    padding: 30px 20px 10px;
  }

  .spec-row {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .spec-row dt {
    width: 45%;
  }

  .spec-row dd {
    width: 55%;
  }

  .cta-area {
    padding: 30px 15px 15px;
  }

  .faq-section {
    padding: 30px 15px 30px;
  }

  .faq-title img {
    width: 80px;
  }

  .faq-q {
    font-size: 16px;
    padding: 15px 40px 15px 15px;
  }

  .faq-item.with-icon .faq-q {
    padding-left: 65px;
  }

  .faq-item.with-icon .faq-q .q-icon {
    width: 55px;
    left: 10px;
  }

  .faq-a {
    font-size: 13px;
    padding: 20px 15px;
  }

  .footer-attention {
    padding: 0 15px 60px;
  }

  .attention-box {
    padding: 25px 0;
    margin-bottom: 30px;
  }

  .attention-title {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .attention-text {
    font-size: 12px;
  }

  .footer-sns {
    gap: 15px;
    margin-bottom: 20px;
  }

  .footer-sns img {
    width: 35px;
  }

  .footer-birds img {
    width: 180px;
  }

  .footer-logo img {
    width: 160px;
  }

  .page-top {
    bottom: -20px;
    right: -20px;
    width: 150px;
  }
}

/* ==================================================
   12. スクロール連動フェードインアニメーション
================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================================================
   13. SP用 追従CTAボタン
================================================== */
/* PC表示時は非表示 */
.sp-sticky-cta {
  display: none;
}

@media screen and (max-width: 1049px) {
  .sp-sticky-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 140px;
    width: 140px;
    height: 30px;
    background-color: #6abcb7;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 15px;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 95;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .sp-sticky-cta::after {
    content: "";
    width: 6px;
    height: 6px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin-left: 8px;
    margin-bottom: 1px;
  }

  .sp-sticky-cta:active {
    transform: translateY(2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  }
}
