/* レイアウト・部品の見た目。フォント・主な配色・余白は settings.css で変更します。 */

/* ===== 01 基本設定：全体のリセットと文字 ===== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(27, 119, 136, 0.2), rgba(255, 217, 229, 0.55), rgba(22, 109, 82, 0.22)),
    radial-gradient(circle at 50% 0%, rgba(98, 230, 255, 0.18), transparent 32%),
    #fff3f6;
  color: var(--ink);
  font-family: var(--font-family);
  font-size: var(--font-base-size);
  font-feature-settings: "palt";
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

/* ===== 02 ページの枠：横幅と外側の影 ===== */

.lp-shell {
  width: min(100%, var(--lp-width));
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(116, 72, 43, 0.14), 0 30px 90px rgba(67, 36, 48, 0.22);
}

/* ===== 03 ファーストビュー：画像と透明リンク ===== */

.hero {
  position: relative;
  overflow: hidden;
}

.hero--image {
  background: #fff7eb;
}

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

.hero__hotspot {
  position: absolute;
  z-index: 4;
  right: 9%;
  bottom: 3.3%;
  width: 82%;
  height: 6.3%;
  border-radius: 999px;
  cursor: pointer;
}

/* ===== 04 共通部品：フォーカス・読み上げ用テキスト・見出し ===== */

.hero__hotspot:focus-visible,
.cta-button:focus-visible,
.sticky-cta:focus-visible,
.modal__close:focus-visible {
  outline: 4px solid rgba(65, 173, 87, 0.8);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: calc(var(--font-size-12) * var(--font-scale));
  font-weight: var(--font-weight-label);
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro,
.manga-story,
.final-cta,
/* ===== 08 よくある質問 ===== */

.faq {
  padding: var(--section-space-y) var(--section-space-x);
}

.intro {
  padding-top: 34px;
  padding-bottom: 28px;
  background: linear-gradient(180deg, #fff8ed, #fffdf8);
}

.intro h2,
.final-cta h2,
.faq h2 {
  margin: 0;
  font-size: calc(var(--font-size-30) * var(--font-scale));
  font-weight: var(--font-weight-heading);
  line-height: 1.28;
  letter-spacing: 0;
}

.intro p:not(.eyebrow),
.final-cta p,
.faq p {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: calc(var(--font-size-15) * var(--font-scale));
  font-weight: var(--font-weight-body);
  line-height: 1.9;
}

/* ===== 05 漫画：一覧・カード・説明文 ===== */

.manga-story {
  padding: 14px 14px 44px;
  background:
    linear-gradient(180deg, rgba(255, 231, 171, 0.48), rgba(255, 255, 255, 0)),
    #fffdf8;
}

.manga-list {
  display: grid;
  gap: var(--manga-gap);
  margin-top: 0;
}

.manga-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(212, 170, 103, 0.46);
  border-radius: var(--manga-radius);
  box-shadow: 0 16px 36px rgba(83, 49, 29, 0.16);
}

.manga-card img {
  display: block;
  width: 100%;
  height: auto;
}

.manga-card__note {
  margin: 0;
  padding: 20px 18px 22px;
  color: rgba(45, 32, 27, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 233, 0.98)),
    #fffaf2;
  border-top: 1px solid rgba(212, 170, 103, 0.3);
  font-size: calc(var(--font-size-15) * var(--font-scale));
  font-weight: var(--font-weight-body);
  line-height: 2;
}

/* ===== 06 最後の案内セクション ===== */

.final-cta {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(18, 28, 34, 0.42)),
    linear-gradient(120deg, rgba(98, 230, 255, 0.16) 1px, transparent 1px),
    linear-gradient(145deg, #523f2d, #183941 58%, #5d2a42);
  background-size: auto, 32px 32px, auto;
}

.final-cta .eyebrow {
  color: #ffe184;
}

.final-cta p {
  color: rgba(255, 250, 240, 0.86);
}

.final-cta .cta-button {
  margin-top: 24px;
}

/* ===== 07 共通ボタン：通常ボタンと固定ボタン ===== */

.cta-button,
.sticky-cta {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.cta-button::after,
.sticky-cta::after {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: inherit;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  content: ">";
}

.cta-button span,
.sticky-cta span {
  display: block;
  font-size: calc(var(--font-size-20) * var(--font-scale));
  font-weight: var(--font-weight-heading);
  line-height: 1.15;
}

.cta-button small,
.sticky-cta small {
  display: block;
  margin-top: 4px;
  font-size: calc(var(--font-size-11) * var(--font-scale));
  font-weight: var(--font-weight-label);
  line-height: 1.2;
}

.cta-button--primary,
.sticky-cta {
  color: #fff;
  background: linear-gradient(180deg, var(--button-top) 0%, var(--button-middle) 58%, var(--button-bottom) 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    0 12px 0 var(--button-shadow),
    0 24px 42px rgba(175, 28, 79, 0.36);
}

.cta-button--primary::after,
.sticky-cta::after {
  color: var(--button-arrow);
}

.cta-button:hover,
.sticky-cta:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
}

.faq {
  padding-bottom: 118px;
  background: var(--paper);
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

details {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(76, 48, 30, 0.08);
}

summary {
  cursor: pointer;
  padding: 18px;
  color: var(--deep);
  font-size: calc(var(--font-size-15) * var(--font-scale));
  font-weight: var(--font-weight-heading);
  line-height: 1.6;
}

details p {
  margin: 0;
  padding: 0 18px 18px;
}

/* ===== 09 画面下の固定ボタン ===== */

.sticky-cta {
  position: fixed;
  z-index: 20;
  right: max(var(--sticky-inset), calc((100vw - var(--lp-width)) / 2 + var(--sticky-inset)));
  bottom: 16px;
  width: min(calc(100vw - var(--sticky-inset) * 2), calc(var(--lp-width) - var(--sticky-inset) * 2));
}

/* ===== 10 案内モーダル：リンク先 #atr-link で開く ===== */

.modal-backdrop {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(24, 15, 16, 0.72);
}

.modal-backdrop:target {
  display: grid;
}

.modal {
  position: relative;
  width: min(100%, 390px);
  padding: 28px;
  background: var(--paper);
  border: 1px solid rgba(255, 226, 151, 0.76);
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.modal h2 {
  margin: 0;
  font-size: calc(var(--font-size-26) * var(--font-scale));
  font-weight: var(--font-weight-heading);
  line-height: 1.25;
}

.modal p:not(.eyebrow) {
  margin: 16px 0 22px;
  color: #5d504a;
  font-weight: var(--font-weight-body);
  line-height: 1.8;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: #251716;
  border-radius: 999px;
  font-size: calc(var(--font-size-26) * var(--font-scale));
  line-height: 1;
  text-decoration: none;
}

/* ===== 11 小さいスマホ向けの調整 ===== */

@media (max-width: 360px) {
  .intro,
  .manga-story,
  .final-cta,
  .faq {
    padding-right: 18px;
    padding-left: 18px;
  }

  .cta-button span,
  .sticky-cta span {
    font-size: calc(var(--font-size-18) * var(--font-scale));
  }
}
