/* ==========================================================================
   星火創世株式会社 コーポレートサイト 共通スタイル
   ファイル構成: index.html（会社案内） / koukoku.html（電子公告）
   配色: 墨 #0A0908 ／ 金(明) #F0C64A ／ 金(深) #A6790E ／ 紙 #F6F5F2
   ========================================================================== */

:root {
  --sumi: #0a0908;          /* 墨 — ヘッダー・フッター背景 */
  --sumi-soft: #171512;
  --kin-bright: #f0c64a;    /* 明るい金 — 暗背景上のアクセント */
  --kin-deep: #a6790e;      /* 深い金 — 明背景上のアクセント */
  --paper: #f6f5f2;         /* 紙 — 本文背景 */
  --ink: #1c1a17;           /* 本文文字色 */
  --grey: #6e6a63;          /* 補助文字色 */
  --hairline: #e2ded5;      /* 罫線 */
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.9;
  font-size: 15.5px;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--kin-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--kin-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- ナビゲーション ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 9, 8, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(240, 198, 74, 0.18);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.22em;
  color: #f3efe6;
}
.nav-brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.nav-logo { width: 30px; height: 30px; border-radius: 50%; display: block; }
.nav-brand:hover { text-decoration: none; color: var(--kin-bright); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: #c9c4b8;
  font-size: 13px;
  letter-spacing: 0.14em;
}
.nav-links a:hover { color: var(--kin-bright); text-decoration: none; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  background: var(--sumi);
  color: #f3efe6;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 24px 90px;
}
.hero::before {
  /* ロゴ背後の淡い金のグロー */
  content: "";
  position: absolute;
  left: 18%; top: 50%;
  width: 560px; height: 560px;
  transform: translate(-30%, -50%);
  background: radial-gradient(circle, rgba(240, 198, 74, 0.10) 0%, transparent 62%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
}
.hero-main { display: flex; align-items: center; gap: 44px; }
.hero-logo {
  width: 250px;
  height: auto;
  /* 黒背景のJPEGを暗背景に溶け込ませる */
  mix-blend-mode: screen;
  flex-shrink: 0;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4.6vw, 46px);
  letter-spacing: 0.3em;
  line-height: 1.5;
}
.hero-sub {
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.32em;
  color: #9d968a;
}
.hero-sub .en { color: var(--kin-bright); }

/* 縦書きの社是 — 本サイトの署名的要素 */
.hero-tagline {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 21px);
  letter-spacing: 0.42em;
  line-height: 2.4;
  color: #d9d2c2;
  border-right: 1px solid rgba(240, 198, 74, 0.45);
  padding-right: 26px;
  height: 300px;
  flex-shrink: 0;
}
.hero-tagline .accent { color: var(--kin-bright); }

/* 星火 — 微かな火花 */
.spark {
  position: absolute;
  color: var(--kin-bright);
  opacity: 0.22;
  font-size: 11px;
  pointer-events: none;
}

/* ---------- セクション共通 ---------- */
.section { max-width: 880px; margin: 0 auto; padding: 92px 24px 0; }
.section:last-of-type { padding-bottom: 100px; }

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  letter-spacing: 0.3em;
  color: var(--kin-deep);
  margin-bottom: 14px;
}
.section-label .star { font-size: 10px; }

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: 0.14em;
  margin-bottom: 34px;
}

/* ---------- 事業内容 ---------- */
.business-list { list-style: none; border-top: 1px solid var(--hairline); }
.business-list li {
  border-bottom: 1px solid var(--hairline);
  padding: 26px 4px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: baseline;
}
.business-list .b-name {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.1em;
}
.business-list .b-desc { color: var(--grey); font-size: 14px; }
.business-note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--grey);
}

/* ---------- 会社概要（定義リスト） ---------- */
.profile-table { border-top: 1px solid var(--hairline); }
.profile-table .row {
  display: grid;
  grid-template-columns: 190px 1fr;
  border-bottom: 1px solid var(--hairline);
}
.profile-table dt {
  padding: 17px 4px;
  font-size: 13.5px;
  letter-spacing: 0.18em;
  color: var(--kin-deep);
}
.profile-table dd { padding: 17px 4px; }

/* 未確定項目のプレースホルダ表示 */
.pending {
  color: var(--grey);
  border-bottom: 1px dotted #b5b0a5;
  font-size: 14px;
}

/* ---------- 公告・お問い合わせ ---------- */
.plain-block {
  border: 1px solid var(--hairline);
  background: #fff;
  padding: 30px 32px;
  font-size: 14.5px;
}
.plain-block p + p { margin-top: 12px; }

.contact-mail {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.06em;
}

/* ---------- 公告ページ専用 ---------- */
.koukoku-body { max-width: 760px; margin: 0 auto; padding: 130px 24px 100px; }
.koukoku-item { margin-top: 40px; }
.koukoku-item h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.14em;
  border-left: 3px solid var(--kin-deep);
  padding-left: 14px;
  margin-bottom: 16px;
}

/* ---------- フッター ---------- */
.site-footer {
  margin-top: 100px;
  background: var(--sumi);
  color: #8d867a;
  font-size: 12.5px;
  letter-spacing: 0.1em;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand { font-family: var(--serif); color: #cfc8b8; letter-spacing: 0.2em; }
.footer-inner a { color: #8d867a; }
.footer-inner a:hover { color: var(--kin-bright); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 820px) {
  .hero { min-height: auto; padding: 110px 24px 70px; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 40px; }
  .hero-main { flex-direction: column; align-items: flex-start; gap: 26px; }
  .hero-logo { width: 190px; }
  .hero-tagline {
    writing-mode: horizontal-tb;
    height: auto;
    border-right: none;
    border-left: 1px solid rgba(240, 198, 74, 0.45);
    padding: 4px 0 4px 18px;
    line-height: 2;
  }
  .business-list li, .profile-table .row { grid-template-columns: 1fr; gap: 4px; }
  .profile-table dt { padding-bottom: 0; }
  .profile-table dd { padding-top: 4px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 12px; letter-spacing: 0.08em; }
}

/* 狭い画面ではナビの小ロゴを非表示（ナビが折り返さないように） */
@media (max-width: 820px) {
  .nav-logo { display: none; }
  .nav-brand { font-size: 15px; letter-spacing: 0.12em; }
  .nav-links { gap: 10px; }
  .nav-links a { white-space: nowrap; font-size: 11px; letter-spacing: 0.02em; }
}
