/* =========================================================
   site-builder 雛形 CSS（既定の見た目：落ち着いた上質な会社案内）
   ・参加者が選んだ実例に寄せる時は、references/design.md に沿って
     このファイルを書き直してよい（例のサイトのコードは貼らない）
   ・色や文字だけ変える時は、下の :root の値を変える
   ========================================================= */

:root {
  --bg: #faf8f4;            /* ページの背景 */
  --surface: #ffffff;       /* 白い面（フォームの枠など） */
  --text: #22262e;          /* 本文 */
  --heading: #14213d;       /* 見出し */
  --muted: #646b78;         /* 補足 */
  --line: #e4ded3;          /* 罫線 */
  --accent: #b08d57;        /* 差し色・ボタン */
  --accent-hover: #9a7a48;
  --accent-text: #ffffff;   /* ボタンの文字 */
  --accent-soft: #e9dcc6;   /* 差し色のうすい版（暗い背景の上の小見出し） */
  --hero-1: #1f3358;        /* 画像が無い時の冒頭の色 */
  --hero-2: #14213d;
  --hero-3: #0b1426;
  --overlay: 11,20,38;      /* トップ画像に重ねる色（R,G,B） */
  --hero-overlay: .72;      /* 重ねる暗さ（0〜1。文字が読みにくければ上げる） */
  --band-bg: #14213d;       /* 「メーカーのためにできること」の帯 */
  --band-text: #ffffff;
  --band-muted: rgba(255,255,255,.72);
  --card-bg: rgba(255,255,255,.06);
  --card-border: rgba(255,255,255,.14);
  --card-icon-bg: rgba(176,141,87,.16);
  --card-icon: #e9dcc6;
  --cta-1: #faf8f4;
  --cta-2: #f2ece2;
  --footer-bg: #0b1426;

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --display-weight: 500;
  --radius: 14px;
  --btn-radius: 999px;
  --shadow: 0 1px 2px rgba(20,33,61,.06), 0 12px 32px -12px rgba(20,33,61,.18);
  --max: 1120px;
}
html[lang="ja"] {
  --font-display: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}


/* =========================================================
   ここから下は全部の型で共通（ふつうは触らない）
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
html[lang="ja"] body { line-height: 1.95; letter-spacing: .02em; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] .lead { word-break: auto-phrase; }  /* 日本語の見出しを文節で折り返す（対応ブラウザのみ） */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 18px; } }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: var(--btn-radius); text-decoration: none;
  font-weight: 600; font-size: 15px; letter-spacing: .02em;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.hero .btn-primary { background: var(--accent); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- ヘッダー（トップ画像の上では透明、下に進むと背景色） ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .3s ease, box-shadow .3s ease; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: .01em; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav a { color: rgba(255,255,255,.85); text-decoration: none; position: relative; }
.nav a:not(.lang-switch)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .25s ease; }
.nav a:not(.lang-switch):hover::after { transform: scaleX(1); }
.lang-switch { border: 1px solid rgba(255,255,255,.5); border-radius: var(--btn-radius); padding: 6px 16px; font-weight: 600; }
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-scrolled .brand, .site-header.is-scrolled .nav a { color: var(--heading); }
.site-header.is-scrolled .lang-switch { border-color: var(--heading); }
@media (max-width: 760px) { .nav a:not(.lang-switch) { display: none; } }

/* ---------- 冒頭（トップ画像） ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% 15%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%),
    radial-gradient(900px 500px at 10% 90%, color-mix(in srgb, var(--hero-1) 70%, transparent), transparent 60%),
    linear-gradient(160deg, var(--hero-1), var(--hero-2) 60%, var(--hero-3));
}
.hero-media { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); animation: hero-zoom 14s ease-out forwards; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(var(--overlay),var(--hero-overlay)) 0%, rgba(var(--overlay),calc(var(--hero-overlay) * .55)) 55%, rgba(var(--overlay),.15) 100%),
              linear-gradient(0deg, rgba(var(--overlay),.55), transparent 45%);
}
.hero .container { position: relative; z-index: 1; padding-top: 140px; padding-bottom: 72px; width: 100%; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-soft); margin: 0 0 22px; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--accent); }
.hero h1 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(36px, 6vw, 72px); line-height: 1.08; letter-spacing: -.01em; max-width: 14ch; margin: 0 0 24px; }
html[lang="ja"] .hero h1 { line-height: 1.35; max-width: 16em; font-size: clamp(30px, 4.6vw, 54px); letter-spacing: .02em; text-transform: none; }
.hero .lead { font-size: clamp(16px, 1.8vw, 19px); color: rgba(255,255,255,.86); max-width: 560px; margin: 0 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-keys { display: flex; flex-wrap: wrap; gap: 12px 36px; list-style: none; padding: 28px 0 0; margin: 56px 0 0; border-top: 1px solid rgba(255,255,255,.18); font-size: 14px; color: rgba(255,255,255,.8); }
.hero-keys li { display: flex; align-items: center; gap: 10px; }
.hero-keys svg { width: 18px; height: 18px; color: var(--accent-soft); flex: none; }
@keyframes hero-zoom { to { transform: scale(1); } }

/* ---------- セクション共通 ---------- */
section.block { padding: clamp(80px, 11vw, 136px) 0; }
.label { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 18px; }
.label .num { font-family: var(--font-display); font-size: 15px; letter-spacing: 0; color: var(--muted); }
.label::after { content: ""; width: 40px; height: 1px; background: var(--accent); }
.section-title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(30px, 4vw, 46px); line-height: 1.15; color: var(--heading); margin: 0 0 22px; letter-spacing: -.005em; }
html[lang="ja"] .section-title { line-height: 1.45; font-size: clamp(26px, 3.2vw, 38px); }
.section-intro { color: var(--muted); font-size: 17px; max-width: 620px; margin: 0; }

/* ---------- 会社概要（文章＋表／画像） ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-grid:not(:has(.about-media)) { grid-template-columns: 1fr; max-width: 820px; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }
.profile { margin: 40px 0 0; border-top: 1px solid var(--line); }
.profile div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.profile dt { color: var(--muted); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
html[lang="ja"] .profile dt { text-transform: none; font-size: 14px; }
.profile dd { margin: 0; color: var(--heading); }
.profile dd a { color: var(--heading); text-decoration-color: var(--accent); text-underline-offset: 4px; }
@media (max-width: 520px) { .profile div { grid-template-columns: 1fr; gap: 2px; } }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--shadow); position: relative; z-index: 1; }
.about-media::before { content: ""; position: absolute; inset: 28px -18px -18px 28px; border: 1px solid var(--accent); border-radius: var(--radius); }

/* ---------- メーカーのためにできること（帯） ---------- */
.services { position: relative; color: var(--band-text); overflow: hidden; background: var(--band-bg); }
.services-media { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .22; }
.services::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 90% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%); }
.services .container { position: relative; z-index: 1; }
.services .section-title { color: var(--band-text); }
.services .section-intro { color: var(--band-muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; margin-top: 56px; }
.card {
  position: relative; padding: 34px 30px 32px; border-radius: var(--radius);
  background: var(--card-bg); border: 1px solid var(--card-border); box-shadow: var(--shadow);
  backdrop-filter: blur(6px); transition: transform .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card .icon { width: 52px; height: 52px; border-radius: calc(var(--radius) * .8); display: grid; place-items: center; background: var(--card-icon-bg); color: var(--card-icon); margin-bottom: 26px; }
.card .icon svg { width: 26px; height: 26px; }
.card .no { position: absolute; top: 30px; right: 28px; font-family: var(--font-display); font-size: 15px; color: var(--band-muted); opacity: .7; }
.card h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; margin: 0 0 10px; line-height: 1.3; color: var(--band-text); }
.card p { margin: 0; color: var(--band-muted); font-size: 15px; }
.channels { margin-top: 64px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 32px; border-top: 1px solid var(--card-border); }
.channels h3 { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0; font-weight: 600; }
.channels ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.channels li { border: 1px solid var(--card-border); border-radius: var(--btn-radius); padding: 7px 18px; font-size: 14px; color: var(--band-text); background: color-mix(in srgb, var(--card-bg) 60%, transparent); }

/* ---------- お問い合わせへ誘う帯 ---------- */
.cta { padding: clamp(72px, 9vw, 112px) 0; text-align: center; background: linear-gradient(180deg, var(--cta-1), var(--cta-2)); }
.cta h2 { font-family: var(--font-display); font-weight: var(--display-weight); color: var(--heading); font-size: clamp(28px, 4vw, 44px); line-height: 1.2; margin: 0 auto 18px; max-width: 18ch; }
html[lang="ja"] .cta h2 { max-width: 20em; line-height: 1.5; font-size: clamp(24px, 3vw, 34px); }
.cta p { color: var(--muted); margin: 0 auto 34px; max-width: 560px; }

/* ---------- お問い合わせ ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 5vw, 72px); align-items: start; margin-top: 48px; }
.contact-grid:not(:has(.form-card)) { grid-template-columns: 1fr; }
.map-card { margin-top: 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--surface); }
.map-card iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 3px; }
.contact-list span { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
html[lang="ja"] .contact-list span { text-transform: none; letter-spacing: .04em; }
.contact-list a { color: var(--heading); font-weight: 600; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.form-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.form-card iframe { width: 100%; height: 1150px; border: 0; display: block; background: #fff; }

/* ---------- フッター ---------- */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,.7); padding: 64px 0 36px; font-size: 14px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; color: #fff; margin: 0 0 8px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a { text-decoration: none; color: rgba(255,255,255,.8); }
.footer-nav a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; font-size: 13px; color: rgba(255,255,255,.5); }

/* ---------- ふわっと出る動き（JS が動く時だけ。動きを減らす設定の人には出さない） ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.16,1,.3,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}
/* フォームを作るまで（iframe の src が差し込み用の目印のまま）は、エラー表示ではなく薄い色の面を見せる */
.form-card iframe[src^="{{"] { display: none; }
.form-card:has(iframe[src^="{{"]) { height: 420px; min-height: 0; background: var(--line); opacity: .5; }
