/* ==========================================================================
   SUPER HOME — Global Stylesheet
   Pure HTML/CSS/JS site. Shared across all pages.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette (extracted from reference) */
  --blue: #116DFF;
  --blue-dark: #166AEA;
  --blue-deep: #0a3f8f;
  --navy: #0b1f3a;
  --red: #FF473C;
  --orange: #FF6E0E;
  --orange-soft: #FF8044;

  /* Neutrals */
  --ink: #1a2233;
  --ink-soft: #33415c;
  --gray: #5b6472;
  --gray-light: #8a93a3;
  --line: #e5e9f2;
  --bg: #ffffff;
  --bg-blue: #f4f8ff;
  --bg-warm: #fef6ed;
  --bg-warm-2: #fde9d3;

  /* Footer */
  --footer-bg: #0b1f3a;
  --footer-text: #c6d3e6;
  --footer-head: #ffffff;

  /* Type */
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
          "Yu Gothic UI", "Yu Gothic", "Meiryo", "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(15, 40, 90, 0.08);
  --shadow-md: 0 10px 30px rgba(15, 40, 90, 0.12);

  /* Header heights */
  --header-h: 76px;
  --header-h-mobile: 64px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; border: 0; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5 { line-height: 1.3; margin: 0 0 0.5em; font-weight: 700; color: var(--ink); }

p { margin: 0 0 1em; }

blockquote { margin: 0 0 12px; font-style: normal; }

button { font-family: inherit; cursor: pointer; }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(40px, 7vw, 88px); }
.section--blue { background: var(--bg-blue); }
.section--warm { background: var(--bg-warm); }
.section--white { background: var(--bg); }

.section-head { text-align: center; max-width: 820px; margin: 0 auto clamp(28px, 5vw, 56px); }
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.section-head .lead { color: var(--gray); font-size: clamp(0.95rem, 1.4vw, 1.05rem); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75em 1.6em;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  text-align: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .1s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; box-shadow: var(--shadow-sm); }

.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-soft); color: #fff; }

.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: #e63c31; color: #fff; }

.btn--outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--bg-blue); color: var(--blue-dark); }

.btn--ghost { background: transparent; color: var(--blue); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); }

.btn--lg { padding: 0.9em 2em; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}
.header-main {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
  height: var(--header-h);
  padding-inline: clamp(20px, 8vw, 160px);
}
.logo { display: inline-flex; align-items: center; flex-shrink: 0; margin-right: auto; }
.logo img { height: 44px; width: auto; }
.logo-text,
.logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.logo:hover { color: var(--ink); }
.logo .logo-blue { color: var(--blue); }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav a,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: 8px;
}
.main-nav a:hover,
.main-nav .is-active > a,
.nav-toggle:hover { color: var(--blue); background: var(--bg-blue); }
.main-nav .is-active > a { color: var(--blue); }
.nav-toggle .caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.dropdown a:hover { background: var(--bg-blue); color: var(--blue); }
.dropdown .icon { width: 20px; height: 20px; margin-right: 10px; opacity: .9; }

/* Header actions */
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--red);
  font-size: 1.02rem;
  white-space: nowrap;
}
.header-phone svg { width: 20px; height: 20px; }
.header-cta { padding: 0.6em 1.2em; font-size: 0.9rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: var(--bg-blue);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.hamburger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Mobile menu
   -------------------------------------------------------------------------- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--header-h-mobile) 0 auto 0;
  z-index: 999;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  max-height: calc(100vh - var(--header-h-mobile));
  overflow-y: auto;
  padding: 16px var(--gutter) 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu a,
.mobile-menu .mobile-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 13px 4px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  border: 0;
  background: none;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:hover { color: var(--blue); }
.mobile-toggle .caret { margin-left: auto; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
.mobile-toggle[aria-expanded="true"] .caret { transform: rotate(-135deg); }
.mobile-sub { display: none; padding-left: 12px; }
.mobile-sub.open { display: block; }
.mobile-sub a { padding-left: 16px; font-weight: 500; color: var(--ink-soft); font-size: 0.95rem; }
.mobile-menu .mobile-cta { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 60vw, 860px);
  padding-block: clamp(48px, 6vw, 88px);
}
.hero .container { max-width: 1300px; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); 
  /* gap: clamp(40px, 5vw, 110px); */
   align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1.4; letter-spacing: normal; margin-bottom: 0.4em; }
.hero h1 .accent { color: var(--blue); }
.hero__lead { font-size: 24px; color: var(--gray); max-width: 32em; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 1.8vw, 24px);
  margin-bottom: 26px;
}
.stat-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}
.stat-item .stat-val.up { color: var(--red); }
.stat-item .stat-val.down { color: var(--blue); }

.hero__img { border-radius: 0; box-shadow: none; overflow: visible; background: transparent; }
.hero__img img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   8. Feature cards
   -------------------------------------------------------------------------- */
.card-grid { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.card-grid--6 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.feature-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
  color: var(--ink);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--ink); }
.feature-card .fc-img { border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 14px; background: var(--bg-blue); }
.feature-card .fc-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; aspect-ratio: 4/3; }
.feature-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature-card p { font-size: 0.9rem; color: var(--gray); margin: 0; }
.feature-card .fc-more { margin-top: 12px; font-size: 0.88rem; font-weight: 700; color: var(--blue); }

/* --------------------------------------------------------------------------
   9. Numbered feature sections (alternating)
   -------------------------------------------------------------------------- */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.feature-split + .feature-split { margin-top: clamp(40px, 6vw, 80px); }
.feature-split--rev .feature-split__media { order: 2; }
.feature-split__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
.feature-split__media img { width: 100%; }
.feature-split__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}
.feature-split__title { font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
.feature-split__sub { color: var(--blue); font-weight: 700; font-size: 0.95rem; margin-bottom: 10px; }
.feature-split__body { color: var(--gray); }

/* --------------------------------------------------------------------------
   10. CTA (資料が欲しい / 問合せしたい)
   -------------------------------------------------------------------------- */
.cta-duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 32px); }
.cta-card {
  border-radius: var(--radius);
  padding: clamp(24px, 3.4vw, 40px);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.cta-card--docs { background: var(--bg-warm); border: 1px solid #f3ddc3; }
.cta-card--contact { background: var(--bg-blue); border: 1px solid #d7e4fb; }
.cta-card h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.cta-card p { color: var(--gray); max-width: 30em; margin-inline: auto; }

/* --------------------------------------------------------------------------
   11. Forms
   -------------------------------------------------------------------------- */
.form-card {
  max-width: 720px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.form-group .required { color: var(--red); margin-left: 4px; }
.form-group .hint { font-size: 0.82rem; color: var(--gray-light); margin-top: 4px; }
.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(17, 109, 255, 0.15); }
textarea.form-control { min-height: 160px; resize: vertical; }
.form-control[aria-invalid="true"] { border-color: var(--red); }
.form-error { color: var(--red); font-size: 0.82rem; margin-top: 4px; display: none; }
.form-error.show { display: block; }

.radio-row { display: flex; gap: 18px; flex-wrap: wrap; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.radio-row input { width: 18px; height: 18px; accent-color: var(--blue); }
.check-row { display: flex; gap: 10px; align-items: flex-start; }
.check-row input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); }
.check-row label { font-weight: 500; font-size: 0.92rem; }

.form-notice {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  background: #eef7f0;
  border: 1px solid #cde6d3;
  color: #1e6b34;
  display: none;
}
.form-notice.show { display: block; }

/* --------------------------------------------------------------------------
   12. Tables (company profile, platform)
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table.info-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table.info-table th, table.info-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
table.info-table th { width: 180px; background: var(--bg-blue); font-weight: 700; white-space: nowrap; }
table.info-table tr:last-child th, table.info-table tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------------------
   13. Feature grid (icon + label), used on ERP/CRM subpages
   -------------------------------------------------------------------------- */
.feat-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feat-list--3 { grid-template-columns: repeat(3, 1fr); }
.feat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 12px;
}
.feat-item .icon { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-blue); display: inline-flex; align-items: center; justify-content: center; color: var(--blue); font-weight: 800; font-size: 1.1rem; }
.feat-item .label { font-size: 0.9rem; font-weight: 600; line-height: 1.35; }
.feat-item.is-current { border-color: var(--blue); background: var(--bg-blue); box-shadow: var(--shadow-sm); }
.feat-item.is-current .label { color: var(--blue); }

/* --------------------------------------------------------------------------
   14. Testimonial carousel
   -------------------------------------------------------------------------- */
.carousel { position: relative; max-width: 760px; margin-inline: auto; }
.carousel__track { overflow: hidden; }
.carousel__slides { display: flex; transition: transform .35s ease; }
.carousel__slide { min-width: 100%; padding: 4px; }
.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3.4vw, 36px);
  box-shadow: var(--shadow-sm);
}
.quote-card blockquote { margin: 0 0 18px; font-size: clamp(0.98rem, 1.5vw, 1.1rem); line-height: 1.9; }
.quote-card .quote-who { display: flex; align-items: center; gap: 12px; }
.quote-card .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--bg-blue); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.quote-card .who-name { font-weight: 700; }
.quote-card .who-shop { font-size: 0.85rem; color: var(--gray); }
.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.carousel__dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--line); transition: background .2s ease; }
.carousel__dot.is-active { background: var(--blue); }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 0; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 48px); padding-block: clamp(36px, 5vw, 64px); }
.footer-col h4 { color: var(--footer-head); font-size: 1rem; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--footer-text); font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; color: var(--footer-text); max-width: 30em; }
.footer-phone { display: inline-flex; align-items: center; gap: 8px; color: #ff8b81; font-weight: 700; font-size: 1.05rem; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-block: 18px; text-align: center; font-size: 0.85rem; color: #9fb0c9; }

/* --------------------------------------------------------------------------
   16. Utility
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-muted { color: var(--gray); }
.lead-block { max-width: 40em; margin-inline: auto; color: var(--gray); }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 20px; }
.mt-lg { margin-top: 24px; }
.narrow { max-width: 720px; margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 6px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Page hero (subpages) */
.page-hero {
  background: linear-gradient(180deg, #eef4ff 0%, #ffffff 100%);
  padding-block: clamp(36px, 6vw, 72px);
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.8rem); }
.page-hero .lead { color: var(--gray); max-width: 42em; margin-inline: auto; font-size: clamp(0.98rem, 1.4vw, 1.1rem); }
.page-hero .tag { display: inline-block; background: #fff; border: 1px solid var(--line); color: var(--blue); font-weight: 700; font-size: 0.82rem; padding: 5px 13px; border-radius: 999px; margin-bottom: 14px; }

/* Breadcrumb-ish section label used on feature pages */
.section-kicker { text-align: center; color: var(--blue); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.08em; margin-bottom: 8px; }

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .card-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .feat-list { grid-template-columns: repeat(3, 1fr); }
  .header-cta span { display: none; }
  .hero { padding-block: clamp(56px, 8vw, 110px) clamp(40px, 6vw, 80px); }
}

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .header-cta { display: none; }
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; }
  .hero h1 { font-size: clamp(2.1rem, 4.4vw, 2.7rem); }
  .feature-split { grid-template-columns: 1fr; }
  .feature-split--rev .feature-split__media { order: 0; }
  .card-grid--6 { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: var(--header-h-mobile); }
  .header-main { height: var(--header-h-mobile); padding-inline: 16px; }
  .header-phone span { display: none; }
  .logo img { height: 36px; }
  .card-grid--6, .card-grid--4, .card-grid--3, .card-grid--2 { grid-template-columns: 1fr 1fr; }
  .cta-duo { grid-template-columns: 1fr; }
  .feat-list { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr; }
  .feature-card .fc-img img { aspect-ratio: 16/10; }
}

@media (max-width: 767px) {
  .hero { min-height: auto; padding-block: clamp(40px, 8vw, 56px); }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: clamp(1.9rem, 7vw, 2.4rem); }
  .hero__img { max-width: 100%; margin-inline: auto; }
}

@media (max-width: 640px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__img { max-width: 100%; margin-inline: auto; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .card-grid--6, .card-grid--4, .card-grid--3, .card-grid--2 { grid-template-columns: 1fr; }
  .feat-list { grid-template-columns: 1fr 1fr; }
  .hero__stats { gap: 12px; }
  .stat-item { font-size: 1.05rem; }
  .btn { width: 100%; }
  .header-phone { font-size: 0.95rem; }
  table.info-table th { width: 110px; }
  .feat-list--3 { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   18. Warehouse gallery (倉庫の写真) — homepage
   -------------------------------------------------------------------------- */
.warehouse-gallery {
  background: #f6f7f9; /* 参考サイトの近白色背景 */
}

.warehouse-gallery__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* 3本の紹介動画グリッド（デフォルト：3列） */
.warehouse-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
  margin-top: 30px; /* 倉庫画像との間隔 */
}

.warehouse-video-item {
  width: 100%;
  min-width: 0;
}

.warehouse-video-item video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #101a2e; /* 動画ファイル未配置時の背景 */
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

/* 768px〜1023px：2列にし、3本目は中央寄せで次の行へ */
@media (max-width: 1023px) {
  .warehouse-video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .warehouse-video-item:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 10px);
  }
}

/* 767px以下：1列（縦並び） */
@media (max-width: 767px) {
  .warehouse-video-grid {
    grid-template-columns: 1fr;
  }
  .warehouse-video-item:last-child {
    grid-column: auto;
    justify-self: auto;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   19. ERP subpage（super-erp.html）：紹介動画・ERP主要機能・対応プラットフォーム
   -------------------------------------------------------------------------- */
/* ページ上部の紹介動画（自動再生・ループなし） */
.erp-video { background: #fafafa; padding-block: clamp(20px, 3vw, 40px); }
.erp-video__frame {
  max-width: 1060px;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b1f3a;
  box-shadow: var(--shadow-md);
}
.erp-video__frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0b1f3a;
}

/* ERP主要機能（円リング＋アイコン＋ラベル） */
.section--erp-func {
  background-color: #fff;
  background-image: url('../assets/images/erp-feat-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.feat-list--erp { gap: clamp(16px, 3vw, 30px); }
.feat-item--erp {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 10px 6px;
  gap: 14px;
}
.feat-item--erp .feat-circle {
  width: clamp(84px, 11vw, 122px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-image: url('../assets/images/erp-circle.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.feat-item--erp .feat-circle img { width: 46%; height: auto; }
.feat-item--erp .label { font-size: clamp(0.92rem, 1.3vw, 1.06rem); font-weight: 700; color: var(--ink); }
.feat-item--erp:hover .label { color: var(--blue); }
.feat-item--erp.is-current .label { color: var(--blue); }

/* 対応プラットフォーム */
.platform { text-align: center; }
.platform__banner {
  display: block;
  width: 100%;
  max-width: 960px;
  margin: 0 auto clamp(28px, 4vw, 44px);
}
.platform__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 40px);
}
.platform__logo { height: 46px; width: auto; max-width: 120px; object-fit: contain; }
.platform__logo--badge { height: 64px; max-width: 130px; }
.platform__logo--big { height: 118px; max-width: 210px; }

@media (max-width: 1200px) {
  .feat-list--erp { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
  .feat-list--erp { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .platform__logo { height: 38px; max-width: 100px; }
  .platform__logo--badge { height: 52px; }
  .platform__logo--big { height: 90px; max-width: 170px; }
}
@media (max-width: 480px) {
  .feat-list--erp { grid-template-columns: repeat(2, 1fr); }
  .platform__logos { gap: 14px; }
  .platform__logo--big { height: 70px; max-width: 140px; }
}

/* --------------------------------------------------------------------------
   20. 機能 links（ホームページ：資料が欲しいの直上）
   -------------------------------------------------------------------------- */
.func-links {
  background: #fff;
  padding-block: clamp(48px, 6vw, 88px);
}
.func-links__grid {
  max-width: 920px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(20px, 5vw, 90px);
  row-gap: clamp(24px, 4vw, 56px);
}
.func-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(18px, 2.5vw, 26px) clamp(14px, 2vw, 22px);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fe 100%);
  border: 1px solid #edf0f6;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(15, 40, 90, 0.07);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.func-link:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(15, 40, 90, 0.1); }
.func-link__img {
  display: block;
  width: auto;
  max-width: 150px;
  height: 110px;
  object-fit: contain;
  margin-bottom: 18px;
}
.func-link__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}
.func-link__name { font-size: 1.06rem; font-weight: 700; color: var(--navy); }
.func-link__icon { width: 24px; height: 24px; object-fit: contain; flex: none; }

@media (max-width: 1023px) {
  .func-links__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .func-links { padding-block: clamp(40px, 8vw, 56px); }
  .func-links__grid { grid-template-columns: 1fr; gap: 20px; }
  .func-link { padding: 18px; }
  .func-link__img { max-width: 130px; height: 100px; margin-bottom: 12px; }
}
