/*
  aquary.kurumiapp.com の共通の見た目（トップ・招待・見つからないページ）。
  色はアプリ（AquaryTheme）に合わせる：背景 #000327・カード #1f2141・水色 #25d0d9。
  外のフォントや CSS は読まない（このファイルと各ページだけで表示できる）。
*/
:root {
  --bg: #000327;
  --bg-2: #04103f;
  --card: #1f2141;
  --card-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --sub: rgba(255, 255, 255, 0.68);
  --faint: rgba(255, 255, 255, 0.45);
  --accent: #25d0d9;
  --accent-ink: #00122e;
  --radius: 20px;
  --max: 1120px;
  --gutter: 20px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

/* アプリの背景（WaterGlow）と同じ、上のほうに差す水の光 */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 18% 0%, rgba(37, 208, 217, 0.22), transparent 70%),
    radial-gradient(55% 50% at 85% 8%, rgba(46, 104, 255, 0.24), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 85%);
}

a { color: var(--accent); }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- ヘッダー ---- */
.site-header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(0, 3, 39, 0.55); border-bottom: 1px solid transparent; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800;
  font-size: 20px; letter-spacing: 0.01em; }
.brand img { width: 34px; height: 34px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a.nav-link { color: var(--sub); text-decoration: none; font-size: 15px; }
.site-nav a.nav-link:hover { color: var(--text); }
@media (max-width: 720px) { .site-nav a.nav-link { display: none; } }

/* ---- ボタン ---- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px;
  border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; line-height: 1.3; text-align: center;
  transition: transform 0.15s ease, background-color 0.15s ease; }
.button:active { transform: scale(0.98); }
.button.primary { background: var(--accent); color: var(--accent-ink); }
.button.primary:hover { background: #4fdde4; }
.button.secondary { border: 1px solid var(--line); color: var(--text); background: var(--card-2); }
.button.secondary:hover { background: rgba(255, 255, 255, 0.1); }
.button.small { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.button.block { display: flex; width: 100%; }
.button svg { width: 18px; height: 18px; flex: none; }

/* ---- 見出しと文 ---- */
.eyebrow { display: inline-block; color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; margin: 0 0 12px; }
h1, h2, h3 { line-height: 1.4; margin: 0; letter-spacing: 0.01em; }
/* 見出しは、文字の途中ではなく <wbr> を置いた意味の切れ目で折り返す（入りきらないときだけ途中でも折る） */
h1, h2 { word-break: keep-all; overflow-wrap: anywhere; }
.section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 0 40px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); }
.section-head p { color: var(--sub); margin: 12px 0 0; }
.section-head .eyebrow { color: var(--accent); margin: 0 0 12px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
@media (max-width: 720px) { .section { padding: 64px 0; } .section-head { margin-bottom: 28px; } }

/* ---- トップの最初の画面 ---- */
.hero { padding: 40px 0 24px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 32px; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.25; }
.hero .lead { color: var(--sub); font-size: clamp(16px, 2vw, 18px); margin: 20px 0 32px; max-width: 30em; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero .note { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--faint); font-size: 14px; margin: 16px 0 0; padding: 0; list-style: none; }
.hero-art { position: relative; justify-self: center; width: min(100%, 520px); }
/* 切り出した画像の四角いふちが見えないよう、4 辺をぼかして背景になじませる */
.hero-art img { width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 22%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 14%, #000 78%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 22%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 14%, #000 78%, transparent);
  mask-composite: intersect; }
@media (max-width: 860px) {
  .hero { padding-top: 24px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 8px; }
  .hero .actions .button { flex: 1 1 200px; }
  .hero-art { width: min(100%, 420px); }
}

/* ---- スクリーンショット（スマホでは横にめくる） ---- */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.shots li { margin: 0; }
.shots img { width: 100%; height: auto; border-radius: 22px; background: var(--card); aspect-ratio: 600 / 1304; }
@media (max-width: 860px) {
  .shots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto;
    scroll-snap-type: x mandatory; padding: 0 var(--gutter) 12px; margin: 0 calc(-1 * var(--gutter));
    scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .shots::-webkit-scrollbar { display: none; }
  .shots li { scroll-snap-align: start; }
}

/* ---- できること ---- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(37, 208, 217, 0.14); color: var(--accent); margin: 0 0 18px; }
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 20px; margin: 0 0 8px; }
.feature p { color: var(--sub); margin: 0; }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; } .feature { padding: 22px; } }

/* ---- 料金 ---- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); }
.plan.featured { border-color: rgba(37, 208, 217, 0.6); box-shadow: 0 0 0 1px rgba(37, 208, 217, 0.25), 0 20px 60px rgba(37, 208, 217, 0.12); }
.plan .badge { position: absolute; top: -12px; left: 24px; padding: 2px 12px; border-radius: 999px; background: var(--accent);
  color: var(--accent-ink); font-size: 12px; font-weight: 700; }
.plan h3 { font-size: 18px; }
.plan .price { font-size: 32px; font-weight: 800; margin: 10px 0 2px; line-height: 1.2; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--sub); margin-left: 2px; }
.plan .yearly { color: var(--faint); font-size: 14px; margin: 0 0 18px; min-height: 1.8em; }
.plan ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.plan li { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--sub); font-size: 15px; }
.plan li strong { color: var(--text); font-weight: 600; }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--accent); }
.plan li.off svg { color: var(--faint); }
.plan-notes { color: var(--faint); font-size: 14px; margin: 24px 0 0; padding-left: 1.2em; }
.plan-notes li { margin: 4px 0; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; gap: 20px; } .plan .yearly.spacer { display: none; } .plan .price + .yearly.spacer + ul { margin-top: 18px; } }

/* ---- よくある質問 ---- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--sub); border-bottom: 2px solid var(--sub); transform: rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--sub); margin: 0 0 20px; }

/* ---- 最後のお誘い ---- */
.cta { text-align: center; padding: 56px 24px; border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(70% 90% at 50% 0%, rgba(37, 208, 217, 0.18), transparent 70%), var(--card); }
.cta img { width: 72px; height: 72px; margin: 0 auto 18px; }
.cta h2 { font-size: clamp(24px, 4vw, 32px); }
.cta p { color: var(--sub); margin: 10px 0 28px; word-break: keep-all; overflow-wrap: anywhere; }

/* ---- フッター ---- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--faint); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--sub); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

/* ---- 招待・見つからないページ（真ん中に 1 枚のカード） ---- */
.single { min-height: calc(100vh - 64px - 120px); display: grid; place-items: center; padding: 32px 0 56px; }
.panel { width: 100%; max-width: 440px; margin: 0 auto; text-align: center; }
.panel .app-icon { width: 88px; height: 88px; margin: 0 auto 22px; filter: drop-shadow(0 12px 30px rgba(37, 208, 217, 0.25)); }
.panel h1 { font-size: clamp(24px, 6vw, 28px); }
.panel .lead { color: var(--sub); margin: 12px 0 28px; }
.panel .card { padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.panel .card .button + .button { margin-top: 12px; }
.steps { text-align: left; color: var(--sub); margin: 28px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 0 0 14px 40px; counter-increment: step; font-size: 15px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--card-2); border: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 700;
  display: grid; place-items: center; line-height: 1; }
.hidden, [hidden] { display: none !important; }

/* ---- 文章のページ（プライバシーポリシー・サポート） ---- */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 0 72px; }
.doc h1 { font-size: clamp(26px, 5vw, 34px); margin: 0 0 16px; }
.doc h2 { font-size: 20px; margin: 44px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 17px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--sub); }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { padding-left: 1.4em; margin: 0 0 14px; }
.doc li { margin: 0 0 6px; }
.doc strong { color: var(--text); }
.doc .lead { color: var(--text); }
.doc .meta { color: var(--faint); font-size: 14px; }
.doc .address { color: var(--text); }
.lang-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); margin: 0 0 20px; }
.lang-switch button { font: inherit; font-size: 14px; color: var(--sub); border: 0; border-radius: 999px; padding: 4px 16px; background: transparent; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.doc .table-wrap { overflow-x: auto; margin: 8px 0 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--sub); }
.doc th { color: var(--text); white-space: nowrap; font-size: 14px; }
.doc tr:last-child td { border-bottom: 0; }
.doc td:first-child { color: var(--text); font-weight: 600; }
/* スマホでは、送り先ごとに縦に並べる */
@media (max-width: 600px) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { display: none; }
  .doc tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .doc tr:last-child { border-bottom: 0; }
  .doc td { border: 0; padding: 2px 0; }
  .doc td::before { content: attr(data-label); display: block; color: var(--faint); font-size: 13px; font-weight: 400; }
  .doc td:first-child::before { content: none; }
}
.doc .faq-list { list-style: none; padding: 0; margin: 0; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.doc .faq-list li { padding: 16px 20px; border-bottom: 1px solid var(--line); margin: 0; }
.doc .faq-list li:last-child { border-bottom: 0; }
.doc .faq-list strong { display: block; margin-bottom: 4px; }
.doc .contact { padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.doc .contact p:last-child { margin: 0; }
