@charset "UTF-8";
/* CSS Document */
/* iPad iPhone6/7/8 yoko iPhone6/7/8 Plus yoko */

/* ==========================================================================
   Display Utilities (表示切り替えユーティリティ)
   ========================================================================== */
.pc {
  display: none !important; /* 💡タブレット版ではPC用スライダーブロックを完全に非表示 */
}
#menu_frame.pc {
  display: block !important;
}
.tb {
  display: block !important; /* 💡タブレット版ではPC用スライダーブロックを完全に非表示 */
}
.pctb {
  display: block !important; /* 💡タブレット版ではPC用スライダーブロックを完全に非表示 */
}
.tbsp{
  display: block !important;
}
.sp {
  display: none !important;
}

.fader_pc {
  display: none !important;
}

/* 💡HTMLとJSで追加したタブレット用スライダーの表示をONにします */
.fader_tb {
  display: block !important;
}

.fader_sp {
  display: none !important;
}

/* ==========================================================================
   Base Typography (基本タイポグラフィ)
   ========================================================================== */
h1 {
  font-size: 28px;
}

h2 {
  font-size: 22px; /* 💡PC版(26px)と元のtb版(18px)の間で視認性のバランスを調整 */
  font-weight: bold;
  line-height: 1.5em;
}

h3 {
  font-size: 18px;
}

/* ==========================================================================
   Layout Container (共通コンテナ)
   ========================================================================== */
.inner {
  width: 90%; /* 💡固定幅の660pxだと画面幅によって左右の余白が崩れるため、柔軟な%に変更 */
  max-width: 960px;
  position: relative;
  margin: 0 auto;
}

/* ==========================================================================
   Header Navigation (ヘッダーナビゲーション - タブレット用ドロワー対応)
   ========================================================================== */
#top_head {
  padding: 0;
  position: relative;
  height: 60px;
}

/* PC用の横並びナビゲーション（#menu_frame）を隠す */
#menu_frame,
#menu_frame.pc {
  display: none !important;
}

/* ハンバーガーボタン（トリガー）を表示 */
.menu-trigger {
  display: inline-block !important;
  position: fixed !important;
  top: 15px !important;
  left: 15px !important;
  z-index: 999 !important;
  cursor: pointer;
}

/* タブレット用ドロワーメニュー（nav） */
header #top_head + .sp + nav,
header nav:not(.footer-nav) {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 300px !important;
  height: 100% !important;
  padding-top: 80px !important;
  background-color: #43b8f4 !important;
  opacity: 0.95 !important;
  z-index: 800 !important;
  transform: translateX(-300px) !important;
  transition: transform 0.4s ease !important;
  box-sizing: border-box !important;
}

/* JSで .open クラスが付与されたらスライドイン */
header nav:not(.footer-nav).open {
  transform: translateX(0) !important;
}

/* ドロワー内のメニューリスト */
header nav:not(.footer-nav) ul {
  display: block !important;
  height: calc(100% - 80px) !important;
  padding: 0 25px !important;
  margin: 0 !important;
  overflow-y: auto !important;
  list-style: none !important;
}

header nav:not(.footer-nav) li {
  width: 100% !important;
  padding: 14px 0 !important;
  text-align: left !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  float: none !important;
}

header nav:not(.footer-nav) li a {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: bold !important;
  display: block !important;
  text-decoration: none !important;
}

/* オーバーレイ（背景の暗転） */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 790;
  display: none;
}

.overlay.open {
  display: block !important;
}

/* 中央ロゴ位置調整 */
.logo,
.logo img,
#top_head img {
  position: fixed;
  top: 20px;
  right: 5%;
  width: auto;
  max-width: 300px;
  height: auto;
  z-index: 750;
  margin: 0;
}

/* 右上のお問い合わせボタン調整 */
header #top_head + .booking,
.wrapper > a .booking.pc,
.booking {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  z-index: 750 !important;
  padding: 12px 15px !important;
  font-size: 14px !important;
  height: auto !important;
}

.booking img {
  width: 20px !important;
  margin-right: 6px !important;
}

.logo img {
  width: 200px;
}

.booking-logo.tbsp {
  position: fixed; /* 画面の一番上に固定 */
  top: 10px;       /* 上からのすき間 */
  right: 15px;     /* 右からのすき間（これで右上に配置されます） */
  z-index: 750;    /* ドロワーメニュー（800）が開いた時は後ろに隠れる設定 */
  display: block !important;
}

.booking-logo.tbsp img {
  width: 180px;    /* 添付イメージに合わせたコンパクトなサイズ */
  height: auto;
  display: block;
}

/* スクロール系要素（位置補正） */
.scroll,
.scroll_top {
  position: relative;
  margin-top: 20px;
  font-size: 16px;
  letter-spacing: 0.1em;
}

.scroll_arrow {
  margin: 5px;
}
/* ==========================================================================
   Main Visual (メインビジュアル)
   ========================================================================== */
/* 💡新設した「.main.tb」ブロックに、1024×700の美しい比率を適用して横いっぱいに広げます */
.main.tb {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1024 / 700 !important;
  overflow: hidden;
}

.main.tb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* 💡隙間なくきれいにフィットさせます */
  display: block;
}

/* ==========================================================================
   Trouble Section (おなやみエリア)
   ========================================================================== */
.grey_container {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 30px 20px;
  background-color: #f8f4eb;
  border-radius: 0;
  text-align: center;
  position: relative;
  margin-top: 220px;
}

.grey_container::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 0;
  width: 100%;
  height: 80px;
  background: url(../img/bg_onayami_top.png) no-repeat center bottom;
  background-size: 100% 100%;
}

.grey_container::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: 0;
  width: 100%;
  height: 80px;
  background: url(../img/bg_onayami_btm.png) no-repeat center top;
  background-size: 100% 100%;
}

.c_title {
  margin: 0 0 20px 0;
}

.onayami-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 10px;
  align-items: center;
}

.onayami-item {
  width: calc((100% - 40px) / 3);
  box-sizing: border-box;
}

.text-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 15px;
  height: 110px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.text-card p {
  font-weight: bold;
  font-size: 16px;
  margin: 0;
  line-height: 1.4;
}

.image-only {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
}

.image-only img {
  width: 65%;
  height: auto;
  object-fit: contain;
  display: block;
}

.btn_box {
  width: 45%;
  margin: 50px auto 30px;
  background-color: #43b8f4;
  font-size: 18px;
  font-weight: bold;
  padding: 18px 0;
  color: white;
  border-radius: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn_box:hover {
  background-color: #2285ff;
}

/* ==========================================================================
   Our Thought Section (私たちの想い)
   ========================================================================== */

.thought-section {
  position: relative;
  width: 100% !important;
  height: auto !important;
  margin-top: 220px !important;
  padding-bottom: 50px !important;
  /* 高さを900に固定 */
  aspect-ratio: 1024 / 900 !important;

  /* 💡背景：空の画像 */
  background: url('../img/bg_sky_tb.png') no-repeat center top !important;
  background-size: 100% auto !important;
}

/* 💡手の画像を常に最前面（一番上）に配置するレイヤー */
.thought-hands-layer {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: auto !important;
  /* z-indexを最大にして他の要素の前面に出す */
  z-index: 10 !important;
  pointer-events: none; /* クリックを阻害しない */
  content: url('../img/bg_hands_tb.png') !important;
  display: block !important;
}

/* 白いカードを囲うコンテナ */
.thought-inner {
  position: relative;
  z-index: 5 !important; /* 手より下、背景より上 */
  width: 85% !important;
  max-width: 650px !important;
  margin: 0 auto !important;
  padding-top: 15% !important;
  text-align: center;
  box-sizing: border-box;
}

/* 白いカード本体 */
.thought-box {
  background-color: #ffffff !important;
  border-radius: 40px !important;
  padding: 50px 30px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

/* タイトル・本文の調整 */
.thought-title {
  font-size: 24px !important;
  font-weight: bold !important;
  color: #333333 !important;
  margin-bottom: 30px !important;
}

.thought-lead-txt {
  font-size: 18px !important;
  color: #43b8f4 !important;
  font-weight: bold !important;
  margin-bottom: 25px !important;
}

.thought-txt {
  font-size: 15px !important;
  line-height: 1.8 !important;
  color: #333333 !important;
}

/* ==========================================================================
   Can Do Section (できることエリア)
   ========================================================================== */
.dekirukoto_conteiner {
  margin-top: 180px;
  text-align: center;
}

.dekirukoto-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 20px;
  max-width: 100%;
  margin: 30px auto 0;
}

.dekirukoto-text {
  flex: 1;
  text-align: left;
}

.dekirukoto-text p {
  color: #333333;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 15px;
}

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

.dekirukoto-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.dekirukoto-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
}

/* ==========================================================================
   Flow Section (ご利用の流れ：5ステップ)
   ========================================================================== */
.step-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 20px;
  padding: 40px 20px;
  max-width: 100%;
  margin: 0 auto;
}

.step-item {
  width: calc((100% - 40px) / 3);
  box-sizing: border-box;
  text-align: left;
  position: relative;
}

.step-item:not(:nth-child(3n))::after {
  content: "→";
  position: absolute;
  top: 60px;
  right: -15px;
  font-size: 20px;
  color: #aaaaaa;
  font-weight: 300;
}

.step-image-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 15px;
}

.step-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 30px 60px 30px 60px;
}

.step-image-wrap.no-shape img {
  border-radius: 0;
  width: 70%;
  margin: 0 auto;
}

.step-number {
  position: absolute;
  top: 2px;
  left: 0px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.step-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 8px 0;
}

.step-desc {
  color: #333333;
  margin: 0;
  line-height: 1.5;
}

.goal-item {
  text-align: center;
}

/* ==========================================================================
   Partners Section (販売パートナーズ)
   ========================================================================== */
.banner-grid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px 20px;
  max-width: 100%;
  margin: 0 auto;
}

.banner-grid-item {
  width: calc((100% - 40px) / 3);
  box-sizing: border-box;
}

.banner-grid-item a {
  display: block;
  width: 100%;
}

.banner-grid-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.banner-grid-item a:hover img {
  transform: scale(1.02);
}

/* ==========================================================================
   video (動画)
   ========================================================================== */
/* タブレット用の詳細調整 */

.page-video {
    padding-top: 120px; /* PC(150px)とSP(100px)の中間で調整 */
}

.video-item {
    max-width: 850px; /* PC(1000px)より少し狭め、かつ動画は見やすい幅 */
    margin: 0 auto 60px auto;
    padding: 80px;    /* SP(20px)より余裕を持たせ、背景を綺麗に見せる */

    /* タブレット用の背景画像があれば指定、なければPC用でもOK */
    background-image: url('../img/bg_video_pc.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* 動画タイトルの調整（必要であれば） */
.page-title {
    margin-bottom: 50px;
}

/* ==========================================================================
   Service (サービス詳細)
   ========================================================================== */

.sub_marign_top{
  margin-top:180px;
}
.conteiner_center{
  text-align: center;
}
/* 1. 画像が左にある時：テキストの「左側」の余白を大きく（例: 80px） */
.merit_item .merit_text {
  padding-left: 20px;
  padding-right: 80px;
}

/* 2. 画像が右にある時（reverse）：テキストの「右側」の余白を大きく（例: 80px） */
.merit_item.reverse .merit_text {
  padding-left: 80px;
  padding-right: 20px;
}

/* ==========================================================================
   worries (業務でのお悩み) - スマホ用縦並び設定
   ========================================================================== */

/* 上下中央寄せを解除し、上からの距離を一定にする */
.family_content {
  top: 10% !important;                       /* 上からの位置を固定（％は見た目で微調整OK） */
  transform: translateX(-50%) !important;   /* 左右の中央寄せのみ残す */
}

/* 前者（お悩みサポート）のボタン上の余白を少し詰めて全体の高さを収める */
.family_content .btn_box {
  margin-top: 20px;
}
/* 半透明の白いカード（すりガラス風） */
.family_card {
  padding: 70px 30px;
  margin: 40px 10% 0;
}

/* ==========================================================================
   Footer (フッター)
   ========================================================================== */
.bg_footer {
  background-color: #bde6fa;
  padding: 60px 20px 0px 20px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 200px;
  border: none !important;
}

.footer-inner {
  display: flex;
  flex-direction: column; /* 💡横幅が狭いタブレット版は、縦並び＋中央揃えにしてレイアウトを最適化 */
  justify-content: center;
  align-items: center;
  max-width: 100%;
  margin: 0 auto 30px auto;
  gap: 25px;
  border: none !important;
}

.footer-logo {
  flex: none;
}

.footer-logo img {
  max-width: 180px;
  height: auto;
  display: block;
  border: none !important;
}

.footer-nav {
  flex: none;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  background-color: transparent !important;
  padding-top: 0 !important;
  transform: none !important;
  opacity: 1 !important;
  border: none !important;
}

.footer-menu-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  gap: 15px 20px;
  border: none !important;
}

.footer-menu-list li {
  width: auto;
  box-sizing: border-box;
  padding: 0;
  border: none !important;
}

.footer-menu-list a {
  color: #333333 !important;
  font-size: 14px;
  text-decoration: none !important;
  border: none !important;
  font-weight: normal;
  display: block;
  white-space: nowrap;
}

.footer-menu-list a:hover {
  color: #2285ff !important;
}

.footer-btn-wrap {
  flex: none;
  display: flex;
  justify-content: center;
  border: none !important;
}

.footer-booking {
  background-color: #43b8f4;
  color: #ffffff !important;
  font-size: 18px;
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: background-color 0.3s;
  white-space: nowrap;
  border: none !important;
}

.footer-booking:hover {
  background-color: #2285ff;
}

.footer-booking img {
  width: 24px;
  height: auto;
  margin-right: 10px;
  border: none !important;
}

.footer-copyright {
  text-align: center;
  padding-top: 60px;
}

.footer-copyright p {
  font-size: 14px;
  color: #333333;
  margin: 0;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Video Popup Banner (動画ポップアップバナー)
   ========================================================================== */
#video_popup {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 30%;
  max-width: 340px;
  z-index: 900;
  line-height: 1;
}

#video_popup .pc {
  display: block !important;
  width: 100%;
  height: auto;
}

#video_popup .sp {
  display: none !important;
}

#video_popup .popup_close {
  position: absolute;
  top: 8px;
  left: 70%;
  background-color: rgba(239, 83, 80, 0.9);
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}

#video_popup .popup_close:hover {
  opacity: 0.8;
}

.right {
  margin-right: 0px;
}
