/* piyolune.com 共通スタイル
   コンセプト: 昼(ページ上部)から夜(フッター)へ、時間が流れるサイト */

:root {
  --day: #fdfcf7;          /* 昼の空: あたたかい白 */
  --dawn: #f3effa;         /* 夕暮れの薄紫 */
  --night: #2c2a4a;        /* 夜の藍 */
  --ink: #3a3654;          /* 本文の墨色(藍寄り) */
  --moon: #e9b44c;         /* 月の金色(アクセント) */
  --line: #dcd6ea;         /* 罫線 */
  --star: #f7e9c4;         /* 星あかり(夜パート内の文字) */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: linear-gradient(180deg, var(--day) 0%, var(--day) 55%, var(--dawn) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: min(680px, 92%);
  margin: 0 auto;
}

/* ---------- ヘッダー ---------- */
header {
  padding: 2rem 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.brand svg { flex: none; }

.brand .name {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}

/* ---------- メイン ---------- */
main {
  flex: 1;
  padding: 3.5rem 0 5rem;
}

h1 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.tagline {
  font-size: 1.05rem;
  color: #6b6488;
  margin-bottom: 3rem;
}

h2 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  margin: 3rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

p + p { margin-top: 1em; }

a { color: #5a4fa0; }
a:focus-visible {
  outline: 2px solid var(--moon);
  outline-offset: 2px;
  border-radius: 2px;
}

/* 月の満ち欠けの区切り */
.moon-divider {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin: 3.5rem 0;
  color: var(--moon);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  user-select: none;
}

/* ---------- カード(アプリ紹介など) ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  margin-top: 1rem;
}

.card .status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--night);
  background: var(--star);
  border-radius: 999px;
  padding: 0.15rem 0.8rem;
  margin-bottom: 0.6rem;
}

/* ---------- 定義テーブル(特商法・会社概要) ---------- */
table.info {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

table.info th,
table.info td {
  text-align: left;
  vertical-align: top;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}

table.info tr:last-child th,
table.info tr:last-child td { border-bottom: none; }

table.info th {
  width: 32%;
  background: #faf8f1;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

@media (max-width: 520px) {
  table.info th, table.info td { display: block; width: 100%; }
  table.info th { border-bottom: none; padding-bottom: 0.2rem; }
  table.info td { padding-top: 0.2rem; }
}

/* 法務ページの箇条書き */
main ul, main ol {
  padding-left: 1.4em;
  margin: 0.6em 0 1em;
}
main li { margin: 0.35em 0; }

.updated {
  font-size: 0.85rem;
  color: #8a84a3;
  margin-top: 3rem;
}

/* ---------- フッター(夜) ---------- */
footer {
  background:
    radial-gradient(1.5px 1.5px at 18% 30%, var(--star) 50%, transparent 51%),
    radial-gradient(1px 1px at 42% 62%, var(--star) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 67% 25%, var(--star) 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 55%, var(--star) 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 80%, var(--star) 50%, transparent 51%),
    var(--night);
  color: var(--star);
  padding: 3rem 0 2.5rem;
  font-size: 0.9rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  margin-bottom: 1.2rem;
}

footer a { color: var(--star); text-decoration: none; }
footer a:hover { text-decoration: underline; }

footer .copyright {
  opacity: 0.75;
  letter-spacing: 0.04em;
}
