/* =========================================================
   パターンK｜大胆・力強い
   黒×白＋オレンジ／極太の巨大な文字（日本語のキャッチ・英字のセクション名）／傾けたポスター
   参考: papertiger.com（見せ方のみ。素材・文章・コードは不使用）
   数値の根拠は ../design-guideline-k.md。ここに無い数値を足すときは先にガイドラインを直す。
   ========================================================= */

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

:root {
  /* --- 色（ガイドライン3章。これ以外の色は使わない） --- */
  --c-black: #000000;
  --c-white: #FFFFFF;
  --c-orange: #FF5A1F;        /* 上の文字は黒だけ（6.73:1）。白地の上は巨大な文字の強調だけ（3.12:1） */
  --c-muted: #595959;         /* 白地 7.0:1 */
  --c-muted-dark: #A3A3A3;    /* 黒地 8.33:1 */
  --c-line-dark: #3A3A3A;

  /* --- 文字（ガイドライン4章） --- */
  --font-ja: 'Noto Sans JP', sans-serif;
  --font-display: 'Anton', 'Noto Sans JP', sans-serif;
  --font-serif: 'Instrument Serif', serif;
  --fs-h2: 32px;
  --fs-body: 16px;
  --fs-giant: clamp(80px, 15vw, 220px);

  /* --- 余白・幅（ガイドライン2章） --- */
  --gutter: 40px;
  --max-width: 1360px;
  --max-text: 640px;
  --sp-section: 160px;
  --header-h: 88px;

  /* --- 動き（main.js が読む） --- */
  --motion-stagger: 0.08s;
  --header-transparent: 0;
}

@media (max-width: 1023px) {
  :root {
    --gutter: 32px;
    --sp-section: 120px;
    --header-h: 72px;
  }
}
@media (max-width: 767px) {
  :root {
    --fs-h2: 24px;
    --fs-body: 15px;
    --fs-giant: 22vw;
    --gutter: 20px;
    --sp-section: 88px;
    --header-h: 64px;
  }
}

/* =========================================================
   ベース
   ========================================================= */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  font-family: var(--font-ja);
  font-size: var(--fs-body);
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--c-black);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--c-orange); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 2000;
  padding: 12px 20px; background: var(--c-black); color: var(--c-white);
}
.skip-link:focus { top: 16px; }

.container,
.container-form {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container      { max-width: calc(var(--max-width) + var(--gutter) * 2); }
.container-form { max-width: calc(720px + var(--gutter) * 2); }

.section { position: relative; padding-block: var(--sp-section); }

/* 改行位置の指定（共通ルール0-10）：区切りの位置だけで折り返す */
.nb { display: inline-block; }

/* =========================================================
   見出しの型（ガイドライン5章）
   ========================================================= */
.giant-en {
  padding-inline: var(--gutter); margin-bottom: 48px;
  font-family: var(--font-display); font-size: var(--fs-giant); font-weight: 400; line-height: 0.85; letter-spacing: 0;
  white-space: nowrap; overflow: hidden;
}
.section-header { position: relative; }
.section-title { font-size: var(--fs-h2); font-weight: 900; line-height: 1.5; letter-spacing: 0.02em; }
.sub-label { margin-top: 4px; font-size: 16px; color: var(--c-muted); }
.section-desc { max-width: var(--max-text); margin-top: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; align-items: start; }

/* =========================================================
   ボタン（ガイドライン6章）：四角の枠。ホバーで地と文字が反転
   ========================================================= */
.btn-box {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 52px; padding: 0 24px;
  border: 1.5px solid currentColor;
  font-size: 15px; font-weight: 700; line-height: 1; letter-spacing: 0.06em;
  color: var(--c-black); text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.btn-box:hover { background: var(--c-black); color: var(--c-white); }
.btn-box-sm { min-height: 44px; padding: 0 18px; }
.arrow { font-family: var(--font-serif); font-style: italic; font-size: 18px; transition: transform .2s ease; }
.btn-box:hover .arrow { transform: translateX(4px); }

/* =========================================================
   ヘッダー（白・固定）
   ========================================================= */
#site-header {
  position: sticky; top: 0; z-index: 1000;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  height: var(--header-h); padding-inline: var(--gutter);
  background: var(--c-white);
}
.logo-name { font-size: 20px; font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.main-nav ul { display: flex; gap: 32px; }
.main-nav a { font-size: 15px; font-weight: 700; letter-spacing: 0.04em; text-decoration: none; }
.main-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.header-cta { justify-self: end; }

.hamburger {
  display: none; justify-self: end;
  padding: 8px 4px; border: 0; background: none; cursor: pointer;
  font-family: var(--font-display); font-size: 20px; letter-spacing: 0.04em; color: var(--c-black);
}
.mobile-nav {
  display: none;
  position: fixed; z-index: 999; top: var(--header-h); left: 0; right: 0; bottom: 0;
  padding: 24px var(--gutter);
  background: var(--c-white);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--c-black);
  font-size: 28px; font-weight: 900; letter-spacing: -0.02em; text-decoration: none;
}

/* =========================================================
   トップ画面（巨大なキャッチ2行の間に傾けたポスター）
   ========================================================= */
#hero {
  min-height: max(760px, calc(100svh - var(--header-h)));
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 8px var(--gutter) 40px;
}
.hero-title { font-size: clamp(44px, 8vw, 116px); font-weight: 900; line-height: 1.1; letter-spacing: -0.04em; text-align: center; }
.hero-line { display: block; }

/* ポスター：中央に縦長の写真、左右に横長の写真（すべて中央を基準に傾ける）
   10/24 Uiさん指摘：①重なりすぎ→左右に広げる ②3枚とも同じ形→縦長と横長の組み合わせに ③オレンジの紙は削除
   クリックした写真が手前に来る（animation.js が z-index を書き換える） */
.hero-poster { position: relative; display: block; height: 440px; margin-block: 12px; }
.hero-poster > * { position: absolute; left: 50%; top: 50%; cursor: pointer; }
.poster-front   { width: 300px; aspect-ratio: 3 / 4; transform: translate(-50%, -50%) rotate(-3deg); }
.poster-back-1  { width: 360px; aspect-ratio: 4 / 3; transform: translate(-125%, -40%) rotate(-7deg); }
.poster-back-2  { width: 360px; aspect-ratio: 4 / 3; transform: translate(25%, -62%) rotate(6deg); }
.poster { display: block; padding: 6px; background: var(--c-white); }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.hero-poster .poster { box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }

.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-top: 24px; }
.hero-sample-note {
  display: inline-block; margin-bottom: 12px; padding: 4px 10px;
  border: 1px solid var(--c-black);
  font-size: 14px; line-height: 1.6; letter-spacing: 0.02em;
}
.hero-eyebrow { font-size: 16px; font-weight: 700; letter-spacing: 0.04em; }
.hero-foot-right { text-align: right; }
.hero-sub { line-height: 1.8; }
.hero-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 16px; }

/* =========================================================
   表
   ========================================================= */
.data-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--c-black); }
.data-table th,
.data-table td {
  padding: 18px 8px; border-bottom: 1px solid var(--c-black);
  text-align: left; vertical-align: top;
  font-size: var(--fs-body); line-height: 1.8;
}
.data-table th { width: 8em; font-weight: 700; }

/* =========================================================
   事業内容（黒の面＋制度ごとの面＋巨大な単語の帯）
   ========================================================= */
.services-intro { padding-block: var(--sp-section) 96px; background: var(--c-black); color: var(--c-white); }
.services-intro .sub-label { color: var(--c-muted-dark); }

.system-block {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) 380px;
  grid-template-areas: "text poster" "name poster";
  min-height: 640px; padding: 64px var(--gutter);
}
.block-orange { background: var(--c-orange); color: var(--c-black); }
.block-black  { background: var(--c-black); color: var(--c-white); border-top: 1px solid var(--c-line-dark); }
.block-white  { background: var(--c-white); color: var(--c-black); border-top: 1px solid var(--c-black); }
.system-text { grid-area: text; max-width: 440px; }
.system-num { display: inline-block; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-family: var(--font-serif); font-style: italic; font-size: 18px; line-height: 1; letter-spacing: 0.02em; }
.system-desc { margin-top: 20px; }
.system-note { margin-top: 8px; font-size: 14px; font-weight: 700; }
.system-name {
  grid-area: name; align-self: end;
  margin-top: 64px;
  font-size: clamp(64px, 11vw, 168px); font-weight: 900; line-height: 1; letter-spacing: -0.04em;
}
.system-poster { grid-area: poster; display: flex; align-items: center; justify-content: center; }
.system-poster .poster { width: 320px; aspect-ratio: 3 / 4; }
.poster-tilt-1 { transform: rotate(4deg); }
.poster-tilt-2 { transform: rotate(-3deg); }
.poster-tilt-3 { transform: rotate(5deg); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }

/* 巨大な単語の帯（装飾）。段ごとに左右にずらし、画面からはみ出す分は隠す */
.words { overflow: hidden; padding-block: 96px 64px; border-top: 1px solid var(--c-black); }
.words-row {
  display: flex; align-items: flex-start; width: max-content;
  white-space: nowrap;
  font-size: clamp(48px, 8vw, 112px); font-weight: 900; line-height: 1.15; letter-spacing: -0.03em;
}
.words-row-shift { transform: translateX(-14%); }
.words-row span { margin-right: 0.12em; }
.words-row small {
  margin-right: 0.6em; vertical-align: top;
  font-family: var(--font-serif); font-style: italic; font-size: 16px; font-weight: 400; letter-spacing: 0;
}
.is-accent { color: var(--c-orange); }
.services-table { margin-bottom: var(--sp-section); }

/* =========================================================
   受け入れの流れ（白・縦1列）
   ========================================================= */
.section-flow { border-top: 1px solid var(--c-black); }
.flow-list { border-top: 1px solid var(--c-black); }
.flow-step { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; padding-block: 28px; border-bottom: 1px solid var(--c-black); }
.flow-num { padding-top: 6px; font-family: var(--font-serif); font-style: italic; font-size: 18px; line-height: 1; }
.flow-step h3 { font-size: 22px; font-weight: 700; line-height: 1.5; letter-spacing: 0.02em; }
.flow-step p { margin-top: 4px; }

/* =========================================================
   情報公開（黒）
   ========================================================= */
.section-disclosure { background: var(--c-black); color: var(--c-white); }
.section-disclosure .sub-label { color: var(--c-muted-dark); }
.section-disclosure :focus-visible { outline-color: var(--c-orange); }
.doc-list { border-top: 1px solid var(--c-line-dark); }
.doc-list li { display: flex; align-items: center; gap: 24px; padding-block: 24px; border-bottom: 1px solid var(--c-line-dark); }
.doc-tag { flex-shrink: 0; padding: 4px 12px; background: var(--c-orange); color: var(--c-black); font-size: 14px; font-weight: 700; line-height: 1.4; letter-spacing: 0.06em; }
.doc-title { flex: 1; font-size: 20px; font-weight: 700; }
.doc-note { font-size: 14px; color: var(--c-muted-dark); }

/* =========================================================
   お問い合わせ（黒の地にオレンジの面＋フォーム）
   ========================================================= */
.contact-wrap { padding: 0 var(--gutter) var(--gutter); background: var(--c-black); }
.contact-panel { padding-block: 64px 72px; background: var(--c-orange); color: var(--c-black); }
.contact-panel .giant-en { margin-bottom: 40px; }
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: end;
  padding-inline: var(--gutter);
}
.contact-panel .sub-label { color: var(--c-black); }
.contact-panel :focus-visible { outline-color: var(--c-black); }
.contact-text { max-width: var(--max-text); margin-top: 20px; }
.contact-info h3 { font-size: 16px; font-weight: 700; }
.contact-phone { margin-top: 8px; font-family: var(--font-display); font-size: 56px; line-height: 1; letter-spacing: 0.02em; }
.contact-hours { margin-top: 8px; font-size: 14px; font-weight: 700; }
.contact-info .btn-box { margin-top: 24px; }
.contact-panel .btn-box:hover { background: var(--c-black); color: var(--c-orange); }

.contact-form-area { padding-block: var(--sp-section); }
.form-mock-notice {
  margin-bottom: 32px; padding: 12px 16px; border: 1px solid var(--c-black);
  font-size: 14px; line-height: 1.7;
}
.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 700; line-height: 1.6; letter-spacing: 0.02em; }
.required { margin-left: 8px; font-size: 14px; font-weight: 400; color: var(--c-muted); }
.form-group input,
.form-group textarea {
  width: 100%; padding: 14px 16px;
  font-family: inherit; font-size: 16px; line-height: 1.6; letter-spacing: 0.02em;
  color: var(--c-black); background: var(--c-white);
  border: 1.5px solid var(--c-black); border-radius: 0;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--c-muted); }
.form-group textarea { min-height: 160px; resize: vertical; }
.form-group input:disabled,
.form-group textarea:disabled { cursor: not-allowed; opacity: 1; background: var(--c-white); }
.form-consent { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0 32px; font-size: 14px; line-height: 1.7; }
.form-consent input { margin-top: 5px; }
.btn-submit {
  display: block; width: 100%; min-height: 60px; border: 0;
  background: var(--c-black); color: var(--c-white);
  font-family: inherit; font-size: 16px; font-weight: 700; letter-spacing: 0.06em;
  cursor: not-allowed;
}

/* =========================================================
   フッター（黒・巨大な組合名）
   ========================================================= */
#site-footer { padding-block: 96px 40px; background: var(--c-black); color: var(--c-white); }
#site-footer :focus-visible { outline-color: var(--c-orange); }
.footer-giant { font-size: clamp(48px, 11vw, 160px); font-weight: 900; line-height: 1; letter-spacing: -0.04em; white-space: nowrap; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 32px; }
.footer-nav a { font-size: 22px; font-weight: 700; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--c-line-dark); }
.footer-org-name { font-size: 18px; font-weight: 900; word-break: keep-all; }
.footer-org-detail { margin-top: 12px; font-size: 14px; line-height: 2; color: var(--c-muted-dark); }
.footer-col h4 { margin-bottom: 12px; font-size: 15px; font-weight: 700; }
.footer-col li { font-size: 14px; line-height: 2.1; color: var(--c-muted-dark); }
.footer-col a { color: var(--c-white); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px;
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--c-line-dark);
  font-size: 13px; color: var(--c-muted-dark);
}
.footer-copyright { margin-left: auto; }
.footer-demo-note { margin-top: 24px; font-size: 13px; line-height: 1.8; color: var(--c-muted-dark); }

/* =========================================================
   フェードイン（JSが動く環境だけ初期状態を透明に）
   ========================================================= */
.js .fade-in { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.js .fade-in.visible { opacity: 1; transform: none; }
/* GSAPが動くときは animation.js が動きを担当する（CSSの遷移と二重にならないよう止める） */
.gsap-on .fade-in { opacity: 1; transform: none; transition: none; }
/* キャッチが下からせり上がるとき、行の下に隠しておく */
.gsap-on .hero-line { overflow: hidden; }

/* =========================================================
   タブレット以下（〜1023px）
   ========================================================= */
@media (max-width: 1023px) {
  #site-header { grid-template-columns: 1fr auto; }
  .main-nav, .header-cta { display: none; }
  .hamburger { display: block; }

  #hero { min-height: 0; }
  .hero-poster { height: 380px; }
  .poster-front { width: 260px; }
  .poster-back-1,
  .poster-back-2 { width: 300px; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hero-foot-right { text-align: left; }
  .hero-links { justify-content: flex-start; }

  .split { grid-template-columns: 1fr; gap: 40px; }

  .system-block { grid-template-columns: 1fr; grid-template-areas: "text" "poster" "name"; min-height: 0; gap: 48px; }
  .system-poster { justify-content: flex-start; }
  .system-poster .poster { width: 260px; }
  .system-name { margin-top: 0; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; align-items: start; }
}

/* =========================================================
   スマホ（〜767px）
   ========================================================= */
@media (max-width: 767px) {
  body { line-height: 1.85; }
  .logo-name { font-size: 18px; }

  .hero-title { font-size: 13vw; line-height: 1.12; }
  .hero-line .nb { display: block; }   /* 区切りごとに1行ずつ（4行） */
  .hero-poster { height: 300px; }
  .poster-front { width: 160px; }
  /* スマホは画面が狭いので、横長の写真を小さくして広げる幅も控えめに */
  .poster-back-1,
  .poster-back-2 { width: 170px; }
  .poster-back-1 { transform: translate(-100%, -30%) rotate(-7deg); }
  .poster-back-2 { transform: translate(0%, -72%) rotate(6deg); }
  .hero-links { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-foot-right { width: 100%; }

  .giant-en { margin-bottom: 32px; }
  .data-table th,
  .data-table td { display: block; width: auto; padding: 0 4px; border: 0; }
  .data-table th { padding-top: 14px; }
  .data-table td { padding-block: 2px 14px; border-bottom: 1px solid var(--c-black); }

  .system-block { padding: 48px var(--gutter); gap: 36px; }
  .system-poster .poster { width: 72%; }
  .system-name { font-size: 17vw; }

  .words { padding-block: 64px 40px; }
  .words-row { font-size: 14vw; }

  .flow-step { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding-block: 20px; }
  .flow-step h3 { font-size: 18px; }

  .doc-list li { flex-wrap: wrap; gap: 8px 16px; }
  .doc-title { flex-basis: calc(100% - 80px); font-size: 18px; }
  .doc-note { flex-basis: 100%; }

  .contact-wrap { padding: 0 12px 12px; }
  .contact-panel { padding-block: 48px 56px; }
  .contact-grid { padding-inline: 20px; }
  .contact-phone { font-size: 40px; }
  .contact-info .btn-box { width: 100%; }

  .footer-giant { font-size: 10.5vw; }
  .footer-nav a { font-size: 18px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-copyright { margin-left: 0; }
}

/* =========================================================
   動きを減らす設定：すべて停止
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .fade-in { opacity: 1; transform: none; }
}
