/* ==========================================================================
   AiYin Japan 公式サイト共通スタイル
   Brand: AiYin (愛印科技株式会社)
   Design: BtoB メーカー・信頼感重視・モバイルファースト
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }

/* ---------- Tokens ---------- */
:root {
  /* Brand colors (AiYin logo と既存パンフレット準拠) */
  --brand-orange: #DF5D21;       /* 実測値・ロゴ */
  --brand-orange-hover: #B84A15;
  --brand-orange-light: #FFF3EC;
  --brand-navy: #12395C;         /* 信頼感補色（フッター等） */
  --brand-navy-dark: #0B2740;

  /* Ink & Neutrals */
  --ink: #0A0A0A;
  --text: #1A202C;
  --text-sub: #4A5568;
  --text-mute: #718096;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --bg-soft: #F7F9FB;
  --bg-panel: #F0F3F6;

  /* Layout */
  --wrap: 1120px;
  --wrap-narrow: 880px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 6px;

  /* Type */
  --font-jp: "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", "Hiragino Sans", "Meiryo", system-ui, sans-serif;
  --font-en: "Montserrat", "Noto Sans JP", Arial, sans-serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-jp);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}
h1, h2, h3, h4 { line-height: 1.35; color: var(--ink); font-weight: 800; letter-spacing: -0.005em; }
p { line-height: 1.85; }
strong { font-weight: 700; }

/* ---------- Utilities ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-weight: 800; color: var(--ink);
}
.brand img { height: 32px; width: auto; }
.brand .brand-sub {
  display: none;
  font-family: var(--font-jp);
  font-size: 11px; color: var(--text-sub); font-weight: 500;
  letter-spacing: 0.02em;
}
@media (min-width: 768px) { .brand .brand-sub { display: inline; } }

.nav { display: none; }
.nav a {
  display: inline-block; padding: 8px 12px;
  font-size: 14px; font-weight: 600; color: var(--text);
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav a:hover { color: var(--brand-orange); }
.nav a.is-current { color: var(--brand-orange); border-bottom-color: var(--brand-orange); }
.nav .cta {
  margin-left: 8px; padding: 8px 14px;
  background: var(--brand-orange); color: #fff !important;
  border-radius: var(--radius); border-bottom: 0 !important;
}
.nav .cta:hover { background: var(--brand-orange-hover); color: #fff !important; }
@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: 4px; }
}

/* Hamburger */
.hamburger {
  display: inline-flex; flex-direction: column; justify-content: center;
  width: 40px; height: 40px; padding: 8px;
  color: var(--ink);
}
.hamburger span {
  display: block; height: 2px; background: currentColor;
  margin: 3px 0; transition: transform .2s, opacity .2s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
@media (min-width: 900px) { .hamburger { display: none; } }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
}
.nav-mobile.is-open { display: block; }
.nav-mobile ul { padding: 8px var(--gutter) 20px; }
.nav-mobile li { border-bottom: 1px solid var(--line); }
.nav-mobile li:last-child { border-bottom: 0; }
.nav-mobile a {
  display: block; padding: 14px 4px;
  font-size: 15px; font-weight: 600; color: var(--text);
}
.nav-mobile a.is-current { color: var(--brand-orange); }
.nav-mobile .cta {
  margin-top: 12px;
  background: var(--brand-orange); color: #fff !important;
  text-align: center; border-radius: var(--radius); padding: 14px;
}
@media (min-width: 900px) { .nav-mobile { display: none !important; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0F1E2E 0%, #12395C 45%, #143C6A 100%);
  color: #fff;
  padding: clamp(48px, 10vw, 120px) 0 clamp(56px, 10vw, 120px);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(223,93,33,0.20), transparent 60%),
    radial-gradient(500px 350px at 15% 90%, rgba(255,255,255,0.06), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-tag {
  display: inline-block;
  font-family: var(--font-en); font-size: 12px; font-weight: 700;
  letter-spacing: 0.25em; color: var(--brand-orange);
  padding: 6px 12px; border: 1px solid rgba(223,93,33,0.55);
  border-radius: 999px; margin-bottom: 20px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(28px, 6vw, 48px);
  line-height: 1.25; font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--brand-orange); }
.hero p.lead {
  font-size: clamp(15px, 2.2vw, 18px);
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px;
  font-size: 15px; font-weight: 700;
  border-radius: var(--radius);
  transition: background .15s, color .15s, border-color .15s, transform .1s;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand-orange); color: #fff;
}
.btn-primary:hover { background: var(--brand-orange-hover); }
.btn-ghost {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-outline {
  background: transparent; color: var(--brand-orange);
  border: 1.5px solid var(--brand-orange);
}
.btn-outline:hover { background: var(--brand-orange); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Section ---------- */
.section { padding: clamp(56px, 10vw, 96px) 0; }
.section-tight { padding: clamp(40px, 8vw, 64px) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--brand-navy-dark); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

.section-head { margin-bottom: clamp(32px, 6vw, 56px); }
.section-tag {
  display: inline-block;
  font-family: var(--font-en); font-size: 12px; font-weight: 700;
  letter-spacing: 0.25em; color: var(--brand-orange);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(24px, 4.5vw, 34px);
  font-weight: 900;
  margin-bottom: 8px;
}
.section-en {
  font-family: var(--font-en); font-size: 13px;
  color: var(--text-mute); letter-spacing: 0.08em;
}
.section-lead {
  margin-top: 16px;
  max-width: 720px;
  color: var(--text-sub);
  font-size: clamp(14px, 2vw, 16px);
}

/* ---------- Grid & Card ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px)  { .grid-2sp { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover {
  transform: translateY(-2px);
  border-color: #CBD5E0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-panel);
  display: flex; align-items: center; justify-content: center;
}
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.card-media .placeholder {
  color: var(--text-mute); font-size: 12px; letter-spacing: 0.05em;
}
.card-body { padding: 20px; }
.card-cat {
  display: inline-block;
  font-family: var(--font-en); font-size: 11px; font-weight: 700;
  letter-spacing: 0.15em; color: var(--brand-orange);
  margin-bottom: 8px;
}
.card-title { font-size: 18px; font-weight: 800; margin-bottom: 6px; color: var(--ink); }
.card-desc { font-size: 14px; color: var(--text-sub); line-height: 1.7; }
.card-more {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--brand-orange);
}
.card-more::after { content: "→"; transition: transform .15s; }
.card:hover .card-more::after { transform: translateX(3px); }

/* Feature (トップの強みボックス) */
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--brand-orange-light); color: var(--brand-orange);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-size: 20px; font-weight: 800;
  margin-bottom: 14px;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--text-sub); }

/* ---------- Product detail ---------- */
.pd-hero {
  padding: clamp(32px, 6vw, 56px) 0;
  background: var(--bg-soft);
}
.pd-hero-inner {
  display: grid; gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .pd-hero-inner { grid-template-columns: 1fr 1fr; gap: 48px; }
}
.pd-media {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pd-media img { max-width: 92%; max-height: 92%; object-fit: contain; }
.pd-info .cat {
  font-family: var(--font-en); font-size: 12px; letter-spacing: 0.2em;
  color: var(--brand-orange); font-weight: 700;
}
.pd-info h1 { font-size: clamp(24px, 4vw, 34px); margin: 10px 0 16px; }
.pd-info .subtitle { font-size: 16px; color: var(--text-sub); margin-bottom: 24px; }
.pd-info .price-note {
  padding: 12px 16px; background: var(--brand-orange-light);
  border-left: 3px solid var(--brand-orange);
  font-size: 14px; color: var(--ink); border-radius: 4px;
  margin-bottom: 20px;
}

/* Spec table */
.spec {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
}
.spec th, .spec td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left; vertical-align: top;
}
.spec th {
  width: 38%; background: var(--bg-soft);
  color: var(--text-sub); font-weight: 600;
  font-size: 13px;
}
.spec tr:first-child th, .spec tr:first-child td { border-top: 2px solid var(--brand-orange); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 2px solid var(--brand-orange); }
@media (max-width: 560px) {
  .spec th, .spec td { display: block; width: 100%; padding: 8px 12px; }
  .spec th { border-bottom: 0; padding-top: 12px; }
  .spec td { padding-top: 2px; padding-bottom: 12px; }
  .spec tr:first-child td { border-top: 0; }
}

/* Feature strip (製品詳細の3〜4カラム特徴) */
.pd-feats { display: grid; gap: 16px; }
@media (min-width: 640px) { .pd-feats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .pd-feats { grid-template-columns: repeat(4, 1fr); } }
.pd-feat {
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff;
}
.pd-feat .n {
  display: inline-block; padding: 3px 10px;
  background: var(--brand-orange); color: #fff;
  font-family: var(--font-en); font-size: 11px; font-weight: 700;
  border-radius: 999px; margin-bottom: 10px;
}
.pd-feat h4 { font-size: 15px; margin-bottom: 4px; }
.pd-feat p { font-size: 13px; color: var(--text-sub); line-height: 1.7; }

/* ---------- Info table (会社情報) ---------- */
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table th, .info-table td {
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  text-align: left; vertical-align: top;
}
.info-table th {
  width: 32%; background: var(--bg-soft); color: var(--text-sub);
  font-weight: 600;
}
@media (max-width: 640px) {
  .info-table th, .info-table td { display: block; width: 100%; padding: 10px 16px; }
  .info-table th { border-bottom: 0; padding-top: 14px; }
  .info-table td { padding-top: 2px; padding-bottom: 14px; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%);
  color: #fff;
  padding: clamp(48px, 8vw, 72px) 0;
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(22px, 4vw, 30px); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.8); margin-bottom: 24px; }
.cta-band .btn-primary { background: var(--brand-orange); }
.cta-band .btn-primary:hover { background: var(--brand-orange-hover); }

/* ---------- Form ---------- */
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--text); margin-bottom: 6px;
}
.form-row .req {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  background: var(--brand-orange); color: #fff;
  font-size: 10px; font-weight: 700; border-radius: 3px;
  vertical-align: middle;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(223,93,33,0.15);
}
.form-note {
  padding: 14px 16px; background: var(--bg-soft);
  border-radius: var(--radius); border-left: 3px solid var(--brand-orange);
  font-size: 13px; color: var(--text-sub); line-height: 1.7;
  margin-bottom: 24px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-navy-dark);
  color: rgba(255,255,255,0.75);
  padding: clamp(40px, 6vw, 56px) 0 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid; gap: 32px;
  margin-bottom: 32px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand img { height: 30px; margin-bottom: 12px; background: #fff; padding: 4px 8px; border-radius: 4px; }
.footer-brand .brand-name {
  color: #fff; font-weight: 700; font-size: 15px;
  margin-bottom: 6px;
}
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-col h4 {
  color: #fff; font-size: 13px; font-weight: 700;
  letter-spacing: 0.05em; margin-bottom: 12px;
}
.footer-col ul li { margin-bottom: 8px; font-size: 13px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.55);
}
.footer-bottom .en { font-family: var(--font-en); letter-spacing: 0.05em; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 14px 0;
  font-size: 12px; color: var(--text-mute);
  border-bottom: 1px solid var(--line);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--text-mute); }
.breadcrumb a:hover { color: var(--brand-orange); }
.breadcrumb .current { color: var(--text); font-weight: 600; }

/* ---------- Notice / Placeholder ---------- */
.notice {
  padding: 16px 20px;
  background: #FFF9EA; border-left: 3px solid #E5A93B;
  border-radius: 4px; font-size: 13px; color: #6B5013;
  line-height: 1.7;
}
.placeholder-box {
  padding: 40px 20px;
  background: var(--bg-panel);
  border: 1px dashed #CBD5E0;
  border-radius: var(--radius);
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
}
