/* =========================================================
   Food Next LP  —  style.css
   Font : Noto Sans JP
   Color (WannaEat palette):
     text #3e3d39 / main #ff6f00 / sub #fbdb47 / sub2 #ffd180
     accent #4e342e / bg1 #f8f5f2 / bg2 #fef9e2
   ========================================================= */

:root {
  --c-main: #ff6f00;        /* メイン：ボタン・リンク・アイコン強調 */
  --c-main-soft: #fef9e2;   /* 背景カラー2 */
  --c-yellow: #fbdb47;      /* サブ：ハイライト・注意喚起 */
  --c-orange-lt: #ffd180;   /* 補助サブ：ハイライト・背景差し色 */
  --c-sub: #4e342e;         /* アクセント：見出し・強調枠・濃色帯 */
  --c-sub-deep: #3a2622;
  --c-accent: #ff6f00;
  --c-accent-hover: #e86400;
  --c-gray: #f8f5f2;        /* 背景カラー1 */
  --c-accent-soft: #fef9e2;
  --c-bg: #f8f5f2;
  --c-white: #ffffff;
  --c-text: #3e3d39;        /* テキスト */
  --c-text-mute: #6f6a62;
  --c-line: #e8e0d6;
  --c-on-dark: #f3e9e1;
  --c-strength-bg: #f1e7dc;   /* 強みセクション：薄いブラウン */     /* 濃色背景上の補助テキスト */

  --ff: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem);
  --fs-hero: clamp(2.125rem, 1.2rem + 3.8vw, 3.75rem);

  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --sec-pad: clamp(72px, 9vw, 120px);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--ff);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { 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; }

:focus-visible {
  outline: 3px solid var(--c-sub);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn--accent { background: var(--c-accent); color: var(--c-white); }
.btn--accent:hover { background: var(--c-accent-hover); }
.btn--ghost { background: transparent; border-color: var(--c-sub); color: var(--c-sub); }
.btn--ghost:hover { background: var(--c-sub); color: var(--c-white); }
.btn--sub { background: var(--c-sub); color: var(--c-white); }
.btn--sub:hover { background: var(--c-sub-deep); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(248, 245, 242, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.is-scrolled { border-bottom-color: var(--c-line); }
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.logo__img { height: 30px; width: auto; }
.footer .logo__img { height: 34px; }
.logo__mark {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--c-sub);
}
.logo__mark span { color: var(--c-main); }
.logo__by { font-size: var(--fs-xs); color: var(--c-text-mute); }

.gnav__list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}
.gnav__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  padding: 6px 0;
  background: linear-gradient(var(--c-main), var(--c-main)) left bottom / 0 3px no-repeat;
  transition: background-size .25s;
}
.gnav__link:hover, .gnav__link.is-current { background-size: 100% 3px; }
.gnav__cta {
  min-height: 44px;
  padding: 0 22px;
  font-size: var(--fs-sm);
}

.menu-btn {
  display: none;
  width: 48px; height: 48px;
  border: 0; background: none; padding: 12px;
  cursor: pointer;
}
.menu-btn span {
  display: block; height: 2px; background: var(--c-sub);
  margin: 6px 0; transition: transform .25s, opacity .25s;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1100px) {
  .menu-btn { display: block; }
  .gnav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--c-bg);
    padding: 24px var(--gutter) 40px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s, visibility .3s;
    overflow-y: auto;
  }
  .gnav.is-open { transform: none; visibility: visible; }
  .gnav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .gnav__list li { border-bottom: 1px solid var(--c-line); }
  .gnav__link { display: block; padding: 18px 4px; font-size: var(--fs-md); background: none; }
  .gnav__list li:last-child { border: 0; padding-top: 24px; }
  .gnav__cta { width: 100%; min-height: 56px; font-size: var(--fs-md); }
}

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 0;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.hero__title {
  color: var(--c-sub);
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: 0.01em;
}
.hero__title .line { display: block; }
.hero__lead {
  margin-top: 28px;
  max-width: 34em;
  font-size: var(--fs-md);
  color: var(--c-text-mute);
}
.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero__visual { position: relative; }
.hero__visual svg { width: 100%; }

.facts {
  margin-top: clamp(56px, 8vw, 96px);
  background: var(--c-sub);
  color: var(--c-white);
}
.facts__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.facts__item {
  padding: 28px 20px;
  border-left: 1px solid rgba(255,255,255,.15);
}
.facts__item:first-child { border-left: 0; padding-left: 0; }
.facts__num {
  display: block;
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--c-white);
}
.facts__num small { font-size: 0.55em; margin-left: 2px; }
.facts__label { font-size: var(--fs-sm); color: var(--c-white); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; }
  .facts__item { padding: 20px 14px; }
}

/* ---------- Section common ---------- */
.sec { padding: var(--sec-pad) 0; background: var(--c-gray); }
.sec--white { background: var(--c-white); }
.sec__head { margin-bottom: clamp(40px, 5vw, 64px); }
.sec__title {
  color: var(--c-sub);
  position: relative;
  font-size: var(--fs-xl);
  font-weight: 800;
  line-height: 1.45;
  padding-left: 22px;
}
.sec__title::before {
  content: "";
  position: absolute;
  left: 0; top: 0.3em; bottom: 0.3em;
  width: 6px;
  border-radius: 3px;
  background: var(--c-main);
}
.sec__lead { margin-top: 18px; color: var(--c-text-mute); }

/* ---------- About ---------- */
.about__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about__body { margin-top: 24px; }
.about__body .about__more { margin-top: 28px; }
.about__link svg { width: 16px; height: 16px; flex-shrink: 0; }
.about__statement {
  color: var(--c-sub);
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.625rem);
  font-weight: 700;
  line-height: 1.7;
}
.about__body p + p { margin-top: 1em; }
.about__img {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--c-gray);
}
.about__img img { width: 100%; height: 100%; object-fit: cover; }

.roots {
  margin-top: clamp(56px, 7vw, 88px);
}
.about-more .roots { margin-top: 0; }
.roots {
  padding: clamp(28px, 4vw, 48px);
  background: var(--c-gray);
  border-radius: 20px;
}
.roots__title { font-size: var(--fs-lg); font-weight: 700; }
.roots__text { margin-top: 8px; color: var(--c-text-mute); }
.roots__list {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.roots__item {
  background: var(--c-white);
  border-radius: 14px;
  padding: 24px;
  border-top: 5px solid var(--c-main);
}
.roots__num {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--c-main);
  font-variant-numeric: tabular-nums;
}
.roots__num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--c-line);
}
.roots__item h4 { font-size: var(--fs-md); font-weight: 700; line-height: 1.5; }
.roots__op {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  flex-wrap: wrap;
}
.roots__op p { flex: 1 1 32em; color: var(--c-text); }
.roots__op .about__link { flex-shrink: 0; }
.roots__item p { margin-top: 10px; font-size: var(--fs-sm); color: var(--c-text-mute); }

.team { margin-top: clamp(56px, 7vw, 88px); }
.team__title { font-size: var(--fs-lg); font-weight: 700; }
.team__text { margin-top: 8px; color: var(--c-text-mute); }
.team__list {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.member {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: var(--c-white);
}
.member__photo {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--c-main-soft);
  display: grid; place-items: center;
  font-size: 1.75rem; font-weight: 800; color: var(--c-main);
}
.member__role { font-size: var(--fs-xs); color: var(--c-text-mute); }
.member__name { font-size: var(--fs-md); font-weight: 700; }
.member__career { margin-top: 8px; font-size: var(--fs-sm); line-height: 1.75; color: var(--c-text-mute); }

@media (max-width: 860px) {
  .about__intro, .team__list { grid-template-columns: 1fr; }
  .roots__list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .member { grid-template-columns: 1fr; }
}

/* ---------- Categories（つくれるもの） ---------- */
.cats-sec { background: var(--c-gray); padding-top: 0; }
.cats__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--c-sub);
}
.cats__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-main);
}
.cats__eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--c-main);
}
.cats__title {
  margin-top: 24px;
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3rem);
  font-weight: 800;
  line-height: 1.5;
  color: var(--c-sub);
}
.cats__title span { display: block; }
.cats__lead { color: var(--c-text-mute); }
.cats__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.cats__item {
  padding: 36px 28px 8px;
  border-left: 1px solid var(--c-line);
}
.cats__item:first-child { padding-left: 0; border-left: 0; }
.cats__name { font-size: var(--fs-lg); font-weight: 800; line-height: 1.5; color: var(--c-sub); }
.cats__desc { margin-top: 12px; font-size: var(--fs-sm); color: var(--c-text-mute); }

@media (max-width: 960px) {
  .cats__list { grid-template-columns: repeat(2, 1fr); }
  .cats__item { padding: 24px 20px; border-left: 0; border-bottom: 1px solid var(--c-line); }
  .cats__item:nth-child(even) { border-left: 1px solid var(--c-line); }
  .cats__item:nth-child(odd) { padding-left: 0; }
  .cats__item:last-child { border-bottom: 0; }
}
@media (max-width: 560px) {
  .cats__list { grid-template-columns: 1fr; }
  .cats__item, .cats__item:nth-child(even) { padding: 20px 0; border-left: 0; }
}

/* 写真付きカテゴリ */
.cats__list:has(.cats__item--photo) {
  gap: 16px;
  margin-top: 32px;
}
.cats__item--photo {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px;
  display: flex;
  background: #1c1714;
}
.cats__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  filter: brightness(.55) saturate(.9);
  transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .4s ease;
}
.cats__item--photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.6) 100%);
  pointer-events: none;
}
.cats__overlay {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  width: 100%;
  padding: 22px;
}
/* 写真上の白文字 */
.cats__name--photo {
  font-size: clamp(1.125rem, .95rem + .45vw, 1.375rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .04em;
  word-break: keep-all;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}
.cats__item--photo .cats__desc { color: rgba(255,255,255,.9); margin-top: 8px; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cats__item--photo:hover { transform: translateY(-4px); }
  .cats__item--photo:hover .cats__photo { transform: scale(1.07); filter: brightness(.45) saturate(.9); }
}
@media (max-width: 960px) {
  .cats__item--photo { min-height: 240px; }
}
@media (max-width: 560px) {
  .cats__item--photo { min-height: 200px; }
}

/* ---------- Strengths : flow diagram ---------- */
.flow-sec {
  background: var(--c-strength-bg);
  color: var(--c-text);
  position: relative;
  overflow: hidden;
}
.flow-sec .sec__title { color: var(--c-sub); }
.flow-sec .sec__lead { color: var(--c-text-mute); }
.flow__verb { color: var(--c-sub); }

.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: step;
}
/* the track */
.flow::before {
  content: "";
  position: absolute;
  left: 10%; right: 10%;
  top: 44px;
  height: 6px;
  border-radius: 3px;
  background: var(--c-main);
}
.flow__step { position: relative; text-align: center; display: flex; flex-direction: column; }
.flow__node {
  position: relative;
  z-index: 1;
  width: 94px; height: 94px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--c-white);
  border: 6px solid var(--c-main);
  display: grid; place-items: center;
}
.flow__node svg { width: 40px; height: 40px; }
.flow__verb {
  margin-top: 16px;
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}
.flow__sub { margin-top: 4px; font-size: var(--fs-sm); color: var(--c-main); font-weight: 700; }
.flow__card {
  margin-top: 18px;
  padding: 18px 16px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  text-align: left;
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--c-text);
  flex: 1;
}
.flow__img {
  margin: -6px -4px 14px;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--c-gray);
}
.flow__img img { width: 100%; height: 100%; object-fit: cover; }
.flow__out {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--c-line);
  display: flex; flex-wrap: wrap; gap: 6px;
}
.flow__out dt { width: 100%; font-size: var(--fs-xs); color: var(--c-text-mute); }
.flow__out dd {
  font-size: var(--fs-xs);
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--c-yellow);
  color: var(--c-sub);
  font-weight: 700;
}

/* loop-back arrow: 販売 -> 企画 */
.flow-loop {
  margin-top: 28px;
  position: relative;
}
.flow-loop svg { width: 100%; height: 64px; }
.flow-loop__label {
  position: absolute;
  left: 50%; bottom: 6px;
  transform: translateX(-50%);
  padding: 4px 18px;
  border-radius: 999px;
  background: var(--c-strength-bg);
  color: var(--c-main);
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
}

.flow-points {
  margin-top: clamp(40px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.flow-point {
  padding: 22px 24px;
  border-radius: 14px;
  background: var(--c-white);
  color: var(--c-sub);
}
.flow-point__num { font-size: 1.75rem; font-weight: 800; line-height: 1.3; color: var(--c-main); }
.flow-point__num small { font-size: 0.55em; margin-left: 2px; }
.flow-point p:not(.flow-point__num) { font-size: var(--fs-sm); color: var(--c-text-mute); margin-top: 4px; }

@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow::before {
    left: 44px; right: auto; top: 44px; bottom: 44px;
    width: 6px; height: auto;
  }
  .flow__step {
    display: grid;
    align-content: start;
    grid-template-columns: 94px 1fr;
    column-gap: 20px;
    text-align: left;
    padding-bottom: 28px;
  }
  .flow__node { grid-row: span 3; margin: 0; }
  .flow__verb { margin-top: 18px; }
  .flow__card { margin-top: 12px; }
  .flow-loop { display: none; }
  .flow-loop-sp {
    display: block;
    margin-left: 114px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 2px dashed var(--c-main);
    color: var(--c-main);
    background: var(--c-white);
    font-weight: 700;
    font-size: var(--fs-sm);
  }
  .flow-points { grid-template-columns: 1fr; }
}
@media (min-width: 961px) { .flow-loop-sp { display: none; } }
@media (max-width: 480px) {
  .flow::before { left: 34px; }
  .flow__step { grid-template-columns: 74px 1fr; column-gap: 14px; }
  .flow__node { width: 74px; height: 74px; border-width: 5px; }
  .flow__node svg { width: 30px; height: 30px; }
  .flow-loop-sp { margin-left: 88px; }
}

/* ---------- Works (導入事例) ---------- */
.works__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.works__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
}
.work-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.work-card__thumb {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: var(--c-main-soft);
}
.work-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.work-card:hover .work-card__thumb img { transform: scale(1.04); }
.work-card__meta {
  margin-top: 16px;
  display: flex; align-items: center; gap: 12px;
  font-size: var(--fs-xs);
}
.work-card__date { color: var(--c-text-mute); font-weight: 500; }
.work-card__cat {
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--c-orange-lt);
  color: var(--c-sub);
  font-weight: 700;
}
.work-card__title {
  margin-top: 8px;
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.6;
}
.work-card:hover .work-card__title { text-decoration: underline; text-decoration-color: var(--c-main); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.work-card__excerpt {
  margin-top: 8px;
  font-size: var(--fs-sm);
  color: var(--c-text-mute);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.works__list--single { grid-template-columns: 1fr; }
.works__list--single .work-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-rows: 1fr auto auto auto 1fr;
  column-gap: clamp(24px, 4vw, 56px);
}
.works__list--single .work-card__thumb { grid-column: 1; grid-row: 1 / -1; }
.works__list--single .work-card__meta { grid-column: 2; grid-row: 2; margin-top: 0; }
.works__list--single .work-card__title { grid-column: 2; grid-row: 3; }
.works__list--single .work-card__excerpt { grid-column: 2; grid-row: 4; }
.works__list--single .work-card__title { font-size: var(--fs-lg); }
.works__list--single .work-card__excerpt { -webkit-line-clamp: unset; display: block; }
@media (max-width: 860px) {
  .works__list--single { max-width: none; }
  .works__list--single .work-card { display: flex; }
  .works__list--single .work-card__meta { margin-top: 16px; }
}
.works__more { margin-top: clamp(40px, 5vw, 56px); text-align: center; }

@media (max-width: 860px) {
  .works__list { grid-template-columns: 1fr; max-width: 560px; }
}

/* ---------- Plans ---------- */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 20px;
  background: var(--c-white);
  border: 2px solid var(--c-line);
}
.plan--b { border-color: var(--c-main); }
.plan__tag {
  align-self: flex-start;
  padding: 2px 14px;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 800;
  background: var(--c-sub);
  color: var(--c-white);
}
.plan--b .plan__tag { background: var(--c-main); color: var(--c-white); }
.plan__name { margin-top: 16px; font-size: var(--fs-lg); font-weight: 800; line-height: 1.5; }
.plan__catch { margin-top: 4px; font-weight: 700; color: var(--c-main); }
.plan--a .plan__catch { color: var(--c-sub); }
.plan__desc { margin-top: 16px; color: var(--c-text-mute); }
.plan__fit {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--c-bg);
  font-size: var(--fs-sm);
}
.plan__fit dt { font-weight: 700; }
.plan__fit li { position: relative; padding-left: 1.2em; margin-top: 4px; }
.plan__fit li::before {
  content: ""; position: absolute; left: 0; top: 0.75em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--c-main);
}

.scope {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.scope__box {
  padding: 24px 28px;
  border-radius: 16px;
  background: var(--c-bg);
}
.scope__box--out { background: var(--c-accent-soft); }
.scope__title { font-weight: 700; }
.scope__box ul { margin-top: 10px; font-size: var(--fs-sm); }
.scope__box li { position: relative; padding-left: 1.4em; margin-top: 4px; }
.scope__box li::before {
  content: "✓"; position: absolute; left: 0; color: var(--c-main); font-weight: 800;
}
.scope__box--out li::before { content: "＋"; color: var(--c-text-mute); }
.plans__note { margin-top: 20px; font-size: var(--fs-sm); color: var(--c-text-mute); }

@media (max-width: 860px) {
  .plans, .scope { grid-template-columns: 1fr; }
}

/* ---------- Company ---------- */
.company-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-white);
  border-radius: 16px;
  overflow: hidden;
}
.company-table th, .company-table td {
  padding: 20px 28px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-sm);
  line-height: 1.85;
}
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: 0; }
.company-table th { width: 200px; font-weight: 700; background: var(--c-main-soft); }
.company-table td a { color: var(--c-sub); text-decoration-color: var(--c-main); text-underline-offset: 3px; }
.company-table .en { display: block; font-size: var(--fs-xs); color: var(--c-text-mute); }
.company-table .branch + .branch { margin-top: 10px; }

@media (max-width: 640px) {
  .company-table, .company-table tbody, .company-table tr, .company-table th, .company-table td { display: block; width: 100%; }
  .company-table th { padding: 14px 20px 6px; border-bottom: 0; background: none; color: var(--c-main); }
  .company-table td { padding: 0 20px 16px; }
}

/* ---------- Contact ---------- */
.contact-sec { background: var(--c-main-soft); }
.contact__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
.form {
  background: var(--c-white);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 48px);
}
.form__group + .form__group { margin-top: 40px; }
.form__legend {
  font-size: var(--fs-md);
  font-weight: 800;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--c-sub);
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field + .field { margin-top: 20px; }
.field__label {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm); font-weight: 700;
  margin-bottom: 8px;
}
.badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0 8px;
  border-radius: 4px;
  line-height: 1.7;
}
.badge--req { background: var(--c-sub); color: var(--c-white); }
.badge--opt { background: var(--c-line); color: var(--c-text-mute); }

.input, .select, .textarea {
  width: 100%;
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--c-text);
  background: var(--c-bg);
  border: 2px solid var(--c-line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .2s, background-color .2s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--c-main);
  background: var(--c-white);
}
.textarea { min-height: 180px; resize: vertical; line-height: 1.7; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234e342e' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field__row .field + .field { margin-top: 0; }

.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-card label {
  display: block;
  height: 100%;
  padding: 14px 16px;
  border: 2px solid var(--c-line);
  border-radius: 10px;
  background: var(--c-bg);
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.radio-card strong { display: block; font-size: var(--fs-sm); }
.radio-card span { display: block; font-size: var(--fs-xs); color: var(--c-text-mute); line-height: 1.6; }
.radio-card input:checked + label { border-color: var(--c-main); background: var(--c-main-soft); }
.radio-card input:focus-visible + label { outline: 3px solid var(--c-sub); outline-offset: 2px; }

.field.is-error .input, .field.is-error .textarea, .field.is-error .radio-card label { border-color: #D64545; }
.field__error { display: none; margin-top: 6px; font-size: var(--fs-xs); color: #C03030; font-weight: 700; }
.field.is-error .field__error { display: block; }

.form__agree { margin-top: 32px; font-size: var(--fs-xs); color: var(--c-text-mute); }
.form__submit { margin-top: 20px; width: 100%; min-height: 60px; font-size: var(--fs-md); }
.form__reply { margin-top: 12px; text-align: center; font-size: var(--fs-xs); color: var(--c-text-mute); }

.form-done {
  display: none;
  text-align: center;
  padding: clamp(40px, 6vw, 72px) 24px;
}
.form-done.is-show { display: block; }
.form-done__icon {
  width: 64px; height: 64px; margin: 0 auto;
  border-radius: 50%;
  background: var(--c-main);
  display: grid; place-items: center;
  color: var(--c-white); font-size: 1.75rem; font-weight: 800;
}
.form-done__title { margin-top: 20px; font-size: var(--fs-lg); font-weight: 800; }
.form-done p { margin-top: 12px; color: var(--c-text-mute); }

.contact__side > * + * { margin-top: 24px; }
.side-box {
  background: var(--c-white);
  border-radius: 16px;
  padding: 24px 28px;
}
.side-box__title { font-size: var(--fs-md); font-weight: 800; }
.process { margin-top: 16px; counter-reset: proc; }
.process li {
  position: relative;
  padding-left: 44px;
  padding-bottom: 18px;
  counter-increment: proc;
}
.process li:last-child { padding-bottom: 0; }
.process li::before {
  content: counter(proc);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--c-sub); color: var(--c-white);
  font-size: var(--fs-sm); font-weight: 800;
  display: grid; place-items: center;
}
.process li:not(:last-child)::after {
  content: ""; position: absolute; left: 14px; top: 32px; bottom: 2px;
  width: 2px; background: var(--c-line);
}
.process strong { display: block; font-size: var(--fs-sm); }
.process span { font-size: var(--fs-xs); color: var(--c-text-mute); }

.faq { margin-top: 12px; }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  position: relative;
  padding: 14px 28px 14px 0;
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem; color: var(--c-main); font-weight: 700;
}
.faq details[open] summary::after { content: "−"; }
.faq p { padding-bottom: 14px; font-size: var(--fs-sm); color: var(--c-text-mute); }

@media (max-width: 960px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field__row, .radio-cards { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--c-sub-deep);
  color: var(--c-on-dark);
  padding: 56px 0 32px;
  font-size: var(--fs-sm);
}
.footer__grid {
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.footer .logo__mark { color: var(--c-white); }
.footer__desc { margin-top: 10px; max-width: 28em; font-size: var(--fs-xs); line-height: 1.8; }
.footer__grid { align-items: center; }
.footer__nav ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__nav li { white-space: nowrap; }
@media (max-width: 960px) {
  .footer__nav ul { gap: 8px 20px; }
}
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { color: var(--c-white); text-decoration: underline; }
.footer__copy {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: var(--fs-xs); color: #bfa99c;
}

/* ---------- Page top ---------- */
.pagetop {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: var(--c-main); color: var(--c-white);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.pagetop.is-show { opacity: 1; visibility: visible; }
.pagetop svg { width: 18px; height: 18px; }

/* ---------- Hover pop（カーソルを合わせると少し拡大） ---------- */
.btn,
.work-card,
.roots__item,
.member,
.flow__card,
.flow-point,
.plan,
.scope__box,
.cats__item,
.side-box,
.about__img img {
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, background-color .2s, color .2s, border-color .2s;
}
.work-card, .roots__item, .member, .flow__card, .flow-point, .plan, .scope__box, .cats__item, .side-box {
  position: relative;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  /* ボタン */
  .btn:hover { transform: scale(1.05); }
  .btn:active { transform: scale(.98); }

  /* 白いカード類：少し拡大＋影で浮き上がる */
  .roots__item:hover,
  .member:hover,
  .flow-point:hover,
  .plan:hover,
  .scope__box:hover,
  .side-box:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .10);
    z-index: 2;
  }

  /* 強みセクション（濃色背景）のカード */
  .flow__card:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 16px 36px rgba(78, 52, 46, .14);
    z-index: 2;
  }

  /* 導入事例カード：カード全体が浮き、画像がさらにズーム */
  .work-card:hover { transform: translateY(-6px) scale(1.02); z-index: 2; }
  .work-card:hover .work-card__thumb { box-shadow: 0 14px 30px rgba(0, 0, 0, .14); }
  .work-card__thumb { transition: box-shadow .3s ease; }

  /* つくれるもの */
  .cats__item:hover { transform: translateY(-4px) scale(1.04); z-index: 2; }

  /* フードネクストとはの画像 */
  .about__img:hover img { transform: scale(1.04); }
}

/* ---------- Hero animation ---------- */
.hero__title .line { overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line__in { display: block; }
.hero__node text { font-family: var(--ff); font-size: 17px; font-weight: 700; fill: var(--c-sub); }
.hero__bg, .hero__node, .hero__spark { transform-box: fill-box; transform-origin: center; }
.hero__line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.hero__spark { opacity: 0; }
.hero__mover { opacity: 0; }
.hero__mover.is-moving { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  /* 初期状態（JS有効時のみ隠す） */
  .js .hero__title .line__in { transform: translateY(105%); }
  .js .hero__lead, .js .hero__actions { opacity: 0; transform: translateY(16px); }
  .js .hero__bg { opacity: 0; transform: scale(.6); }
  .js .hero__line { stroke-dashoffset: 1; }
  .js .hero__node { opacity: 0; transform: scale(.4); }

  /* 1. 見出しが1行ずつせり上がる */
  .is-loaded .hero__title .line__in { animation: heroLineUp .9s cubic-bezier(.2,.8,.2,1) forwards; }
  .is-loaded .hero__title .line:nth-child(2) .line__in { animation-delay: .14s; }

  /* 2. リード文・ボタン */
  .is-loaded .hero__lead { animation: heroFadeUp .7s ease .45s forwards; }
  .is-loaded .hero__actions { animation: heroFadeUp .7s ease .6s forwards; }

  /* 3. 背景 → 開発ラインが伸び、企画〜販売のステップが順に現れる */
  .flowviz.is-inview .hero__bg { animation: heroCircle 1s cubic-bezier(.2,.8,.2,1) .1s forwards, heroFloat 6s ease-in-out 1.4s infinite; }
  .flowviz.is-inview .hero__line { animation: heroDraw 1.6s cubic-bezier(.5,0,.3,1) .5s forwards; }
  .flowviz.is-inview .hero__node { animation: heroPop .55s cubic-bezier(.3,1.5,.5,1) forwards; }
  .flowviz.is-inview .hero__node--1 { animation-delay: .5s; }
  .flowviz.is-inview .hero__node--2 { animation-delay: .82s; }
  .flowviz.is-inview .hero__node--3 { animation-delay: 1.14s; }
  .flowviz.is-inview .hero__node--4 { animation-delay: 1.46s; }
  .flowviz.is-inview .hero__node--5 { animation-delay: 1.78s; }

  /* 4. ライン上を商品が流れ続ける（JSで開始）＋きらめき */
  .hero__mover.is-moving { animation: heroFadeIn .4s ease forwards; }
  .flowviz.is-inview .hero__spark { animation: heroTwinkle 2.8s ease-in-out infinite; }
  .flowviz.is-inview .hero__spark--1 { animation-delay: 2.4s; }
  .flowviz.is-inview .hero__spark--2 { animation-delay: 3.2s; }
}

@keyframes heroDraw { to { stroke-dashoffset: 0; } }
@keyframes heroPop { to { opacity: 1; transform: scale(1); } }
@keyframes heroFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroLineUp { to { transform: translateY(0); } }
@keyframes heroFadeUp { to { opacity: 1; transform: none; } }
@keyframes heroCircle { to { opacity: 1; transform: scale(1); } }
@keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes heroTwinkle {
  0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); }
  40%, 60% { opacity: 1; transform: scale(1) rotate(45deg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .hero__spark { opacity: 1; }
}

/* =========================================================
   Article page (works/*.html)
   ========================================================= */
.article { background: var(--c-gray); padding: calc(var(--header-h) + 40px) 0 var(--sec-pad); }
.article__wrap { max-width: 800px; margin: 0 auto; padding: 0 var(--gutter); }
.breadcrumb { font-size: var(--fs-xs); color: var(--c-text-mute); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--c-line); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.article__meta { margin-top: 32px; display: flex; align-items: center; gap: 12px; font-size: var(--fs-sm); }
.article__title { margin-top: 12px; font-size: var(--fs-xl); font-weight: 800; line-height: 1.5; }
.article__thumb { margin-top: 32px; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; }
.article__thumb img { width: 100%; height: 100%; object-fit: cover; }
.article__spec {
  margin-top: 32px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--c-white); border-radius: 16px; overflow: hidden;
}
.article__spec div { padding: 18px 22px; border-left: 1px solid var(--c-line); }
.article__spec div:first-child { border-left: 0; }
.article__spec dt { font-size: var(--fs-xs); color: var(--c-text-mute); }
.article__spec dd { font-weight: 700; margin-top: 2px; }
.article__body { margin-top: 48px; }
.article__body h2 {
  font-size: var(--fs-lg); font-weight: 800;
  padding-bottom: 8px; border-bottom: 3px solid var(--c-main);
  display: inline-block;
}
.article__body h2:not(:first-child) { margin-top: 48px; }
.article__body p { margin-top: 16px; }
.article__point {
  margin-top: 48px; padding: 28px 32px;
  border-radius: 16px; background: var(--c-accent-soft);
}
.article__point h2 { border: 0; padding: 0; }
.article__nav { margin-top: 56px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: space-between; }
.article-cta {
  margin-top: 64px; padding: 36px; border-radius: 20px;
  background: var(--c-sub); color: var(--c-white); text-align: center;
}
.article-cta p { color: var(--c-on-dark); margin: 8px 0 20px; }
.article-cta h2 { font-size: var(--fs-lg); font-weight: 800; }

@media (max-width: 640px) {
  .article__spec { grid-template-columns: 1fr; }
  .article__spec div { border-left: 0; border-top: 1px solid var(--c-line); }
  .article__spec div:first-child { border-top: 0; }
}

/* ---------- Article: 導入事例詳細 ---------- */
.article__label {
  margin-top: 32px;
  display: flex; align-items: center; gap: 12px;
  font-size: var(--fs-sm); font-weight: 700; letter-spacing: .12em; color: var(--c-main);
}
.article__label::before { content: ""; width: 32px; height: 2px; background: var(--c-main); }
.article__label + .article__meta { margin-top: 16px; }
.article__lead { margin-top: 32px; font-size: var(--fs-md); line-height: 1.9; }

.case-info { margin-top: 40px; }
.case-info__list { background: var(--c-white); border-radius: 16px; overflow: hidden; }
.case-info__row {
  display: grid; grid-template-columns: 160px 1fr;
  border-bottom: 1px solid var(--c-line);
}
.case-info__row:last-child { border-bottom: 0; }
.case-info__row > dt {
  padding: 20px 24px; font-weight: 700; font-size: var(--fs-sm);
  background: var(--c-main-soft); color: var(--c-sub);
}
.case-info__row > dd { padding: 20px 24px; }
.case-info__shop { font-size: var(--fs-md); color: var(--c-sub); }
.case-info__sub { margin-top: 10px; font-size: var(--fs-sm); }
.case-info__sub div { display: flex; gap: 12px; }
.case-info__sub dt { flex: 0 0 5em; color: var(--c-text-mute); }
.case-info__ref { margin-top: 12px; font-size: var(--fs-xs); color: var(--c-text-mute); line-height: 1.7; }
.case-info__ref a, .article__source a { color: var(--c-main); text-underline-offset: 3px; }
.article__source { margin-top: 24px !important; font-size: var(--fs-sm); color: var(--c-text-mute); }
.article__back { margin-top: 48px; text-align: center; }

.article-contact {
  margin-top: var(--sec-pad);
  margin-bottom: calc(var(--sec-pad) * -1);
  padding: var(--sec-pad) 0;
  background: var(--c-main-soft);
  text-align: center;
}
.article-contact__title { font-size: var(--fs-xl); font-weight: 800; color: var(--c-sub); }
.article-contact__text { margin-top: 16px; color: var(--c-text-mute); }
.article-contact__actions { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 640px) {
  .case-info__row { grid-template-columns: 1fr; }
  .case-info__row > dt { padding: 12px 20px; }
  .case-info__row > dd { padding: 16px 20px 20px; }
  .case-info__sub div { flex-direction: column; gap: 0; }
  .case-info__sub div + div { margin-top: 6px; }
}

/* ---------- Works list page（導入事例一覧） ---------- */
.works-page { background: var(--c-gray); }
.works-page__head { padding: calc(var(--header-h) + 40px) 0 clamp(40px, 5vw, 64px); }
.works-page__head .article__label { margin-top: 32px; }
.works-page__title {
  margin-top: 12px;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 800; line-height: 1.3; color: var(--c-sub);
}
.works-page__lead { margin-top: 16px; color: var(--c-text-mute); }
.works-page__body { padding-bottom: 0; }
.works-page__list { padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--c-line); }
.works-page .article-contact { margin-bottom: 0; }

/* ---------- 仮の事例カード ---------- */
.work-card.is-placeholder { cursor: default; }
.work-card.is-placeholder .work-card__title,
.work-card.is-placeholder .work-card__excerpt { color: var(--c-text-mute); }
.work-card.is-placeholder .work-card__cat { background: var(--c-line); }

/* ---------- 業態フィルター ---------- */
.works-filter { padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--c-line); }
.works-filter__label { font-size: var(--fs-sm); font-weight: 700; color: var(--c-sub); }
.works-filter__list { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.works-filter__btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 42px; padding: 0 18px;
  border: 1.5px solid var(--c-line); border-radius: 999px;
  background: var(--c-white); color: var(--c-text);
  font-family: inherit; font-size: var(--fs-sm); font-weight: 700;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.works-filter__btn:hover { border-color: var(--c-main); color: var(--c-main); }
.works-filter__btn[aria-pressed="true"] { background: var(--c-main); border-color: var(--c-main); color: var(--c-white); }
.works-filter__count { font-size: var(--fs-xs); font-weight: 500; opacity: .75; }
.works-filter__count:not(:empty)::before { content: "("; }
.works-filter__count:not(:empty)::after { content: ")"; }
.works-page__list { border-top: 0; padding-top: clamp(28px, 4vw, 40px); }
.works-page__list > li[hidden] { display: none; }
.works-empty {
  padding: 48px 24px; text-align: center;
  background: var(--c-white); border-radius: 16px; color: var(--c-text-mute);
}

/* =========================================================
   Edge lines：ページ左端の3本線
   スクロールに合わせて 1本 → 2本 → 3本 と増える
   ========================================================= */
.edge-lines {
  position: fixed;
  top: calc(var(--header-h) + 24px);
  bottom: 24px;
  left: 20px;
  z-index: -1;               /* 最背面：セクション背景の上・文字やカードの下 */
  display: flex;
  gap: 7px;
  pointer-events: none;
}
.edge-lines span {
  display: block;
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--c-main);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform .9s cubic-bezier(.6,0,.2,1);
}
.edge-lines span.is-on { transform: scaleY(1); }
.edge-lines span { will-change: transform; }     /* 3本だけGPUで描画 */
@media (max-width: 1240px) {
  .edge-lines { left: 8px; gap: 5px; }
  .edge-lines span { width: 2px; }
}
@media (max-width: 560px) {
  .edge-lines { left: 4px; gap: 3px; top: calc(var(--header-h) + 12px); bottom: 12px; }
  .edge-lines span { width: 2px; opacity: .85; }
}
@media (prefers-reduced-motion: reduce) {
  .edge-lines span { transition: none; }
}
@media print { .edge-lines { display: none; } }

/* ---------- パフォーマンス調整 ---------- */
/* 画面外のヒーローはループアニメーションを停止 */
.flowviz.is-paused .hero__bg,
.flowviz.is-paused .hero__spark { animation-play-state: paused !important; }
/* スマホ・タブレットではヘッダーのぼかし（負荷が高い）をやめて不透明の背景に */
@media (max-width: 960px), (hover: none) {
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--c-bg); }
}

/* ---------- 3本線を最背面に置くための背景レイヤー ----------
   各セクションの背景色を ::before（z-index:-2）に移し、
   その上に3本線（z-index:-1）、さらに上に文字・カードが重なる構造にしています */
.sec, .facts, .footer { position: relative; }
.sec::before, .facts::before, .footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--layer-bg);
  pointer-events: none;
}
.sec          { --layer-bg: var(--c-gray);      background: none; }
.sec--white   { --layer-bg: var(--c-white);     background: none; }
.cats-sec     { --layer-bg: var(--c-gray);      background: none; }
.flow-sec     { --layer-bg: var(--c-strength-bg); background: none; }
.contact-sec  { --layer-bg: var(--c-main-soft); background: none; }
.facts        { --layer-bg: var(--c-sub);       background: none; }
.footer       { --layer-bg: var(--c-sub-deep);  background: none; }

/* ---------- Hero photo ---------- */
.hero__photo {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--c-gray);
  box-shadow: 0 24px 60px rgba(78, 52, 46, .14);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero__photo { opacity: 0; transform: translateY(24px) scale(.98); }
  .is-loaded .hero__photo { animation: heroPhotoIn 1s cubic-bezier(.2,.8,.2,1) .35s forwards; }
}
@keyframes heroPhotoIn { to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .hero__photo { max-width: 560px; } }

/* ---------- About：開発フロー図 ---------- */
.about__intro .flowviz {
  width: 120%; max-width: 640px;              /* 約1.2倍 */
  justify-self: start;
  align-self: start;
  margin-top: -56px;                          /* 少し上に配置 */
  margin-right: -20%;
}
@media (max-width: 860px) {
  .about__intro .flowviz { width: 100%; max-width: 560px; margin: 0 auto; justify-self: center; }
}

/* ---------- 強みセクション下：3つの力・開発チーム ---------- */
.strength-more { margin-top: clamp(56px, 7vw, 88px); }
.flow-sec .roots { margin-top: 0; background: var(--c-white); }
.flow-sec .roots__item { background: var(--c-gray); }
.flow-sec .roots__op { border-top-color: var(--c-line); }
.flow-sec .member { border-color: var(--c-line); }

/* ---------- クライアント様 ---------- */
.clients { margin-top: clamp(48px, 6vw, 72px); }
.clients__title {
  display: flex; align-items: center; gap: 16px;
  font-size: var(--fs-md); font-weight: 700; color: var(--c-sub);
}
.clients__title::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }
.clients__list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.clients__item {
  display: grid; place-items: center;
  min-height: 84px;
  padding: 14px 12px;
  border-radius: 12px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  text-align: center;
}
.clients__item img { max-width: 100%; max-height: 44px; width: auto; height: auto; object-fit: contain; }
.clients__name { font-size: var(--fs-xs); font-weight: 700; line-height: 1.5; color: var(--c-sub); }
.clients__item.is-placeholder { background: transparent; border-style: dashed; }
.clients__item.is-placeholder .clients__name { color: var(--c-text-mute); font-weight: 500; }
@media (max-width: 960px) { .clients__list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .clients__list { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 560px) {
  .facts__list { grid-template-columns: 1fr; }
  .facts__item, .facts__item:first-child {
    display: flex; align-items: baseline; gap: 16px;
    padding: 14px 0; border-left: 0;
  }
  .facts__item + .facts__item { border-top: 1px solid rgba(255,255,255,.15); }
  .facts__num { flex: 0 0 128px; font-size: 1.5rem; white-space: nowrap; }
}

/* =========================================================
   TOP スライドショー：3枚並び・右から左へ流れる
   中央が正面（大きく・はっきり）、左右は少し小さく奥に
   ========================================================= */
.hero-slider { position: relative; width: 130%; margin: 0 -22% 0 -8%; }
.hero-slider__stage {
  position: relative;
  aspect-ratio: 16 / 11.6;
  overflow: hidden;
}
.hero-slider__track { position: absolute; inset: 0; }
.hero-slider__slide {
  --x: 100%; --s: .6; --o: 0;
  position: absolute;
  top: 50%; left: 50%;
  width: 88%;
  aspect-ratio: 3 / 2;             /* 各写真の元の比率を style で上書き */
  overflow: hidden;
  background: var(--c-bg);
  transform: translate(calc(-50% + var(--x)), -50%) scale(var(--s));
  opacity: var(--o);
  z-index: 0;
  cursor: pointer;
  transition: transform .9s cubic-bezier(.65,0,.25,1), opacity .9s ease;
  will-change: transform;
}
.hero-slider__slide[data-pos="0"]  { --x: 0%;     --s: 1;   --o: 1;   z-index: 3; cursor: default; }
.hero-slider__slide[data-pos="1"]  { --x: 62%;    --s: .8;  --o: 1;   z-index: 2; }
.hero-slider__slide[data-pos="-1"] { --x: -62%;   --s: .8;  --o: 1;   z-index: 2; }
/* 左右の写真は少し暗くし、縁に軽いフェードをかけて奥行きを出す */
.hero-slider__slide::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 28px 10px var(--c-bg);
  opacity: 0;
  transition: opacity .9s ease;
  pointer-events: none;
}
.hero-slider__slide[data-pos="1"]::after,
.hero-slider__slide[data-pos="-1"]::after { opacity: 1; }
.hero-slider__slide img { transition: filter .9s ease; }
.hero-slider__slide[data-pos="1"] img,
.hero-slider__slide[data-pos="-1"] img { filter: brightness(.85) saturate(.9); }
.hero-slider__slide[data-pos="2"]  { --x: 124%;   --s: .6;  --o: 0;   z-index: 1; }
.hero-slider__slide[data-pos="-2"] { --x: -124%;  --s: .6;  --o: 0;   z-index: 1; }
.hero-slider__slide.no-anim { transition: none; }
.hero-slider__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }

.hero-slider__ui {
  margin-top: 6px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.hero-slider__dots { display: flex; gap: 4px; }
.hero-slider__dot {
  width: 26px; height: 26px; padding: 0;
  border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.hero-slider__dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-line);
  transition: transform .3s ease, background-color .3s ease;
}
.hero-slider__dot.is-active::before { background: var(--c-main); transform: scale(1.25); }
.hero-slider__toggle {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--c-line); cursor: pointer;
  background: var(--c-white); color: var(--c-sub);
  display: grid; place-items: center;
}
.hero-slider__toggle svg { width: 11px; height: 11px; fill: currentColor; }
.hero-slider__toggle .i-play { display: none; }
.hero-slider.is-stopped .hero-slider__toggle .i-play { display: block; }
.hero-slider.is-stopped .hero-slider__toggle .i-pause { display: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-slider__slide { transition: none; }
}
/* 読み込み時の登場 */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-slider { opacity: 0; transform: translateY(24px); }
  .is-loaded .hero-slider { animation: heroPhotoIn 1s cubic-bezier(.2,.8,.2,1) .35s forwards; }
}
@media (max-width: 860px) { .hero-slider { width: calc(100% + var(--gutter) * 2); max-width: none; margin: 0 calc(var(--gutter) * -1); } }
@media (max-width: 560px) {
}

/* =========================================================
   導入事例ページ（一覧・詳細）スタイリッシュ版
   ========================================================= */
.wk, .cs { padding-top: var(--header-h); background: var(--c-gray); }
.wk-bread { padding-top: 28px; }

/* ---- 共通：ページ上部 ---- */
.wk-hero { padding: 0 0 clamp(40px, 6vw, 72px); }
.wk-hero__grid {
  margin-top: clamp(36px, 6vw, 72px);
  display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 24px 48px;
  padding-bottom: clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--c-sub);
}
.wk-hero__title {
  display: flex; flex-direction: column;
  font-size: clamp(1.25rem, 1rem + .8vw, 1.5rem); font-weight: 700; color: var(--c-sub);
  letter-spacing: .1em;
}
.wk-hero__en, .cs-hero__en, .wk-cta__en {
  font-family: "Helvetica Neue", Arial, var(--ff);
  font-weight: 700; letter-spacing: .02em; line-height: 1;
  color: var(--c-main);
}
.wk-hero__en { font-size: clamp(4rem, 2.4rem + 7vw, 8rem); margin-bottom: 14px; letter-spacing: -.02em; }
.wk-hero__lead { color: var(--c-text-mute); justify-self: end; text-align: right; }

/* ---- フィルター：下線タブ ---- */
.wk-filter {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0; border-top: 0;
}
.wk-filter .works-filter__list {
  margin: 0; gap: 4px 28px; flex-wrap: nowrap;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.wk-filter .works-filter__list::-webkit-scrollbar { display: none; }
.wk-filter .works-filter__btn {
  min-height: 44px; padding: 0 0 2px; border: 0; border-radius: 0;
  background: none; color: var(--c-text-mute); white-space: nowrap;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color .2s, box-shadow .2s;
}
.wk-filter .works-filter__btn:hover { color: var(--c-sub); background: none; }
.wk-filter .works-filter__btn[aria-pressed="true"] { background: none; color: var(--c-sub); box-shadow: inset 0 -2px 0 var(--c-main); }
.wk-filter .works-filter__count { color: var(--c-main); opacity: 1; }
.wk-filter__total { flex-shrink: 0; font-size: var(--fs-sm); color: var(--c-text-mute); }
.wk-filter__total span { font-size: 1.5rem; font-weight: 700; color: var(--c-sub); margin-right: 2px; }

/* ---- 一覧カード ---- */
.wk-body { padding-bottom: var(--sec-pad); }
.wk-list {
  margin-top: clamp(28px, 4vw, 44px);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 40px);
  counter-reset: wk;
}
.wk-list > li { counter-increment: wk; }
.wk-list > li[hidden] { display: none; }
.wk-card { display: block; text-decoration: none; color: inherit; height: 100%; }
.wk-card__img { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 16 / 10; background: var(--c-line); }
.wk-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.wk-card__body { position: relative; padding-top: 22px; }
.wk-card__no {
  position: absolute; right: 0; top: 14px;
  font-family: "Helvetica Neue", Arial, var(--ff);
  font-size: 2.25rem; font-weight: 700; line-height: 1; color: var(--c-line);
}
.wk-card__no::before { content: counter(wk, decimal-leading-zero); }
.wk-card__meta { display: flex; align-items: center; gap: 14px; font-size: var(--fs-xs); color: var(--c-text-mute); }
.wk-card__cat {
  padding: 2px 10px; border: 1px solid var(--c-sub); border-radius: 999px;
  font-weight: 700; color: var(--c-sub); background: transparent;
}
.wk-card__title { margin-top: 12px; padding-right: 3.5em; font-size: var(--fs-lg); font-weight: 700; line-height: 1.55; color: var(--c-sub); }
.wk-card__excerpt { margin-top: 10px; font-size: var(--fs-sm); color: var(--c-text-mute); }
.wk-card__more {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-sm); font-weight: 700; color: var(--c-main);
}
.wk-card__more svg { width: 18px; height: 18px; transition: transform .3s ease; }
.wk-card__more.is-soon { color: var(--c-text-mute); }
.wk-card.is-placeholder { cursor: default; }
.wk-card.is-placeholder .wk-card__title { color: var(--c-text-mute); }
@media (hover: hover) {
  a.wk-card:hover .wk-card__img img { transform: scale(1.05); }
  a.wk-card:hover .wk-card__more svg { transform: translateX(5px); }
  a.wk-card:hover .wk-card__title { text-decoration: underline; text-decoration-color: var(--c-main); text-underline-offset: 5px; text-decoration-thickness: 2px; }
}
/* 先頭の事例は横長で大きく */
.wk-list > li.is-lead { grid-column: 1 / -1; }
.wk-list > li.is-lead .wk-card { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.wk-list > li.is-lead .wk-card__body { padding-top: 0; }
.wk-list > li.is-lead .wk-card__no { position: static; font-size: clamp(3.5rem, 2.5rem + 3vw, 5rem); color: var(--c-main); margin-bottom: 18px; }
.wk-list > li.is-lead .wk-card__title { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); padding-right: 0; }
.wk-list > li.is-lead .wk-card__excerpt { font-size: var(--fs-base); }

/* ---- お問い合わせ帯 ---- */
.wk-cta { position: relative; background: var(--c-sub); color: var(--c-white); padding: clamp(64px, 8vw, 104px) 0; }
.wk-cta__inner { display: grid; grid-template-columns: 1.3fr 1fr; align-items: end; gap: 32px 48px; }
.wk-cta__en { font-size: clamp(1rem, .9rem + .4vw, 1.25rem); margin-bottom: 18px; }
.wk-cta__title { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); font-weight: 700; line-height: 1.45; }
.wk-cta__text { margin-top: 18px; color: var(--c-on-dark); }
.wk-cta__actions { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.wk-cta__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 26px 30px; border-radius: 6px;
  background: var(--c-main); color: var(--c-white); text-decoration: none;
  font-size: var(--fs-md); font-weight: 700;
  transition: background-color .2s;
}
.wk-cta__btn svg { width: 22px; height: 22px; transition: transform .3s ease; }
.wk-cta__btn:hover { background: var(--c-accent-hover); }
.wk-cta__btn:hover svg { transform: translateX(6px); }
.wk-cta__link { align-self: flex-end; color: var(--c-on-dark); font-size: var(--fs-sm); text-underline-offset: 4px; }
.wk-cta__link:hover { color: var(--c-white); }

/* ---- 詳細ページ ---- */
.cs-hero { padding-bottom: clamp(32px, 5vw, 56px); }
.cs-hero__meta { margin-top: clamp(36px, 6vw, 64px); display: flex; align-items: center; gap: 16px; font-size: var(--fs-sm); color: var(--c-text-mute); }
.cs-hero__en { font-size: var(--fs-sm); letter-spacing: .12em; padding-right: 16px; border-right: 1px solid var(--c-line); }
.cs-hero__title {
  margin-top: 20px;
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3rem); font-weight: 700; line-height: 1.45; color: var(--c-sub);
}
.cs-visual { margin: 0; border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--c-line); }
.cs-visual img { width: 100%; height: 100%; object-fit: cover; }
.cs-layout {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 5vw, 80px); align-items: start;
}
.cs-info {
  position: sticky; top: calc(var(--header-h) + 24px);
  padding: 28px 26px; background: var(--c-white); border-radius: 4px;
}
.cs-info__title {
  display: flex; align-items: baseline; gap: 10px;
  padding-bottom: 14px; border-bottom: 1px solid var(--c-sub);
  font-family: "Helvetica Neue", Arial, var(--ff); font-size: 1.375rem; font-weight: 700; color: var(--c-sub);
}
.cs-info__title span { font-family: var(--ff); font-size: var(--fs-xs); color: var(--c-text-mute); font-weight: 500; }
.cs-info__list div { padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.cs-info__list dt { font-size: var(--fs-xs); color: var(--c-main); font-weight: 700; letter-spacing: .06em; }
.cs-info__list dd { margin-top: 4px; font-size: var(--fs-sm); color: var(--c-text); line-height: 1.7; }
.cs-info__ref {
  margin-top: 18px; display: grid; grid-template-columns: 1fr 16px; gap: 6px 10px;
  font-size: var(--fs-xs); line-height: 1.7; color: var(--c-text-mute); text-decoration: none;
}
.cs-info__ref-label { grid-column: 1 / -1; font-weight: 700; color: var(--c-sub); }
.cs-info__ref svg { width: 16px; height: 16px; color: var(--c-main); margin-top: 3px; }
.cs-info__ref:hover span:not(.cs-info__ref-label) { color: var(--c-sub); text-decoration: underline; }

.cs-lead {
  font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); font-weight: 700; line-height: 1.9; color: var(--c-sub);
  padding-left: 24px; border-left: 3px solid var(--c-main);
}
.cs-sec { margin-top: clamp(48px, 6vw, 72px); }
.cs-sec__no {
  font-family: "Helvetica Neue", Arial, var(--ff);
  font-size: 3rem; font-weight: 700; line-height: 1; color: var(--c-main);
}
.cs-sec__title { margin-top: 10px; font-size: var(--fs-lg); font-weight: 700; color: var(--c-sub); }
.cs-sec p:not(.cs-sec__no) { margin-top: 18px; line-height: 2; }
.cs-news {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid; grid-template-columns: auto 1fr 18px; align-items: center; gap: 20px;
  padding: 22px 26px; border: 1px solid var(--c-line); border-radius: 4px; background: var(--c-white);
  text-decoration: none; color: var(--c-sub);
  transition: border-color .2s;
}
.cs-news:hover { border-color: var(--c-main); }
.cs-news__label { font-family: "Helvetica Neue", Arial, var(--ff); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; color: var(--c-main); }
.cs-news__title { font-size: var(--fs-sm); font-weight: 700; }
.cs-news svg { width: 18px; height: 18px; color: var(--c-main); }
.cs-back {
  margin: clamp(56px, 7vw, 96px) 0 var(--sec-pad);
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700; color: var(--c-sub); text-decoration: none;
}
.cs-back svg { width: 20px; height: 20px; transition: transform .3s ease; }
.cs-back:hover svg { transform: translateX(-5px); }

/* ---- レスポンシブ ---- */
@media (max-width: 860px) {
  .wk-hero__grid, .wk-cta__inner { grid-template-columns: 1fr; }
  .wk-hero__lead { justify-self: start; text-align: left; }
  .wk-list { grid-template-columns: 1fr; }
  .wk-list > li.is-lead .wk-card { grid-template-columns: 1fr; gap: 24px; }
  .wk-list > li.is-lead .wk-card__no { font-size: 3rem; margin-bottom: 10px; }
  .wk-filter { flex-direction: column; align-items: stretch; }
  .wk-filter__total { align-self: flex-end; }
  .cs-layout { grid-template-columns: 1fr; }
  .cs-info { position: static; }
  .cs-visual { aspect-ratio: 16 / 10; }
  .wk-cta__link { align-self: flex-start; }
}
@media (max-width: 560px) {
  .wk-hero__lead br { display: none; }
  .cs-news { grid-template-columns: 1fr 18px; }
  .cs-news__label { grid-column: 1 / -1; }
}

/* ---------- 料金：両プランともオレンジ／含まれるもの・別途を上下に ---------- */
.plan, .plan--a, .plan--b { border-color: var(--c-main); }
.plan__tag, .plan--a .plan__tag, .plan--b .plan__tag { background: var(--c-main); color: var(--c-white); }
.plan__catch, .plan--a .plan__catch { color: var(--c-main); }
.scope { grid-template-columns: 1fr; gap: 16px; }
.scope__box {
  display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 12px 32px;
  padding: 26px 32px;
}
.scope__box ul { margin-top: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 24px; }
.scope__box--out ul { grid-template-columns: repeat(2, 1fr); }
.scope__box li { margin-top: 0; }
/* 上：開発費に含まれるもの（黄色） */
.scope__box:not(.scope__box--out) { background: #fdf1b8; border: 1px solid var(--c-yellow); }
.scope__box:not(.scope__box--out) .scope__title { color: var(--c-sub); }
.scope__box:not(.scope__box--out) li::before { content: "✓"; color: var(--c-sub); }
/* 下：別途となるもの（グレー） */
.scope__box--out { background: #eeeae6; border: 1px solid #e0dad3; }
.scope__box--out .scope__title { color: var(--c-text); }
.scope__box--out li::before { content: "＋"; color: var(--c-text-mute); }
@media (max-width: 860px) {
  .scope__box { grid-template-columns: 1fr; padding: 22px 22px; }
  .scope__box ul { grid-template-columns: 1fr; }
}

/* 開発費に含まれるもの：項目の幅を内容に合わせ、間隔を均等に */
.scope__box:not(.scope__box--out) ul {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 48px;
}
.scope__box:not(.scope__box--out) li { white-space: nowrap; }
@media (max-width: 860px) {
  .scope__box:not(.scope__box--out) ul { flex-direction: column; align-items: flex-start; gap: 8px; }
  .scope__box:not(.scope__box--out) li { white-space: normal; }
}

/* =========================================================
   LP 導入事例：スタイリッシュ版
   ========================================================= */
.lpw {
  display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}
.lpw-meta { display: flex; align-items: center; gap: 12px; font-size: var(--fs-xs); color: var(--c-text-mute); }
.lpw-no {
  font-family: "Helvetica Neue", Arial, var(--ff);
  font-size: 1.125rem; font-weight: 700; line-height: 1; color: var(--c-main);
  padding-right: 12px; border-right: 1px solid var(--c-line);
}
.lpw-cat { padding: 2px 10px; border: 1px solid var(--c-sub); border-radius: 999px; font-weight: 700; color: var(--c-sub); }

/* 大きい事例 */
.lpw-feature { display: block; text-decoration: none; color: inherit; }
.lpw-feature__img { overflow: hidden; border-radius: 4px; aspect-ratio: 16 / 10; background: var(--c-line); }
.lpw-feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.lpw-feature__body { padding-top: 24px; }
.lpw-feature__title { margin-top: 14px; font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem); font-weight: 700; line-height: 1.5; color: var(--c-sub); }
.lpw-feature__text { margin-top: 12px; font-size: var(--fs-sm); color: var(--c-text-mute); max-width: 40em; }
.lpw-more { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-sm); font-weight: 700; color: var(--c-main); }
.lpw-more svg, .lpw-all svg { width: 18px; height: 18px; transition: transform .3s ease; }

/* 右側：小さい事例＋一覧リンク */
.lpw-side { display: flex; flex-direction: column; align-self: start; border-top: 1px solid var(--c-sub); }
.lpw-list { flex: 0 0 auto; }
.lpw-item {
  display: grid; grid-template-columns: 132px 1fr; gap: 20px; align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--c-line);
}
.lpw-item__img { overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; background: var(--c-line); }
.lpw-item__img img { width: 100%; height: 100%; object-fit: cover; }
.lpw-item__title { margin-top: 10px; font-size: var(--fs-md); font-weight: 700; line-height: 1.55; color: var(--c-sub); }
.lpw-item.is-placeholder .lpw-item__title { color: var(--c-text-mute); }
.lpw-item.is-placeholder .lpw-cat { border-color: var(--c-line); color: var(--c-text-mute); }
.lpw-all {
  margin-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px; border-radius: 4px;
  background: var(--c-sub); color: var(--c-white); text-decoration: none;
  font-weight: 700;
  transition: background-color .25s ease;
}
.lpw-all:hover { background: var(--c-main); }

@media (hover: hover) {
  .lpw-feature:hover .lpw-feature__img img { transform: scale(1.04); }
  .lpw-feature:hover .lpw-more svg, .lpw-all:hover svg { transform: translateX(5px); }
  .lpw-feature:hover .lpw-feature__title { text-decoration: underline; text-decoration-color: var(--c-main); text-underline-offset: 6px; text-decoration-thickness: 2px; }
}

/* クライアント様 */
.lpw-clients {
  margin-top: clamp(56px, 7vw, 88px);
  display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 20px 40px;
  padding: 28px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
}
.lpw-clients__title { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-sm); font-weight: 700; color: var(--c-sub); }
.lpw-clients__en { font-family: "Helvetica Neue", Arial, var(--ff); font-size: 1.375rem; color: var(--c-main); letter-spacing: .02em; }
.lpw-clients__list { display: flex; flex-wrap: wrap; align-items: center; }
.lpw-clients__list li {
  padding: 8px 28px; border-left: 1px solid var(--c-line);
  font-size: var(--fs-sm); font-weight: 700; color: var(--c-sub);
}
.lpw-clients__list li:first-child { border-left: 0; padding-left: 0; }
.lpw-clients__list li.is-placeholder { color: #c3b8ac; font-weight: 500; }
.lpw-clients__list img { max-height: 36px; width: auto; }

@media (max-width: 960px) {
  .lpw { grid-template-columns: 1fr; }
  .lpw-clients { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .lpw-item { grid-template-columns: 96px 1fr; gap: 14px; padding: 18px 0; }
  .lpw-item__title { font-size: var(--fs-base); }
  .lpw-clients__list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
  .lpw-clients__list li, .lpw-clients__list li:first-child { padding: 0; border-left: 0; }
  .lpw-feature__title br { display: none; }
}

/* =========================================================
   導入事例 記事ページ：読み物レイアウト
   ========================================================= */
.art { padding-top: var(--header-h); background: var(--c-white); }
.art-col { width: 100%; max-width: calc(720px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.art-bread { padding-top: 28px; }
.art-head { padding-bottom: clamp(32px, 5vw, 48px); }
.art-meta {
  margin-top: clamp(36px, 6vw, 64px);
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
  font-size: var(--fs-sm); color: var(--c-text-mute);
}
.art-meta__label { font-weight: 700; color: var(--c-main); padding-right: 14px; border-right: 1px solid var(--c-line); }
.art-title {
  margin-top: 18px;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.625rem); font-weight: 700; line-height: 1.5;
  letter-spacing: .02em; color: var(--c-sub);
}
.art-deck {
  margin-top: 24px;
  font-size: clamp(1rem, .95rem + .3vw, 1.125rem); line-height: 2; color: var(--c-text);
}
.art-visual {
  margin: 0 auto; width: 100%; max-width: calc(1000px + var(--gutter) * 2); padding: 0 var(--gutter);
}
.art-visual img { width: 100%; height: auto; border-radius: 4px; display: block; }
.art-visual figcaption { margin-top: 10px; font-size: var(--fs-xs); color: var(--c-text-mute); text-align: center; }

.art-body { padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(64px, 8vw, 104px); }
.art-body p { font-size: 1.0625rem; line-height: 2.1; letter-spacing: .03em; }

/* 取り組み概要 */
.art-summary { padding: 28px 30px; background: var(--c-gray); border-radius: 4px; }
.art-summary__title {
  display: flex; align-items: center; gap: 12px;
  font-size: var(--fs-md); font-weight: 700; color: var(--c-sub);
}
.art-summary__title::before { content: ""; width: 4px; height: 1.1em; background: var(--c-main); border-radius: 2px; }
.art-summary__list { margin-top: 16px; }
.art-summary__list div { display: grid; grid-template-columns: 6.5em 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--c-line); }
.art-summary__list div:first-child { border-top: 0; }
.art-summary__list dt { font-size: var(--fs-sm); font-weight: 700; color: var(--c-text-mute); }
.art-summary__list dd { font-size: var(--fs-sm); line-height: 1.8; color: var(--c-text); }
.art-summary__list a { color: var(--c-sub); text-decoration: underline; text-decoration-color: var(--c-main); text-underline-offset: 3px; }
.art-summary__list a svg { width: 13px; height: 13px; margin-left: 4px; vertical-align: -1px; color: var(--c-main); }

/* 見出し・本文 */
.art-sec { margin-top: clamp(48px, 6vw, 72px); }
.art-h2 {
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 14px; margin-bottom: 22px;
  border-bottom: 1px solid var(--c-line);
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); font-weight: 700; color: var(--c-sub);
}
.art-h2__no { font-family: "Helvetica Neue", Arial, var(--ff); font-size: .95em; color: var(--c-main); }

/* ニュースリリース */
.art-news {
  margin-top: clamp(48px, 6vw, 64px);
  display: grid; grid-template-columns: 1fr 18px; gap: 6px 16px; align-items: center;
  padding: 22px 26px; border: 1px solid var(--c-line); border-left: 4px solid var(--c-main); border-radius: 4px;
  text-decoration: none; color: var(--c-sub); transition: background-color .2s;
}
.art-news:hover { background: var(--c-gray); }
.art-news__label { grid-column: 1 / -1; font-size: var(--fs-xs); font-weight: 700; color: var(--c-main); }
.art-news__title { font-weight: 700; }
.art-news svg { width: 18px; height: 18px; color: var(--c-main); }

/* 記事末尾 */
.art-foot {
  margin-top: clamp(56px, 7vw, 80px); padding-top: 24px; border-top: 1px solid var(--c-sub);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.art-back { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--c-sub); text-decoration: none; }
.art-back svg { width: 20px; height: 20px; transition: transform .3s ease; }
.art-back:hover svg { transform: translateX(-5px); }
.art-top { font-size: var(--fs-sm); color: var(--c-text-mute); text-underline-offset: 4px; }

@media (max-width: 560px) {
  .art-title br { display: none; }
  .art-summary { padding: 22px 20px; }
  .art-summary__list div { grid-template-columns: 1fr; gap: 2px; }
  .art-body p { font-size: 1rem; }
}

/* =========================================================
   TOP 案D：雑誌風の斜めコラージュ
   上段：斜めに区切った写真4枚／下段：左に文字・右に写真
   ========================================================= */
.hero--mag { padding: var(--header-h) 0 0; }
.hm { --slant: clamp(40px, 5vw, 80px); --gap: 10px; }
.hm-top {
  display: flex; height: clamp(200px, min(26vw, 36vh), 340px);
  padding: 0 0 var(--gap);
}
.hm-panel {
  position: relative; flex: 1 1 0; margin: 0; overflow: hidden;
  clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
}
.hm-panel + .hm-panel { margin-left: calc((var(--slant) - var(--gap)) * -1); }
.hm-panel--1 { clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); flex-grow: 1.1; }
.hm-panel--4 { clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%); flex-grow: 1.1; }
.hm-panel img, .hm-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }

.hm-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: stretch; }
.hm-text {
  padding: clamp(24px, 3vw, 44px) clamp(20px, 3vw, 48px) clamp(28px, 3.5vw, 48px) max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  align-self: center;
}
.hm-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: var(--fs-sm); font-weight: 700; letter-spacing: .14em; color: var(--c-main);
}
.hm-eyebrow::before, .hm-eyebrow::after { content: ""; width: 36px; height: 1px; background: var(--c-main); }
.hero--mag .hero__title { margin-top: 12px; font-size: clamp(2rem, 1rem + 2.4vw, 3rem); line-height: 1.3; }
.hero--mag .hero__lead { margin-top: 16px; font-size: var(--fs-base); }
.hero--mag .hero__actions { margin-top: 22px; }
.hm-photo {
  position: relative; margin: 0; overflow: hidden; min-height: clamp(240px, 26vw, 380px);
  clip-path: polygon(calc(var(--slant) * 1.6) 0, 100% 0, 100% 100%, 0 100%);
}
@media (hover: hover) {
  .hm-panel:hover img, .hm-photo:hover img { transform: scale(1.05); }
}
/* 読み込み時：上段は左から順に、右下の写真は右からすべり込む */
@media (prefers-reduced-motion: no-preference) {
  .js .hm-panel { opacity: 0; transform: translateY(-30px); }
  .js .hm-photo { opacity: 0; transform: translateX(40px); }
  .is-loaded .hm-panel, .is-loaded .hm-photo { animation: hmIn 1s cubic-bezier(.2,.8,.2,1) forwards; }
  .is-loaded .hm-panel--1 { animation-delay: .1s; }
  .is-loaded .hm-panel--2 { animation-delay: .22s; }
  .is-loaded .hm-panel--3 { animation-delay: .34s; }
  .is-loaded .hm-panel--4 { animation-delay: .46s; }
  .is-loaded .hm-photo { animation-delay: .6s; }
}
@keyframes hmIn { to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .hm { --slant: 28px; --gap: 6px; }
  .hm-top { height: 220px; }
  .hm-panel--4 { display: none; }
  .hm-panel--3 { clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%); flex-grow: 1.1; }
  .hm-bottom { grid-template-columns: 1fr; }
  .hm-text { padding: 28px var(--gutter) 32px; }
  .hm-photo { min-height: 220px; clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%); }
}

/* 案D：和菓子の写真と実績の帯（ブラウン）の間の余白をなくす */
.hero--mag .facts { margin-top: 0; }
/* 案D スマホ：上段3枚目をチョコレートからオードブルに */
@media (max-width: 860px) {
  .hm-panel--3 { display: none; }
  .hm-panel--4 { display: block; clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%); flex-grow: 1.1; }
}

/* =========================================================
   導入事例 記事ページ：上段（タイトル＋写真）／下段（概要＋詳細）
   ========================================================= */
.art2-head {
  margin-top: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--c-line);
}
.art2 .art-meta { margin-top: 0; }
.art2 .art-title { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.125rem); }
.art2-head__visual { margin: 0; }
.art2-head__visual img { width: 100%; height: auto; display: block; border-radius: 4px; }
.art2-head__visual figcaption { margin-top: 10px; font-size: var(--fs-xs); color: var(--c-text-mute); }

.art2-body {
  display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding: clamp(40px, 5vw, 64px) 0 clamp(64px, 8vw, 104px);
}
.art2-side { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 20px; }
.art2-box { padding: 24px 26px; background: var(--c-gray); border-radius: 4px; }
.art2-box__title {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--fs-sm); font-weight: 700; letter-spacing: .08em; color: var(--c-main);
}
.art2-box__title::before { content: ""; width: 4px; height: 1em; background: var(--c-main); border-radius: 2px; }
.art2-client { margin-top: 12px; font-size: var(--fs-lg); font-weight: 700; color: var(--c-sub); }
.art2-list { margin-top: 12px; }
.art2-list div { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--c-line); }
.art2-list dt { font-size: var(--fs-xs); font-weight: 700; color: var(--c-text-mute); padding-top: 2px; }
.art2-list dd { font-size: var(--fs-sm); line-height: 1.75; color: var(--c-text); }
.art2-ref {
  margin-top: 14px; display: grid; grid-template-columns: 1fr 14px; gap: 4px 10px;
  font-size: var(--fs-xs); line-height: 1.7; color: var(--c-text-mute); text-decoration: none;
}
.art2-ref__label { grid-column: 1 / -1; font-weight: 700; color: var(--c-sub); }
.art2-ref svg { width: 14px; height: 14px; color: var(--c-main); margin-top: 3px; }
.art2-ref:hover span:not(.art2-ref__label) { color: var(--c-sub); text-decoration: underline; }

.art2-main__title {
  font-size: clamp(1.375rem, 1.1rem + .9vw, 1.75rem); font-weight: 700; color: var(--c-sub);
  padding-bottom: 14px; border-bottom: 2px solid var(--c-sub);
}
.art2-main .art-sec:first-of-type { margin-top: 32px; }
.art2-main p { font-size: 1.0625rem; line-height: 2.1; letter-spacing: .03em; }

@media (max-width: 960px) {
  .art2-head { grid-template-columns: 1fr; }
  .art2-head__visual { order: 2; }
  .art2-body { grid-template-columns: 1fr; }
  .art2-side { position: static; }
}
@media (max-width: 560px) {
  .art2-box { padding: 20px; }
  .art2-list div { grid-template-columns: 1fr; gap: 2px; }
  .art2-main p { font-size: 1rem; }
}

/* 開発チーム：顔写真 */
.member__photo--img { overflow: hidden; background: var(--c-line); }
.member__photo--img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

.art2-list a { color: var(--c-sub); text-decoration: underline; text-decoration-color: var(--c-main); text-underline-offset: 3px; }
.art2-list a svg { width: 13px; height: 13px; margin-left: 4px; vertical-align: -1px; color: var(--c-main); }

/* 記事内の写真（本文中） */
.art-fig { margin: 28px 0 0; max-width: 420px; }
.art-fig img { width: 100%; height: auto; display: block; border-radius: 4px; }
.art-fig figcaption { margin-top: 8px; font-size: var(--fs-xs); color: var(--c-text-mute); }

/* 開発チーム：and more */
.team__more {
  margin-top: 14px; text-align: right;
  font-family: "Helvetica Neue", Arial, var(--ff);
  font-size: var(--fs-md); font-weight: 700; font-style: italic; letter-spacing: .04em;
  color: var(--c-main);
}

/* 記事：キャッチ・引用・プロフィール */
.art2-main .art2-catch {
  margin-top: 28px;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 700; line-height: 1.6; color: var(--c-sub);
}
.art-quote {
  margin: clamp(40px, 5vw, 56px) 0 0; padding: 28px 32px 26px;
  background: var(--c-main-soft); border-left: 4px solid var(--c-main); border-radius: 4px;
}
.art-quote p { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem) !important; font-weight: 700; line-height: 1.8 !important; color: var(--c-sub); }
.art-quote p::before { content: "“"; margin-right: 4px; color: var(--c-main); }
.art-quote p::after { content: "”"; margin-left: 2px; color: var(--c-main); }
.art-quote cite { display: block; margin-top: 10px; font-size: var(--fs-xs); font-style: normal; color: var(--c-text-mute); }
.art-quote cite::before { content: "― "; }
.art-profile {
  margin-top: clamp(56px, 7vw, 80px); padding: 30px 32px;
  border: 1px solid var(--c-line); border-top: 3px solid var(--c-sub); border-radius: 4px;
}
.art2-main .art-profile__en { font-family: "Helvetica Neue", Arial, var(--ff); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .2em; color: var(--c-main); }
.art-profile__name { margin-top: 8px; font-size: var(--fs-lg); font-weight: 700; color: var(--c-sub); }
.art-profile__name span { margin-left: 12px; font-size: var(--fs-xs); font-weight: 500; color: var(--c-text-mute); }
.art-profile__role { margin-top: 2px !important; font-size: var(--fs-sm) !important; color: var(--c-text-mute); }
.art-profile__text { margin-top: 14px !important; font-size: var(--fs-sm) !important; line-height: 1.9 !important; }
.art-profile__list { margin-top: 16px; }
.art-profile__list div { display: grid; grid-template-columns: 13em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--c-line); font-size: var(--fs-sm); }
.art-profile__list dt { font-weight: 700; color: var(--c-sub); }
.art-profile__list dd { color: var(--c-text); line-height: 1.75; }
@media (max-width: 560px) {
  .art-quote, .art-profile { padding: 22px 20px; }
  .art-profile__list div { grid-template-columns: 1fr; gap: 2px; }
}

.art-sec p + p { margin-top: 1em; }
