/* ==========================================================================
   プラクトループ ブランド LP
   - モバイルファースト
   - システムフォントのみ・Web フォント不使用
   - ライトモード固定（テラコッタテーマ）
   ========================================================================== */

/* === Design Tokens (§2) === */
:root {
  /* Color */
  --c-accent:        #C85C3A;
  --c-accent-strong: #A84A2E;
  --c-accent-sub:    #2C4868;
  --c-bg:            #F5EFE6;
  --c-bg-soft:       #EDE8DF;
  --c-bg-card:       #FFFFFF;
  --c-text:          #1F1A14;
  --c-text-sub:      #6B5E4E;
  --c-border:        #E0D9CE;
  --c-success:       #3A8A4E;
  --c-disabled:      #C7C0B5;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(31, 26, 20, 0.06);
  --shadow-md: 0 12px 32px rgba(31, 26, 20, 0.10);
  --shadow-lg: 0 24px 64px rgba(31, 26, 20, 0.14);

  /* Typography */
  --font-base:
    "Hiragino Sans", "Yu Gothic", -apple-system, BlinkMacSystemFont,
    "Segoe UI", system-ui, sans-serif;
  --font-mono: "SF Mono", "Menlo", monospace;

  /* Layout */
  --container-max: 1120px;
}

/* === Reset / Base === */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: var(--c-accent-strong);
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, p {
  margin: 0;
}

/* フォーカスリング（インタラクティブ要素共通） */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[role="link"]:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* スクリーンリーダー専用 */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* === Header (§4-1) === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 230, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 60px;
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--c-text);
  font-weight: 700;
  font-size: 18px;
}

.brand:hover {
  color: var(--c-text);
}

.brand__icon {
  display: inline-flex;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.brand__name {
  letter-spacing: 0.02em;
}

.site-nav {
  display: none;
}

.site-nav a {
  color: var(--c-text-sub);
  font-weight: 600;
  margin: 0 var(--space-3);
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--c-accent);
}

/* === CTA (§4-6) === */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px var(--space-5);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cta--compact {
  padding: 10px var(--space-3);
  font-size: 14px;
}

.cta__icon {
  flex-shrink: 0;
}

/* 本番 CTA（App Store リンク） */
.cta--primary {
  background: var(--c-accent);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.cta--primary:hover {
  background: var(--c-accent-strong);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.cta--primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* === Hero (§4-2) === */
.hero {
  background: linear-gradient(180deg, #F5EFE6 0%, #EDE8DF 100%);
  padding: var(--space-7) var(--space-3) var(--space-6);
}

.hero__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: center;
}

.hero__copy {
  width: 100%;
  max-width: 640px;
  text-align: left;
}

.eyebrow {
  display: inline-block;
  background: var(--c-bg-card);
  color: var(--c-accent);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.hero__title {
  font-size: 36px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}

.hero__title-accent {
  color: var(--c-accent);
}

.hero__sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  max-width: 28em;
  margin-bottom: var(--space-5);
}

.hero__cta {
  margin-bottom: var(--space-4);
}

.hero__meta {
  font-size: 13px;
  color: var(--c-text-sub);
}

/* Hero ビジュアル */
.hero__visual {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.hero__glow {
  position: absolute;
  inset: -20% 10%;
  background: var(--c-accent);
  opacity: 0.12;
  filter: blur(64px);
  border-radius: 50%;
  z-index: 0;
}

.hero__device {
  position: relative;
  z-index: 1;
  background: var(--c-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-3);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__screen {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

.hero__placeholder-label {
  display: none;
  color: var(--c-text-sub);
  font-size: 14px;
}

.hero__device--placeholder {
  background: var(--c-bg-soft);
  aspect-ratio: 9 / 19.5;
}

.hero__device--placeholder .hero__placeholder-label {
  display: block;
}

/* === Sections common === */
.section-head {
  text-align: center;
  margin-bottom: var(--space-6);
}

.section-head__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-2);
}

.section-head__sub {
  color: var(--c-text-sub);
  font-size: 16px;
}

/* === Features (§4-3) === */
.features {
  background: var(--c-bg);
  padding: var(--space-7) var(--space-3);
}

.features__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.feature-card {
  background: var(--c-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

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

.feature-card__icon {
  display: inline-flex;
  color: var(--c-accent);
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
}

.feature-card__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-text);
}

.feature-card__desc {
  color: var(--c-text);
  font-size: 16px;
  line-height: 1.7;
}

.feature-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  color: var(--c-text-sub);
  font-size: 15px;
}

.feature-card__list li {
  padding-left: 18px;
  position: relative;
}

.feature-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
}

.feature-card__shot {
  margin: var(--space-3) 0 0;
  background: var(--c-bg-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card__shot img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-card__shot-label {
  display: none;
  font-size: 13px;
  color: var(--c-text-sub);
  text-align: center;
}

.feature-card__shot--placeholder {
  aspect-ratio: 9 / 16;
  max-height: 340px;
}

.feature-card__shot--placeholder .feature-card__shot-label {
  display: block;
}

/* === FAQ (§4-4) === */
.faq {
  background: var(--c-bg-soft);
  padding: var(--space-7) var(--space-3);
}

.faq__inner {
  max-width: 800px;
  margin: 0 auto;
}

.faq__list {
  background: var(--c-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--c-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item__q {
  cursor: pointer;
  padding: var(--space-4) var(--space-5);
  font-size: 17px;
  font-weight: 600;
  color: var(--c-text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  transition: background 0.15s ease;
}

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

.faq-item__q::after {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--c-accent);
  border-bottom: 2px solid var(--c-accent);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.2s ease;
  margin-top: -4px;
}

.faq-item[open] .faq-item__q::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq-item__q:hover {
  background: var(--c-bg-soft);
}

.faq-item__a {
  padding: 0 var(--space-5) var(--space-4);
  color: var(--c-text);
  font-size: 16px;
  line-height: 1.7;
}

/* === Footer (§4-5) === */
.site-footer {
  background: var(--c-text);
  color: var(--c-bg);
  padding: var(--space-7) var(--space-3) var(--space-6);
}

.site-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.brand--footer {
  color: var(--c-bg);
}

.brand--footer:hover {
  color: var(--c-bg);
}

.site-footer__tagline {
  color: rgba(245, 239, 230, 0.75);
  font-size: 14px;
  margin-top: var(--space-2);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.site-footer__links a {
  color: var(--c-bg);
  font-size: 14px;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.site-footer__links a:hover {
  opacity: 1;
  color: var(--c-bg);
}

.site-footer__copyright {
  color: rgba(245, 239, 230, 0.6);
  font-size: 13px;
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

/* === tablet (≥ 600px) === */
@media (min-width: 600px) {
  .hero {
    padding: var(--space-8) var(--space-4) var(--space-7);
  }

  .hero__title {
    font-size: 44px;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }

  .section-head__title {
    font-size: 32px;
  }
}

/* === desktop (≥ 1024px) === */
@media (min-width: 1024px) {
  .site-header {
    height: 72px;
  }

  .site-header__inner {
    padding: 0 var(--space-5);
  }

  .site-nav {
    display: flex;
    align-items: center;
  }

  .cta--compact {
    padding: 12px var(--space-4);
    font-size: 16px;
  }

  .hero {
    padding: var(--space-8) var(--space-5);
  }

  .hero__inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-7);
  }

  .hero__copy {
    flex: 0 0 55%;
    max-width: none;
  }

  .hero__visual {
    flex: 0 0 40%;
    max-width: 420px;
  }

  .hero__title {
    font-size: 56px;
  }

  .hero__sub {
    font-size: 17px;
  }

  .features,
  .faq {
    padding: var(--space-8) var(--space-5);
  }

  .section-head__title {
    font-size: 36px;
  }

  .site-footer {
    padding: var(--space-7) var(--space-5) var(--space-6);
  }

  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
  }

  .site-footer__copyright {
    text-align: right;
  }
}
