@charset "UTF-8";
/* ==========================================================================
   MXK株式会社 公式サイト  style.css
   レイアウト: 白基調 + 黒ブロック（主視覚・VANGR・Footer）+ 天青の斜めアクセント
   ※ VANGRロゴの斜めカットをモチーフに「斜めの帯」を全体の共通要素にしています
   ========================================================================== */

:root {
  /* Color */
  --white: #ffffff;
  --paper: #f3f6f8;      /* 区块分隔用ライトグレー（わずかに青寄り） */
  --line: #dde3e8;
  --ink: #111317;        /* 文字・黒ブロック */
  --ink-2: #1b1f25;      /* 黒ブロック内のパネル */
  --ink-3: #2a3038;
  --muted: #5b6570;
  --muted-on-dark: #a9b2bc;
  --sky: #29b3d8;        /* VANGRロゴの天青。塗り・線・黒背景上の文字に使用 */
  --sky-ink: #0a7a9e;    /* 白背景上の小さな文字用（コントラスト確保） */
  --sky-soft: #e6f6fb;

  /* Type */
  --f-en: "Saira", "Helvetica Neue", Arial, sans-serif;
  --f-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;

  /* Layout */
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --sec-pad: clamp(72px, 10vw, 128px);
  --skew: -16deg;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-jp);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .03em;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; line-height: 1.4; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Logo (MXK wordmark) ---------- */
.logo {
  display: inline-flex; align-items: flex-end; gap: 6px;
  font-family: var(--f-en); font-weight: 800; font-style: italic;
  font-size: 30px; line-height: 1; letter-spacing: .02em;
  text-decoration: none; color: var(--ink);
}
.logo__mark { /* 斜めの天青ブロック = VANGR「G」のカットと同じ角度 */
  width: 14px; height: 9px; margin-bottom: 3px;
  background: var(--sky); transform: skewX(var(--skew));
}
.logo--light { color: var(--white); }
.logo img { height: 42px; width: auto; }
.footer .logo img { height: 32px; }

/* ---------- Header ---------- */
body::before { /* safe-area band */
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  background: var(--white); z-index: 60;
}
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.include-header { display: block; height: calc(var(--header-h) + 1px); background: var(--white); }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(17,19,23,.06); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.nav__list { display: flex; gap: clamp(20px, 3vw, 40px); }
.nav__link {
  position: relative; display: block; text-decoration: none;
  font-family: var(--f-en); font-weight: 600; font-size: 14px; letter-spacing: .14em; line-height: 1.2;
  padding-block: 8px;
}
.nav__link small { display: block; font-family: var(--f-jp); font-size: 10px; font-weight: 400; letter-spacing: .08em; color: var(--muted); margin-top: 3px; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__item { position: relative; }
.nav__sub-toggle { background: none; border: 0; padding-inline: 0 18px; cursor: pointer; text-align: left; color: inherit; }
.caret {
  position: absolute; right: 0; top: 13px; width: 7px; height: 7px;
  border-right: 2px solid var(--sky); border-bottom: 2px solid var(--sky);
  transform: rotate(45deg); transition: transform .25s;
}
.nav__sub-toggle[aria-expanded="true"] .caret { transform: translateY(4px) rotate(-135deg); }
.subnav {
  position: absolute; left: -24px; top: calc(100% + 18px); min-width: 260px; z-index: 5;
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--sky);
  box-shadow: 0 16px 40px rgba(17,19,23,.12); padding: 10px 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.has-sub.is-open .subnav { opacity: 1; visibility: visible; transform: none; }
.subnav a { display: block; text-decoration: none; padding: 10px 24px; font-size: 14px; font-weight: 700; line-height: 1.5; transition: background .2s, color .2s; }
.subnav a:hover { background: var(--paper); color: var(--sky-ink); }
.subnav small { display: inline-block; margin-left: 10px; font-size: 11px; font-weight: 400; color: var(--muted); }
.subnav__lv1 a { font-family: var(--f-en); font-size: 15px; letter-spacing: .1em; }
.subnav__lv2 a { padding-left: 44px; font-weight: 500; position: relative; }
.subnav__lv2 a::before { content: ""; position: absolute; left: 26px; top: 50%; width: 8px; height: 1px; background: var(--muted); }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; background: var(--ink); cursor: pointer;
  position: relative; flex-shrink: 0;
}
.nav-toggle span { position: absolute; left: 13px; width: 22px; height: 2px; background: var(--white); transition: transform .3s, opacity .3s; }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 23px; width: 14px; background: var(--sky); }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--sky); --btn-fg: var(--ink); --btn-bd: var(--sky);
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 12px 28px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font-weight: 700; font-size: 15px; letter-spacing: .08em; line-height: 1.4;
  text-decoration: none; cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: color .3s;
}
.btn::before { /* hover時に斜めの黒が走る */
  content: ""; position: absolute; inset: 0 -20%; z-index: -1;
  background: var(--ink); transform: translateX(-110%) skewX(var(--skew)); transition: transform .35s ease;
}
.btn:hover::before { transform: translateX(0) skewX(var(--skew)); }
.btn:hover { color: var(--white); }
.btn__arrow { width: 18px; height: 1px; background: currentColor; position: relative; flex-shrink: 0; }
.btn__arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--white); --btn-bd: var(--ink); }
.btn--dark::before { background: var(--sky); }
.btn--dark:hover { color: var(--ink); }
.btn--line { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn--line-light { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255,255,255,.6); }
.btn--line-light::before { background: var(--sky); }
.btn--line-light:hover { color: var(--ink); }
.btn--sm { min-height: 44px; padding: 8px 20px; font-size: 13px; }
.header .btn { min-height: 46px; padding: 8px 22px; font-family: var(--f-en); font-weight: 700; letter-spacing: .14em; font-size: 14px; }

/* ---------- Section heading ---------- */
.section { padding-block: var(--sec-pad); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: var(--white); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-en); font-weight: 600; font-size: 13px; letter-spacing: .28em; line-height: 1;
  color: var(--sky-ink); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 18px; height: 8px; background: var(--sky); transform: skewX(var(--skew)); }
.section--dark .eyebrow, .on-dark .eyebrow { color: var(--sky); }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(40px, 6vw, 64px); }
.sec-head__title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: .06em; }
.sec-head__lead { color: var(--muted); max-width: 40em; }
.section--dark .sec-head__lead { color: var(--muted-on-dark); }
.sec-head--row { grid-template-columns: 1fr auto; align-items: end; }

/* ---------- Hero (TOP) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white); background: var(--ink);
  isolation: isolate;
}
.hero__bg { /* メイン画像：assets/img/main-img.jpg */
  position: absolute; inset: 0; z-index: -2; background: var(--ink);
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 65%; }
.hero__bg::after { /* 文字を読みやすくする暗幕 */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,12,15,.92) 0%, rgba(10,12,15,.78) 38%, rgba(10,12,15,.25) 72%, rgba(10,12,15,.1) 100%),
    linear-gradient(0deg, rgba(10,12,15,.55) 0%, rgba(10,12,15,0) 40%);
}
.hero__lines { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__lines i {
  position: absolute; top: -20%; height: 140%; width: 2px;
  background: linear-gradient(to bottom, rgba(41,179,216,0), rgba(41,179,216,.9) 50%, rgba(41,179,216,0));
  transform: rotate(32deg); transform-origin: top;
  opacity: .55;
}
.hero__lines i:nth-child(1) { left: 62%; }
.hero__lines i:nth-child(2) { left: 70%; width: 1px; opacity: .35; background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.7) 50%, rgba(255,255,255,0)); }
.hero__lines i:nth-child(3) { left: 78%; width: 8px; opacity: .18; }
.hero__lines i:nth-child(4) { left: 92%; width: 1px; opacity: .3; }
.hero__sweep { /* 車体を走る反射光 */
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.07) 48%, rgba(41,179,216,.10) 50%, transparent 58%);
  background-size: 250% 100%;
  animation: sweep 9s ease-in-out infinite;
}
@keyframes sweep { 0% { background-position: 120% 0; } 60%, 100% { background-position: -40% 0; } }
.hero__inner { padding-block: clamp(96px, 14vw, 180px) clamp(80px, 10vw, 140px); position: relative; }
.hero__en { font-family: var(--f-en); font-weight: 600; font-size: clamp(11px, 1.2vw, 13px); letter-spacing: .36em; color: var(--sky); margin-bottom: 24px; }
.hero__title { font-size: clamp(36px, 6.4vw, 76px); font-weight: 900; letter-spacing: .04em; line-height: 1.25; }
.hero__title span { display: inline-block; }
.hero__lead { margin-top: 28px; font-size: clamp(15px, 1.6vw, 18px); color: #d3d9df; max-width: 35em; }
.hero__actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero__meta {
  position: absolute; right: 0; bottom: clamp(24px, 4vw, 40px);
  padding-right: inherit;
  font-family: var(--f-en); font-size: 12px; letter-spacing: .24em; color: var(--muted-on-dark);
  display: flex; align-items: center; gap: 12px;
}
.hero__meta::before { content: ""; width: 48px; height: 1px; background: var(--muted-on-dark); }
.hero__big { /* 背景の巨大ブランド文字 */
  position: absolute; right: -2vw; bottom: -4vw; z-index: -1;
  font-family: var(--f-en); font-weight: 800; font-style: italic; font-size: clamp(120px, 22vw, 340px); line-height: .8;
  color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.16); letter-spacing: -.02em; user-select: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__en, .hero__title span, .hero__lead, .hero__actions { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero__title span:nth-child(2) { animation-delay: .12s; }
  .hero__lead { animation-delay: .25s; }
  .hero__actions { animation-delay: .35s; }
}
@media (prefers-reduced-motion: reduce) { .hero__sweep { animation: none; } html { scroll-behavior: auto; } }
@keyframes rise { from { opacity: .001; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Page header (下層ページ) ---------- */
.page-hero { background: var(--ink); color: var(--white); position: relative; overflow: hidden; isolation: isolate; }
.page-hero::after {
  content: ""; position: absolute; right: 8%; top: -30%; width: 34%; height: 160%; z-index: -1;
  background: linear-gradient(90deg, rgba(41,179,216,0), rgba(41,179,216,.16)); transform: skewX(var(--skew));
}
.page-hero__inner { padding-block: clamp(64px, 9vw, 110px); }
.page-hero__en { font-family: var(--f-en); font-weight: 700; font-style: italic; font-size: clamp(38px, 7vw, 84px); letter-spacing: .02em; line-height: 1; }
.page-hero__ja { margin-top: 16px; font-size: 15px; letter-spacing: .14em; color: var(--muted-on-dark); display: flex; align-items: center; gap: 12px; }
.page-hero__ja::before { content: ""; width: 18px; height: 8px; background: var(--sky); transform: skewX(var(--skew)); }
.breadcrumb { border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 14px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--sky-ink); }

/* ---------- Philosophy (TOP) ---------- */
.philo { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.philo__catch { font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: .06em; margin-block: 20px 28px; }
.philo__text p + p { margin-top: 1em; }
.philo__text { color: #2c323a; }
.philo__more { margin-top: 36px; }
.visual { /* 写真の差し替え用プレースホルダー */
  position: relative; aspect-ratio: 4 / 3; max-width: 100%;
  background:
    linear-gradient(135deg, rgba(41,179,216,.0) 0 55%, rgba(41,179,216,.22) 55% 62%, rgba(41,179,216,0) 62%),
    linear-gradient(160deg, #262c34, #0f1115);
  overflow: hidden;
}
.visual img { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; }
.visual__label {
  position: absolute; left: 20px; bottom: 16px; font-family: var(--f-en); font-size: 11px; letter-spacing: .24em; color: rgba(255,255,255,.55);
}
.visual__word {
  position: absolute; right: 20px; top: 14px; font-family: var(--f-en); font-weight: 800; font-style: italic; font-size: clamp(40px, 6vw, 72px);
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.18); line-height: 1;
}
.philo__visual { position: relative; }
.philo__visual::before { content: ""; position: absolute; left: -16px; top: -16px; width: 40%; height: 40%; border-left: 3px solid var(--sky); border-top: 3px solid var(--sky); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: feat; }
.feature { background: var(--white); display: flex; flex-direction: column; min-width: 0; }
.feature .visual { aspect-ratio: 16 / 10; }
.feature__body { padding: 28px 28px 32px; display: grid; gap: 10px; border-top: 3px solid var(--sky); }
.feature__num { font-family: var(--f-en); font-weight: 800; font-style: italic; font-size: 44px; line-height: 1; color: var(--ink); }
.feature__en { font-family: var(--f-en); font-size: 12px; letter-spacing: .26em; color: var(--sky-ink); font-weight: 600; }
.feature__title { font-size: 21px; font-weight: 700; }
.feature__text { color: var(--muted); font-size: 15px; }

/* ---------- Target strip ---------- */
.targets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.target { padding: 24px 16px; text-align: center; font-weight: 700; font-size: 15px; line-height: 1.5; min-width: 0; border: 1px solid var(--line); background: var(--white); display: grid; align-content: center; }
.target small { display: block; font-family: var(--f-en); font-size: 10px; letter-spacing: .2em; color: var(--sky-ink); font-weight: 600; margin-bottom: 6px; }

/* ---------- Brand cards (TOP) ---------- */
.brand-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); }
.brand-card {
  position: relative; display: grid; gap: 18px; align-content: start;
  padding: clamp(32px, 4vw, 52px); min-height: 340px; text-decoration: none; overflow: hidden; isolation: isolate;
  border: 1px solid var(--ink);
}
.brand-card--dark { background: var(--ink); color: var(--white); }
.brand-card--light { background: var(--white); color: var(--ink); }
.brand-card__type { font-size: 13px; letter-spacing: .14em; font-weight: 700; color: var(--sky-ink); }
.brand-card--dark .brand-card__type { color: var(--sky); }
.brand-card__logo { height: 44px; width: auto; max-width: 100%; object-fit: contain; object-position: left; }
.brand-card__logo-box { background: #000; padding: 5px 10px; width: fit-content; }
.brand-card__logo-box img { height: 70px; width: auto; }
.brand-card__text { font-size: 15px; color: var(--muted); }
.brand-card--dark .brand-card__text { color: var(--muted-on-dark); }
.brand-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-card__tags li { font-size: 12px; padding: 4px 12px; border: 1px solid currentColor; line-height: 1.6; opacity: .8; }
.brand-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 14px; font-family: var(--f-en); font-weight: 600; letter-spacing: .2em; font-size: 13px; }
.brand-card::after {
  content: ""; position: absolute; right: -30px; bottom: -40px; width: 160px; height: 120px; z-index: -1;
  background: var(--sky); transform: skewX(var(--skew)) translateX(60%); opacity: 0; transition: transform .45s ease, opacity .45s;
}
.brand-card:hover::after { transform: skewX(var(--skew)) translateX(0); opacity: 1; }

/* ---------- Support ---------- */
.support { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); }
.support__col { border: 1px solid var(--line); background: var(--white); padding: clamp(28px, 4vw, 44px); display: grid; gap: 20px; align-content: start; min-width: 0; }
.section--dark .support__col { background: var(--ink-2); border-color: var(--ink-3); }
.support__tag {
  justify-self: start; font-size: 12px; font-weight: 700; letter-spacing: .14em; padding: 4px 14px;
  background: var(--ink); color: var(--white);
}
.support__tag--free { background: var(--sky); color: var(--ink); }
.support__title { font-size: 22px; font-weight: 700; }
.support__list { display: grid; gap: 18px; }
.support__item { display: grid; gap: 4px; padding-left: 22px; position: relative; }
.support__item::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 6px; background: var(--sky); transform: skewX(var(--skew)); }
.support__item strong { font-size: 17px; }
.support__item span { color: var(--muted); font-size: 14px; }
.section--dark .support__item span { color: var(--muted-on-dark); }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--sky); color: var(--ink);
}
.cta::before {
  content: ""; position: absolute; left: -10%; top: 0; bottom: 0; width: 46%; z-index: -1;
  background: var(--ink); transform: skewX(var(--skew)); transform-origin: bottom;
}
.cta__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding-block: clamp(48px, 7vw, 80px); }
.cta__lead { color: var(--white); }
.cta__en { font-family: var(--f-en); font-weight: 800; font-style: italic; font-size: clamp(34px, 5vw, 60px); line-height: 1; letter-spacing: .02em; }
.cta__ja { margin-top: 10px; font-size: 14px; letter-spacing: .1em; color: var(--muted-on-dark); }
.cta__body { display: grid; gap: 20px; justify-items: start; }
.cta__body p { font-weight: 700; font-size: clamp(16px, 1.8vw, 20px); line-height: 1.7; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--white); padding-top: clamp(56px, 7vw, 88px); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; }
.footer__company { margin-top: 20px; color: var(--muted-on-dark); font-size: 14px; line-height: 1.9; }
.footer__head { font-family: var(--f-en); font-weight: 600; font-size: 12px; letter-spacing: .26em; color: var(--sky); margin-bottom: 16px; }
.footer__list { display: grid; gap: 8px; font-size: 14px; }
.footer__list a { text-decoration: none; }
.footer__list a:hover { color: var(--sky); }
.footer__addr { font-size: 14px; color: #d6dbe0; font-style: normal; line-height: 1.9; }
.sns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.sns__item {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; padding: 6px 12px; line-height: 1.4;
  border: 1px solid var(--ink-3); color: var(--muted-on-dark);
}
.sns__item svg { width: 16px; height: 16px; fill: currentColor; }
.sns__soon { font-family: var(--f-en); font-size: 10px; letter-spacing: .14em; color: var(--sky); }
.footer__bottom {
  margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--ink-3);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 22px; font-size: 12px; color: var(--muted-on-dark);
}
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { color: var(--sky); }
.pagetop {
  position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 48px; height: 48px; background: var(--ink); border: 1px solid var(--ink-3); cursor: pointer;
  display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.pagetop.is-show { opacity: 1; pointer-events: auto; }
.pagetop::before { content: ""; width: 10px; height: 10px; border-top: 2px solid var(--sky); border-left: 2px solid var(--sky); transform: translateY(3px) rotate(45deg); }

/* ==========================================================================
   BRAND LINEUP
   ========================================================================== */
.anchor-nav { background: var(--paper); border-bottom: 1px solid var(--line); }
.anchor-nav__list { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-block: 16px; font-size: 14px; font-weight: 700; }
.anchor-nav__list a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.anchor-nav__list a::after { content: ""; width: 6px; height: 6px; border-right: 2px solid var(--sky); border-bottom: 2px solid var(--sky); transform: rotate(45deg) translateY(-3px); }
.anchor-nav__list a:hover { color: var(--sky-ink); }

.brand-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; margin-bottom: clamp(48px, 6vw, 72px); }
.brand-head__type { font-size: 13px; letter-spacing: .18em; font-weight: 700; color: var(--sky); }
.section:not(.section--dark) .brand-head__type { color: var(--sky-ink); }
.brand-head__logo { margin-top: 18px; width: min(420px, 100%); }
.brand-head__lead { font-size: clamp(18px, 2vw, 22px); font-weight: 700; line-height: 1.7; margin-bottom: 14px; }
.brand-head__text { color: var(--muted-on-dark); }
.section:not(.section--dark) .brand-head__text { color: var(--muted); }

.category { padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--ink-3); }
.category + .category { margin-top: clamp(48px, 6vw, 72px); }
.category__head { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: baseline; margin-bottom: 28px; }
.category__num { font-family: var(--f-en); font-weight: 800; font-style: italic; font-size: 40px; line-height: 1; color: var(--sky); grid-row: span 2; }
.category__title { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; }
.category__desc { color: var(--muted-on-dark); font-size: 15px; }

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.products--1 { grid-template-columns: 1fr; }
.products--1 .product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-rows: auto 1fr; }
.products--1 .product__img { grid-row: 1 / 3; aspect-ratio: auto; min-height: 280px; border-bottom: 0; border-right: 1px solid var(--line); }
.products--1 .product__body { padding: 32px 32px 16px; }
.products--1 .product__foot { padding: 0 32px 32px; align-self: end; }
.products--1 .product__foot .btn { flex: 0 1 auto; }
.product { background: var(--white); color: var(--ink); display: flex; flex-direction: column; min-width: 0; }
.product__img {
  aspect-ratio: 4 / 3; background: #f7f9fa; display: grid; place-items: center; border-bottom: 1px solid var(--line);
  color: #9aa4ae; font-size: 12px; letter-spacing: .14em; position: relative; overflow: hidden;
}
.product__img::before { content: ""; position: absolute; width: 38%; height: 46%; border: 1px dashed #c6ced5; }
.product__img span { position: relative; background: #f7f9fa; padding: 2px 8px; }
.product__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product__body { padding: 22px 22px 26px; display: grid; gap: 10px; flex: 1; align-content: start; }
.product__cat { font-size: 12px; font-weight: 700; color: var(--sky-ink); letter-spacing: .06em; }
.product__name { font-size: 18px; font-weight: 700; line-height: 1.5; }
.product__copy { font-size: 14px; color: var(--muted); line-height: 1.7; }
.spec { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 4px; }
.spec th, .spec td { border-top: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; line-height: 1.6; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 1px solid var(--line); }
.spec th { width: 32%; background: var(--paper); font-weight: 700; white-space: nowrap; }
.product__foot { padding: 0 22px 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.product__foot .btn { flex: 1 1 auto; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.swatch { width: 34px; height: 34px; transform: skewX(var(--skew)); border: 1px solid rgba(0,0,0,.08); }
.note { font-size: 13px; color: var(--muted); }
.section--dark .note { color: var(--muted-on-dark); }

.uppf-panel { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.uppf-logo { background: #000; padding: clamp(28px, 4vw, 48px); }
.uppf-points { display: grid; gap: 14px; margin-top: 24px; }
.uppf-points li { padding-left: 22px; position: relative; }
.uppf-points li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 6px; background: var(--sky); transform: skewX(var(--skew)); }

.price-note {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center;
  border: 1px solid var(--line); padding: 24px 28px; background: var(--white);
}
.price-note__label { font-family: var(--f-en); font-weight: 700; letter-spacing: .2em; font-size: 13px; background: var(--ink); color: var(--white); padding: 6px 14px; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.mission { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.mission__block { padding: clamp(32px, 4vw, 48px); border: 1px solid var(--line); background: var(--white); display: grid; gap: 14px; align-content: start; min-width: 0; }
.mission__block--dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.mission__label { font-family: var(--f-en); font-weight: 600; font-size: 13px; letter-spacing: .28em; color: var(--sky-ink); }
.mission__block--dark .mission__label { color: var(--sky); }
.mission__catch { font-size: clamp(24px, 3vw, 32px); font-weight: 900; letter-spacing: .06em; line-height: 1.5; }
.mission__text { color: var(--muted); }
.mission__block--dark .mission__text { color: var(--muted-on-dark); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); margin-top: clamp(32px, 4vw, 48px); }
.value { border-top: 3px solid var(--ink); padding-top: 24px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.value__en { font-family: var(--f-en); font-weight: 700; font-style: italic; font-size: 26px; line-height: 1.1; }
.value__en::first-letter { color: var(--sky); }
.value__ja { font-weight: 700; font-size: 18px; }
.value__text { color: var(--muted); font-size: 15px; }

.message { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.message__catch { font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: .06em; line-height: 1.6; }
.message__body p + p { margin-top: 1.2em; }
.message__sign { margin-top: 36px; text-align: right; font-size: 14px; color: var(--muted); }
.message__sign strong { display: block; font-size: 22px; color: var(--ink); letter-spacing: .2em; margin-top: 4px; }

.table-wrap { overflow-x: auto; }
.info-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.info-table th, .info-table td { padding: 22px 24px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.8; }
.info-table th { width: 220px; background: var(--paper); font-weight: 700; white-space: nowrap; }
.info-table td ul li { padding-left: 1.1em; position: relative; }
.info-table td ul li::before { content: "・"; position: absolute; left: 0; }

.access { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.access__map {
  min-height: 320px; background:
    repeating-linear-gradient(0deg, transparent 0 39px, #e3e8ec 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, #e3e8ec 39px 40px), var(--paper);
  display: grid; place-items: center; position: relative; border: 1px solid var(--line);
}
.access__pin { display: grid; justify-items: center; gap: 10px; text-align: center; font-size: 14px; font-weight: 700; }
.access__pin::before { content: ""; width: 26px; height: 26px; background: var(--sky); border: 4px solid var(--ink); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.access__info { display: grid; gap: 18px; align-content: center; }
.access__info dt { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--sky-ink); }
.access__info dd { font-size: 16px; }

.access > * { min-width: 0; }               /* 地図が列幅を押し広げないように */
.access iframe {
  display: block;
  width: 100%;                               /* iframe の width="600" を上書き */
  max-width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}
@media (max-width: 900px) {
  .access iframe { height: 320px; min-height: 0; }   /* タブレット */
}
@media (max-width: 640px) {
  .access iframe { height: 260px; }                  /* スマホ */
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: clamp(40px, 5vw, 56px); }
.step {
  position: relative; padding: 14px 10px 14px 28px; background: var(--paper); color: var(--muted);
  font-weight: 700; font-size: 14px; text-align: center; line-height: 1.5;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%);
}
.step:first-child { clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); padding-left: 10px; }
.step small { font-family: var(--f-en); letter-spacing: .2em; margin-right: 8px; font-size: 11px; }
.step.is-current { background: var(--ink); color: var(--white); }
.step.is-current small { color: var(--sky); }
.step.is-done { background: var(--sky-soft); color: var(--sky-ink); }

.contact-layout { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-side { display: grid; gap: 24px; position: sticky; top: calc(var(--header-h) + 24px); }
.contact-side__box { border: 1px solid var(--line); padding: 24px; display: grid; gap: 8px; }
.contact-side__label { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--sky-ink); }
.contact-side__tel { font-family: var(--f-en); font-size: 26px; font-weight: 700; letter-spacing: .04em; line-height: 1.2; text-decoration: none; }
.contact-side__note { font-size: 13px; color: var(--muted); }

.form { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.form__row { display: grid; grid-template-columns: 220px 1fr; gap: 16px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.form__label { font-weight: 700; padding-top: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; line-height: 1.5; }
.req, .opt { font-size: 11px; font-weight: 700; padding: 2px 8px; letter-spacing: .08em; line-height: 1.6; }
.req { background: var(--sky); color: var(--ink); }
.opt { background: var(--paper); color: var(--muted); }
.form__field { min-width: 0; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid #cfd6dc; background: var(--white);
  border-radius: 0; font-size: 16px; line-height: 1.6; transition: border-color .2s, box-shadow .2s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(41,179,216,.2); }
.textarea { min-height: 200px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.radios { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 12px; }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.radio input { accent-color: var(--sky-ink); width: 18px; height: 18px; }
.form__hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.form__error { font-size: 13px; color: #c62a2a; margin-top: 6px; font-weight: 700; }
.is-invalid { border-color: #c62a2a; }
.agree { padding: 28px 0 0; display: grid; gap: 10px; justify-items: center; text-align: center; }
.agree label { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.agree input { accent-color: var(--sky-ink); width: 20px; height: 20px; }
.agree a { color: var(--sky-ink); }
.form__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding-top: 32px; }
.form__actions .btn { min-width: 240px; }

.confirm-list { border-top: 2px solid var(--ink); }
.confirm-list div { display: grid; grid-template-columns: 220px 1fr; gap: 8px 32px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.confirm-list dt { font-weight: 700; }
.confirm-list dd { white-space: pre-wrap; word-break: break-word; min-width: 0; }

.done { text-align: center; display: grid; gap: 20px; justify-items: center; padding-block: 24px; }
.done__icon { width: 72px; height: 72px; background: var(--sky); display: grid; place-items: center; transform: skewX(var(--skew)); }
.done__icon::before { content: ""; width: 26px; height: 14px; border-left: 4px solid var(--ink); border-bottom: 4px solid var(--ink); transform: skewX(16deg) rotate(-45deg) translate(2px, -3px); }
.done__title { font-size: clamp(22px, 3vw, 28px); font-weight: 700; }
.done p { color: var(--muted); }

/* ==========================================================================
   PRIVACY
   ========================================================================== */
.policy { max-width: 860px; }
.policy > p { margin-bottom: 40px; }
.policy__item { padding-block: 28px; border-top: 1px solid var(--line); }
.policy__item h2 { font-size: 19px; margin-bottom: 12px; display: flex; gap: 14px; align-items: baseline; }
.policy__item h2 span { font-family: var(--f-en); font-weight: 700; font-style: italic; color: var(--sky-ink); font-size: 18px; }
.policy__item ol { list-style: decimal; padding-left: 1.4em; margin-top: 8px; }
.policy__item p + p { margin-top: .8em; }
.policy__sign { margin-top: 32px; text-align: right; color: var(--muted); font-size: 14px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .targets { display: flex; flex-wrap: wrap; justify-content: center; }
  .target { flex: 0 1 calc((100% - 24px) / 3); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .products:not(.products--1) { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .logo img { height: 26px; }
  .nav-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 1;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); color: var(--white);
    padding: 24px max(24px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
    overflow-y: auto;
    clip-path: inset(0 0 0 100%); visibility: hidden; transition: clip-path .4s ease, visibility .4s;
  }
  .nav-open .nav { clip-path: inset(0); visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { padding-block: 20px; border-bottom: 1px solid var(--ink-3); font-size: 20px; display: flex; justify-content: space-between; align-items: baseline; }
  .nav__link small { color: var(--muted-on-dark); font-size: 12px; }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--sky); }
  .nav { height: calc(100dvh - var(--header-h) - env(safe-area-inset-top, 0px)); }
  .nav__sub-toggle { width: 100%; padding-right: 32px; }
  .caret { right: 6px; top: 50%; margin-top: -6px; width: 9px; height: 9px; }
  .subnav {
    position: static; min-width: 0; background: transparent; border: 0; box-shadow: none; padding: 0;
    opacity: 1; visibility: visible; transform: none; display: none; border-bottom: 1px solid var(--ink-3);
  }
  .has-sub.is-open .subnav { display: block; padding-block: 8px 14px; }
  .subnav a { color: var(--white); padding: 10px 8px; font-size: 15px; }
  .subnav a:hover { background: transparent; color: var(--sky); }
  .subnav small { color: var(--muted-on-dark); }
  .subnav__lv2 a { padding-left: 30px; }
  .subnav__lv2 a::before { left: 12px; background: var(--muted-on-dark); }
  .nav .btn { margin-top: 28px; min-height: 56px; }

  .philo, .brand-head, .uppf-panel, .message, .access, .contact-layout, .mission { grid-template-columns: 1fr; }
  .contact-side { position: static; order: 2; }
  .features { grid-template-columns: 1fr; }
  .feature { display: grid; grid-template-columns: 0.9fr 1.1fr; }
  .feature .visual { aspect-ratio: auto; height: 100%; min-height: 200px; }
  .feature__body { border-top: 0; border-left: 3px solid var(--sky); }
  .brand-cards, .support { grid-template-columns: 1fr; }
  .cta__inner { grid-template-columns: 1fr; }
  .cta::before { display: none; }
  .cta__lead { color: var(--ink); }
  .cta__ja { color: var(--ink); opacity: .7; }
  .values { grid-template-columns: 1fr; }
  .sec-head--row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 15px; line-height: 1.85; }
  .hero__actions .btn { width: 100%; }
  .hero__meta { display: none; }
  .hero__bg img { object-position: 35% 70%; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(10,12,15,.88) 0%, rgba(10,12,15,.72) 55%, rgba(10,12,15,.8) 100%); }
  .feature { grid-template-columns: 1fr; }
  .feature .visual { min-height: 0; aspect-ratio: 16 / 9; }
  .feature__body { border-left: 0; border-top: 3px solid var(--sky); padding: 22px 20px 26px; }
  .targets { grid-template-columns: 1fr 1fr; }
  .target { padding: 18px 10px; font-size: 14px; }
  .targets { gap: 8px; }
  .target { flex-basis: calc((100% - 8px) / 2); }
  .target:last-child { flex-basis: 100%; }
  .brand-card { min-height: 0; }
  .products { grid-template-columns: 1fr; }
  .products--1 .product { display: flex; }
  .products--1 .product__img { aspect-ratio: 4 / 3; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .products--1 .product__body { padding: 22px 22px 26px; }
  .products--1 .product__foot { padding: 0 22px 24px; }
  .products--1 .product__foot .btn { flex: 1 1 auto; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { padding: 12px 16px; }
  .info-table td { padding: 14px 16px 22px; }
  .form__row, .confirm-list div { grid-template-columns: 1fr; gap: 8px; }
  .form__label { padding-top: 0; }
  .form__actions .btn { width: 100%; min-width: 0; }
  .step { font-size: 12px; padding: 12px 4px 12px 20px; }
  .step small { display: block; margin: 0; }
  .price-note { grid-template-columns: 1fr; padding: 20px; }
  .price-note__label { justify-self: start; }
  .cta__body .btn { width: 100%; }
  .philo__visual::before { left: -8px; top: -8px; }
}

/* ==========================================================================
   TOP メイン画像スライド（フェード切替＋ゆっくりズーム）
   ========================================================================== */
.hero__slider .hero__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.6s ease;
  transform: scale(1.04);
}
.hero__slider .hero__slide.is-active { opacity: 1; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero__slider .hero__slide.is-active { animation: heroZoom 8s ease-out both; }
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1.04); } }
.hero__slider::after { z-index: 2; } /* 暗幕は常に画像の上 */
