/* 導入相談LP 案B「表紙」。スマホ1カラムが基準。パソコン向けは pc.css */
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: #DFE2EA;
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 15px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: #fff; }

.page {
  position: relative;
  z-index: 2;
  max-width: var(--col);
  margin: 0 auto;
  padding-bottom: 76px;
  background: var(--paper);
  overflow-x: clip;
}

/* パソコン向けの左右の案内（スマホでは出さない） */
.pc-side { display: none; }

/* 共通の部品 */
.sec { padding: 60px var(--gutter) 64px; }
.h2, .vision-body h3, .quote, .now-list li, .honest strong, .steps h3, .faq-list summary { word-break: auto-phrase; }
.h2 { font-weight: 900; font-size: 31px; line-height: 1.36; letter-spacing: .01em; }
.sec-lead { margin-top: 12px; font-size: 14.5px; color: var(--gray); }
.cta {
  display: block;
  padding: 18px 16px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
}
.cta-note { margin-top: 10px; text-align: center; font-size: 12.5px; color: var(--gray); }
.sub-link {
  display: block;
  margin-top: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--cobalt-deep);
  text-underline-offset: 5px;
}
.quote {
  margin-top: 40px;
  padding-left: 16px;
  border-left: 5px solid var(--cobalt);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.85;
}
.on-dark .quote { border-left-color: #fff; }
.note { margin-top: 22px; font-size: 12.5px; line-height: 1.8; color: var(--gray); }

/* ───── 1. ファーストビュー: 雑誌の表紙 ───── */
.cover {
  --p: 0; --tx: 0; --ty: 0;
  position: relative;
  height: 652px;
  background: var(--mist) url(../assets/bg/b1-studio.webp) center / cover;
  overflow: hidden;
}
.pr { position: absolute; top: 12px; right: 14px; z-index: 4; font-size: 11px; letter-spacing: .1em; color: var(--gray); }
.mast {
  position: absolute; top: 26px; left: 0; right: 0; z-index: 1;
  display: flex; justify-content: center;
  font-family: var(--mast); font-weight: 400; font-size: 92px; line-height: 1; letter-spacing: 0;
  color: var(--cobalt);
  transform: translate3d(calc(var(--tx) * -10px), calc(var(--p) * 70px + var(--ty) * -6px), 0) scale(calc(1 + var(--p) * .1));
  will-change: transform;
}
.mast span { display: block; }
.strap { position: absolute; top: 118px; left: 20px; z-index: 3; font-weight: 700; font-size: 12.5px; line-height: 1.6; }
.strap-r { left: auto; right: 20px; text-align: right; }
.aya-wrap {
  position: absolute; left: 50%; bottom: -6px; z-index: 2; width: 104%;
  transform: translate3d(calc(-50% + var(--tx) * 8px), calc(var(--p) * -26px + var(--ty) * 5px), 0) scale(calc(1 + var(--p) * .06));
  transform-origin: 50% 100%;
  will-change: transform;
}
.cover-head { position: absolute; left: 0; bottom: 0; z-index: 3; padding: 16px 22px 16px; background: var(--cobalt); color: #fff; }
.cover-head h1 { font-weight: 900; }
.h1-big { display: block; font-size: 40px; line-height: 1.24; letter-spacing: .01em; }
.h1-sub { display: block; margin-top: 8px; font-weight: 700; font-size: 12px; line-height: 1.5; }
.intro { padding: 20px var(--gutter) 44px; }
.lead { margin-top: 26px; font-weight: 500; font-size: 16px; line-height: 1.95; }
.award { margin-top: 18px; padding: 12px 14px; background: #fff; font-size: 12.5px; line-height: 1.75; color: var(--gray); }
.award b { display: block; color: var(--ink); font-size: 13.5px; }

/* 流れる帯 */
.band { --x: 0; overflow: hidden; padding: 14px 0; background: var(--cobalt); color: #fff; }
.band-track {
  display: flex; gap: 28px; width: max-content;
  font-weight: 900; font-size: 30px; line-height: 1.2; white-space: nowrap;
  transform: translate3d(calc(var(--x) * 1px), 0, 0);
  will-change: transform;
}
.band-track i { font-family: var(--mast); font-style: normal; font-weight: 400; font-size: 34px; opacity: .8; }

/* ───── 2. いま ───── */
.now { background: var(--ink); color: #fff; }
.now-list { margin-top: 30px; border-top: 1px solid var(--rule-on-ink); }
.now-list li { padding: 18px 0; border-bottom: 1px solid var(--rule-on-ink); font-weight: 700; font-size: 17px; line-height: 1.7; }
.now-close { margin-top: 34px; font-weight: 900; font-size: 20px; line-height: 1.95; }
.now-close span { padding: .12em .3em; background: var(--cobalt); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ───── 3. これから: 重なっていく表紙 ───── */
.future { background: var(--paper); }
.visions { display: grid; gap: 18px; margin-top: 30px; }
.vision {
  --n: 0; --t: 0;
  position: relative;
  border: 1.5px solid var(--ink);
  background: #fff;
  transform: scale(calc(1 - var(--t) * .045));
  transform-origin: 50% 0;
  filter: brightness(calc(1 - var(--t) * .14));
}
@media (min-height: 640px) {
  .vision { position: sticky; top: calc(12px + var(--n) * 10px); }
}
.vision-photo { position: relative; aspect-ratio: 5 / 4.5; overflow: hidden; background: var(--mist); }
.vision-photo.is-cobalt { background: var(--cobalt) url(../assets/bg/b2-cobalt.webp) center / cover; color: #fff; }
.vision-photo.is-ink { background: var(--ink); color: #fff; }
.vision-word {
  position: absolute; top: 10px; left: 0; right: 0;
  text-align: center;
  font-family: var(--mast); font-weight: 400; font-size: 78px; line-height: 1; letter-spacing: 0;
  color: var(--cobalt);
}
.vision-photo.is-cobalt .vision-word,
.vision-photo.is-ink .vision-word { color: #fff; }
.vision-photo img { position: absolute; left: 50%; bottom: 0; width: 50%; max-width: none; transform: translateX(-50%); }
.vision-photo img.is-group { width: 60%; }
.vision-body { padding: 18px 18px 20px; }
.vision-body h3 { font-weight: 900; font-size: 22px; line-height: 1.45; }
.vision-body p { margin-top: 8px; font-size: 14.5px; line-height: 1.85; }
.vision-body .vision-quote { margin-top: 12px; padding-left: 12px; border-left: 4px solid var(--cobalt); font-weight: 700; font-size: 14.5px; line-height: 1.75; }
.vision-body .vision-who { margin-top: 12px; font-size: 11.5px; line-height: 1.6; color: var(--gray); }

/* ───── 4. 輝いている人たち: 表紙の壁 ───── */
.shine { padding-left: 16px; padding-right: 16px; background: #fff; }
.shine .h2, .shine .sec-lead, .shine .note { padding-left: 6px; padding-right: 6px; }
.wall { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; perspective: 900px; }
.wall[hidden] { display: none; }
.issue { position: relative; aspect-ratio: 3 / 4.15; overflow: hidden; background: var(--mist); transform-origin: 50% 100%; }
.issue.is-cobalt { background: var(--cobalt) url(../assets/bg/b2-cobalt.webp) center / cover; color: #fff; }
.issue.is-wide { grid-column: 1 / -1; aspect-ratio: 3 / 2.7; }
.issue-mast {
  position: absolute; top: 8px; left: 0; right: 0; text-align: center;
  font-family: var(--mast); font-weight: 400; font-size: 33px; line-height: 1; letter-spacing: 0;
  color: var(--cobalt); opacity: .9;
}
.issue.is-cobalt .issue-mast { color: #fff; }
.issue.is-wide .issue-mast { top: 14px; font-size: 72px; }
.issue img { position: absolute; left: 50%; bottom: 0; width: 100%; transform: translateX(-50%); }
.issue.is-wide img { width: 62%; }
.issue-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 38px 10px 10px; background: linear-gradient(to top, rgba(20, 21, 26, .86), transparent); color: #fff; }
.issue-name { font-weight: 900; font-size: 19px; line-height: 1.3; }
.issue.is-wide .issue-name { font-size: 26px; }
.issue-place { font-size: 11px; line-height: 1.5; }
.issue-act { margin-top: 4px; font-weight: 700; font-size: 11.5px; line-height: 1.5; }
.issue::after {
  content: ""; position: absolute; inset: -20% -60%; z-index: 3;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .55) 50%, transparent 58%);
  transform: translateX(-70%);
  pointer-events: none;
}
.shine .quote { margin-left: 6px; margin-right: 6px; }
.pair-links { display: flex; gap: 10px; margin-top: 30px; }
.pair-links a { flex: 1; padding: 13px 4px; border: 1.5px solid var(--ink); text-align: center; text-decoration: none; font-weight: 700; font-size: 12.5px; line-height: 1.5; }

/* ───── 5. AYA の歩み ───── */
.story { padding-top: 0; background: var(--paper); }
.story-photo { position: relative; margin: 0 calc(var(--gutter) * -1); }
.story-photo img { width: 100%; }
.story-title { position: absolute; left: 0; bottom: 0; padding: 12px 22px 12px; background: var(--ink); color: #fff; }
.story-lead { margin-top: 30px; font-weight: 500; font-size: 16px; line-height: 1.95; }
.story .quote { margin-top: 30px; }
.story-text { margin-top: 26px; }
.timeline { margin-top: 34px; border-left: 2px solid var(--ink); }
.timeline li { position: relative; padding: 0 0 22px 20px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 9px; width: 12px; height: 12px; background: var(--cobalt); }
.timeline time { display: block; font-family: var(--mast); font-variant-numeric: lining-nums; font-weight: 400; font-size: 32px; line-height: 1.15; color: var(--cobalt-deep); }
.timeline p { margin-top: 4px; font-size: 14.5px; line-height: 1.8; }
.timeline .is-award p { margin-top: 0; padding: 12px 14px; background: #fff; font-weight: 700; }

/* ───── 6. A-CLASS のいまと、これから ───── */
.aclass { background: var(--cobalt) url(../assets/bg/b2-cobalt.webp) center top / cover; color: #fff; }
.aclass h3 { margin-top: 34px; font-weight: 900; font-size: 20px; line-height: 1.5; }
.aclass h3 + p { margin-top: 8px; }
.aclass p { font-weight: 500; }
.acro { margin-top: 30px; border-top: 1px solid var(--rule-on-cobalt); }
.acro li { display: grid; grid-template-columns: 62px 1fr auto; align-items: baseline; gap: 6px; padding: 6px 0 8px; border-bottom: 1px solid var(--rule-on-cobalt); }
.acro b { font-family: var(--mast); font-weight: 400; font-size: 64px; line-height: 1; }
.acro-en { font-family: var(--mast); font-weight: 400; font-size: 27px; line-height: 1.2; }
.acro-ja { font-weight: 700; font-size: 14.5px; }
.acro-sum { margin-top: 18px; font-weight: 700; font-size: 16px; line-height: 1.9; }

/* ───── 7. 支える環境: 目次の形 ───── */
.support { background: #fff; }
.toc { margin-top: 28px; border-top: 3px solid var(--ink); }
.toc div { padding: 15px 0 16px; border-bottom: 1px solid var(--mist); }
.toc dt { font-weight: 900; font-size: 17px; line-height: 1.5; }
.toc dd { margin-top: 2px; font-size: 13.5px; line-height: 1.75; color: var(--gray); }

/* ───── 8. 製品: 立体で回る棚 ───── */
.what { padding-left: 16px; padding-right: 16px; background: linear-gradient(to bottom, var(--paper), #E9ECF5); }
.what .h2, .what .what-text { padding-left: 6px; padding-right: 6px; }
.what-text { margin-top: 14px; }
.ring-stage {
  --r: 205px;
  position: relative; height: 330px; margin: 8px -16px 0;
  perspective: 1050px; perspective-origin: 50% 40%;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.ring-stage:active { cursor: grabbing; }
.ring-floor {
  position: absolute; left: 50%; top: 60%; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(36, 71, 249, .20), rgba(36, 71, 249, .06) 55%, transparent 72%);
  transform: rotateX(78deg) translateZ(-120px);
}
.ring { --ry: 0deg; position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--r) * -1)) rotateX(-7deg) rotateY(var(--ry)); transition: opacity 1s var(--ease); }
.prod {
  --k: 1; --s: .5;
  position: absolute; left: 50%; top: 50%; width: 132px; height: 246px; margin: -123px 0 0 -66px;
  transform-style: preserve-3d;
  transform: rotateY(var(--a)) translateZ(var(--r)) rotateY(calc(-1 * (var(--a) + var(--ry))));
  opacity: calc(.35 + .65 * var(--k));
  filter: brightness(calc(.78 + .22 * var(--k))) blur(calc((1 - var(--k)) * 2.2px));
}
.prod img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; pointer-events: none; -webkit-user-drag: none; }
.prod-gloss {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 36%, rgba(255, 255, 255, .75) 50%, transparent 64%) no-repeat;
  background-size: 320% 100%;
  background-position: calc(var(--s) * 100%) 0;
  /* 画像は HTML 側の style で指定する（ページの置き場所が変わっても参照がずれない） */
  -webkit-mask-position: 50% 100%; mask-position: 50% 100%;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  mix-blend-mode: screen;
  pointer-events: none;
}
.prod::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -16px; height: 22px; background: radial-gradient(closest-side, rgba(20, 21, 26, .32), transparent); transform: rotateX(80deg); }
.ring-name { margin-top: 4px; min-height: 1.6em; text-align: center; font-weight: 900; font-size: 20px; line-height: 1.6; }
.ring-hint { text-align: center; font-size: 12px; color: var(--gray); }
.honest { margin: 30px 6px 0; padding: 18px 18px 20px; background: var(--ink); color: #fff; }
.honest strong { display: block; font-weight: 900; font-size: 19px; line-height: 1.6; }
.honest p { margin-top: 8px; font-size: 14px; line-height: 1.85; }
.tri-links { display: grid; gap: 8px; margin: 22px 6px 0; }
.tri-links a { padding: 13px 14px; border: 1.5px solid var(--ink); text-decoration: none; font-weight: 700; font-size: 13.5px; line-height: 1.5; }

/* ───── 9. はじめ方 ───── */
.flow { background: #fff; }
.steps { margin-top: 26px; counter-reset: step; border-top: 3px solid var(--ink); }
.steps li { position: relative; padding: 16px 0 18px 62px; border-bottom: 1px solid var(--mist); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 4px; top: 8px; font-family: var(--mast); font-variant-numeric: lining-nums; font-weight: 400; font-size: 56px; line-height: 1; color: var(--cobalt); }
.steps h3 { font-weight: 900; font-size: 18px; line-height: 1.5; }
.steps p { margin-top: 2px; font-size: 14px; line-height: 1.8; color: var(--gray); }
.flow .quote { margin-top: 34px; }

/* ───── 10. よくある質問 ───── */
.faq { background: var(--paper); }
.faq-list { margin-top: 24px; border-top: 3px solid var(--ink); }
.faq-list details { border-bottom: 1px solid #C9CDDA; }
.faq-list summary { position: relative; padding: 17px 38px 17px 0; font-weight: 700; font-size: 15.5px; line-height: 1.65; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before,
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 2px; margin-top: -1px; background: var(--cobalt); transition: transform .3s var(--ease); }
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list details p { padding: 0 0 18px; font-size: 14.5px; line-height: 1.85; }
.faq-list details a { font-weight: 700; color: var(--cobalt-deep); text-underline-offset: 4px; }

/* ───── 11. 最後の案内: 裏表紙 ───── */
.final { padding: 0; background: var(--cobalt) url(../assets/bg/b2-cobalt.webp) center top / cover; color: #fff; }
.final-cover { position: relative; height: 500px; overflow: hidden; }
.final-mast { position: absolute; top: 30px; left: 0; right: 0; text-align: center; font-family: var(--mast); font-weight: 400; font-size: 92px; line-height: 1; letter-spacing: 0; }
.final-cover img { position: absolute; left: 50%; bottom: -4px; width: 76%; max-width: none; transform: translateX(-50%); }
.final-body { padding: 30px var(--gutter) 52px; background: var(--ink); }
.final-body .quote { margin-top: 20px; font-size: 17px; }
.final-body .cta { margin-top: 30px; background: #fff; color: var(--ink); }
.final-body .cta-note { color: var(--gray-on-ink); }
.final-body .sub-link { color: #fff; }
.final-pc { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule-on-ink); text-align: center; font-size: 12.5px; line-height: 1.8; color: var(--gray-on-ink); }
.final-pc a { display: block; font-weight: 700; font-size: 14px; color: #fff; text-underline-offset: 5px; }

/* ───── 12. 広告の表示 ───── */
.notice { padding: 36px var(--gutter) 30px; background: var(--mist); }
.notice h2 { font-weight: 900; font-size: 15px; line-height: 1.6; }
.notice-list { margin-top: 12px; border-top: 1px solid #B9BECC; }
.notice-list dt { padding-top: 12px; font-weight: 700; font-size: 12px; line-height: 1.6; }
.notice-list dd { padding-bottom: 12px; border-bottom: 1px solid #B9BECC; font-size: 12.5px; line-height: 1.8; overflow-wrap: anywhere; }
.notice-list .is-pending { color: var(--gray); }
.foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 22px; font-size: 12px; }
.foot a { font-weight: 700; text-underline-offset: 4px; }

/* 画面下の固定ボタン */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: center;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(246, 247, 250, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--mist);
  transition: transform .45s var(--ease), visibility .45s;
}
.sticky .cta { width: 100%; max-width: 406px; padding: 14px 12px; font-size: 15px; }
.js .sticky { transform: translateY(110%); visibility: hidden; }
.js .sticky.is-on { transform: none; visibility: visible; }

/* ───── 動き（動きを減らす設定では、すべて最初から見える） ───── */
@media (prefers-reduced-motion: no-preference) {
  .js .mast span { animation: letter .9s var(--ease) both; animation-delay: calc(var(--i) * 55ms); }
  .js .aya-wrap img { animation: rise 1.1s .25s var(--ease) both; }
  .js .cover-head { animation: wipe .8s .7s var(--ease) both; }
  .js .strap { animation: fade .8s 1s both; }

  .js .issue { opacity: 0; transform: rotateX(22deg) translateY(36px) scale(.96); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--col, 0) * 110ms); }
  .js .issue.is-in { opacity: 1; transform: none; }
  .js .issue.is-in::after { animation: sheen 1.1s var(--ease) both; animation-delay: calc(.35s + var(--col, 0) * 110ms); }

  .js .acro li { opacity: 0; transform: translateX(-28px); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 70ms); }
  .js .acro.is-in li { opacity: 1; transform: none; }

  .js .now-close span { background-size: 0% 100%; background-image: linear-gradient(var(--cobalt), var(--cobalt)); background-repeat: no-repeat; background-color: transparent; transition: background-size .9s var(--ease); }
  .js .now-close.is-in span { background-size: 100% 100%; }

  .js .ring { opacity: 0; }
  .js .ring-stage.is-live .ring { opacity: 1; }

  @keyframes letter { from { opacity: 0; transform: translateY(60%) rotate(6deg); } to { opacity: 1; transform: none; } }
  @keyframes rise { from { opacity: 0; transform: translateY(26px) scale(1.03); } to { opacity: 1; transform: none; } }
  @keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes sheen { from { transform: translateX(-70%); } to { transform: translateX(70%); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vision { transform: none; filter: none; }
  .sticky { transition: none; }
}
