/* =========================================================
   Link Food Japan — 共通スタイル（A案：信頼・つながり）
   ========================================================= */
:root {
  --color-primary: #174a8b;
  --color-primary-dark: #0b315c;
  --color-accent: #d9252d;
  --color-accent-dark: #b51c23;
  --color-natural: #2f7d4a;
  --color-bg-soft: #eaf3f7;
  --color-bg: #f7f8f5;
  --color-text: #17212b;
  --color-text-sub: #4a5866;
  --color-border: #dce2e5;
  --color-white: #ffffff;

  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-en: "Montserrat", "Noto Sans JP", sans-serif;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  --shadow-sm: 0 2px 10px rgba(11, 49, 92, .06);
  --shadow-md: 0 10px 30px rgba(11, 49, 92, .10);
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--color-text);
  background: var(--color-white);
  font-feature-settings: "palt" 0;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); }
h1, h2, h3, h4 { margin: 0; line-height: 1.45; font-weight: 700; }
p { margin: 0; }
h1, h2, h3, p, li, dt, dd { word-break: auto-phrase; line-break: strict; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid #f2b600; outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--color-primary-dark); color: #fff; border-radius: 6px; }
.skip-link:focus { top: 8px; }
.u-br-pc { display: none; }
@media (min-width: 768px) { .u-br-pc { display: inline; } .u-br-sp { display: none; } }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .7em 1.6em;
  font-size: .95rem; font-weight: 700; letter-spacing: .04em; line-height: 1.4;
  text-decoration: none; border-radius: 6px; border: 1.5px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn__arrow { width: 1.1em; transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--primary { background: var(--color-accent); color: #fff; box-shadow: 0 6px 16px rgba(217, 37, 45, .25); }
.btn--primary:hover { background: var(--color-accent-dark); transform: translateY(-2px); }
.btn--outline { background: #fff; color: var(--color-primary); border-color: var(--color-primary); }
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--ghost-white { color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost-white:hover { background: #fff; color: var(--color-primary-dark); }
.btn--sm { min-height: 40px; padding: .45em 1.2em; font-size: .85rem; }
.btn--lg { min-height: 56px; padding: .9em 2.2em; font-size: 1rem; }

.text-link { display: inline-flex; align-items: center; gap: .6em; font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--color-text); }
.text-link::after { content: ""; width: 28px; height: 1px; background: currentColor; transition: width .25s var(--ease); }
.text-link:hover::after { width: 40px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  background: rgba(255,255,255,0); transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled, .site-header.is-solid { background: rgba(255,255,255,.96); box-shadow: 0 2px 16px rgba(11,49,92,.08); backdrop-filter: blur(8px); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo__mark { width: 40px; height: auto; }
.logo__text { font-family: var(--font-en); font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.logo__text b { display: block; font-size: 1.15rem; }
.logo__text b span:first-child { color: #1d5aa6; }
.logo__text b span:last-child { color: var(--color-accent); }
.logo__text small { display: block; margin-top: 3px; font-size: .78rem; color: #2a3a48; text-align: center; letter-spacing: .02em; }

.gnav { display: none; }
.gnav__list { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); list-style: none; }
.gnav__link { position: relative; display: block; padding: 8px 0; font-size: .88rem; font-weight: 500; color: var(--color-text); text-decoration: none; }
.gnav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.gnav__link:hover::after, .gnav__link[aria-current="page"]::after { transform: scaleX(1); }
.gnav__link[aria-current="page"] { color: var(--color-primary); }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 48px; height: 48px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--color-primary-dark);
}
.nav-toggle__bar { width: 24px; height: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--header-h) 0 0; z-index: 99; padding: 24px var(--gutter) 40px;
  background: #fff; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
}
.drawer.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s var(--ease); }
.drawer__list { list-style: none; border-top: 1px solid var(--color-border); }
.drawer__list a { display: flex; justify-content: space-between; align-items: center; min-height: 60px; padding: 0 4px; border-bottom: 1px solid var(--color-border); color: var(--color-text); font-weight: 700; text-decoration: none; }
.drawer__list a span { font-family: var(--font-en); font-size: .7rem; letter-spacing: .12em; color: var(--color-primary); font-weight: 600; }
.drawer .btn { width: 100%; margin-top: 28px; }
body.is-locked { overflow: hidden; }

@media (min-width: 1024px) {
  :root { --header-h: 84px; }
  .gnav { display: flex; align-items: center; gap: 32px; }
  .nav-toggle, .drawer { display: none; }
  .logo__mark { width: 46px; }
  .logo__text b { font-size: 1.3rem; }
}

/* ---------- セクション共通 ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section--soft { background: var(--color-bg-soft); }
.section--offwhite { background: var(--color-bg); }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { text-align: center; }
.section-head__en {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-family: var(--font-en); font-size: .78rem; font-weight: 600; letter-spacing: .2em; color: var(--color-primary);
}
.section-head__en::before { content: ""; width: 24px; height: 2px; background: linear-gradient(90deg, var(--color-primary) 0 33%, var(--color-accent) 33% 66%, var(--color-natural) 66%); }
.section-head__title { font-family: var(--font-serif); font-size: clamp(1.55rem, 3.6vw, 2.25rem); font-weight: 600; letter-spacing: .04em; color: var(--color-primary-dark); }
.section-head__lead { margin-top: 20px; color: var(--color-text-sub); font-size: clamp(.95rem, 1.6vw, 1.02rem); }
.section-head--center .section-head__lead { margin-inline: auto; max-width: 40em; }

/* ---------- 下層ページヒーロー ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(56px, 8vw, 96px);
  background: linear-gradient(160deg, #f4f9fc 0%, var(--color-bg-soft) 60%, #dcebf4 100%);
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: 40px; width: 520px; height: 520px; opacity: .55; pointer-events: none;
  background: url("../images/network-lines.svg") center / contain no-repeat;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__en { font-family: var(--font-en); font-size: .8rem; font-weight: 600; letter-spacing: .2em; color: var(--color-primary); }
.page-hero__title { margin-top: 8px; font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--color-primary-dark); letter-spacing: .06em; }
.page-hero__copy { margin-top: clamp(28px, 4vw, 40px); font-family: var(--font-serif); font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 600; line-height: 1.6; color: var(--color-text); }
.page-hero__lead { margin-top: 16px; max-width: 36em; color: var(--color-text-sub); }
.breadcrumb { margin-top: 24px; font-size: .78rem; color: var(--color-text-sub); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #9aa7b2; }
.breadcrumb a { color: inherit; }

/* ---------- お問い合わせCTA帯 ---------- */
.cta-band { position: relative; overflow: hidden; color: #fff; background: linear-gradient(120deg, var(--color-primary-dark) 0%, var(--color-primary) 100%); }
.cta-band__bg { position: absolute; inset: 0; opacity: .35; pointer-events: none; background: url("../images/network-lines-white.svg") right -60px center / auto 140% no-repeat; }
.cta-band__inner { position: relative; display: grid; gap: 32px; padding-block: clamp(64px, 9vw, 104px); }
.cta-band .section-head__en, .cta-band .section-head__title { color: #fff; }
.cta-band .section-head__en::before { background: #fff; }
.cta-band__text { color: rgba(255,255,255,.88); max-width: 34em; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
@media (min-width: 1024px) {
  .cta-band__inner { grid-template-columns: 1.3fr 1fr; align-items: center; }
  .cta-band__actions { justify-content: flex-end; }
}

/* ---------- フッター ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--color-border); padding: 56px 0 calc(32px + 72px); font-size: .88rem; }
.site-footer__grid { display: grid; gap: 36px; }
.site-footer__company { margin-top: 18px; font-weight: 700; }
.site-footer__address { margin-top: 6px; font-style: normal; color: var(--color-text-sub); line-height: 1.8; }
.site-footer__nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; list-style: none; }
.site-footer__nav a { display: inline-block; padding: 8px 0; color: var(--color-text); text-decoration: none; }
.site-footer__nav a:hover { color: var(--color-primary); text-decoration: underline; }
.site-footer__copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--color-border); font-family: var(--font-en); font-size: .72rem; letter-spacing: .06em; color: #6b7783; }
@media (min-width: 768px) {
  .site-footer { padding-bottom: 32px; }
  .site-footer__grid { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .site-footer__nav ul { grid-template-columns: repeat(3, auto); justify-content: end; }
}

/* ---------- SP固定CTA ---------- */
.sp-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); box-shadow: 0 -4px 16px rgba(11,49,92,.08);
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.sp-cta.is-visible { transform: none; }
.sp-cta .btn { width: 100%; }
@media (min-width: 768px) { .sp-cta { display: none; } }

/* ---------- 汎用テーブル/定義リスト ---------- */
.info-list { border-top: 1px solid var(--color-border); }
.info-list__row { display: grid; gap: 4px; padding: 18px 4px; border-bottom: 1px solid var(--color-border); }
.info-list dt { font-weight: 700; font-size: .88rem; color: var(--color-primary-dark); }
.info-list dd { margin: 0; }
@media (min-width: 768px) {
  .info-list__row { grid-template-columns: 200px 1fr; gap: 24px; padding: 22px 8px; }
}

/* ---------- 未確定情報マーカー（プレビュー時のみ表示） ---------- */
.tbd { display: none; }
.is-preview .tbd {
  display: inline-block; margin-left: .5em; padding: 0 .6em; vertical-align: .1em;
  font-size: .7rem; font-weight: 700; line-height: 1.8; letter-spacing: .04em;
  color: #8a5a00; background: #fff4d6; border: 1px dashed #e0a800; border-radius: 4px;
}
.is-preview .tbd-block { outline: 2px dashed #e0a800; outline-offset: 6px; border-radius: 4px; }
.preview-banner { display: none; }
.is-preview .preview-banner {
  display: block; position: fixed; left: 12px; bottom: 12px; z-index: 300; max-width: calc(100% - 24px);
  padding: 8px 14px; font-size: .75rem; line-height: 1.5; color: #5c3d00; background: #fff4d6; border: 1px solid #e0a800; border-radius: 6px; box-shadow: var(--shadow-sm);
}
@media (max-width: 767px) { .is-preview .preview-banner { bottom: 84px; } }

/* ---------- スクロール表示アニメーション ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* プレビュー時のみ表示するブロック（公開版では非表示） */
html:not(.is-preview) .preview-only { display: none !important; }
.drawer__list a[aria-current="page"] { color: var(--color-primary); box-shadow: inset 3px 0 0 var(--color-primary); padding-left: 12px; }
