/*
 * /assets/styles.css
 * 全ページ共通のスタイル定義
 * CSS変数でテーマを管理し、モバイルファーストで設計
 * 関連ファイル: index.html, apps/ashita-motsumono/index.html
 */

/* ===== CSS Variables ===== */
:root {
  --color-bg: #fffaf0;
  --color-surface: #ffffff;
  --color-text: #2f2a24;
  --color-muted: #6f675f;
  --color-primary: #f6a531;
  --color-primary-dark: #8a4f00;
  --color-primary-light: #fef0d6;
  --color-border: #eadfce;
  --color-success: #5ba85a;
  --color-danger: #d96c5a;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 16px 40px rgba(60, 45, 20, 0.08);
  --shadow-card: 0 4px 16px rgba(60, 45, 20, 0.06);
  --shadow-card-hover: 0 12px 40px rgba(60, 45, 20, 0.12);
  --max-width: 1100px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-primary);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(246, 165, 49, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(246, 165, 49, 0); }
}

.anim-fade-in {
  animation: fadeInUp 0.7s ease-out both;
}

.anim-fade-in--d1 { animation-delay: 0.1s; }
.anim-fade-in--d2 { animation-delay: 0.2s; }
.anim-fade-in--d3 { animation-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Utility ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
  position: relative;
}

.section__title {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.section__subtitle {
  font-size: 1rem;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===== Button ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  font-family: inherit;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text);
  box-shadow: 0 4px 14px rgba(246, 165, 49, 0.35);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(246, 165, 49, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary-dark);
  border: 2px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* ===== Header ===== */
.header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

.header__logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

.header__logo:hover {
  color: var(--color-primary-dark);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__nav a {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.header__nav a:hover {
  color: var(--color-text);
}

.header__cta {
  flex-shrink: 0;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 40px;
  background: linear-gradient(165deg, var(--color-bg) 0%, #fef6e6 40%, #fdecd4 100%);
}

.hero::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 165, 49, 0.12) 0%, transparent 70%);
  top: -180px;
  right: -120px;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 165, 49, 0.08) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
}

.hero__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.hero__title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  animation: fadeInUp 0.7s ease-out both;
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-bottom: 8px;
  line-height: 1.6;
}

.hero__desc {
  font-size: 0.95rem;
  color: var(--color-muted);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.7;
  animation: fadeInUp 0.7s ease-out 0.15s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  animation: fadeInUp 0.7s ease-out 0.3s both;
}

/* ===== Card Grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-card-hover);
}

.card__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card__desc {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.card__link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.card--block:hover .card__link {
  gap: 8px;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 40px 0 24px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
}

.footer__nav a {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.footer__nav a:hover {
  color: var(--color-text);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--color-muted);
  text-align: center;
}

/* ===== Feature / 3-cards ===== */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--color-primary-dark);
}

.feature-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ===== Steps ===== */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.step {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -8px;
  left: 20px;
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  color: var(--color-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.step__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 8px;
  margin-bottom: 6px;
}

.step__desc {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ===== Phone Mock ===== */
.phone-mock {
  display: inline-flex;
  flex-direction: column;
  width: 260px;
  border: 3px solid var(--color-text);
  border-radius: 32px;
  background: var(--color-surface);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(60, 45, 20, 0.12);
}

.phone-mock__notch {
  height: 24px;
  background: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.phone-mock__notch::after {
  content: "";
  width: 80px;
  height: 6px;
  background: #555;
  border-radius: 3px;
}

.phone-mock__header {
  padding: 12px 16px 8px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
}

.phone-mock__body {
  padding: 16px;
  min-height: 320px;
  text-align: left;
}

.phone-mock__body-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}

.phone-mock__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.85rem;
}

.phone-mock__item::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid var(--color-primary);
  flex-shrink: 0;
}

.phone-mock__item--checked::before {
  background: var(--color-success);
  border-color: var(--color-success);
  content: "✓";
  color: #fff;
  font-size: 0.7rem;
  line-height: 16px;
  text-align: center;
}

.phone-mock__item--cross::before {
  background: var(--color-danger);
  border-color: var(--color-danger);
  content: "✗";
  color: #fff;
  font-size: 0.6rem;
  line-height: 16px;
  text-align: center;
}

.phone-mock__divider {
  height: 1px;
  background: var(--color-border);
  margin: 8px 0;
}

.phone-mock__tag {
  padding: 4px 24px;
  font-size: 0.7rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  text-align: center;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* ===== Screenshot mock grid ===== */
.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  justify-items: center;
}

.screenshot-item {
  text-align: center;
}

.screenshot-item__desc {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ===== Scene icons (emoji) ===== */
.scene-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.scene-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scene-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.scene-card__emoji {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.scene-card__title {
  font-size: 0.95rem;
  font-weight: 700;
}

/* ===== FAQ ===== */
.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-card-hover);
}

.faq-item__q {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.faq-item__a {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 165, 49, 0.1) 0%, transparent 70%);
  top: -100px;
  right: -80px;
  pointer-events: none;
}

.cta-banner__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
}

.cta-banner__desc {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 28px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  position: relative;
}

/* ===== Content page (privacy/terms) ===== */
.content-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.content-page h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.content-page .updated {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 32px;
}

.content-page h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
}

.content-page p,
.content-page li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.content-page ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.content-page li {
  margin-bottom: 6px;
}

.contact-placeholder {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 24px 0;
  text-align: center;
}

.contact-placeholder__email {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 8px 0;
}

.contact-placeholder__note {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* ===== Back link ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 24px;
}

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

/* ===== Utility classes ===== */
.section--surface {
  background: var(--color-surface);
}

.section--pt0 {
  padding-top: 0;
}

.section--mock {
  padding: 0 0 64px;
}

.section--cta {
  background: var(--color-surface);
}

.mock-wrapper {
  display: flex;
  justify-content: center;
}

.phone-mock__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
  margin-bottom: 4px;
}

.phone-mock__complete {
  padding: 24px 0;
  text-align: center;
}

.phone-mock__complete-icon {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.phone-mock__complete-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.phone-mock__complete-count {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.card--block {
  text-decoration: none;
  color: inherit;
  display: block;
}

.section__subtitle--narrow {
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.contact-mt {
  margin-top: 24px;
}

.contact-btn-mt {
  margin-top: 32px;
  text-align: center;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-muted);
}

/* ===== Responsive ===== */

@media (max-width: 599px) {
  .header__inner {
    height: auto;
    min-height: 60px;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .header__nav {
    order: 3;
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .header__cta {
    display: none;
  }

  .hero {
    padding: 40px 0 32px;
  }

  .hero__title {
    font-size: 1.6rem;
  }
}

@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .scene-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .screenshot-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__title {
    font-size: 2.6rem;
  }
}

@media (min-width: 900px) {
  .section {
    padding: 80px 0;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .hero__title {
    font-size: 3rem;
  }

  .section__title {
    font-size: 1.8rem;
  }

}
