/* 相談予約：予約ページ（[soudan_yoyaku_page]）のメインビジュアルとフォームのセクション
   メインビジュアルは自社サイトのトップページ（.mv）と同じ指定です。 */
/* ============================================
   メインビジュアル（制作実績の斜めスクロール背景＋左寄せ大型英字タイポ）
   フォント: 日本語・数字はサイトの設定（游ゴシック）を引き継ぎ／英字の見出しは Work Sans
   ============================================ */

/* ===== SWELL干渉ガード ===== */
.post_content .mv,
.mv { margin: 0 !important; padding: 0 !important; }
/* フルワイドブロックの内側コンテナ幅・余白を解除（.mvを含む場合のみ） */
.swell-block-fullWide__inner:has(.mv),
.swell-block-fullWide:has(.mv) > .swell-block-fullWide__inner {
  max-width: none !important; width: 100% !important;
  padding-left: 0 !important; padding-right: 0 !important;
}
.swell-block-fullWide:has(.mv) { padding-top: 0 !important; padding-bottom: 0 !important; }
.mv div, .mv span, .mv p { margin: 0; padding: 0; box-sizing: border-box; }
.mv a { text-decoration: none !important; box-sizing: border-box; }
.mv img { display: block; border: none; }

/* ===== 全体 ===== */
.mv {
  position: relative;
  width: 100%; max-width: 100%;
  min-height: 100svh;          /* ヘッダーが透過でない場合は calc(100svh - ヘッダー高) に */
  overflow: hidden;
  display: flex; align-items: center;
  background: #2f83b3;                  /* ベース色（明るめのブルー） */
  color: #fff;
  font-family:inherit;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
  container-type: inline-size;   /* 文字サイズを「ブロックの実幅」基準にする */
  --mv-scale: 1;                 /* 全体の文字スケール（0.85 で15%小さく等） */
  --mv-pad-x: 5vw;               /* 左右余白 */
  --mv-wall-opacity: .42;        /* 背景実績の濃さ（0.25〜0.5 目安） */
  --mv-wall-angle: -14deg;       /* 斜めの角度 */
  --mv-wall-speed: 70s;          /* 流れる速さ（大きいほどゆっくり） */
  --mv-wall-gap: 20px;           /* 画像の間隔 */
}

/* ===== キーフレーム ===== */
@keyframes mvAurora {
  0%   { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
  100% { transform: translate3d(4%,-4%,0) rotate(8deg) scale(1.15); }
}
@keyframes mvFadeUp { from { opacity: 0; transform: translate3d(0,22px,0); } to { opacity: 1; transform: none; } }
/* 各列は同じセットを3回並べ、1セット分（1/3）だけ動かしてループ */
@keyframes mvWallUp   { from { transform: translate3d(0,0,0); }         to { transform: translate3d(0,-33.3333%,0); } }
@keyframes mvWallDown { from { transform: translate3d(0,-33.3333%,0); } to { transform: translate3d(0,0,0); } }

/* ===== 背景1：制作実績の斜めスクロール ===== */
.mv__wall {
  position: absolute; z-index: -3; pointer-events: none;
  inset: -25% -15%;                              /* 回転しても四隅が空かないよう大きめに */
  display: flex; gap: var(--mv-wall-gap);
  transform: rotate(var(--mv-wall-angle));
  transform-origin: center;
  opacity: var(--mv-wall-opacity);
  /* 端で画像がスパッと切れないよう、外周をぼかして消す */
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 50%, #000 45%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 62% at 50% 50%, #000 45%, transparent 100%);
}
.mv__col {
  flex: 1 1 0; min-width: 0;
  justify-content: flex-start;
  display: flex; flex-direction: column; gap: var(--mv-wall-gap);
  will-change: transform;
  animation: mvWallUp var(--mv-wall-speed) linear infinite;
}
.mv__col:nth-child(even) { animation-name: mvWallDown; }
.mv__col:nth-child(2) { animation-duration: calc(var(--mv-wall-speed) * 1.25); }
.mv__col:nth-child(3) { animation-duration: calc(var(--mv-wall-speed) * .9); }
.mv__col:nth-child(4) { animation-duration: calc(var(--mv-wall-speed) * 1.15); }
.mv__col:nth-child(5) { animation-duration: calc(var(--mv-wall-speed) * 1.05); }
.mv__work {
  flex: none;                 /* 列の高さに合わせて縮まないようにする */
  display: block; width: 100%;
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 20px 40px -18px rgba(4,18,26,.7);
  line-height: 0;
}
.mv__work img { width: 100%; height: auto; }   /* 比率のまま・切り抜かない */

/* ===== 背景2：オーロラ（ブランドブルーで馴染ませる） ===== */
.mv__aurora {
  position: absolute; inset: -15%; z-index: -2; pointer-events: none;
  opacity: .85; mix-blend-mode: screen;
  background:
    radial-gradient(38% 30% at 4% 16%, rgba(140,210,245,.95), transparent 65%),
    radial-gradient(34% 26% at 46% 4%, rgba(190,240,255,.9), transparent 65%),
    radial-gradient(30% 22% at 64% 8%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(40% 30% at 92% 16%, rgba(110,190,235,.95), transparent 65%),
    radial-gradient(46% 34% at 30% 46%, rgba(90,170,215,.6), transparent 70%);
  animation: mvAurora 30s ease-in-out infinite alternate;
}

/* ===== 背景3：可読性シェード（テキスト側を落とす） ===== */
.mv__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(16,70,100,.35) 0%, rgba(16,70,100,.2) 42%, rgba(16,70,100,.05) 75%, rgba(16,70,100,.15) 100%),
    linear-gradient(to bottom, rgba(16,70,100,.2) 0%, transparent 30%, transparent 70%, rgba(16,70,100,.35) 100%);
}

/* ===== コンテンツ（左寄せ） ===== */
.mv .mv__inner {
  position: relative; z-index: 1;
  width: 100%; max-width: none;
  margin: 0;
  padding: 140px var(--mv-pad-x) 96px !important;   /* 上：透過ヘッダー分 */
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 0;
}

/* テキスト側の可読性確保：枠のない「ぼかしゾーン」
   左側を面でぼかし、右に向かってなだらかに消える（カード状にはしない） */
.mv .mv__inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(14,56,84,.28) 0%, rgba(14,56,84,.18) 45%, transparent 72%);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 48%, transparent 74%);
          mask-image: linear-gradient(90deg, #000 0%, #000 48%, transparent 74%);
}
.mv .mv__glass {
  display: flex; flex-direction: column; align-items: flex-start;
  width: 100%; max-width: 100%;
}

/* ページロード時の1回だけのシーケンス */
.mv__tag, .mv__display, .mv__title, .mv__lead, .mv .mv__actions {
  opacity: 0; animation: mvFadeUp 1.1s cubic-bezier(.19,1,.22,1) forwards;
}
.mv__tag     { animation-delay: .05s; }
.mv__display { animation-delay: .2s; }
.mv__title   { animation-delay: .6s; }
.mv__lead    { animation-delay: .75s; }
.mv .mv__actions { animation-delay: .9s; }

/* 小見出し */
.mv__tag {
  display: inline-block;
  font-size: calc(clamp(13px, 1.3cqw, 19px) * var(--mv-scale));
  font-weight: 500; letter-spacing: .3em; line-height: 1;
  color: #0d3547;
  background: #fff;
  padding: .7em 1em .7em 1.3em !important;   /* 右はletter-spacing分を差し引く */
  margin-bottom: 26px !important;
}

/* 大型英字（主役） */
.mv__display {
  display: flex; align-items: flex-end; flex-wrap: wrap;
  gap: .3em .3em;
  font-family: "Work Sans", sans-serif;
  margin-bottom: 64px !important;
}
.mv__word { display: flex; flex-direction: column; }
.mv__word-en {
  font-size: calc(clamp(44px, 7cqw, 104px) * var(--mv-scale));
  font-weight: 600; line-height: .95; letter-spacing: -.05em;
  text-shadow: 0 2px 40px rgba(10,40,58,.75);
}
.mv__word-sub {
  font-family:inherit;
  font-size: calc(clamp(11px, .9cqw, 14px) * var(--mv-scale));
  font-weight: 400; letter-spacing: .04em; line-height: 1.4;
  color: rgba(255,255,255,.9);
  margin-top: 8px !important;
}
.mv__slash {
  font-size: calc(clamp(34px, 5.2cqw, 76px) * var(--mv-scale));
  font-weight: 200; line-height: 1;
  color: rgba(255,255,255,.55);
  align-self: flex-start;
  padding-top: .12em !important;
  margin-bottom: 30px !important;
}

/* 日本語見出し（hタグ不使用） */
.mv__title {
  font-size: calc(clamp(21px, 2.3cqw, 34px) * var(--mv-scale));
  font-weight: 500; line-height: 1.45; letter-spacing: .06em;
  text-shadow: 0 2px 30px rgba(10,40,58,.6);
  margin-bottom: 22px !important;
}

/* リード */
.mv__lead {
  max-width: 44em;
  font-size: calc(clamp(13px, 1.05cqw, 16px) * var(--mv-scale));
  font-weight: 700; line-height: 2.1; letter-spacing: .06em;
  color: rgba(255,255,255,.95);
  text-shadow: 0 1px 20px rgba(10,40,58,.6);
  margin-bottom: 40px !important;
}

/* ボタン */
.mv .mv__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.mv a.mv__btn {
  display: inline-flex !important;
  align-items: center; justify-content: center; gap: 12px;
  margin: 0 !important;
  border-radius: 4px !important;
  letter-spacing: .1em; line-height: 1.4; white-space: nowrap;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.mv a.mv__btn:hover { transform: translateY(-2px); opacity: 1; }
.mv a.mv__btn:focus-visible { outline: 2px solid #a5e6ff; outline-offset: 3px; }
.mv a.mv__btn--primary {
  padding: 18px 40px !important;
  background: #fff !important; color: #0d3547 !important;
  font-size: 15px; font-weight: 700; border: none !important;
}
.mv a.mv__btn--primary:hover { box-shadow: 0 12px 30px -10px rgba(255,255,255,.6); }
.mv a.mv__btn--ghost {
  padding: 18px 34px !important;
  background: rgba(13,53,71,.35) !important;
  border: 1px solid rgba(255,255,255,.65) !important;
  color: #fff !important;
  font-size: 14px; font-weight: 500;
  backdrop-filter: blur(6px);
}
.mv a.mv__btn--ghost:hover { background: rgba(255,255,255,.14) !important; }
.mv__ico { width: 18px; height: 18px; display: block; }

/* ===== reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .mv__aurora, .mv__col { animation: none; transform: none; }
  .mv__tag, .mv__display, .mv__title, .mv__lead, .mv .mv__actions { opacity: 1; animation: none; }
}

/* ===== レスポンシブ（〜767px） ===== */
@media (max-width: 767px) {
  .mv { min-height: auto; --mv-wall-gap: 12px; --mv-wall-opacity: .34; }
  .mv__wall { inset: -30% -25%; }
  .mv__col:nth-child(n+4) { display: none; }   /* スマホは3列まで */
  .mv__shade {
    background:
      linear-gradient(to bottom, rgba(16,70,100,.45) 0%, rgba(16,70,100,.4) 60%, rgba(16,70,100,.6) 100%);
  }
  .mv .mv__inner { padding: 100px 5vw 56px !important; }
  .mv .mv__inner::before {
    background: rgba(14,56,84,.22);
    -webkit-mask-image: none; mask-image: none;
  }
  .mv__tag { font-size: 12px; letter-spacing: .22em; padding: .65em .8em .65em 1em !important; margin-bottom: 18px !important; }
  .mv__display { gap: .25em .25em; margin-bottom: 40px !important; }
  .mv__word-en { font-size: clamp(44px, 14vw, 64px); }
  .mv__word-sub { font-size: 10px; margin-top: 6px !important; }
  .mv__slash { font-size: 40px; margin-bottom: 20px !important; }
  .mv__title { font-size: clamp(21px, 6.2vw, 26px); line-height: 1.5; letter-spacing: .04em; }
  .mv__lead { font-size: 12.5px; line-height: 1.9; font-weight: 500; margin-bottom: 28px !important; }
  .mv__lead br { display: none; }
  .mv .mv__actions { flex-direction: column; width: 100%; max-width: 360px; gap: 10px; }
  .mv a.mv__btn { width: 100%; }
  .mv a.mv__btn--primary { padding: 15px 20px !important; font-size: 14px; }
  .mv a.mv__btn--ghost   { padding: 14px 20px !important; font-size: 13px; }
}

/* ============================================
   メインビジュアル：「無料相談を予約する」をオレンジの立体ボタンに（中間CTAと同じ形）
   ============================================ */
.mv a.mv__btn--primary{background:#e8602c!important;color:#fff!important;border:2px solid #0d3547!important;border-radius:6px!important;
  box-shadow:6px 6px 0 #0d3547;margin:0 6px 6px 0!important;font-weight:500;transition:transform .15s ease,box-shadow .15s ease,background .2s}
.mv a.mv__btn--primary:hover{background:#f06c37!important;transform:translate(3px,3px);box-shadow:3px 3px 0 #0d3547}
.mv a.mv__btn--primary:active{transform:translate(6px,6px);box-shadow:0 0 0 #0d3547}
.mv a.mv__btn--ghost{margin-bottom:6px!important}
@media(max-width:767px){.mv a.mv__btn--primary{width:calc(100% - 6px)}}
@media(prefers-reduced-motion:reduce){.mv a.mv__btn--primary{transition:none}}

/* ===== 無料相談の予約ページ用のメインビジュアル（中央ぞろえ・高さを抑えて、すぐ下のフォームへつなぐ） ===== */
.mv.mv--rv{min-height:0}
.mv.mv--rv .mv__inner{align-items:center;text-align:center;padding:124px var(--mv-pad-x) 64px !important}
.mv.mv--rv .mv__inner::before{background:rgba(14,56,84,.2);-webkit-mask-image:none;mask-image:none}  /* 文字が中央なので、ぼかしは全面に均一に */
.mv.mv--rv .mv__shade{background:linear-gradient(to bottom,rgba(16,70,100,.3) 0%,rgba(16,70,100,.18) 50%,rgba(16,70,100,.4) 100%)}
.mv.mv--rv .mv__glass{align-items:center;max-width:900px;margin:0 auto}
.mv.mv--rv .mv__tag{margin-bottom:20px !important}
.mv.mv--rv .mv__display{justify-content:center;margin-bottom:26px !important}
.mv.mv--rv .mv__word{align-items:center;text-align:center}
.mv.mv--rv .mv__display .mv__word-en{font-size:calc(clamp(40px,5cqw,72px) * var(--mv-scale))}
.mv.mv--rv .mv__title{margin-bottom:14px !important}
.mv.mv--rv .mv__title span{display:inline-block}
.mv.mv--rv .mv__lead{text-align:center;margin-bottom:0 !important;line-height:1.9}
.mv.mv--rv .mv__inner{padding-bottom:44px !important}
/* タイトルの下の小さなキーワード */
.mv.mv--rv .mv__title{margin-bottom:10px !important}
.mv.mv--rv .mv__kw{font-size:13px;font-weight:500;letter-spacing:.18em;line-height:1.5;color:rgba(255,255,255,.88);margin-bottom:16px !important;opacity:0;animation:mvFadeUp 1.1s cubic-bezier(.19,1,.22,1) .68s forwards}
/* 下の表への案内：角丸の枠で囲んだボタン風（押すと日時の表へ移動） */
.mv.mv--rv a.mv__down{display:inline-flex;align-items:center;justify-content:center;gap:12px;margin-top:24px !important;padding:8px 26px 8px 8px !important;border:1.5px solid #fff;border-radius:999px;background:rgba(13,53,71,.35);color:#fff !important;opacity:0;animation:mvFadeUp 1.1s cubic-bezier(.19,1,.22,1) .95s forwards;transition:background .2s,color .2s}
.mv.mv--rv a.mv__down:hover{background:#fff;color:#0d3547 !important}
.mv.mv--rv .mv__down-ico{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#fff;color:#0d3547;transition:background .2s,color .2s}
.mv.mv--rv a.mv__down:hover .mv__down-ico{background:#0d3547;color:#fff}
.mv.mv--rv .mv__down-ico svg{display:block;width:18px;height:18px}
.mv.mv--rv .mv__down-txt{font-size:16px;font-weight:700;letter-spacing:.08em;line-height:1.5}
@media(prefers-reduced-motion:reduce){.mv.mv--rv .mv__kw,.mv.mv--rv a.mv__down{opacity:1;animation:none}}
.mv__title,.mv__lead,.mv a.mv__btn--primary,.mv .mv__tag{font-weight:700!important}
.mv a.mv__btn--primary::after{content:"";flex:none;width:8px;height:8px;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:rotate(45deg)}
@media (max-width:767px){
  .mv.mv--rv .mv__inner{padding:92px 5vw 44px !important}
  .mv.mv--rv .mv__tag{margin-bottom:14px !important}
  .mv.mv--rv .mv__display{margin-bottom:20px !important}
  .mv.mv--rv .mv__display .mv__word-en{font-size:clamp(36px,11vw,52px)}
  .mv.mv--rv .mv__title{font-size:clamp(19px,5.6vw,24px)}
  .mv.mv--rv .mv__inner{padding-bottom:32px !important}
  .mv.mv--rv .mv__kw{font-size:12px;letter-spacing:.14em;margin-bottom:12px !important}
  .mv.mv--rv a.mv__down{gap:9px;margin-top:18px !important;padding:6px 16px 6px 6px !important}
  .mv.mv--rv .mv__down-ico{width:28px;height:28px}
  .mv.mv--rv .mv__down-ico svg{width:15px;height:15px}
  .mv.mv--rv .mv__down-txt{font-size:13.5px;letter-spacing:.02em}
}
@media (max-width:340px){.mv.mv--rv .mv__down-txt{font-size:12px;letter-spacing:0}}

/* ===== 無料相談の予約ページ：フォームのセクション ===== */
/* SWELL干渉ガード（トップページの .tp と同じやり方） */
.swell-block-fullWide:has(.rv) > .swell-block-fullWide__inner,
.swell-block-fullWide__inner:has(.rv){max-width:none!important;width:100%!important;padding-left:0!important;padding-right:0!important}
.swell-block-fullWide:has(.rv){padding-top:0!important;padding-bottom:0!important}
.post_content .rv,.rv{margin:0!important}
.rv h2{margin:0;padding:0;background:none;border:none;border-radius:0;box-shadow:none;color:inherit;position:static}
.rv h2::before,.rv h2::after{content:none!important;display:none!important}
.rv{--ink:#1d2b33;color:var(--ink);line-height:1.9;letter-spacing:.04em;background:#fff}
.rv *{box-sizing:border-box}
.rv .rv-in{max-width:1100px;margin:0 auto}
.rv .rv-sec--form{padding:80px 5vw 96px;scroll-margin-top:80px}
.rv .rv-head{margin-bottom:36px}
.rv .rv-h2{margin:0;font-size:clamp(21px,2.3vw,30px);font-weight:700;line-height:1.5;letter-spacing:.06em;word-break:auto-phrase}
@media(max-width:960px){.rv .rv-sec--form{padding:60px 5vw 72px}.rv .rv-head{margin-bottom:28px}}
@media(max-width:600px){.rv .rv-sec--form{padding:44px 16px 60px}}  /* スマホでも左右に余白を取り、フォームの枠と角丸を残す */
