/* =========================================================
   サンヨー化学株式会社 提案用デモサイト 共通スタイル
   ========================================================= */
:root {
  --navy: #16324f;
  --navy-deep: #0e2338;
  --green: #2e9e6b;
  --green-dark: #1f7a50;
  --bg: #f7f9fa;
  --white: #ffffff;
  --text: #24313c;
  --text-muted: #5c6b78;
  --line: #dde4e9;
  --maxw: 1080px;
  --radius: 10px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px;
  --shadow: 0 2px 14px rgba(22, 50, 79, .08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.85;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-dark); }
h1, h2, h3, h4 { font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; line-height: 1.5; color: var(--navy); }

/* ---- デモ注記バー ---- */
.demo-bar {
  background: var(--navy-deep); color: #cfe3d8; text-align: center;
  font-size: .74rem; letter-spacing: .06em; padding: 6px 12px;
}
.demo-bar b { color: #8fd6b2; }

/* ---- ヘッダー ---- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s4);
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.brand { text-decoration: none; color: var(--navy); font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; font-size: 1.12rem; letter-spacing: .04em; line-height: 1.2; }
.brand small { display: block; font-size: .62rem; color: var(--green-dark); font-weight: 500; letter-spacing: .18em; }
.gnav ul { list-style: none; display: flex; gap: var(--s6); }
.gnav a {
  text-decoration: none; color: var(--text); font-size: .9rem; font-weight: 500;
  padding: var(--s2) 0; border-bottom: 2px solid transparent; letter-spacing: .04em;
}
.gnav a:hover, .gnav a[aria-current="page"] { color: var(--green-dark); border-bottom-color: var(--green); }
.nav-cta {
  display: inline-block; background: var(--green); color: #fff !important; text-decoration: none;
  font-size: .85rem; font-weight: 700; padding: 9px 18px; border-radius: 999px; letter-spacing: .04em;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--green-dark); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; transition: .25s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .gnav {
    position: fixed; inset: 64px 0 auto 0; background: var(--white);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .3s ease; z-index: 99;
  }
  .gnav.open { transform: translateY(0); }
  .gnav ul { flex-direction: column; gap: 0; padding: var(--s4); }
  .gnav a { display: block; padding: var(--s3) var(--s2); border-bottom: 1px solid var(--line); }
  .gnav li:last-child a { border-bottom: none; }
  .header .nav-cta { display: none; }
}

/* ---- ヒーロー ---- */
.hero { position: relative; overflow: hidden; background: var(--navy-deep); }
.hero img { width: 100%; height: min(72vh, 560px); object-fit: cover; opacity: .5; }
.hero-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; max-width: var(--maxw); margin: 0 auto; padding: var(--s6) var(--s4); color: #fff; }
.hero-copy .en { color: #8fd6b2; font-size: .74rem; letter-spacing: .38em; text-transform: uppercase; font-weight: 500; }
.hero-copy h1 { color: #fff; font-size: clamp(1.5rem, 4.6vw, 2.5rem); font-weight: 700; letter-spacing: .1em; margin-top: var(--s3); text-shadow: 0 2px 16px rgba(0,0,0,.45); }
.hero-copy p.lead { margin-top: var(--s4); font-size: clamp(.92rem, 2vw, 1.05rem); max-width: 34em; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.hero-actions { margin-top: var(--s8); display: flex; gap: var(--s4); flex-wrap: wrap; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: .92rem; letter-spacing: .06em; padding: 13px 30px; border-radius: 999px; transition: .2s; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-outline { border: 1.5px solid var(--green-dark); color: var(--green-dark); }
.btn-outline:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* ---- 数字ストリップ ---- */
.stats { background: var(--navy); color: #fff; }
.stats ul { list-style: none; max-width: var(--maxw); margin: 0 auto; padding: var(--s6) var(--s4); display: grid; grid-template-columns: 1fr; gap: var(--s4); text-align: center; }
@media (min-width: 640px) { .stats ul { grid-template-columns: repeat(4, 1fr); } }
.stats .num { display: block; font-family: "Zen Kaku Gothic New", sans-serif; font-size: 1.5rem; font-weight: 700; color: #8fd6b2; line-height: 1.3; }
.stats .num small { font-size: .85rem; }
.stats .label { font-size: .76rem; letter-spacing: .1em; opacity: .85; }

/* ---- セクション共通 ---- */
section { padding: var(--s16) var(--s4); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.alt-bg { background: var(--white); }
.sec-head { margin-bottom: var(--s10); }
.sec-head .en { color: var(--green-dark); font-size: .72rem; letter-spacing: .34em; text-transform: uppercase; font-weight: 700; }
.sec-head h2 { font-size: clamp(1.35rem, 3.2vw, 1.8rem); letter-spacing: .08em; margin-top: var(--s2); }
.sec-head .sec-lead { margin-top: var(--s4); color: var(--text-muted); max-width: 42em; }
.sec-head.center { text-align: center; }
.sec-head.center .sec-lead { margin-left: auto; margin-right: auto; }

/* ---- カード ---- */
.card-grid { display: grid; gap: var(--s6); grid-template-columns: 1fr; }
@media (min-width: 720px) { .card-grid.cols2 { grid-template-columns: 1fr 1fr; } .card-grid.cols3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-body { padding: var(--s6); flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.08rem; letter-spacing: .06em; }
.card-body p { font-size: .9rem; color: var(--text-muted); margin-top: var(--s3); flex: 1; }
.card-link { margin-top: var(--s4); font-size: .88rem; font-weight: 700; color: var(--green-dark); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* ---- 強みグリッド ---- */
.strength-grid { display: grid; gap: var(--s6); grid-template-columns: 1fr; }
@media (min-width: 720px) { .strength-grid { grid-template-columns: repeat(3, 1fr); } }
.strength { background: var(--white); border-top: 3px solid var(--green); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); padding: var(--s8) var(--s6); }
.strength .no { font-family: "Zen Kaku Gothic New", sans-serif; color: var(--green); font-size: .8rem; font-weight: 700; letter-spacing: .3em; }
.strength h3 { font-size: 1.1rem; margin-top: var(--s2); letter-spacing: .06em; }
.strength p { font-size: .9rem; color: var(--text-muted); margin-top: var(--s3); }

/* ---- 2カラム画像+文 ---- */
.split { display: grid; gap: var(--s8); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s12); } .split.rev > .split-img { order: 2; } }
.split-img img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.split-body h3 { font-size: 1.25rem; letter-spacing: .06em; }
.split-body p { margin-top: var(--s4); font-size: .95rem; }
.split-body ul { margin: var(--s4) 0 0 1.3em; font-size: .92rem; }
.split-body .btn { margin-top: var(--s6); }

/* ---- ニュース ---- */
.news-list { list-style: none; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a, .news-list .row { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); padding: var(--s4) var(--s2); text-decoration: none; color: var(--text); align-items: baseline; }
.news-list time { color: var(--text-muted); font-size: .84rem; font-family: "Zen Kaku Gothic New", sans-serif; white-space: nowrap; }
.news-tag { font-size: .68rem; font-weight: 700; color: var(--green-dark); border: 1px solid var(--green); border-radius: 999px; padding: 1px 10px; white-space: nowrap; }
.news-list .title { font-size: .92rem; }

/* ---- テーブル ---- */
.table-wrap { overflow-x: auto; }
table.spec { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); font-size: .92rem; }
table.spec th, table.spec td { padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.spec th { width: 30%; min-width: 9em; background: #eef3f1; color: var(--navy); font-weight: 700; white-space: nowrap; }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: none; }

/* ---- 品目カテゴリ ---- */
.cat-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-top: var(--s8); }
.cat-head { display: flex; align-items: center; gap: var(--s4); padding: var(--s5) var(--s6); background: var(--navy); }
.cat-head h3 { color: #fff; font-size: 1.05rem; letter-spacing: .1em; }
.cat-head .en { color: #8fd6b2; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; }
.cat-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.cat-table th, .cat-table td { padding: var(--s3) var(--s6); border-bottom: 1px solid var(--line); text-align: left; }
.cat-table th { width: 26%; min-width: 8.5em; color: var(--navy); font-weight: 700; background: #eef3f1; }
.cat-table tr:last-child th, .cat-table tr:last-child td { border-bottom: none; }
.cat-table td { color: var(--text-muted); }

/* ---- 沿革 ---- */
.timeline { list-style: none; position: relative; padding-left: var(--s8); }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-bottom: var(--s6); }
.timeline li::before { content: ""; position: absolute; left: calc(-1 * var(--s8) + 3px); top: 9px; width: 13px; height: 13px; border-radius: 50%; background: var(--green); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.timeline .t-year { font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; color: var(--navy); font-size: .95rem; }
.timeline .t-body { font-size: .92rem; color: var(--text-muted); }

/* ---- CTAバンド ---- */
.cta-band { position: relative; overflow: hidden; background: var(--navy-deep); padding: 0; }
.cta-band > img { width: 100%; height: 340px; object-fit: cover; opacity: .3; }
.cta-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: var(--s4); }
.cta-copy .en { color: #8fd6b2; font-size: .72rem; letter-spacing: .38em; text-transform: uppercase; font-weight: 700; }
.cta-copy h2 { color: #fff; font-size: clamp(1.2rem, 3.4vw, 1.6rem); letter-spacing: .12em; margin-top: var(--s3); }
.cta-copy p { margin-top: var(--s3); font-size: .92rem; opacity: .9; max-width: 36em; }
.cta-copy .btn { margin-top: var(--s6); }

/* ---- お問い合わせ ---- */
.contact-grid { display: grid; gap: var(--s8); grid-template-columns: 1fr; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1.2fr 1fr; } }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s8); }
.form-row { margin-bottom: var(--s5); }
.form-row label { display: block; font-size: .88rem; font-weight: 700; color: var(--navy); margin-bottom: var(--s2); }
.form-row .req { color: #c0392b; font-size: .72rem; margin-left: var(--s2); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 6px;
  font: inherit; font-size: .95rem; background: var(--bg);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--green); border-color: var(--green); background: #fff; }
.form-note { font-size: .8rem; color: var(--text-muted); margin-top: var(--s4); }
.tel-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s6); margin-bottom: var(--s6); }
.tel-card h3 { font-size: 1rem; letter-spacing: .08em; padding-bottom: var(--s3); border-bottom: 2px solid var(--green); margin-bottom: var(--s4); }
.tel-card .tel { font-family: "Zen Kaku Gothic New", sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.tel-card p { font-size: .86rem; color: var(--text-muted); margin-top: var(--s2); }

/* ---- ページタイトル ---- */
.page-head { background: linear-gradient(120deg, var(--navy-deep), var(--navy) 60%, #1d4d6b); color: #fff; padding: var(--s16) var(--s4); }
.page-head-inner { max-width: var(--maxw); margin: 0 auto; }
.page-head .en { color: #8fd6b2; font-size: .72rem; letter-spacing: .38em; text-transform: uppercase; font-weight: 700; }
.page-head h1 { color: #fff; font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: .1em; margin-top: var(--s2); }
.breadcrumb { max-width: var(--maxw); margin: 0 auto; padding: var(--s3) var(--s4); font-size: .78rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb span { margin: 0 var(--s2); }

/* ---- フッター ---- */
.footer { background: var(--navy-deep); color: #b9c7d2; font-size: .86rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: var(--s12) var(--s4) var(--s8); display: grid; gap: var(--s8); grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand .name { font-family: "Zen Kaku Gothic New", sans-serif; color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; }
.footer-brand p { margin-top: var(--s3); font-size: .82rem; line-height: 1.9; }
.footer h4 { color: #8fd6b2; font-size: .78rem; letter-spacing: .22em; margin-bottom: var(--s4); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: var(--s2); }
.footer a { color: #b9c7d2; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: var(--s4); font-size: .74rem; }
.sample-note { background: #0a1a2b; color: #7f93a5; font-size: .72rem; text-align: center; padding: var(--s4); line-height: 1.8; }
