/* 2026-09-07: approved mobile layout. Desktop (900px+) stays unchanged. */
.mobile-hero, .mobile-gallery { display:none; }
/* Discourage native photo saving without blocking scrolling or text elsewhere. */
.mh-stage, .mobile-gallery, .hero-photo-sp, .hero-photo-pc,
.fv2-photo, .kanshu-photo, .kanshu-cut, .avatar, img.sp-slide, .pc2-frame {
  -webkit-touch-callout:none;
  -webkit-user-select:none;
  user-select:none;
}
.mh-photo, .mobile-gallery img, img.sp-slide, .pc2-frame img,
.kanshu-photo img, img.kanshu-cut, .avatar img {
  -webkit-user-drag:none;
}
/* 10/22 ショウ「長押しで保存できないように」＝結果ページの写真（ポイント・約束・岩﨑の思い・写真帯）やイラストも含め、ページ内の画像すべてに */
img {
  -webkit-touch-callout:none;
  -webkit-user-select:none;
  user-select:none;
  -webkit-user-drag:none;
}
@media (max-width:899px) {
  .hero > .hero-inner { display:block;max-width:600px;padding:0; }
  .hero:has(> .hero-inner) { padding:0; }
  .hero-inner > .hero-copy, .hero-inner > .hero-photo-sp,
  .fvwrap .fv2, .fvwrap .fv2-photo { display:none; }
  .fvwrap { padding-top:0; }
  .fvwrap .hero-in { padding:0;max-width:600px; }
  html.short .fvwrap { padding-bottom:0; }
  .mobile-hero { display:block;container-type:inline-size;position:relative;isolation:isolate;overflow:hidden;width:100%;font-family:'Noto Sans JP',var(--font);background:linear-gradient(180deg,#fff 0%,#fcfeff 15%,#edf6fc 31%,#deedf7 66%,#deedf7 100%); }
  .mh-stage { position:relative;height:111cqw; }
  .mobile-hero--check .mh-stage { height:119cqw; }
  .mobile-hero .mh-photo { position:absolute;right:-14%;bottom:0;width:88%;height:94.01cqw;object-fit:cover;object-position:52% center;z-index:0;mask-image:linear-gradient(to right,transparent 0%,#000 34%),linear-gradient(to bottom,transparent,#000 12%);mask-composite:intersect; }
  .mobile-hero--lp .mh-photo { right:-10%;width:84%;height:86.5cqw; }
  .mobile-hero .mh-title { position:absolute;left:3%;right:3%;top:4%;z-index:2;margin:0;text-align:center;font-size:7.6cqw;font-weight:800;line-height:1.3;letter-spacing:.035em;color:#173f60; }
  .mobile-hero .mh-title em { display:inline-block;margin-top:1cqw;font-style:normal;color:#d74448;font-size:8.424cqw;line-height:1.3;letter-spacing:-.035em;white-space:nowrap;background:linear-gradient(transparent 71%,#ffe579 71%,#ffe579 92%,transparent 92%); }
  .mobile-hero--check .mh-title em { font-size:10.4cqw; }
  .mobile-hero .mh-copy { position:absolute;left:5%;top:42.27cqw;width:46%;padding-left:10px;border-left:3px solid #d4b16c;z-index:2;text-shadow:1px 1px #f0f7fb,-1px -1px #f0f7fb; }
  .mobile-hero--check .mh-copy { top:48cqw; }
  .mobile-hero .mh-copy p { font-size:4.1cqw;line-height:1.75;font-weight:700;color:#36556b;margin:0 0 12px; }
  .mobile-hero .mh-copy .mh-lead { display:block;font-size:4.4cqw;line-height:1.7;margin-bottom:4px;font-weight:800;color:#234d6b; }
  .mobile-hero .mh-key { display:block;font-size:6.7cqw;font-weight:800;line-height:1.5;letter-spacing:-.03em;color:#234d6b; }
  .mobile-hero .mh-key em { font-style:normal;background:linear-gradient(transparent 73%,#ffe579 73%,#ffe579 94%,transparent 94%); }
  .mobile-hero .mh-copy .mh-ending { margin:9px 0 0; }
  .mobile-hero--check .mh-copy p { margin-bottom:16px; }
  .mobile-hero--check .mh-key { font-size:6.3cqw;line-height:1.7; }
  .mobile-hero--check .mh-copy .mh-ending { margin:13px 0 0; }
  .mobile-hero .mh-line { display:block;white-space:nowrap; }
  .mobile-hero .mh-signature { position:absolute;right:4%;bottom:3.5%;z-index:3;display:flex;align-items:center;gap:10px;max-width:76%;padding:8px 13px 8px 9px;border:1px solid #fff;border-bottom:3px solid #ccad69;border-radius:9px;background:linear-gradient(120deg,#fff,#f6fbff);box-shadow:0 4px 16px #173f6033;color:#153e5d;text-shadow:none; }
  .mobile-hero .mh-supervisor { display:flex;align-items:center;justify-content:center;flex:none;width:38px;height:38px;border-radius:50%;background:linear-gradient(145deg,#285575,#103852);color:#fff;font-size:12px;font-weight:700;box-shadow:0 0 0 3px #e7edf0; }
  .mobile-hero .mh-name { text-align:center; }
  .mobile-hero .mh-name small { display:block;font-size:2.85cqw;font-weight:700;letter-spacing:.02em; }
  .mobile-hero .mh-name b { display:block;font-size:5.2cqw;line-height:1.4;letter-spacing:.08em; }
  .hero-inner > .offer, .hero-in > .fv2-offer { margin:0;padding:19px 18px 17px; }
  .hero-inner > .offer .offer-desc, .hero-in > .fv2-offer .fv2-offer-desc { display:none; }
  .hero-inner > .offer .offer-name, .hero-in > .fv2-offer .fv2-offer-name { margin-top:8px; }
  .hero-inner > .offer .line-btn, .hero-in > .fv2-offer .startbtn { margin-top:10px; }
  .mobile-gallery { display:flex;flex-direction:column;align-items:center;position:relative;overflow:hidden;padding:12px 0 0;background:var(--bg);max-width:600px;margin:0 auto; }
  .hero + .mobile-gallery { background:repeating-linear-gradient(0deg,var(--grid-line) 0 1px,transparent 1px 32px),repeating-linear-gradient(90deg,var(--grid-line) 0 1px,transparent 1px 32px),#fff; }
  .mg-viewport { width:100%;overflow:hidden;order:0;padding:6px 0 18px; }   /* 10/5: 上下に余白＝写真の影が切れない */
  /* 10/6: iPhoneのちらつき対策（実測で原因特定）＝帯1本(幅2056px)を動かすと、1周して戻る瞬間に写真が1コマ白く抜ける
     （WebKitは幅約2000px超の層をタイル分割して描くため）。→ 帯は動かさず、4枚1組(幅1028px)の2組をそれぞれ同じ速さで動かす。
     シミュレータ80秒録画の比較: 帯1本=37秒ごとに白抜け2回／2組方式=0回
     10/9: それでも実機でたまに白く光った＝WebKitがiPhoneで層をタイル分割する幅は通常1280px・メモリが少ない時1024px
     （GraphicsLayerCA::requiresTiledLayer）。4枚1組=1028px(+影)で低メモリ時だけ超えていた→ 2枚1組(514px)×4に。
     各組は自分の幅2つ分(-200%)＝4枚ぶん左へ動いて戻る（継ぎ目なし）。⚠1組の幅を1000px未満に保つ */
  .mg-track { display:flex;width:max-content; }
  .mg-group { display:flex;gap:12px;padding-right:12px;animation:mh-drift 37s linear infinite;will-change:transform;-webkit-backface-visibility:hidden;backface-visibility:hidden; }
  /* 10/5ショウ: 白縁を見えるように＝PCと同じく白縁＋薄い影（白い方眼の上でも縁が浮く） */
  .mg-slot { display:block;width:245px;height:170px;object-fit:cover;flex:none;border:4px solid #fff;border-radius:12px;background:#e8eef2;box-shadow:0 6px 16px rgba(20,63,102,.16); }
  @keyframes mh-drift { from { transform:translate3d(0,0,0); } to { transform:translate3d(-200%,0,0); } }   /* 2枚1組の幅×2＝写真4枚ぶん左へ＝複製の組が元の位置に来た所で戻る（継ぎ目なし） */
  @media(prefers-reduced-motion:reduce) { .mg-group { animation:none; } }
}
/* 10/5: PC（900px+）は写真帯を流さず4枚を横一列に並べる。複製グループは隠す（スマホの無限ループ用） */
@media (min-width:900px) {
  .mobile-gallery { display:block;padding:36px 24px 40px; }
  .hero + .mobile-gallery { background:repeating-linear-gradient(0deg,var(--grid-line) 0 1px,transparent 1px 32px),repeating-linear-gradient(90deg,var(--grid-line) 0 1px,transparent 1px 32px),#fff; }
  .mg-viewport { max-width:1120px;margin:0 auto; }
  .mg-track { width:auto;animation:none;display:grid;grid-template-columns:repeat(4,1fr);gap:20px; }
  .mg-group { animation:none;will-change:auto;display:contents; }   /* 10/9: 2枚1組の箱を消して4枚を直接4列に並べる */
  .mg-group[aria-hidden="true"] { display:none; }
  .mg-slot { display:block;width:100%;height:auto;aspect-ratio:245/170;object-fit:cover;border:4px solid #fff;border-radius:16px;box-shadow:0 12px 28px rgba(20,63,102,.16);transition:transform .35s ease,box-shadow .35s ease; }
  .mg-slot:hover { transform:translateY(-4px);box-shadow:0 18px 36px rgba(20,63,102,.22); }
  /* 10/5 案①: 写真帯が見えたら左から1枚ずつふわっと出る（1回だけ）。クラスはphoto-interactions.jsが付ける＝JSが動かなくても写真は普通に見える */
  .mg-reveal .mg-slot { opacity:0;transform:translateY(28px);transition:opacity .8s ease,transform .8s cubic-bezier(.2,.7,.2,1),box-shadow .35s ease; }
  .mg-reveal.mg-in .mg-slot { opacity:1;transform:none; }
  .mg-reveal.mg-in:not(.mg-done) .mg-group:nth-child(1) .mg-slot:nth-child(2) { transition-delay:.15s; }
  .mg-reveal.mg-in:not(.mg-done) .mg-group:nth-child(2) .mg-slot:nth-child(1) { transition-delay:.3s; }
  .mg-reveal.mg-in:not(.mg-done) .mg-group:nth-child(2) .mg-slot:nth-child(2) { transition-delay:.45s; }
  .mg-reveal.mg-done .mg-slot { transition:transform .35s ease,box-shadow .35s ease; }
  .mg-reveal.mg-done .mg-slot:hover { transform:translateY(-4px); }
  @media(prefers-reduced-motion:reduce) { .mg-slot { transition:none; } .mg-slot:hover { transform:none; } }
}
