/* ===========================================================
   浜田電機株式会社 — TOP page
   =========================================================== */

:root {
  --c-text: #0a0f1a;
  --c-text-sub: #4b5566;
  --c-bg: #ffffff;
  --c-bg-soft: #f6f8fa;
  --c-blue: #063f85;
  --c-blue-light: #006cd8;
  --c-red: #e60012;
  --c-line: #e3e7ec;
  --max-w: 1216px;
  --gutter: clamp(20px, 5vw, 112px);
  --header-h: 100px;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  font-feature-settings: "palt" 1;
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.02em;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: opacity .25s var(--ease-out), color .25s var(--ease-out); }
a:hover { opacity: .75; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
h1, h2, h3, h4, h5, p { margin: 0; }

/* =========================================================== Section title */
.sec-title { display: inline-flex; flex-direction: column; gap: 4px; }
.sec-title__en {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Outfit', sans-serif; font-weight: 500; font-size: 14px;
  letter-spacing: 0.02em; color: var(--c-blue);
  text-transform: capitalize;
}
.sec-title__bar {
  display: inline-block; width: 24px; height: 2px;
  background: linear-gradient(to right, var(--c-blue) 0 15px, var(--c-red) 15px 24px);
}
.sec-title__jp {
  font-weight: 700; font-size: 36px; line-height: 1.2; letter-spacing: 0.02em;
  color: var(--c-text);
}
.sec-title--light .sec-title__en { color: #fff; }
.sec-title--light .sec-title__bar { background: linear-gradient(to right, #fff 0 15px, var(--c-red) 15px 24px); }
.sec-title--light .sec-title__jp { color: #fff; }

/* =========================================================== Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 500; font-size: 13px; letter-spacing: 0.04em;
  height: 40px; padding: 0 18px; border-radius: 999px;
  white-space: nowrap; transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), background-color .25s var(--ease-out);
}
.btn--primary { background: var(--c-blue); color: #fff; }
.btn--primary:hover { opacity: 1; background: #052f64; }
.btn--ghost { color: var(--c-text); }
.btn--ghost:hover { color: var(--c-blue); opacity: 1; }
.btn--white { background: #fff; color: var(--c-blue); height: 60px; padding: 0 32px; font-size: 15px; font-weight: 700; min-width: 320px; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.btn--white:hover { opacity: 1; transform: translateY(-2px); }
.btn--wide { height: 60px; padding: 0 32px; font-size: 14px; font-weight: 700; min-width: 320px; }

/* =========================================================== Link arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: 'Outfit', sans-serif; font-weight: 500; font-size: 14px; letter-spacing: 0.06em;
  color: var(--c-text);
}
.link-arrow__circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-blue); color: #fff; font-size: 14px;
  transition: transform .3s var(--ease-out);
}
.link-arrow:hover { opacity: 1; }
.link-arrow:hover .link-arrow__circle { transform: translateX(4px); }
.link-arrow--light { color: #fff; }
.link-arrow--light .link-arrow__circle { background: #fff; color: var(--c-blue); }

/* =========================================================== Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  transition: background-color .35s var(--ease-out), box-shadow .35s var(--ease-out), height .35s var(--ease-out);
}
.site-header__inner {
  position: relative;
  display: flex; align-items: center; gap: 32px;
  height: 100%;
  padding: 0 32px;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px);
  box-shadow: 0 1px 0 var(--c-line);
  height: 80px;
}
.site-header__logo {
  display: inline-flex; align-items: center;
  color: #fff;
  transition: color .35s var(--ease-out);
}
.logo-svg { display: block; width: 150px; height: 17px; color: inherit; }
.site-header.is-scrolled .site-header__logo { color: var(--c-blue); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.site-header__nav { margin-left: auto; }
.site-header__nav-logo { display: none; }
.site-header__nav ul { display: flex; gap: 40px; }
.site-header__nav a {
  position: relative;
  display: inline-block; padding: 8px 0;
  font-weight: 500; font-size: 14px; letter-spacing: 0.04em; color: #fff;
  white-space: nowrap; /* インラインナビは改行させない */
}
.site-header__nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .3s var(--ease-out);
}
.site-header__nav a:hover { opacity: 1; }
.site-header__nav a:hover::after { transform: scaleX(1); }
.site-header.is-scrolled .site-header__nav a { color: var(--c-text); }

/* Nav 共通: 英字ラベル・SP専用項目・サブトグルはPCでは非表示 */
.nav-en { display: none; }
.nav-sub-toggle { display: none; }
.nav-item--sp-only { display: none; }
/* インラインナビではサブメニューを出さない（サブはハンバーガーのドロワーからのみ表示） */
.site-header__nav .nav-sub { display: none; }

.site-header__buttons { margin-left: 40px; display: flex; gap: 12px; align-items: center; }
.header-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px;
  border-radius: 4px;
  font-weight: 500; font-size: 13px; letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.header-btn--outline {
  border: 1px solid rgba(255,255,255,.85);
  color: #fff; background: transparent;
}
.header-btn--outline:hover { background: rgba(255,255,255,.12); opacity: 1; }
.header-btn--solid {
  background: #fff; color: var(--c-text);
}
.header-btn--solid:hover { opacity: 1; background: #f0f3f7; }
.site-header.is-scrolled .header-btn--outline {
  border-color: var(--c-blue); color: var(--c-blue); background: #fff;
}
.site-header.is-scrolled .header-btn--outline:hover { background: rgba(6,63,133,.06); }
.site-header.is-scrolled .header-btn--solid {
  background: var(--c-blue); color: #fff; border: 1px solid var(--c-blue);
}
.site-header.is-scrolled .header-btn--solid:hover { background: #052f64; }

/* インラインナビが折返さないよう、中間幅で間隔・ボタンを縮小（>1024pxで表示） */
@media (max-width: 1280px) {
  .site-header__inner { gap: 18px; }
  .site-header__nav ul { gap: 20px; }
  .site-header__buttons { margin-left: 18px; }
  .header-btn { padding: 0 14px; }
}
@media (max-width: 1120px) {
  .site-header__nav ul { gap: 14px; }
  .site-header__nav a { font-size: 13px; }
}
/* ≤1024ではヘッダーのボタンは隠す（連絡導線はハンバーガー内にあるため）。ナビは表示のまま */
@media (max-width: 1024px) {
  .site-header__buttons { display: none; }
}

/* FV(MV): タブレット幅から単列。キャッチは1行で収まるサイズに（はみ出し防止） */
@media (max-width: 1024px) {
  .mv__cols { grid-template-columns: 1fr; }
  .mv-col:nth-child(2), .mv-col:nth-child(3) { display: none; }
  .mv__catch-en { font-size: clamp(20px, 7.4vw, 64px); white-space: nowrap; }
}

.site-header__menu { display: flex; width: 28px; height: 22px; margin-left: 28px; flex-direction: column; justify-content: space-between; cursor: pointer; }
.site-header__menu span { display: block; width: 100%; height: 2px; background: #fff; transition: transform .3s, opacity .3s, background-color .3s; }
.site-header.is-scrolled .site-header__menu span { background: var(--c-text); }

/* =========================================================== MV */
.mv {
  position: relative; height: 800px;
  overflow: hidden; background: #000; color: #fff;
}
.mv::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 160px;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.3) 55%, rgba(0,0,0,.7) 88%, #000 100%);
  pointer-events: none;
  z-index: 4;
}
.mv__cols {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}
.mv-col {
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,.06);
}
.mv-col:last-child { border-right: 0; }
.mv-col__media {
  position: absolute; inset: 0; overflow: hidden;
}
.mv-col__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  will-change: transform;
}
.mv-col__img.is-fading { opacity: 0; transition: opacity .6s var(--ease-out); }
.mv-col__label {
  position: absolute; left: 0; right: 0; bottom: 42%;
  text-align: center;
  font-family: 'Outfit', sans-serif; font-weight: 500; font-size: 18px;
  letter-spacing: 0.06em; color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.5);
  z-index: 2;
}
.about__cols {
  position: absolute; top: 20px; bottom: 20px; left: 0; right: 0;
  overflow: hidden;
  filter: blur(16px);
}
.about-bg__img {
  position: absolute; inset: -20px;
  background-size: cover; background-position: center;
  transform: scale(1.06);
  opacity: 0;
  transition: opacity 2.5s ease-in-out;
}
.about-bg__img.is-active { opacity: 1; }
@keyframes kenburns {
  from { transform: scale(1.04); }
  to   { transform: scale(1.12); }
}
.mv__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,16,32,.55) 60%, rgba(0,16,32,.78) 100%);
  pointer-events: none;
}
.mv__inner {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) 114px;
  max-width: 1440px; margin: 0 auto;
}
.mv__catch-en {
  font-family: 'Outfit', sans-serif; font-weight: 500;
  font-size: clamp(48px, 7vw, 96px); line-height: 1.05; letter-spacing: 0.02em;
  color: #fff;
}
.mv__catch-line2 { display: inline; } /* PCは1行。SP/タブレットで改行 */
.mv__catch-jp {
  margin-top: 16px;
  font-weight: 700; font-size: 20px; line-height: 1.6; letter-spacing: 0.04em;
}

/* =========================================================== About */
.about {
  position: relative; height: 800px; overflow: hidden;
  background: #0a1f3d; color: #fff;
}
.about__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
}
.about::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 220px;
  background: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.7) 8%, rgba(0,0,0,.3) 40%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 2;
}
.about__inner {
  position: relative; height: 100%;
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 48px;
  padding: 0 var(--gutter);
  max-width: 1440px; margin: 0 auto;
}
.about__copy { max-width: 592px; }
.about__copy .sec-title { margin-bottom: 32px; }
.about__lead { font-size: 16px; line-height: 2; }
.about__graph img { width: 487px; max-width: 100%; }

/* =========================================================== Service */
.service {
  position: relative;
  background: var(--c-bg-soft) url('images/service-bg-pc.webp') center / cover no-repeat;
  padding: 40px 0 40px;
  overflow-x: clip;
}
/* 透かし「Service」は背景画像に含まれるためテキスト版は非表示 */
.service__giant { display: none; }
.service__inner {
  position: relative; z-index: 1;
  max-width: 1440px; margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr 696px;
  gap: 64px;
  align-items: start;
}
.service__head {
  position: sticky; top: 140px;
  align-self: start;
}
.service__head .sec-title { margin-bottom: 24px; }
.service__lead { font-size: 16px; line-height: 2; }

.service__items {
  display: flex; flex-direction: column;
}
.service-item {
  display: block;
  padding: 40px 0 56px;
  border-top: 1px solid #c9d2dc;
  color: var(--c-text);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.service-item:hover { opacity: .85; }
.service-item__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.service-item__title {
  display: flex; align-items: baseline; gap: 16px;
  font-weight: 700; font-size: 28px; letter-spacing: 0.02em;
}
.service-item__num {
  font-family: 'Outfit', sans-serif; font-weight: 500; font-size: 24px;
  color: var(--c-text);
}
.service-item__arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--c-text); color: #fff;
  font-size: 12px; line-height: 1;
  transition: transform .3s var(--ease-out);
}
.service-item:hover .service-item__arrow { transform: translateX(4px); }
.service-item__media {
  position: relative; aspect-ratio: 696 / 392;
  border-radius: 4px; overflow: hidden;
  background: #000;
  margin-bottom: 24px;
}
.service-item__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.service-item__media--dark { background: #000; }
.service-item__media--dark img { object-fit: contain; padding: 18% 22%; }
.service-item__media--bordered { box-shadow: inset 0 0 0 1px #0a0f1a; }
.service-item__text {
  font-size: 16px; line-height: 2;
}

/* =========================================================== Maker banner */
.makers {
  background: #F6F8FA;
  padding: 20px 0;
  overflow: hidden;
}
.makers__row {
  display: flex;
  margin: 8px 0;
  white-space: nowrap;
}
.makers__track {
  display: flex; gap: 16px; flex-shrink: 0;
  animation: scroll-x 80s linear infinite;
  will-change: transform;
}
.makers__row--rtl .makers__track { animation-direction: reverse; }
.maker-tile {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  width: 200px; height: 100px;
  background: #fff; border-radius: 4px;
  padding: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: box-shadow .25s var(--ease-out), transform .25s var(--ease-out);
  overflow: hidden;
}
.maker-tile:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); opacity: 1; }
.maker-tile img {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
}
/* ロゴ画像が無い場合の社名テキスト表示（フォールバック） */
.maker-tile__noimg {
  font-size: 13px; font-weight: 500; line-height: 1.4;
  text-align: center; color: #1a1a1a;
  white-space: normal; word-break: break-word;
}
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================== Onlineshop */
.onlineshop {
  background: linear-gradient(135deg, #0a3d80 0%, #0d52a8 100%);
  color: #fff;
  padding: 96px 0;
}
.onlineshop__inner {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 64px;
  max-width: 1440px; margin: 0 auto;
  padding: 0 var(--gutter);
}
.onlineshop__title {
  font-weight: 700; font-size: 32px; line-height: 1.5; letter-spacing: 0.04em;
}
.onlineshop__text { margin-top: 16px; font-size: 14px; line-height: 1.85; opacity: .9; }
.onlineshop__banners {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  width: 620px; max-width: 100%;
}
/* 上段3つ（span2）＋下段ワイド2つ（span3） */
.onlineshop__banners .shop-bnr:nth-child(-n+3) { grid-column: span 2; }
.onlineshop__banners .shop-bnr:nth-child(4),
.onlineshop__banners .shop-bnr:nth-child(5) { grid-column: span 3; aspect-ratio: 340 / 96; }
.shop-bnr {
  display: block;
  background: #fff;
  border-radius: 8px; overflow: hidden;
  aspect-ratio: 220 / 96;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.shop-bnr--wide { grid-column: span 2; aspect-ratio: 460 / 70; }
.shop-bnr--dark { background: #000; }
.shop-bnr:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.25); opacity: 1; }
.shop-bnr img { width: 100%; height: 100%; object-fit: contain; padding: 14px 28px; display: block; }
.shop-bnr--dark img { padding: 0; object-fit: cover; }

/* =========================================================== News */
.news {
  background: #fff;
  padding: 120px 0;
}
.news__inner {
  max-width: 1440px; margin: 0 auto;
  padding: 0 var(--gutter);
}
.news__head {
  display: grid; grid-template-columns: 1fr auto;
  align-items: end; gap: 32px;
  margin-bottom: 56px;
}
.news__list { border-top: 1px solid var(--c-line); }
.news__more { margin-top: 48px; text-align: center; }
.news-item {
  display: grid; grid-template-columns: 140px 1fr 2fr;
  align-items: start; gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--c-line);
  transition: background-color .25s var(--ease-out), opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.news-item:hover { background: var(--c-bg-soft); }
.news-item__date { font-family: 'Outfit', sans-serif; font-weight: 500; font-size: 16px; color: var(--c-text); }
.news-item__title { font-weight: 500; font-size: 16px; }
.news-item__text { font-size: 15px; line-height: 1.8; color: var(--c-text-sub); }

/* =========================================================== Bottom (Company / Recruit) */
.bottom {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 1424px; margin: 0 auto;
  padding: 0 8px 10px;
}
.bottom-card {
  position: relative; display: block;
  height: 400px;
  background-size: cover; background-position: center;
  border-radius: 8px; overflow: hidden;
  color: #fff;
  transition: transform .4s var(--ease-out), opacity .7s var(--ease-out);
}
.bottom-card:hover { opacity: 1; transform: translateY(-4px); }
.bottom-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,16,32,.35) 0%, rgba(0,16,32,.65) 100%);
}
.bottom-card__inner {
  position: relative; height: 100%;
  padding: 56px 56px 48px;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 24px;
}
.bottom-card__inner .sec-title { margin-bottom: auto; padding-top: 0; }
.bottom-card__jp { display: inline-flex; align-items: center; gap: 18px; }
.bottom-card__arrow {
  flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.7);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; color: #fff;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), transform .3s var(--ease-out);
}
.bottom-card:hover .bottom-card__arrow { background: #fff; color: var(--c-blue); transform: translateX(3px); }
.bottom-card__text { font-size: 16px; line-height: 2; max-width: 460px; }

/* =========================================================== Footer */
.site-footer {
  position: relative;
  background-color: var(--c-blue);
  background-size: cover; background-position: center top;
  background-repeat: no-repeat;
  color: #fff;
  padding: 40px 8px 0;
  overflow: hidden;
}
.site-footer__overlay {
  position: absolute; left: 8px; right: 8px; top: 80px; height: 440px;
  background: linear-gradient(180deg, rgba(6,63,133,1) 0%, rgba(6,63,133,0) 100%);
  pointer-events: none;
  z-index: 0;
}
.footer-contact, .site-footer__main { position: relative; z-index: 1; }

/* Contact card */
.footer-contact {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 56px;
  max-width: 1314px; margin: 0 auto;
  padding: 40px 60px;
  border-radius: 8px;
  background: #006CD8;
  color: #fff;
  transition: filter .3s var(--ease-out);
}
.footer-contact:hover { opacity: 1; filter: brightness(1.05); }
.footer-contact__left { display: flex; flex-direction: column; gap: 8px; }
.footer-contact__en {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Outfit', sans-serif; font-weight: 500; font-size: 14px;
  letter-spacing: 0.04em;
}
.footer-contact__bar {
  display: inline-block; width: 24px; height: 2px;
  background: linear-gradient(to right, var(--c-blue) 0 15px, var(--c-red) 15px 24px);
}
.footer-contact__title {
  font-weight: 700; font-size: 22px; letter-spacing: 0.04em; line-height: 1.4;
}
.footer-contact__text {
  font-size: 14px; line-height: 1.85;
}

/* SP: 各ラベル(Contact/Recruit/Recruitment/Requirements)の線をテキストの下(下線位置)に */
@media (max-width: 720px) {
  .footer-contact__en,
  .recruit-details .sec-title__en,
  .recruit-merits .sec-title__en,
  .recruit-jobs .sec-title__en {
    flex-direction: column-reverse; align-items: center; gap: 8px;
  }
}
.footer-contact__arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid #fff;
  font-size: 12px; flex-shrink: 0;
  transition: background-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.footer-contact:hover .footer-contact__arrow {
  background: rgba(255,255,255,.15); transform: translateX(3px);
}

/* Main */
.site-footer__main {
  max-width: 1424px; margin: 80px auto 0;
  padding: 0 104px 480px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.site-footer__brand { max-width: 320px; }
.site-footer__logo { display: inline-block; margin-bottom: 28px; }
.site-footer__logo svg { width: 180px; height: 20px; display: block; }
.site-footer__cat { font-size: 12px; letter-spacing: 0.04em; margin-bottom: 8px; }
.site-footer__company { font-size: 18px; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 18px; }
.site-footer__address { font-size: 12px; line-height: 1.66; margin-bottom: 76px; }
.site-footer__copyright { font-family: 'Outfit', sans-serif; font-weight: 400; font-size: 12px; letter-spacing: 0.04em; }

.site-footer__nav {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 64px 80px;
}
.footer-col__title { font-weight: 500; font-size: 14px; letter-spacing: 0.04em; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 0; }
.footer-col ul a {
  position: relative;
  font-size: 13px; line-height: 25px; letter-spacing: 0.02em;
}
.footer-col ul a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .3s var(--ease-out);
}
.footer-col ul a:hover { opacity: 1; }
.footer-col ul a:hover::after { transform: scaleX(1); }

/* =========================================================== Responsive — tablet */
@media (max-width: 1080px) {
  :root { --gutter: 48px; --header-h: 80px; }
  .site-header__nav { margin-left: auto; }
  .site-header__buttons { display: none; }

  .mv__catch-en { font-size: clamp(40px, 8vw, 72px); }

  .about__inner { grid-template-columns: 1fr; gap: 32px; justify-items: center; text-align: center; }
  .about__copy { max-width: 640px; }
  .about__copy .sec-title { align-items: center; }
  .about__copy .sec-title__en { justify-content: center; }
  .about__graph { display: flex; justify-content: center; }
  .about__graph img { width: 380px; }

  .service { padding: 120px 0 140px; background-image: url('images/service-bg-sp.webp'); }
  .service__inner { grid-template-columns: 1fr; gap: 56px; }
  .service__head { position: static; text-align: center; }
  .service__head .sec-title { align-items: center; }
  /* 「Service」の線をラベルの下（下線位置）に */
  .service__head .sec-title__en { flex-direction: column-reverse; align-items: center; gap: 8px; }
  .service__lead { text-align: center; }

  /* News見出しもServiceと同じ中央＋バー下デザインに */
  .news__head { grid-template-columns: 1fr; justify-items: center; align-items: center; text-align: center; }
  .news__head .sec-title { align-items: center; }
  .news__head .sec-title__en { flex-direction: column-reverse; align-items: center; gap: 8px; }

  .onlineshop__inner { grid-template-columns: 1fr; gap: 40px; justify-items: center; text-align: center; }
  .onlineshop__title { text-align: center; }
  .onlineshop__banners { width: 100%; max-width: 460px; }

  .news__list .news-item { grid-template-columns: 100px 1fr; }
  .news-item__text { grid-column: 1 / -1; }

  .bottom { grid-template-columns: 1fr; }
  .bottom-card { height: 320px; }
  .bottom-card__inner { padding: 32px; }

  .footer-contact { grid-template-columns: 1fr; gap: 20px; padding: 48px 15px; text-align: center; justify-items: center; }
  .footer-contact__left { align-items: center; }
  .footer-contact__arrow { justify-self: center; }
  .site-footer__main { grid-template-columns: 1fr; gap: 40px; padding: 40px 32px 0; text-align: center; justify-items: center; }
  .site-footer__brand { max-width: 100%; }
  .site-footer__nav { display: none; }
  .site-footer__address { margin-bottom: 24px; }
  .site-footer { padding-bottom: 280px; }
}

/* =========================================================== Responsive — mobile */
@media (max-width: 720px) {
  :root { --gutter: 20px; --header-h: 64px; }
  body { font-size: 15px; line-height: 1.85; }

  .site-header__nav,
  .site-header__buttons { display: none; }
  .site-header__menu { display: flex; margin-left: auto; }
  /* SPドロワーの中身は is-static ブロック後の専用@mediaで定義（is-static上書きのため） */

  .mv { height: 600px; }
  /* 下の黒帯: 字幕(下から98px)に被らないよう80pxに短縮。上端は柔らかくぼかす */
  .mv::after {
    height: 80px;
    background: linear-gradient(to bottom,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,.4) 18%,
      rgba(0,0,0,.75) 60%,
      #000 100%);
  }
  .mv__cols { grid-template-columns: 1fr; }
  .mv-col:nth-child(2), .mv-col:nth-child(3) { display: none; }
  .mv-col__label { bottom: 50%; font-size: 14px; }
  .mv__catch-jp { font-size: 16px; }
  .mv__inner { padding-bottom: 98px; }

  .about { height: auto; padding: 80px 0; }
  .about__inner { padding-top: 0; padding-bottom: 0; }

  .service { padding: 80px 0 96px; }
  .service__giant { font-size: 96px; top: 40px; left: -10px; }
  .service__head { margin-bottom: 48px; }
  .service-item__media { aspect-ratio: 16/10; }
  .service-item__title { font-size: 22px; }

  .maker-tile { width: 160px; height: 80px; }

  .onlineshop { padding: 56px 0; }
  .onlineshop__title { font-size: 24px; }
  .shop-bnr--wide { grid-column: span 2; }
  /* SP: ロゴをトリミングして大きく見せる(白枠/contain拡大)。HAMAKEN(黒/cover)は除外 */
  .onlineshop__banners .shop-bnr:not(.shop-bnr--dark) img { padding: 4px 10px; transform: scale(1.55); }
  /* SP: min-width 320pxのボタンが狭い端末ではみ出すのを防ぐ */
  .btn--wide, .btn--white { min-width: 0; max-width: 100%; }

  .news { padding: 64px 0; }
  .news__head { grid-template-columns: 1fr; align-items: center; justify-items: center; text-align: center; }
  .news-item { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }

  .bottom { padding-bottom: 56px; }
  .bottom-card { height: 320px; }
  .bottom-card__inner { padding: 28px; }
  /* 線をEN(Company/Recruit)の下に */
  .bottom-card__inner .sec-title__en { flex-direction: column-reverse; align-items: flex-start; gap: 8px; }
  /* 説明文は2行に収まるサイズで下部に（長い行も折返さないよう12px・余白も調整） */
  .bottom-card__inner { padding: 24px; }
  .bottom-card__text { font-size: 12px; line-height: 1.75; }

  .site-footer { padding: 64px 15px 24px; }
  .sec-title__jp { font-size: 28px; }
  .btn--white, .btn--wide { min-width: 0; width: 100%; }
}

/* =========================================================== Page header (always white) */
.site-header.is-static {
  background: #F6F8FA;
  box-shadow: 0 1px 0 var(--c-line);
  height: 80px;
}
/* 白背景ヘッダーではインラインSVGを表示（currentColor=濃紺＋赤D）。
   白ロゴwebpの::before は背景同化するため廃止 */
.site-header.is-static .site-header__logo { color: var(--c-blue); }
.site-header.is-static .site-header__nav a { color: var(--c-text); }
.site-header.is-static .header-btn--outline {
  border-color: var(--c-blue); color: var(--c-blue); background: #fff;
}
.site-header.is-static .header-btn--outline:hover { background: rgba(6,63,133,.06); }
.site-header.is-static .header-btn--solid {
  background: var(--c-blue); color: #fff;
}
.site-header.is-static .site-header__nav a[aria-current="page"] { color: var(--c-blue); }
.site-header.is-static .site-header__nav a[aria-current="page"]::after {
  background: var(--c-blue); transform: scaleX(1);
}
.site-header.is-static .site-header__menu span { background: var(--c-text); }

body.page-company { padding-top: 80px; background: #F6F8FA; }
.page-company [id] { scroll-margin-top: 96px; }
body.page-sub { padding-top: 80px; background: #fff; }
.page-sub [id] { scroll-margin-top: 96px; }

/* ===== ハンバーガーメニュー ドロワー（共通: SP=159-588単列 / PC=159-565メガメニュー） ===== */
/* --- 共通（全幅, is-open時） --- */
.site-header.is-open { background: transparent; box-shadow: none; }
.site-header.is-open .site-header__logo,
.site-header.is-open .site-header__menu { position: relative; z-index: 5; }
.site-header.is-open .site-header__logo { color: #fff; }
/* ×（閉じる）は常に右上へ（nav/buttonsはflow外なのでautoで右寄せ） */
.site-header.is-open .site-header__menu { margin-left: auto; }
.site-header.is-open .site-header__menu span { background: #fff; }
.site-header.is-open .site-header__menu span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.site-header.is-open .site-header__menu span:nth-child(2) { opacity: 0; }
.site-header.is-open .site-header__menu span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
.site-header.is-open .site-header__nav {
  display: block; z-index: 1;
  position: fixed; left: 0; right: 0; top: 0; bottom: 0;
  width: 100%; height: 100dvh; margin: 0; overflow-y: auto;
  background: #0a3f85;
}
.site-header.is-open .nav-item--sp-only { display: list-item; }
.site-header.is-open .nav-item > a,
.site-header.is-open .nav-link {
  display: flex; align-items: baseline; gap: 12px;
  color: #fff; font-weight: 700; letter-spacing: 0.04em;
}
.site-header.is-open .nav-item > a::after { display: none; }
.site-header.is-open .nav-en {
  display: inline; font-family: 'Outfit', sans-serif; font-weight: 400;
  font-size: 12px; color: rgba(255,255,255,.6); letter-spacing: 0.06em;
}
.site-header.is-open .nav-sub {
  display: block; position: static; transform: none; left: auto; top: auto;
  background: none; box-shadow: none; border: 0; border-radius: 0; min-width: 0; margin: 0;
}
.site-header.is-open .nav-sub a {
  display: block; color: rgba(255,255,255,.82); font-weight: 400;
}
.site-header.is-open .nav-sub a::after { display: none; }
/* ホバー: お問い合わせボタンと同じ配色（白背景＋青文字） */
.site-header.is-open .nav-sub a:hover { background: #fff; color: var(--c-blue); }
.site-header.is-open .header-btn--outline { border-color: rgba(255,255,255,.85); color: #fff; background: transparent; }
.site-header.is-open .header-btn--solid { background: #fff; color: var(--c-blue); border: 0; }
/* 会社情報ブロック（PCドロワーのみ表示） */
.nav-company { display: none; }
.nav-company__cat { font-size: 12px; color: rgba(255,255,255,.7); }
.nav-company__name { font-size: 16px; font-weight: 700; color: #fff; margin: 6px 0 12px; letter-spacing: 0.04em; }
.nav-company__addr { font-size: 12px; line-height: 1.8; color: rgba(255,255,255,.7); }

/* --- SP・タブレット（≤1024px）: 単列アコーディオン（メガメニューは詰まるため） --- */
@media (max-width: 1024px) {
  /* ドロワー本体を inner に（ボタンを項目の流れの後ろに置き、固定による重なりを解消） */
  .site-header.is-open .site-header__inner {
    position: fixed; inset: 0; height: 100dvh; z-index: 1;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    background: #0a3f85; overflow-y: auto;
    padding: calc(var(--header-h) + 12px) 24px 40px;
  }
  /* ロゴはヘッダーバー位置に固定（縦中央） */
  .site-header.is-open .site-header__logo {
    position: absolute; top: 0; left: 24px; height: var(--header-h);
    display: flex; align-items: center; z-index: 5;
  }
  /* ×（ハンバーガー）は内部のcolumn配置を壊さないよう、高さ/flex方向は上書きしない */
  .site-header.is-open .site-header__menu {
    position: absolute; top: calc((var(--header-h) - 22px) / 2); right: 24px;
    margin: 0; z-index: 5;
  }
  /* nav は通常フローに */
  .site-header.is-open .site-header__nav {
    position: static; width: 100%; height: auto; margin: 0; padding: 0;
    background: none; overflow: visible;
  }
  .site-header.is-open .site-header__nav > ul { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .site-header.is-open .nav-item { position: relative; border-bottom: 1px solid rgba(255,255,255,.2); }
  .site-header.is-open .nav-item > a,
  .site-header.is-open .nav-link { font-size: 17px; padding: 18px 0; }
  /* サブトグル(+/−)（テキスト行の垂直中央） */
  .site-header.is-open .nav-sub-toggle {
    display: block; position: absolute; top: 22px; right: 0;
    width: 24px; height: 27px; background: none; border: 0; padding: 0; cursor: pointer;
    appearance: none; -webkit-appearance: none;
  }
  .site-header.is-open .nav-sub-toggle::before,
  .site-header.is-open .nav-sub-toggle::after {
    content: ''; position: absolute; left: 50%; top: 50%;
    background: #fff; transform: translate(-50%, -50%);
  }
  .site-header.is-open .nav-sub-toggle::before { width: 16px; height: 2px; }
  .site-header.is-open .nav-sub-toggle::after { width: 2px; height: 16px; transition: opacity .2s ease; }
  .site-header.is-open .nav-item.is-open .nav-sub-toggle::after { opacity: 0; }
  /* サブメニュー（アコーディオン開閉） */
  .site-header.is-open .nav-sub {
    overflow: hidden; max-height: 0; padding: 0;
    transition: max-height .3s ease, padding .3s ease;
  }
  .site-header.is-open .nav-item.is-open .nav-sub { max-height: 400px; padding: 0 0 12px; }
  .site-header.is-open .nav-sub a { padding: 11px 0 11px 4px; font-size: 15px; }
  /* 2ボタンは項目（その他）の後ろに流す（固定をやめて重なり解消） */
  .site-header.is-open .site-header__buttons {
    position: static; left: auto; right: auto; bottom: auto;
    display: flex; flex-direction: column; gap: 12px; width: 100%; margin: 32px 0 0; z-index: auto;
  }
  .site-header.is-open .header-btn { height: 52px; width: 100%; }
}

/* --- PC（≥1025px）: 多列メガメニュー（Figma 159-565）。font/間隔はclampで可変縮小 --- */
@media (min-width: 1025px) {
  .site-header.is-open .site-header__nav {
    padding: 0;
    /* 5分割の縦仕切り線（20/40/60/80%） */
    background-color: #0a3f85;
    background-image:
      linear-gradient(rgba(255,255,255,.14) 0 0),
      linear-gradient(rgba(255,255,255,.14) 0 0),
      linear-gradient(rgba(255,255,255,.14) 0 0),
      linear-gradient(rgba(255,255,255,.14) 0 0);
    background-size: 1px 100%;
    background-position: 20% 0, 40% 0, 60% 0, 80% 0;
    background-repeat: no-repeat;
  }
  /* 会社情報ブロック（左ゾーン・上下中央・中央寄せ） */
  .site-header.is-open .nav-company {
    display: block; position: absolute; left: 0; width: 20%; padding: 0 12px;
    top: 50%; transform: translateY(-50%); text-align: center; z-index: 5;
  }
  /* ナビ: 中央2ゾーンに正確に割付（col A=40-60%, col B=60-80%）。gap0で列幅=ゾーン幅 */
  .site-header.is-open .site-header__nav > ul {
    position: absolute; left: 40%; width: 40%; top: clamp(96px, 13vh, 140px);
    display: block; column-count: 2; column-gap: 0; max-width: none;
  }
  .site-header.is-open .nav-item { break-inside: avoid; margin-bottom: clamp(14px, 2.2vh, 26px); border: 0; }
  .site-header.is-open .nav-item:nth-child(4) { break-after: column; }
  /* 見出しはサブと左端を揃える（24pxインセット） */
  .site-header.is-open .nav-item > a,
  .site-header.is-open .nav-link { font-size: clamp(17px, 1.4vw, 21px); padding: 0 24px clamp(6px, 0.9vh, 10px); }
  /* PCはトグル非表示、サブは常に展開 */
  .site-header.is-open .nav-sub-toggle { display: none; }
  .site-header.is-open .nav-sub { overflow: visible; max-height: none; padding: 0; }
  /* サブリンクは列幅いっぱい→ホバー白背景が左右の仕切り線まで届く */
  .site-header.is-open .nav-sub a {
    display: block; box-sizing: border-box; width: 100%;
    padding: clamp(4px, 0.5vh, 7px) 24px; font-size: clamp(13px, 1vw, 14px);
  }
  /* ボタン（右ナビ列の下）。navの外要素なので fixed で viewport 基準に */
  .site-header.is-open .site-header__buttons {
    position: fixed; left: 61%; width: 17%; top: 56%;
    display: flex; flex-direction: column; gap: 12px; margin: 0;
    transform: none; right: auto; bottom: auto; z-index: 5;
  }
  .site-header.is-open .header-btn { height: clamp(44px, 4vh, 52px); width: 100%; }
}

/* =========================================================== Page Title */
.page-title {
  position: relative;
  height: 400px;
  background: #fff;
  overflow: hidden;
}
.page-title__grid {
  position: absolute; top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 1440px;
  padding: 0 var(--gutter);
  box-sizing: border-box;
  display: grid; grid-template-columns: repeat(5, 1fr);
  pointer-events: none;
}
.page-title__grid span {
  border-right: 1px solid #f3f4f6;
}
.page-title__grid span:last-child { border-right: 0; }
.page-title__inner {
  position: relative; z-index: 1;
  max-width: 1440px; margin: 0 auto;
  padding: 60px var(--gutter) 0;
  height: 400px;
  display: flex; flex-direction: column; justify-content: center;
  gap: 16px;
}
.page-title__en {
  font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: clamp(64px, 8vw, 96px); line-height: 1; letter-spacing: 0.01em;
  color: var(--c-text);
}
.page-title__jp {
  font-weight: 700; font-size: 16px; letter-spacing: 0.06em;
}

/* =========================================================== Company layout */
.company-layout {
  position: relative;
  max-width: 1440px; margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr 113px;
}
.company-main {
  padding: 0 0 90px;
}
.company-section { padding: 96px 0; }
.company-section__inner { max-width: 904px; }

/* Aside nav */
.company-aside {
  position: relative;
  border-left: 1px solid #d8d8d8;
}
.company-aside__list {
  position: sticky; top: 120px;
  padding: 12px 0 12px 40px;
  display: flex; flex-direction: column; gap: 24px;
}
.company-aside__list a {
  position: relative;
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--c-text-sub);
  transition: color .25s var(--ease-out);
}
.company-aside__list a::before {
  content: ''; position: absolute; left: -41px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 24px;
  background: var(--c-blue);
  opacity: 0; transition: opacity .25s var(--ease-out);
}
.company-aside__list a.is-active { color: var(--c-blue); }
.company-aside__list a.is-active::before { opacity: 1; }

/* Greeting (full-bleed left image column) */
.greeting-section {
  position: relative;
  display: grid;
  grid-template-columns: 488px 1fr;
  gap: 40px;
  margin: 0 0 0 calc(-1 * var(--gutter));
  padding: 0 40px 0 0;
}
.greeting-section__body { max-width: 720px; }
.greeting-section__media {
  display: flex; flex-direction: column;
}
.greeting-section__img {
  width: 100%; height: 520px;
  background-size: cover; background-position: center;
}
.greeting-section__img--top { background-position: center top; }
.greeting-section__img--bottom { background-position: center 30%; }
.greeting-section__body {
  position: relative;
  padding: 96px 0 0;
  display: flex; flex-direction: column;
}
.greeting-section__body .sec-title { margin-bottom: 24px; }
.greeting-section__title {
  font-weight: 700; font-size: clamp(26px, 3vw, 36px); line-height: 1.5; letter-spacing: 0.04em;
  margin-bottom: 40px;
}
.greeting-section__text { display: flex; flex-direction: column; gap: 28px; }
.greeting-section__text p { font-size: 16px; line-height: 2; }
.greeting-section__sign { margin-top: 56px; }
.greeting-section__role { font-size: 14px; margin-bottom: 8px; }
.greeting-section__name { display: flex; align-items: baseline; gap: 12px; }
.greeting-section__name-jp { font-weight: 500; font-size: 20px; letter-spacing: 0.06em; }
.greeting-section__name-en { font-family: 'Outfit', sans-serif; font-weight: 400; font-size: 12px; color: var(--c-text-sub); }
.greeting-section__watermark {
  display: block;
  width: 100%; max-width: 100%; height: auto;
  margin-top: auto;
  margin-bottom: 0;
  align-self: start;
  pointer-events: none; user-select: none;
}

/* Sub-title with horizontal bar (used in Mission) */
.sub-title {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 14px; letter-spacing: 0.06em;
  color: var(--c-text);
}
.sub-title__bar {
  display: inline-block; width: 24px; height: 2px;
  background: linear-gradient(to right, var(--c-blue) 0 15px, var(--c-red) 15px 24px);
}

/* Mission */
.mission-section {
  background: #fff;
  padding: 45px 64px 45px;
  margin-left: calc(-1 * var(--gutter));
}
.mission-section__top {
  display: grid;
  grid-template-columns: 1fr 452px;
  gap: 96px;
  align-items: center;
  padding: 50px 0;
}
.mission-section__copy { padding-left: 32px; }
.mission-section__catch {
  margin-top: 60px;
  display: flex; flex-direction: column;
  gap: 4px;
  font-weight: 700; font-size: 36px; line-height: 1.6; letter-spacing: 0.08em;
  white-space: nowrap;
}
.mission-section__catch span {
  writing-mode: horizontal-tb;
  -webkit-writing-mode: horizontal-tb;
  text-orientation: mixed;
}
.mission-section__img {
  width: 100%; aspect-ratio: 1/1;
  overflow: hidden; border-radius: 2px;
  background: var(--c-bg-soft);
}
.mission-section__img img { width: 100%; height: 100%; object-fit: cover; }
.mission-section__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--c-line);
}
.mission-section__cell {
  padding: 56px 32px;
}
.mission-section__cell:first-child { border-right: 1px solid var(--c-line); }
.mission-section__cell .sub-title { margin-bottom: 24px; }
.mission-section__lead {
  font-weight: 700; font-size: 24px; line-height: 1.6; letter-spacing: 0.06em;
}

/* Info table */
.overview .sec-title { margin-bottom: 40px; }
.info-table {
  border-top: 1px solid var(--c-line);
}
.info-row {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--c-line);
}
.info-row dt { font-weight: 700; font-size: 14px; letter-spacing: 0.04em; color: var(--c-text); }
.info-row dd { font-size: 14px; line-height: 1.85; color: var(--c-text); }

/* History */
#history { padding: 45px 0; }
.history .sec-title { margin-bottom: 40px; }
.history-table {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--c-line);
}
.history-decade {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--c-line);
}
.history-decade__year {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 28px;
  color: var(--c-blue); letter-spacing: 0.02em; line-height: 1;
  /* button化のためのリセット（PCでは見た目は従来の年見出しのまま） */
  appearance: none; -webkit-appearance: none; background: none; border: 0;
  margin: 0; padding: 0; cursor: default; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.history-decade__toggle { display: none; } /* PCでは非表示（常に全展開） */
.history-decade__list {
  display: flex; flex-direction: column; gap: 12px;
}
.history-decade__list li {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 24px;
  font-size: 14px; line-height: 1.85;
}
.hist-date { font-weight: 500; color: var(--c-text); white-space: nowrap; }
.hist-text { color: var(--c-text-sub); }

/* Office */
.page-company .company-section#office,
.page-company .company-section#office .company-section__inner.office { background: #fff; }
.page-company .company-section#office { position: relative; z-index: 0; }
/* 左方向に白を延長 */
.page-company .company-section#office::before {
  content: ''; position: absolute;
  top: 0; bottom: 0; right: 100%;
  width: 100vw; background: #fff;
  z-index: -1;
}
/* 下方向にも白を延長（左側のみ。右aside列の下には伸ばさない） */
.page-company .company-section#office::after {
  content: ''; position: absolute;
  top: 100%; right: 0; left: -100vw;
  height: 200px; background: #fff;
  z-index: -1;
}
.office .sec-title { margin-bottom: 40px; }
.office-list {
  display: flex; flex-direction: column; gap: 40px;
}
.office-card {
  background: #F6F8FA;
  border-radius: 4px;
  display: flex; flex-direction: column;
  overflow: hidden;
  padding: 24px;
  gap: 28px;
}
.office-card__map {
  aspect-ratio: 16/6;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.office-card__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.office-card__info {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 40px;
  padding: 4px 16px 16px;
  align-items: start;
}
.office-card__name {
  font-weight: 700; font-size: 18px; letter-spacing: 0.04em;
  margin: 0;
}
.office-card__details {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px 56px;
  align-items: start;
}
.office-card__addr {
  font-size: 14px; line-height: 1.7;
  grid-column: 1 / -1;
  margin: 0;
}
.office-card__contacts {
  display: contents;
}
.office-contact { display: flex; flex-direction: column; gap: 2px; }
.office-contact__label { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.office-contact__line { font-size: 14px; line-height: 1.7; }

@media (max-width: 768px) {
  .office-card__info { grid-template-columns: 1fr; gap: 16px; padding: 4px 8px 8px; }
  .office-card__details { grid-template-columns: 1fr; gap: 16px; }
}

/* Overview address group */
.info-row__addresses { display: flex; flex-direction: column; gap: 28px; }
.addr { display: flex; flex-direction: column; gap: 8px; }
.addr__name { font-weight: 500; font-size: 14px; }
.addr__row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.addr__line { font-size: 14px; color: var(--c-text); line-height: 1.66; }
.addr__map {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 14px;
  border: 1px solid var(--c-text);
  border-radius: 999px;
  font-weight: 500; font-size: 12px; letter-spacing: 0.04em;
  color: var(--c-text);
  background: transparent;
  transition: color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.addr__map:hover { color: var(--c-blue); border-color: var(--c-blue); opacity: 1; }
.addr__map-icon { width: 14px; height: 14px; flex-shrink: 0; }

/* Tablet */
@media (max-width: 1080px) {
  .company-layout { grid-template-columns: 1fr; }
  .company-aside { display: none; }
  .greeting-section { grid-template-columns: 1fr; gap: 32px; margin: 0; }
  .greeting-section__img { height: 360px; }
  .greeting-section__body { padding: 32px 0 0; }
  .mission-section__top { grid-template-columns: 1fr; gap: 48px; padding: 20px 0; }
  /* SP: ミッション/組織ビジョンの上下余白を20pxに縮める */
  .mission-section { padding-top: 20px; padding-bottom: 20px; }
  .mission-section__cell { padding-top: 20px; padding-bottom: 20px; }
  .mission-section__copy { padding-left: 0; }
  .mission-section__catch { margin-top: 32px; gap: 12px; font-size: 28px; }
  .page-title { height: 360px; }
  .info-row { grid-template-columns: 140px 1fr; gap: 16px; }
  .history-item { grid-template-columns: 80px 1fr; gap: 16px; }
}

/* ===== 会社情報: タブレット幅(≤1024px)からSPデザインを適用 ===== */
@media (max-width: 1024px) {
  /* Greeting: 本文→画像の順（DOMは画像が先なのでflex+orderで反転） */
  /* gap:0で本文末尾のHAMADA透かしの底辺を画像にくっつける */
  .greeting-section { display: flex; flex-direction: column; gap: 0; }
  .greeting-section__body { order: 1; padding-top: 30px; }
  .greeting-section__media {
    order: 2;
    /* SPは街＋代表の合成1枚に差し替え（PCは2枚divのまま） */
    background: url('images/greeting-sp.webp') center top / cover no-repeat;
    aspect-ratio: 780 / 1664;
  }
  .greeting-section__media .greeting-section__img { display: none; }
  /* 本文の左右余白を揃える（セクション余白をリセットしcompany-layoutのgutterで均等に） */
  .greeting-section { padding: 0; }
  /* 本文・代表名は左揃え（左右いっぱい・余白均等）。ラベルと見出しは中央＋バー下 */
  .greeting-section__body { align-items: stretch; text-align: left; }
  .greeting-section__text { text-align: left; }
  .greeting-section__sign { text-align: left; margin-bottom: 30px; }
  .greeting-section__name { justify-content: flex-start; }
  .greeting-section__body .sec-title { align-self: center; align-items: center; }
  .greeting-section__title { text-align: center; }
  .greeting-section__body .sec-title__en { flex-direction: column-reverse; align-items: center; gap: 8px; }
  /* 画像はSPで横幅100%（全幅）。100vwはスクロールバー分はみ出すため、gutter分の負マージンで全幅化 */
  .greeting-section__media { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }

  /* Overview表: ラベル上・値下の縦積み */
  .info-row { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }

  /* 沿革のタイトルはService等と統一（中央＋バー下）。会社概要は左揃えのまま */
  .history .sec-title { display: flex; align-items: center; align-self: center; width: 100%; }
  .history .sec-title__en { flex-direction: column-reverse; align-items: center; gap: 8px; }
  .history .sec-title__jp { text-align: center; width: 100%; }

  /* Mission: 下段1カラム、サブタイトル中央寄せ、キャッチは横書き */
  .mission-section__bottom { grid-template-columns: 1fr; }
  .mission-section__cell:first-child { border-right: 0; border-bottom: 1px solid var(--c-line); }
  .mission-section__copy,
  .mission-section__cell { text-align: center; }
  .mission-section__copy .sub-title,
  .mission-section__cell .sub-title { justify-content: center; flex-direction: column-reverse; align-items: center; gap: 8px; }
  .mission-section__catch {
    flex-direction: column; gap: 6px; margin-top: 24px;
    white-space: normal; align-items: center; font-size: 24px;
  }
  .mission-section__catch span {
    writing-mode: horizontal-tb; -webkit-writing-mode: horizontal-tb; text-orientation: mixed;
  }
  .mission-section__lead { font-size: 20px; }

  /* Office: 情報を縦積み */
  .office-card__info { grid-template-columns: 1fr; gap: 16px; padding: 4px 8px 8px; }
  .office-card__details { grid-template-columns: 1fr; gap: 16px; }

  /* History: 年代アコーディオン（PCは常に全展開、ここで開閉式に） */
  .history-decade { display: block; padding: 0; gap: 0; }
  .history-decade__year { cursor: pointer; padding: 22px 0; font-size: 22px; }
  .history-decade__toggle {
    display: block; position: relative; width: 16px; height: 16px; flex: 0 0 16px;
  }
  .history-decade__toggle::before,
  .history-decade__toggle::after {
    content: ''; position: absolute; left: 50%; top: 50%;
    background: var(--c-text); transform: translate(-50%, -50%);
  }
  .history-decade__toggle::before { width: 14px; height: 2px; }
  .history-decade__toggle::after { width: 2px; height: 14px; transition: opacity .2s ease; }
  .history-decade.is-open .history-decade__toggle::after { opacity: 0; }
  .history-decade__list {
    overflow: hidden; max-height: 0; gap: 0;
    transition: max-height .35s ease, padding .35s ease;
  }
  .history-decade.is-open .history-decade__list { max-height: 1600px; padding-bottom: 24px; }
  .history-decade__list li { grid-template-columns: 1fr; gap: 2px; padding: 8px 0; }
}

@media (max-width: 720px) {
  body.page-company { padding-top: 64px; }
  .page-title { height: 290px; }
  .page-title__inner { height: 290px; justify-content: flex-end; padding-top: 0; padding-bottom: 40px; gap: 12px; }
  .page-title__en { font-size: 46px; }
  .page-title__grid { grid-template-columns: repeat(3, 1fr); }
  .page-title__grid span:nth-child(n+4) { display: none; }
  .page-title__grid span:nth-child(3) { border-right: 0; }
  .page-shop .page-title,
  .page-shop .page-title__inner { height: 260px; }
  /* News・採用情報のFV(page-title)を20px短く */
  .page-news .page-title, .page-news .page-title__inner,
  .page-recruit .page-title, .page-recruit .page-title__inner { height: 270px; }
  .shop-xbnr-wrap { padding: 0 15px; }
  .company-section { padding: 56px 0; }
  .info-row { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .mission-section__bottom { grid-template-columns: 1fr; }
  .mission-section__cell:first-child { border-right: 0; border-bottom: 1px solid var(--c-line); }
  .mission-section__catch { font-size: 22px; }
  .mission-section__lead { font-size: 20px; }
  .history-item { grid-template-columns: 1fr; gap: 8px; }
  .history-item::before { display: none; }
  .history-list { padding-left: 0; border-left: 0; }
}

/* small UX touches */
/* =========================================================== FV: 文字を左→右に表示（全ページ・読込時） */
@keyframes fv-wipe {
  from { clip-path: inset(0 100% 0 0); opacity: 0; }
  to   { clip-path: inset(0 0 0 0); opacity: 1; }
}
/* 下層ページFVタイトルは1文字ずつ左→右にゆっくり表示(char-reveal)。
   分割前の素テキストが一瞬出るのを防ぐ。 */
.page-title__en.char-reveal:not([data-char-done]),
.page-title__jp.char-reveal:not([data-char-done]) { opacity: 0; }
.mv__catch-en { animation: fv-wipe 2s var(--ease-out) .15s both; }
/* JPキャッチ: FVタイトルと同じく左→右へ。1文字ずつ表示(char-reveal)。
   JSが文字分割する前の素のテキストが一瞬出るのを防ぐ。 */
.mv__catch-jp.char-reveal:not([data-char-done]) { opacity: 0; }

/* =========================================================== スクロール表示アニメ */
.reveal { opacity: 0; transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--right { transform: translateX(48px); }
.reveal--left { transform: translateX(-48px); }
.reveal--up { transform: translateY(24px); }
/* FVと同じ左→右ワイプ（スクロール発火）。FVと同じkeyframeをis-visibleで再生 */
.reveal.reveal--wipe { opacity: 0; transform: none; }
.reveal.reveal--wipe.is-visible { animation: fv-wipe 1.4s var(--ease-out) both; }
/* TOPサービス: スクロールして0.3秒後にふわっと */
.service-item.reveal { transition-delay: .3s; }
/* 採用: 求人カードはスクロールして0.3秒後に表示 */
.job-card.reveal { transition-delay: .3s; }
/* 店舗: コーナー画像はスクロールして0.3秒後に表示 */
.shop-item.reveal { transition-delay: .3s; }
/* 文字ごと(Greeting見出し): 左→右へ一文字ずつ */
.char-reveal__c {
  display: inline-block; white-space: pre;
  opacity: 0; transform: translateX(-14px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.char-reveal.is-visible .char-reveal__c { opacity: 1; transform: none; }
/* Greeting見出しは下層FVタイトル(2s)と同じ表示スピードに合わせる(1文字ごとのフェードを延長) */
.greeting-section__title.char-reveal .char-reveal__c {
  transition-duration: .8s, .8s;
}
/* 下層FVタイトル: 1文字ごとのフェードをゆっくり */
.page-title__en.char-reveal .char-reveal__c,
.page-title__jp.char-reveal .char-reveal__c {
  transition-duration: .9s, .9s;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .char-reveal__c { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* =========================================================== News (microCMS生成ページ) */

/* TOP: news-item をリンク化（レイアウトは既存グリッドを継承） */
.news-item__link { display: contents; color: inherit; }
.news-item:hover .news-item__title { color: var(--c-blue); }

/* News 一覧 */
.news-archive { padding: clamp(56px, 9vw, 120px) 0; }
.news-archive__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.news-archive__list { border-top: 1px solid var(--c-line); }
.news-archive__item { border-bottom: 1px solid var(--c-line); }
.news-archive__link {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px 8px; color: inherit;
  transition: background-color .25s var(--ease-out);
}
.news-archive__link:hover { background: var(--c-bg-soft); }
.news-archive__link:hover .news-archive__title { color: var(--c-blue); }
.news-archive__date { font-family: 'Outfit', sans-serif; font-weight: 500; font-size: 14px; color: var(--c-text-sub); }
.news-archive__title { font-weight: 700; font-size: 17px; line-height: 1.6; transition: color .25s var(--ease-out); }
.news-archive__excerpt {
  font-size: 14px; line-height: 1.9; color: var(--c-text-sub);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-archive__empty { padding: 64px 0; text-align: center; color: var(--c-text-sub); }

/* ページネーション（四角番号） */
.pager { display: flex; justify-content: center; gap: 16px; margin-top: 64px; }
.pager__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border: 1px solid var(--c-text);
  font-family: 'Outfit', sans-serif; font-size: 18px; color: var(--c-text);
  transition: background-color .2s, color .2s;
}
.pager__num:hover { background: var(--c-bg-soft); }
.pager__num.is-current { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }

/* News 詳細 */
.news-detail { padding: clamp(40px, 7vw, 80px) 0 clamp(64px, 10vw, 120px); }
.news-detail__inner { max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); }
.news-detail__crumbs {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  font-size: 12px; color: var(--c-text-sub); margin-bottom: 40px;
}
.news-detail__crumbs a { color: var(--c-text-sub); }
.news-detail__crumbs a:hover { color: var(--c-blue); }
.news-detail__crumbs .is-current { color: var(--c-text); }
.news-detail__title { font-weight: 700; font-size: clamp(24px, 4vw, 36px); line-height: 1.5; }
.news-detail__date { display: block; margin-top: 16px; font-family: 'Outfit', sans-serif; font-size: 14px; color: var(--c-text-sub); }
.news-detail__body { margin-top: 32px; font-size: 16px; line-height: 2; }
.news-detail__body p { margin-bottom: 1.5em; }
.news-detail__body p:last-child { margin-bottom: 0; }
.news-detail__body a { color: var(--c-blue-light); text-decoration: underline; word-break: break-all; }
.news-detail__body img { max-width: 100%; height: auto; display: block; margin: 1.5em auto; }
.news-detail__empty { margin-top: 32px; color: var(--c-text-sub); }
.news-detail__pager { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 72px; }
.news-detail__side { font-size: 15px; color: var(--c-text); transition: color .2s; }
.news-detail__side:hover { color: var(--c-blue); }
.news-detail__side.is-disabled { color: var(--c-line); pointer-events: none; }
.news-detail__back {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 160px; height: 49px; padding: 0 24px;
  background: var(--c-text); color: #fff; font-size: 15px; transition: opacity .2s;
}
.news-detail__back:hover { opacity: .82; }

@media (max-width: 768px) {
  .news-detail__pager { gap: 12px; margin-top: 48px; }
  .news-detail__side { font-size: 13px; }
  .news-detail__back { min-width: 120px; padding: 0 16px; }
  .pager__num { width: 48px; height: 48px; font-size: 16px; }
}

/* =========================================================== 取扱製品（Product） */
html { scroll-behavior: smooth; }

/* 主な取り扱いメーカー（ロゴカードのグリッド） */
.product-brands {
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-line);
  padding: clamp(56px, 9vw, 100px) 0;
}
.product-brands__inner,
.product-list__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.product-brands .sec-title,
.product-list .sec-title { margin-bottom: clamp(32px, 5vw, 56px); }

.brand-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  list-style: none;
}
.brand-card {
  position: relative; min-width: 0;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  transition: background-color .2s var(--ease-out), opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.brand-card:hover { background-color: #F6F8FA; }
.brand-card__link {
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px 26px 26px;
  color: inherit; text-decoration: none;
  width: 100%; height: 100%;
}
.brand-card__link:hover { opacity: 1; }
/* link 無しの場合は li 自身がパディングを持つ */
.brand-card:not(:has(.brand-card__link)) {
  padding: 24px 26px 26px;
  display: flex; flex-direction: column; gap: 16px;
}
.brand-card__logo {
  height: 84px; display: flex; align-items: center; justify-content: center;
  padding-bottom: 16px; border-bottom: 1px solid var(--c-line);
}
.brand-card__logo img { max-width: 86%; max-height: 72px; object-fit: contain; }
.brand-card__noimg { font-weight: 700; font-size: 15px; color: var(--c-text-sub); text-align: center; }
.brand-card__name { font-weight: 700; font-size: 16px; line-height: 1.5; margin-bottom: 10px; }
.brand-card__name a,
.maker-row__name a { color: inherit; transition: color .2s var(--ease-out); }
.brand-card__name a:hover,
.maker-row__name a:hover { color: var(--c-blue); text-decoration: underline; }
.brand-card__tags {
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  font-size: 12px; line-height: 1.8; color: var(--c-text);
}
.brand-card__tag::before { content: "#"; font-weight: 700; margin-right: 2px; }

/* 取扱メーカー一覧（五十音） */
.product-list { padding: clamp(56px, 9vw, 100px) 0; }

.kana-nav {
  display: flex; flex-wrap: wrap; gap: 14px 30px;
  padding: 24px 0; margin-bottom: clamp(24px, 4vw, 48px);
  border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
}
.kana-nav__item {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 17px; color: var(--c-text);
}
.kana-nav__arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 25px; height: 25px; border-radius: 50%;
  background: #3c4453; color: #fff; font-size: 12px; line-height: 1;
  transition: background-color .2s var(--ease-out);
}
.kana-nav__item:hover .kana-nav__arrow { background: var(--c-blue); }
.kana-nav__item.is-disabled { opacity: .3; pointer-events: none; }

.maker-group {
  position: relative; margin-top: 56px; padding-top: 28px;
  border-top: 3px solid var(--c-line);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.maker-group:first-child { margin-top: 0; }
.maker-group::before {
  content: ""; position: absolute; top: -3px; left: 0;
  width: 130px; height: 3px; background: var(--c-blue);
}
.maker-group__head {
  font-weight: 700; font-size: clamp(28px, 4vw, 36px);
  letter-spacing: 0.04em; margin-bottom: 8px;
}
.maker-group__list { list-style: none; }
.maker-row {
  border-bottom: 1px solid var(--c-line);
  transition: background-color .2s var(--ease-out), opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.maker-row:hover { background-color: #F6F8FA; }
.maker-row__link {
  display: flex; gap: 24px; padding: 26px 8px;
  color: inherit; text-decoration: none;
  width: 100%;
}
.maker-row__link:hover { opacity: 1; }
.maker-row:not(:has(.maker-row__link)) {
  display: flex; gap: 24px; padding: 26px 8px;
}
.maker-row__name { flex: 0 0 360px; font-weight: 500; font-size: 16px; line-height: 1.7; }
.maker-row__products { flex: 1; font-size: 15px; line-height: 1.9; color: var(--c-text-sub); }

@media (max-width: 1024px) {
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .maker-row__name { flex-basis: 280px; }
}
@media (max-width: 768px) {
  .maker-row__link,
  .maker-row:not(:has(.maker-row__link)) { flex-direction: column; gap: 6px; padding: 20px 4px; }
  .maker-row__name { flex: none; }
  .kana-nav { gap: 12px 22px; }
}
@media (max-width: 560px) {
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .brand-card__link,
  .brand-card:not(:has(.brand-card__link)) { padding: 16px 14px 18px; gap: 12px; }
  .brand-card__logo { height: 60px; padding-bottom: 12px; }
  .brand-card__logo img { max-height: 52px; }
  .brand-card__name { font-size: 14px; margin-bottom: 8px; }
  .brand-card__tags { font-size: 11px; }
}

/* =========================================================== 採用情報（Recruit） */
.btn--accent { background: var(--c-blue-light); color: #fff; }
.btn--accent:hover { opacity: 1; background: #0b5cb0; }

/* 働く魅力 3点 */
.recruit-merits { background: #fff; padding: clamp(56px, 9vw, 100px) 0; }
.recruit-merits__inner,
.recruit-jobs__inner,
.recruit-details__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.recruit-merits .sec-title,
.recruit-jobs .sec-title,
.recruit-details .sec-title { margin-bottom: clamp(32px, 5vw, 53px); }

.merit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; list-style: none; }
.merit-card {
  background: var(--c-bg-soft); padding: 30px 21px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.merit-card__icon { margin-bottom: 22px; }
.merit-card__num { line-height: 1; margin-bottom: 5px; }
.merit-card__title { margin-bottom: 10px; }
.merit-card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 100px; height: 100px; border-radius: 50%;
  background: #fff; box-shadow: 0 6px 18px rgba(10, 15, 26, .06);
}
.merit-card__icon img { width: 56px; height: 56px; object-fit: contain; }
.merit-card__num { font-family: 'Outfit', sans-serif; font-weight: 500; font-size: 27px; color: var(--c-blue-light); }
.merit-card__title { font-weight: 500; font-size: 24px; line-height: 1.35; white-space: nowrap; }
.merit-card__text { font-size: 16px; line-height: 2; color: var(--c-text); }

/* 募集職種カード */
.recruit-jobs { background: var(--c-bg-soft); padding: clamp(64px, 10vw, 120px) 0; }
.job-list { display: flex; flex-direction: column; gap: 40px; list-style: none; }
.job-card {
  background: #fff; border-radius: 6px; padding: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column; gap: clamp(24px, 3vw, 32px);
}
.job-card__main {
  display: flex; gap: clamp(28px, 4vw, 56px); align-items: flex-start;
}
.job-card__media { flex: 0 0 388px; max-width: 388px; aspect-ratio: 388 / 269; }
.job-card__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; display: block; }
.job-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.job-card__title { font-weight: 700; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.4; }
.job-card__meta { display: flex; flex-direction: column; gap: 4px; }
.job-card__meta div { display: block; font-size: 16px; line-height: 1.7; color: var(--c-text); }
.job-card__meta dt { display: inline; font-weight: 500; }
.job-card__meta dt::after { content: ":"; }
.job-card__meta dd { display: inline; margin: 0; color: var(--c-text); }
.job-card__tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.job-card__tag {
  background: #525252; color: #fff; border-radius: 999px;
  padding: 5px 14px; font-size: 11px; line-height: 1.4;
}
.job-card__text { font-size: 15px; line-height: 1.9; color: #414141; }
.job-card__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 4px; justify-content: center; }
.job-card__actions .btn { flex: 0 1 220px; min-width: 0; height: 48px; font-size: 14px; font-weight: 700; padding: 0 24px; }

/* 募集要項（詳細） */
.recruit-details { padding: clamp(64px, 10vw, 120px) 0; }
.recruit-detail { margin-top: clamp(48px, 7vw, 80px); scroll-margin-top: calc(var(--header-h) + 16px); }
.recruit-detail:first-of-type { margin-top: 0; }
.recruit-detail__title {
  font-weight: 700; font-size: clamp(22px, 3vw, 30px); line-height: 1.4;
  padding-bottom: 24px; border-bottom: 1px solid var(--c-text); margin-bottom: 8px;
}
.recruit-detail__list { width: 100%; }
.recruit-detail__row { display: flex; flex-direction: column; gap: 10px; padding: 24px 4px; border-bottom: 1px solid var(--c-line); }
.recruit-detail__label { font-weight: 700; font-size: 16px; color: var(--c-text-sub); line-height: 1.6; }
.recruit-detail__content { margin: 0; min-width: 0; font-size: 16px; line-height: 1.95; color: var(--c-text); }
.recruit-detail__rich { font-size: 16px; line-height: 1.95; }
.recruit-detail__apply { display: flex; justify-content: center; margin-top: 48px; }

@media (max-width: 1024px) {
  .merit-grid { gap: 20px; }
  .merit-card { padding: 40px 18px; }
}
@media (max-width: 768px) {
  .recruit-merits__inner { text-align: center; }
  .recruit-merits .sec-title { align-items: center; }
  .merit-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .job-card__main { flex-direction: column; gap: 24px; }
  .job-card__media { flex-basis: auto; max-width: 100%; width: 100%; }
  .job-card__actions { flex-direction: column; gap: 14px; }
  .job-card__actions .btn { flex: none; width: 100%; min-width: 0; height: 60px; font-size: 15px; }
  .job-card__title { font-size: 24px; }
  .job-card__meta div { font-size: 12px; }
  .job-card__text { font-size: 12px; }
  .job-card__tags { gap: 4px; flex-wrap: nowrap; }
  .job-card__tag { padding: 4px 7px; font-size: 10px; white-space: nowrap; }
  .recruit-detail__row { padding: 20px 4px; }
}

/* =========================================================== フォーム（お問い合わせ / エントリー） */
.form-section { background: var(--c-bg-soft); padding: clamp(40px, 7vw, 88px) 0; }
.form-section__inner { padding: 0 var(--gutter); }
.ef { max-width: 920px; margin: 0 auto; }

/* ステップインジケータ */
.form-steps {
  display: flex; justify-content: center; align-items: flex-start;
  list-style: none; margin: 0 auto clamp(28px, 5vw, 48px); padding: 0;
}
.form-steps__item {
  position: relative; width: 96px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--c-text-sub);
}
.form-steps__num {
  position: relative; z-index: 1;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: #d7dde5; color: #fff;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 15px;
  transition: background-color .25s var(--ease-out);
}
.form-steps__label { font-size: 12px; letter-spacing: 0.08em; }
.form-steps__item.is-active { color: var(--c-blue); }
.form-steps__item.is-active .form-steps__num { background: var(--c-blue); }
.form-steps__item:not(:first-child)::before {
  content: ""; position: absolute; top: 16px; right: 50%;
  width: 96px; height: 2px; background: #d7dde5; z-index: 0;
}
.form-steps__item.is-active:not(:first-child)::before { background: var(--c-blue); }

/* ステップ本体（白カード） */
.form-step { display: none; }
.form-step.is-active {
  display: block; background: #fff; border-radius: 14px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 18px 50px rgba(6, 63, 133, .06);
}
.form-intro {
  text-align: center; color: var(--c-text-sub);
  line-height: 1.9; font-size: 14px; margin-bottom: clamp(24px, 4vw, 40px);
}

/* 入力行 */
.form-rows { display: flex; flex-direction: column; }
.form-row {
  /* 入力欄は常に幅100%。ラベルは上、入力欄を全幅で表示する縦積みレイアウト */
  display: flex; flex-direction: column; gap: 8px; padding: 16px 0;
  border-bottom: 1px solid var(--c-line); align-items: stretch;
}
.form-row:first-child { border-top: 1px solid var(--c-line); }
.form-row__head { display: flex; align-items: center; gap: 8px; }
.form-row__label { font-size: 14px; font-weight: 700; }
.form-row__body { width: 100%; min-width: 0; }
.req-badge {
  background: var(--c-red); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1;
  border-radius: 4px; padding: 4px 7px; letter-spacing: 0.02em;
}
.form-input {
  width: 100%; background: var(--c-bg-soft); border: 1px solid transparent;
  border-radius: 8px; padding: 13px 16px; font-size: 15px;
  font-family: inherit; color: var(--c-text);
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.form-input::placeholder { color: #9aa3b0; }
.form-input:focus { outline: none; border-color: var(--c-blue-light); background: #fff; }
.form-input--area { min-height: 160px; resize: vertical; line-height: 1.7; }
.form-error { display: none; margin-top: 8px; color: var(--c-red); font-size: 13px; }
.form-row.is-error .form-input { border-color: var(--c-red); background: #fff5f5; }
.form-row.is-error .form-error,
.form-consent.is-error .form-error { display: block; }

/* チェックボックス群 */
.form-checks { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; line-height: 1.6; }
.form-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--c-blue); flex: 0 0 auto; }

/* 同意・ハニーポット */
.form-consent { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.form-consent .form-check { justify-content: center; }
.form-consent a { color: var(--c-blue-light); text-decoration: underline; }
.form-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Turnstile */
.form-turnstile { display: flex; justify-content: center; margin-top: 28px; }

/* アクション */
.form-actions { display: flex; justify-content: center; margin-top: clamp(28px, 5vw, 40px); }
.form-actions--confirm { gap: 20px; flex-wrap: wrap; }
.btn--edit { background: #3a4250; color: #fff; }
.btn--edit:hover { background: #2b313c; opacity: 1; }

/* 確認画面 */
.form-confirm { border-top: 1px solid var(--c-line); margin-bottom: 8px; }
.form-confirm__row { display: flex; gap: 24px; padding: 18px 4px; border-bottom: 1px solid var(--c-line); }
.form-confirm__row dt { flex: 0 0 200px; color: var(--c-text-sub); font-weight: 700; font-size: 14px; }
.form-confirm__row dd { flex: 1; min-width: 0; white-space: pre-line; word-break: break-word; }
.form-confirm__row dd.is-empty::after { content: "—"; color: #aab2bd; }

/* 完了画面 */
.form-complete { text-align: center; padding: clamp(20px, 4vw, 40px) 0; }
.form-complete__title { font-size: clamp(18px, 2.4vw, 24px); font-weight: 700; }
.form-complete__text { margin: 20px 0 32px; color: var(--c-text-sub); line-height: 1.9; font-size: 14px; }

@media (max-width: 720px) {
  .form-row { padding: 14px 0; }
  .form-confirm__row { flex-direction: column; gap: 6px; }
  .form-confirm__row dt { flex: none; }
  .form-actions--confirm { flex-direction: column-reverse; align-items: stretch; }
  .form-page .form-actions .btn--wide { min-width: 0; width: 100%; }
  .form-steps__item { width: 84px; }
  .form-steps__item:not(:first-child)::before { width: 84px; }
}

/* =========================================================== 準備中（Coming Soon） */

.coming-soon { padding: clamp(56px, 9vw, 112px) 0 clamp(72px, 12vw, 144px); }
.coming-soon__inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
}
.coming-soon__lead { font-size: clamp(20px, 3vw, 28px); font-weight: 700; color: var(--c-text); }
.coming-soon__text { font-size: 15px; line-height: 1.9; color: var(--c-text-sub); }
.coming-soon .btn { margin-top: 16px; }

/* =========================================================== Shop page */
body.page-shop { padding-top: 80px; background: #fff; }
.page-shop [id] { scroll-margin-top: 96px; }

/* Storefront 画像 */
.shop-storefront { padding: 0 0 clamp(40px, 6vw, 72px); }
.shop-storefront__inner {
  max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 6vw, 86px);
}
.shop-storefront__inner img {
  width: 100%; aspect-ratio: 1267 / 633;
  object-fit: cover; border-radius: 4px;
}
/* SP: 左右paddingを0にして画像を全幅・大きく（全体が見える比率に） */
@media (max-width: 720px) {
  .shop-storefront__inner { padding: 0; max-width: none; }
  .shop-storefront__inner img { border-radius: 0; aspect-ratio: 1536 / 1024; }
}

/* X バナー */
.shop-xbnr-wrap { padding: 0; }
.shop-xbnr {
  display: block;
  max-width: 1042px; margin: 0 auto;
  transition: transform .25s var(--ease-out), opacity .25s var(--ease-out);
}
.shop-xbnr:hover { opacity: 1; transform: translateY(-2px); }
.shop-xbnr picture { display: block; }
.shop-xbnr img { width: 95%; height: auto; display: block; margin: 0 auto; }

/* PC USEFUL 紹介 + コーナー */
.shop-corner { padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 10vw, 144px); }
.shop-corner__inner {
  max-width: 1440px; margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 112px);
  display: grid; grid-template-columns: 419fr 696fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
.shop-corner__head {
  position: sticky; top: 120px;
  display: flex; flex-direction: column; gap: 40px;
}
.shop-corner__lead {
  font-size: 15px; line-height: 2; color: var(--c-text);
}
.shop-corner__items {
  display: flex; flex-direction: column; gap: 80px;
}
.shop-item {
  display: flex; flex-direction: column; gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--c-line);
  position: relative;
}
.shop-item::before {
  content: ''; position: absolute; top: -1px; left: 0;
  width: 40px; height: 1px; background: var(--c-blue);
}
.shop-item__title {
  font-weight: 700; font-size: clamp(20px, 2vw, 26px);
  letter-spacing: 0.04em; color: var(--c-text);
}
.shop-item__media {
  border-radius: 4px; overflow: hidden;
  aspect-ratio: 696 / 464;
}
.shop-item__media img { width: 100%; height: 100%; object-fit: cover; }

/* 取り扱い商品（青背景） */
.shop-products {
  position: relative; overflow: hidden;
  background: #063f85 url('images/shop/products-bg.webp') center / cover no-repeat;
  padding: clamp(72px, 10vw, 118px) 0;
  color: #fff;
}
/* PCのみ背景画像を差し替え（SPは products-bg.webp のまま） */
@media (min-width: 721px) {
  .shop-products { background-image: url('images/shop/products-bg-pc.webp'); }
}
.shop-products__inner {
  position: relative; z-index: 1;
  max-width: 1440px; margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 112px);
  display: flex; flex-direction: column; gap: 28px; align-items: flex-start;
}
.shop-products__inner > * { max-width: 720px; }
.shop-products__text {
  font-size: 15px; line-height: 2; color: rgba(255,255,255,.92);
}

/* Map + Access */
.shop-access { padding: clamp(48px, 7vw, 96px) 0; }
.shop-access__inner {
  max-width: 1440px; margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 112px);
  display: grid; grid-template-columns: 720fr 428fr;
  gap: clamp(40px, 5vw, 65px);
  align-items: stretch;
}
.shop-access__map {
  position: relative;
  border-radius: 4px; overflow: hidden;
  min-height: 100%;
}
.shop-access__map a { display: block; width: 100%; height: 100%; }
.shop-access__map img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-out); }
.shop-access__map a:hover img { transform: scale(1.02); }
.shop-access__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.shop-access__body {
  display: flex; flex-direction: column; gap: 32px;
}
.shop-access__name {
  font-weight: 700; font-size: clamp(20px, 2vw, 24px);
  letter-spacing: 0.04em; color: var(--c-text);
  margin: 0;
}
.shop-access__block {
  display: flex; flex-direction: column; gap: 14px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--c-line);
}
.shop-access__sub {
  font-weight: 700; font-size: 15px;
  letter-spacing: 0.06em; color: var(--c-text);
  margin: 0;
}
.shop-access__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.shop-access__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px; line-height: 1.9; color: var(--c-text);
}
.shop-access__list li::before {
  content: ''; position: absolute;
  left: 0; top: calc(0.95em - 3px);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-blue);
}
.shop-access__label {
  display: inline-block; min-width: 4em;
  font-weight: 700; color: var(--c-text-sub);
  margin-right: 8px;
}

/* Shop responsive */
@media (max-width: 1080px) {
  .shop-corner__inner { grid-template-columns: 1fr; gap: 48px; }
  .shop-corner__head { position: static; gap: 24px; align-items: center; text-align: center; }
  .shop-corner__head .sec-title { align-items: center; }
  .shop-corner__head .sec-title__en { flex-direction: column-reverse; gap: 8px; }
  .shop-corner__lead { text-align: left; }
  .shop-corner__items { gap: 56px; }
  .shop-access__inner { grid-template-columns: 1fr; gap: 40px; }
  .shop-access__map { min-height: 320px; }
  .shop-access__body .sec-title { align-self: center; align-items: center; text-align: center; }
  .shop-access__body .sec-title__en { flex-direction: column-reverse; gap: 8px; }
}

@media (max-width: 768px) {
  .shop-products__text { font-size: 14px; }
  .shop-item__title { font-size: 18px; }
}

/* =========================================================== BtoB Solution page */
body.page-btob { padding-top: 80px; background: #fff; }
.page-btob [id] { scroll-margin-top: 96px; }

/* Philosophy: 大きな背景画像＋ダークオーバーレイ＋中央のサービス理念 */
.btob-philosophy {
  position: relative;
  background-size: cover; background-position: center;
  padding: clamp(72px, 10vw, 140px) 0 clamp(72px, 10vw, 140px);
  overflow: hidden;
  color: #fff;
}
.btob-philosophy__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,31,84,.30) 0%, rgba(6,31,84,.42) 100%);
}
.btob-philosophy__inner {
  position: relative; z-index: 1;
  max-width: 1440px; margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.btob-philosophy__badge {
  font-family: 'Outfit', sans-serif; font-weight: 500;
  font-size: 14px; letter-spacing: 0.16em; text-transform: capitalize;
  color: #fff; opacity: 0.92;
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
}
/* 「Service」の下に線（お問い合わせ等と同じ青/赤バー） */
.btob-philosophy__badge::after {
  content: ''; display: block; width: 24px; height: 2px;
  background: linear-gradient(to right, var(--c-blue) 0 15px, var(--c-red) 15px 24px);
}
.btob-philosophy__title {
  font-weight: 700; font-size: clamp(22px, 2.5vw, 30px);
  letter-spacing: 0.08em; color: #fff; margin: 0;
}
.btob-philosophy__lead {
  font-weight: 700; font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.5; letter-spacing: 0.04em;
  margin-top: 16px;
}
.btob-philosophy__text {
  font-size: 14px; line-height: 2; color: rgba(255,255,255,.85);
  margin-top: 8px;
}
@media (max-width: 720px) {
  /* SP専用背景（PCは philosophy.webp のまま） */
  .btob-philosophy { background-image: url('images/btob/philosophy-sp.webp') !important; }
  /* サービス理念 見出しを Figma SP（24px / 行間40px）に合わせる */
  .btob-philosophy__title { font-size: 24px; line-height: 1.67; }
  .btob-philosophy__lead { font-size: 17px; }
  .btob-philosophy__text { font-size: 10px; line-height: 1.86; }
  .btob-service__title { font-size: 20px; letter-spacing: 0.02em; }
  .btob-service__title br { display: none; }
  /* 浜田電機の強み: 見出しを中央寄せ（カードは左のまま・全幅） */
  .btob-strengths__inner { align-items: center; text-align: center; }
  .btob-strengths__inner .sec-title { align-items: center; }
  .btob-strengths__inner .sec-title__en { flex-direction: column-reverse; gap: 8px; }
  .btob-strengths__row { align-self: stretch; text-align: left; }
}
/* Services: 3つの大カード */
.btob-services { padding: clamp(72px, 10vw, 150px) 0; background: var(--c-bg-soft); overflow-x: clip; }
/* btobサービス行はスライド距離を大きく(行ごと右/左)。表示後(.is-visible)はnoneに戻す */
.btob-service.reveal--right:not(.is-visible) { transform: translateX(160px); }
.btob-service.reveal--left:not(.is-visible) { transform: translateX(-160px); }
.btob-services__inner {
  max-width: 1440px; margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; flex-direction: column; gap: clamp(56px, 6vw, 80px);
}
.btob-service {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 153px);
  align-items: center;
}
.btob-service__media {
  border-radius: 4px; overflow: hidden;
  aspect-ratio: 642 / 497;
}
.btob-service__media picture { display: block; width: 100%; height: 100%; }
.btob-service__media img { width: 100%; height: 100%; object-fit: cover; }
.btob-service__body {
  display: flex; flex-direction: column; gap: 24px;
}
.btob-service__title {
  font-weight: 700; font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.5; letter-spacing: 0.04em; color: var(--c-text);
  margin: 0;
}
.btob-service__text {
  font-size: 15px; line-height: 2; color: var(--c-text);
}

/* Contact CTA: 青背景＋右にボタン */
.btob-cta { background: var(--c-blue); color: #fff; padding: clamp(56px, 7vw, 103px) 0; }
.btob-cta__inner {
  max-width: 1440px; margin: 0 auto;
  padding: 0 clamp(20px, 7vw, 100px);
  display: grid; grid-template-columns: 1fr auto;
  align-items: end; gap: 40px;
}
.btob-cta__head {
  display: grid; grid-template-columns: auto 1fr;
  gap: clamp(32px, 6vw, 100px);
  align-items: start;
}
.btob-cta__text {
  font-size: 14px; line-height: 2; color: rgba(255,255,255,.92);
  padding-top: 8px;
}
.btob-cta__btn { grid-column: 1 / -1; justify-self: end; }

/* Strengths: 5カード（2+3） */
.btob-strengths { padding: clamp(72px, 10vw, 150px) 0; background: #fff; }
.btob-strengths__inner {
  max-width: 1440px; margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; flex-direction: column; gap: clamp(32px, 4vw, 38px);
}
.btob-strengths__inner .sec-title { margin-bottom: 16px; }
.btob-strengths__row {
  display: grid; gap: clamp(20px, 3vw, 50px);
}
.btob-strengths__row--2 { grid-template-columns: 1fr 1fr; }
.btob-strengths__row--3 { grid-template-columns: 1fr 1fr 1fr; }
.btob-strength {
  display: flex; flex-direction: column;
}
.btob-strength__media {
  border-radius: 4px; overflow: hidden;
  aspect-ratio: 580 / 227;
  margin-bottom: 20px;
}
.btob-strength__media img { width: 100%; height: 100%; object-fit: cover; }
.btob-strength__num {
  font-family: 'Outfit', sans-serif; font-weight: 500;
  font-size: 18px; line-height: 1; letter-spacing: 0.04em; color: #006CD8;
  margin: 0 0 5px;
}
.btob-strength__title {
  font-weight: 700; font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.2; letter-spacing: 0.04em; color: var(--c-text);
  margin: 0;
}

/* BtoB レスポンシブ */
@media (max-width: 1080px) {
  .btob-service { grid-template-columns: 1fr; gap: 24px; }
  .btob-cta__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 32px; }
  .btob-cta__head { grid-template-columns: 1fr; gap: 28px; justify-items: center; }
  .btob-cta__head .sec-title { align-items: center; }
  .btob-cta__head .sec-title__en { flex-direction: column-reverse; gap: 8px; }
  .btob-cta__text { padding-top: 0; font-size: 16px; }
  .btob-cta__btn { grid-column: 1 / -1; justify-self: stretch; width: 100%; }
  .btob-strengths__row--2,
  .btob-strengths__row--3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .btob-strengths__row--2,
  .btob-strengths__row--3 { grid-template-columns: 1fr; }
}

/* =========================================================== Onlineshop (E-commerce) page */
body.page-onlineshop { padding-top: 80px; background: #fff; }
.page-onlineshop [id] { scroll-margin-top: 96px; }

/* Philosophy（BtoBと同パターン・コンパクト版） */
.ec-philosophy {
  position: relative; overflow: hidden; color: #fff;
  background-size: cover; background-position: center;
  padding: clamp(56px, 8vw, 96px) 0;
}
.ec-philosophy__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,31,84,.30) 0%, rgba(6,31,84,.42) 100%);
}
.ec-philosophy__inner {
  position: relative; z-index: 1;
  max-width: 1440px; margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.ec-philosophy__badge {
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: 'Outfit', sans-serif; font-weight: 500;
  font-size: 14px; letter-spacing: 0.16em; text-transform: capitalize;
}
.ec-philosophy__bar {
  display: block; width: 24px; height: 2px;
  background: linear-gradient(to right, var(--c-blue-light) 0 15px, var(--c-red) 15px 24px);
}
.ec-philosophy__title {
  font-weight: 700; font-size: clamp(22px, 2.5vw, 30px);
  letter-spacing: 0.08em; margin: 0;
}
.ec-philosophy__lead {
  font-weight: 700; font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.6; letter-spacing: 0.04em;
}
.ec-philosophy__text {
  font-size: 13px; line-height: 1.9; color: rgba(255,255,255,.85);
}

/* About EC */
.ec-about__inner .sec-title__en,
.ec-sites__inner .sec-title__en,
.ec-makers__inner .sec-title__en { color: var(--c-text); }
.ec-about { padding: clamp(56px, 8vw, 96px) 0 0; background: #fff; }
.ec-about__inner {
  max-width: 1440px; margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; flex-direction: column; gap: 28px;
}
.ec-about__inner .sec-title { margin-bottom: 4px; }
.ec-about__br { display: none; }
.ec-about__lead {
  font-size: 14px; line-height: 2; color: var(--c-text);
}
.ec-about__points {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  border-top: 1px solid var(--c-line);
  padding-top: 32px;
}
.ec-about__points li {
  display: flex; flex-direction: column;
}
.ec-about__num {
  font-family: 'Outfit', sans-serif; font-weight: 500;
  font-size: 27px; line-height: 1; letter-spacing: 0.04em; color: #006CD8;
  margin-bottom: 8px;
}
.ec-about__title {
  font-weight: 700; font-size: 18px; line-height: 1.4;
  letter-spacing: 0.04em; color: var(--c-text); margin: 0 0 4px;
}
.ec-about__text {
  font-size: 13px; line-height: 1.7; color: var(--c-text-sub);
}
.ec-about__strip {
  overflow: hidden;
  margin-top: clamp(40px, 6vw, 80px);
  padding: 16px 0;
  background: var(--c-bg-soft);
}
.ec-about__strip-track {
  display: flex; gap: 24px;
  animation: ecstrip 28s linear infinite;
  width: max-content;
}
.ec-about__strip-track img {
  height: clamp(160px, 18vw, 256px);
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}
@keyframes ecstrip {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* E-commerce sites */
.ec-sites { padding: clamp(56px, 8vw, 96px) 0; background: #fff; }
.ec-sites__inner {
  max-width: 1240px; margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; flex-direction: column; gap: 24px;
}
.sec-title--center { align-self: center; align-items: center; text-align: center; }
.sec-title--center .sec-title__en { justify-content: center; }
/* バーを EN と JP の間に縦並びで配置する center 用バリアント */
.sec-title--stack { gap: 8px; }
.sec-title--stack .sec-title__en > .sec-title__bar { display: none; }
.sec-title--stack > .sec-title__bar {
  width: 24px; height: 2px;
  margin: 4px 0;
}
.sec-title--stack .sec-title__jp { margin-top: 4px; }
.ec-sites__lead {
  text-align: center; font-size: 13px; line-height: 1.9;
  color: var(--c-text-sub); margin-bottom: 24px;
}
.ec-sites__group {
  display: flex; flex-direction: column; gap: 28px;
  margin-top: 24px;
}
.ec-sites__sub {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.04em;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-line);
  margin: 0;
}
.ec-sites__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-blue);
}
.ec-sites__row {
  display: grid; gap: 40px;
  justify-items: center;
}
.ec-sites__row--3 { grid-template-columns: repeat(3, 269px); justify-content: center; }
.ec-sites__row--2 { grid-template-columns: repeat(2, 269px); justify-content: center; }
.ec-site {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  width: 100%; padding: 20px 30px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  color: var(--c-text);
  transition: transform .25s var(--ease-out), border-color .25s var(--ease-out), opacity .25s var(--ease-out);
}
.ec-site:hover { opacity: 1; transform: translateY(-2px); border-color: var(--c-blue); }
.ec-site__logo {
  width: 100%; height: 56px;
  display: flex; align-items: center; justify-content: center;
}
.ec-site__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ec-site__name {
  font-size: 13px; letter-spacing: 0.04em; color: var(--c-text);
  display: inline-flex; align-items: center; gap: 10px;
}
.ec-site__arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; font-size: 12px;
  color: var(--c-blue);
}

/* Featured Makers grid */
.ec-makers { padding: clamp(56px, 8vw, 96px) 0; background: var(--c-bg-soft); }
.ec-makers__inner {
  max-width: 1440px; margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px);
}
.ec-makers__grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 1.6vw, 24px);
}
.ec-makers__grid li {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  aspect-ratio: 285 / 264;
  overflow: hidden;
  transition: transform .25s var(--ease-out), border-color .25s var(--ease-out);
}
.ec-makers__grid li:hover {
  transform: translateY(-2px);
  border-color: var(--c-blue);
}
.ec-makers__grid a {
  display: block; width: 100%; height: 100%;
}
.ec-makers__grid a:hover { opacity: 1; }
.ec-makers__grid img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 1080px) {
  /* タブレット幅はPCデザインのまま3カラムを維持（gapのみ詰める） */
  .ec-about__points { gap: 28px; }
  .ec-sites__row--3,
  .ec-sites__row--2 { grid-template-columns: 1fr 1fr; }
  .ec-makers__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .ec-about__points { grid-template-columns: 1fr; gap: 24px; }
  .ec-sites__row--3,
  .ec-sites__row--2 { grid-template-columns: 1fr; }
  .ec-makers__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  /* サービス理念: SP専用背景（PCは onlineshop/philosophy.webp のまま） */
  .ec-philosophy { background-image: url('images/onlineshop/philosophy-sp.webp') !important; }
  /* 理念の最下部テキストを1行に収める */
  .ec-philosophy__text { font-size: 11px; white-space: nowrap; }
  /* About EC: 見出しは中央寄せ、説明文は左揃え（デザイン準拠） */
  .ec-about__inner { align-items: center; text-align: center; }
  .ec-about__inner .sec-title { align-items: center; }
  .ec-about__inner .sec-title__en { flex-direction: column-reverse; gap: 8px; }
  .ec-about__inner .sec-title__jp { text-align: center; }
  .ec-about__br { display: inline; }
  .ec-about__lead { align-self: stretch; text-align: left; }
  .ec-about__points { align-self: stretch; text-align: left; }
  .ec-about__points li { align-items: flex-start; }
  .ec-about__title { font-size: 30px; }
  .ec-about__text { font-size: 16px; }
  /* 取り扱い通販サイトのリード文は左詰め */
  .ec-sites__lead { text-align: left; }
  /* 注目取り扱いメーカー: 見出しを中央寄せ（グリッドは全幅） */
  .ec-makers__inner { align-items: center; text-align: center; }
  .ec-makers__inner .sec-title { align-items: center; }
  .ec-makers__inner .sec-title__en { flex-direction: column-reverse; gap: 8px; }
  .ec-makers__grid { align-self: stretch; }
}

/* =========================================================== Privacy Policy page */
body.page-privacy { padding-top: 80px; background: #fff; }
.page-privacy [id] { scroll-margin-top: 96px; }

.privacy { padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 10vw, 144px); background: #fff; }
.privacy__inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; flex-direction: column; gap: clamp(28px, 3vw, 36px);
}
.privacy__intro {
  font-size: 15px; line-height: 2; color: var(--c-text);
  margin: 0 0 8px;
}
.privacy__section {
  display: flex; flex-direction: column; gap: 12px;
}
.privacy__title {
  font-weight: 700; font-size: clamp(17px, 1.6vw, 20px);
  letter-spacing: 0.04em; line-height: 1.5;
  color: var(--c-text);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--c-blue);
  margin: 0;
}
.privacy__section p {
  font-size: 14px; line-height: 1.9; color: var(--c-text);
  margin: 0;
}
.privacy__list {
  list-style: none; counter-reset: pli; padding: 0; margin: 4px 0 0;
  display: flex; flex-direction: column; gap: 6px;
}
.privacy__list li {
  position: relative;
  padding-left: 3em;
  font-size: 14px; line-height: 1.9; color: var(--c-text);
  counter-increment: pli;
}
.privacy__list li::before {
  content: "（" counter(pli, cjk-decimal) "）";
  position: absolute; left: 0; top: 0;
  font-weight: 500;
}
.privacy__address {
  font-style: normal;
  font-size: 14px; line-height: 2; color: var(--c-text);
  padding: 16px 0 0 1em;
}
.privacy__address a { color: var(--c-blue-light); text-decoration: underline; }
.privacy__date {
  margin: clamp(24px, 3vw, 40px) 0 0;
  text-align: right;
  font-size: 13px; color: var(--c-text-sub);
}
