/* ==========================================================================
   Legalaits corporate site — DESIGN_PLAN.md 準拠
   コンセプト: 「静かな書斎に、一つの朱印」
   ========================================================================== */

:root {
  /* color */
  --c-ink: #0F2137;        /* 墨紺 */
  --c-slate: #3A5068;      /* 藍鼠 */
  --c-paper: #FDFDFB;      /* 白練 */
  --c-silver: #EDF0F2;     /* 銀鼠 */
  --c-seal: #A8394F;       /* 印朱 */
  --c-seal-dark: #8C2F42;  /* 印朱・濃 */

  /* type */
  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-utility: "Manrope", sans-serif;

  --fs-hero: clamp(2.2rem, 5vw, 3.4rem);
  --fs-h2: 1.95rem;
  --fs-h3: 1.25rem;
  --fs-body: 1rem;
  --fs-caption: 0.8rem;

  /* layout */
  --content-max: 1040px;
  --z-header: 10;
}

/* --- reset (minimal) --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
img { max-width: 100%; display: block; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.9;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--c-seal);
  outline-offset: 3px;
}

.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 32px);
}

/* --- header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-silver);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-block: 14px;
}

.brand {
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.brand-seal {
  width: 8px;
  height: 8px;
  background: var(--c-seal);
  display: inline-block;
  margin-left: 7px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--c-slate);
  transition: color 0.2s ease-out;
}

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

/* --- eyebrow --- */
.eyebrow {
  font-family: var(--font-utility);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-slate);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--c-seal);
  flex: none;
}

.eyebrow--ondark { color: rgba(253, 253, 251, 0.75); }

.eyebrow--center { justify-content: center; }

/* --- hero --- */
.hero {
  background: var(--c-ink);
  color: var(--c-paper);
  min-height: 85vh;
  min-height: 85dvh;
  display: flex;
  align-items: center;
  padding-block: clamp(80px, 12vh, 140px);
}

.hero .container { width: 100%; }

.hero-copy {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-hero);
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-wrap: balance;
  margin-bottom: 28px;
}

.seal {
  display: inline-grid;
  place-items: center;
  width: 0.92em;
  height: 0.92em;
  margin-left: 0.22em;
  background: var(--c-seal);
  color: #fff;
  font-size: 0.62em;
  font-weight: 500;
  transform: translateY(0.08em);
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(253, 253, 251, 0.85);
  margin-bottom: 40px;
}

/* hero load animation(1回だけの静かな導入) */
@media (prefers-reduced-motion: no-preference) {
  .hero-item {
    opacity: 0;
    transform: translateY(14px);
    animation: hero-rise 0.6s ease-out forwards;
  }
  .hero-item:nth-child(2) { animation-delay: 0.12s; }
  .hero-item:nth-child(3) { animation-delay: 0.24s; }
  .hero-item:nth-child(4) { animation-delay: 0.36s; }

  @keyframes hero-rise {
    to { opacity: 1; transform: none; }
  }
}

/* --- button --- */
.btn {
  display: inline-block;
  background: var(--c-seal);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 14px 34px;
  border-radius: 3px;
  transition: background-color 0.2s ease-out;
}

.btn:hover { background: var(--c-seal-dark); }

/* --- sections --- */
.section { padding-block: clamp(64px, 9vw, 104px); }

.section--alt { background: var(--c-silver); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h2);
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-wrap: balance;
  margin-bottom: 36px;
}

.lead {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-wrap: balance;
  margin-top: -16px;
  margin-bottom: 40px;
}

/* scroll reveal(JS が有効なときだけ適用される) */
@media (prefers-reduced-motion: no-preference) {
  .will-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  .will-reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* --- cards(事業の柱) --- */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card {
  background: var(--c-paper);
  border: 1px solid var(--c-silver);
  border-radius: 4px;
  padding: 34px 32px;
}

.section .card { background: #fff; }

.card h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: 6px;
}

.card-lead {
  font-family: var(--font-utility);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-seal);
  margin-bottom: 14px;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--c-slate);
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 1px 8px;
  margin-left: 10px;
  vertical-align: 0.15em;
}

/* --- features(Parali) --- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  background: var(--c-paper);
  border: 1px solid rgba(58, 80, 104, 0.14);
  border-radius: 4px;
  padding: 28px 26px;
}

.feature h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature p {
  font-size: 0.95rem;
  color: var(--c-slate);
}

.note {
  margin-top: 32px;
  font-size: 0.9rem;
  color: var(--c-slate);
}

.note a { color: var(--c-seal); }

/* --- trust --- */
.trust-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.trust-item {
  border-top: 2px solid var(--c-ink);
  padding-top: 22px;
}

.trust-item h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: 12px;
}

.trust-item p { color: var(--c-slate); }

/* --- corporate --- */
.corp-table { max-width: 720px; }

.corp-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding-block: 18px;
  border-bottom: 1px solid rgba(58, 80, 104, 0.18);
}

.corp-row dt {
  font-weight: 700;
  font-size: 0.95rem;
}

.corp-row dd a {
  color: var(--c-seal);
  text-underline-offset: 3px;
}

/* --- contact --- */
.section--contact { text-align: center; }

.section--contact .section-title { margin-bottom: 20px; }

.section--contact p { margin-bottom: 28px; }

.contact-mail {
  font-family: var(--font-utility);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-slate);
  margin-bottom: 0 !important;
}

/* --- footer --- */
.site-footer {
  background: var(--c-ink);
  color: rgba(253, 253, 251, 0.8);
  padding-block: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-brand {
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--c-paper);
  display: inline-flex;
  align-items: center;
}

.footer-copy { font-size: 0.85rem; }

/* --- responsive --- */
@media (max-width: 720px) {
  .cards,
  .features,
  .trust-items {
    grid-template-columns: 1fr;
  }

  .corp-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .hero { min-height: 70vh; min-height: 70dvh; }

  :root { --fs-h2: 1.6rem; }
}
