/* ==========================================================
   UNSER corporate site — 案B「ポスター/カラーバンド型」共通CSS
   ========================================================== */

:root {
  --paper: #F4F0E8;
  --paper-bright: #FBF9F3;
  --ink: #17150F;
  --ink-60: rgba(23, 21, 15, 0.6);
  --ink-40: rgba(23, 21, 15, 0.4);
  --line: rgba(23, 21, 15, 0.16);
  --line-strong: rgba(23, 21, 15, 0.85);
  --navy: #1D3557;
  --navy-deep: #14263F;
  --vermilion: #E8442B;
  --vermilion-deep: #C93419;
  --teal: #1F8A78;
  --teal-deep: #15614F;
  --mustard: #E5A41C;
  --paper-on-dark: #F4F0E8;

  --accent: var(--vermilion);
  --btn-radius: 999px;

  --font-ja: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-ja-serif: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --font-en: "Archivo", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ---------- accessibility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 12px 24px; font-size: 14px; font-weight: 700;
}
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--mustard); outline-offset: 2px;
}
body {
  margin: 0;
  font-family: var(--font-ja);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 900; letter-spacing: 0.01em; }
img { max-width: 100%; display: block; }

.en {
  font-family: var(--font-en);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.serif { font-family: var(--font-ja-serif); }

/* ---------- layout ---------- */
.container { max-width: 1320px; margin: 0 auto; padding: 0 56px; }
.band { padding: 96px 0 104px; }
.band--paper { background: var(--paper); }
.band--bright { background: var(--paper-bright); border-top: 1.5px solid var(--line-strong); }
.band--navy { background: var(--navy); color: var(--paper-on-dark); }
.band--navy-deep { background: var(--navy-deep); color: var(--paper-on-dark); }
.band--vermilion { background: var(--accent); color: #fff; }
.band--teal { background: var(--teal); color: #fff; }
.band--ink { background: var(--ink); color: var(--paper-on-dark); }

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 56px; position: relative; z-index: 5;
}
.logo { font-family: var(--font-en); font-weight: 900; font-size: 28px; line-height: 1; letter-spacing: -0.01em; }
.logo b { color: var(--accent); }
.site-nav { display: flex; gap: 36px; }
.site-nav a { font-size: 14.5px; font-weight: 700; opacity: 0.92; transition: opacity 0.15s; }
.site-nav a:hover, .site-nav a.active { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.site-header .btn { white-space: nowrap; }
.header--light { color: var(--ink); }
.header--dark { color: var(--paper-on-dark); }
.header--dark .logo b { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px; font-size: 15px; font-weight: 700;
  border-radius: var(--btn-radius); cursor: pointer; border: none;
  font-family: var(--font-ja); line-height: 1.4;
  transition: transform 0.15s, opacity 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn--fill { background: var(--accent); color: #fff; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--mustard { background: var(--mustard); color: var(--ink); }
.btn--white { background: #fff; color: var(--accent); }
.btn--outline { background: transparent; border: 1.5px solid currentColor; }
.btn--lg { padding: 20px 40px; font-size: 17px; }
.btn--sm { padding: 11px 22px; font-size: 13.5px; }

/* ---------- type ---------- */
.kicker { font-family: var(--font-en); font-weight: 600; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; }
.display-1 { font-size: clamp(72px, 8.4vw, 124px); font-weight: 900; line-height: 1.16; }
.display-2 { font-size: clamp(44px, 4.3vw, 62px); font-weight: 900; line-height: 1.3; }
.display-3 { font-size: clamp(30px, 2.7vw, 38px); font-weight: 900; line-height: 1.45; }
.lede { font-size: 19px; line-height: 2.1; }
.muted { opacity: 0.72; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: 13px 0; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 0; animation: marquee 36s linear infinite; }
.marquee span { font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; padding-left: 56px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }
.marquee--mustard { background: var(--mustard); color: var(--ink); }
.marquee--ink { background: var(--ink); color: var(--paper); }

/* ---------- cards / misc ---------- */
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; background: rgba(255,255,255,0.16); padding: 5px 12px; border-radius: 999px; }
.tag--line { background: transparent; border: 1px solid rgba(255,255,255,0.5); }
.status-chip { font-family: var(--font-en); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.5); padding: 5px 12px; border-radius: 999px; }

.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: rgba(23,21,15,0.06); border: 1px dashed var(--ink-40);
  color: var(--ink-40); font-family: var(--font-en); font-size: 10px;
  letter-spacing: 0.25em; text-transform: uppercase;
}
.placeholder--on-dark { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); color: rgba(255,255,255,0.55); }

/* ---------- reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.2,0.7,0.3,1), transform 0.7s cubic-bezier(0.2,0.7,0.3,1); }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--paper-on-dark); padding: 90px 0 40px; }
.site-footer .display-1 { font-size: clamp(56px, 6vw, 88px); line-height: 1.25; }
.footer-meta {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px;
  margin-top: 80px; padding-top: 36px;
  border-top: 1px solid rgba(244,240,232,0.25);
  font-size: 13px; line-height: 2.1; opacity: 0.78;
}
.footer-meta .logo { font-size: 22px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 56px; }
.footer-nav a { font-size: 13.5px; font-weight: 700; opacity: 0.7; }
.footer-nav a:hover { opacity: 1; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 700; }
.field label .req { color: var(--accent); margin-left: 4px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea, .field select {
  font-family: var(--font-ja); font-size: 15px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 6px;
  padding: 14px 16px; outline: none; transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field .error-msg { font-size: 12px; color: var(--vermilion-deep); display: none; }
.field.has-error input, .field.has-error textarea { border-color: var(--vermilion); }
.field.has-error .error-msg { display: block; }
.check-pill { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 700; cursor: pointer; background: #fff; transition: all 0.15s; }
.check-pill input { accent-color: var(--accent); }
.check-pill:has(input:checked) { border-color: var(--accent); color: var(--accent); background: rgba(232,68,43,0.06); }

/* ---------- tables ---------- */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; padding: 20px 8px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.info-table th { width: 200px; font-weight: 700; color: var(--ink-60); font-size: 13.5px; }

/* ---------- breadcrumb-ish page head ---------- */
.page-hero { padding-top: 72px; padding-bottom: 88px; }
.page-hero .kicker { opacity: 0.85; }
.page-hero h1 { margin-top: 24px; }
.page-hero .lede { margin-top: 28px; max-width: 640px; opacity: 0.9; }

/* ---------- FAQ accordion（製品ページ共通・details/summary） ---------- */
.qa-list { margin-top: 44px; max-width: 880px; }
.qa-item { border-top: 1px solid var(--line); }
.qa-item:last-of-type { border-bottom: 1px solid var(--line); }
.qa-item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 4px; font-size: 16.5px; font-weight: 900; line-height: 1.5;
}
.qa-item summary::-webkit-details-marker { display: none; }
.qa-item summary::after {
  content: "+"; font-family: var(--font-en); font-weight: 900; font-size: 22px;
  color: var(--accent); flex-shrink: 0; transition: transform 0.15s;
}
.qa-item[open] summary::after { content: "−"; }
.qa-item .qa-a { padding: 0 4px 26px; font-size: 14.5px; line-height: 2.1; opacity: 0.82; max-width: 780px; }
.qa-item .qa-a a { font-weight: 700; border-bottom: 1.5px solid currentColor; }

/* ---------- product screen mockups（製品ページの作り物ダッシュボード共通シャーシ） ---------- */
.scr {
  background: var(--navy-deep); color: #fff;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; overflow: hidden;
  font-family: var(--font-en);
  box-shadow: 0 32px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.05);
}
.scr-bar { display: flex; align-items: center; gap: 8px; padding: 11px 18px; background: rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.08); }
.scr-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.scr-bar .dot--r { background: #ff5f57; } .scr-bar .dot--y { background: #febc2e; } .scr-bar .dot--g { background: #28c840; }
.scr-bar .ttl { margin: 0 auto; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.scr-top { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.scr-logo { font-size: 14px; font-weight: 900; letter-spacing: 0.04em; color: #fff; white-space: nowrap; }
.scr-live { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #3ddc84; background: rgba(61,220,132,0.12); border: 1px solid rgba(61,220,132,0.3); border-radius: 999px; padding: 4px 12px; }
.scr-live::before { content: ''; width: 6px; height: 6px; background: #3ddc84; border-radius: 50%; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@media (prefers-reduced-motion: reduce) { .scr-live::before { animation: none; } }
.scr-date { font-size: 10px; color: rgba(255,255,255,0.4); letter-spacing: 0.08em; margin-left: auto; white-space: nowrap; }
.scr-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid rgba(255,255,255,0.07); }
.scr-stat { padding: 12px 20px; border-right: 1px solid rgba(255,255,255,0.07); }
.scr-stat:last-child { border-right: none; }
.scr-stat .lab { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.scr-stat .val { font-size: 22px; font-weight: 900; margin-top: 3px; line-height: 1; }
.scr .g { color: #3ddc84; } .scr .y { color: #e5a41c; } .scr .b { color: #7fb2ff; }
.scr-cap { padding: 8px 20px; background: rgba(255,255,255,0.03); border-top: 1px solid rgba(255,255,255,0.07); font-size: 9.5px; color: rgba(255,255,255,0.35); letter-spacing: 0.06em; text-transform: uppercase; }
@media (max-width: 768px) {
  .scr-stats { grid-template-columns: repeat(2, 1fr); }
  .scr-stat:nth-child(2) { border-right: none; }
  .scr-stat:nth-child(1), .scr-stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.07); }
}

/* ---------- poster brand graphic（写真枠の代替・記事サムネの既定ビジュアル） ---------- */
.poster {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--navy); color: #fff; padding: 20px 22px;
}
.poster::before { content: ''; position: absolute; right: -38px; top: -38px; width: 168px; height: 168px; border-radius: 50%; border: 26px solid rgba(255,255,255,0.10); }
.poster::after { content: ''; position: absolute; right: 50px; top: 42px; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.poster > * { position: relative; }
.poster .pk { font-family: var(--font-en); font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.85; }
.poster .pt { font-family: var(--font-en); font-weight: 900; font-size: clamp(24px, 3.2vw, 40px); line-height: 1.02; letter-spacing: 0.01em; margin-top: 6px; }
.poster--vermilion { background: var(--accent); }
.poster--teal { background: var(--teal); }
.poster--navy { background: var(--navy); }
.poster--ink { background: var(--ink); }
.poster--mustard { background: var(--mustard); color: var(--ink); }
.poster--mustard::before { border-color: rgba(23,21,15,0.12); }
.poster--mustard::after { background: rgba(23,21,15,0.08); }

/* ==========================================================
   responsive — モバイル/レスポンシブ対応（引き継ぎ ①, 2026-06-12）
   検証幅: 375 / 768 / 1100 / 1440
   方針: 共通クローム（コンテナ/ヘッダー/フッター/見出し/テーブル）はここで一括。
        style="" のインライン多カラムグリッドは1カラムへ畳む。
        ページ固有のクラスグリッドは各HTMLの <style> 内 @media で個別対応。
   ========================================================== */

/* ---- tablet ---- */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .band { padding: 80px 0 88px; }
  .site-header { padding: 22px 32px; }
  .footer-meta { gap: 36px 32px; }
}

/* ---- 多カラム → 単カラム（小型タブレット以下） ---- */
@media (max-width: 900px) {
  /* インライン指定のグリッドだけを畳む（クラス定義のダッシュボード等には触れない） */
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .footer-meta { grid-template-columns: 1fr; gap: 28px; }
  .footer-meta > div[style*="justify-self: end"],
  .footer-meta > div[style*="text-align: right"] {
    justify-self: start !important; text-align: left !important;
  }
}

/* ---- phone ---- */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .band { padding: 56px 0 64px; }

  /* ヘッダー: 1段目=ロゴ+CTA、ナビは全幅で2段目へ折り返す */
  .site-header { flex-wrap: wrap; gap: 14px 16px; padding: 16px 20px; }
  .site-nav { order: 3; width: 100%; gap: 12px 22px; flex-wrap: wrap; }
  .site-nav a { font-size: 14px; }

  /* 見出し: clampの下限を下げて小画面に収める */
  .display-1 { font-size: clamp(38px, 11vw, 72px); }
  .display-2 { font-size: clamp(29px, 8vw, 44px); }
  .display-3 { font-size: clamp(23px, 6.2vw, 32px); line-height: 1.4; }
  .lede { font-size: 17px; line-height: 1.95; }
  .page-hero { padding-top: 48px; padding-bottom: 56px; }
  /* インラインclampの大型見出し（hero h1・index "PARTNER WANTED." 等の h2 含む）を
     小画面に収まるサイズへ一律縮小。英単語が折り返せない分も考慮した下限。 */
  h1[style*="clamp"], h2[style*="clamp"], h3[style*="clamp"] { font-size: clamp(28px, 9vw, 56px) !important; }

  /* CTA等の space-between 行は折り返す（インライン指定のみ） */
  [style*="justify-content: space-between"] { flex-wrap: wrap; }
  /* ボタンを横並びにしたインラインflex行（CTAバンド等）も折り返す。
     flex-shrink:0 で縮まないコンテナを max-width で抑え、ボタンを確実に折り返す */
  [style*="display: flex"]:has(> .btn) { flex-wrap: wrap; max-width: 100%; }

  /* フッター */
  .site-footer { padding: 64px 0 36px; }
  .site-footer .display-1 { font-size: clamp(34px, 9.5vw, 56px); }

  /* 情報テーブルはセル積み上げ */
  .info-table tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .info-table th, .info-table td { display: block; width: auto; padding: 4px 0; border-bottom: none; }
  .info-table th { color: var(--ink-60); font-size: 12.5px; }

  /* ボタン */
  .btn--lg { padding: 17px 30px; font-size: 16px; }
}

/* ---- small phone ---- */
@media (max-width: 430px) {
  .container { padding: 0 16px; }
  .site-nav { gap: 10px 16px; }
  .site-nav a { font-size: 13.5px; }
  .btn { padding: 14px 24px; }
  .btn--lg { padding: 16px 26px; font-size: 15.5px; }
  .btn--sm { padding: 10px 18px; }
}
