/* Take It Easy ヘルプ（ja / en 共通）。色はアプリの Morning テーマ（tie_colors.dart）に合わせる。 */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --ground: #eef5fc;
  --surface: #ffffff;
  --ink-strong: #0f1c2e;
  --ink: #1e2b3c;
  --muted: #5d6b7c;
  --line: rgba(15, 28, 46, 0.08);
  --accent: #384959;
  --accent-mid: #6a89a7;
  --accent-light: #88bdf2;
  --accent-text: #3d5a78;
  --link: #2f6fb3;
  --chip: rgba(56, 73, 89, 0.08);
  --gradient: linear-gradient(135deg, #384959 0%, #6a89a7 55%, #88bdf2 100%);
  --hero-glow: radial-gradient(60% 60% at 20% 10%, rgba(136, 189, 242, 0.35), transparent 70%),
    radial-gradient(50% 50% at 85% 30%, rgba(106, 137, 167, 0.22), transparent 70%);
  --shadow-sm: 0 1px 2px rgba(15, 28, 46, 0.04), 0 2px 8px rgba(15, 28, 46, 0.05);
  --shadow-lg: 0 24px 60px rgba(15, 28, 46, 0.16), 0 6px 18px rgba(15, 28, 46, 0.08);
  --radius-lg: 28px;
  --radius: 20px;
  --maxw: 1040px;
  --nav-h: 52px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-soft: #0b0c10;
    --ground: #0b0c10;
    --surface: #131419;
    --ink-strong: #f7f6f1;
    --ink: #e9e8e3;
    --muted: #a3a8b3;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #88bdf2;
    --accent-mid: #6a89a7;
    --accent-light: #bdddfc;
    --accent-text: #9ccaf5;
    --link: #8cc3f7;
    --chip: rgba(136, 189, 242, 0.12);
    --gradient: linear-gradient(135deg, #6a89a7 0%, #88bdf2 55%, #bdddfc 100%);
    --hero-glow: radial-gradient(60% 60% at 20% 10%, rgba(136, 189, 242, 0.18), transparent 70%),
      radial-gradient(50% 50% at 85% 30%, rgba(106, 137, 167, 0.16), transparent 70%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1;
}

/* 日本語は文節で折り返す（対応していないブラウザは通常の折り返し）。 */
:lang(ja) h1,
:lang(ja) h2,
:lang(ja) h3,
:lang(ja) .sub,
:lang(ja) .section-head p,
:lang(ja) figcaption,
:lang(ja) .topic {
  word-break: auto-phrase;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

:lang(en) body,
body:lang(en) {
  line-height: 1.6;
  font-feature-settings: normal;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

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

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-strong);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin: 0 auto;
  font-size: 13px;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--ink-strong);
  text-decoration: none;
}

.lang-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: auto;
}

.nav-links + .lang-select {
  margin-left: 0;
}

.lang-select select {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  padding: 6px 30px 6px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink-strong);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.lang-select select:hover {
  background: color-mix(in srgb, var(--chip) 100%, var(--ink-strong) 6%);
}

.lang-select select:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

.lang-select::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -5px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 0;
  text-align: center;
  background: var(--hero-glow), linear-gradient(180deg, var(--ground) 0%, var(--bg) 100%);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  margin: 0 auto;
  max-width: 14em;
  font-size: clamp(38px, 6.4vw, 72px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-strong);
}

.hero .sub {
  margin: 20px auto 0;
  max-width: 34em;
  font-size: clamp(17px, 2.1vw, 21px);
  color: var(--muted);
}

.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pill:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.pill-solid {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(56, 73, 89, 0.25);
}

@media (prefers-color-scheme: dark) {
  .pill-solid {
    color: #0b1320;
  }
}

.pill-ghost {
  color: var(--accent-text);
  background: var(--chip);
}

.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 28px;
  margin-top: 56px;
  height: clamp(320px, 52vw, 560px);
}

.hero-phones .phone {
  width: clamp(170px, 24vw, 270px);
}

.hero-phones .phone:first-child {
  transform: translateY(40px) rotate(-4deg);
}

.hero-phones .phone:last-child {
  transform: translateY(40px) rotate(4deg);
}

.hero-phones .phone:nth-child(2) {
  z-index: 1;
}

/* ---------- Phone frame ---------- */
.phone {
  position: relative;
  margin: 0;
  padding: 8px;
  border-radius: 40px;
  background: linear-gradient(160deg, #2b3440, #0e1218);
  box-shadow: var(--shadow-lg);
}

.phone img,
.phone svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
  background: var(--ground);
}

/* ---------- Sections ---------- */
section {
  padding: 96px 0;
}

section.soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink-strong);
}

.section-head p {
  margin: 16px auto 0;
  font-size: clamp(17px, 1.9vw, 20px);
  color: var(--muted);
}

h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink-strong);
}

.ui {
  font-weight: 600;
  color: var(--accent-text);
}

.path {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink-strong);
  font-size: 0.92em;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Topic cards ---------- */
.topics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 64px;
  padding-bottom: 8px;
  text-align: left;
}

.topic {
  display: block;
  padding: 22px 22px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.topic:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.topic strong {
  display: block;
  font-size: 17px;
  color: var(--ink-strong);
  letter-spacing: -0.01em;
}

.topic span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.topic .glyph {
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
}

/* ---------- Tiles (basics, notices) ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tile {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.tile .glyph {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
}

.glyph circle.bg {
  fill: var(--chip);
}

.glyph .st {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glyph .fl {
  fill: var(--accent);
}

/* ---------- Steps (music) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  display: flex;
  flex-direction: column;
  padding: 32px 28px 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.step-num {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step ol {
  margin: 8px 0 24px;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: 16px;
}

.step ol li + li {
  margin-top: 6px;
}

.step .phone {
  width: 78%;
  max-width: 230px;
  margin: auto auto -64px;
}

.step-foot {
  margin-top: auto;
  padding-top: 8px;
  overflow: hidden;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 28px;
  margin-top: 56px;
  padding: 8px 4px 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery figure {
  margin: 0;
  scroll-snap-align: center;
}

.gallery .phone {
  max-width: 240px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm), 0 12px 30px rgba(15, 28, 46, 0.12);
}

.gallery figcaption {
  margin-top: 16px;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}

.gallery figcaption b {
  display: block;
  color: var(--ink-strong);
  font-size: 16px;
}

/* ---------- Callout ---------- */
.callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 40px;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.callout .glyph {
  width: 44px;
  height: 44px;
}

.callout p {
  margin: 0;
  color: var(--muted);
}

.callout p + p {
  margin-top: 8px;
}

.callout strong {
  color: var(--ink-strong);
}

/* ---------- Split (scenes) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.split .phone {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.scene-list {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.scene-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.scene-list b {
  font-size: 18px;
  color: var(--ink-strong);
}

.scene-list span {
  font-size: 14px;
  color: var(--muted);
  text-align: right;
}

.scene-list .on {
  border-color: transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gradient) border-box;
  border: 2px solid transparent;
}

.muted {
  color: var(--muted);
}

/* ---------- Duo cards (look, tip) ---------- */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.card ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.card li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
}

.card li:first-child {
  border-top: 0;
}

.card p {
  color: var(--muted);
  margin: 12px 0 0;
  font-size: 16px;
}

.swatches {
  display: flex;
  gap: 14px;
  margin: 18px 0 6px;
}

.swatches span {
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.swatches i {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.tip-card {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--gradient);
  border: 0;
}

.tip-card h3,
.tip-card p {
  color: #fff;
}

.tip-card p {
  opacity: 0.88;
}

@media (prefers-color-scheme: dark) {
  .tip-card,
  .tip-card h3,
  .tip-card p {
    color: #0b1320;
  }
}

.tip-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tip-amounts span {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq details {
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.faq summary {
  position: relative;
  padding: 20px 56px 20px 24px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink-strong);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

.faq details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- Contact ---------- */
.contact {
  text-align: center;
}

.contact .section-head {
  margin-bottom: 28px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.footer p {
  margin: 4px 0;
}

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .topic,
  .pill {
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-links + .lang-select {
    margin-left: auto;
  }

  .topics {
    grid-template-columns: repeat(2, 1fr);
  }

  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .step .phone {
    width: 62%;
  }

  .split,
  .duo {
    grid-template-columns: 1fr;
  }

  .split .phone {
    max-width: 240px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 16px;
  }

  section {
    padding: 64px 0;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-phones {
    gap: 0;
    margin-top: 40px;
    height: 330px;
  }

  .hero-phones .phone {
    width: 46%;
    max-width: 190px;
  }

  .hero-phones .phone:first-child {
    transform: translate(14px, 40px) rotate(-5deg);
  }

  .hero-phones .phone:nth-child(2) {
    transform: translate(-14px, 24px) rotate(3deg);
  }

  .hero-phones .phone:last-child {
    display: none;
  }

  .topics {
    gap: 10px;
    margin-top: 48px;
  }

  .topic {
    padding: 16px;
  }

  .topic span {
    display: none;
  }

  .topic .glyph {
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
  }

  .tiles {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tile {
    padding: 22px;
  }

  .tile .glyph {
    float: left;
    width: 40px;
    height: 40px;
    margin: 0 14px 4px 0;
  }

  .tile h3 {
    font-size: 18px;
  }

  .tile p {
    clear: both;
  }

  .step {
    padding: 26px 22px 0;
  }

  .gallery {
    grid-auto-columns: 62%;
    gap: 18px;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    scroll-padding: 0 16px;
  }

  .callout {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px;
  }

  .card {
    padding: 26px 22px;
  }

  .scene-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .scene-list span {
    text-align: left;
  }

  .faq summary {
    padding: 18px 48px 18px 20px;
    font-size: 16px;
  }

  .faq details p {
    padding: 0 20px 20px;
  }
}
