@charset "UTF-8";

/* ============================================================
   柴ガチャ LP — 共通スタイル
   色と丸ゴシックはアプリ本体（Theme.swift）に合わせている。
   ============================================================ */

:root {
  /* Palette.swift と同じ値 */
  --cream: #fff8ee;
  --cream-deep: #fde9ce;
  --peach: #ffd9bc;
  --ink: #5b4132;
  --ink-soft: #9c8574;
  --shiba: #e79a4f;
  --shiba-deep: #c97b36;
  --card: #ffffff;
  --sky: #bfe3f2;
  --leaf: #a9d8a0;

  --line: #f0e0cc;
  --line-strong: #e4cdb0;

  /* Fortune.swift の accent / soft */
  --daikichi: #efaf1f;   --daikichi-soft: #fff3d4;
  --chukichi: #f4826e;   --chukichi-soft: #ffebe4;
  --shokichi: #ee93b8;   --shokichi-soft: #fdebf2;
  --kichi:    #82c05f;   --kichi-soft:    #edf7e6;
  --suekichi: #63afda;   --suekichi-soft: #e7f3fb;
  --kyo:      #9b8ecb;   --kyo-soft:      #f0edfa;
  --daikyo:   #7e8b99;   --daikyo-soft:   #eef1f4;

  /* Rarity.swift の accent / soft */
  --common: #a2907f;     --common-soft: #f1ebe4;
  --rare: #5b9bd5;       --rare-soft: #e6f1fa;
  --ultra: #9b72cf;      --ultra-soft: #f1eafa;
  --legendary: #e0a017;  --legendary-soft: #fff3d2;

  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 10px 28px rgba(201, 123, 54, 0.14);
  --shadow-lift: 0 18px 44px rgba(201, 123, 54, 0.2);
  --measure: 1120px;

  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN W4",
    "Hiragino Sans", "Yu Gothic Medium", "Noto Sans JP", system-ui, sans-serif;

  color-scheme: light;
}

/* ---------- reset ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--ink);
  background-color: var(--cream);
  /* 肉球のうっすらした敷きつめ。アプリの PawBackground と同じ役目。 */
  background-image:
    radial-gradient(1200px 520px at 50% -240px, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='%23e79a4f' fill-opacity='0.055'%3E%3Cellipse cx='30' cy='34' rx='9' ry='7.5'/%3E%3Cellipse cx='19' cy='22' rx='4' ry='5'/%3E%3Cellipse cx='28' cy='18' rx='4' ry='5.2'/%3E%3Cellipse cx='38' cy='21' rx='3.8' ry='4.8'/%3E%3Cellipse cx='78' cy='80' rx='7' ry='5.8'/%3E%3Cellipse cx='69' cy='70' rx='3.1' ry='3.9'/%3E%3Cellipse cx='76' cy='67' rx='3.1' ry='4'/%3E%3Cellipse cx='84' cy='69' rx='3' ry='3.7'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, #fffbf3 0%, #ffecd8 100%);
  background-attachment: scroll, scroll, fixed;
  line-height: 1.85;
  letter-spacing: 0.02em;
  overflow-wrap: break-word;
  line-break: strict;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--shiba-deep); text-decoration-thickness: 0.08em; text-underline-offset: 0.22em; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--shiba-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4 {
  line-height: 1.45;
  letter-spacing: 0.01em;
  margin: 0;
  font-weight: 900;
  /* 日本語の見出しを文節で折り返す（対応ブラウザのみ。非対応でも従来どおり） */
  word-break: auto-phrase;
}

/* ---------- layout ---------- */

.wrap {
  width: min(100% - 32px, var(--measure));
  margin-inline: auto;
}

.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }

.skip {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 100;
  background: var(--card);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 700;
  transition: top 0.18s ease;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 250, 243, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  padding-block: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 3px 8px rgba(201, 123, 54, 0.22); }

.site-nav {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--cream-deep); }
.site-nav a[aria-current="page"] { background: var(--shiba); color: #fff; }

@media (max-width: 860px) {
  .site-nav { margin-inline-start: 0; width: 100%; order: 3; padding-bottom: 4px; }
  .site-header__inner { flex-wrap: wrap; row-gap: 4px; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
.btn--primary {
  background: linear-gradient(180deg, var(--shiba) 0%, var(--shiba-deep) 100%);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); color: #fff; }
.btn--ghost {
  background: var(--card);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line-strong);
}
.btn--ghost:hover { background: var(--cream-deep); color: var(--ink); transform: translateY(-2px); }

/* リリース前の「近日公開」表示。押せないことが見てわかる形にしておく。 */
.btn--soon {
  background: var(--cream-deep);
  color: var(--shiba-deep);
  box-shadow: inset 0 0 0 2px var(--line-strong);
  cursor: default;
}

/* ---------- hero ---------- */

.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  color: var(--shiba-deep);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 700;
  font-size: 0.86rem;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.42;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--shiba-deep); white-space: nowrap; }

.hero__lead {
  font-size: clamp(1rem, 2.4vw, 1.16rem);
  color: #6f5645;
  margin: 0 0 26px;
  max-width: 34em;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero__note { font-size: 0.85rem; color: var(--ink-soft); margin: 14px 0 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.chips li {
  background: var(--card);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1.5px var(--line);
}

/* ガチャ機のイラスト。カプセルは取り出し口に、柴犬は左右に置く。 */
.hero__art { position: relative; display: grid; place-items: center; min-height: 320px; }

.hero__machine-wrap {
  position: relative;
  width: min(100%, 320px);
  animation: float 6s ease-in-out infinite;
}
.hero__machine {
  width: 100%;
  filter: drop-shadow(0 22px 34px rgba(201, 123, 54, 0.24));
}
/* 取り出し口（元画像の 78〜91% あたり）にカプセルが出ている状態 */
.hero__capsule {
  position: absolute;
  width: 19%;
  left: 48%;
  bottom: 12%;
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 6px rgba(91, 65, 50, 0.35));
}
.hero__shiba {
  position: absolute;
  bottom: 0;
  width: clamp(84px, 15vw, 116px);
  filter: drop-shadow(0 10px 16px rgba(201, 123, 54, 0.24));
}
.hero__shiba--left { left: 0; animation: float 5.2s ease-in-out infinite 0.3s; }
.hero__shiba--right { right: 0; animation: float 4.6s ease-in-out infinite 0.9s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 560px) {
  /* 幅がせまいときは、手で入れた改行をやめて自動の折り返しにまかせる */
  .hero h1 br { display: none; }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; min-height: 0; padding-bottom: 8px; }
  .hero__machine-wrap { width: min(58%, 230px); }
  .hero__shiba { width: clamp(76px, 20vw, 104px); }
}

/* ---------- headings ---------- */

.head { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.head__label {
  display: inline-block;
  color: var(--shiba-deep);
  font-weight: 900;
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}
.head h2 { font-size: clamp(1.5rem, 4.2vw, 2.15rem); }
.head p { color: #6f5645; margin: 12px auto 0; max-width: 44em; }

/* ---------- cards ---------- */

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow);
}

.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 860px) {
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
}

.feature h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature p { margin: 0; color: #6f5645; font-size: 0.96rem; }
.feature__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--cream-deep);
  font-size: 1.5rem;
  margin-bottom: 14px;
}

/* ---------- steps ---------- */

.steps { counter-reset: step; }
.step { position: relative; padding-top: 30px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -14px;
  left: clamp(20px, 3vw, 30px);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--shiba) 0%, var(--shiba-deep) 100%);
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
}

/* ---------- screenshots ---------- */

.shots {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 4px 22px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.shots figure {
  margin: 0;
  flex: 0 0 auto;
  width: min(74vw, 272px);
  scroll-snap-align: center;
}
.shots img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow);
  background: var(--cream-deep);
}
.shots figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  color: #6f5645;
}

/* ---------- ずかん ---------- */

.zukan-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 26px;
}
.zukan-filter a {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
.zukan-filter a:hover { background: var(--cream-deep); }

.fortune-block { margin-bottom: 34px; }
.fortune-block__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--line-strong);
}
.fortune-block__name { font-size: 1.35rem; font-weight: 900; }
.fortune-block__reading { font-size: 0.8rem; color: var(--ink-soft); font-weight: 700; }
.fortune-block__rate {
  margin-inline-start: auto;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.zukan {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.shiba-card {
  background: var(--card);
  border-radius: 22px;
  padding: 14px 12px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.shiba-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.shiba-card img {
  width: 100%;
  max-width: 128px;
  margin: 0 auto 8px;
  aspect-ratio: 1;
  object-fit: contain;
}
.shiba-card__name { font-weight: 900; font-size: 1.02rem; }
.shiba-card__title { font-size: 0.76rem; color: var(--ink-soft); line-height: 1.6; margin-top: 2px; }
.shiba-card__profile {
  font-size: 0.78rem;
  color: #6f5645;
  line-height: 1.75;
  margin: 10px 0 0;
  text-align: left;
}
.shiba-card__fav {
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.74rem;
  color: var(--ink-soft);
}

.tag {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 6px;
}
.tag--common { background: var(--common-soft); color: var(--common); }
.tag--rare { background: var(--rare-soft); color: var(--rare); }
.tag--ultraRare { background: var(--ultra-soft); color: var(--ultra); }
.tag--legendary { background: var(--legendary-soft); color: #a8760c; }

/* ---------- 運勢テーブル ---------- */

.table-scroll { overflow-x: auto; }

table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.94rem;
  min-width: 460px;
}
table.data th,
table.data td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data thead th {
  background: var(--cream-deep);
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}
table.data tbody tr:last-child td { border-bottom: none; }

.bar {
  display: inline-block;
  vertical-align: middle;
  width: 120px;
  height: 10px;
  margin-inline-end: 10px;
  border-radius: 999px;
  background: var(--cream-deep);
  overflow: hidden;
}
.bar > span { display: block; height: 100%; border-radius: 999px; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 900;
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q";
  color: var(--shiba-deep);
  font-weight: 900;
  flex: 0 0 auto;
}
.faq details[open] summary { border-bottom: 1px dashed var(--line-strong); }
.faq .answer { padding: 16px 22px 20px; color: #6f5645; }
.faq .answer > :first-child { margin-top: 0; }
.faq .answer > :last-child { margin-bottom: 0; }

/* ---------- CTA ---------- */

.cta {
  text-align: center;
  background: linear-gradient(180deg, #fff6e8 0%, #ffe6cb 100%);
  border-radius: var(--radius);
  padding: clamp(32px, 6vw, 56px) clamp(20px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.cta h2 { font-size: clamp(1.4rem, 4vw, 2rem); margin-bottom: 12px; }
.cta p { color: #6f5645; margin: 0 auto 24px; max-width: 34em; }
.cta__row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 記事ページ（プライバシー / 規約 / サポート） ---------- */

.doc { padding: clamp(36px, 6vw, 64px) 0 clamp(48px, 7vw, 88px); }
.doc__inner { width: min(100% - 32px, 760px); margin-inline: auto; }

.doc h1 { font-size: clamp(1.7rem, 4.6vw, 2.3rem); margin-bottom: 14px; }
.doc__lead { color: #6f5645; margin: 0 0 8px; }
.doc__updated { font-size: 0.84rem; color: var(--ink-soft); margin: 0 0 28px; }

.doc h2 {
  font-size: 1.25rem;
  margin: 44px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px dashed var(--line-strong);
}
.doc h3 { font-size: 1.05rem; margin: 26px 0 8px; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-inline-start: 1.4em; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--shiba); }

.summary-box {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 8px;
}
.summary-box h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  border: none;
  padding: 0;
  color: var(--shiba-deep);
}
.summary-box ul { margin: 0; padding-inline-start: 1.2em; }
.summary-box li { margin-bottom: 8px; }
.summary-box li:last-child { margin-bottom: 0; }

.callout {
  background: var(--card);
  border-inline-start: 5px solid var(--shiba);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 0 0 20px;
  box-shadow: 0 4px 14px rgba(201, 123, 54, 0.1);
}
.callout > :last-child { margin-bottom: 0; }

.contact-card {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}
.contact-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; }
.contact-card dt { font-weight: 900; color: var(--ink-soft); font-size: 0.9rem; white-space: nowrap; }
.contact-card dd { margin: 0; }

/* ---------- footer ---------- */

.site-footer {
  background: #fff4e5;
  border-top: 1px solid var(--line);
  padding: clamp(36px, 5vw, 56px) 0 28px;
  margin-top: clamp(40px, 6vw, 72px);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.site-footer h2 { font-size: 0.9rem; letter-spacing: 0.1em; color: var(--ink-soft); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { font-weight: 700; font-size: 0.95rem; }
.site-footer__about { font-size: 0.92rem; color: #6f5645; margin: 8px 0 0; max-width: 28em; }
.site-footer__legal {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

@media (max-width: 720px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- 小物 ---------- */

.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.88rem; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
