/* 株式会社安江商会 コーポレートサイト
   デザイン方針: 端正な和の印象（見出し=明朝体、本文=ゴシック体）
   色はロゴから取る: 墨 #231916 / 朱 #ed722f */

/* 見出し用の明朝体。外部配信を使わず自社サーバーに置く（閲覧者の情報を第三者に送らないため）
   サイトで使う文字だけに絞ったファイル。見出しに新しい漢字を使うときは scripts/build_font_subset.py で作り直す
   Noto Serif JP: SIL Open Font License 1.1（assets/fonts/OFL.txt） */
@font-face {
  font-family: "Noto Serif JP Subset";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/noto-serif-jp-600-subset.woff2") format("woff2");
}

:root {
  --ink: #231916;
  --ink-sub: #5b524e;
  --line: #e2ddd8;
  --bg: #ffffff;
  --bg-alt: #f7f5f2;
  --accent: #ed722f;        /* ロゴの朱。装飾専用 */
  --accent-text: #b4501a;   /* 白地で文字に使う濃い朱（コントラスト確保） */
  --serif: "Noto Serif JP Subset", "Hiragino Mincho ProN", "Yu Mincho", serif;
  /* 本文は端末に入っている書体を使う（Web フォントを読み込まない） */
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
  --container: 960px;
  --gutter: 20px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-text); }
a:hover { text-decoration: none; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow { max-width: 680px; }

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand img { width: 150px; height: auto; }
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--accent-text); }

/* ファーストビュー */
.hero {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}
.hero-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-sub);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-label::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.hero-copy {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.5;
  letter-spacing: 0.08em;
  margin: 0 0 32px;
}
.hero-lead {
  max-width: 34em;
  color: var(--ink-sub);
  margin: 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 56px;
}
.hero-photo { margin: 0; }
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 45% center;
}

/* 写真（事業内容） */
.business-photo { margin: 28px 0 0; max-width: 560px; }
.business-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photo-note { margin-top: 6px; font-size: 12px; color: var(--ink-sub); }

/* 試作用の仮枠（画像の差し替え後に削除） */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  color: var(--ink-sub);
  background: var(--bg-alt);
  border: 1px dashed #c9c1ba;
}
.hero-photo.placeholder { aspect-ratio: 4 / 5; }
.business-photo.placeholder { aspect-ratio: 3 / 2; }

/* セクション共通 */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 48px; }
.section-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 6px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 30px);
  letter-spacing: 0.1em;
  margin: 0;
}
.sub-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.08em;
  margin: 64px 0 20px;
}

/* 事業内容 */
.business-list { display: grid; gap: 56px; }
.business-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.business-num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1;
  color: var(--accent);
  margin: 4px 0 0;
}
.business-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}
.business-body p { max-width: 40em; }
.brand-logo {
  margin: 28px 0 0;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.brand-logo img { width: 180px; }
.brand-logo figcaption { font-size: 12px; color: var(--ink-sub); }

/* 会社概要・沿革 */
.info-table,
.history { margin: 0; border-top: 1px solid var(--ink); }
.info-table > div,
.history > div {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.info-table dt,
.history dt { font-weight: 500; color: var(--ink-sub); }
.info-table dd,
.history dd { margin: 0; }

/* お問い合わせ */
.contact-form { margin-top: 36px; display: grid; gap: 24px; }
.field label { display: block; font-weight: 500; margin-bottom: 8px; }
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid #cfc8c2;
  border-radius: 2px;
  background: #fff;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}
.field-check { display: flex; align-items: center; gap: 10px; }
.field-check label { margin: 0; font-weight: 400; }
.field-check input { width: 18px; height: 18px; accent-color: var(--accent-text); }
.req,
.opt {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  padding: 4px 6px;
  margin-left: 6px;
  vertical-align: 2px;
}
.req { background: var(--accent-text); color: #fff; }
.opt { background: var(--line); color: var(--ink-sub); }
.btn {
  justify-self: start;
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #fff;
  background: var(--ink);
  border: 0;
  padding: 16px 56px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: var(--accent-text); }

/* 迷惑送信対策の入力欄（人には見せない） */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 送信結果ページ */
.result { padding: 72px 0 112px; }
.result-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 26px);
  letter-spacing: 0.08em;
  margin: 0 0 24px;
}
.result ul { padding-left: 1.4em; color: var(--accent-text); }
.result .btn { display: inline-block; text-decoration: none; margin-top: 16px; }

/* フッター */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
  font-size: 13px;
  color: var(--ink-sub);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-address { margin: 14px 0 0; }
.footer-nav a { color: var(--ink-sub); }
.copyright { text-align: center; margin: 40px 0 0; font-size: 12px; }

/* プライバシーポリシー */
.page-head { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.doc { padding: 56px 0 96px; }
.doc h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.06em;
  margin: 48px 0 12px;
}
.doc ul { padding-left: 1.4em; margin: 0 0 1em; }
.doc .doc-meta { margin-top: 56px; color: var(--ink-sub); font-size: 14px; }

/* スマートフォン */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  .header-inner { min-height: 56px; }
  .brand img { width: 118px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 12px; }
  .hero { padding: 56px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo img,
  .hero-photo.placeholder { aspect-ratio: 4 / 3; }
  .hero-copy { letter-spacing: 0.04em; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .business-item { grid-template-columns: 1fr; gap: 8px; }
  .info-table > div,
  .history > div { grid-template-columns: 1fr; gap: 2px; padding: 14px 2px; }
  .btn { justify-self: stretch; }
}
