/* style-wow.css - ベース(style.css)の上に重ねる“驚き + 今どき”演出専用 */

/* ===== ヒーロー演出（奥行き） ===== */
.hero-bg { position: relative; overflow: hidden; }
.hero-bg img { transform: scale(1.06); will-change: transform; }
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(0.2px);
}
.hero-glow{
  position:absolute; inset:-20%;
  pointer-events:none;
  background: radial-gradient(circle at 35% 40%, rgba(255,255,255,.22), rgba(255,255,255,0) 55%);
  opacity: .9;
  will-change: transform;
}
.hero-overlay-motion{
  position:absolute; inset:0;
  pointer-events:none;
  background:
    radial-gradient(1200px 600px at 30% 20%, rgba(11,42,91,.55), rgba(11,42,91,0) 60%),
    linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.55));
}

/* ===== 今どき：スポットライト追従 ===== */
.hero-spotlight{
  position:absolute; inset:0;
  pointer-events:none;
  background:
    radial-gradient(700px 420px at var(--sx, 50%) var(--sy, 35%),
      rgba(255,255,255,.18), rgba(255,255,255,0) 60%);
  opacity: .95;
  mix-blend-mode: screen;
}

/* ===== 今どき：スクロール進捗バー ===== */
.scroll-progress{
  position: fixed;
  left: 0; top: 0;
  height: 3px;
  width: calc(var(--p, 0) * 100%);
  background: rgba(255,255,255,.95);
  mix-blend-mode: difference;
  z-index: 9999;
  transform-origin: left;
}

/* スクロール合図 */
.hero-scroll{
  position:absolute; left:50%; bottom:18px;
  transform: translateX(-50%);
  display:flex; flex-direction:column; align-items:center;
  gap:8px; opacity:.8;
}
.hero-scroll span{ font-size:12px; letter-spacing:.22em; }
.hero-scroll i{
  width:2px; height:28px; border-radius:999px;
  background: rgba(255,255,255,.8);
  position:relative; overflow:hidden;
}
.hero-scroll i::after{
  content:""; position:absolute; left:0; top:-40%;
  width:100%; height:40%;
  background: rgba(255,255,255,1);
  animation: scrollLine 1.5s infinite;
}
@keyframes scrollLine{
  0%{ transform: translateY(0); opacity:0; }
  25%{ opacity:1; }
  100%{ transform: translateY(220%); opacity:0; }
}

/* ===== スクロール表示 ===== */
.reveal-ready{ opacity:0; transform: translateY(14px); }
.reveal-ready.is-inview{
  opacity:1; transform: translateY(0);
  transition: opacity .7s ease, transform .7s ease;
}

/* ===== タイトル文字割り ===== */
.split-ready .split-ch{
  display:inline-block;
  opacity:0;
  transform: translateY(16px) rotate(-2deg);
  filter: blur(6px);
}
.split-ready.split-go .split-ch{
  animation: splitIn 720ms cubic-bezier(.2,.9,.2,1) forwards;
  animation-delay: var(--d);
}
@keyframes splitIn{
  to{ opacity:1; transform: translateY(0) rotate(0); filter: blur(0); }
}

/* ===== カードの立体感 ===== */
.card.js-reveal{
  transform: translateY(14px) scale(.985);
  opacity:0;
}
.card.js-reveal.is-inview{
  opacity:1; transform: translateY(0) scale(1);
  transition: opacity .75s ease, transform .75s ease;
}
.card:hover{
  transform: translateY(-3px);
  transition: transform .2s ease;
}

/* ===== ボタンの磁力 ===== */
.btn-magnetic{
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform .18s ease;
  will-change: transform;
}

/* ===== タブ ===== */
.section-wow{ position:relative; }
.wow-tabs{
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15,23,42,.08);
}
.wow-tablist{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.wow-tab{
  border:1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.55);
  padding:10px 14px;
  border-radius: 999px;
  cursor:pointer;
  font-weight:800;
}
.wow-tab.is-active{
  background: rgba(255,255,255,.9);
  border-color: rgba(15,23,42,.22);
}
.wow-panel{ display:none; }
.wow-panel.is-active{ display:block; }
.wow-panel h3{ margin: 6px 0 8px; }
.wow-points{ margin: 10px 0 0; padding-left: 1.2em; }
.wow-cta{ margin-top: 16px; display:flex; gap:10px; flex-wrap:wrap; }

/* ===== 今どき：実績カウントアップ ===== */
.section-stats{ padding-top: 22px; padding-bottom: 18px; }
.stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.stat{
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(15,23,42,.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0,0,0,.06);
}
.stat-num{
  font-size: 28px;
  font-weight: 950;
  letter-spacing: .01em;
}
.stat-label{
  font-size: 13px;
  opacity: .78;
  margin-top: 4px;
}
.stats-note{ margin: 10px 0 0; font-size: 12px; opacity: .7; }

@media (max-width: 900px){
  .stats{ grid-template-columns: 1fr; }
}

/* モーション苦手な方へ */
@media (prefers-reduced-motion: reduce){
  .hero-canvas{ display:none; }
  .hero-spotlight{ display:none; }
  .scroll-progress{ display:none; }
  .reveal-ready{ opacity:1 !important; transform:none !important; }
  .split-ready .split-ch{ opacity:1 !important; transform:none !important; filter:none !important; }
  .hero-scroll i::after{ animation:none; }
  .btn-magnetic{ transition:none; }
}

/* モバイル：ナビの開閉 */
@media (max-width: 900px){
  .nav{ display:none; }
  body.nav-open .nav{
    display:flex;
    position:absolute;
    right:16px; top:64px;
    flex-direction:column;
    gap:8px;
    padding:12px;
    border-radius:14px;
    background: rgba(10,20,40,.92);
    backdrop-filter: blur(10px);
    z-index: 30;
  }
  body.nav-open .nav a{ color:#fff; }
}

/* ===== 写真を増やして“動きのある”見た目に（ギャラリー/マルキー/ライトボックス） ===== */

/* ヒーロー下の写真ストリップ（自動スクロール） */
.hero-strip{
  position:absolute;
  left:0; right:0; bottom: 10px;
  padding: 10px 0;
  pointer-events:auto;
}
.marquee{
  overflow:hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track{
  display:flex;
  gap: 10px;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee:hover .marquee-track{ animation-play-state: paused; }
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
.strip-card{
  width: 160px;
  height: 100px;
  border-radius: 16px;
  overflow:hidden;
  position:relative;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.strip-card img{
  width:100%; height:100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform .25s ease;
}
.strip-card:hover img{ transform: scale(1.10); }
.strip-cap{
  position:absolute;
  left:10px; bottom:10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  color:#fff;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
}

/* ポップな見出し装飾 */
.pop-title{
  display:flex; align-items:center; gap:10px;
}
.pop-title .sticker{
  width: 36px; height: 36px;
  border-radius: 14px;
  display:grid; place-items:center;
  background: rgba(27,79,214,.10);
  border:1px solid rgba(15,23,42,.08);
  font-weight: 900;
}

/* Bentoギャラリー */
.bento{
  display:grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap: 12px;
  margin-top: 16px;
}
.bento-item{
  position:relative;
  border-radius: 18px;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
  box-shadow: 0 16px 40px rgba(2,6,23,.10);
  transform: translateY(8px);
  opacity: 0;
}
.bento-item.is-inview{ opacity:1; transform: translateY(0); transition: opacity .7s ease, transform .7s ease; }
.bento-item img{
  width:100%; height:100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform .35s ease;
}
.bento-item:hover img{ transform: scale(1.10); }
.bento-item::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.45));
}
.bento-cap{
  position:absolute; left:14px; bottom:12px;
  color:#fff;
  font-weight: 900;
  text-shadow: 0 12px 24px rgba(0,0,0,.35);
  z-index: 1;
}
.b1{ grid-column: 1 / span 7; grid-row: 1 / span 2; min-height: 360px; }
.b2{ grid-column: 8 / span 5; grid-row: 1 / span 1; min-height: 174px; }
.b3{ grid-column: 8 / span 5; grid-row: 2 / span 1; min-height: 174px; }
.b4{ grid-column: 1 / span 4; grid-row: 3 / span 1; min-height: 180px; }
.b5{ grid-column: 5 / span 4; grid-row: 3 / span 1; min-height: 180px; }
.b6{ grid-column: 9 / span 4; grid-row: 3 / span 1; min-height: 180px; }

@media (max-width: 960px){
  .b1{ grid-column: 1 / span 12; min-height: 320px; }
  .b2{ grid-column: 1 / span 6; }
  .b3{ grid-column: 7 / span 6; }
  .b4,.b5,.b6{ grid-column: 1 / span 12; }
}
@media (max-width: 560px){
  .b2,.b3{ grid-column: 1 / span 12; }
  .strip-card{ width: 130px; height: 82px; }
}

/* ライトボックス */
.lightbox{
  position: fixed;
  inset: 0;
  display:none;
  align-items:center;
  justify-content:center;
  background: rgba(2,6,23,.66);
  z-index: 99999;
  padding: 18px;
}
.lightbox.is-open{ display:flex; }
.lightbox-inner{
  width: min(980px, 100%);
  border-radius: 18px;
  overflow:hidden;
  background:#fff;
  box-shadow: 0 24px 80px rgba(0,0,0,.40);
}
.lightbox-img{
  width:100%;
  max-height: 70vh;
  object-fit: cover;
}
.lightbox-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 14px;
  color: rgba(15,23,42,.90);
}
.lightbox-cap{ font-weight: 900; }
.lightbox-close{
  border: 0;
  background: rgba(27,79,214,.10);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 900;
}

/* ===== ヒーロー背景を“明るく”見せる調整（CSSで） ===== */
.hero-overlay-motion{
  opacity: .72;
  background:
    radial-gradient(1200px 600px at 30% 20%, rgba(255,255,255,.12), rgba(255,255,255,0) 60%),
    linear-gradient(to bottom, rgba(0,0,0,.10), rgba(0,0,0,.30));
}
/* ===== 背景固定（横スライドはそのまま） ===== */
.hero-bg.is-bg-fixed{
  background-position: 50% 60%;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.hero-bg.is-bg-fixed > img{
  opacity: 0; /* 画像は保持しつつ表示はCSS背景に任せる */
}
/* iOS等で background-attachment:fixed が不安定な場合は通常に戻す */
@supports (-webkit-touch-callout: none){
  .hero-bg.is-bg-fixed{ background-attachment: scroll; }
}


/* === PC背景位置 修正（自動追記） === */
@media (min-width: 981px){
  /* PC：背景の見える位置を下寄りに（35%） */
  .hero-bg.is-bg-fixed{ background-position: 50% 35% !important; }
  body.page-home::before{ background-position: center 35% !important; }
  .hero-bg img{ object-position: 50% 35%; }

  /* PC：ヒーロー画像表示を少し縦に広げる */
  .hero-bg{ height: min(84vh, 720px); }

  /* PC：半透明の本文ブロックを少し下へ */
  body.page-home .content-fade{ margin-top: 24px; }
}

/* === お問い合わせ：メール案内の右に写真を配置 === */
.cards.contact-split{
  grid-template-columns: 2fr 1fr;
  align-items: start;
}
.cards.contact-split .card{ height: 100%; }

.card.contact-photo{
  padding: 0;
  overflow: hidden;
}
.card.contact-photo img{
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}
.card.contact-photo .mini-note{
  margin: 0;
  padding: 12px 14px 14px;
  color: rgba(15,23,42,.78);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 980px){
  .cards.contact-split{ grid-template-columns: 1fr; }
  .card.contact-photo img{ min-height: 220px; }
}

/* === 検定案内：ページ末尾の写真ギャラリー === */
.end-gallery{ padding-top: 0; }
.photo-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.photo-tile{
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(2,6,23,.10);
  border: 1px solid rgba(15,23,42,.08);
}
.photo-tile img{
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

@media (max-width: 980px){
  .photo-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .photo-tile img{ height: 160px; }
}
@media (max-width: 560px){
  .photo-grid{ grid-template-columns: 1fr; }
  .photo-tile img{ height: 210px; }
}
