/* ==========================================================================
   コニーシステム 学会サポート（Konniesystem Conference Support）— 学術集会の運営支援サイト
   意匠: 学術誌の紙面。白い紙にネイビーの墨、明朝の見出し、細い罫、EB Garamond の数字。
   色は実際の学会サイトのサムネイルに持たせ、サービスごとに差し色を1色ずつ置く。
   ヘッダーのロゴは AIラボ・ホームページ製作所と同じ書体・配色の英文1行「Konniesystem Conference Support」（EB Garamond italic / 紺 #000080 / 赤い K）。
   ページ: index（トップ）/ website / registration / participation / works / company
   ========================================================================== */

:root {
  --paper: #ffffff;
  --ink: #1e1e1c;
  --ink-2: #45443f;
  --muted: #75736a; /* 補足・ラベル（白地で 4.75:1。11px の文字でも 4.5:1 を満たす。2026-11-17 に #7a786f＝4.43:1 から濃くした） */
  --navy: #1b2a4a;
  --navy-hover: #2c3f6b;
  --navy-tint: #eef1f6;
  --line: rgba(27, 42, 74, 0.16);
  --line-soft: rgba(27, 42, 74, 0.1);
  --line-strong: rgba(27, 42, 74, 0.34);
  --brand-navy: #000080;
  --brand-red: #c62828;

  /* サービスの差し色（白地・目次の地 #fbfaf7・目次のホバー #f3efe6 のどれでも 4.5:1 以上の文字色として使える濃さ） */
  --ac-1: #94621b; /* 01 学会ホームページ制作: 金茶（2026-11-17 に #a86f1f＝白地 4.24:1 から濃くした） */
  --ac-2: #22786f; /* 02 演題登録・査読: 青磁（2026-11-17 に #237a73＝目次のホバーの地で 4.46:1 から、わずかに濃くした） */
  --ac-3: #7a4e8a; /* 03 事前参加登録: 葡萄 */
  --ac: var(--navy);

  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --latin: "EB Garamond", Georgia, serif;

  --w: 1120px;
  /* viewport-fit=cover なので、横向きの iPhone では切り欠き（safe-area）より内側に寄せる */
  --gutter: max(clamp(20px, 5vw, 56px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --header-h: 68px;

  --z-totop: 30;
  --z-menu: 40;
  --z-header: 50;
  --z-skip: 60;

  --shadow-1: 0 1px 2px rgba(27, 42, 74, 0.06), 0 12px 28px -16px rgba(27, 42, 74, 0.22);
  --shadow-2: 0 3px 6px rgba(27, 42, 74, 0.08), 0 28px 56px -22px rgba(27, 42, 74, 0.34);
}
.page-website { --ac: var(--ac-1); }
.page-registration { --ac: var(--ac-2); }
.page-participation { --ac: var(--ac-3); }

/* --------------------------------------------------------------------------
   基礎
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.9;
  font-feature-settings: "palt";
  line-break: strict;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  text-wrap: balance;
  word-break: auto-phrase;
}
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
small { font-size: inherit; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--navy); color: #f7f5ef; }

.wrap { width: min(var(--w), calc(100% - 2 * var(--gutter))); margin-inline: auto; }

.num, .latin {
  font-family: var(--latin);
  font-variant-numeric: lining-nums tabular-nums;
}

.eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.eyebrow.accent { color: var(--ac); font-weight: 500; }

.label {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.fine {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: var(--z-skip);
  padding: 10px 18px;
  background: var(--navy);
  color: #fff;
  transform: translateY(-180%);
}
.skip:focus { transform: none; }

/* --------------------------------------------------------------------------
   ヘッダー: 画面上部に固定。姉妹サイトと同じロゴ表記
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -18px rgba(27, 42, 74, 0.28);
}
.header-inner {
  position: relative;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ロゴ: 姉妹サイトと同じ書き方の英文1行「Konniesystem Conference Support」（EB Garamond italic / 紺 #000080 / 赤い K）。
   大きさは .brand の font-size だけで変える。320px 幅でもハンバーガーと並ぶよう vw で縮める */
.brand {
  flex: none;
  display: inline-flex;
  align-items: baseline;
  font-size: clamp(17px, 5.4vw, 1.3rem);
  line-height: 1;
  color: var(--brand-navy);
  white-space: nowrap;
}
.brand-logo {
  font-family: var(--latin);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.brand-k { font-size: 1.45em; color: var(--brand-red); }

/* 1段目: サービス（メガメニューを開くボタン）・制作実績・会社概要・お問い合わせ */
.global-nav > ul { display: flex; align-items: center; gap: 30px; }
.global-nav > ul > li > a,
.nav-parent {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.15s ease-out;
}
.global-nav > ul > li > a:hover,
.nav-parent:hover { color: var(--navy); }
/* 下線は左から書かれ、離れると右へ抜ける */
.global-nav > ul > li > a:not(.pill)::after,
.nav-parent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  border-top: 1px solid var(--navy);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.2s ease-out;
}
.global-nav > ul > li > a:not(.pill):hover::after,
.global-nav > ul > li > a:not(.pill)[aria-current]::after,
.nav-parent:hover::after,
.nav-mega.is-open .nav-parent::after,
.nav-mega:has([aria-current]) .nav-parent::after { transform: scaleX(1); transform-origin: left center; }
.global-nav > ul > li > a[aria-current],
.nav-mega.is-open .nav-parent,
.nav-mega:has([aria-current]) .nav-parent { color: var(--navy); }
/* 開閉の印（下向きの山形。開くと上向き）。上下のずらしも transform で行い、レイアウトを動かさない */
.nav-caret {
  width: 6px;
  height: 6px;
  border-right: 1.25px solid currentColor;
  border-bottom: 1.25px solid currentColor;
  transform: translateY(-1.5px) rotate(45deg);
  transition: transform 0.2s ease-out;
}
.nav-mega.is-open .nav-caret { transform: translateY(1.5px) rotate(-135deg); }

.global-nav a.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  transition: background-color 0.15s ease-out, color 0.15s ease-out, border-color 0.15s ease-out;
}
.global-nav a.pill:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* サービスのメガメニュー: 3つのサービスを、差し色の罫と一言の説明つきで並べる。
   1001px 以上はヘッダーの下に画面幅いっぱいの面として開き（基準は sticky のヘッダー）、
   1000px 以下はハンバーガーの中に「サービス」の小見出しと3行のリンクとして常に出す */
.mega-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 3fr);
  gap: clamp(24px, 3vw, 48px);
  padding: 34px 0 38px;
}
.mega-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.mega-lead { margin-top: 10px; font-size: 12.5px; line-height: 1.85; color: var(--muted); }
.mega .mega-all { margin-top: 18px; font-size: 12.5px; white-space: nowrap; }
.mega-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.mega-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px 20px 18px;
  border-top: 2px solid var(--ac);
  transition: background-color 0.15s ease-out;
}
.mega-link:hover, .mega-link[aria-current] { background: rgba(27, 42, 74, 0.04); }
.mega-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.mega-desc { margin-top: 8px; font-size: 12.5px; line-height: 1.8; color: var(--ink-2); }
.mega-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--navy);
}
.mega-more .arrow { font-family: var(--latin); font-size: 15px; transition: transform 0.18s ease-out; }
.mega-link:hover .mega-more .arrow { transform: translateX(3px); }
/* 1001〜1199px は列が狭いので、サービス名が1行に収まるよう詰める */
@media (min-width: 1001px) and (max-width: 1199px) {
  .mega-inner { grid-template-columns: minmax(0, 0.8fr) minmax(0, 3fr); }
  .mega-link { padding-inline: 14px; }
  .mega-name { font-size: 16px; letter-spacing: 0.02em; }
}

@media (min-width: 1001px) {
  .header-inner { position: static; }
  .mega {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 50px -34px rgba(27, 42, 74, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0s linear 0.2s;
  }
  /* JS が無いときは、マウスを乗せる・フォーカスするだけで開く */
  .nav-mega.is-open .mega,
  html:not(.js) .nav-mega:hover .mega,
  html:not(.js) .nav-mega:focus-within .mega {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0s;
  }
}

/* ハンバーガー（1000px 以下だけ） */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border-radius: 50%;
  transition: background-color 0.15s ease-out;
}
.nav-toggle:hover { background: var(--navy-tint); }
.nav-toggle-line {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.2s ease-out;
}
.nav-toggle-line:nth-child(1) { top: 18px; }
.nav-toggle-line:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) { transform: translateY(3.5px) rotate(24deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) { transform: translateY(-3.5px) rotate(-24deg); }

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .js .global-nav {
    position: absolute;
    top: 100%;
    left: calc(-1 * var(--gutter));
    right: calc(-1 * var(--gutter));
    z-index: var(--z-menu);
    padding: 6px var(--gutter) 18px;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--paper);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 24px 40px -28px rgba(27, 42, 74, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0s linear 0.2s;
  }
  .js .global-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0s;
  }
  .global-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .global-nav > ul > li + li { border-top: 1px solid var(--line-soft); }
  .global-nav > ul > li > a { display: block; padding: 14px 4px; font-size: 15px; white-space: normal; }
  .global-nav > ul > li > a:not(.pill)::after { content: none; }
  .global-nav > ul > li > a[aria-current] { font-weight: 700; }
  .global-nav > ul > li.nav-cta { padding-top: 14px; border-top: 0; }
  /* サービスはボタンを隠し、小見出しの下に3つのリンクを常に並べる */
  .nav-parent { display: none; }
  .mega .wrap { width: auto; }
  .mega-inner { display: block; padding: 14px 4px 4px; }
  .mega-title { font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: 0.14em; color: var(--muted); }
  .mega-lead, .mega .mega-all, .mega-desc, .mega-more { display: none; }
  .mega-list { display: block; margin-top: 2px; }
  .mega-link { flex-direction: row; align-items: center; gap: 12px; padding: 11px 0; border-top: 0; }
  .mega-link:hover, .mega-link[aria-current] { background: none; }
  .mega-link::before { content: ""; flex: none; width: 12px; border-top: 2px solid var(--ac); }
  .mega-name { font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: 0.06em; color: var(--ink-2); }
  .mega-link[aria-current] .mega-name { font-weight: 700; color: var(--navy); }
  .global-nav a.pill { display: flex; justify-content: center; }
  html.menu-open { overflow: hidden; }
}

/* --------------------------------------------------------------------------
   ボタン・リンク
   -------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 10px 30px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 999px;
  transition: background-color 0.15s ease-out, transform 0.15s ease-out;
}
.button:hover { background: var(--navy-hover); transform: translateY(-1px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--navy);
  border-bottom: 1px solid var(--line-strong);
  transition: opacity 0.15s ease-out;
}
.text-link:hover { opacity: 0.68; }
.text-link .arrow { font-family: var(--latin); font-size: 16px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: clamp(28px, 3.4vw, 40px);
}

/* --------------------------------------------------------------------------
   トップのヒーロー: 見出し → サムネイルの壁 → 件数
   -------------------------------------------------------------------------- */

.hero { padding: clamp(44px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); }
.hero-copy { max-width: 880px; }
.hero h1 {
  margin-top: clamp(18px, 2.4vw, 28px);
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--navy);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.hero .lead {
  max-width: 40em;
  margin-top: clamp(20px, 2.6vw, 30px);
  font-size: clamp(15px, 1.1vw, 16.5px);
  line-height: 2.05;
  color: var(--ink-2);
}

/* 壁: 制作した学会サイトの画面を、煉瓦積みのように2段に並べる。
   上段 N 枚・下段 N−1 枚を中央寄せにすると、下段が半枚ぶんずれる。幅に応じて N を減らし、
   余る枚数は隠す（全件は works.html にある）。はみ出しも横スクロールも無い */
.wall {
  --n: 5;
  --wall-gap: clamp(10px, 1.4vw, 16px);
  margin-top: clamp(40px, 5vw, 64px);
}
.wall-row { display: flex; justify-content: center; gap: var(--wall-gap); }
.wall-row + .wall-row { margin-top: var(--wall-gap); }
.wall-row > li { flex: 0 0 calc((100% - (var(--n) - 1) * var(--wall-gap)) / var(--n)); min-width: 0; }
.tile {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.tile img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
/* タイルは見出しのあとに、1枚ずつ少し遅れて現れる（--i は HTML 側） */
.js .wall .tile { animation: rise 0.7s ease-out backwards; animation-delay: calc(0.24s + var(--i, 0) * 0.05s); }
/* 幅に応じた枚数: 5/4 → 4/3 → 3/2 → 2列×3段（上段の5枚＋下段の1枚） */
@media (max-width: 1099px) {
  .wall { --n: 4; }
  .wall-row:first-child > li:nth-child(n + 5), .wall-row + .wall-row > li:nth-child(n + 4) { display: none; }
}
@media (max-width: 759px) {
  .wall { --n: 3; }
  .wall-row:first-child > li:nth-child(n + 4), .wall-row + .wall-row > li:nth-child(n + 3) { display: none; }
}
@media (max-width: 559px) {
  .wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wall-gap); }
  .wall-row { display: contents; }
  .wall-row:first-child > li:nth-child(n + 1) { display: block; }
  .wall-row + .wall-row > li:nth-child(n + 2) { display: none; }
}

/* 画面の上につく細い帯（URL か名称） */
.plate-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 24px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}
.plate-bar > span { overflow: hidden; text-overflow: ellipsis; }
.plate-bar::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* 件数: 年度別表の合計を、台帳のように */
.ledger-wrap { margin-top: clamp(36px, 5vw, 64px); }
.ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--line);
}
.ledger-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ledger-item {
  display: flex;
  flex-direction: column;
  padding: 22px 18px 22px 0;
  border-right: 1px solid var(--line-soft);
}
.ledger-item + .ledger-item { padding-left: 22px; }
.ledger-item:last-child { border-right: 0; }
/* HTML は dt（項目名）→ dd（件数）の正しい順に書き、見た目だけ件数を上に出す */
.ledger-item .num {
  order: -1;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1;
  color: var(--navy);
}
.ledger-item dt {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--muted);
  word-break: keep-all; /* 折り返しは HTML の <wbr> の位置だけ（スマホ幅で「演題登録システムの利／用」のように語の途中で折れない。Safari でも効く。長すぎれば body の overflow-wrap:anywhere が受ける） */
}
.ledger-note { margin-top: 12px; font-size: 12px; color: var(--muted); }
.ledger-note a { color: var(--navy); border-bottom: 1px solid var(--line-strong); }

/* --------------------------------------------------------------------------
   下層ページの見出し
   -------------------------------------------------------------------------- */

.page-hero { padding: clamp(44px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); }

/* パンくず（下層ページの見出しの上。構造化データの BreadcrumbList と同じ内容） */
.crumbs { margin-bottom: 18px; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--line-strong); }
.crumbs a { color: var(--ink-2); border-bottom: 1px solid transparent; transition: color 0.2s ease, border-color 0.2s ease; }
.crumbs a:hover { color: var(--navy); border-bottom-color: var(--line-strong); }
.crumbs [aria-current] { color: var(--muted); }

/* 404 ページ */
.page-notfound .page-hero { padding-bottom: clamp(56px, 8vw, 110px); }
.page-notfound .page-hero .lead { max-width: 36em; }
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}
.page-hero-grid.single { grid-template-columns: minmax(0, 1fr); }
.page-hero-grid.single > div { max-width: 880px; }
.page-hero h1 {
  margin-top: 14px;
  font-weight: 700;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--navy);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.page-hero .lead {
  max-width: 40em;
  margin-top: clamp(18px, 2.4vw, 26px);
  font-size: clamp(15px, 1.1vw, 16.5px);
  line-height: 2.05;
  color: var(--ink-2);
}
.price-box {
  padding: clamp(20px, 2.4vw, 30px) clamp(20px, 2.4vw, 30px) clamp(18px, 2vw, 26px);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--ac);
  box-shadow: var(--shadow-1);
}
.price-box .price { margin-top: 10px; }
.price-box .num { font-size: clamp(36px, 4vw, 52px); line-height: 1; color: var(--navy); }
.price-box .unit { margin-left: 3px; font-family: var(--serif); font-size: 18px; color: var(--navy); }
.price-box .unit small { font-family: var(--sans); font-size: 12.5px; color: var(--muted); }
.price-box .price-note { margin-top: 10px; font-size: 12.5px; line-height: 1.75; color: var(--muted); }
.price-box .price-sub {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dotted var(--line-strong);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-2);
}
.price-box .price-sub .num { font-size: 18px; color: var(--ink); }

/* --------------------------------------------------------------------------
   ページ冒頭の目次: 学術誌の目次のように、細い罫と連番で案内する
   -------------------------------------------------------------------------- */

.page-toc {
  position: relative;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px clamp(24px, 3.5vw, 48px);
  padding: clamp(22px, 3vw, 36px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  background: #fbfaf7;
}
.page-toc::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 52px;
  height: 2px;
  background: var(--ac);
}
.page-toc-intro {
  align-self: center;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}
.page-toc-label {
  margin-bottom: 8px;
  font-family: var(--latin);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ac);
}
.page-toc h2 {
  font-size: 23px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--navy);
}
.page-toc-note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-2);
}
.page-toc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 40px);
}
.page-toc-list li { border-bottom: 1px solid var(--line); }
.page-toc-list li:nth-last-child(-n + 2) { border-bottom: 0; }
.page-toc-list a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  height: 100%;
  padding: 12px 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--navy);
  transition: background-color 0.2s ease-out, color 0.2s ease-out;
}
.page-toc-number {
  font-family: var(--latin);
  font-size: 21px;
  font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1;
  color: var(--ac);
}
.page-toc-arrow {
  justify-self: end;
  font-weight: 400;
  color: var(--ac);
  transition: transform 0.2s ease-out;
}
.page-toc-list a:hover,
.page-toc-list a:focus-visible { background: #f3efe6; color: var(--ac); }
.page-toc-list a:hover .page-toc-arrow,
.page-toc-list a:focus-visible .page-toc-arrow { transform: translateY(3px); }

@media (max-width: 860px) {
  .page-toc { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .page-toc-intro { padding-right: 0; border-right: 0; }
  .page-toc-note { margin-top: 6px; }
  .page-toc-note br { display: none; }
  .page-toc-list { border-top: 1px solid var(--line); }
}
@media (max-width: 540px) {
  .page-toc-list { grid-template-columns: minmax(0, 1fr); }
  .page-toc-list li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .page-toc-list a { min-height: 54px; padding-inline: 4px; }
  .page-toc h2 { font-size: 22px; }
}

/* --------------------------------------------------------------------------
   セクション共通
   -------------------------------------------------------------------------- */

.section { padding: clamp(48px, 6vw, 80px) 0; }
.section > .wrap { border-top: 1px solid var(--line); padding-top: clamp(44px, 5.5vw, 76px); }
.page-toc + .section { padding-top: clamp(40px, 5vw, 64px); }
.page-toc + .section > .wrap { border-top: 0; padding-top: 0; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 20px clamp(28px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(32px, 4.5vw, 56px);
}
.section-head h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.section-lead {
  max-width: 40em;
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink-2);
}
.services-extra { margin-top: 22px; font-size: 13px; color: var(--muted); }
.more-row { margin-top: clamp(28px, 3.5vw, 44px); }

/* --------------------------------------------------------------------------
   サービスのカード（各ページの「サービスのご案内」）
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(22px, 2.6vw, 34px) clamp(20px, 2.4vw, 30px) clamp(20px, 2.4vw, 28px);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--ac);
  box-shadow: var(--shadow-1);
  transition: transform 0.18s ease-out;
}
.card-link:hover { transform: translateY(-4px); }
.card-title {
  font-size: clamp(19px, 1.9vw, 23px);
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.card-lead { margin-top: 12px; font-size: 13.5px; line-height: 1.9; color: var(--ink-2); }
.card-list { margin-top: 14px; padding-top: 4px; border-top: 1px solid var(--line-soft); }
.card-list li {
  position: relative;
  padding: 7px 0 7px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(7px + 0.8em);
  width: 8px;
  border-top: 1px solid var(--ac);
}
.card-price { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.card-list + .card-price { margin-top: 18px; }
.card-price .num { font-size: clamp(26px, 2.6vw, 32px); line-height: 1; color: var(--navy); }
.card-price .unit { margin-left: 3px; font-family: var(--serif); font-size: 15px; color: var(--navy); }
.card-price .unit small { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.card-price-note { display: block; margin-top: 8px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--navy);
}
.card-more .arrow { font-family: var(--latin); font-size: 16px; transition: transform 0.18s ease-out; }
.card-link:hover .card-more .arrow { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   下層ページの本文部品
   -------------------------------------------------------------------------- */

/* 見出しつきの箇条書き（できること／含まれるもの） */
.feature-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.feature-col { border-top: 1px solid var(--navy); padding-top: 18px; }
.feature-col h3 { font-size: clamp(17px, 1.6vw, 20px); letter-spacing: 0.03em; color: var(--navy); }
.feature-col p { margin-top: 10px; font-size: 13.5px; line-height: 1.85; color: var(--ink-2); }
.feature-col ul { margin-top: 12px; }
.feature-col li {
  position: relative;
  padding: 9px 0 9px 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink);
}
.feature-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(9px + 0.82em);
  width: 8px;
  border-top: 1px solid var(--ac);
}
.feature-col li small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.7; color: var(--muted); }

/* 含まれるもの ＋ 見積書 */
.included-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

/* 機能の一覧（事前参加登録） */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 0 clamp(24px, 3vw, 48px);
}
.feature { border-top: 1px solid var(--line); padding: 20px 0 26px; }
.feature h3 { font-size: clamp(17px, 1.6vw, 19px); letter-spacing: 0.03em; color: var(--ink); }
.feature h3::before {
  content: "";
  display: block;
  width: 24px;
  margin-bottom: 12px;
  border-top: 2px solid var(--ac);
}
.feature p { margin-top: 8px; font-size: 13.5px; line-height: 1.85; color: var(--ink-2); }

/* システムの画面例・試用案内 */
.system-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.system-preview-copy h3 { font-size: clamp(20px, 2.2vw, 26px); color: var(--navy); }
.system-preview-copy p { margin-top: 14px; font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.system-preview-copy .text-link { margin-top: 20px; }
.system-screen { justify-self: center; max-width: 100%; }
.system-screen img { width: auto; max-width: 100%; height: auto; border: 1px solid var(--line); }
.system-screen figcaption { margin-top: 12px; font-size: 12px; line-height: 1.7; color: var(--muted); }

/* --------------------------------------------------------------------------
   制作実績: 図版（Fig.）の並び
   -------------------------------------------------------------------------- */

.plates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 48px) clamp(20px, 3vw, 32px);
}
/* 4枚の段は、幅が足りなければ 2×2 に。3＋1 の欠けた段は作らない */
.plates-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 999px) { .plates-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 519px) { .plates-grid, .plates-4 { grid-template-columns: 1fr; } }
.work-link { display: block; transition: transform 0.18s ease-out; }
.work-link:hover { transform: translateY(-4px); }
.frame {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.2s ease-out;
}
.work-link:hover .frame { box-shadow: var(--shadow-2); }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.work figcaption { padding-top: 14px; }
.work .fig {
  display: block;
  font-family: var(--latin);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.work .name {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(16px, 1.5vw, 18.5px);
  line-height: 1.6;
  color: var(--ink);
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.plates-4 .work .name { font-size: clamp(15px, 1.3vw, 17px); }
.work .ext {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-bottom: 2px;
  font-size: 12.5px;
  color: var(--navy);
  border-bottom: 1px solid var(--line-strong);
  transition: opacity 0.15s ease-out;
}
.work-link:hover .ext { opacity: 0.68; }
/* 公開を終えたサイト: リンクを外し、下線の無い控えめな注記にする */
.work .ended { display: block; margin-top: 10px; font-size: 12.5px; color: var(--muted); }

.archive {
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: clamp(28px, 3.5vw, 40px);
  border-top: 1px solid var(--line);
}
.sub-head { font-size: clamp(18px, 1.9vw, 22px); letter-spacing: 0.04em; color: var(--navy); }
.note { margin-top: 8px; font-size: 13px; color: var(--muted); }
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
  gap: 26px 18px;
  margin-top: clamp(24px, 3vw, 36px);
}
.archive-grid .frame img { aspect-ratio: 4 / 3; }
.archive-grid figcaption { margin-top: 10px; font-size: 12.5px; line-height: 1.65; color: var(--ink-2); word-break: keep-all; overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   実績の推移: 年度別の表
   -------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.record {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  border-top: 1.5px solid var(--navy);
  font-family: var(--latin);
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 17px;
  color: var(--ink);
  text-align: right;
}
.record caption {
  caption-side: bottom;
  padding-top: 12px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  text-align: left;
}
.record th {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.06em;
  color: var(--navy);
}
.record thead th { padding: 0 14px 12px; vertical-align: bottom; border-bottom: 1.5px solid var(--navy); }
.record thead th:first-child { text-align: left; }
.record tbody th { text-align: left; font-family: var(--latin); font-weight: 400; font-size: 17px; letter-spacing: 0.03em; white-space: nowrap; }
.record td, .record tbody th { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.record tbody tr:hover { background: rgba(27, 42, 74, 0.035); }
.record .dash { color: #c3beb0; }
.record tfoot th, .record tfoot td {
  padding: 13px 14px;
  border-top: 1.5px solid var(--navy);
  border-bottom: 1.5px solid var(--navy);
  color: var(--navy);
  font-weight: 500;
}
.record tfoot th { text-align: left; font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; }

/* スマホでは横スクロールさせず、5列を画面幅に収める */
@media (max-width: 600px) {
  .record { min-width: 0; font-size: 15px; }
  .record th { font-size: 10px; letter-spacing: 0.02em; white-space: nowrap; }
  .record thead th { padding: 0 4px 10px; }
  .record td, .record tbody th { padding: 9px 4px; }
  .record tbody th { font-size: 15px; }
  .record tfoot th, .record tfoot td { padding: 11px 4px; }
  .record tfoot th { font-size: 11.5px; }
}

/* --------------------------------------------------------------------------
   料金: 見積書のような内訳と、月額の一覧
   -------------------------------------------------------------------------- */

.estimate {
  padding: clamp(22px, 3vw, 40px);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.estimate-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.estimate h3 { margin-top: 6px; font-size: clamp(19px, 2vw, 24px); color: var(--navy); }
.cond { margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }
.total { white-space: nowrap; }
.total .num { font-size: clamp(32px, 4vw, 48px); line-height: 1; color: var(--navy); }
.total .unit { margin-left: 3px; font-family: var(--serif); font-size: 18px; color: var(--navy); }
.lines { margin-top: 6px; }
.line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px dotted var(--line-strong);
}
.line:last-child { border-bottom: 0; }
.line .item { font-size: 14px; color: var(--ink); }
.line .sub { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.line .amt {
  font-family: var(--latin);
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 17px;
  white-space: nowrap;
}
.line .amt small { margin-left: 2px; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.line .amt-free { font-family: var(--sans); font-size: 13px; letter-spacing: 0.06em; color: var(--navy); }
.pages { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips li { padding: 6px 12px; border: 1px solid var(--line); font-size: 12.5px; color: var(--ink); }

.monthly { border-top: 1px solid var(--line); }
.monthly-wide { max-width: 760px; }
/* 1行 = div.mrow > dt（名前）＋ dd.mrow-price（金額）＋ dd.fine（注記）。名前と金額を1段目の左右に、注記を2段目に置く */
.mrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.mrow dt { font-size: 15px; font-weight: 500; color: var(--ink); word-break: keep-all; } /* 折り返しは <wbr> の位置だけ（「査読システ／ム」のように語の途中で折れない） */
.mrow-price {
  font-family: var(--latin);
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 24px;
  color: var(--navy);
  white-space: nowrap;
}
.mrow-price small { margin-left: 2px; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.mrow .fine { grid-column: 1 / -1; margin-top: 6px; }
.monthly-extra { margin-top: 18px; }

/* --------------------------------------------------------------------------
   制作の流れ: 8段
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 40px);
}
.step { padding: 22px 0 clamp(26px, 3vw, 36px); border-top: 1px solid var(--line); }
.step-no {
  display: block;
  font-family: var(--latin);
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1;
  color: var(--ac);
}
.step h3 { margin-top: 14px; font-size: clamp(17px, 1.6vw, 19px); letter-spacing: 0.03em; color: var(--ink); }
.step p { margin-top: 8px; font-size: 13.5px; line-height: 1.85; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   よくあるご質問
   -------------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 20px 4px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(16px, 1.5vw, 18.5px);
  line-height: 1.6;
  color: var(--ink);
  transition: color 0.15s ease-out;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--navy); }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--latin);
  font-size: 24px;
  line-height: 1;
  color: var(--ac);
  transition: transform 0.18s ease-out;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer {
  max-width: 60em;
  padding: 0 4px 24px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   会社概要: 左に社名、右に罫線の表（学術誌の奥付のように）
   -------------------------------------------------------------------------- */

.profile {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.profile-mark {
  font-family: var(--latin);
  font-style: italic;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--brand-navy);
  white-space: nowrap;
}
.profile-mark .brand-k { font-size: 1.3em; }
.profile-name {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: clamp(19px, 1.9vw, 23px);
  letter-spacing: 0.06em;
  color: var(--ink);
}
.profile-list { border-top: 1px solid var(--navy); }
.profile-list > div {
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr);
  gap: 4px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.profile-list dt {
  padding-top: 2px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--navy);
}
.profile-list dd { font-size: 15px; line-height: 1.85; color: var(--ink); }
.profile-sub { margin-right: 10px; font-size: 12.5px; color: var(--muted); }
.profile-unit { display: inline-block; }
.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 14px;
  padding-bottom: 1px;
  font-size: 12.5px;
  color: var(--navy);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
  transition: opacity 0.15s ease-out;
}
.profile-link:hover { opacity: 0.68; }
.profile-list .num { font-size: 18px; letter-spacing: 0.02em; }
.profile-tel { color: var(--navy); border-bottom: 1px solid transparent; transition: border-color 0.15s ease-out; }
.profile-tel:hover { border-bottom-color: var(--line-strong); }
.profile-note { margin-left: 14px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.profile-points li { position: relative; padding-left: 16px; word-break: auto-phrase; }
.profile-points li + li { margin-top: 4px; }
.profile-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.92em;
  width: 8px;
  border-top: 1px solid var(--navy);
}
/* ウェブサイト: 同じ会社のほかのサイト（フッターと同じ3つ）。リンクの文字はサイト名だけ、一言の説明は下の行に添える
   （本体 hp-2026 の会社情報「ウェブサイト」の行と同じ形。フッターと同じく矢印の印は付けない） */
.profile-sites li + li { margin-top: 10px; }
.profile-sites a {
  color: var(--navy);
  border-bottom: 1px solid var(--line-strong);
  word-break: keep-all;
  overflow-wrap: anywhere;
  transition: border-color 0.15s ease-out;
}
.profile-sites a:hover { border-bottom-color: var(--navy); }
.profile-sites-note { display: block; font-size: 12.5px; line-height: 1.7; color: var(--muted); word-break: auto-phrase; } /* 狭い幅では語の切れ目（「・」の後など）で折る */

/* --------------------------------------------------------------------------
   お問い合わせ: ネイビーの面
   -------------------------------------------------------------------------- */

.contact { background: var(--navy); color: #f3f1ea; padding: clamp(64px, 9vw, 120px) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
}
.contact .eyebrow { color: rgba(243, 241, 234, 0.6); }
.contact h2 {
  margin-top: 12px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #fff;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.contact .lead { max-width: 34em; margin-top: 20px; font-size: 15px; line-height: 2; color: rgba(243, 241, 234, 0.82); }
.contact-cards > div { padding: 18px 0 22px; border-top: 1px solid rgba(243, 241, 234, 0.25); }
.contact .label { color: rgba(243, 241, 234, 0.6); }
.contact .big {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--latin);
  font-variant-numeric: lining-nums tabular-nums;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease-out;
}
.contact .big:hover { border-bottom-color: rgba(255, 255, 255, 0.6); }
.contact .big.mail { font-size: clamp(19px, 2.4vw, 28px); }
.contact .fine { color: rgba(243, 241, 234, 0.62); }
.contact .addr p { margin-top: 6px; font-size: 13.5px; line-height: 1.9; color: rgba(243, 241, 234, 0.82); }
.contact :focus-visible { outline-color: #fff; }

/* --------------------------------------------------------------------------
   フッター
   -------------------------------------------------------------------------- */

.site-footer { padding: 36px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
}
.site-footer .brand { font-size: 1.1rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--ink-2); }
.footer-nav a:hover { color: var(--navy); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--muted);
}
.footer-sites { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-sites a { color: var(--ink-2); border-bottom: 1px solid transparent; }
.footer-sites a:hover { border-bottom-color: var(--line-strong); }

/* 上へ */
.to-top {
  position: fixed;
  right: calc(18px + env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: var(--z-totop);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  box-shadow: var(--shadow-1);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}
.to-top svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.js .to-top { opacity: 0; transform: translateY(8px); pointer-events: none; }
.js .to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* --------------------------------------------------------------------------
   モーション: 読み込み時の立ち上がりと、スクロールでの表示（JS が無ければ常に表示）
   -------------------------------------------------------------------------- */

.js .rise { animation: rise 0.7s ease-out both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   画面幅
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .contact-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
  .feature-cols { grid-template-columns: 1fr; }
  .included-grid, .system-preview { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .page-hero-grid { grid-template-columns: 1fr; align-items: start; }
  .price-box { max-width: 440px; }
  .profile { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pc { display: none; }
  .ledger, .ledger-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger-item { padding: 18px 14px 18px 0; }
  .ledger-item + .ledger-item { padding-left: 18px; }
  .ledger-item:nth-child(2n) { border-right: 0; }
  .ledger-item:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
  .ledger-item:nth-child(3) { padding-left: 0; }
  .ledger-3 .ledger-item:nth-child(3) { border-right: 0; }
  .hero-actions .button { width: 100%; }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .profile-list > div { grid-template-columns: 6.5em minmax(0, 1fr); gap: 4px 16px; padding: 16px 0; }
  .profile-list dd { font-size: 14.5px; }
  .profile-link, .profile-note { display: flex; width: fit-content; margin: 4px 0 0; }
}
/* 320px 幅などでは見出しの列を少し詰め、「有限会社コニーシステム」が1行に収まるようにする（「ム」だけ次の行に落ちない） */
@media (max-width: 359px) {
  .profile-list > div { grid-template-columns: 6em minmax(0, 1fr); gap: 4px 12px; }
}
@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise { animation: none; }
  .js .wall .tile { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .work-link, .tile, .frame, .card-link, .card-more .arrow, .button, .global-nav a::after, .nav-parent::after, .nav-caret, .mega, .mega-link, .mega-more .arrow, .nav-toggle-line, .faq summary::after, .to-top, .js .global-nav, .page-toc-list a, .page-toc-arrow { transition: none; }
  .page-toc-list a:hover .page-toc-arrow,
  .page-toc-list a:focus-visible .page-toc-arrow { transform: none; }
}
