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

/* ==========================================================================
   Display Utilities (表示切り替えユーティリティ)
   ========================================================================== */
.pc {
  display: none !important;
}
.tb {
  display: none !important;
}
.sp {
  display: block !important;
}
.pctb{
  display: none !important;
}
.tbsp{
  display: block !important;
}
.fader_pc {
  display: none !important;
}

.fader_sp {
  display: block !important;
}

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

h1 {
  font-size: 28px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 17px;
}

/* ==========================================================================
   Layout Container (共通コンテナ)
   ========================================================================== */
.inner {
  position: relative;
  width: 95%;
  margin: 0 auto;
}

/* ==========================================================================
   Header Navigation (ヘッダーナビゲーション)
   ========================================================================== */
#top_head li {
  display: inline-block;
  text-align: left;
  padding: 10px 30px;
  font-size: 16px;
}

.booking {
  padding: 20px 20px;
}

.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 {
  margin-top: 80px;
  font-size: 16px;
  letter-spacing: 0.1em;
}

.scroll_arrow {
  margin: 5px;
}

.scroll_top {
  position: absolute;
  top: 80px;
  width: 100%;
  margin-top: 0px;
  font-size: 16px;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   Main Visual (メインビジュアル)
   ========================================================================== */
/* ※Main Visualセクションの指定（現状スマホ版は個別指定なし） */

/* ==========================================================================
   Trouble Section (おなやみエリア)
   ========================================================================== */
.grey_container {
  position: relative;
  width: 100%;
  margin-top: 120px !important; /* 上のすき間を少し詰めます */
}

/* 上側のなみ画像 */
.grey_container::before {
  position: absolute;
  top: -60px !important;       /* 高さに合わせて位置も-60pxに変更 */
  left: 0;
  width: 100%;
  height: 60px !important;    /* 高さを100pxから60pxに縮小 */
}

/* 下側のなみ画像 */
.grey_container::after {
  position: absolute;
  bottom: -60px !important;    /* 高さに合わせて位置も-60pxに変更 */
  left: 0;
  width: 100%;
  height: 60px !important;    /* 高さを100pxから60pxに縮小 */
}

.onayami-container {
  padding: 30px 0px;
  gap: 20px;
}

.onayami-item {
  width: 100%;
}

.text-card {
  height: auto;
  padding: 25px 20px;
}

.image-only {
  height: auto;
  margin-bottom: 10px;
}

.image-only img {
  width: 50%;
  max-height: 150px;
}

.btn_box {
  width: 80%;
  margin: 40px auto 30px;
  padding: 15px 0;
  font-size: 18px;
}

/* ==========================================================================
   Our Thought Section (私たちの想い)
   ========================================================================== */
/* ① 一番下のレイヤー：空の背景 */
.thought-section {
  position: relative;
  z-index: 1;
  width: 100% !important;
  max-width: 750px !important;
  height: auto !important;
  margin-top: 150px !important;
  margin-bottom: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-bottom: 0 !important;
  background: url('../img/bg_sky_sp.png') no-repeat center top !important;
  background-size: cover !important;
  /* 💡【最終決定】ご作成いただいた「750 / 1670」の比率に上書きしました */
  aspect-ratio: 750 / 1670 !important;
}

/* ② 中央のレイヤー：白い文字枠の配置エリア */
.thought-inner {
  position: relative;
  z-index: 2;
  width: 88% !important;
  max-width: 650px !important;
  margin: 0 auto !important;
  /* 💡【要チェック】縦幅が短くなった分、まずは「25%」前後に設定しています。
     リロード後、手と白枠の重なり具合を見て適宜微調整してください */
  padding-top: 25% !important;
  padding-bottom: 12vw !important;
  text-align: center;
  box-sizing: border-box;
}

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

/* ③ 一番上のレイヤー：ハートの手（空と100%完全同期） */
.thought-hands-layer {
  position: absolute;
  top: 0 !important;
  left: 0 !important;
  z-index: 10 !important;
  width: 100% !important;
  height: auto !important;
  content: url('../img/bg_hands_sp.png') !important;
  object-fit: cover !important;
  object-position: center top !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  pointer-events: none;
}

/* タイトル・本文のスマホ用微調整 */
.thought-title {
  font-size: 20px !important;
  font-weight: bold !important;
  color: #333333 !important;
  margin-bottom: 25px !important;
}

.thought-lead-txt {
  font-size: 16px !important;
  line-height: 1.5 !important;
}

.thought-txt {
  font-size: 16px !important;
  line-height: 1.7 !important;
  letter-spacing: 0 !important;
  margin-top: 25px !important;
}

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

.dekirukoto-container {
  flex-direction: column;
  gap: 30px;
  padding: 20px;
}

.dekirukoto-text {
  width: 100%;
}

.dekirukoto-image {
  width: 100%;
  justify-content: center;
}

.dekirukoto-image img {
  width: 100%;
}

/* ==========================================================================
   Flow Section (ご利用の流れ：5ステップ)
   ========================================================================== */
.step-container {
  padding: 40px 20px;
  gap: 40px 0;
}

.step-item {
  /* 下矢印の位置をしっかり固定するための基準を作ります */
  position: relative !important;
  width: 100%;
  /* 次のステップとの間に、矢印が収まるしっかりとしたすき間を作ります */
  margin-bottom: 70px !important;
  text-align: center;
}

/* 最後のステップ（5つ目）は下に矢印がいらないので、すき間をリセットします */
.step-item:last-child {
  margin-bottom: 0 !important;
}

/* 確実にステップの真ん中下に収まる動かない下矢印（↓）を表示します */
.step-item::after {
  content: "↓" !important;    /* 下矢印を文字として表示 */
  display: block !important;  /* 非表示（none）を解除して確実に表示 */
  position: absolute !important;
  /* 文章の長さに引っ張られないよう、ステップ枠の「一番底」を基準に固定 */
  top: auto !important;
  bottom: -60px !important;   /* margin-bottomで作ったすき間のちょうど真ん中に配置 */
  /* 左右中央にピタッと配置 */
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  /* 見た目の調整（サイズと色） */
  font-size: 34px !important;
  color: #43b8f4 !important;   /* サイトのテーマカラーの水色 */
  font-weight: bold !important;
  z-index: 10 !important;
}

/* 最後のステップ（5つ目）だけは、後ろに下矢印を出さないように消去 */
.step-item:last-child::after {
  display: none !important;
}

.step-image-wrap {
  width: 80%;
  margin: 0 auto 20px auto;
}

.step-image-wrap img {
  width: 100%;
}

.step-number {
  top: -10px;
  left: -10px;
}

/* ==========================================================================
   Partners Section (販売パートナーズ)
   ========================================================================== */
.banner-grid-container {
  padding: 40px 20px;
  gap: 20px;
}

.banner-grid-item {
  width: 100%;             /* 縦1列に */
}

/* ==========================================================================
   video (動画)
   ========================================================================== */
.page-video {
    padding-top: 80px; /* ヘッダーの重なりを防ぎつつ、スマホ用に少しコンパクトに */
}

.video-item {
    max-width: 100%;   /* スマホ画面幅に合わせて伸縮 */
    margin: 0 15px 40px 0px; /* 左右に少し隙間を持たせ、下に余白を確保 */
    padding: 30px;     /* あしらい画像を表示しつつ、動画の大きさを最大化する余白 */
    background-image: url('../img/bg_video_sp.png'); /* スマホ用の画像を指定 */
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

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

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

.family_content h2 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.family_card {
  border-radius: 20px;
  padding: 20px 15px;
}
.family_card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* メリットセクションの縦並び調整 */
.merit_item,
.merit_item.reverse {
  flex-direction: column; /* スマホではすべて縦並びに統一 */
  gap: 20px;
}

/* 1・3番目（通常）：画像を左寄りに配置し、右側にスペース */
.merit_item .merit_img {
  width: 85%;            /* 幅を85%にして右側に15%の空きを作る */
  max-width: 320px;      /* 大きくなりすぎない制限 */
  margin-left: 0;
  margin-right: auto;
}

/* 2・4番目（reverse）：画像を右寄りに配置し、左側にスペース */
.merit_item.reverse .merit_img {
  width: 85%;            /* 幅を85%にして左側に15%の空きを作る */
  max-width: 320px;
  margin-left: auto;     /* 左側に空きを作って右寄せにする */
  margin-right: 0;
}

.merit_img img {
  width: 100%;
  height: auto;
  display: block;
}

/* テキスト：PC用の内側余白(150px)をリセットし、左右に20pxの余白を作る */
.merit_item .merit_text,
.merit_item.reverse .merit_text {
  width: 100%;
  box-sizing: border-box;
  padding-left: 20px;  /* 左右の余白 */
  padding-right: 20px;
}

/* 親要素の基準枠設定 */
.family_inner {
  position: relative;
  width: 100%;
  margin: 100px auto 0;
}
/* 重ねる要素全体の位置（画像上の中央寄り配置） */
.family_content {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%); /* 中央寄せ */
  width: 90%; /* レスポンシブ用のはみ出し防止 */
  text-align: center;
}

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

/* 上部のメインビジュアル文字位置の調整 */
.sub_main .img_text {
  font-size: 1.4rem;
  left: 10%;
}

/* コンテナ周辺の余白調整 */
.container-top-margin {
  margin-top: 40px;
}

.c_title h2 {
  font-size: 1.3rem;
  line-height: 1.5;
}

/* お悩みカード（.trouble_item）を縦並びに変更 */
.trouble_item {
  flex-direction: column; /* 左右並びから上下の縦並びに変換 */
  align-items: center;    /* 中央揃え */
  gap: 40px;              /* 画像とテキストの間の余白 */
  margin-top: 50px;       /* カード同士の縦方向の間隔 */
  margin-bottom: 80px;
}

/* 画像エリアの設定 */
.trouble_img {
  width: 100%;
  flex: none;             /* PC用の幅固定(45%)を解除 */
  text-align: center;
}

.trouble_img img {
  width: 100%;            /* スマホ画面に合わせてちょうどいいサイズ感に調整 */
  max-width: 310px;       /* 大きくなりすぎない制限 */
  margin: 0 auto;
}

/* テキストエリアの設定 */
.trouble_text {
  width: 100%;
  flex: none;
  text-align: left;       /* テキストは読みやすく左寄せ */
  padding: 0 20px;        /* 画面端との不要な接触を防ぐ余白 */
  box-sizing: border-box;
}

.trouble_text h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.trouble_text .lead_text {
  display: block;
  margin-bottom: 10px;
}

.trouble_text p {
  line-height: 1.7;
}

/* ==========================================================================
   Flow(導入の流れ）
   ========================================================================== */

/* フローカード内を縦並びに変更 */
.flow_item {
  flex-direction: column; /* 要素を縦に並べる */
  text-align: center;      /* テキスト類を中央寄せ */
  padding: 30px 20px;     /* 内側の余白をスマホ用に調整 */
  gap: 30px;               /* 画像とテキストの間の余白 */
}

/* 画像エリアの幅を調整 */
.flow_img {
  flex: 0 0 100%;
  width: 90%;            /* お好みの大きさに合わせて調整OK */
  margin: 0 auto;
}

/* テキストエリアの配置調整 */
.flow_text {
  width: 100%;
  text-align: center;     /* 左寄せにしたい場合は left に変更 */
}
.flow_text p {
  font-size: 1rem;
}
/* 矢印の上下余白を調整 */
.flow_arrow {
  margin: 15px 0;
}

/* ==========================================================================
   family (お悩みサポートセクション) - スマホ用位置・余白の修正
   ========================================================================== */

/* 上の「お悩みコンテンツ」との間の余白をしっかり確保 */
.family_sec {
  margin-top: 150px !important;
  display: block;
  clear: both;
}

/* 内側の枠自体の不要な上余白をリセット */
.family_inner {
  margin-top: 0 !important;
}

/* カード内部のテキストやボタンの位置調整 */
.family_content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  text-align: center;
}

.family_content .btn_box {
  width: 80%;
  margin: 30px auto 0;
  font-size: 18px;
  padding: 15px 0;
}

/* ==========================================================================
   Footer (フッター)
   ========================================================================== */
.bg_footer {
  width: 100%;
  margin-top: 80px;
  padding: 100px 20px 0px 20px;
}

.footer-inner {
  flex-direction: column;
  gap: 35px;
  margin-bottom: 35px;
  text-align: center;
}

.footer-logo img {
  max-width: 180px;
  margin: 0 auto;
}

.footer-nav {
  width: 100% !important;
}

.footer-menu-list li {
  width: 50%;
  text-align: left;
  padding: 0 15px;
}

.footer-menu-list a {
  font-size: 13px;
  white-space: normal;
  line-height: 1.6;
}

.footer-btn-wrap {
  width: 100%;
  justify-content: center !important;
}

.footer-booking {
  width: 85%;
  margin: 0 auto !important;
  padding: 15px 20px;
  font-size: 18px;
}

.footer-booking img {
  width: 24px;
  margin-right: 10px;
}

.footer-copyright {
  padding-top: 100px;
}

.footer-copyright p {
  font-size: 12px;
}

/* ==========================================================================
   Video Popup Banner (動画ポップアップバナー)
   ========================================================================== */
#video_popup {
  position: fixed !important;
  left: 0 !important;
  bottom: 0 !important;
  z-index: 700 !important;        /* 700に下げたのでハンバーガーメニューを開いた時は裏に隠れます */
  width: 75% !important;        /* スマホ画面に対して大きすぎないサイズ */
  max-width: 320px !important;    /* 最大横幅の上限 */
  line-height: 1 !important;
}

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

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

/* 💡スマホ用のクローズボタン：画像の上に「赤いボタン」としてしっかり表示させます */
#video_popup .popup_close {
  position: absolute !important;
  top: 5px !important;            /* 上からの位置（キープ） */
  right: 12px !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 50 !important;
  display: flex !important;       /* 文字（close ×）を横並びに */
  align-items: center !important;
  gap: 4px !important;            /* 文字と×の間のすき間を少し広げました */
  width: auto !important;
  height: auto !important;
  /* ボタンの見た目 */
  background-color: rgba(239, 83, 80, 0.9) !important;
  color: #ffffff !important;
  padding: 6px 12px !important;   /* 💡上下左右の余白を広げてボタンを大きくしました（元: 5px 8px） */
  border-radius: 5px !important;  /* 角丸も少し滑らかに */
  font-size: 13px !important;     /* 💡文字の大きさを大きくしました（元: 11px） */
  font-weight: bold !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;
  cursor: pointer !important;
}

/* 💡透明化を解除して、スマホでも文字が綺麗に見えるようにします */
#video_popup .popup_close span,
#video_popup .popup_close .close_x {
  display: inline !important;
  color: #ffffff !important;
}

.right {
  margin-right: 0px;
}
