/* Doublemoon site — styles */

:root {
  --brand-teal:  #339181;
  --brand-deep:  #1E7284;
  --brand-soft:  #EBF4F3;
  --ink:         #1A2B2E;
  --ink-muted:   #5A6B6E;
  --surface:     #FAFCFC;
  --line:        #d9e3e2;
  --accent:      var(--brand-teal);

  --max: 68rem;
  --read: 40rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --font-sans: "IBM Plex Sans JP", "IBM Plex Sans", -apple-system, BlinkMacSystemFont,
               "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink);
  background: var(--surface);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--brand-deep);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--brand-teal); }

::selection { background: var(--brand-teal); color: #fff; }

/* ---------- shell ---------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* subtle circuit + gradient backdrop, page-wide */
.page {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(1200px 700px at 85% -10%, #dceceb 0%, transparent 60%),
    linear-gradient(180deg, #f3f8f7 0%, var(--surface) 42%);
}
.page::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("assets/circuit-bg.svg");
  background-size: 480px 480px;
  background-repeat: repeat;
  opacity: 0.045;
  pointer-events: none;
  z-index: -1;
  mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
}

/* ---------- hero ---------- */

.hero {
  padding-top: clamp(2rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas:
    "brand media"
    "copy media";
  gap: 0 clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero__brand {
  grid-area: brand;
  min-width: 0;
  align-self: end;
}

.hero__copy {
  grid-area: copy;
  min-width: 0;
  align-self: start;
}

.hero__media {
  grid-area: media;
  min-width: 0;
  align-self: center;
}

.hero__logo {
  height: clamp(84px, 10vw, 120px);
  width: auto;
  margin-bottom: 2rem;
  margin-left: -8px; /* optical: logomark has internal padding */
}

.hero__identity {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--brand-teal);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.hero__role {
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  color: var(--brand-deep);
}
.hero__name {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.hero__headline {
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 1.25rem;
  color: var(--ink);
  text-wrap: pretty;
}

.hero__sub {
  color: var(--ink-muted);
  margin: 0 0 2rem;
  max-width: 30rem;
  text-wrap: pretty;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 2px;
  border: 1px solid var(--accent);
  transition: background .2s ease, transform .2s ease;
}
.hero__cta:hover { background: #2b8073; color: #fff; }
.hero__cta:active { transform: translateY(1px); }
.hero__cta .arrow { transition: transform .2s ease; }
.hero__cta:hover .arrow { transform: translateX(3px); }

.hero__photo {
  width: 100%;
  height: auto;
  max-height: 78vh;
  aspect-ratio: 813 / 1024;
  object-fit: contain;
  object-position: center top;
  background: #eef3f2;
}

/* ---------- sections ---------- */

section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.section-eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  color: var(--brand-deep);
  margin: 0 0 1rem;
  font-weight: 500;
}

h2.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.5;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 1.75rem;
  letter-spacing: 0.01em;
}

/* statement */
.statement {
  text-align: center;
  border-top: 1px solid var(--line);
}
.statement__inner {
  max-width: var(--read);
  margin-inline: auto;
}
.statement p {
  font-size: 1.0625rem;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
}

/* audience */
.audience {
  border-top: 1px solid var(--line);
}
.audience__inner {
  max-width: 38rem;
}
.audience p {
  margin: 0 0 1.4rem;
  color: var(--ink);
  text-wrap: pretty;
}
.audience p:last-child { margin-bottom: 0; }
.audience .block-mid { color: var(--ink); }
.audience .block-end {
  color: var(--brand-deep);
  font-weight: 500;
}

/* cases */
.cases {
  border-top: 1px solid var(--line);
}
.cases__lead {
  max-width: 38rem;
  color: var(--ink-muted);
  margin: 0 0 2.5rem;
}
.cases__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.case {
  border-top: 1px solid var(--brand-teal);
  padding-top: 1.25rem;
}
.case__label {
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  color: var(--brand-deep);
  margin: 0 0 0.75rem;
  font-weight: 500;
}
.case__body {
  margin: 0;
  color: var(--ink);
  text-wrap: pretty;
}

/* cta section */
.cta {
  background: var(--brand-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta__inner {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}
.cta p {
  color: var(--ink);
  margin: 0 auto 2.5rem;
  max-width: 34rem;
  text-wrap: pretty;
}
.cta__form {
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2rem);
  text-align: left;
}
.cta__form-placeholder {
  min-height: 380px;
  border: 1px dashed #bcccca;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875rem;
  padding: 2rem;
  text-align: center;
}

/* footer */
.footer {
  padding-block: 3rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: baseline;
  justify-content: space-between;
}
.footer__brand { color: var(--ink); font-weight: 500; }
.footer__label { display: block; margin-bottom: 0.5rem; font-size: 0.8125rem; letter-spacing: 0.12em; color: var(--ink-muted); }
.footer__links {
  display: flex; gap: 1.5rem;
  list-style: none; padding: 0; margin: 0;
}
.footer__copy {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  /* ISA: ロゴ → 写真 → 見出し → 補足 → CTA */
  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "media"
      "copy";
    gap: 1.5rem;
  }
  .hero__photo {
    max-height: 72vh;
    object-fit: contain;
    object-position: center 20%;
  }
  .hero__logo { margin-bottom: 0; }
  .hero__brand { margin-bottom: 0.5rem; }
  .br-desktop { display: none; }
  .cases__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  body { font-size: 1rem; line-height: 1.75; }
  .hero__cta { width: 100%; justify-content: center; }
  .footer__row { flex-direction: column; gap: 1.25rem; }
}

/* ---------- motion ---------- */

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.is-in { opacity: 1; transform: none; }

.hero__logo, .hero__identity, .hero__headline, .hero__sub, .hero__cta {
  opacity: 0;
  animation: heroFade .6s ease forwards;
}
.hero__identity { animation-delay: .10s; }
.hero__headline { animation-delay: .18s; }
.hero__sub      { animation-delay: .28s; }
.hero__cta      { animation-delay: .38s; }

.hero__photo {
  opacity: 0;
  transform: scale(1.02);
  animation: photoIn .9s ease forwards;
  animation-delay: .15s;
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes photoIn {
  from { opacity: 0; transform: scale(1.03); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in, .hero__logo, .hero__identity, .hero__headline, .hero__sub, .hero__cta, .hero__photo {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
