/* Chordix コーポレートサイト — 青基調デザイン
   深い紺 × 鮮やかなブルーのグラデーション × 白ベース */
:root {
  color-scheme: light;
  /* ブランドカラー（ロゴ準拠） */
  --navy: #1C3177;
  --navy-deep: #101E52;
  --green: #12C877;
  --green-deep: #0A7A4A;
  /* 旧名の別名（既存ルールが参照しているため維持） */
  --blue: var(--green-deep);
  --blue-bright: var(--green);
  --cyan: var(--green);
  --ink: #16233a;
  --ink-soft: #4a5a74;
  --line: #d9e2ef;
  --bg: #ffffff;
  --bg-tint: #eef2fa;
  --radius: 12px;
  --maxw: 1080px;
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-latin: "Inter", "Helvetica Neue", Arial, sans-serif;
  --grad: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 50%, #0B7350 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 2;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1.2rem;
  font-family: var(--font-latin), var(--font-jp);
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand:hover {
  text-decoration: none;
  color: var(--blue);
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.global-nav .nav-link {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.global-nav .nav-link:hover {
  text-decoration: none;
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.menu-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  color: var(--navy);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--grad);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 80% 90% at 82% 20%, #000 0%, transparent 62%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 82% 20%, #000 0%, transparent 62%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero::before {
  width: 560px;
  height: 560px;
  right: -160px;
  top: -180px;
}

.hero::after {
  width: 340px;
  height: 340px;
  right: 40px;
  bottom: -170px;
  border-color: rgba(255, 255, 255, 0.12);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 110px 24px 100px;
  width: 100%;
}

.hero h1 {
  font-size: clamp(1.6rem, 4.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0.1em;
  margin-bottom: 26px;
}

.hero .hero-sub {
  max-width: 640px;
  font-size: clamp(0.92rem, 1.5vw, 1.02rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 2.1;
}

.hero-badge {
  display: inline-block;
  margin-top: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 7px 22px;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Sections ---------- */
.section {
  padding: 100px 0;
}

.section-gray {
  background: var(--bg-tint);
}

.section-label {
  display: block;
  margin-bottom: 48px;
}

.section-label .en {
  display: block;
  font-family: var(--font-latin);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-label .ja {
  display: inline-block;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.section-label .ja::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--grad);
  margin-top: 12px;
}

/* ---------- Message（ご挨拶） ---------- */
.message-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.message-body h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  font-weight: 700;
  line-height: 2;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 28px;
}

.message-body p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  text-align: justify;
}

.message-body p + p {
  margin-top: 1.4em;
}

.message-panel {
  background: var(--grad);
  border-radius: var(--radius);
  color: #fff;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.message-panel::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  right: -90px;
  bottom: -90px;
}

.panel-rings {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.panel-ring {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.7;
}

.panel-ring + .panel-ring {
  margin-left: -26px;
  background: rgba(255, 255, 255, 0.07);
}

.panel-caption {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- Works（事業） ---------- */
.works-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.work-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 40px;
}

.section:not(.section-gray) .work-item {
  background: var(--bg-tint);
  border-color: transparent;
}

.work-num {
  font-family: var(--font-latin);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--blue);
  border-top: 2px solid var(--blue);
  padding-top: 14px;
}

.work-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  line-height: 1.8;
}

.work-body p {
  font-size: 0.93rem;
  color: var(--ink-soft);
  text-align: justify;
  max-width: 720px;
}

.work-body p + p {
  margin-top: 1em;
}

.work-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.work-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(18, 200, 119, 0.08);
  border: 1px solid rgba(18, 200, 119, 0.25);
  border-radius: 999px;
  padding: 4px 16px;
}

.notice-box {
  max-width: 720px;
  background: #fff;
  border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  font-size: 0.86rem;
  color: var(--ink);
  margin-top: 20px;
  box-shadow: 0 1px 4px rgba(28, 49, 119, 0.06);
}

/* ---------- ポジショニング帯 ---------- */
.statement-band {
  background: var(--grad);
  color: #fff;
  text-align: center;
  padding: 76px 24px;
  position: relative;
  overflow: hidden;
}

.statement-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: linear-gradient(105deg, transparent 40%, #000 100%);
  -webkit-mask-image: linear-gradient(105deg, transparent 40%, #000 100%);
}

.statement-band p {
  position: relative;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 2.1;
}

.statement-band .small {
  position: relative;
  display: block;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-latin);
}

/* ---------- Company（会社情報） ---------- */
.info-table {
  width: 100%;
  max-width: 760px;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 20px 12px;
  vertical-align: top;
  font-size: 0.93rem;
  font-weight: 400;
}

.info-table th {
  width: 9em;
  color: var(--navy);
  font-weight: 700;
  border-bottom: 2px solid var(--navy);
  white-space: nowrap;
}

.info-table td {
  border-bottom: 1px solid var(--line);
}

/* ---------- News ---------- */
.news-list {
  border-top: 1px solid var(--line);
  max-width: 860px;
}

.news-item {
  display: flex;
  gap: 24px;
  align-items: baseline;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.news-date {
  font-family: var(--font-latin);
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  min-width: 6.4em;
}

.news-cat {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(18, 200, 119, 0.08);
  border: 1px solid rgba(18, 200, 119, 0.25);
  border-radius: 999px;
  padding: 1px 14px;
  white-space: nowrap;
}

.news-title {
  flex: 1;
  min-width: 220px;
  font-size: 0.93rem;
}

.news-more {
  display: inline-block;
  margin-top: 28px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
}

.news-more::after {
  content: " →";
}

/* ---------- Contact ---------- */
.contact-note {
  max-width: 720px;
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.contact-form {
  max-width: 620px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
}

.req {
  color: #b4232a;
  font-size: 0.72rem;
  margin-left: 6px;
  font-weight: 400;
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: 0.93rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}

.form-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
  border-radius: 999px;
  padding: 13px 44px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(18, 200, 119, 0.3);
}

.btn-blue {
  background: var(--blue);
  border-color: var(--blue);
}

.btn-blue:hover {
  background: var(--blue-bright);
  border-color: var(--blue-bright);
}

/* honeypot（スパム対策・視覚的に隠す） */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- 下層ページヘッダー ---------- */
.page-header {
  background: var(--grad);
  color: #fff;
  padding: 84px 0 68px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  right: -140px;
  top: -220px;
}

.page-header h1 {
  position: relative;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.page-header .en {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  font-family: var(--font-latin);
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* ---------- Privacy / prose ---------- */
.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  border-left: 4px solid var(--blue);
  padding-left: 14px;
  margin: 44px 0 14px;
}

.prose p,
.prose li {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 1.5em;
}

.prose .updated {
  margin-top: 48px;
  font-size: 0.83rem;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.88);
  padding: 64px 0 32px;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand-name {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: var(--font-latin), var(--font-jp);
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 380px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.85rem;
}

.footer-nav a:hover {
  color: #fff;
}

.copyright {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  letter-spacing: 0.08em;
  font-family: var(--font-latin);
}

/* ---------- 演出・アニメーション ---------- */

/* テキスト選択色もブランドカラーに */
::selection {
  background: rgba(28, 49, 119, 0.9);
  color: #fff;
}

/* ブランドイントロ（初回表示時のロゴ演出） */
body.intro-lock {
  overflow: hidden;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}

.intro.leave {
  transform: translateY(-100%);
}

.intro-logo {
  font-family: var(--font-latin), sans-serif;
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
  opacity: 0;
  animation: introIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.intro-dot {
  color: var(--cyan);
}

@keyframes introIn {
  from { opacity: 0; transform: translateY(24px); letter-spacing: 0.3em; }
  to { opacity: 1; transform: none; letter-spacing: 0.06em; }
}

/* ヒーロー: オーロラ光彩 */
.hero-glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-glow i {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  mix-blend-mode: screen;
}

.hero-glow .g1 {
  width: 520px;
  height: 520px;
  left: -120px;
  top: -80px;
  background: radial-gradient(circle, rgba(18, 200, 119, 0.45), transparent 65%);
  animation: glowDrift1 13s ease-in-out infinite alternate;
}

.hero-glow .g2 {
  width: 460px;
  height: 460px;
  right: 4%;
  bottom: -160px;
  background: radial-gradient(circle, rgba(74, 99, 200, 0.4), transparent 65%);
  animation: glowDrift2 17s ease-in-out infinite alternate;
}

@keyframes glowDrift1 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(90px, 50px) scale(1.15); }
}

@keyframes glowDrift2 {
  from { transform: translate(0, 0) scale(1.1); }
  to { transform: translate(-70px, -40px) scale(0.95); }
}

/* ヒーロー: 一文字ずつの出現（script.jsが .ch に分割） */
.hero h1.split {
  animation: none;
  opacity: 1;
}

.hero h1 .ch {
  display: inline-block;
  opacity: 0;
  animation: chIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes chIn {
  from { opacity: 0; transform: translateY(0.55em) rotate(4deg); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

.hero-inner {
  will-change: transform;
}

/* スクロールを促すキュー */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-latin), sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.35em;
}

.scroll-cue i {
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: #fff;
  animation: cueDrop 2s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}

@keyframes cueDrop {
  0% { top: -100%; }
  55%, 100% { top: 100%; }
}

/* キーワードティッカー */
.ticker {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.5);
  overflow: hidden;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  font-family: var(--font-latin), sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  white-space: nowrap;
  animation: tickerSlide 36s linear infinite;
}

.ticker-track .tick-sep {
  color: rgba(18, 200, 119, 0.6);
}

@keyframes tickerSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}

/* 事業カード: カーソルを追う光 */
.work-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 50%),
    rgba(18, 200, 119, 0.08),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.work-item:hover::before {
  opacity: 1;
}

/* フィルムグレイン（ヒーロー・シーンに質感を足す） */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
}

/* スクロールシーン（ピン留め） */
.scene {
  height: 320vh;
  background: var(--navy-deep);
  position: relative;
}

.scene-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vh, 34px);
  overflow: hidden;
  padding: 0 24px;
}

.scene-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 200, 119, 0.35), rgba(18, 200, 119, 0.08) 55%, transparent 70%);
  filter: blur(30px);
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.scene-line {
  position: relative;
  color: #fff;
  font-size: clamp(1.15rem, 3.4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 2;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  filter: blur(6px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s ease;
}

.scene-line.on {
  opacity: 1;
  transform: none;
  filter: none;
}

.scene-line.on.past {
  opacity: 0.28;
  transform: translateY(-8px) scale(0.96);
}

.scene-line-em {
  background: linear-gradient(100deg, #fff 20%, var(--cyan) 60%, #8fd0ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(1.4rem, 4.4vw, 2.6rem);
}

/* フッターの巨大タイポ */
.site-footer {
  position: relative;
  overflow: hidden;
}

.footer-word {
  position: absolute;
  right: -14px;
  bottom: -34px;
  font-family: var(--font-latin), sans-serif;
  font-size: clamp(80px, 14vw, 180px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* ヒーロー: ネットワーク粒子キャンバス */
.hero-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ヒーロー: 巨大タイポグラフィ */
.hero-word {
  position: absolute;
  right: -12px;
  bottom: -28px;
  font-family: var(--font-latin), sans-serif;
  font-size: clamp(90px, 16vw, 210px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* 事業カード: 大きな番号の透かし（script.jsが data-num を付与） */
.work-item {
  position: relative;
  overflow: hidden;
}

.work-item::after {
  content: attr(data-num);
  position: absolute;
  right: 16px;
  bottom: -30px;
  font-family: var(--font-latin), sans-serif;
  font-size: 130px;
  font-weight: 600;
  line-height: 1;
  color: rgba(18, 200, 119, 0.055);
  pointer-events: none;
  user-select: none;
}

/* アンカー移動時にヘッダーで隠れないように */
section[id] {
  scroll-margin-top: 80px;
}

/* ヘッダー: スクロール時に影 */
.site-header {
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(28, 49, 119, 0.1);
}

/* カードのホバー: 3Dチルト（script.js）＋影 */
.work-item {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  transform-style: preserve-3d;
}

.work-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(28, 49, 119, 0.12);
}

/* ニュース行のホバー */
.news-item {
  transition: background 0.25s ease, padding-left 0.25s ease;
}

.news-item:hover {
  background: rgba(18, 200, 119, 0.045);
  padding-left: 12px;
}

/* トップへ戻るボタン */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background 0.2s;
  box-shadow: 0 6px 20px rgba(28, 49, 119, 0.3);
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--blue);
}

@media (prefers-reduced-motion: no-preference) {
  /* ヒーロー: グラデーションがゆっくり揺らぐ */
  .hero {
    background-size: 200% 200%;
    animation: gradShift 16s ease-in-out infinite alternate;
  }

  @keyframes gradShift {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
  }

  /* ヒーロー: テキストが順に立ち上がる */
  .hero h1,
  .hero .hero-sub,
  .hero .hero-badge {
    opacity: 0;
    animation: riseUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .hero h1 { animation-delay: 0.15s; }
  .hero .hero-sub { animation-delay: 0.45s; }
  .hero .hero-badge { animation-delay: 0.7s; }

  @keyframes riseUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
  }

  /* ヒーロー: 同心円がゆっくり漂う */
  .hero::before {
    animation: floatA 14s ease-in-out infinite alternate;
  }

  .hero::after {
    animation: floatB 18s ease-in-out infinite alternate;
  }

  @keyframes floatA {
    from { transform: translate(0, 0); }
    to { transform: translate(-24px, 22px); }
  }

  @keyframes floatB {
    from { transform: translate(0, 0); }
    to { transform: translate(18px, -20px); }
  }

  /* 下層ページヘッダーの円も同様に */
  .page-header::before {
    animation: floatA 16s ease-in-out infinite alternate;
  }

  /* スクロール連動フェードイン（script.jsが .reveal を付与） */
  .reveal {
    opacity: 0;
    transform: translateY(28px) scale(0.975);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: inherit;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  /* 見出し下線: 表示時に左から伸びる */
  .section-label .ja::after {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
  }

  .section-label.is-visible .ja::after {
    transform: scaleX(1);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .message-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .work-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 24px;
  }

  .work-num {
    border-top: none;
    border-left: 2px solid var(--blue);
    padding: 0 0 0 12px;
  }
}

@media (max-width: 760px) {
  .global-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    display: none;
  }

  .global-nav.open {
    display: flex;
  }

  .global-nav .nav-link {
    padding: 14px 24px;
    border-bottom: none;
  }

  .menu-button {
    display: block;
  }

  .hero {
    min-height: 64vh;
  }

  .section {
    padding: 64px 0;
  }

  .info-table th {
    width: 6.5em;
  }
}

/* ---------- SEO用の要素 ---------- */
/* h1内の社名（視覚的には控えめに、検索エンジンには明示） */
.hero-company {
  display: block;
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1.2em;
}

/* フッターの会社情報（NAP） */
.footer-address {
  margin-top: 18px;
  font-style: normal;
  font-size: 0.78rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.55);
}

.footer-address a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-address a:hover {
  color: #fff;
}


/* ==================== ブランドロゴ ==================== */

/* ヘッダー */
.brand {
  gap: 0;
}

.brand-logo {
  height: 30px;
  width: auto;
  display: block;
  transition: opacity 0.2s ease;
}

.brand:hover .brand-logo {
  opacity: 0.72;
}

/* ヒーロー */
.hero-logo {
  width: clamp(200px, 25vw, 310px);
  height: auto;
  margin-bottom: 36px;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.3));
}

/* フッター */
.footer-brand-name {
  line-height: 1;
}

.footer-logo {
  height: 34px;
  width: auto;
  display: block;
}

/* 下層ページヘッダー: シンボルを透かしで配置 */
.page-header::after {
  content: "";
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(110px, 15vw, 180px);
  height: clamp(110px, 15vw, 180px);
  background: url("logo/symbol-white.svg") center / contain no-repeat;
  opacity: 0.14;
  pointer-events: none;
}

/* イントロ演出のロゴ */
.intro-logo-img {
  width: clamp(190px, 32vw, 360px);
  height: auto;
  opacity: 0;
  animation: introIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

/* 明るいグリーンに白文字だと読みにくいため、ボタンのホバーは締める */
.btn-blue:hover {
  background: #0E9760;
  border-color: #0E9760;
}

/* 画面には出さず、読み上げ・検索エンジンには伝える */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-logo {
    opacity: 0;
    animation: riseUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .hero h1 { animation-delay: 0.34s; }
  .hero .hero-sub { animation-delay: 0.58s; }
  .hero .hero-badge { animation-delay: 0.8s; }
}

@media (max-width: 760px) {
  .brand-logo { height: 26px; }
  .hero-logo { margin-bottom: 28px; }
  .footer-logo { height: 30px; }
}

/* ==================== 現在地ナビ ====================
   背景は疑似要素で描画する。パディングや太字で幅が変わると
   他の項目まで動いてしまうため、レイアウトには一切触れない。 */
.global-nav {
  isolation: isolate;
}

.global-nav .nav-link {
  position: relative;
}

.global-nav .nav-link.is-current {
  color: var(--navy);
  border-bottom-color: transparent;
}

.global-nav .nav-link.is-current::before {
  content: "";
  position: absolute;
  left: -14px;
  right: -14px;
  top: -8px;
  bottom: -3px;
  background: #eceff6;
  border-radius: 8px;
  z-index: -1;
}

.global-nav .nav-link.is-current:hover {
  color: var(--navy);
  border-bottom-color: transparent;
}

.global-nav .nav-link.is-current:hover::before {
  background: #e2e7f1;
}

@media (max-width: 760px) {
  .global-nav .nav-link.is-current::before {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: 0;
  }
}

/* ==================== メンバー ==================== */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.member-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px 34px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.section-gray .member-card {
  border-color: transparent;
}

.member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(28, 49, 119, 0.1);
}

.member-photo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin-bottom: 24px;
  background: var(--bg-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-latin), sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.7;
  padding: 0 16px;
  color: var(--ink-soft);
}

.member-role {
  font-family: var(--font-latin), sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--green-deep);
  margin-bottom: 10px;
}

.member-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.06em;
  line-height: 1.6;
  margin-bottom: 16px;
}

.member-name .en {
  display: block;
  font-family: var(--font-latin), sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-top: 4px;
}

.member-bio {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.95;
}

/* 項目が増えたぶん、中間サイズでナビが窮屈にならないように */
@media (max-width: 1010px) {
  .global-nav {
    gap: 20px;
  }

  .global-nav .nav-link {
    font-size: 0.84rem;
  }
}

@media (max-width: 760px) {
  .global-nav .nav-link {
    font-size: 0.9rem;
  }

  .member-card {
    padding: 30px 24px;
  }
}

/* ==================== ニュース: タグ絞り込み ==================== */
[hidden] {
  display: none !important;
}

.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.news-filter-btn {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 18px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.news-filter-btn:hover {
  color: var(--navy);
  border-color: #b9c6da;
}

.news-filter-btn.is-active {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.news-empty {
  padding: 44px 4px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* ニュース一覧を記事ページへのリンクに */
a.news-item {
  color: var(--ink);
}

a.news-item,
a.news-item:hover {
  text-decoration: none;
}

.news-item .news-title {
  transition: color 0.2s ease;
}

a.news-item:hover .news-title {
  color: var(--green-deep);
}

/* 事業カードから詳細ページへ */
.work-more {
  margin-top: 22px;
}

.work-more a {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--green-deep);
  letter-spacing: 0.04em;
}

.work-more a::after {
  content: " →";
}

/* 記事ページ */
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

/* ==================== 準備中の表示 ==================== */
.coming-soon-block {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 40px 24px;
  background: var(--bg-tint);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-family: var(--font-latin), sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

/* ==================== お問い合わせ ==================== */
.contact-card {
  max-width: 620px;
  margin-top: 44px;
  padding: 40px 40px 36px;
  background: var(--bg-tint);
  border-radius: var(--radius);
  border-left: 4px solid var(--green);
}

.contact-card-label {
  font-family: var(--font-latin), sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--green-deep);
  margin-bottom: 12px;
}

.contact-mail {
  font-family: var(--font-latin), sans-serif;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.contact-mail a {
  color: var(--navy);
}

.contact-card-note {
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.9;
}

@media (max-width: 760px) {
  .contact-card {
    padding: 30px 24px 28px;
  }
}

/* メンバーの箇条書き */
.member-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.member-points li {
  position: relative;
  padding-left: 1.15em;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.95;
}

.member-points li + li {
  margin-top: 0.6em;
}

.member-points li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--green-deep);
}

/* メンバーは2名なので、横に広がりすぎないよう上限を設ける */
.member-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 480px));
}

/* 事業一覧のリード文 */
.works-lead {
  max-width: 760px;
  margin-bottom: 44px;
  font-size: 0.93rem;
  color: var(--ink-soft);
  text-align: justify;
}

/* ==================== ロゴに込めた思い ==================== */
.logo-story {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  align-items: start;
  max-width: 900px;
}

.logo-story-mark img {
  width: 100%;
  height: auto;
}

.logo-story-body p,
.logo-story-body li {
  font-size: 0.93rem;
  color: var(--ink-soft);
  text-align: justify;
}

.logo-story-body strong {
  color: var(--navy);
  font-weight: 700;
}

.logo-story-body ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.logo-story-body li {
  position: relative;
  padding-left: 1.2em;
}

.logo-story-body li + li {
  margin-top: 1em;
}

.logo-story-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.logo-story-more {
  margin-top: 26px;
}

.logo-story-more a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-deep);
}

.logo-story-more a::after {
  content: " →";
}

@media (max-width: 760px) {
  .logo-story {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .logo-story-mark {
    max-width: 140px;
  }
}

/* 記事本文の補足 */
.prose-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.prose ul li {
  margin-bottom: 0.6em;
}

/* 記事・prose 本文の段落間隔（連続する段落に余白がなかったため） */
.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: 1.3em;
}


/* メンバーの顔写真（管理画面から登録された場合） */
.member-photo-img {
  padding: 0;
  overflow: hidden;
}

.member-photo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 一覧へ戻ったときに、見ていたカードがヘッダーの下に隠れないように */
.work-item,
.news-item {
  scroll-margin-top: 96px;
}

/* 詳細ページを持たないニュースは、クリックできる見た目にしない */
div.news-item:hover {
  background: transparent;
  padding-left: 4px;
}

/* ニュースのカテゴリ（複数可）。
   タグの数が違っても見出しの開始位置が揃うよう、幅を固定する */
.news-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 0 0 8.6em;
  align-content: flex-start;
}

@media (max-width: 760px) {
  .news-cats {
    flex: 0 0 auto;
  }
}

/* ==================== セクション共通（管理画面から増減する部分） ==================== */
/* 「補足」スタイルの本文。以前は p 単体に付けていたクラスを枠にも使えるようにした */
.contact-note p {
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.contact-note p + p,
.contact-note p + ul,
.contact-note ul + p {
  margin-top: 1.4em;
}

.contact-note ul {
  padding-left: 1.5em;
}

/* 「見出し＋本文」を幅せまめに保つ（以前は style 属性で指定していた） */
.message-body {
  max-width: 760px;
}

.message-body h2 + h2 {
  margin-top: 44px;
}

/* セクション下のボタン */
.section-more {
  margin-top: 36px;
}

/* ==================== ヘッダーのプルダウン ==================== */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

/* プルダウンの中のリンクは、上のナビとは別の見た目にする */
.global-nav .nav-sub a {
  display: block;
  padding: 9px 16px;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-soft);
  border-bottom: none;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

/* カーソルが当たっている項目がはっきりわかるようにする */
.global-nav .nav-sub a:hover,
.global-nav .nav-sub a:focus-visible {
  background: #eceff6;
  color: var(--navy);
  text-decoration: none;
}

.nav-sub ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 761px) {
  .nav-item {
    height: 68px;
  }

  .nav-sub {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 220px;
    max-width: 360px;
    /* タイトルとプルダウンの間でカーソルが切れないように、余白は panel の内側に持たせる */
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(28, 49, 119, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
    z-index: 60;
  }

  /* カーソルを置いている間だけ見える。キーボード操作でも開く */
  .nav-item:hover > .nav-sub,
  .nav-item:focus-within > .nav-sub {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  /* タイトル自身も、開いている間は色を変える */
  .nav-item:hover > .nav-link,
  .nav-item:focus-within > .nav-link {
    color: var(--blue);
  }

  /* 事業のように項目名が長いものは幅を広めにとる */
  .nav-item-wide .nav-sub {
    min-width: 320px;
  }

  /* 画面の端で見切れないように、右寄りの項目は右端合わせにする */
  .nav-item:nth-last-child(-n + 2) .nav-sub {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(-6px);
  }

  .nav-item:nth-last-child(-n + 2):hover > .nav-sub,
  .nav-item:nth-last-child(-n + 2):focus-within > .nav-sub {
    transform: translateX(0) translateY(0);
  }
}

/* スマートフォンにはカーソルが無い。
   全ページ分の小項目を並べるとメニューが長くなりすぎるので、
   いま開いているページの小項目だけを表示する。 */
@media (max-width: 760px) {
  .nav-item {
    display: block;
  }

  .nav-sub {
    display: none;
    padding: 0 0 10px 12px;
  }

  .nav-item:has(> .nav-link.is-current) .nav-sub {
    display: block;
  }

  .global-nav .nav-sub a {
    padding: 8px 24px;
    font-size: 0.82rem;
  }
}

/* プルダウンから飛んだとき、見出しがヘッダーの下に隠れないようにする */
.section[id],
.page-header[id] {
  scroll-margin-top: 84px;
}

/* ==================== メンバーのSNS ==================== */
.member-sns {
  list-style: none;
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.member-sns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--navy);
  background: #f2f4f9;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.member-sns a:hover,
.member-sns a:focus-visible {
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.member-sns svg {
  fill: currentColor;
  display: block;
}

/* ==================== メンバー写真を大きく ====================
   92px では顔が小さく見えづらかったため、カード幅に応じて
   132〜152px の範囲で伸縮させる。画像そのものは高解像度なので、
   拡大しても粗くならない。 */
.member-photo {
  width: clamp(132px, 34%, 152px);
  height: auto;
  aspect-ratio: 1 / 1;
  margin-bottom: 26px;
  font-size: 0.68rem;
}

/* 画像は上寄りに切り抜く（顔が中央より上にあることが多いため） */
.member-photo-img img {
  object-position: center 22%;
}

@media (max-width: 480px) {
  .member-photo {
    width: 120px;
    height: 120px;
  }
}
