:root {
  /* Design tokens: see design_yamarin_corporate_20260706.md */
  --base: #050505;
  --surface: #090909;
  --panel: #121212;
  --red: #C40012;
  --red-bright: #D00016;
  --deep-red: #8F0010;
  --text: #FFFFFF;
  --sub: #CFCFCF;
  --muted: rgba(255,255,255,0.58);
  --border: rgba(255,255,255,0.12);
  --container: 1160px;
  --header-height: 84px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font-family: system-ui, "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", sans-serif;
  line-height: 1.85;
  letter-spacing: 0.02em;
}

body.is-nav-open {
  overflow: hidden;
}

img,
canvas {
  display: block;
  max-width: 100%;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--red);
  color: var(--text);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 112px 0;
}

.section-heading {
  max-width: 520px;
}

.section-heading.narrow {
  max-width: 720px;
  margin-bottom: 48px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--red-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.42;
  letter-spacing: 0.07em;
}

h1,
h2 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  word-break: keep-all;
}

h1 span {
  color: var(--red);
  font-size: 1.12em;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
}

h3 {
  margin-bottom: 16px;
  font-size: 1.08rem;
}

p {
  color: var(--sub);
  font-size: 1rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, height 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(5, 5, 5, 0.88);
  border-color: var(--border);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: 100%;
  height: 100%;
  padding-left: 32px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 104px;
}

.brand-logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* 山凛ロゴ＝白文字・背景透過PNG（白い下地を敷かない＝黒背景に文字だけが乗る） */
.brand-logo-img {
  display: block;
  height: 52px;
  width: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--base);
  background: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 70% 45%, 100% 100%, 0 100%, 30% 53%);
}

.brand-copy {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.brand-ja {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.brand-en {
  color: var(--sub);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.site-nav {
  display: flex;
  align-items: stretch;
  gap: 34px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--red-bright);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
  width: 24px;
}

.nav-link.is-active {
  color: var(--red-bright);
}

.nav-contact {
  min-width: 158px;
  justify-content: center;
  gap: 12px;
  padding-inline: 24px;
  color: var(--text);
  background: linear-gradient(135deg, var(--red), var(--deep-red));
  border-left: 1px solid rgba(255,255,255,0.14);
  transition: background 0.25s ease, transform 0.25s ease;
}

.nav-contact::after {
  content: none;
}

.nav-contact:hover,
.nav-contact:focus-visible {
  background: linear-gradient(135deg, var(--red-bright), var(--red));
}

.mail-icon {
  width: 18px;
  height: 13px;
  border: 1px solid currentColor;
  position: relative;
}

.mail-icon::before,
.mail-icon::after {
  content: "";
  position: absolute;
  top: 1px;
  width: 11px;
  height: 1px;
  background: currentColor;
}

.mail-icon::before {
  left: -1px;
  transform: rotate(33deg);
  transform-origin: left center;
}

.mail-icon::after {
  right: -1px;
  transform: rotate(-33deg);
  transform-origin: right center;
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  margin: auto 16px auto 0;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 122px 0 290px;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 35%, rgba(196,0,18,0.18), transparent 23%),
    radial-gradient(circle at 85% 50%, rgba(255,255,255,0.08), transparent 24%),
    linear-gradient(135deg, #050505 0%, #050505 57%, #080808 100%);
}

.hero-canvas,
.hero-shade,
.cursor-ring {
  position: absolute;
  inset: 0;
}

.hero-canvas {
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 62%;
  height: 100%;
  max-width: none;
  opacity: 0.96;
}

.hero-shade {
  z-index: 2;
  background:
    radial-gradient(circle at 82% 40%, transparent 0%, rgba(5,5,5,0.24) 33%, rgba(5,5,5,0.72) 78%),
    linear-gradient(90deg, rgba(5,5,5,0.95) 0%, rgba(5,5,5,0.78) 36%, rgba(5,5,5,0.2) 100%);
  pointer-events: none;
}

.cursor-ring {
  z-index: 3;
  width: 118px;
  height: 118px;
  border: 1px solid rgba(196,0,18,0.72);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,0.12) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(196,0,18,0.22), transparent 62%);
  box-shadow: 0 0 34px rgba(196,0,18,0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cursor-ring.is-visible {
  opacity: 1;
}

.hero-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(200px, 1fr);
  align-items: center;
  gap: 48px;
}

.hero-content {
  max-width: 780px;
  padding-left: 40px;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 36px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  letter-spacing: 0.09em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.button::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36%;
  height: 2px;
  background: var(--text);
  transition: width 0.25s ease;
}

.button:hover::before,
.button:focus-visible::before {
  width: 100%;
}

.button-primary {
  background: var(--red);
  border-color: transparent;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--red-bright);
}

.button-ghost {
  background: rgba(255,255,255,0.04);
}

.hero-visual {
  min-height: 460px;
}

.network-panel {
  position: relative;
  height: min(62vh, 560px);
  min-height: 420px;
  background:
    radial-gradient(circle at 57% 50%, rgba(255,255,255,0.22), transparent 6%),
    radial-gradient(circle at 67% 54%, rgba(196,0,18,0.38), transparent 20%),
    transparent;
  overflow: hidden;
}

.network-panel::before {
  content: none;
}

.node {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--text);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(255,255,255,0.56);
}

.node-a { top: 22%; left: 58%; }
.node-b { top: 38%; left: 76%; background: var(--red); box-shadow: 0 0 28px rgba(196,0,18,0.7); }
.node-c { top: 64%; left: 45%; }
.node-d { top: 74%; left: 88%; background: var(--red); }

.network-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.46), rgba(196,0,18,0.7), transparent);
  transform-origin: left center;
}

.line-a { top: 30%; left: 58%; width: 38%; transform: rotate(13deg); }
.line-b { top: 58%; left: 44%; width: 48%; transform: rotate(-21deg); }
.line-c { top: 50%; left: 48%; width: 52%; transform: rotate(49deg); }

.network-label {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: calc(100% - 56px);
  color: rgba(255,255,255,0.08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6.2vw, 5.4rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-align: center;
  transform: translateX(-50%);
  white-space: nowrap;
}

.scroll-cue {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 300px;
  display: inline-grid;
  gap: 18px;
  color: var(--sub);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  transform: translateX(-50%);
}

.scroll-cue i {
  width: 1px;
  height: 64px;
  background: linear-gradient(var(--sub), var(--red));
}

.hero-service-strip {
  position: absolute;
  left: 6vw;
  right: 3vw;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(196,0,18,0.8);
  border-left: 1px solid rgba(255,255,255,0.08);
  background: rgba(14,14,14,0.86);
  backdrop-filter: blur(14px);
}

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

.service-card {
  position: relative;
  min-height: 278px;
  display: flex;
  flex-direction: column;
  padding: 42px 38px 32px;
  border-right: 1px solid rgba(255,255,255,0.11);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.012)),
    rgba(10,10,10,0.92);
  overflow: hidden;
  transition: transform 0.25s ease, background 0.25s ease;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px);
  background:
    linear-gradient(180deg, rgba(196,0,18,0.11), rgba(255,255,255,0.015)),
    rgba(14,14,14,0.96);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red-bright);
  transition: width 0.25s ease;
}

.service-card:hover::before,
.service-card:focus-within::before {
  width: 100%;
}

.service-card h3 {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
}

.service-card p {
  position: relative;
  z-index: 1;
  flex: 1;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.74);
  font-size: 0.9rem;
}

.card-number {
  position: absolute;
  right: 22px;
  top: 30px;
  color: rgba(0,0,0,0.32);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 5.5vw, 5.2rem);
  font-style: italic;
  line-height: 1;
}

.service-icon {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  color: var(--red-bright);
}

.service-icon::before,
.service-icon::after {
  content: "";
  position: absolute;
  border: 1px solid currentColor;
}

.service-icon-gov::before {
  left: 4px;
  bottom: 0;
  width: 28px;
  height: 26px;
}

.service-icon-gov::after {
  left: 14px;
  bottom: 26px;
  width: 8px;
  height: 8px;
  box-shadow: -10px 18px 0 -3px currentColor, 10px 18px 0 -3px currentColor;
}

.service-icon-event::before {
  left: 2px;
  top: 10px;
  width: 32px;
  height: 22px;
  transform: skewX(-18deg);
}

.service-icon-event::after {
  left: 11px;
  top: 3px;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
}

.service-icon-film::before {
  left: 3px;
  top: 9px;
  width: 24px;
  height: 18px;
}

.service-icon-film::after {
  right: 0;
  top: 12px;
  width: 10px;
  height: 12px;
  border-left: 0;
  transform: skewY(-22deg);
}

.service-icon-artist::before {
  left: 12px;
  top: 0;
  width: 12px;
  height: 24px;
  border-radius: 12px;
}

.service-icon-artist::after {
  left: 17px;
  bottom: 0;
  width: 1px;
  height: 12px;
  background: currentColor;
  border: 0;
  box-shadow: -8px 12px 0 currentColor, 8px 12px 0 currentColor;
}

.service-icon-edu::before {
  left: 4px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 16px 0 0 -1px var(--panel), 16px 0 0 0 currentColor;
}

.service-icon-edu::after {
  left: 2px;
  bottom: 2px;
  width: 32px;
  height: 14px;
  border-radius: 18px 18px 0 0;
}

.future-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  width: fit-content;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.future-link span {
  color: var(--red-bright);
  transition: transform 0.25s ease;
}

.service-card:hover .future-link span,
.service-card:focus-within .future-link span {
  transform: translateX(8px);
}

.split-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 72px;
}

.about {
  padding-top: 88px;
}

.section-body {
  border-left: 1px solid var(--border);
  padding-left: 64px;
}

.section-body p {
  max-width: 720px;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.keyword-row span {
  padding: 8px 14px;
  border: 1px solid var(--border);
  color: var(--sub);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.strength,
.contact {
  background: var(--surface);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.work-card:hover,
.work-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(196,0,18,0.5);
}

.work-image {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(196,0,18,0.22), transparent 32%),
    radial-gradient(circle at 70% 20%, rgba(255,255,255,0.14), transparent 22%),
    #151515;
  overflow: hidden;
}

.work-image::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  transform: scale(1);
  transition: transform 0.35s ease;
}

.work-card:hover .work-image::before {
  transform: scale(1.06);
}

.work-text {
  padding: 24px;
}

.work-text span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.work-text h3 {
  margin-bottom: 0;
}

/* BUSINESS: 3事業（行政受託・教育・音楽コンテンツ）＋関連団体 */
.business .section-heading.narrow {
  margin-bottom: 24px;
}

.biz-list {
  margin-top: 32px;
}

.biz-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding: 44px 0;
  border-top: 1px solid var(--border);
}

.biz-block:last-child {
  border-bottom: 1px solid var(--border);
}

.biz-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.biz-no {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-style: italic;
  line-height: 1;
}

.biz-head h3 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
  font-size: 1.45rem;
}

.biz-body p {
  max-width: 720px;
  margin-bottom: 26px;
}

.biz-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.biz-links li a {
  display: inline;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.8;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.biz-links li a span {
  display: inline-block;
  margin-left: 8px;
  color: var(--red-bright);
}

.biz-links li a:hover,
.biz-links li a:focus-visible {
  color: var(--red-bright);
  border-color: rgba(196,0,18,0.5);
}

.biz-links-empty {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

/* ロゴは白プレートに載せる（各社ロゴをブランド本来の色のまま掲出するため） */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 36px;
}

.logo-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: fit-content;
}

.logo-frame {
  display: grid;
  place-items: center;
  width: 260px;
  height: 116px;
  padding: 18px 22px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.16);
  background: #FFFFFF;
  color: #1A1A1A;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.logo-frame-wide {
  width: 320px;
}

/* ロゴ未受領の差し替え枠（画像受領後は <img> に置き換える） */
.logo-frame-tbd {
  color: #2E2E2E;
}

.logo-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}

/* 黄色ロゴ（TVNC）を枠いっぱいに敷き詰め、白地を出さない */
.logo-frame-fill {
  padding: 0;
  background: #FEC305;
  overflow: hidden;
}

.logo-frame-fill img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

/* 白プレートを外してロゴ本体のみを表示（Muffin・白抜きロゴ） */
.logo-frame-bare {
  background: transparent;
  border: none;
  padding: 0 4px;
}

/* 教育事業の学校ロゴは枠を高くしてロゴ・文字を大きく見せる */
.logo-frame-edu {
  height: 156px;
}

/* 沖縄エンタは正方形寄りのため余白を詰めてさらに大きく */
.logo-frame-okitame {
  padding: 8px 14px;
}

.logo-link:hover .logo-frame,
.logo-link:focus-visible .logo-frame {
  transform: translateY(-4px);
  border-color: rgba(196,0,18,0.55);
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}

.logo-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.logo-link-cta span {
  color: var(--red-bright);
  transition: transform 0.25s ease;
}

.logo-link:hover .logo-link-cta span,
.logo-link:focus-visible .logo-link-cta span {
  transform: translateX(8px);
}

.related-block {
  margin-top: 88px;
}

.related-block .section-heading {
  margin-bottom: 28px;
}

.strength-list {
  display: grid;
  gap: 16px;
}

.strength-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.strength-item span {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
}

.strength-item h3 {
  margin: 0;
}

.message-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) 1.18fr;
  gap: 80px;
  align-items: center;
}

.portrait-frame {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(196,0,18,0.12), transparent 36%),
    #101010;
  overflow: hidden;
}

.portrait-frame img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.04);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 32px;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.35s ease;
  pointer-events: none;
}

.portrait-frame:hover::before {
  transform: scale(1.05);
}

.portrait-frame span {
  position: relative;
  color: rgba(255,255,255,0.28);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.12em;
}

.message-content {
  max-width: 720px;
}

.leader-name {
  color: var(--text);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.25rem;
}

.leader-name span {
  display: block;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.company-list {
  margin: 48px 0 0;
  border-top: 1px solid var(--border);
}

.company-list div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.company-list dt {
  color: var(--sub);
  font-weight: 700;
}

.company-list dd {
  margin: 0;
}

.contact-panel {
  padding: 72px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 86% 26%, rgba(196,0,18,0.22), transparent 30%),
    rgba(255,255,255,0.03);
  text-align: center;
}

.contact-panel p {
  max-width: 680px;
  margin-inline: auto;
}

.contact-button {
  margin-top: 24px;
}

/* お問い合わせフォーム */
.contact-form {
  max-width: 760px;
  margin: 40px auto 0;
  text-align: left;
  display: grid;
  gap: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form-field {
  display: grid;
  gap: 10px;
}

.form-label {
  color: var(--sub);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.form-label em {
  margin-left: 8px;
  padding: 2px 8px;
  color: var(--text);
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  background: var(--red);
  vertical-align: middle;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.35);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red-bright);
  background: rgba(255,255,255,0.06);
}

/* ネイティブ検証エラー時の縁取り（送信後のみ表示されるよう :focus は除外） */
.contact-form input:user-invalid,
.contact-form textarea:user-invalid {
  border-color: var(--red-bright);
}

.select-wrap {
  position: relative;
  display: block;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--sub);
  border-bottom: 1px solid var(--sub);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.contact-form select {
  padding-right: 42px;
  cursor: pointer;
}

.contact-form select option {
  color: #111;
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 4px 0 0;
  min-height: 1.2em;
  font-size: 0.9rem;
}

.form-status.is-error {
  color: var(--red-bright);
}

.form-status.is-success {
  color: #46c07a;
}

.form-submit {
  justify-self: start;
  min-width: 220px;
  margin-top: 4px;
}

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--base);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  margin: 0;
}

.reveal {
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(16px);
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .site-nav {
    gap: 22px;
  }

  .brand {
    min-width: 220px;
  }

  .hero-service-strip {
    left: 24px;
    right: 24px;
  }

  .service-card {
    padding: 36px 24px 28px;
  }
}

@media (max-width: 980px) {
  .header-inner {
    padding-left: 20px;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 24px 20px 32px;
    background: rgba(5,5,5,0.96);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    min-height: 52px;
    font-size: 0.9rem;
  }

  .nav-link::after {
    left: 0;
    bottom: 8px;
    transform: none;
  }

  .nav-contact {
    margin-top: 16px;
    min-width: 0;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding-bottom: 96px;
  }

  .hero-grid,
  .split-layout,
  .message-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-content {
    padding-left: 0;
  }

  h1 {
    word-break: normal;
  }

  .scroll-cue {
    display: none;
  }

  .hero-service-strip {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: min(100% - 40px, var(--container));
    margin: 64px auto 0;
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual {
    min-height: 320px;
  }

  .network-panel {
    height: 360px;
    min-height: 320px;
  }

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

  .biz-block {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-body {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 72px;
  }

  .container {
    width: min(100% - 32px, var(--container));
  }

  .section {
    padding: 88px 0;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo-frame {
    padding: 0;
  }

  .brand-logo-img {
    height: 42px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 1.7rem;
  }

  .brand-ja {
    font-size: 0.95rem;
  }

  .brand-en {
    font-size: 0.62rem;
  }

  .hero {
    padding: 108px 0 72px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(5,5,5,0.96), rgba(5,5,5,0.72));
  }

  .hero-actions {
    display: grid;
  }

  .hero-service-strip,
  .hero-service-strip.strip-3,
  .works-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
    padding: 30px 26px;
  }

  .strength-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .portrait-frame {
    min-height: 360px;
  }

  .company-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-panel {
    padding: 48px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .form-submit {
    justify-self: stretch;
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .hero-canvas,
  .cursor-ring {
    display: none;
  }
}
