@charset "UTF-8";
/* IPI (THAILAND) CO., LTD. — corporate site
   正本：05_Projects/IPI/DESIGN.md（2026-07-29確定）／文言：CONTENTS.md
   === BASE === / === COMPONENTS === / === UTILITIES === の3層 */

/* ===================== BASE ===================== */

:root {
  /* DESIGN.md §4 */
  --accent:       #043464;
  --ink:          #1A1A1A;
  --paper:        #FFFFFF;
  --panel:        #F1F4F8;
  --line:         #E8EDF2;

  /* 派生（グレー2階調＋パネル上の罫線） */
  --muted:        #6E7A88;
  --disabled:     #B7C0CB;
  --line-panel:   #DCE3EC;

  /* 写真プレースホルダのグラデーション */
  --grad-mid:     #0A3F73;
  --grad-end:     #6D7F94;

  --font-display: "Archivo", "Helvetica Neue", sans-serif;
  --font-body:    "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, Menlo, monospace;

  /* 幅ルール（共通デザインルール §7） */
  --gutter:       clamp(24px, 5vw, 96px);  /* 外枠の左右余白 */
  --inner:        1140px;                  /* 本文ゾーン */
  --measure:      38em;                    /* 文章 */
  --label-col:    301px;                   /* 左ラベル柱 */

  --ease:         cubic-bezier(0.215, 0.61, 0.355, 1);
  --header-h:     76px;
}

html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-break: strict;
  overflow-wrap: anywhere;
}

* { box-sizing: border-box; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 180ms var(--ease);
}
a:hover { opacity: 0.6; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

img { max-width: 100%; height: auto; }

h1, h2, h3, p, dl, dd { margin: 0; }

/* タイポグラフィ（DESIGN.md §5） */
.t-display {
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.t-en-head {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--accent);
}
.t-ja-head {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--accent);
}
.t-body {
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  text-wrap: pretty;
}
.t-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.t-sub {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

/* モーション（DESIGN.md §7・看板演出は弧形リビール1つだけ） */
@keyframes arcReveal {
  from { clip-path: ellipse(70% 90% at -30% 130%); }
  to   { clip-path: ellipse(220% 240% at -30% 130%); }
}
@keyframes scrollNudge {
  0%, 100% { transform: translateY(0); opacity: .55; }
  50%      { transform: translateY(10px); opacity: 1; }
}

[data-arc-reveal] { animation: arcReveal 1.2s var(--ease) both; }

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-arc-reveal] { animation: none !important; clip-path: none !important; }
  .scroll-hint__line { animation: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ===================== COMPONENTS ===================== */

/* --- 背景の下地レイヤー（弧モチーフ・全ページ共通） --- */
.page { position: relative; overflow-x: hidden; background: var(--paper); }

.bg-arc {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-arc span {
  position: absolute;
  width: 150vw;
  height: 150vw;
  left: -35vw;
  top: 12vh;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.04;
}

/* --- ヘッダー --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(120%) blur(6px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 var(--gutter);
  height: var(--header-h);
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink);
  white-space: nowrap;
}

.gnav { display: none; align-items: center; gap: clamp(20px, 3vw, 44px); }
.gnav__link {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.gnav__link[aria-current="page"] { color: var(--accent); }

.lang {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: clamp(12px, 2vw, 24px);
  border-left: 1px solid var(--line);
}
.lang__item {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--disabled);
}
.lang__item--current { font-weight: 600; color: var(--accent); }

/* --- SPメニュー（共通デザインルール §7.5） --- */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 24px;
  height: 1px;
  margin: 0 auto;
  background: var(--accent);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.spmenu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 19;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: clamp(32px, 8vw, 64px) var(--gutter);
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.spmenu.is-open { opacity: 1; visibility: visible; }
.spmenu a {
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  border-bottom: 1px solid var(--line);
}
.spmenu .lang { margin-top: 32px; padding-left: 0; border-left: 0; border-top: 0; }

/* --- レイアウト --- */
.main { position: relative; z-index: 1; }

.section {
  padding: clamp(96px, 13vw, 160px) var(--gutter) clamp(80px, 10vw, 120px);
}
.section--panel { background: var(--panel); }
.section--panel .points__item { border-color: var(--line-panel); }
.section--dark {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: var(--paper);
}

.l-inner { max-width: var(--inner); margin: 0 auto; }
.l-text  { max-width: var(--measure); }

/* 左ラベル柱＋右コンテンツ（共通デザインルール §7・会社概要/沿革/各セクション） */
.l-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 32px);
  align-items: start;
}

/* --- 弧の下線（MORE / VIEW ALL リンク） --- */
.more { display: inline-flex; flex-direction: column; gap: 6px; align-self: flex-start; }
.more__label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.arc-line {
  display: block;
  width: 96px;
  height: 7px;
  border-top: 1px solid var(--accent);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.arc-line--sm { width: 72px; opacity: .5; }
.arc-line--hero {
  width: 132px;
  height: 10px;
  margin: clamp(24px, 3vw, 40px) 0 clamp(20px, 2.5vw, 32px);
  opacity: .5;
}

/* --- 写真プレースホルダ（撮影後は .ph を <img> に差し替える） --- */
.ph {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(138deg, var(--accent) 0%, var(--grad-mid) 46%, var(--grad-end) 100%);
}
.ph--flip { background: linear-gradient(212deg, var(--accent) 0%, var(--grad-mid) 48%, var(--grad-end) 100%); }
.ph__arc {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 50%;
}
.ph__arc--faint { border-color: rgba(255, 255, 255, 0.10); }
.ph__meta {
  position: absolute;
  right: clamp(20px, 3vw, 40px);
  bottom: clamp(18px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}
.ph__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
}
.ph__label--dim { color: rgba(255, 255, 255, 0.44); }
.ph__label--bl {
  position: absolute;
  left: clamp(16px, 2vw, 28px);
  bottom: clamp(14px, 2vw, 24px);
  color: rgba(255, 255, 255, 0.66);
  letter-spacing: 0.1em;
}
.ph__label--tr {
  position: absolute;
  right: clamp(20px, 3vw, 40px);
  top: clamp(18px, 3vw, 28px);
  color: rgba(255, 255, 255, 0.44);
}

/* --- ヒーロー（トップ） --- */
.hero { position: relative; padding: 0 0 clamp(64px, 9vw, 120px); }
.hero__stage { position: relative; padding-left: clamp(0px, 5vw, 96px); }
.hero__media { aspect-ratio: 4 / 3; }
.hero__media .ph__arc:nth-of-type(1) { width: 118%; height: 260%; left: -34%; top: 6%; }
.hero__media .ph__arc:nth-of-type(2) { width: 86%;  height: 200%; left: -8%;  top: 30%; }
/* ヒーローの仮ラベルは白ボックスの重なり分だけ上げる（写真差し替え後は不要） */
.hero__media .ph__meta { bottom: calc(40px + clamp(18px, 3vw, 32px)); }

.hero__box {
  position: relative;
  margin-top: -40px;
  margin-left: clamp(0px, 4vw, 72px);
  max-width: 880px;
  background: var(--paper);
  padding: clamp(32px, 4vw, 64px) clamp(24px, 4vw, 64px) clamp(28px, 3vw, 48px);
}
.hero__eyebrow {
  margin-bottom: clamp(20px, 2.4vw, 32px);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.scroll-hint {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  padding: clamp(24px, 4vw, 48px) var(--gutter) 0;
}
.scroll-hint__label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--ink);
}
.scroll-hint__line {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(var(--accent), rgba(4, 52, 100, 0));
  animation: scrollNudge 2.4s var(--ease) infinite;
}

/* --- 下層ページの見出し帯（全幅） --- */
.page-head { padding: 0 0 clamp(72px, 9vw, 120px); }
.page-head__band {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 4.6;
  min-height: 260px;
  overflow: hidden;
}
.page-head__band .ph__arc:nth-of-type(1) { width: 118%; height: 420%; left: -34%; top: 6%; }
.page-head__band .ph__arc:nth-of-type(2) { width: 86%;  height: 320%; left: -8%;  top: 30%; }
.page-head__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: 0 var(--gutter) clamp(32px, 4vw, 56px);
}
.page-head__eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.72);
}
.page-head__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(14px, 2vw, 28px);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--paper);
}
.page-head__title span {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.8);
}

/* --- 事業リスト（トップ S3） --- */
.biz-list { display: flex; flex-direction: column; }
.biz-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(36px, 4vw, 52px) 0;
  border-bottom: 1px solid var(--line);
}
.biz-item:first-child { padding-top: 0; }
.biz-item:last-of-type { padding-bottom: 0; border-bottom: 0; }
.biz-item__no {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding-top: 6px;
}
.biz-item__ja { margin-bottom: 20px; color: var(--ink); }
.biz-item .t-en-head { margin-bottom: 6px; }

/* --- 事業インデックス（事業内容ページ） --- */
.biz-index {
  max-width: var(--inner);
  margin: clamp(48px, 6vw, 80px) auto 0;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
}
.biz-index a { display: flex; align-items: baseline; gap: 12px; }
.biz-index__no {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.biz-index__ja { font-size: 13px; font-weight: 500; letter-spacing: 0.12em; color: var(--ink); }

/* --- 事業詳細（事業内容ページ） --- */
.biz-detail__label { display: flex; flex-direction: column; gap: 14px; }
.biz-detail .t-en-head { margin-bottom: 8px; }
.biz-detail__ja { margin-bottom: clamp(28px, 3.5vw, 44px); }
.biz-detail__lead { margin-bottom: 28px; }

.biz-figure {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  margin-top: clamp(48px, 6vw, 80px);
}
.biz-figure .ph { aspect-ratio: 3 / 2; }
.biz-figure .ph .ph__arc { width: 120%; height: 260%; left: -32%; top: 10%; border-color: rgba(255, 255, 255, 0.18); }
.biz-figure .ph--flip .ph__arc { left: auto; right: -32%; }

.points { display: flex; flex-direction: column; }
.points__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.points__item:first-child { padding-top: 0; }
.points__item:last-child { padding-bottom: 0; border-bottom: 0; }
.points dt {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
}

/* --- お知らせ --- */
.news-list { display: flex; flex-direction: column; }
.news-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: clamp(22px, 2.5vw, 30px) 0;
  border-bottom: 1px solid var(--line);
}
.news-row:first-child { padding-top: 0; }
.news-row:last-of-type { padding-bottom: 0; border-bottom: 0; }
.news-row__date {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.news-row__cat { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; color: var(--accent); }

/* --- 代表挨拶（会社情報） --- */
.message__label { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); }
.message__portrait { max-width: 260px; aspect-ratio: 3 / 4; background: linear-gradient(150deg, var(--accent) 0%, var(--grad-mid) 52%, var(--grad-end) 100%); }
.message__portrait .ph__arc { width: 180%; height: 140%; left: -46%; top: 22%; border-color: rgba(255, 255, 255, 0.18); }
.message__portrait .ph__label--bl { left: 16px; bottom: 14px; color: rgba(255, 255, 255, 0.6); }
.message__draft { padding: clamp(24px, 3vw, 36px); background: var(--panel); }
.message__draft-tag {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.message__sign { display: flex; flex-direction: column; gap: 8px; margin-top: clamp(32px, 4vw, 56px); }
.message__role {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink);
}
.message__name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}

/* --- 定義リスト（会社概要・連絡先） --- */
.deflist { display: flex; flex-direction: column; }
.deflist__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: clamp(20px, 2.4vw, 28px) 0;
  border-bottom: 1px solid var(--line);
}
.deflist__row:first-child { padding-top: 0; }
.deflist__row:last-child { padding-bottom: 0; border-bottom: 0; }
.deflist dt {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  line-height: 1.9;
}
.deflist dd { font-size: 16px; line-height: 1.9; letter-spacing: 0.03em; }
.deflist dd.is-num { font-family: var(--font-display); letter-spacing: 0.06em; }
.deflist dd.is-todo { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.06em; color: var(--muted); }
.section--panel .deflist__row { border-color: var(--line-panel); }

/* --- 沿革 --- */
.history { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.history li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: clamp(20px, 2.4vw, 28px) 0;
  border-bottom: 1px solid var(--line);
}
.history li:first-child { padding-top: 0; }
.history li:last-child { padding-bottom: 0; border-bottom: 0; }
.history__year {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  line-height: 1.9;
}
.history__body { font-size: 16px; line-height: 1.9; letter-spacing: 0.03em; }

/* --- お知らせ一覧（Newsページ） --- */
.news-cat { display: flex; flex-direction: column; }
.news-cat a {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.news-cat a:last-child { border-bottom: 1px solid var(--line); }
.news-cat a[aria-current="true"] { font-weight: 600; color: var(--accent); }
.news-cat__count {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.news-archive { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.news-archive li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: clamp(24px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
}
.news-archive li:first-child { padding-top: 0; }
.news-more {
  margin-top: clamp(28px, 3.5vw, 40px);
  padding: 14px 24px;
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}
.news-more:hover { background: var(--accent); color: var(--paper); }
.news-more[hidden] { display: none; }

.news-archive__date {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink);
}

/* --- 地図枠（お問い合わせ） --- */
.map-frame {
  aspect-ratio: 16 / 7;
  margin-top: clamp(32px, 4vw, 48px);
  background: linear-gradient(138deg, var(--accent) 0%, var(--grad-mid) 48%, var(--grad-end) 100%);
}
.map-frame .ph__arc:nth-of-type(1) { width: 120%; height: 300%; left: -30%; top: 8%; border-color: rgba(255, 255, 255, 0.18); }
.map-frame .ph__arc:nth-of-type(2) { width: 84%;  height: 220%; left: -4%;  top: 34%; }
.map-frame__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: clamp(20px, 3vw, 32px);
}
.map-frame__tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.72);
}
.map-frame__name { font-size: 16px; line-height: 1.9; letter-spacing: 0.03em; color: var(--paper); }
.map-frame__note { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.5); }

/* --- フォーム --- */
.form { display: flex; flex-direction: column; gap: clamp(28px, 3.5vw, 40px); max-width: 720px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.field__req,
.field__opt {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.field__req { font-weight: 600; color: var(--accent); }
.field__opt { font-weight: 500; color: var(--muted); }
.field input,
.field textarea {
  width: 100%;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line-panel);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.field textarea { resize: vertical; }
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(20px, 3vw, 32px);
}
.form__submit {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 22px 34px;
  background: var(--accent);
  border: none;
  color: var(--paper);
  font-family: var(--font-body);
  cursor: pointer;
  transition: opacity 180ms var(--ease);
}
.form__submit:hover { opacity: 0.82; }
.form__submit span:first-child { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; }
.form__submit span:last-child { font-family: var(--font-display); font-size: 13px; font-weight: 600; }
.form__note { max-width: 32em; font-size: 13px; line-height: 1.9; letter-spacing: 0.03em; color: var(--ink); }
.form__error {
  max-width: 38em;
  padding: 16px 18px;
  background: var(--paper);
  border-left: 3px solid var(--accent);
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.form__sent {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(28px, 4vw, 44px);
  background: var(--paper);
  max-width: 720px;
}
.form__sent-tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.form__again {
  align-self: flex-start;
  margin-top: 8px;
  padding: 14px 24px;
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}
.form__again:hover { background: var(--accent); color: var(--paper); }
[hidden] { display: none !important; }

/* 下層ページの導入文。幅ルール §7 に従い文章は 38em に絞る
   （デザイン出力は 1140px 全幅だったが、1行55字超になるため実装で是正） */
.page-lead { margin-top: clamp(40px, 5vw, 64px); padding: 0 var(--gutter); }

/* --- 規約ページ（プライバシーポリシー等） --- */
.legal__head { display: flex; flex-direction: column; gap: 16px; }
.legal__body { display: flex; flex-direction: column; gap: 20px; }
.legal__list {
  margin: 0;
  padding-left: 1.2em;
  max-width: var(--measure);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
}
.legal__list li { margin-bottom: 6px; }
.legal__list li::marker { color: var(--accent); }
.legal__date {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* --- CTA（濃紺セクション） --- */
.cta__arc {
  position: absolute;
  width: 120%;
  height: 320%;
  left: 34%;
  top: -60%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}
.cta__grid {
  position: relative;
  max-width: var(--inner);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: end;
}
.cta__title { margin-bottom: clamp(24px, 3vw, 36px); color: var(--paper); line-height: 1.05; }
.cta__lead { color: rgba(255, 255, 255, 0.86); }
.cta__btn {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 18px;
  padding: 22px 34px;
  background: var(--paper);
  color: var(--accent);
  white-space: nowrap;
  transition: background 180ms var(--ease), opacity 180ms var(--ease);
}
.cta__btn:hover { background: var(--panel); opacity: 1; }
.cta__btn span:first-child { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; }
.cta__btn span:last-child { font-family: var(--font-display); font-size: 13px; font-weight: 600; }

/* --- フッター --- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 72px) var(--gutter) 40px;
}
.site-footer__grid {
  max-width: var(--inner);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.site-footer__org { display: flex; flex-direction: column; gap: 12px; }
.site-footer__name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.site-footer__addr { font-size: 13px; line-height: 1.9; letter-spacing: 0.03em; color: var(--ink); }
.site-footer__links { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.site-footer__links a { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; }
.site-footer__copy {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ===================== UTILITIES ===================== */

/* タップ領域44px確保（受け入れ条件#2）。
   見た目を動かさずに当たり判定だけ広げる。 */
.brand,
.gnav__link,
.biz-index a,
.site-footer__links a,
.deflist dd a,
.more {
  position: relative;
}
.brand::after,
.gnav__link::after,
.biz-index a::after,
.site-footer__links a::after,
.deflist dd a::after,
.more::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  min-height: 44px;
}

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

/* ===================== BREAKPOINTS =====================
   モバイルファースト・768pxで切り替え（DESIGN.md 実装マッピング）
   claude.ai/design の出力にはブレークポイントが無いため、
   下記は全て実装側で追加した規定。デスクトップの見た目は出力に一致させる。 */

@media (min-width: 768px) {
  .burger, .spmenu { display: none; }
  .gnav { display: flex; }

  .l-aside {
    grid-template-columns: minmax(0, var(--label-col)) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 80px);
  }

  .hero__media { aspect-ratio: 16 / 8.4; }

  .news-row {
    grid-template-columns: 128px 88px minmax(0, 1fr);
    gap: clamp(12px, 2vw, 28px);
    align-items: baseline;
  }

  .biz-figure { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
  .biz-figure--reverse { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }

  .cta__grid { grid-template-columns: minmax(0, 1fr) auto; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr) auto; }

  .deflist__row {
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    gap: clamp(16px, 3vw, 40px);
  }
  .deflist--contact .deflist__row { grid-template-columns: minmax(0, 160px) minmax(0, 1fr); }

  .history li {
    grid-template-columns: minmax(0, 168px) minmax(0, 1fr);
    gap: clamp(16px, 3vw, 40px);
  }

  .news-archive li {
    grid-template-columns: minmax(0, 148px) minmax(0, 92px) minmax(0, 1fr);
    gap: clamp(12px, 2vw, 28px);
    align-items: baseline;
  }
}
