/* 東洋製綱株式会社 — 共通スタイル（PC・スマホ両対応）
   ブレークポイント: 〜599px スマホ / 600〜899px タブレット / 900px〜 PC */

:root {
  --ink: #222;
  --ink-soft: #5a5a5a;
  --charcoal: #1f1f1f;
  --purple: #442590;
  --purple-dark: #2f1a6b;
  --purple-soft: #ece8f6;
  --purple-mute: #8a7ab8;
  --g1: #f5f5f5;
  --g2: #ececec;
  --g3: #dcdcdc;
  --g4: #b9b9b9;
  --line: #d6d6d6;
  --wrap: 960px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--purple); }
a:hover { color: var(--purple-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #9b86e0;
  outline-offset: 2px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- ヘッダー ---------- */
.tagline {
  margin: 0; padding: 6px 0;
  background: var(--charcoal); color: #e6e6e6;
  font-size: 12px; line-height: 1.5; text-align: right;
}
.brand { background: var(--g2); }
.brand .wrap { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.brand a { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { width: 71px; height: auto; flex: none; }
.brand-name { width: 243px; height: auto; flex: none; }

.gnav { background: var(--charcoal); border-top: 1px solid #000; }
.gnav ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--wrap); display: flex; }
.gnav li { margin: 0; }
.gnav a {
  display: block; padding: 12px 22px; min-height: 44px;
  color: #fff; text-decoration: none; font-size: 15px; line-height: 1.5;
  border-left: 1px solid #3a3a3a;
}
.gnav li:last-child a { border-right: 1px solid #3a3a3a; }
.gnav a:hover { background: #3a3a3a; color: #fff; }
.gnav a[aria-current="page"] { background: var(--purple); }

/* ---------- ページ見出しバンド（下層ページ） ---------- */
.page-hero {
  background: linear-gradient(90deg, #d2d2d2 0%, var(--g2) 100%);
  border-bottom: 3px solid var(--purple);
}
.page-hero .wrap { padding-top: 22px; padding-bottom: 20px; }
.page-hero .en {
  display: block; margin: 0 0 2px;
  color: var(--purple-mute); font-size: clamp(22px, 5vw, 40px); line-height: 1.15;
  letter-spacing: .06em; font-weight: 300;
}
.page-hero h1 { margin: 0; font-size: clamp(22px, 4.2vw, 28px); line-height: 1.35; letter-spacing: .08em; }

.crumb { margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.crumb a { color: var(--purple); }

/* ---------- 本文 ---------- */
main { display: block; padding-bottom: 24px; }
.sec { margin: 36px 0; }
.sec-h {
  margin: 0 0 16px; padding: 2px 0 2px 14px;
  border-left: 5px solid var(--purple);
  font-size: 20px; line-height: 1.35; letter-spacing: .06em;
}
.sec-h small {
  display: block; margin-bottom: 2px;
  color: var(--purple-mute); font-size: 11px; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase;
}
.sub-h {
  margin: 28px 0 10px; font-size: 16px; letter-spacing: .04em;
  padding-bottom: 4px; border-bottom: 1px solid var(--line);
}
.sub-h::before { content: "▶"; color: var(--purple); font-size: .7em; margin-right: .5em; vertical-align: .1em; }
p { margin: 0 0 1em; }

/* 項目表（会社概要・沿革・ご注文など） */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0 2px; }
.tbl th, .tbl td { padding: 9px 14px; text-align: left; vertical-align: top; line-height: 1.7; }
.tbl th { width: 10em; background: var(--g3); font-weight: 400; white-space: nowrap; }
.tbl td { background: var(--g1); }
.tbl th::before { content: "●"; color: var(--purple); font-size: .7em; margin-right: .5em; vertical-align: .1em; }
.tbl.hist th { width: 9.5em; }
.tbl.hist th::before { content: none; }
.tbl.hist th { color: var(--purple); font-weight: 600; white-space: normal; }
.tbl .btn { margin-top: 8px; }

/* ボタン */
.btn {
  display: inline-block; min-height: 44px; padding: 9px 22px;
  background: var(--purple); color: #fff; border: 2px solid var(--purple); border-radius: 3px;
  font: inherit; font-size: 15px; line-height: 1.6; text-decoration: none; text-align: center; cursor: pointer;
}
.btn:hover { background: var(--purple-dark); border-color: var(--purple-dark); color: #fff; }
.btn.ghost { background: #fff; color: var(--purple); }
.btn.ghost:hover { background: var(--purple-soft); color: var(--purple-dark); }
.btn.small { min-height: 38px; padding: 5px 14px; font-size: 14px; }
.btn-row { text-align: center; margin: 24px 0 8px; }

/* ---------- トップページ ---------- */
.hero { margin: 0 auto; max-width: var(--wrap); }
.hero img { display: block; width: 100%; height: auto; aspect-ratio: 740 / 231; object-fit: cover; }
.home-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 24px 0; }
.card { background: var(--g2); padding: 18px 20px; }
.card h2 { margin: 0 0 12px; font-size: 14px; letter-spacing: .2em; color: #2b83a3; font-weight: 700; }
.jis { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: start; margin-top: 12px; }
.jis img { width: 76px; height: 76px; }
.jis p { margin: 0 0 .6em; font-size: 15px; line-height: 1.75; }
.jis-photo { display: block; width: 100%; max-width: 360px; height: auto; }
.news { list-style: none; margin: 0; padding: 0; }
.news li { margin: 0 0 14px; padding-left: 1.1em; position: relative; font-size: 15px; line-height: 1.75; }
.news li::before { content: "＞"; position: absolute; left: -.2em; color: var(--purple); }
.news time { display: block; color: var(--purple); font-weight: 600; }
.company-box { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--purple); padding: 16px 20px; margin: 0 0 28px; }
.company-box h2 { margin: 0 0 6px; font-size: 17px; }
.company-box dl { margin: 0; display: grid; grid-template-columns: 4.5em 1fr; gap: 2px 10px; font-size: 15px; line-height: 1.75; }
.company-box dt { color: var(--ink-soft); }
.company-box dd { margin: 0; }

/* ---------- 会社案内 ---------- */
.greeting { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
.greeting figure { margin: 0; text-align: center; }
.greeting figure img { width: 200px; height: auto; border: 1px solid var(--line); }
.greeting figcaption { margin-top: 6px; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.greeting .sign { text-align: right; margin-top: 1.2em; }
.map { margin: 18px 0 0; text-align: center; }
.map img { border: 1px solid var(--ink-soft); }

/* ---------- 製品紹介 ---------- */
.lay { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 10px; margin: 12px 0 18px; text-align: center; font-size: 14px; line-height: 1.5; }
.lay figure { margin: 0; }
.lay img { height: 111px; width: auto; max-width: 100%; }
.lay figcaption { margin-top: 4px; }

/* ---------- 製造工程 ---------- */
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; }
.step img { border: 1px solid var(--ink-soft); width: 100%; max-width: 280px; }
.step h2 { margin: 0 0 6px; font-size: 18px; letter-spacing: .12em; }
.step h2::before { content: "▶"; color: var(--purple); font-size: .7em; margin-right: .5em; vertical-align: .1em; }
.step p { margin: 0; }
.step-arrow { display: block; width: 0; height: 0; margin: 16px auto; border-left: 20px solid transparent; border-right: 20px solid transparent; border-top: 18px solid #a99bd2; }

/* ---------- リンク集 ---------- */
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { margin: 0 0 2px; padding: 12px 16px; background: var(--g1); border-left: 4px solid var(--purple); }
.link-list b { display: block; font-weight: 600; }
.link-list a { word-break: break-all; font-size: 15px; }

/* ---------- お問合せ ---------- */
.contact-info { display: grid; grid-template-columns: 1fr; gap: 6px 24px; margin: 0; }
.contact-info div { display: grid; grid-template-columns: 4.2em 1fr; gap: 4px 12px; align-items: baseline; }
.contact-info dt { background: var(--purple); color: #fff; text-align: center; font-size: 13px; letter-spacing: .15em; padding: 1px 0; }
.contact-info dd { margin: 0; }
.form-note { margin: 0 0 16px; }
.form { background: var(--g1); border: 1px solid var(--purple); border-top-width: 6px; padding: 8px 18px 22px; }
.field { padding: 14px 0; border-bottom: 1px dotted var(--purple); }
.field:last-of-type { border-bottom: 0; }
.field > label, .field > .lbl { display: block; margin-bottom: 6px; font-weight: 600; font-size: 15px; letter-spacing: .08em; }
.req { color: #c0392b; margin-left: .3em; font-weight: 400; }
.form input[type="text"], .form input[type="tel"], .form textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 16px; line-height: 1.5;
  color: var(--ink); background: #fff; border: 1px solid #8e8e8e; border-radius: 3px;
}
.form textarea { min-height: 10em; resize: vertical; }
.inline-fields { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.inline-fields input { flex: 1 1 0; min-width: 0; }
.inline-fields .sep { flex: none; color: var(--ink-soft); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 18px; }
.form-actions .btn { min-width: 9em; }

/* ---------- テクニカルデータ（スペック表） ---------- */
.scroll-hint { display: none; margin: 0 0 6px; font-size: 13px; color: var(--ink-soft); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0 8px; border: 1px solid var(--line); background: #fff; }
.spec { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.spec th, .spec td { border: 1px solid #fff; padding: 4px 8px; text-align: left; vertical-align: top; }
.spec th { background: var(--g3); font-weight: 400; }
.spec th.h1 { background: var(--g4); text-align: center; }
.spec td { background: var(--g1); vertical-align: middle; }
.spec td.num { text-align: right; }
.spec .tc { text-align: center; }
.spec .vt { vertical-align: top; }
.spec td img { display: block; margin: 6px auto; max-width: 100%; height: auto; }
.back-row { margin: 8px 0 0; }
.back-row a { display: inline-block; padding: 8px 4px; }

/* ---------- お知らせ（info） ---------- */
.notice-img { display: block; width: 100%; max-width: 701px; height: auto; margin: 12px auto; border: 1px solid var(--line); }

/* ---------- フッター ---------- */
.site-footer { margin-top: 24px; background: var(--charcoal); color: #cfcfcf; font-size: 14px; line-height: 1.75; }
.site-footer .wrap { padding-top: 22px; padding-bottom: 22px; }
.site-footer .co { margin: 0 0 4px; font-weight: 700; color: #fff; font-size: 15px; }
.site-footer address { font-style: normal; margin: 0 0 10px; }
.site-footer a { color: #fff; }
.site-footer .copy { margin: 0; font-size: 12px; color: #9a9a9a; }

/* ================== タブレット以上 ================== */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .home-grid { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .greeting { grid-template-columns: 1fr 200px; }
  .greeting figure { order: 2; }
  .lay { grid-template-columns: repeat(4, 1fr); }
  .step { grid-template-columns: 240px 1fr; gap: 20px; }
  .step img { max-width: 240px; }
  .contact-info { grid-template-columns: 1fr 1fr; }
  .contact-info div.wide { grid-column: 1 / -1; }
  .field { display: grid; grid-template-columns: 11em 1fr; gap: 6px 16px; align-items: start; }
  .field > label, .field > .lbl { margin-bottom: 0; padding-top: 10px; }
  .form { padding: 8px 28px 26px; }
  .form-actions { padding-left: calc(11em + 16px); }
}

/* ================== スマホ ================== */
@media (max-width: 599px) {
  body { font-size: 16px; }
  .tagline { text-align: left; font-size: 11px; }
  .brand .wrap { padding-top: 8px; padding-bottom: 8px; }
  .brand a { gap: 10px; }
  .brand-mark { width: 52px; }
  .brand-name { width: min(200px, calc(100vw - 60px - 10px - 2 * var(--gutter))); }

  .gnav ul { flex-wrap: wrap; padding: 0; }
  .gnav li { flex: 1 1 33.333%; }
  .gnav a { text-align: center; padding: 11px 4px; border-left: 0; border-top: 1px solid #3a3a3a; border-right: 1px solid #3a3a3a; font-size: 14px; }
  .gnav li:last-child a { border-right: 1px solid #3a3a3a; }
  .gnav ul li:nth-child(-n+3) a { border-top: 0; }

  .hero img { aspect-ratio: 5 / 3; object-position: 100% center; }
  .page-hero .wrap { padding-top: 16px; padding-bottom: 14px; }
  .sec { margin: 28px 0; }
  .sec-h { font-size: 18px; }

  .tbl th, .tbl td { display: block; width: auto; padding: 6px 12px; }
  .tbl th { padding-bottom: 2px; white-space: normal; }
  .tbl tr { display: block; margin-bottom: 2px; }
  .tbl { border-spacing: 0; }
  .tbl.hist th { padding-bottom: 0; }

  .card { padding: 16px; }
  .jis { grid-template-columns: 64px 1fr; gap: 12px; }
  .jis img { width: 64px; height: 64px; }
  .company-box { padding: 14px 16px; }

  .greeting figure img { width: 160px; }
  .scroll-hint { display: block; }
  .btn-row .btn { display: block; }
  .form { padding: 4px 14px 20px; }
  .form-actions .btn { flex: 1 1 40%; }
}

@media (max-width: 380px) {
  .gnav a { font-size: 13px; }
  .inline-fields { gap: 5px; }
}

@media (min-width: 900px) {
  :root { --gutter: 28px; }
  .gnav a { padding: 13px 26px; }
  .home-grid { gap: 28px; }
}

@media print {
  .gnav, .tagline, .btn-row, .form-actions { display: none; }
  body { font-size: 12pt; }
}
