/* 株式会社双葉精密 — コーポレートサイト共通スタイル */
:root {
  --navy: #0d1b2a;
  --navy-2: #16283c;
  --cyan: #19a7c4;
  --accent: #ff8a00;          /* CTA専用 */
  --text: #1e242b;
  --text-muted: #5d6b78;
  --bg: #ffffff;
  --surface: #eef2f6;
  --border: #d8e0e8;
  --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px; --s12: 48px; --s16: 64px; --s20: 80px;
  --maxw: 1120px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px; line-height: 1.9; letter-spacing: .03em; color: var(--text); background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* header */
.header { position: sticky; top: 0; z-index: 100; background: var(--navy); color: #fff; }
.header-inner { max-width: var(--maxw); margin: 0 auto; padding: var(--s3) var(--s4); display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.brand { font-weight: 900; font-size: 1.1rem; text-decoration: none; color: #fff; }
.brand small { display: block; font-size: .6rem; font-weight: 500; color: #8fb8c9; letter-spacing: .2em; }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; background: none; border: 1px solid #33465a; border-radius: 8px; cursor: pointer; }
.nav-toggle span { height: 2px; background: #fff; border-radius: 2px; }
.gnav { display: none; }
.gnav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); border-bottom: 1px solid #33465a; padding: var(--s4); }
.gnav ul { list-style: none; display: grid; gap: 2px; }
.gnav a { text-decoration: none; font-size: .93rem; font-weight: 500; display: block; padding: var(--s3) var(--s4); border-radius: 8px; color: #d5dee6; }
.gnav a:hover, .gnav a[aria-current="page"] { background: var(--navy-2); color: #fff; }
.header-cta { display: none; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; padding: var(--s3) var(--s6); border-radius: 8px; white-space: nowrap; min-height: 44px; align-items: center; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .gnav { display: block; position: static; border: none; padding: 0; }
  .gnav ul { display: flex; gap: var(--s2); }
  .gnav a { padding: var(--s2) var(--s3); }
  .header-cta { display: inline-flex; }
}

/* page hero */
.page-hero { background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; padding: var(--s16) var(--s4); }
.page-hero-inner { max-width: var(--maxw); margin: 0 auto; }
.page-hero .en { font-size: .8rem; letter-spacing: .26em; color: var(--cyan); text-transform: uppercase; }
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 900; margin-top: var(--s2); }
.breadcrumb { max-width: var(--maxw); margin: 0 auto; padding: var(--s3) var(--s4); font-size: .8rem; color: var(--text-muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); }
.breadcrumb li + li::before { content: "›"; margin-right: var(--s2); }
.breadcrumb a { color: var(--text-muted); }

/* sections */
section { padding: var(--s20) var(--s4); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.sec-label { color: var(--cyan); font-weight: 700; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }
h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); font-weight: 900; line-height: 1.5; margin-top: var(--s2); }
.sec-lead { margin-top: var(--s4); color: var(--text-muted); max-width: 40em; }
.alt-bg { background: var(--surface); }

/* buttons */
.btn-primary { background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; padding: var(--s4) var(--s8); border-radius: 8px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.btn-primary:hover { opacity: .9; }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); text-decoration: none; font-weight: 700; padding: calc(var(--s4) - 2px) var(--s8); border-radius: 8px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* grids */
.grid-3 { display: grid; gap: var(--s4); margin-top: var(--s8); }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: var(--s8); margin-top: var(--s8); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; } }
.card { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: var(--s6); }
.card-body .tag { display: inline-block; background: var(--surface); color: var(--navy); font-size: .75rem; font-weight: 700; border-radius: 4px; padding: 2px 10px; }
.card-body h3 { font-size: 1.02rem; margin-top: var(--s2); }
.card-body p { font-size: .88rem; color: var(--text-muted); margin-top: var(--s2); }
.card-body dl { margin-top: var(--s3); font-size: .85rem; }
.card-body dt { float: left; clear: left; width: 5.5em; color: var(--text-muted); }
.card-body dd { margin-left: 6em; }

/* tables */
.table-wrap { overflow-x: auto; margin-top: var(--s8); border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.data-table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.data-table th { text-align: left; padding: var(--s4); color: var(--text-muted); font-weight: 500; vertical-align: top; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: var(--s4); border-bottom: 1px solid var(--border); }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: none; }
.data-table thead th { background: var(--navy); color: #fff; font-weight: 700; }
.data-table.profile th { width: 10em; }

/* forms */
.form { max-width: 640px; margin-top: var(--s8); display: grid; gap: var(--s6); }
.form-field label { display: block; font-weight: 700; font-size: .92rem; }
.form-field .req { color: var(--accent); font-size: .75rem; margin-left: var(--s2); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; margin-top: var(--s2); padding: var(--s3) var(--s4);
  border: 1px solid var(--border); border-radius: 8px; font: inherit; background: #fff; min-height: 48px;
}
.form-field textarea { min-height: 160px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.form-note { font-size: .82rem; color: var(--text-muted); }
.form button { justify-self: start; border: none; cursor: pointer; font: inherit; }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: var(--s3); opacity: .85; }
.cta-band .tel { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 900; display: block; margin-top: var(--s4); color: #fff; text-decoration: none; letter-spacing: .04em; }
.cta-band small { display: block; opacity: .7; font-size: .8rem; }
.cta-band .btn-primary { margin-top: var(--s6); }

/* footer */
footer { background: #0a1420; color: #b9c6d2; padding: var(--s12) var(--s4) var(--s8); font-size: .88rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; gap: var(--s8); }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1.2fr 1fr; } }
.footer-brand b { color: #fff; font-size: 1.05rem; }
.footer-brand p { margin-top: var(--s3); font-size: .82rem; }
.footer-nav ul { list-style: none; display: grid; gap: var(--s2); }
@media (min-width: 640px) { .footer-nav ul { grid-template-columns: 1fr 1fr; } }
.footer-nav a { color: #b9c6d2; text-decoration: none; padding: var(--s2) 0; display: inline-block; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { max-width: var(--maxw); margin: var(--s8) auto 0; border-top: 1px solid #23384d; padding-top: var(--s6); display: grid; gap: var(--s2); }
.sample-note { font-size: .74rem; color: #7f93a5; }
