/* =========================================================
   KUDO ENGINEERING — 共通スタイル
   方針: 依存なし・1ファイル・モバイルファースト
   色やサイズは :root の変数で一括変更できます
   ========================================================= */

:root {
  --color-text: #222;
  --color-muted: #666;
  --color-bg: #fff;
  --color-bg-soft: #f4f6f8;
  --color-line: #dde2e7;
  --color-accent: #b3121f;      /* NSX のレッド */
  --color-accent-dark: #8a0e18;
  --color-link: #0b5cad;
  --color-header: #111;
  --radius: 6px;
  --width: 960px;
  --font-ja: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif;
  --font-en: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-ja);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-wrap: anywhere;
}
/* 英語ページ用（/en/ 以下で lang="en" を指定すると適用） */
html:lang(en) body { font-family: var(--font-en); line-height: 1.65; }

img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--color-link); }
a:hover { color: var(--color-accent); }

.inner { max-width: var(--width); margin: 0 auto; padding: 0 16px; }

/* ---------- ヘッダー ---------- */
.site-header { background: var(--color-header); color: #fff; }
.site-header .inner { padding-top: 20px; padding-bottom: 12px; text-align: center; }
.brand {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: .12em;
}
.brand:hover { color: #fff; }
.tagline { margin: 4px 0 0; font-size: .8rem; color: #bbb; }
.lang-switch { margin: 6px 0 0; font-size: .85rem; }
.lang-switch a { color: #ddd; }

.global-nav { border-top: 1px solid #333; }
.global-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  max-width: var(--width);
}
.global-nav a {
  display: block;
  padding: 12px 14px;
  color: #fff;
  text-decoration: none;
  font-size: .95rem;
}
.global-nav a:hover, .global-nav a[aria-current="page"] { background: var(--color-accent); color: #fff; }

/* ---------- 本文 ---------- */
main { padding: 24px 0 48px; }

h1 { font-size: 1.5rem; line-height: 1.4; margin: 8px 0 20px; }
h2 {
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 40px 0 16px;
  padding: 8px 12px;
  border-left: 5px solid var(--color-accent);
  background: var(--color-bg-soft);
}
h3 { font-size: 1.1rem; margin: 28px 0 10px; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin-bottom: .3em; }

.lead { font-size: 1.05rem; }
.note { color: var(--color-muted); font-size: .9rem; }
.notice {
  border: 1px solid var(--color-accent);
  background: #fff6f6;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 0 0 1.5em;
}
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.warn { color: var(--color-accent); font-weight: 700; }

.hero-image { margin: 0 0 20px; }
.hero-image img { width: 100%; border-radius: var(--radius); }

figure { margin: 0 0 1.2em; }
figure img { border-radius: var(--radius); }
figcaption { font-size: .85rem; color: var(--color-muted); }
.photo-row { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 1em; }
.photo { max-width: 480px; }

/* 価格 */
.price {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 .5em;
}
.price small { font-size: .8rem; color: var(--color-muted); font-weight: 400; }

/* 定義リスト（仕様・特商法など） */
.spec { margin: 0 0 1.5em; border-top: 1px solid var(--color-line); }
.spec dt { font-weight: 700; padding: 10px 0 0; }
.spec dd { margin: 0; padding: 0 0 10px; border-bottom: 1px solid var(--color-line); }

/* ボタン */
.button {
  display: inline-block;
  padding: 12px 28px;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
}
.button:hover { background: var(--color-accent-dark); color: #fff; }

/* ---------- トップページのカード ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 0 0 1em; padding: 0; list-style: none; }
.card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  margin: 0;
}
.card a { display: block; color: inherit; text-decoration: none; height: 100%; }
.card a:hover { color: inherit; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.card-body { padding: 12px 16px 16px; }
.card-title { font-weight: 700; font-size: 1.05rem; margin: 0 0 4px; line-height: 1.5; }
.card-text { font-size: .9rem; color: var(--color-muted); margin: 0 0 6px; }
.card-price { font-weight: 700; color: var(--color-accent); margin: 0; }

/* ---------- フォーム ---------- */
.form { background: var(--color-bg-soft); border-radius: var(--radius); padding: 20px 16px; margin: 0 0 1.5em; }
.form-row { margin: 0 0 18px; }
.form-row > label, .form-row > legend { display: block; font-weight: 700; margin-bottom: 4px; padding: 0; }
.form fieldset { border: 0; padding: 0; min-width: 0; }
.required { color: var(--color-accent); font-size: .8rem; margin-left: .4em; }
.form input[type="text"],
.form input[type="email"],
.form input[type="number"],
.form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #b9c0c7;
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  font-size: 16px; /* iPhone で入力時に拡大されないよう 16px 以上 */
}
.form textarea { min-height: 10em; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--color-link); outline-offset: 1px; }
.choices { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.choices label { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-weight: 400; }
.choices input { width: 20px; height: 20px; margin: 0; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .submit { text-align: center; margin: 0; }

/* ---------- フッター ---------- */
.site-footer { background: var(--color-header); color: #bbb; font-size: .85rem; padding: 24px 0; text-align: center; }
.site-footer ul { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.site-footer a { color: #ddd; }
.site-footer small { display: block; }

/* ---------- タブレット・PC ---------- */
@media (min-width: 640px) {
  body { font-size: 1.0625rem; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  .brand { font-size: 2rem; }
  .tagline { font-size: .9rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .photo-row { grid-template-columns: repeat(2, 1fr); }
  .form { padding: 28px 32px; }
  .spec { display: grid; grid-template-columns: 12em 1fr; }
  .spec dt, .spec dd { padding: 12px 0; border-bottom: 1px solid var(--color-line); }
  .spec dt { padding-right: 1em; }
}
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .global-nav a { padding: 12px 24px; }
}
