@charset "UTF-8";

/* ==========================================================================
   base.css — 基本設定 / デザイントークン / u-* ユーティリティ
   マルカツ水産テーマ
   - :root にデザイントークン（_ds/tokens を統合・整理したもの）
   - 命名は役割ベース。1〜2箇所しか使わない固有値は各所にインラインで保持。
   - カラーは実装で使われるクール系（青みネイビー）に統合。
   ========================================================================== */

:root {
  /* --- Font families --- */
  --font-jp: YakuHanJP,'Noto Sans JP', system-ui, sans-serif;
  --font-display: YakuHanJP,'Noto Sans JP', sans-serif;
  --font-en-ghost: 'Montserrat', 'Noto Sans JP', sans-serif;  /* 装飾用の大きな欧文 */

  /* --- Font weights --- */
  --fw-medium: 500;
  --fw-bold: 700;
  --fw-black: 900;

  /* --- Type scale（本文系。大見出しの clamp() は各所インラインで保持） --- */
  --fs-h3: 22px;  /* 小見出し */
  --fs-body: 16px;  /* 基本本文 */
  --fs-md: 16px;  /* カード内本文 */
  --fs-sm: 16px;  /* 補足・ラベル */
  --fs-caption: 16px;  /* キャプション・小さめUI */
  --fs-note: 16px;  /* 注釈（※）・copyright のみ */

  /* --- Line heights（3段） --- */
  --lh-tight: 1.1;  /* 大型数字・ヒーロー見出し */
  --lh-heading: 1.35;  /* 見出し */
  --lh-body: 1.9;  /* 本文 */

  /* --- Letter spacing（TOP ファーストビューのタイトルのみで使用） --- */
  --ls-normal: 0.03em;

  /* --- Brand colors --- */
  --red-500: #ED1C24;  /* Primary Red（コーポレートカラー rgb(237,28,36)） */
  --red-600: #C9181F;  /* hover / pressed（Primary を約15%暗く） */

  --blue-500: #39B5E2;  /* Accent Blue（コーポレートカラー rgb(57,181,226)） */
  --blue-600: #309AC0;  /* hover / pressed（Accent を約15%暗く） */

  /* --- Cool neutrals (base → surface → divider) --- */
  --neutral-000: #FFFFFF;
  --neutral-050: #F8FAFD;
  --neutral-100: #E3FAFF;  /* page base / hero・contact・footer 背景 */
  --neutral-200: #E7EEF7;
  --neutral-300: #DCE5F0;

  /* --- Warm text greys（純黒は使わない） --- */
  --ink-900: #2A2622;  /* 見出し・本文の主要色（黒に見えるが黒ではない） */
  --ink-700: #2A2622;
  --ink-500: #787878;

  /* --- Photo overlays --- */
  --overlay-40: rgba(20, 16, 12, 0.40);

  /* --- Semantic aliases --- */
  --brand: var(--red-500);
  --brand-hover: var(--red-600);
  --accent: var(--blue-500);
  --accent-hover: var(--blue-600);

  --surface-base: var(--neutral-100);
  --surface-card: var(--neutral-000);
  --surface-inset: var(--neutral-050);
  --surface-cool: #F4F7FB;  /* products / haccp カード背景 */

  --border-hairline: #E1E8F1;
  --border-strong: #C9D6E6;

  --text-heading: var(--ink-900);
  --text-body: var(--ink-700);
  --text-muted: var(--ink-500);

  --text-ghost: rgba(28, 42, 62, 0.09);

  /* --- Spacing (8px grid) --- */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;
  --space-16: 128px;

  --section-sm: 64px;
  --section-md: 96px;
  --section-lg: 128px;

  --container: 1100px;  /* コンテンツ最大幅（実装値 mk-wrap 準拠） */
  --container-wide: 1440px;

  /* --- Radius --- */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* --- Shadow --- */
  --shadow-sm: 0 1px 2px rgba(42,38,34,0.06), 0 2px 6px rgba(42,38,34,0.05);
  --shadow-md: 0 4px 12px rgba(42,38,34,0.07), 0 12px 28px rgba(42,38,34,0.06);
  --shadow-lg: 0 10px 24px rgba(42,38,34,0.09), 0 28px 60px rgba(42,38,34,0.08);

  /* --- Motion --- */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.15, 1);
  --dur-fast: 140ms;
  --dur-base: 240ms;
  --dur-slow: 420ms;
}

/* ==========================================================================
   Reset / base elements
   ========================================================================== */

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

[hidden] {
  display: none;
}

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

body {
  margin: 0;
  font-family: var(--font-jp);
  font-weight: var(--fw-medium);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* 日本語の禁則処理。小書き仮名（ュ・ッ等）や長音符が行頭に来る折り返しを防ぐ。 */
  line-break: strict;
  word-break: normal;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text-heading);
  font-family: var(--font-jp);
  font-weight: var(--fw-black);
  line-height: var(--lh-heading);
  /* text-wrap: balance は日本語だと語の途中で折り返したうえ行幅も詰まるため使わない。
     意図した改行は各テンプレートの <br> で行う。 */
  text-wrap: wrap;
}

p {
  margin: 0;
  /* text-wrap: pretty も日本語では最終行の調整で不自然な折り返しになるため使わない。 */
  text-wrap: wrap;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
}

::selection {
  background: var(--red-500);
  color: #fff;
}

/* ==========================================================================
   u-* ユーティリティ
   ========================================================================== */

/* 装飾用の巨大欧文（背景に溶け込む） */

.u-ghost {
  font-family: var(--font-en-ghost);
  /* 装飾欧文は .l-pagehero__ghost / .c-cta__ghost も含めて Bold で統一。 */
  font-weight: var(--fw-bold);
  line-height: 0.8;
  color: var(--text-ghost);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

/* スクロール表示アニメーション（JSで .is-in を付与） */

.u-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  will-change: opacity, transform;
}

.u-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* スクリーンリーダー専用 */

.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 改行トグル（SP専用で表示） */

.u-br-sp {
  display: none;
}

@media (max-width: 600px) {
  .u-br-sp {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }

  .u-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
