/* AoMau の宣伝画像・アプリと同じ配色（砂浜色の地・ラグーンのグラデーション・黄色の強調） */
:root {
  --sand: #fbf4e6;
  --surface: #ffffff;
  --text: #1c2b33;
  --text-muted: #5b6b74;
  --accent: #2694b0;
  --accent-deep: #005883;
  --green: #46a06e;
  --highlight: #ffd84d;
  --border: rgba(28, 43, 51, 0.1);
  --shadow: 0 6px 24px rgba(28, 43, 51, 0.1);
  --store-bg: #000000;
  --store-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sand: #0f1d24;
    --surface: #17303a;
    --text: #eef4f6;
    --text-muted: #a9bcc4;
    --accent: #5cc3dc;
    --accent-deep: #8fd9ea;
    --green: #6cc493;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    --store-bg: #ffffff;
    --store-text: #000000;
  }
}

:root[data-theme="dark"] {
  --sand: #0f1d24;
  --surface: #17303a;
  --text: #eef4f6;
  --text-muted: #a9bcc4;
  --accent: #5cc3dc;
  --accent-deep: #8fd9ea;
  --green: #6cc493;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --store-bg: #ffffff;
  --store-text: #000000;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--text);
  font-family: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  overflow-x: hidden;
}

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

a { color: var(--accent-deep); }

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

.narrow { max-width: 760px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ヘッダー：浮いた半透明のバー */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  padding: 0 16px;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1008px;
  padding: 8px 8px 8px 12px;
  background: color-mix(in srgb, var(--sand) 72%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
  min-width: 0;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; }
.site-header nav { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.site-header nav a {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
}
.site-header nav a:hover { background: var(--border); }
.site-header nav a.nav-get { background: var(--store-bg); color: var(--store-text); margin-left: 4px; padding: 6px 16px; }
.site-header nav a.nav-get:hover { opacity: 0.85; }

/* 見出しの強調（宣伝画像と同じ黄色の下線） */
.mark {
  background: linear-gradient(transparent 58%, var(--highlight) 58%);
  color: inherit;
  padding: 0 2px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mark { background: linear-gradient(transparent 62%, rgba(255, 216, 77, 0.45) 62%); }
}
:root[data-theme="dark"] .mark { background: linear-gradient(transparent 62%, rgba(255, 216, 77, 0.45) 62%); }

/* ファーストビュー（うしろにアプリの色のにじみ） */
.hero { position: relative; padding: 64px 0 48px; isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  inset: -120px 0 0;
  z-index: -1;
  background:
    radial-gradient(38% 55% at 80% 35%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    radial-gradient(30% 45% at 95% 85%, color-mix(in srgb, var(--green) 26%, transparent), transparent 70%),
    radial-gradient(30% 40% at 5% 5%, color-mix(in srgb, var(--highlight) 22%, transparent), transparent 70%);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.app-id {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 6px 18px 6px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
}
.app-id img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}
.app-id .name { font-weight: 700; line-height: 1.4; }
.app-id .sub { font-size: 0.82rem; color: var(--text-muted); }

h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.3;
  font-weight: 900;
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}
.lead { font-size: 1.05rem; color: var(--text-muted); margin: 0 0 28px; }

.hero-shot img {
  max-width: 340px;
  margin: 0 auto;
  border-radius: 32px;
  box-shadow: 0 30px 60px -20px rgba(28, 43, 51, 0.35);
}

/* App Store ボタン */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.store-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--store-bg);
  color: var(--store-text);
  text-decoration: none;
  border-radius: 14px;
  padding: 11px 22px 11px 18px;
  line-height: 1.25;
  transition: transform 0.15s;
}
.store-button:hover { transform: translateY(-2px); }
.store-button svg { width: 26px; height: 26px; fill: currentColor; flex-shrink: 0; }
.store-button small { display: block; font-size: 0.7rem; opacity: 0.85; }
.store-button strong { display: block; font-size: 1.15rem; font-weight: 700; }
.cta-note { font-size: 0.85rem; color: var(--text-muted); }

/* パソコンで見ている人向けの QR コード（スマホでは出さない） */
.qr {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 8px 18px 8px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.5;
}
.qr img { width: 88px; height: 88px; border-radius: 10px; }
@media (hover: none), (max-width: 760px) { .qr { display: none; } }

/* 数字の帯 */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.facts li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 12px;
  text-align: center;
}
.facts strong {
  display: block;
  font-family: "Outfit", "Zen Kaku Gothic New", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent-deep);
  line-height: 1.3;
}
.facts span { font-size: 0.85rem; color: var(--text-muted); }

/* セクション */
section { padding: 72px 0; }
/* 色の帯は、画面いっぱいではなく角の丸い大きなカードにする */
.band {
  background: linear-gradient(150deg, var(--accent), var(--green));
  color: #ffffff;
  margin: 0 16px;
  border-radius: 36px;
  max-width: 1200px;
}
@media (min-width: 1232px) { .band { margin: 0 auto; } }
/* ダークモードでは明るい色の帯に白い文字が沈むので、帯を暗めにする */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .band { background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 42%, #0f1d24), color-mix(in srgb, var(--green) 42%, #0f1d24)); }
}
:root[data-theme="dark"] .band { background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 42%, #0f1d24), color-mix(in srgb, var(--green) 42%, #0f1d24)); }
.band a { color: #ffffff; }

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  font-weight: 900;
  line-height: 1.4;
  margin: 0 0 12px;
}
.section-lead { color: var(--text-muted); margin: 0 0 32px; }
.band .section-lead { color: rgba(255, 255, 255, 0.9); }

/* 悩み → 解決 */
.pains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pain {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  padding: 22px;
  backdrop-filter: blur(6px);
}
.pain .q { font-weight: 700; margin: 0 0 8px; font-size: 1.05rem; }
.pain .a { margin: 0; font-size: 0.95rem; opacity: 0.95; }

/* 機能：画面つきのカードを並べる（スマホでは横にスワイプ） */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
/* 宣伝画像の上の見出しは本文と重なるので、端末の部分だけを見せる */
.feature-shot {
  order: 2;
  margin-top: auto;
  padding: 0 28px;
  background: linear-gradient(transparent, color-mix(in srgb, var(--accent) 16%, transparent));
}
.feature-shot img {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  aspect-ratio: 660 / 760;
  object-fit: cover;
  object-position: 50% 100%;
  border-radius: 18px 18px 0 0;
}
.feature > div:not(.feature-shot) { padding: 24px 24px 20px; }
.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 999px;
  padding: 1px 12px;
  margin-bottom: 10px;
}
.feature h3 { font-size: 1.2rem; font-weight: 900; line-height: 1.45; margin: 0 0 10px; }
.feature p { margin: 0 0 8px; font-size: 0.95rem; }
.feature .note { font-size: 0.8rem; color: var(--text-muted); }
.swipe-hint { display: none; }

/* 料金 */
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.plan {
  background: var(--surface);
  border-radius: 22px;
  padding: 22px 20px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  position: relative;
  /* 帯（.band）の白文字を受け継がない */
  color: var(--text);
}
.plan.recommended { border-color: var(--highlight); }
.plan.recommended::before {
  content: "おすすめ";
  position: absolute;
  top: -12px;
  right: 18px;
  background: var(--highlight);
  color: #1c2b33;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 12px;
}
.plan h3 { font-size: 1rem; margin: 0 0 4px; }
.plan .price {
  font-family: "Outfit", "Zen Kaku Gothic New", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent-deep);
  margin: 0 0 8px;
}
.plan .price small { font-size: 0.85rem; font-weight: 400; color: var(--text-muted); }
.plan p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.plans-note { margin-top: 18px; font-size: 0.9rem; color: var(--text-muted); }

/* 開発者 */
.dev {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px 28px;
}
.dev h2 { font-size: 1.4rem; }
.dev p { margin: 0 0 10px; }

/* FAQ（開くと＋が×に回る） */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0 20px;
  margin-bottom: 10px;
}
summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-deep);
  font-family: "Outfit", sans-serif;
  font-size: 1.2rem;
  transition: rotate 0.2s;
}
details[open] summary::after { rotate: 45deg; }
details p { margin: 0 0 16px; }

/* 最後の CTA：色のカード */
.final { text-align: center; }
.final .wrap {
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), color-mix(in srgb, var(--green) 16%, var(--surface)));
  border: 1px solid var(--border);
  border-radius: 36px;
  padding: 48px 24px;
  width: calc(100% - 32px);
}
.final .final-icon { width: 80px; height: 80px; border-radius: 18px; margin: 0 auto 18px; box-shadow: var(--shadow); }
.final .cta { justify-content: center; }
.final .qr { margin-top: 20px; }

/* スマホ：スクロールすると画面の下に入手ボタンを出す */
.sticky-get {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 30;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 10px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.3);
  transform: translateY(140%);
  transition: transform 0.25s ease;
}
.sticky-get.show { transform: none; }
.sticky-get img { width: 40px; height: 40px; border-radius: 10px; }
.sticky-get .t { flex: 1; min-width: 0; line-height: 1.35; }
.sticky-get .t strong { display: block; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-get .t span { font-size: 0.75rem; color: var(--text-muted); }
.sticky-get a {
  background: var(--store-bg);
  color: var(--store-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 16px;
  border-radius: 12px;
  white-space: nowrap;
}

/* アプリ一覧（トップ） */
.apps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.app-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.app-card img { width: 72px; height: 72px; border-radius: 16px; margin-bottom: 14px; }
.app-card h3 { font-size: 1.15rem; margin: 0 0 6px; line-height: 1.45; }
.app-card p { margin: 0 0 16px; font-size: 0.95rem; color: var(--text-muted); flex: 1; }
.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* フッター */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding: 28px 0 40px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.site-footer a { color: var(--text-muted); margin-right: 16px; }
.site-footer p { margin: 8px 0 0; }

/* タブレット */
@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}

/* スマートフォン */
@media (max-width: 760px) {
  .hero { padding: 36px 0 32px; }
  h1 { font-size: 1.8rem; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-shot img { max-width: 250px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .pains, .apps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  section { padding: 52px 0; }
  .band { margin: 0 8px; border-radius: 28px; }
  .site-header nav a:not(.nav-get) { display: none; }
  .brand { font-size: 0.92rem; }
  /* 機能は横にスワイプ */
  .features {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -16px;
    padding: 4px 16px 12px;
    scrollbar-width: none;
  }
  .features::-webkit-scrollbar { display: none; }
  .feature { flex: 0 0 82%; scroll-snap-align: center; }
  .feature:hover { transform: none; }
  .swipe-hint { display: block; font-size: 0.8rem; color: var(--text-muted); margin: -20px 0 12px; }
  .sticky-get { display: flex; }
  .site-footer { padding-bottom: 96px; }
  .final .wrap { padding: 36px 20px; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature, .store-button, .sticky-get, summary::after { transition: none; }
}

/* 見出しを文節の途中で折り返さない */
.nw { display: inline-block; }


/* 記事ページ */
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin: 20px 0 0; }
.breadcrumb a { color: var(--text-muted); }
.article { padding: 24px 0 56px; }
.article h1 { font-size: clamp(1.6rem, 4.4vw, 2.3rem); margin-bottom: 12px; }
.article .meta { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 28px; }
.article h2 {
  font-size: clamp(1.3rem, 3.2vw, 1.6rem);
  margin: 44px 0 12px;
  padding-left: 12px;
  border-left: 5px solid var(--accent);
}
.article h3 { font-size: 1.1rem; margin: 28px 0 8px; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { margin: 0 0 16px; padding-left: 1.4em; }
.article li { margin-bottom: 6px; }
.summary-box, .app-box {
  background: var(--surface);
  border-radius: 18px;
  padding: 20px 22px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.summary-box p:first-child { font-weight: 700; margin-bottom: 8px; }
.summary-box ul { margin: 0; }
.app-box { border: 2px solid var(--accent); }
.app-box h3 { margin-top: 0; }
.data-table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 0.95rem; }
.data-table th, .data-table td { border-bottom: 1px solid var(--border); padding: 10px 8px; text-align: left; vertical-align: top; }
.data-table th { color: var(--text-muted); white-space: nowrap; width: 8em; }
.author-box { display: flex; gap: 14px; align-items: flex-start; }
.author-box p { margin: 0; font-size: 0.92rem; }

/* 記事一覧 */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { background: var(--surface); border-radius: 16px; padding: 18px 20px; margin-bottom: 12px; box-shadow: var(--shadow); }
.post-list a { font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.post-list p { margin: 6px 0 0; font-size: 0.9rem; color: var(--text-muted); }

/* 料金が2つ・3つのとき */
.plans.plans-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
.plans.plans-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .plans.plans-2, .plans.plans-3 { grid-template-columns: 1fr; }
}
