/* アプリの lib/utils/app_design.dart と同じブランドカラーを使う */
:root {
  --brand: #FFC44D;
  --brand-light: #FFE2A8;
  --accent: #FF8A3D;
  --accent-soft: #FFF0E3;
  --ink: #1F1B16;
  --ink-muted: #7A7268;
  --surface: #FFFFFF;
  --surface-muted: #FAF8F5;
  --outline: #EDE7DF;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow: 0 8px 24px rgba(31, 27, 22, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 日本語に切り替わる前に英語が一瞬見えるのを防ぐ（index.html の head 内スクリプトが付与） */
html.i18n-pending body { visibility: hidden; }

/* --- Language switch --- */
.lang-switch {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: inline-flex;
  padding: 3px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(31, 27, 22, 0.08);
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-switch button.is-active {
  background: var(--ink);
  color: #fff;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #FFD98A 0%, #FFB74D 100%);
  padding: 64px 0 72px;
  text-align: center;
  border-radius: 0 0 40px 40px;
}

.hero__icon {
  margin: 0 auto 20px;
  width: 140px;
  height: 140px;
  background: var(--surface);
  border-radius: 36px;
  padding: 14px;
  box-shadow: 0 12px 32px rgba(255, 138, 61, 0.35);
}

.hero__title {
  margin: 0;
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero__lead {
  margin: 8px 0 0;
  font-size: clamp(17px, 3vw, 22px);
  font-weight: 700;
}

.hero__sub {
  margin: 4px 0 0;
  color: rgba(31, 27, 22, 0.7);
  font-size: 15px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  padding: 10px 20px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31, 27, 22, 0.25);
}

.store-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex-shrink: 0;
}

.store-btn span {
  display: flex;
  flex-direction: column;
  text-align: left;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
}

.store-btn small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
}

/* --- Sections --- */
.section { padding: 72px 0; }
.section--soft { background: var(--surface-muted); }

.section__title {
  margin: 0 0 32px;
  text-align: center;
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 800;
}

.section__text {
  margin: 0 auto 28px;
  max-width: 560px;
  text-align: center;
}

/* --- Feature cards --- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}

.card__emoji {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  font-size: 26px;
  background: var(--accent-soft);
  border-radius: var(--radius-md);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.card p { margin: 0; font-size: 14px; }
.card p.en { margin-top: 4px; font-size: 13px; }

/* --- Contact --- */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  max-width: 640px;
  margin: 0 auto;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
  word-break: break-all;
}

.contact__item:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
}

.contact__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  font-size: 22px;
  background: var(--accent-soft);
  border-radius: 14px;
}

.contact__item span:last-child {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: var(--ink-muted);
}

.contact__item strong {
  color: var(--ink);
  font-size: 15px;
}

/* --- Footer --- */
.footer {
  padding: 36px 0 44px;
  text-align: center;
  border-top: 1px solid var(--outline);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

.footer__links a {
  color: var(--ink-muted);
  font-size: 13px;
  text-decoration: none;
}

.footer__links a:hover { color: var(--accent); text-decoration: underline; }

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

/* =========================================================================
   アカウント削除ページ（delete-account.html）
   ========================================================================= */
.narrow { max-width: 680px; }

.hero--compact { padding: 56px 0 48px; }

.hero__home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.hero__icon--small {
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 5px;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(255, 138, 61, 0.3);
}

.hero__page-title {
  margin: 20px 0 0;
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 800;
}

.hero__page-lead {
  margin: 8px auto 0;
  max-width: 560px;
  color: rgba(31, 27, 22, 0.8);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.panel p { margin: 0 0 8px; }
.panel p:last-child { margin-bottom: 0; }

.panel--warning { background: var(--accent-soft); border-color: #FFD9BC; }
.panel--success { background: #EAF7EF; border-color: #BFE5CC; }

.panel__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
}

.list { margin: 0; padding-left: 20px; }
.list li { margin-bottom: 6px; }
.list li:last-child { margin-bottom: 0; }

.note {
  margin-top: 14px !important;
  color: var(--ink-muted);
  font-size: 13px;
}

.link { color: var(--accent); font-weight: 700; word-break: break-all; }

.form { margin-top: 16px; }

.form__label {
  display: block;
  margin: 16px 0 6px;
  font-size: 14px;
  font-weight: 700;
}

.form__label:first-child { margin-top: 0; }

.form__input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px; /* iOS で入力時にズームされないよう 16px 以上 */
  color: var(--ink);
  background: var(--surface-muted);
  border: 1px solid var(--outline);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form__input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 196, 77, 0.35);
  background: var(--surface);
}

.form__hint {
  margin: 6px 0 0 !important;
  color: var(--ink-muted);
  font-size: 12px;
}

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  font-size: 14px;
  cursor: pointer;
}

.form__check input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #D9443A;
}

.form__message {
  margin: 16px 0 0 !important;
  padding: 10px 14px;
  color: #B3261E;
  background: #FDECEA;
  border-radius: 10px;
  font-size: 14px;
}

.btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 14px 20px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn--danger { color: #fff; background: #D9443A; }
.btn--danger:hover:not(:disabled) { transform: translateY(-1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

[hidden] { display: none !important; }

@media (max-width: 480px) {
  .hero { padding: 68px 0 56px; border-radius: 0 0 28px 28px; }
  .hero--compact { padding: 64px 0 40px; }
  .panel { padding: 20px 18px; }
  .lang-switch { top: 12px; right: 12px; }
  .section { padding: 56px 0; }
  .store-btn { min-width: 0; flex: 1 1 150px; justify-content: center; padding: 10px 14px; }
  .store-btn span { white-space: nowrap; font-size: 16px; }
}
