/* ==========================================================================
   Curioforj LP — Phase 1
   鉄黒 × 炉の橙 × 白。タイポグラフィ主体、モバイルファースト。
   ========================================================================== */

:root {
  /* color tokens — グレーはウォーム系1系統 */
  --ink: #1b1712;          /* 鉄の黒(純黒は使わない) */
  --ink-soft: #4d453c;
  --ink-mute: #7d746a;
  --surface: #faf8f5;      /* ウォームホワイト */
  --surface-alt: #f2eee8;
  --line: #e5dfd6;
  --forge: #c9481a;        /* 炉の橙(アクセントはこの1色のみ) */
  --forge-bright: #f07a3c; /* ダーク面上のアクセント */
  --on-dark: #f3efe9;
  --on-dark-mute: #b3a99d;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --duration: 240ms;
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: var(--surface);
  word-break: normal;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
}

/* ---- layout ---- */
.container {
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 6rem;
}

@media (min-width: 768px) {
  .container { padding-inline: 2.5rem; }
  .section { padding-block: 8.5rem; }
}

/* ---- 共通パーツ ---- */
.ember {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.6em;
  background: var(--forge);
  transform: rotate(45deg) translateY(-0.05em);
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forge);
  margin-bottom: 1.25rem;
}

.section-label .label-ja {
  margin-left: 1em;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}

.section-title {
  font-size: clamp(1.625rem, 3.4vw + 0.6rem, 2.5rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  font-feature-settings: "palt";
  text-wrap: balance;
}

.section-lead {
  max-width: 38rem;
  margin-top: 1.5rem;
  color: var(--ink-soft);
}

.step-num {
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: var(--forge);
  font-variant-numeric: tabular-nums;
}

.accent { color: var(--forge-bright); }

/* 見出しの改行を文節単位で制御 */
.seg { display: inline-block; }

/* 炉の縁を思わせる溶けた金属のライン(遊び心はこの一滴だけ) */
.forge-line {
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201, 72, 26, 0.35) 30%,
    var(--forge) 62%,
    var(--forge-bright) 82%,
    #ffb27a 100%);
}

/* ---- ボタン ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background-color var(--duration) var(--ease),
              transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.btn-primary {
  background: var(--forge);
  color: #fff;
  box-shadow: 0 2px 12px rgba(201, 72, 26, 0.25);
}

.btn-primary:hover {
  background: #b03e14;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 72, 26, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 6px rgba(201, 72, 26, 0.25);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--forge-bright);
  outline-offset: 3px;
}

/* ---- ヘッダー ---- */
.site-header {
  background: var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.75rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.06em;
  color: var(--on-dark);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.wordmark:hover { color: var(--forge-bright); }
.wordmark:focus-visible {
  outline: 2px solid var(--forge-bright);
  outline-offset: 4px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--on-dark-mute);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.header-cta:hover { color: var(--forge-bright); }
.header-cta:focus-visible {
  outline: 2px solid var(--forge-bright);
  outline-offset: 2px;
}

/* ---- ヒーロー ---- */
.hero {
  background: var(--ink);
  color: var(--on-dark);
  padding-block: 5.5rem 6rem;
  position: relative;
  /* 炉の残り火。メッシュ化しない、光源は1つだけ */
  background-image: radial-gradient(
    52rem 26rem at 12% 118%,
    rgba(201, 72, 26, 0.17),
    transparent 68%
  );
}

@media (min-width: 768px) {
  .hero { padding-block: 8.5rem 9.5rem; }
}

.hero-brand {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--on-dark-mute);
  margin-bottom: 2rem;
}

.hero-brand-en {
  letter-spacing: 0.08em;
}

.hero-title {
  font-size: clamp(1.875rem, 5.2vw + 0.6rem, 3.375rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
  font-feature-settings: "palt";
  max-width: 22em;
}

.hero-sub {
  max-width: 38rem;
  margin-top: 1.75rem;
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--on-dark-mute);
}

.hero-actions {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 0.9375rem;
  color: var(--on-dark-mute);
}

.hero .forge-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

/* ---- 提供サービス ---- */
.process {
  margin-top: 4rem;
  display: grid;
  gap: 2.5rem 3rem;
}

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

@media (min-width: 1024px) {
  .process { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}

.process-step {
  border-top: 2px solid var(--line);
  padding-top: 1.25rem;
  position: relative;
}

.process-step::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 2.5rem;
  height: 2px;
  background: var(--forge);
}

.step-title {
  margin-top: 0.5rem;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.step-body {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.side-note {
  margin-top: 4.5rem;
  font-size: 0.9375rem;
  color: var(--ink-mute);
}

/* ---- 強み ---- */
.section-alt {
  background: var(--surface-alt);
}

.strength-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 900px) {
  .strength-grid {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
  }
  .strength-head {
    position: sticky;
    top: 2rem;
    align-self: start;
  }
}

.strength-list {
  display: grid;
  gap: 0;
}

.strength-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
}

.strength-item:last-child {
  border-bottom: 1px solid var(--line);
}

.strength-body {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.8;
}

/* ---- 問い合わせ ---- */
.contact-card {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: 8px;
  padding: 3.5rem 1.75rem 4rem;
  overflow: hidden;
  background-image: radial-gradient(
    40rem 20rem at 88% -30%,
    rgba(201, 72, 26, 0.14),
    transparent 70%
  );
}

@media (min-width: 768px) {
  .contact-card { padding: 5rem 4.5rem 5.5rem; }
}

.forge-line-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.label-on-dark .label-ja { color: var(--on-dark-mute); }
.contact-card .section-label { color: var(--forge-bright); }

.contact-title {
  font-size: clamp(1.5rem, 3vw + 0.6rem, 2.25rem);
  font-weight: 700;
  line-height: 1.45;
  font-feature-settings: "palt";
}

.contact-lead {
  margin-top: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--on-dark-mute);
  max-width: 38rem;
}

.contact-mail {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  color: var(--on-dark-mute);
  user-select: all;
}

/* ---- フッター ---- */
.site-footer {
  background: var(--ink);
  padding-block: 2.5rem;
}

.copyright {
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--on-dark-mute);
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
