/* ==========================================================
   AMU / ホームページ制作会社 テストサイト
   ========================================================== */

:root {
  --paper: #F2F0E6;
  --paper-alt: #EAE7D8;
  --ink: #1E2422;
  --ink-soft: #5B6560;
  --indigo: #2C3E66;
  --indigo-deep: #1F2C49;
  --weave: #3F7D6B;
  --gold: #C9A054;
  --line: rgba(30, 36, 34, 0.12);

  --font-display: "Shippori Mincho", serif;
  --font-body: "Zen Kaku Gothic New", sans-serif;

  --radius: 4px;
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--weave);
  outline-offset: 3px;
}

/* ---------------- HEADER ---------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(242, 240, 230, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 4px 16px rgba(30,36,34,0.05);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--indigo-deep);
}
.logo span {
  font-size: 13px;
  margin-left: 6px;
  color: var(--weave);
  font-family: var(--font-body);
  letter-spacing: 0.1em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
}
.nav a {
  color: var(--ink-soft);
  transition: color .2s ease;
}
.nav a:hover { color: var(--indigo-deep); }
.nav__cta {
  padding: 9px 18px;
  border-radius: var(--radius);
  background: var(--indigo-deep);
  color: #fff !important;
}
.nav__cta:hover { background: var(--weave); }

.nav-toggle {
  display: none;
  width: 32px; height: 24px;
  border: none; background: none;
  padding: 0; cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  height: 2px; width: 100%;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  padding: 168px 0 96px;
  overflow: hidden;
  background: var(--paper);
}
.weave-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
}
.weave-lines path {
  fill: none;
  stroke-width: 1.4;
}
.weave-lines path:nth-child(1) { stroke: var(--weave); }
.weave-lines path:nth-child(2) { stroke: var(--gold); }
.weave-lines path:nth-child(3) { stroke: var(--indigo); }
.weave-lines path:nth-child(4) { stroke: var(--weave); }

.hero__inner { position: relative; z-index: 1; max-width: 640px; }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--weave);
  margin: 0 0 18px;
  font-weight: 700;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.5;
  color: var(--indigo-deep);
  margin: 0 0 24px;
}
.hero__text {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 0 36px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary {
  background: var(--indigo-deep);
  color: #fff;
}
.btn--primary:hover { background: var(--weave); }
.btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--indigo-deep);
  color: var(--indigo-deep);
}
.btn--onDark { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn--onDark:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }
.btn--block { width: 100%; margin-top: 8px; }

/* ---------------- SECTIONS ---------------- */
.section { padding: 96px 0; }
.section--alt { background: var(--paper-alt); }
.section__label {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--weave);
  font-weight: 700;
  margin: 0 0 10px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 32px);
  color: var(--indigo-deep);
  margin: 0 0 48px;
}

.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* cards */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.card__num {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
}
.card h3 {
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--indigo-deep);
}
.card p { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* flow */
.flow { display: flex; flex-direction: column; gap: 40px; max-width: 720px; }
.flow__item {
  display: flex;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.flow__item:last-child { border-bottom: none; padding-bottom: 0; }
.flow__num {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--gold);
  min-width: 56px;
}
.flow__item h3 { margin: 0 0 8px; color: var(--indigo-deep); font-size: 17px; }
.flow__item p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* works */
.work__visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, rgba(63,125,107,0.16) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, var(--indigo) 0%, var(--indigo-deep) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  margin-bottom: 18px;
}
.work__visual span {
  font-family: var(--font-display);
  color: rgba(255,255,255,0.85);
  font-size: 32px;
}
.work h3 { margin: 0 0 4px; font-size: 16px; color: var(--indigo-deep); }
.work p { margin: 0; color: var(--ink-soft); font-size: 13px; }

/* plans */
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
}
.plan--featured {
  border-color: var(--indigo-deep);
  box-shadow: 0 12px 28px rgba(31,44,73,0.12);
}
.plan__badge {
  position: absolute;
  top: -12px; left: 28px;
  background: var(--gold);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin: 0;
}
.plan h3 { margin: 0 0 8px; color: var(--indigo-deep); font-size: 17px; }
.plan__price {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--indigo-deep);
  margin: 0 0 24px;
}
.plan__price span { font-size: 14px; color: var(--ink-soft); font-family: var(--font-body); }
.plan ul { margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; }
.plan ul li {
  font-size: 13.5px;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
}
.plan ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 1.4px;
  background: var(--weave);
}

/* CTA */
.cta {
  background: var(--indigo-deep);
  color: #fff;
  padding: 96px 0;
  text-align: center;
}
.cta__inner h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 34px);
  margin: 0 0 16px;
}
.cta__inner p {
  color: rgba(255,255,255,0.72);
  margin: 0 0 36px;
}
.cta .hero__actions { justify-content: center; }

/* footer */
.footer { padding: 48px 0 32px; }
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.logo--footer { font-size: 18px; }
.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); }
.footer__note {
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  margin: 20px 24px 0;
  opacity: 0.75;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 860px) {
  .grid--3 { grid-template-columns: 1fr; }
  .nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: none; }
  .nav__cta { text-align: center; margin-top: 8px; }
  .nav-toggle { display: flex; }
  .hero { padding: 140px 0 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
