/* =========================================
   FINAL NINE コーポレートサイト 共通スタイル
   トーン：落ち着いた会社案内（明朝の見出し・広い余白・細い罫線）
   ========================================= */

:root {
  --ink: #1A2233;
  --ink-soft: #4B5466;
  --muted: #7A8496;
  --bg: #FFFFFF;
  --paper: #F6F4EF;        /* 生成りの面 */
  --line: #E3DFD6;
  --navy: #1E2A40;
  --accent: #B8452F;       /* ロゴの朱を抑えた色 */
  --gold: #B08A4A;
  --max: 1080px;
  --serif: "Shippori Mincho B1", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --latin: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 2; letter-spacing: .03em;
  -webkit-font-smoothing: antialiased;
  /* 日本語の改行：ビルド時に文節の切れ目へ <wbr> を入れてある */
  word-break: keep-all; overflow-wrap: break-word; line-break: strict;
}
h1, h2, h3 { text-wrap: balance; }
p, li, td { text-wrap: pretty; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.latin { font-family: var(--latin); letter-spacing: .12em; }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo img { height: 64px; width: auto; }
.gnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 34px; align-items: center; }
.gnav a { text-decoration: none; font-size: 14px; letter-spacing: .08em; position: relative; padding: 4px 0; }
.gnav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--accent); transition: width .25s; }
.gnav a:hover::after, .gnav a[aria-current="page"]::after { width: 100%; }
.gnav .contact { border: 1px solid var(--ink); padding: 8px 20px; }
.gnav .contact::after { display: none; }
.gnav .contact:hover { background: var(--ink); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); margin: 6px 0; }

/* ---------- トップのヒーロー ---------- */
.hero { padding: 140px 0 120px; background: var(--paper); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: center; }
.hero-logo { width: 100%; height: auto; }
.hero .container { position: relative; z-index: 1; }
.hero .label { font-family: var(--latin); font-size: 15px; letter-spacing: .3em; color: var(--accent); }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, calc(3vw + 14px), 50px); line-height: 1.6; margin: 24px 0 28px; letter-spacing: .06em; }
.hero p { max-width: 600px; color: var(--ink-soft); margin: 0; }

/* ---------- 下層ページの見出し ---------- */
.page-head { padding: 96px 0 72px; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-head .latin { font-size: 15px; letter-spacing: .3em; color: var(--accent); }
.page-head h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, calc(2vw + 16px), 40px); margin: 10px 0 0; letter-spacing: .08em; }
.page-head p { margin: 18px 0 0; color: var(--ink-soft); max-width: 680px; }
.breadcrumb { font-size: 12.5px; color: var(--muted); margin-bottom: 28px; letter-spacing: .05em; }
.breadcrumb a { color: var(--muted); }

/* ---------- セクション ---------- */
section.sec { padding: 110px 0; }
section.sec.paper { background: var(--paper); }
.sec-head { margin-bottom: 56px; }
.sec-head .num { font-family: var(--latin); font-size: 15px; letter-spacing: .25em; color: var(--accent); display: flex; align-items: center; gap: 14px; }
.sec-head .num::after { content: ""; width: 48px; height: 1px; background: var(--accent); }
.sec-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, calc(1.6vw + 14px), 32px); line-height: 1.7; margin: 14px 0 0; letter-spacing: .06em; }
.sec-head p { margin: 18px 0 0; color: var(--ink-soft); max-width: 720px; }

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

/* 事業カード：罫線で区切る */
.biz { border-top: 1px solid var(--ink); padding-top: 26px; }
.biz .latin { font-size: 13px; color: var(--muted); }
.biz h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; margin: 8px 0 12px; line-height: 1.6; }
.biz p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.biz .more { display: inline-block; margin-top: 16px; font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--accent); color: var(--accent); }

/* 文章ブロック */
.prose p { margin: 0 0 1.4em; }
.prose .sign { text-align: right; font-family: var(--serif); margin-top: 2.4em; }
.prose .sign small { display: block; font-family: var(--sans); color: var(--muted); font-size: 13px; }

/* 会社情報テーブル */
.info { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.info th, .info td { text-align: left; vertical-align: top; padding: 26px 8px; border-bottom: 1px solid var(--line); }
.info th { width: 200px; font-weight: 500; font-family: var(--serif); }
.info ul { margin: 0; padding: 0; list-style: none; }
.todo { background: #FFF3C4; padding: 1px 6px; font-size: 13px; color: #7A5B00; }

/* 沿革 */
.history { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.history li { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 26px 8px; border-bottom: 1px solid var(--line); }
.history .yr { font-family: var(--latin); font-size: 22px; color: var(--accent); line-height: 1.5; }
.history h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.history p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* リンクの帯 */
.link-band { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.link-band a { display: block; padding: 34px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s; }
.link-band a:hover { background: var(--paper); }
.link-band .latin { font-size: 13px; color: var(--accent); }
.link-band h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; margin: 6px 0 6px; }
.link-band p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* 外部サイトへの案内 */
.sister { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; background: var(--navy); color: #fff; padding: 48px 52px; }
.sister .latin { color: var(--gold); font-size: 14px; }
.sister h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; margin: 8px 0 8px; }
.sister p { margin: 0; color: #C4CBD7; font-size: 15px; }
.btn { display: inline-block; padding: 14px 32px; border: 1px solid currentColor; text-decoration: none; font-size: 14px; letter-spacing: .1em; white-space: nowrap; transition: background .2s, color .2s; }
.sister .btn:hover { background: #fff; color: var(--navy); }
.btn.solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); }

/* お問い合わせ */
.contact-box { border: 1px solid var(--line); padding: 40px 44px; }
.contact-box h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; margin: 0 0 10px; }
.contact-box p { margin: 0 0 22px; color: var(--ink-soft); }

/* プライバシーポリシー */
.policy h2 { font-family: var(--serif); font-weight: 600; font-size: 20px; margin: 48px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.policy h2:first-child { margin-top: 0; }
.policy p, .policy li { color: var(--ink-soft); }
.policy ol, .policy ul { padding-left: 1.4em; }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy); color: #C4CBD7; padding: 72px 0 32px; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer img { height: 84px; width: auto; margin-bottom: 20px; }
.site-footer h4 { font-family: var(--latin); color: var(--gold); font-weight: 500; letter-spacing: .2em; font-size: 14px; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 22px; font-size: 12px; color: #8A93A4; font-family: var(--latin); letter-spacing: .12em; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-logo { width: 200px; order: -1; }
  .nav-toggle { display: block; }
  .gnav { position: fixed; inset: 84px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .gnav.open { display: block; }
  .gnav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; }
  .gnav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .gnav .contact { text-align: center; margin-top: 16px; }
  .cols-3, .link-band { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .logo img { height: 52px; }
  section.sec { padding: 76px 0; }
  .hero { padding: 96px 0 84px; }
  .cols-2 { grid-template-columns: 1fr; gap: 32px; }
  .info th, .info td { display: block; width: 100%; padding: 0 4px; border: 0; }
  .info th { padding-top: 22px; color: var(--accent); font-size: 14px; }
  .info td { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .history li { grid-template-columns: 1fr; gap: 4px; }
  .sister { grid-template-columns: 1fr; padding: 36px 28px; }
  .contact-box { padding: 30px 24px; }
}

/* 所在地の地図 */
.map { position: relative; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); margin-top: 28px; background: var(--paper); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 680px) { .map { aspect-ratio: 4 / 3; } }

/* ---------- お問い合わせフォーム ---------- */
.contact-form { max-width: 760px; border-top: 1px solid var(--ink); }
.contact-form .field { padding: 26px 0; border-bottom: 1px solid var(--line); }
.contact-form label { display: block; font-family: var(--serif); font-weight: 600; margin-bottom: 10px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"],
.contact-form select, .contact-form textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); padding: 12px 14px; border-radius: 0;
}
.contact-form textarea { resize: vertical; line-height: 1.8; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.contact-form .check { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-weight: 400; margin: 0; }
.contact-form .check input { width: 18px; height: 18px; accent-color: var(--accent); }
.contact-form .has-error input, .contact-form .has-error select, .contact-form .has-error textarea { border-color: var(--accent); background: #FFF8F6; }
.contact-form .err { color: var(--accent); font-size: 14px; margin: 8px 0 0; }
.contact-form .actions { padding-top: 36px; }
.contact-form button, .confirm-actions button { font: inherit; cursor: pointer; background: none; color: inherit; }
.contact-form button.solid, .confirm-actions button.solid { background: var(--ink); color: #fff; }
.req { display: inline-block; font-family: var(--sans); font-size: 11px; font-weight: 600; color: #fff; background: var(--accent); padding: 1px 8px; margin-left: 6px; vertical-align: 2px; letter-spacing: .05em; }
.form-notice { border-left: 3px solid var(--accent); background: #FFF8F6; padding: 14px 18px; margin: 0 0 28px; max-width: 760px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.confirm-table .pre { white-space: pre-wrap; }
.confirm-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
