/* =========================================================
   パターンH｜あたたか・にぎやか
   黒・テラコッタ・からし色／大小の角丸タイル／短い横線の目印／文字リンク＋黒の丸
   参考: yamacs.co.jp（見せ方のみ。素材・文章・イラスト・コードは不使用。第2版で配色・並べ方・記号を変更）
   数値の根拠は ../design-guideline-h.md。ここに無い数値を足すときは先にガイドラインを直す。
   ========================================================= */

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

:root {
  /* --- 色（ガイドライン3章。これ以外の色は使わない） --- */
  --c-ink: #2B2724;
  --c-terra: #B5562F;
  --c-mustard: #D9A63A;
  --c-cream: #FAF6F0;
  --c-beige: #EFE8DE;
  --c-white: #FFFFFF;
  --c-text: #222222;
  --c-muted: #6B6157;
  --c-line: #E2DAD0;
  --c-dash: #B3A99D;
  --veil-ink: rgba(43, 39, 36, .88);   /* 写真が白でも白文字 10.14:1 */

  /* --- 文字（ガイドライン4章） --- */
  --font-en: 'Manrope', 'Noto Sans JP', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;
  --fs-h1: clamp(36px, 3.4vw, 48px);
  --fs-h2: 40px;
  --fs-h3: 20px;
  --fs-body: 16px;
  --fs-tag: 14px;
  --fs-fine: 13px;

  /* --- 余白・幅（ガイドライン2章） --- */
  --max-width: 1200px;
  --max-text: 720px;
  --max-list: 800px;
  --gutter: 32px;
  --sp-section: 140px;
  --sp-head: 48px;
  --header-h: 88px;
  --header-top: 16px;
  --tile-gap: 24px;
  --r-tile: 20px;
  --panel-pad: 96px;

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

@media (max-width: 1023px) {
  :root {
    --gutter: 24px;
    --sp-section: 112px;
    --sp-head: 40px;
    --header-h: 72px;
    --header-top: 12px;
    --tile-gap: 16px;
    --panel-pad: 72px;
  }
}
@media (max-width: 767px) {
  :root {
    --fs-h1: 30px;
    --fs-h2: 28px;
    --fs-h3: 18px;
    --fs-body: 15px;
    --gutter: 16px;
    --sp-section: 80px;
    --sp-head: 32px;
    --header-h: 64px;
    --tile-gap: 12px;
    --r-tile: 14px;
    --panel-pad: 56px;
  }
}

/* =========================================================
   ベース
   ========================================================= */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-top) + var(--header-h) + 16px); }
body {
  font-family: var(--font-ja);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 2.2;
  letter-spacing: 0.1em;
  color: var(--c-text);
  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: var(--c-ink); }
a:hover { text-decoration: none; }
:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 3px; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.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-ink); color: var(--c-white);
}
.skip-link:focus { top: 16px; }

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

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

.c-mustard { color: var(--c-mustard); }

/* 改行位置の指定（共通ルール0-10）：/の位置だけで折り返す。区切りの中は、画面より長いときだけ折り返す */
.nb { display: inline-block; }

/* =========================================================
   飾り（ガイドライン9章）：丸と短い横線の目印
   ========================================================= */
.deco { position: absolute; z-index: 2; display: block; border-radius: 50%; pointer-events: none; }
.deco-mustard { background: var(--c-mustard); }
.deco-ink    { background: var(--c-ink); }

.mark { display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--c-terra); }
.mark-light { background: var(--c-mustard); }

/* =========================================================
   見出しの型（ガイドライン5章）
   ========================================================= */
.section-header { position: relative; z-index: 1; margin-bottom: var(--sp-head); }
.sub-label { margin-top: 12px; font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: 0.1em; color: var(--c-terra); }
.section-title {
  margin-top: 12px; max-width: 960px;
  font-size: var(--fs-h2); font-weight: 900; line-height: 1.6; letter-spacing: 0.08em;
  color: var(--c-ink);
}
.section-desc { max-width: var(--max-text); margin-top: 24px; }
.section-header-center { text-align: center; }
.section-header-center .mark { margin-inline: auto; }
.section-header-center .section-title,
.section-header-center .section-desc { margin-inline: auto; }

/* =========================================================
   文字リンク＋丸（ガイドライン6章）
   ========================================================= */
.link-circle {
  display: inline-flex; align-items: center; gap: 16px;
  color: var(--c-text); text-decoration: none;
}
.link-circle-text {
  padding-bottom: 2px; border-bottom: 1px solid currentColor;
  font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: 0.1em;
  transition: border-color .2s ease;
}
.circle-btn {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--c-ink); color: var(--c-white);
}
.circle-btn svg { transition: transform .2s ease; }
.link-circle:hover .circle-btn svg { transform: translateX(4px); }
.link-circle:hover .link-circle-text { border-bottom-color: transparent; }
.link-circle-light { color: var(--c-white); }
.link-circle-light .circle-btn { background: var(--c-white); color: var(--c-ink); }
.panel-terra .link-circle-light .circle-btn { color: var(--c-terra); }

/* =========================================================
   ヘッダー（浮いた白いカード）
   ========================================================= */
#site-header {
  position: fixed; z-index: 1000;
  top: var(--header-top); left: var(--gutter); right: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h); padding-inline: 32px 20px;
  background: var(--c-white); border-radius: 8px;
  box-shadow: 0 4px 20px rgba(43, 39, 36, .08);
}
.header-logo { display: flex; align-items: center; }
.logo-text { display: flex; flex-direction: column; gap: 2px; }
.logo-name { font-size: 20px; font-weight: 900; line-height: 1.3; letter-spacing: 0.08em; color: var(--c-ink); }
.logo-tag  { font-size: var(--fs-fine); line-height: 1.3; letter-spacing: 0.04em; color: var(--c-muted); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav ul { display: flex; align-items: center; gap: 28px; }
.main-nav ul a {
  font-size: 15px; font-weight: 700; line-height: 1.4; letter-spacing: 0.1em;
  color: var(--c-ink); text-decoration: none;
  border-bottom: 2px solid transparent; padding-block: 6px;
  transition: border-color .2s ease;
}
.main-nav ul a:hover { border-bottom-color: var(--c-terra); }
.nav-buttons { display: flex; gap: 8px; }
.nav-btn {
  display: inline-flex; align-items: center; height: 50px; padding-inline: 24px;
  border-radius: 999px;
  font-size: 15px; font-weight: 700; line-height: 1; letter-spacing: 0.1em;
  text-decoration: none;
  transition: background-color .2s ease, filter .2s ease;
}
.nav-btn-cta { background: var(--c-terra); color: var(--c-white); }
.nav-btn-cta:hover { filter: brightness(.9); }

.hamburger {
  display: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-ink); border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.hamburger span { display: block; width: 18px; height: 2px; background: var(--c-white); transition: transform .25s ease, opacity .25s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed; z-index: 999;
  top: calc(var(--header-top) + var(--header-h) + 8px); left: var(--gutter); right: var(--gutter);
  padding: 8px 20px 24px;
  background: var(--c-white); border-radius: 8px;
  box-shadow: 0 4px 20px rgba(43, 39, 36, .12);
}
.mobile-nav.open { display: block; }
.mobile-nav ul a {
  display: block; padding: 16px 0;
  font-size: 16px; font-weight: 700; color: var(--c-ink); text-decoration: none;
  border-bottom: 1px dashed var(--c-dash);
}
.mobile-nav .nav-cta {
  display: block; margin-top: 20px; padding: 16px; border-radius: 999px;
  background: var(--c-terra); color: var(--c-white);
  text-align: center; font-weight: 700; text-decoration: none;
}

/* =========================================================
   トップ画面（大小のタイル。左上に2×2の黒のタイル＝キャッチ）
   ========================================================= */
#hero { padding-top: var(--header-top); }
.tiles {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--tile-gap);
  padding-inline: var(--gutter);
}
.tile {
  position: relative; overflow: hidden;
  aspect-ratio: 10 / 9; border-radius: var(--r-tile);
  align-self: stretch;   /* 大きなタイルの中身で段が高くなっても、小さなタイルの下に隙間を作らない */
  display: flex; align-items: center; justify-content: center;
  background: var(--c-beige);   /* 写真が読み込めなくてもベージュのタイルが残る */
}
.tile-photo img { width: 100%; height: 100%; object-fit: cover; }
.tile-wide { grid-column: span 2; aspect-ratio: auto; }   /* 高さは同じ段の小さなタイルに合わせる */
.tile-terra   { background: var(--c-terra); color: var(--c-white); }
.tile-mustard { background: var(--c-mustard); color: var(--c-ink); }
.tile-beige   { color: var(--c-ink); }
.tile-icon { width: 40%; height: auto; }

.tile-catch {
  grid-row: 1 / span 2; grid-column: 1 / span 2;
  aspect-ratio: auto;
  flex-direction: column; align-items: flex-start; justify-content: flex-end;
  padding: calc(var(--header-h) + 32px) 48px 48px;   /* 上は浮いたヘッダーの分を空ける */
  background: var(--c-ink); color: var(--c-white);
}
.hero-sample-note {
  margin-bottom: auto; padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px;
  font-size: var(--fs-tag); line-height: 1.6; letter-spacing: 0.04em;
}
.hero-sample-note a { color: var(--c-white); }
.tile-catch :focus-visible { outline-color: var(--c-mustard); }
.hero-eyebrow { margin-top: 32px; font-size: 16px; font-weight: 700; line-height: 1.6; letter-spacing: 0.12em; color: var(--c-mustard); }
.hero-title { margin-top: 12px; font-size: var(--fs-h1); font-weight: 900; line-height: 1.5; letter-spacing: 0.06em; }
.hero-sub { margin-top: 20px; line-height: 2.0; }
.hero-links { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: 32px; }

/* 読み込み時：1枚ずつふわっと出る（動きを減らす設定では animation: none で最初から表示） */
.tile { animation: tile-in .6s cubic-bezier(.22,1,.36,1) both; }
.tile:nth-child(2) { animation-delay: .08s; }
.tile:nth-child(3) { animation-delay: .16s; }
.tile:nth-child(4) { animation-delay: .24s; }
.tile:nth-child(5) { animation-delay: .32s; }
.tile:nth-child(6) { animation-delay: .40s; }
.tile:nth-child(7) { animation-delay: .48s; }
.tile:nth-child(8) { animation-delay: .56s; }
@keyframes tile-in {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: none; }
}

/* =========================================================
   大パネル（組合概要・情報公開・お問い合わせ）
   ========================================================= */
.panel {
  position: relative;
  margin-inline: var(--gutter);
  padding-block: var(--panel-pad);
  border-radius: var(--r-tile);
}
.panel > .container { position: relative; z-index: 1; }
.panel-pale  { background: var(--c-cream); }
.panel-beige { background: var(--c-beige); }

/* 組合概要 */
.profile-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 64px; align-items: start;
}
.profile-grid .section-header { margin-bottom: 0; padding-top: 40px; }
.profile-photo { margin-top: calc(var(--panel-pad) * -1 - 80px); }   /* パネルの上端から80px上へはみ出す */
.profile-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.profile-table { margin-top: 64px; }
.profile-deco-1 { width: 56px; height: 56px; right: -20px; top: 42%; }
.profile-deco-2 { width: 28px; height: 28px; right: 28px; top: calc(42% + 48px); }

/* =========================================================
   表
   ========================================================= */
.data-table { width: 100%; border-collapse: collapse; background: var(--c-white); border-radius: 8px; overflow: hidden; }
.data-table th,
.data-table td {
  padding: 20px 24px; border-bottom: 1px dashed var(--c-dash);
  text-align: left; vertical-align: top;
  font-size: var(--fs-body); line-height: 1.9; letter-spacing: 0.06em;
}
.data-table tr:last-child th,
.data-table tr:last-child td { border-bottom: 0; }
.data-table th { width: 9em; font-weight: 700; color: var(--c-ink); }

/* =========================================================
   事業内容
   ========================================================= */
.system-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.system-card {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  padding: 40px 32px;
  background: var(--c-cream); border-radius: 8px;
  text-align: center;
}
.system-name { font-size: var(--fs-h3); font-weight: 700; line-height: 1.6; letter-spacing: 0.1em; color: var(--c-ink); }
.system-note { display: block; margin-top: 4px; font-size: var(--fs-tag); font-weight: 500; letter-spacing: 0.02em; color: var(--c-muted); }
.system-icon { flex-shrink: 0; }
.system-desc { text-align: left; font-size: 15px; line-height: 2.0; letter-spacing: 0.06em; }

.photo-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin-top: 96px; }
.photo-card {
  position: relative;
  min-height: 560px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-ink);
  color: var(--c-white); text-align: center;
}
.photo-card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.photo-card::after { content: ""; position: absolute; inset: 0; border-radius: 16px; background: var(--veil-ink); }
.photo-card-body { position: relative; z-index: 1; padding: 64px 48px; }
.photo-card-body .mark { margin-inline: auto; }
.photo-card .sub-label { color: var(--c-white); }   /* からし色は写真が明るい所で3.61:1になるため白 */
.photo-card-title { margin-top: 12px; font-size: 32px; font-weight: 900; line-height: 1.6; letter-spacing: 0.08em; }
.photo-card-list {
  display: grid; gap: 4px 32px; margin-top: 32px;
  font-size: 18px; font-weight: 700; line-height: 1.9; text-align: left;
}
.photo-card-list-2col { grid-template-columns: repeat(2, auto); justify-content: center; }
.photo-card-list li { position: relative; padding-left: 20px; }
.photo-card-list li::before {
  content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-mustard);
}
.photo-card-dl { display: grid; gap: 4px; margin-top: 32px; }
.photo-card-dl dt { margin-top: 12px; font-size: var(--fs-tag); font-weight: 700; letter-spacing: 0.1em; }
.photo-card-dl dt:first-child { margin-top: 0; }
.photo-card-dl dd { font-size: 18px; font-weight: 700; line-height: 1.8; }

/* =========================================================
   受け入れの流れ（縦1列・点線で区切る）
   ========================================================= */
.section-flow { padding-top: 0; }
.flow-list { border-top: 1px dashed var(--c-dash); }
.flow-step {
  display: flex; gap: 32px; align-items: flex-start;
  padding-block: 32px;
  border-bottom: 1px dashed var(--c-dash);
}
.flow-num {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--c-ink); color: var(--c-white);
  font-family: var(--font-en); font-size: 16px; font-weight: 800; letter-spacing: 0.04em;
}
.flow-step h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.6; letter-spacing: 0.1em; padding-top: 8px; color: var(--c-ink); }
.flow-step p { margin-top: 4px; }

/* =========================================================
   情報公開（ベージュの大パネル＋白いカード）
   ========================================================= */
.section-disclosure { padding-top: 0; }
.doc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 880px; }
.doc-card { padding: 32px; border-radius: 16px; background: var(--c-white); }
.doc-en { font-family: var(--font-en); font-size: var(--fs-tag); font-weight: 700; line-height: 1.2; letter-spacing: 0.04em; color: var(--c-terra); }
.doc-title { margin-top: 24px; font-size: var(--fs-h3); font-weight: 700; line-height: 1.6; letter-spacing: 0.1em; color: var(--c-ink); }
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; }
.doc-tag {
  padding: 2px 14px; border-radius: 999px;
  background: var(--c-cream); color: var(--c-ink);
  font-family: var(--font-en); font-size: var(--fs-tag); font-weight: 700; line-height: 1.6; letter-spacing: 0.06em;
}
.doc-note { font-size: var(--fs-tag); line-height: 1.6; letter-spacing: 0.04em; color: var(--c-muted); }

/* =========================================================
   お問い合わせ（テラコッタの大パネル＋フォーム）
   ========================================================= */
.panel-terra { background: var(--c-terra); color: var(--c-white); }
.panel-terra .mark-light { background: var(--c-white); }   /* からし色はテラコッタの上で沈むため白 */
.panel-terra .sub-label,
.panel-terra .section-title { color: var(--c-white); }
.panel-terra :focus-visible { outline-color: var(--c-white); }
.contact-cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 960px; margin-inline: auto;
}
.contact-col { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 40px; text-align: center; }
.contact-col + .contact-col { border-left: 1px dashed rgba(255, 255, 255, .6); }
.contact-icon { margin-bottom: 8px; }
.contact-col h3 { font-size: 22px; font-weight: 900; line-height: 1.6; letter-spacing: 0.1em; }
.contact-phone { font-family: var(--font-en); font-size: 36px; font-weight: 800; line-height: 1.2; letter-spacing: 0.04em; }
.contact-hours { font-size: var(--fs-tag); line-height: 1.7; letter-spacing: 0.04em; }
.contact-form-text { line-height: 2.0; }
.contact-col .link-circle { margin-top: 12px; }
.contact-deco-1 { width: 48px; height: 48px; right: 72px; top: -24px; }
.contact-deco-2 { width: 24px; height: 24px; right: 48px; top: 20px; }

.contact-form-area { padding-block: 96px var(--sp-section); }
.form-mock-notice {
  margin-bottom: 32px; padding: 12px 16px; border-radius: 8px;
  background: var(--c-cream);
  font-size: var(--fs-tag); line-height: 1.7; letter-spacing: 0.04em;
}
.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; color: var(--c-ink); }
.required { margin-left: 8px; font-size: var(--fs-tag); font-weight: 500; color: var(--c-muted); }
.form-group input,
.form-group textarea {
  width: 100%; padding: 14px 16px;
  font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1.6; letter-spacing: 0;
  color: var(--c-text); background: var(--c-white);
  border: 1px solid var(--c-line); border-radius: 8px;
}
.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: var(--fs-tag); line-height: 1.7; }
.form-consent input { margin-top: 5px; }
.btn-submit {
  display: block; width: 100%; min-height: 60px; border: 0; border-radius: 999px;
  background: var(--c-ink); color: var(--c-white);
  font-family: inherit; font-size: 16px; font-weight: 700; letter-spacing: 0.1em;
  cursor: not-allowed;
}

/* =========================================================
   フッター（白地）
   ========================================================= */
#site-footer { border-top: 1px dashed var(--c-dash); padding-block: 72px 48px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-org-name { font-size: 22px; font-weight: 900; letter-spacing: 0.08em; color: var(--c-ink); word-break: keep-all; }
.footer-org-detail { margin-top: 16px; font-size: var(--fs-tag); line-height: 1.9; letter-spacing: 0.04em; }
.footer-col h4 { font-size: 15px; font-weight: 700; margin-bottom: 12px; letter-spacing: 0.06em; color: var(--c-ink); }
.footer-col li { position: relative; padding-left: 16px; font-size: var(--fs-tag); line-height: 2; letter-spacing: 0.04em; }
.footer-col li::before {
  content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-terra);
}
.footer-col li:nth-child(3n+2)::before { background: var(--c-mustard); }
.footer-col li:nth-child(3n)::before   { background: var(--c-ink); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px;
  margin-top: 56px; padding-top: 24px;
  border-top: 1px dashed var(--c-dash);
  font-size: var(--fs-fine); color: var(--c-muted); letter-spacing: 0.04em;
}
.footer-copyright { margin-left: auto; }
.footer-demo-note { margin-top: 24px; font-size: var(--fs-fine); line-height: 1.7; color: var(--c-muted); letter-spacing: 0.04em; }

/* =========================================================
   フェードイン（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; }

/* =========================================================
   〜1199px：ヘッダーのナビを詰める
   ========================================================= */
@media (max-width: 1199px) {
  .logo-tag { display: none; }
  .main-nav { gap: 20px; }
  .main-nav ul { gap: 18px; }
  .nav-btn { padding-inline: 16px; }
  .tile-catch { padding-inline: 36px; }
}

/* =========================================================
   タブレット以下（〜1023px）：タイル2列・大きなタイルは横いっぱい
   ========================================================= */
@media (max-width: 1023px) {
  #site-header { padding-inline: 20px 14px; }
  .main-nav { display: none; }
  .hamburger { display: flex; }

  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-hide-tb { display: none; }
  .tile-catch { grid-row: auto; grid-column: 1 / -1; padding: calc(var(--header-h) + 28px) 32px 40px; }
  .tile-wide { aspect-ratio: 20 / 9; }

  .profile-grid { grid-template-columns: 1fr; gap: 40px; }
  .profile-grid .section-header { order: 2; padding-top: 0; }
  .profile-photo { order: 1; margin-top: calc(var(--panel-pad) * -1 - 48px); }
  .profile-table { margin-top: 48px; }

  .system-cards { gap: 12px; }
  .system-card { padding: 32px 16px; }
  .photo-cards { grid-template-columns: 1fr; gap: 24px; margin-top: 64px; }
  .photo-card { min-height: 480px; }

  .contact-cols { grid-template-columns: 1fr; max-width: 560px; }
  .contact-col { padding: 32px 0; }
  .contact-col + .contact-col { border-left: 0; border-top: 1px dashed rgba(255, 255, 255, .6); }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
}

/* =========================================================
   スマホ（〜767px）
   ========================================================= */
@media (max-width: 767px) {
  body { line-height: 2.0; letter-spacing: 0.08em; }
  .logo-name { font-size: 17px; }

  .tile-catch { padding: calc(var(--header-h) + 24px) 20px 32px; }
  .hero-eyebrow { margin-top: 24px; font-size: 15px; }
  .hero-links { flex-direction: column; gap: 16px; margin-top: 28px; }
  .circle-btn { width: 44px; height: 44px; }

  .sub-label { font-size: 15px; }
  /* 共通ルール0-8：スマホでは2行以上の説明文は左揃え（見出し・短い文は中央のまま） */
  .section-header-center .section-desc { text-align: left; }

  .profile-deco-1 { width: 36px; height: 36px; right: -8px; top: auto; bottom: 40px; }
  .profile-deco-2 { width: 18px; height: 18px; right: 22px; top: auto; bottom: 22px; }
  .profile-photo { margin-top: calc(var(--panel-pad) * -1 - 32px); }

  .data-table th,
  .data-table td { display: block; width: auto; padding: 0 16px; border: 0; }
  .data-table th { padding-top: 16px; }
  .data-table td { padding-block: 4px 16px; border-bottom: 1px dashed var(--c-dash); }
  .data-table tr:last-child td { border-bottom: 0; }

  .system-cards { grid-template-columns: 1fr; }
  .system-card { padding: 32px 24px; gap: 16px; }
  .photo-card { min-height: 0; }
  .photo-card-body { padding: 56px 24px; }
  .photo-card-title { font-size: 26px; }
  .photo-card-list,
  .photo-card-dl dd { font-size: 16px; }
  .photo-card-list-2col { gap: 4px 20px; }

  .flow-step { gap: 20px; padding-block: 24px; }
  .flow-num { width: 44px; height: 44px; font-size: 15px; }
  .flow-step h3 { padding-top: 6px; }

  .doc-cards { grid-template-columns: 1fr; gap: 12px; }
  .doc-card { padding: 24px; }
  .doc-title { margin-top: 16px; }

  .contact-col h3 { font-size: 19px; }
  .contact-phone { font-size: 30px; }
  .contact-deco-1 { width: 32px; height: 32px; right: 44px; top: -16px; }
  .contact-deco-2 { width: 16px; height: 16px; right: 28px; top: 14px; }
  .contact-form-area { padding-block: 64px var(--sp-section); }

  .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; }
}
