/*
 * Byebird の紹介ページ。
 * 空色の最初の画面と、下から顔を出す鳥だけを目立たせて、ほかは静かにする。
 * 文字は丸ゴシックの M PLUS Rounded 1c（Google Fonts。鳥の丸い形に合わせる）。
 */
:root {
  --sky: #d6eeff;
  --ink: #1e3550;
  --ink-sub: #4f6680;
  --paper: #ffffff;
  --rule: #dbe5ee;
  --link: #1f63ad;
  --beak: #ffbe3d;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sky: #12304d;
    --ink: #eaf4fd;
    --ink-sub: #a9bfd4;
    --paper: #0d1b2a;
    --rule: #22384f;
    --link: #8cc6f7;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", ui-rounded, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  font-feature-settings: "palt" 1;
}
:lang(en) { line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.2em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--beak); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.3; word-break: auto-phrase; }
p, li, td { word-break: auto-phrase; }
.nw { white-space: nowrap; display: inline-block; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* 空（最初の画面） */
.sky { background: var(--sky); position: relative; overflow: hidden; }
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.lang { font-size: 15px; color: var(--ink); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 210px; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -0.01em; margin: 0 0 22px; }
.hero .lead { font-size: 19px; color: var(--ink-sub); margin: 0 0 30px; max-width: 24em; }
.badge { display: inline-block; }
.badge img { height: 52px; width: auto; }
.free { font-size: 15px; color: var(--ink-sub); margin: 14px 0 0; }

/* 通知（アプリの実際の通知と同じ文言） */
.banner-area { width: 100%; }
@media (prefers-color-scheme: dark) {
  .banner { background: rgba(44, 52, 64, 0.86); color: #f2f2f7; box-shadow: none; }
  .banner time { color: #a1a1a6; }
}
:lang(en) .hero h1 { line-height: 1.12; }
.banner {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 4px 12px; align-items: center;
  background: rgba(255, 255, 255, 0.86); color: #1c1c1e;
  border-radius: 24px; padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(30, 53, 80, 0.14);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  font-family: -apple-system, "Hiragino Sans", system-ui, sans-serif; line-height: 1.35;
}
.banner img { width: 44px; height: 44px; border-radius: 10px; grid-row: span 2; }
.banner b { font-size: 16px; }
.banner span { font-size: 15px; grid-column: 2 / 4; }
.banner time { font-size: 13px; color: #5f5f64; align-self: start; }

/* 下の端から顔を出す鳥 */
.rise { position: absolute; width: 280px; right: max(24px, calc(50% - 500px)); bottom: -6px; }

/* 本文 */
main section { padding: 72px 0; }
main h2 { font-size: 30px; font-weight: 800; margin: 0 0 28px; }

.what { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 64px; align-items: start; }
.what .screen { border-radius: 30px; border: 1px solid var(--rule); }
.what h3 { font-size: 21px; font-weight: 800; margin: 0 0 6px; }
.what p { margin: 0 0 36px; color: var(--ink-sub); max-width: 32em; }
.what .quiet { border-radius: 16px; width: 100%; max-width: 420px; margin-top: -18px; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.two h2 { font-size: 24px; margin-bottom: 16px; }
.two ol, .two ul { margin: 0; padding-left: 1.3em; }
.two li { margin: 0 0 10px; }
.aside { font-size: 15px; color: var(--ink-sub); margin: 12px 0 0; }

/* 料金の表 */
table.price { width: 100%; border-collapse: collapse; }
.price th, .price td { text-align: left; vertical-align: middle; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--rule); }
.price thead th { font-size: 14px; font-weight: 700; color: var(--ink-sub); padding-top: 0; }
.price .plan { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 19px; white-space: nowrap; }
.price .plan img { width: 52px; }
.price .yen { font-weight: 700; white-space: nowrap; }
.price .yen small { display: block; font-weight: 400; color: var(--ink-sub); font-size: 14px; }

/* よくある質問 */
.faq details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 800; }
.faq details p { margin: 10px 0 4px; color: var(--ink-sub); max-width: 40em; }

/* 最後 */
.end { background: var(--sky); text-align: center; padding: 72px 0 56px; }
.end h2 { font-size: 28px; font-weight: 800; margin: 0 0 22px; }

/* フッターも空色のまま続ける（最後の誘導とひと続き） */
.foot { background: var(--sky); }
footer { border-top: 1px solid rgba(30, 53, 80, 0.12); font-size: 14px; color: var(--ink-sub); }
.foot > footer.wrap { padding: 28px 24px 48px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 12px; }
footer nav a { color: var(--ink-sub); }
footer p { margin: 2px 0; }

@media (max-width: 800px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .top { padding-top: 32px; }
  .foot > footer.wrap { padding: 24px 20px 40px; }
  .hero { grid-template-columns: 1fr; gap: 8px; padding-top: 32px; padding-bottom: 190px; }
  .hero h1 { font-size: 7.6vw; }
  :lang(en) .hero h1 { font-size: 9vw; }
  .hero .lead { font-size: 17px; }
  .rise { width: 190px; }
  .banner-area { justify-self: start; margin-top: 28px; }
  .what { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .what .screen { max-width: 260px; }
  .two { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  main section { padding: 56px 0; }
  main h2 { font-size: 25px; }
  .price thead { display: none; }
  .price tr { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 2px 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .price th, .price td { border: 0; padding: 0; }
  .price tbody th { grid-row: span 2; }
  .price .plan { flex-direction: column; gap: 2px; font-size: 16px; }
  .price .plan img { width: 48px; }
  .price .yen small { display: inline; margin-left: 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 200ms both; }
  @keyframes rise { from { transform: translateY(60%); } to { transform: none; } }
}
