/* =========================================================
   AsuMade合同会社 — corporate site
   Minimal / premium / restrained.  Warm gold on dark base.
   Mobile-first.
   ========================================================= */

:root {
  --gold: #c99a3d;
  --gold-dark: #b0842f; /* hover用の一段濃いゴールド（明るい黄色に寄せない） */
  --ink: #0e0e0e;
  --ink-2: #161616;
  --ink-3: #1f1f1f;
  --line: rgba(255, 255, 255, 0.10);
  --text: #ececec;
  --text-dim: #a5a5a5;
  --white: #ffffff;

  --maxw: 1080px;
  --pad: 22px;
  --radius: 14px;

  --font-jp: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, sans-serif;
  --font-serif: "Cormorant Garamond", "Noto Sans JP", serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--text);
  background: var(--ink);
  line-height: 1.85;
  font-size: 16px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* 想定外の横スクロールを防ぐ安全網 */
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* アクセシビリティ: スキップリンク */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* =========================================================
   共通パーツ
   ========================================================= */
.section-eyebrow {
  font-family: var(--font-serif);
  letter-spacing: 0.22em;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 16px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover { background: var(--gold-dark); }

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* =========================================================
   ヘッダー
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000000; /* ロゴPNGの背景(#000)と一致させ、黒の縁が浮かないようにする */
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo {
  display: block;
  height: 52px;    /* 黒背景・白ロゴを黒ヘッダーにそのまま載せる（囲みなし） */
  width: auto;
}

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

.nav-menu {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-menu a {
  font-size: 0.92rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}
.nav-menu a:hover { color: var(--white); }
.nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  padding: 8px 18px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--gold); color: var(--ink) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  transition: transform 0.28s ease, opacity 0.28s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   ヒーロー
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(88vh, 780px);
  padding: clamp(90px, 16vh, 160px) 0 clamp(70px, 12vh, 130px);
  /* 上に文字可読性のためのオーバーレイ、下に生成した山並みの背景 */
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.55) 0%, rgba(8, 8, 10, 0.25) 42%, rgba(8, 8, 10, 0.60) 100%),
    url('/assets/hero-bg.svg') center bottom / cover no-repeat,
    var(--ink);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; }
.hero-title { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45); }
.hero-brand {
  font-family: var(--font-serif);
  letter-spacing: 0.1em; /* 単語を崩さない程度の軽い字間 */
  color: var(--gold);
  margin: 0 0 clamp(14px, 2.4vh, 24px); /* 主役タイトルとの間隔 */
  font-size: 1.85rem; /* STATEMENTラベルより一回り大きいブランド表記 */
  font-weight: 600;
}
.hero-title {
  font-size: clamp(2.5rem, 9vw, 4.6rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 clamp(48px, 9vh, 88px); /* サブコピー削除に伴い下に余白を確保 */
  color: var(--white);
  overflow-wrap: break-word;
}
.hero-sub {
  font-size: clamp(1rem, 3.4vw, 1.2rem);
  color: var(--text-dim);
  margin: 0 0 40px;
  max-width: 34em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* =========================================================
   ステートメント
   ========================================================= */
.statement { padding: clamp(64px, 12vh, 120px) 0; border-top: 1px solid var(--line); }
.statement-lead {
  font-size: clamp(1.7rem, 6vw, 2.7rem);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--white);
  margin: 0 0 30px;
  max-width: 18em;
}
.statement-lead span { display: inline-block; white-space: nowrap; } /* 各文を句点で1行に固定 */
.statement-body {
  color: var(--text-dim);
  max-width: 42em;
  margin: 0;
}

/* =========================================================
   アプローチ
   ========================================================= */
.approach {
  padding: clamp(64px, 12vh, 120px) 0;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}
.approach-title {
  font-size: clamp(1.7rem, 6vw, 2.7rem); /* ステートメントのリード文と統一 */
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--white);
  margin: 0 0 24px;
}
.approach-body {
  color: var(--text-dim);
  max-width: 40em;
  margin: 0;
}

/* =========================================================
   事業内容
   ========================================================= */
.business { padding: clamp(64px, 12vh, 120px) 0; border-top: 1px solid var(--line); }
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.card {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(201, 154, 61, 0.5); }
.card-no {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--gold);
  margin: 0 0 12px;
  letter-spacing: 0.1em;
}
.card-cat {
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin: 0 0 16px;
}
/* 見出し（短い言い切り）: 説明文より大きく、階層を明確に */
.card-title {
  font-size: clamp(1.5rem, 4vw, 2rem); /* ステートメント/アプローチより一段小さく保つ */
  line-height: 1.45;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--white);
  letter-spacing: 0.01em;
}
.card-text { color: var(--text-dim); margin: 0; font-size: 0.92rem; line-height: 1.75; }
.business-note { color: var(--text-dim); font-size: 0.85rem; margin: 26px 0 0; }

/* =========================================================
   会社概要
   ========================================================= */
.company { padding: clamp(64px, 12vh, 120px) 0; border-top: 1px solid var(--line); }
.company-list { margin: 0; }
.company-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.company-row dt {
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  font-weight: 500;
}
.company-row dd { margin: 0; color: var(--text); }
.company-row dd a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   お問い合わせ
   ========================================================= */
.contact { padding: clamp(64px, 12vh, 120px) 0; background: var(--ink-2); border-top: 1px solid var(--line); }
.contact-lead { color: var(--text-dim); max-width: 40em; margin: 0 0 36px; }

.contact-form { max-width: 620px; }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: 0.04em;
}
.req {
  display: inline-block;
  font-size: 0.68rem;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  letter-spacing: 0.08em;
  vertical-align: middle;
}
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 154, 61, 0.18);
}
.field textarea { resize: vertical; }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #e0685f; }

.field-error {
  color: #e79089;
  font-size: 0.82rem;
  margin: 6px 0 0;
  min-height: 1em;
}

/* honeypot（人間には見えない） */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-consent { margin-top: 4px; }
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.checkbox input { margin-top: 5px; accent-color: var(--gold); }
.checkbox a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.btn-submit { margin-top: 8px; width: 100%; }

.form-status {
  margin: 16px 0 0;
  font-size: 0.92rem;
  min-height: 1.2em;
}
.form-status.is-success { color: var(--gold); }
.form-status.is-error { color: #e79089; }

/* =========================================================
   フッター
   ========================================================= */
.site-footer {
  background: #000000; /* ロゴPNGの背景(#000)と一致させ、黒の縁が浮かないように */
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
}
.footer-inner { display: flex; flex-direction: column; gap: 26px; }
.footer-logo {
  display: block;
  height: 40px;
  width: auto;
  margin: 0;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a { color: var(--text-dim); font-size: 0.88rem; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--gold); }
.copyright { color: #6f6f6f; font-size: 0.8rem; margin: 0; letter-spacing: 0.06em; }

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .company-row {
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: baseline;
  }
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

/* モバイル: ハンバーガーメニュー */
@media (max-width: 719px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 16px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    align-items: stretch;
  }
  .nav-menu.is-open { transform: translateY(0); }
  .nav-menu li { width: 100%; }
  .nav-menu a {
    display: block;
    padding: 15px var(--pad);
    border-top: 1px solid var(--line);
  }
  .nav-cta {
    border: none;
    border-radius: 0;
    color: var(--gold) !important;
    text-align: left;
  }
  .nav-cta:hover { background: none; color: var(--gold-dark) !important; }
}

/* =========================================================
   スクロール・フェードイン（JS有効時のみ隠す）
   ========================================================= */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.js-anim .reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* カードは軽くずらして順に現れる */
.js-anim .cards .card { transition-delay: 0s; }
.js-anim .cards .card:nth-child(2) { transition-delay: 0.09s; }
.js-anim .cards .card:nth-child(3) { transition-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .js-anim .reveal { opacity: 1 !important; transform: none !important; }
}
