/*
Theme Name: NSI Kaga
Theme URI: https://nsi-kaga.jp/
Author: 一般社団法人加賀国家戦略特区推進機構
Description: 一般社団法人加賀国家戦略特区推進機構 コーポレートサイト用オリジナルテーマ。site-v2 の v3.1 デザイン（白ベース×写真主導）をクラシックテーマとして移植したもの。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nsi-kaga
*/

:root {
  --paper: #faf9f7;
  --paper-2: #f3f2ee;
  --ink: #14161a;
  --ink-2: #5b5e66;
  --line: #d6d5ce;
  --line-strong: #b7b6ae;
  --accent: #14161a;
  --navy: #0b1f3a;
  --font-sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Yu Gothic", YuGothic, "Helvetica Neue", Arial, Meiryo,
    sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Menlo", "Cascadia Mono", monospace;
  --wrap: 72rem;
  --wrap-narrow: 48rem;
  --wrap-form: 42rem;
  --header-h: 5rem;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  height: 100%;
  font-size: 17px;
  background:
    radial-gradient(120% 70% at 50% -10%, #fdfcfa 0%, transparent 55%),
    linear-gradient(180deg, #faf9f7 0%, #f4f3ef 100%);
  background-attachment: fixed;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

.bg-drift {
  position: fixed;
  inset: -40%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(34% 34% at 22% 20%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 66%),
    radial-gradient(32% 32% at 78% 26%, rgba(178, 197, 219, 0.95) 0%, rgba(178, 197, 219, 0) 66%),
    radial-gradient(38% 38% at 60% 80%, rgba(234, 213, 178, 0.9) 0%, rgba(234, 213, 178, 0) 66%),
    radial-gradient(30% 30% at 10% 74%, rgba(193, 210, 227, 0.9) 0%, rgba(193, 210, 227, 0) 66%),
    radial-gradient(26% 26% at 88% 62%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 66%);
  animation: bg-drift 17s ease-in-out infinite alternate;
}
@keyframes bg-drift {
  0%   { transform: translate3d(-11%, -7%, 0) scale(1.00) rotate(-4deg); }
  50%  { transform: translate3d(3%, 8%, 0) scale(1.16) rotate(2deg); }
  100% { transform: translate3d(11%, -5%, 0) scale(1.06) rotate(5deg); }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -5%, rgba(255,255,255,0.5), transparent 45%),
    radial-gradient(115% 115% at 50% 48%, transparent 52%, rgba(20,22,26,0.06) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 61;
  pointer-events: none;
  opacity: 0.11;
  mix-blend-mode: multiply;
  background-image: url("assets/images/noise.svg");
  background-size: 128px 128px;
}

.site-main { flex: 1 1 auto; }

img { max-width: 100%; height: auto; display: block; border: 0; }

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

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed !important;
  top: 0.5rem; left: 0.5rem;
  z-index: 100;
  width: auto; height: auto;
  clip: auto;
  background: var(--ink); color: var(--paper);
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.wrap--narrow { max-width: var(--wrap-narrow); }
.wrap--form { max-width: var(--wrap-form); }

.measure-md { display: block; }
.measure-lg { display: block; }
.measure--center { margin-inline: auto; }

.mt-sm { margin-top: 1.5rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 2.5rem; }
.mt-xl { margin-top: 3.5rem; }
.text-center { text-align: center; }

.anchor-offset { scroll-margin-top: calc(var(--header-h) + 1rem); }
.is-relative { position: relative; }
.is-clipped { overflow: hidden; }

.statement-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(620px, 110%);
  max-width: none;
  transform: translate(-50%, -50%);
  opacity: 0.04;
  pointer-events: none;
}

.statement-body {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* PURPOSE の本文の下の囲み（国家戦略特区とは、…）。囲みは中央、中の文字は左揃え */
.purpose-def {
  display: inline-block;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  padding: 1.25rem 1.5rem;
}
.purpose-def__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}
.purpose-def .purpose-def__list li { font-size: 1rem; }
/* 項目の下の記号なしの一文（例: として最適な特別区域です）。左端は見出しにそろえる */
.purpose-def__after {
  margin-top: 0.4rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
}

.message-lead {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.message-body > p { font-size: 1.0625rem; line-height: 1.9; }
.message-body > p + p { margin-top: 1.5rem; }

.split-2 { display: flex; flex-direction: column; gap: 3rem; }

.news-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* 半透明のまま。不透明に戻すと背景（.bg-drift）の動きが見えなくなる */
.paper-grad {
  background:
    radial-gradient(130% 110% at 50% 0%, rgba(254, 253, 251, 0.55) 0%, transparent 55%),
    linear-gradient(180deg, rgba(251, 250, 248, 0.55) 0%, rgba(244, 243, 239, 0.55) 100%);
}
.paper2-grad {
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(248, 247, 243, 0.62) 0%, transparent 60%),
    linear-gradient(165deg, rgba(244, 243, 238, 0.62) 0%, rgba(237, 236, 230, 0.62) 100%);
}

.section {
  padding-block: 4rem;
}
.section--lg { padding-block: 5rem; }
/* リード文だけ・見出しだけの短い帯と、写真の無いページ上部の直後は余白を小さく */
.section.section--compact { padding-block: 2rem; }
.section.section--tight-top { padding-top: 2rem; }
.rule-b { border-bottom: 1px solid var(--line-strong); }
.rule-t { border-top: 1px solid var(--line-strong); }

.mono-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.mono-label .rule {
  width: 2.25rem;
  height: 1px;
  background: var(--line-strong);
}
.mono-label--center { justify-content: center; }

.mono-label--on-photo { color: rgba(255,255,255,0.7); }
.mono-label--on-photo .rule { background: rgba(255,255,255,0.4); }

.mono-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.lede {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

.br-kuten { display: none; }

.h-page {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.h-section {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.h-lead {
  font-size: clamp(1.5rem, 3.6vw, 2.75rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.005em;
}
.h-3 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.4;
}

.section-heading { margin-bottom: 0; }
.section-heading .h-section { margin-top: 1rem; }

.u-line { position: relative; display: inline-block; }
.u-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.u-line:hover::after,
.u-line.is-active::after { transform: scaleX(1); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  transition: color 0.3s ease;
}
.arrow-link:hover { color: var(--ink); }
.arrow-link .icon-arrow { width: 1em; height: 1em; transition: transform 0.3s ease; }
.arrow-link:hover .icon-arrow { transform: translateX(4px); }

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 0.9rem 2rem;
  font-size: 0.9375rem;
  letter-spacing: 0.15em;
  text-align: center;
  transition: opacity 0.3s ease;
}
.btn:hover { opacity: 0.8; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line-strong); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.site-header__logo img {
  height: 1.75rem;
  width: 1.75rem;
  border-radius: 9999px;
  object-fit: cover;
}

.site-header__name { line-height: 1.35; }
.site-header__br { display: inline; }

/* 日本語／英語の切り替え（英語は Google 翻訳の中継ページ。functions.php の nsi_lang_switch）。
   PC ではメニューの右（--header）、スマホではメニューの中のお問い合わせの下（--menu）。スマホのヘッダーには入る幅が無い */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
}
.lang-switch__item { padding-block: 0.5rem; transition: color 0.3s ease; }
.lang-switch__item:hover { color: var(--ink); }
.lang-switch__item.is-current { color: var(--ink); font-weight: 600; }
.lang-switch__sep { color: var(--line-strong); }
.lang-switch--header { display: none; }

/* 英語の画面（Google 翻訳。翻訳されると html に translated-ltr が付く）でだけ、メニューに決めた英語名を出す（functions.php の nsi_nav_label） */
.nav-en { display: none; }
.translated-ltr .nav-ja { display: none; }
.translated-ltr .nav-en { display: inline; }
/* 英語は日本語ほど字間を空けなくても読めるので、PC のメニューの字間を狭めてヘッダーに収める */
.translated-ltr .global-nav ul { letter-spacing: 0.02em; }

/* Google 翻訳の中継ページで画面の上に出る帯（Google 側の部品）を出さない。切り替えはヘッダーの JP / EN で行い、機械翻訳であることはフッターに書く。
   Google 側で部品の名前が変わると、この指定は効かなくなる */
#gt-nvframe { display: none !important; }

.global-nav { display: none; align-items: center; gap: 2rem; }
.global-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.global-nav .nav-contact {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 0.5rem 1.25rem;
  transition: opacity 0.3s ease;
}
.global-nav .nav-contact:hover { opacity: 0.8; }
.global-nav .nav-contact::after { display: none; }

/* メニューの子の項目（事業紹介 → 事業内容・活動報告）。カーソルを当てたとき・キーボードで選んだときに、ヘッダーの下に開く */
.global-nav__parent {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  height: var(--header-h);
}
.global-nav__caret { width: 0.75rem; height: 0.75rem; color: var(--ink-2); }
.global-nav .global-nav__sub {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 10rem;
  padding-block: 0.5rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.global-nav__parent:hover .global-nav__sub,
.global-nav__parent:focus-within .global-nav__sub { visibility: visible; opacity: 1; }
.global-nav__sub a {
  display: block;
  padding: 0.625rem 1.25rem;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.global-nav__sub a:hover,
.global-nav__sub a:focus-visible { background: var(--paper-2); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 2.25rem;
  width: 2.25rem;
  margin-right: -0.5rem;
}
.nav-toggle span {
  display: block;
  height: 1px;
  width: 1.5rem;
  background: var(--ink);
  transition: transform 0.3s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem 1.5rem;
  background: #f8f7f4;
  color: var(--ink);
}
.mobile-nav.is-open { display: flex; }
/* 項目は上下の中央に置き、画面の高さに収まらないときは上から並べてスクロールできるようにする */
.mobile-nav > :first-child { margin-top: auto; }
.mobile-nav > :last-child { margin-bottom: auto; }

.no-js .nav-toggle { display: none; }
.no-js .mobile-nav {
  display: flex;
  height: auto;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}

.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav a {
  border-bottom: 1px solid var(--line);
  padding-block: 1rem;
  font-size: 1rem;
}
/* 子の項目（活動報告）は一段下げ、親の項目（事業紹介）との間の線を外して近づける */
.mobile-nav .mobile-nav__parent { border-bottom: 0; padding-bottom: 0.25rem; }
.mobile-nav .mobile-nav__sub { padding-top: 0.25rem; padding-left: 1rem; font-size: 0.9375rem; color: var(--ink-2); }
.mobile-nav .lang-switch { justify-content: center; margin-top: 1rem; font-size: 13px; }
.mobile-nav .lang-switch__item { border-bottom: 0; padding: 0.5rem; font-size: inherit; }
.mobile-nav .nav-contact {
  margin-top: 1.5rem;
  border-bottom: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  text-align: center;
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
}
.hero__img,
.page-hero__img,
.photo-band__img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.scrim-b { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.30)); }
.scrim-l { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.55), rgba(0,0,0,0.10) 50%, transparent); }

.hero__body {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
}
.hero__inner { padding-bottom: 5rem; }
.hero__title {
  margin-top: 2rem;
  font-size: clamp(2.25rem, 5.4vw, 4.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero__title-line { display: block; }
.hero .measure-md { margin-top: 2rem; }
.hero__lead {
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.8);
}
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,0.75);
}
.hero__label .rule { display: block; height: 1px; width: 2.5rem; background: rgba(255,255,255,0.5); }

.hero__scroll {
  position: absolute;
  left: 0; right: 0; bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
}
.hero__scroll span:first-child { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em; }
.hero__scroll .cue { height: 2rem; width: 1px; background: rgba(255,255,255,0.5); }

.page-hero {
  position: relative;
  width: 100%;
  border-bottom: 1px solid var(--line-strong);
}
.page-hero--photo { min-height: 56vh; }

.breadcrumb { border-bottom: 1px solid var(--line); }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  padding-block: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--ink);
}
.breadcrumb__list li + li::before {
  content: "›";
  margin-right: 0.5rem;
  color: var(--ink-2);
}
.breadcrumb__list a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: color 0.3s ease;
}
.breadcrumb__list a:hover { color: var(--ink); }
.page-hero--plain {
  padding-top: 7rem;
  padding-bottom: 3.5rem;
}
.page-hero__body {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 56vh;
  padding-top: 7rem;
  padding-bottom: 3.5rem;
}
.page-hero--photo .h-page { color: #fff; }
.page-hero .h-page { margin-top: 1.25rem; }

.photo-band {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 46vh;
  border-bottom: 1px solid var(--line-strong);
  overflow: hidden;
}
.photo-band__inner {
  position: relative;
  width: 100%;
  padding-bottom: 3.5rem;
}

.photo-band__label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.7);
}
.photo-band__title {
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}
.photo-band__text {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.85);
}

.contact-cta {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46vh;
  overflow: hidden;
  border-top: 1px solid var(--line-strong);
}
.contact-cta__img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.7s ease-out;
}
.contact-cta:hover .contact-cta__img { transform: scale(1.05); }
.contact-cta__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.45));
}
.contact-cta__inner {
  display: block;
  position: relative;
  width: 100%;
  padding-block: 4rem;
  text-align: center;
}
.contact-cta__title, .contact-cta__text { display: block; }
.contact-cta__title {
  margin-top: 1.5rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}
.contact-cta__text {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.85);
}

.rule-list { border-top: 1px solid var(--line); }
.rule-list > li { border-bottom: 1px solid var(--line); }

.news-row {
  display: grid;
  grid-template-columns: 6rem 1fr;
  column-gap: 1rem;
  row-gap: 0.375rem;
  align-items: start;
  padding-block: 1.5rem;
}
.news-row__thumb {
  grid-column: 1;
  grid-row: 1 / span 3;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
}
.news-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.news-row:hover .news-row__thumb img { transform: scale(1.04); }
.news-row__date { width: fit-content; flex-shrink: 0; }
.news-row__cat { flex-shrink: 0; font-size: 13px; color: var(--ink-2); }
.news-row__title {
  font-size: 1rem;
  color: var(--ink);
  overflow-wrap: anywhere;
  transition: color 0.3s ease;
}
.news-row:hover .news-row__title { color: var(--ink-2); }
.news-row__icon {
  display: none;
  width: 1rem;
  height: 1rem;
  color: var(--line-strong);
  transition: transform 0.3s ease, color 0.3s ease;
}
.news-row:hover .news-row__icon { transform: translateX(4px); color: var(--ink); }

/* 活動報告の一覧（/business/activity/ と事業紹介ページの下）。スマホは1列、768px〜は2列、1024px〜は3列 */
.activity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem 1.5rem;
}
.activity-card { display: block; }
.activity-card__thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
}
.activity-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.activity-card:hover .activity-card__thumb img { transform: scale(1.04); }
.activity-card__date { display: block; margin-top: 1rem; }
.activity-card__title {
  display: block;
  margin-top: 0.375rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  transition: color 0.3s ease;
}
.activity-card:hover .activity-card__title { color: var(--ink-2); }

.def-list { border-top: 1px solid var(--line); }
.def-list__row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-bottom: 1px solid var(--line);
  padding-block: 1.5rem;
}
.def-list__row dt { flex-shrink: 0; font-size: 1rem; color: var(--ink-2); }
.def-list__row dd { font-size: 1rem; color: var(--ink); }

.def-list__row dd ol {
  list-style: decimal;
  padding-left: 1.5em;
}
.def-list__row dd ol > li { padding-left: 0.25em; }
.def-list__row dd ol > li + li { margin-top: 0.5rem; }

.signature {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}
.signature p { font-size: 1rem; line-height: 2; text-align: right; color: var(--ink-2); }

.coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 3.5rem;
  border: 1px solid var(--line);
}
.coming-soon span {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.org-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 7;
  width: 100%;
  border: 1px solid var(--line);
}
.org-placeholder span {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.org-chart img { margin-inline: auto; }

.org-chart__date { margin-bottom: 1.5rem; }

.org-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  word-break: auto-phrase; /* 名前を折り返すとき、文節の切れ目で折り返す（対応ブラウザのみ） */
}
.org-tree__node {
  display: inline-block;
  min-width: 0;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.55);
  padding: 0.75rem 1.25rem;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}
.org-tree__node--small {
  min-width: 0;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
}
.org-tree__node--board {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.org-tree__title { font-weight: 600; }
.org-tree__sub {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ink-2);
}
.org-tree__v {
  width: 1px;
  height: 2.5rem;
  background: var(--line-strong);
}
.org-tree__row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.org-tree__side {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.org-tree__h {
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--line-strong);
}
/* プロジェクト・分科会・準備会（スマホ・タブレット）: 左端に縦線を下ろし、区分名の下に各組織の箱を枝分かれでつなぐ。PC は 1024px 以上の指定で3列に */
.org-tree__branches {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.org-tree__branches::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 1px;
  background: var(--line-strong);
}
.org-branch { position: relative; }
.org-branch__head {
  position: relative;
  padding: 0.75rem 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.org-branch + .org-branch .org-branch__head { padding-top: 1.75rem; }
.org-branch__units li {
  --org-pad: 0.5rem; /* 箱の上の間隔。枝の線の高さの計算に使う */
  position: relative;
  padding: var(--org-pad) 0 0 1rem;
}
.org-branch__head::before,
.org-branch__units li::before,
.org-branch__units li::after {
  content: "";
  position: absolute;
  left: 0;
  background: var(--line-strong);
}
.org-branch__head::before {
  top: 0;
  bottom: 0;
  width: 1px;
}
.org-branch__units li::before {
  top: calc(50% + var(--org-pad) / 2);
  width: 1rem;
  height: 1px;
}
.org-branch__units li::after {
  top: 0;
  bottom: 0;
  width: 1px;
}
.org-branch:last-child .org-branch__units li:last-child::after {
  bottom: auto;
  height: calc(50% + var(--org-pad) / 2);
}
/* 組織の箱。名前は事業紹介のその事業の帯へのリンク（箱全体を押せる） */
.org-link {
  display: block;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.6);
  padding: 0.6rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  overflow-wrap: anywhere;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.org-link:hover { background: #fff; border-color: var(--ink); }
.org-unit {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  padding: 1.25rem 1.5rem;
}
.org-unit + .org-unit { margin-top: 1.25rem; }
.org-unit__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ink);
  overflow-wrap: anywhere;
}
.org-unit__role {
  margin-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--line);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.org-unit__list { margin-top: 0.75rem; }
.org-unit__list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink);
}
.org-unit__list li + li { margin-top: 0.4rem; }
.org-unit__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  background: var(--ink-2);
}
.org-chart__notes {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--ink-2);
}

.doc-tree {
  display: grid;
  gap: 2.5rem;
}
.doc-tree__section {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.35);
}
.doc-tree__head {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line-strong);
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--ink);
}
.doc-tree__body { padding: 1.25rem; }
.doc-tree__note {
  margin-bottom: 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.doc-tree__groups {
  display: grid;
  gap: 1.25rem;
}
.doc-tree__groups .org-unit + .org-unit { margin-top: 0; }
.doc-tree__pdf {
  margin-left: 0.5rem;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
  padding: 0.05rem 0.375rem;
  vertical-align: 0.1em;
}
.doc-tree__footnote {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--ink-2);
  word-break: auto-phrase; /* スマホで「プロジェク／ト」のように語の途中で折り返さない（対応ブラウザのみ） */
}

/*
 * ニュース一覧のカレンダー（inc/calendar.php）。
 * PC（768px〜）は月の表、スマホは予定のある日だけの一覧。予定と凡例の色は種類の色（--cal-color）。今日の印は main.js が付ける
 */
/* スマホは月の見出しを1段目、前後の月を2段目に置く */
.nsi-cal__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
.nsi-cal__month {
  flex: 0 0 100%;
  order: -1;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.nsi-cal__nav {
  flex: 0 0 auto;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  white-space: nowrap;
}
.nsi-cal__nav--next { text-align: right; }
a.nsi-cal__nav:hover { color: var(--ink); }

.nsi-cal__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.nsi-cal__legend li { display: inline-flex; align-items: center; gap: 0.5rem; }
.nsi-cal__legend li::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  background: var(--cal-color);
}

.nsi-cal__events { display: flex; flex-direction: column; gap: 0.25rem; }
.nsi-cal__events li {
  border-left: 3px solid var(--cal-color);
  background: rgba(255, 255, 255, 0.7);
  padding: 0.2em 0.45em;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.nsi-cal__time {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.nsi-cal__grid {
  display: none;
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  table-layout: fixed;
  background: rgba(255, 255, 255, 0.6);
}
.nsi-cal__grid th {
  padding: 0.5rem;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  text-align: center;
}
.nsi-cal__grid td {
  height: 6.5rem;
  padding: 0.375rem;
  border: 1px solid var(--line);
  vertical-align: top;
}
.nsi-cal__grid td.is-pad { background: rgba(214, 213, 206, 0.25); }
.nsi-cal__grid .nsi-cal__events { margin-top: 0.25rem; }
.nsi-cal__day {
  display: inline-block;
  min-width: 1.75em;
  padding: 0.1em 0.3em;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.nsi-cal .is-sun .nsi-cal__day,
.nsi-cal .is-sun .nsi-cal__list-date,
.nsi-cal__grid th.is-sun { color: #a8452f; }
.nsi-cal .is-sat .nsi-cal__day,
.nsi-cal .is-sat .nsi-cal__list-date,
.nsi-cal__grid th.is-sat { color: #0b1f3a; }
.nsi-cal .is-today .nsi-cal__day { background: var(--ink); color: #fff; }

.nsi-cal__list { margin-top: 1rem; border-top: 1px solid var(--line); }
.nsi-cal__list > li {
  display: flex;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--line);
}
.nsi-cal__list > li.is-today { background: rgba(255, 255, 255, 0.6); }
.nsi-cal__list-date {
  flex: 0 0 auto;
  min-width: 8.5em;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.nsi-cal__list .nsi-cal__events { flex: 1; min-width: 0; }
.nsi-cal__empty {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.nsi-cal__events a.nsi-cal__text {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: opacity 0.3s ease;
}
.nsi-cal__events a.nsi-cal__text:hover { opacity: 0.7; }

/* カレンダーの下の施設のご案内 */
.fac-list > li { padding: 1.25rem 0; }
.fac-list__name { font-size: 1rem; font-weight: 500; color: var(--ink); }
.fac-list__text { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.8; color: var(--ink-2); }
.fac-list__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-top: 0.75rem; }

@media (min-width: 768px) {
  .nsi-cal__head { flex-wrap: nowrap; }
  .nsi-cal__month { flex: 1; order: 0; }
  .nsi-cal__nav { flex: 0 0 7.5em; }
  .nsi-cal__grid { display: table; }
  .nsi-cal__list,
  .nsi-cal__empty { display: none; }
}

.history-list { border-top: 1px solid var(--line-strong); }
.history-list > li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-bottom: 1px solid var(--line);
  padding-block: 2rem;
}
.history-list__date {
  flex-shrink: 0;
  font-size: 1.375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.history-list__text { font-size: 1rem; color: var(--ink-2); }

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
  row-gap: 3.5rem;
}

.board-photo {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
}
.board-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.board-roles { margin-top: 1rem; min-height: 2.375rem; }
.board-role { font-size: 0.75rem; line-height: 1.5; color: var(--ink-2); }

.board-role-sub { margin-top: 0.125rem; font-size: 0.75rem; line-height: 1.5; color: var(--ink-2); }
.board-name { margin-top: 0.25rem; font-size: 0.9375rem; font-weight: 500; color: var(--ink); }
.board-name .en { margin-left: 0.5rem; font-size: 0.75rem; font-weight: 400; color: var(--ink-2); }

.lede.board-bio { margin-top: 0.75rem; font-size: 0.75rem; line-height: 1.7; }

.biz-band {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
  background: var(--navy); /* 写真が無い事業は暗い帯になる */
}

.biz-band__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.biz-band__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(12, 14, 18, 0.86) 0%,
    rgba(12, 14, 18, 0.66) 100%
  );
}
.biz-band__inner { position: relative; padding-block: 3.5rem; }
.biz-band__label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
}
.biz-band__title {
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}
/* 帯の中の説明（組織名・担当・項目）。組織体制図から移した内容 */
.biz-band__org {
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}
.biz-band__role {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}
.biz-band__list { margin-top: 0.75rem; }
.biz-band__list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}
.biz-band__list li + li { margin-top: 0.3rem; }
.biz-band__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.6);
}

/* 帯のリンク。文字は「詳しく見る」だが、::after で帯全体を押せるようにしている */
.biz-band__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
}
.biz-band__more::after {
  content: "";
  position: absolute;
  inset: 0;
}
.biz-band__more .icon-arrow { width: 1em; height: 1em; transition: transform 0.3s ease; }
.biz-band:hover .biz-band__more { color: #fff; }
.biz-band:hover .biz-band__more .icon-arrow { transform: translateX(4px); }
.biz-band__more .u-line::after,
.biz-band:hover .biz-band__more .u-line::after { transform: scaleX(1); }
.biz-band:has(.biz-band__more:focus-visible) { outline: 2px solid #fff; outline-offset: -2px; }

.member-group { margin-top: 3.5rem; }

.member-grid { display: grid; grid-template-columns: 1fr; }
.member-grid > li { border-bottom: 1px solid var(--line); }

.member-grid a,
.member-grid__name { display: flex; align-items: baseline; padding-block: 1.25rem; }
.member-grid a span,
.member-grid__name { font-size: 0.9375rem; color: var(--ink); transition: color 0.3s ease; }
.member-grid a:hover span { color: var(--ink-2); }

.type-list { border-top: 1px solid var(--line); }
.type-list > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-block: 2.5rem;
}
.type-list__no { font-size: 0.9375rem; color: var(--ink-2); }

.type-list__soon {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.type-list__title { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.005em; color: var(--ink); }

.flow-grid {
  display: grid;
  gap: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}
.flow-grid__step { font-size: 0.9375rem; color: var(--ink-2); }
.flow-grid__title { margin-top: 0.75rem; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.005em; color: var(--ink); }

.doc-grid {
  display: grid;
  gap: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}
.doc-list > li { border-bottom: 1px solid var(--line); }
.doc-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
  transition: opacity 0.3s ease;
}
.doc-list a:hover { opacity: 0.7; }
.doc-list__badge {
  flex-shrink: 0;
  min-width: 3.25rem;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
  padding: 0.1rem 0.375rem;
  margin-right: 1rem;
}
.doc-list__name { display: flex; align-items: center; }
.doc-list__label {
  font-size: 0.9375rem;
  color: var(--ink);
  /* スマホで「様式第３／号」のように語の途中で折り返さない。折り返すのは括弧の前と「・」の後。それでも入らない長い名前は途中で折り返す */
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.doc-list__icon { width: 1.125rem; height: 1.125rem; color: var(--line-strong); flex-shrink: 0; transition: color 0.3s ease, transform 0.3s ease; }
.doc-list a:hover .doc-list__icon { color: var(--ink); transform: translateY(2px); }

.membership-links > a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-block: 2rem;
}
.membership-links__label { flex: 1; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.005em; color: var(--ink); }
.membership-links__icon { width: 1rem; height: 1rem; color: var(--line-strong); transition: transform 0.3s ease, color 0.3s ease; }
.membership-links > a:hover .membership-links__icon { transform: translateX(4px); color: var(--ink); }

.policy-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}
.policy-list h2 {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.policy-list h2 .no { color: var(--ink-2); }

.policy-items {
  margin-top: 1rem;
  padding-left: 0;
  counter-reset: policy-item;
}
.policy-items > li {
  position: relative;
  padding-left: 2.5rem;
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--ink-2);
}
.policy-items > li + li { margin-top: 0.5rem; }
.policy-items > li::before {
  counter-increment: policy-item;
  content: "(" counter(policy-item) ")";
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.contact-form .field label,
.wpcf7 .field label {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
}
.contact-form .req,
.wpcf7 .req { font-size: 0.75rem; font-weight: 400; color: var(--ink-2); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  margin-top: 0.75rem;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0.75rem 0;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  border-radius: 0;
  appearance: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  border-bottom-color: var(--ink);
  outline: none;
}
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible,
.wpcf7 input:focus-visible,
.wpcf7 select:focus-visible,
.wpcf7 textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.contact-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--ink);
}
.contact-form .consent input[type="checkbox"] { margin-top: 0.35rem; width: 1rem; height: 1rem; }
.contact-form button,
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
  margin-top: 1rem;
  width: 100%;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 1rem 2rem;
  font-family: inherit;
  font-size: 0.9375rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.contact-form button:hover,
.wpcf7 .wpcf7-submit:hover { opacity: 0.8; }

.wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--ink);
}
.wpcf7-acceptance input[type="checkbox"] {
  margin-top: 0.35rem;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #a4262c;
}
.wpcf7 input.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid,
.wpcf7 select.wpcf7-not-valid { border-bottom-color: #a4262c; }

/* reCAPTCHA の右下の印は出さず、フォームの下に表記を出す（page-contact.php の .recaptcha-note） */
.grecaptcha-badge { visibility: hidden; }
.recaptcha-note {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--ink-2);
  word-break: auto-phrase; /* 「適用され／ます」のように語の途中で折り返さない（対応ブラウザのみ） */
}
.recaptcha-note a { text-decoration: underline; text-underline-offset: 2px; }

.wpcf7 form .wpcf7-response-output {
  margin: 0;
  border: 1px solid var(--line-strong);
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink);
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  border-color: #a4262c;
  color: #a4262c;
}

.entry-content {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink-2);
}
.entry-content > * + * { margin-top: 1.5rem; }
.entry-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin-top: 3rem;
}
.entry-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2.5rem;
}
.entry-content a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul { list-style: disc; padding-left: 1.25rem; }
.entry-content ol { list-style: decimal; padding-left: 1.5rem; }
.entry-content li + li { margin-top: 0.5rem; }
.entry-content img { margin-block: 1.5rem; }
.entry-content blockquote {
  border-left: 2px solid var(--line-strong);
  padding-left: 1.25rem;
  color: var(--ink-2);
}
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th,
.entry-content td { border: 1px solid var(--line); padding: 0.75rem; text-align: left; }

.entry-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2rem;
}
.entry-thumb { margin-top: 2.5rem; }
.entry-foot {
  margin-top: 3.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.page-links {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.page-links a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.pagination {
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: 0.5rem;
  border: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink-2);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.pagination .page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.pagination .page-numbers.current { border-color: var(--ink); color: var(--ink); }

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-strong);
  color: var(--ink);
}
.site-footer__bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  opacity: 0.08;
  filter: grayscale(1);
}
.site-footer__inner { position: relative; padding-top: 5rem; padding-bottom: 4rem; }
.site-footer__cols {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.site-footer__brand { display: flex; align-items: center; gap: 0.75rem; }

.site-footer__wordmark {
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.site-footer__brand img { height: 2rem; width: 2rem; border-radius: 9999px; object-fit: cover; }
.site-footer__name {
  margin-top: 2rem;
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.site-footer__sns {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--ink-2);
}
.site-footer__sns a { transition: color 0.3s ease; }
.site-footer__sns a:hover { color: var(--ink); }
.site-footer__sns svg { width: 1rem; height: 1rem; }
.site-footer__addr { margin-top: 1.5rem; line-height: 2; }

.footer-nav__label { margin-bottom: 0.25rem; letter-spacing: 0.35em; display: block; }
.footer-nav ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
  transition: color 0.3s ease;
}
.footer-nav a:hover { color: var(--ink); }
.footer-nav a svg { width: 0.75rem; height: 0.75rem; color: var(--line-strong); transition: transform 0.3s ease, color 0.3s ease; }
.footer-nav a:hover svg { transform: translateX(2px); color: var(--ink); }
.footer-nav__sub { padding-left: 1.25rem; }

.site-footer__bottom {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  font-size: 11px;
  letter-spacing: 0.025em;
  color: var(--ink-2);
}
/* 英語の画面（Google 翻訳）でだけ出す、機械翻訳であることの注記 */
.site-footer__mt { display: none; margin-top: 0.75rem; font-size: 11px; letter-spacing: 0.025em; color: var(--ink-2); }
.translated-ltr .site-footer__mt { display: block; }

.error-404 { padding-top: 10rem; padding-bottom: 6rem; text-align: center; }
.error-404 .code { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em; color: var(--ink-2); }
.error-404 h1 { margin-top: 1.5rem; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 600; letter-spacing: -0.01em; }

@keyframes hero-kenburns {
  from { transform: scale(1.03); }
  to { transform: scale(1.14); }
}
.hero-kb {
  animation: hero-kenburns 18s ease-out forwards;
  transform-origin: 65% 45%;
  will-change: transform;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) both; }
.fade-up-2 { animation: fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both; }

@keyframes scroll-cue {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(6px); opacity: 0.3; }
}
.scroll-cue { animation: scroll-cue 1.8s ease-in-out infinite; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-kb, .fade-up, .fade-up-2, .scroll-cue { animation: none; }

  .bg-drift { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* スマホ幅: 見出しが複数行になるときは各行の長さを揃える（末尾に1〜2文字だけ残る折り返しを避ける）。PC 表示は変えない */
@media (max-width: 767px) {
  .h-page,
  .h-section,
  .h-lead,
  .hero__title,
  .hero__title-line,
  .message-lead,
  .photo-band__title,
  .biz-band__title,
  .contact-cta__title,
  .site-footer__name { text-wrap: balance; word-break: auto-phrase; }
}

/* スマホ縦向き（〜600px）: 1行に収めたい文言の文字サイズを画面幅に合わせる（601px から通常の大きさに戻る） */
@media (max-width: 600px) {
  .hero__title { font-size: clamp(1.2rem, 6.4vw, 2.25rem); }
  .hero__lead { font-size: clamp(0.8125rem, 4.2vw, 1rem); }
  .site-footer__name { font-size: clamp(1.25rem, 7vw, 1.75rem); }
}

@media (min-width: 640px) {
  .btn { width: fit-content; }
  .contact-form button { width: fit-content; }

  .wpcf7 .wpcf7-submit { width: fit-content; }
}

@media (min-width: 768px) {

  .br-kuten { display: inline; }

  .section { padding-block: 6rem; }
  .section--lg { padding-block: 8rem; }
  .section.section--compact { padding-block: 2.5rem; }
  .section.section--tight-top { padding-top: 2.5rem; }

  .site-header__logo { font-size: 0.8125rem; }

  .hero__inner { padding-bottom: 7rem; }

  .hero__lead { font-size: 1.0625rem; }

  .page-hero--plain { padding-top: 8rem; padding-bottom: 5rem; }
  .page-hero__body { padding-top: 8rem; padding-bottom: 5rem; }

  .lede { font-size: 1.0625rem; }

  .photo-band { min-height: 54vh; }
  .photo-band__inner { padding-bottom: 5rem; }
  .photo-band__label { font-size: 1rem; }
  .photo-band__title { font-size: 2.25rem; }
  .photo-band__text { font-size: 1.0625rem; }
  .contact-cta__text { font-size: 1.0625rem; }
  .entry-content { font-size: 1.0625rem; }

  .contact-cta { min-height: 54vh; }
  .contact-cta__inner { padding-block: 6rem; }

  .news-row {
    grid-template-columns: 8.75rem 6rem auto 1fr auto;
    align-items: center;
    column-gap: 2rem;
    row-gap: 0;
  }
  .news-row__thumb { grid-column: auto; grid-row: auto; }
  .news-row__date { width: auto; }
  .news-row__title { font-size: 1.0625rem; }
  .news-row__icon { display: block; }

  .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .def-list__row { flex-direction: row; gap: 2.5rem; }
  .def-list__row dt { width: 12rem; }
  .def-list__row dt { font-size: 1.0625rem; }
  .def-list__row dd { font-size: 1.0625rem; }

  .history-list > li { flex-direction: row; align-items: baseline; gap: 2.5rem; }
  .history-list__date { width: 12rem; }
  .history-list__text { font-size: 1.0625rem; }

  .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .biz-band { min-height: 34vh; display: flex; align-items: center; }
  .biz-band__inner { padding-block: 5rem; }
  .biz-band__label { font-size: 1rem; }
  .biz-band__title { font-size: 2.25rem; }
  .biz-band__org { font-size: 1.125rem; }
  .biz-band__role,
  .biz-band__list li { font-size: 0.9375rem; }

  .biz-band__scrim {
    background: linear-gradient(
      to right,
      rgba(12, 14, 18, 0.88) 0%,
      rgba(12, 14, 18, 0.84) 50%,
      rgba(12, 14, 18, 0.72) 82%,
      rgba(12, 14, 18, 0.14) 100%
    );
  }

  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-grid > li:nth-child(odd) { border-right: 1px solid var(--line); }
  .member-grid a,
  .member-grid__name { padding-inline: 1.5rem; }

  .type-list > div { grid-template-columns: 10rem 1fr; gap: 2.5rem; padding-block: 3.5rem; }
  .type-list__title { font-size: 1.875rem; }

  .flow-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.5rem; }
  .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; }

  .split-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; }

  .site-footer__inner { padding-top: 7rem; }
  .site-footer__cols { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 4rem; }
  .site-footer__bottom { flex-direction: row; justify-content: space-between; }

  .message-body > p { font-size: 1.1875rem; }

  .signature { margin-top: 4rem; }
  .signature p { font-size: 1.0625rem; }

  .doc-tree__body { padding: 2rem; }
  .doc-tree__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-tree__group--full { grid-column: 1 / -1; }

  .org-tree__node { min-width: 12rem; padding: 0.9rem 2rem; }
  .org-tree__node--small { min-width: 0; padding: 0.6rem 1.25rem; }
  .org-tree__branches { max-width: 36rem; } /* タブレットで箱が横に広がりすぎないように。PC（3列）では外す */
  .org-tree__row { display: inline-flex; }
  .org-tree__side {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (min-width: 1024px) {

  .activity-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .org-tree__branches {
    max-width: none;
    grid-template-columns: repeat(var(--org-cols, 2), minmax(0, 1fr));
    gap: 2.5rem;
    padding-top: 2.5rem;
  }
  /* 横線の両端を、最初と最後の列の中心に合わせる（列の間隔 2.5rem と連動） */
  .org-tree__branches::before {
    left: calc((100% - (var(--org-cols, 2) - 1) * 2.5rem) / (2 * var(--org-cols, 2)));
    right: calc((100% - (var(--org-cols, 2) - 1) * 2.5rem) / (2 * var(--org-cols, 2)));
    width: auto;
  }
  /* PC は列ごとに、横線から下ろした線の下に区分名、その下に組織の箱を縦に並べる */
  .org-branch { display: block; }
  .org-branch::before {
    content: "";
    position: absolute;
    top: -2.5rem;
    left: 50%;
    width: 1px;
    height: 2.5rem;
    background: var(--line-strong);
  }
  .org-branch__head,
  .org-branch + .org-branch .org-branch__head {
    padding: 0.5rem 0 0;
    text-align: center;
    font-size: 0.875rem;
  }
  .org-branch__units { margin-top: 0.75rem; }
  .org-branch__units li { padding: 0; }
  .org-branch__units li + li { margin-top: 0.75rem; }
  .org-branch__head::before,
  .org-branch__units li::before,
  .org-branch__units li::after { content: none; }

  .site-header__logo { font-size: 0.9375rem; }
  .site-header__br { display: none; }
  .global-nav { display: flex; margin-left: auto; }
  .lang-switch--header { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  /* 右に JP / EN を足したので、1024px でもメニューが1行に収まるよう間隔を詰める（2026-11） */
  .site-header__inner { gap: 1rem; }
  .global-nav { gap: 0.875rem; }
  .global-nav ul { gap: 0.875rem; }
}

@media (min-width: 1200px) {

  .board-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media print {
  .bg-drift,
  body::before,
  body::after,
  .site-header,
  .nav-toggle,
  .mobile-nav,
  .contact-cta,
  .site-footer__bg,
  .statement-mark { display: none !important; }

  .hero__img,
  .page-hero__img,
  .photo-band__img,
  .biz-band__img,
  .biz-band__scrim,
  .scrim-b,
  .scrim-l { display: none !important; }

  .hero__label,
  .hero__title,
  .hero__lead,
  .hero__scroll,
  .page-hero--photo .h-page,
  .page-hero--photo .mono-label,
  .photo-band__label,
  .photo-band__title,
  .photo-band__text,
  .biz-band__label,
  .biz-band__title,
  .biz-band__org,
  .biz-band__role,
  .biz-band__list li { color: #000 !important; }
  .biz-band { background: none; }
  .biz-band__list li::before { background: #000; }

  .hero, .photo-band, .biz-band, .page-hero--photo { min-height: 0; }

  html, body { background: #fff; }
  .paper-grad, .paper2-grad { background: #fff; }
  .site-main { padding-top: 0; }
  a { color: #000; }
}
