/*
 * Tilnow website style
 * FinCook の style.css の構造を踏襲し、Tilnow ブランド（dark / calm 系）に再調色。
 * パレットは "ocean / sunset / lavender" を取り入れた dark navy ベース。
 */

:root {
  /* Tilnow ブランドパレット（dark系） */
  --bg-base: #0b1220;          /* 深い夜空 */
  --bg-elev: #121a2c;          /* セクション交互 */
  --bg-card: #1a2238;          /* カード背景 */
  --bg-card-soft: #222b45;     /* カード hover */
  --border: #2a3454;
  --border-soft: #1f2942;

  --text: #e7ecf6;
  --text-muted: #9aa6c2;
  --text-dim: #6e7a99;

  --accent: #8ab4ff;           /* やわらかな空色（ocean系） */
  --accent-strong: #5b8def;
  --accent-warm: #ffb37a;      /* sunset系のアクセント */
  --accent-lav: #b8a6ff;       /* lavender */

  --white: #ffffff;
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.45);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

@media (min-width: 768px) {
  html {
    scroll-padding-top: 7rem;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Noto Sans JP', 'M PLUS Rounded 1c', sans-serif;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(91, 141, 239, 0.18) 0%, rgba(11, 18, 32, 0) 55%),
    radial-gradient(ellipse at 90% 90%, rgba(184, 166, 255, 0.10) 0%, rgba(11, 18, 32, 0) 50%),
    var(--bg-base);
  background-color: var(--bg-base);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Sections */
.section {
  padding: 4rem 1.5rem;
}

.container {
  max-width: 720px;
  margin: 0 auto;
}

.section-title {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent-lav) 100%);
  color: var(--white);
  font-size: 1rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  font-weight: 800;
}

.section-lead {
  color: var(--text-muted);
  margin: 0 0 1rem;
  max-width: 36em;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  min-height: 4rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  display: block;
}

.logo-text {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.header-right {
  display: flex;
  justify-content: flex-end;
}

.nav {
  display: none;
  gap: 0.5rem 1rem;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
  .header-inner {
    padding: 1.25rem 2rem;
    min-height: 4.5rem;
  }
}

/* Hero */
.hero {
  min-height: 90vh;
  min-height: 90dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.25rem 4rem;
  text-align: center;
  position: relative;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.hero-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 1.25rem;
  margin: 0 auto 1.5rem;
  display: block;
  box-shadow: 0 12px 36px rgba(91, 141, 239, 0.35);
}

.hero-catch {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.85rem, 5vw, 3rem);
}

.hero-catch-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-lav) 60%, var(--accent-warm) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-muted);
  margin: 1.5rem auto 0;
  max-width: 32em;
  line-height: 1.85;
}

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* App store badge */
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, #1f2942 0%, #2a3454 100%);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.app-badge:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(91, 141, 239, 0.25);
}

.app-badge-mark {
  font-size: 1.4rem;
  line-height: 1;
}

.app-badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.app-badge-text small {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-badge-text strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.app-badge--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.app-badge--disabled:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* About / Features */
.section-about {
  background: linear-gradient(180deg, transparent 0%, rgba(18, 26, 44, 0.6) 100%);
}

.content-box {
  background: var(--bg-card);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
}

.content-box p {
  margin: 0;
  color: var(--text);
  line-height: 1.85;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-block {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out);
}

.feature-block:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.feature-block-title {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  margin: 0;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border-soft);
}

.feature-block-content {
  padding: 1.1rem 1.25rem 1.35rem;
}

.feature-block-content p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: #060912;
  color: var(--text-muted);
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border-soft);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

.footer-contact {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-contact a {
  color: var(--accent);
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-operated {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  margin: 0 0 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a,
.footer-links a:link,
.footer-links a:visited,
.footer-links a:active {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--white);
  text-decoration: underline;
}

.footer-links-sep {
  color: var(--text-dim);
}

.footer-links-current {
  color: var(--text);
}

.footer-logo-link {
  display: inline-block;
  line-height: 0;
  margin-top: 0.5rem;
}

.footer-logo {
  height: 1.75rem;
  width: auto;
  opacity: 0.85;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s;
}

.footer-logo-link:hover .footer-logo {
  opacity: 1;
}

.footer-copy {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ========== Legal page (privacy / terms) ========== */
.section-legal {
  padding-top: 6.5rem;
}

.legal-page-title {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 900;
  color: var(--text);
  font-size: clamp(1.85rem, 5vw, 2.5rem);
  margin: 0 0 1rem;
  text-align: left;
}

.legal-page-lead {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.85;
  margin: 0 0 2rem;
  max-width: 40em;
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  color: var(--text);
  line-height: 1.9;
  box-shadow: var(--shadow);
}

.legal-card h2 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  color: var(--accent);
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
  letter-spacing: 0.01em;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text);
  word-break: auto-phrase;
  line-break: strict;
}

.legal-card ol,
.legal-card ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  color: var(--text);
}

.legal-card ol > li,
.legal-card ul > li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.85;
}

.legal-card ol ol,
.legal-card ol ul,
.legal-card ul ol,
.legal-card ul ul {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.legal-card a {
  color: var(--accent);
  text-decoration: underline;
  word-break: break-all;
}

.legal-card a:hover {
  color: var(--accent-strong);
}

.legal-card strong {
  color: var(--white);
  font-weight: 700;
}

.legal-meta {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-soft);
  color: var(--text-dim);
  font-size: 0.9rem;
}

.legal-meta p {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.legal-back {
  text-align: center;
  margin: 2.5rem 0 0;
}

.link-back {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}

.link-back:hover {
  color: var(--white);
}

/* ========== Responsive ========== */
@media (max-width: 767px) {
  .section {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: 1.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .section-num {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.9rem;
  }

  .content-box {
    padding: 1.25rem;
  }

  .hero {
    padding: 6rem 1rem 3rem;
    min-height: 80vh;
  }

  .hero-icon {
    width: 4rem;
    height: 4rem;
  }

  .footer {
    padding: 2rem 1rem;
  }

  .footer-contact a {
    word-break: break-all;
  }

  .legal-card {
    padding: 1.5rem 1.25rem;
  }
}
