/* interlink.ne.jp 風：白帯スティッキーヘッダー・ヒーロー・青CTA（デモ） */
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@600;700&display=swap");

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--site-header-band, 4.5rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
:root {
  --il-font-display-en: "Bebas Neue", "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
  --il-blue: #0066cc;
  --il-blue-hover: #0052a3;
  --il-navy: #1a2744;
  --il-teal: #0d4a5c;
  --il-teal-light: #15607a;
  --il-bg: #f7f8fa;
  --il-card: #ffffff;
  --il-text: #222;
  --il-muted: #5a5a5a;
  --il-line: #e4e6ea;
  /* サイト共通コンテンツ幅（ヘッダーと同じ） */
  --il-max: 75rem;
  --il-pad-x: clamp(1.25rem, 5.5vw, 3.75rem);
  /* 記事詳細のサイド列（本文は残り幅を使い、他ページと同じ --il-max） */
  --il-topic-side: 22rem;
  --il-topic-gap: 2rem;
  /* sticky ヘッダー帯の高さ近似（折返し時は広めに） */
  --site-header-band: 5.5rem;
}

/* ヘッダーと同一のコンテンツシェル */
.site-shell {
  max-width: var(--il-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--il-pad-x);
  padding-right: var(--il-pad-x);
  box-sizing: border-box;
}

@media (max-width: 56rem) {
  :root {
    --site-header-band: 6.75rem;
  }
}

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

body {
  margin: 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--il-text);
  background: var(--il-bg);
}

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

a:hover {
  text-decoration: underline;
}

/* スティッキー（サブページは常に白帯） */
.site-header {
  background: var(--il-card);
  box-shadow: 0 1px 0 var(--il-line);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.28s ease, box-shadow 0.28s ease;
}

/* TOP 初期：白帯なし・ヒーローが背後に見える */
.page-home .site-header {
  background: transparent;
  box-shadow: none;
}

.page-home:not(.header-solid) .site-header__company {
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.page-home:not(.header-solid) .site-header__brand img {
  filter: brightness(0) invert(1);
}

.page-home:not(.header-solid) .site-nav a {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.page-home:not(.header-solid) .site-nav a:hover {
  color: #fff;
}

.page-home:not(.header-solid) .site-nav a.is-active {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.9);
}

/* TOP スクロール後：白帯に戻す */
.page-home.header-solid .site-header {
  background: var(--il-card);
  box-shadow: 0 1px 0 var(--il-line);
}

.site-header__inner {
  max-width: var(--il-max);
  margin: 0 auto;
  padding: 1rem var(--il-pad-x);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
}

.site-header__brand:hover {
  text-decoration: none;
  opacity: 0.92;
}

.site-header__brand img {
  height: 2.25rem;
  width: auto;
  display: block;
}

.site-header__brand .site-header__logo-type {
  height: 1.35rem;
}

.site-header__company {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--il-navy);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 1.15rem;
}

.site-nav a {
  color: var(--il-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.35rem 0;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--il-navy);
  text-decoration: underline;
}

.site-nav a.is-active {
  color: var(--il-navy);
  font-weight: 700;
  border-bottom: 2px solid var(--il-navy);
  margin-bottom: -2px;
}

main {
  overflow-x: hidden;
}

.main--home {
  padding-top: 0;
}

/* ヒーローを上にずらし、透過ヘッダー直下まで背景を表示 */
.page-home .main--home {
  margin-top: calc(-1 * var(--site-header-band));
}

.hero {
  min-height: min(58vh, 32rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 1.25rem;
  background: var(--il-navy) center/cover no-repeat;
  color: #fff;
  position: relative;
}

/* ヒーロー：サブページ用は従来どおり帯の下に 1 画面分 */
.hero--interlink {
  --hero-pad-x: clamp(1.75rem, 5.5vw, 3.75rem);
  min-height: calc(100vh - var(--site-header-band));
  height: calc(100vh - var(--site-header-band));
  max-height: calc(100vh - var(--site-header-band));
  min-height: calc(100dvh - var(--site-header-band));
  height: calc(100dvh - var(--site-header-band));
  max-height: calc(100dvh - var(--site-header-band));
  box-sizing: border-box;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  background: var(--il-navy);
}

/* TOP：ビューポート全体の高さ（上はヘッダー帯ぶん padding で背景が見える） */
.page-home .hero--interlink {
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  max-height: none;
  padding-top: var(--site-header-band);
}

/* 写真・動画用フルブリード背景レイヤー */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--il-navy);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.001);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(26, 39, 68, 0.88) 0%, rgba(26, 39, 68, 0.5) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero--interlink::after {
  background: linear-gradient(
    105deg,
    rgba(12, 22, 40, 0.88) 0%,
    rgba(12, 22, 40, 0.5) 50%,
    rgba(12, 22, 40, 0.35) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--il-max);
  margin: 0 auto;
  width: 100%;
  align-self: center;
}

.hero--interlink .hero__inner {
  text-align: left;
  box-sizing: border-box;
  padding:
    clamp(1.25rem, 4vh, 2rem)
    var(--hero-pad-x, 1.75rem)
    max(1.5rem, env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-height: 0;
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.65rem, 4.5vw, 2.65rem);
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: 0.03em;
  max-width: 22em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.hero--interlink h1 {
  font-size: clamp(1.75rem, 4.8vw, 2.85rem);
}

.hero__sub {
  margin: 0 0 2rem;
  max-width: 36rem;
  font-size: 1rem;
  opacity: 0.92;
  line-height: 1.75;
}

.hero p {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  font-size: 1rem;
  opacity: 0.94;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: max(1.35rem, env(safe-area-inset-bottom, 0px));
  z-index: 3;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.hero-scroll:hover {
  color: #fff;
}

.hero-scroll__mouse {
  position: relative;
  width: 1.35rem;
  height: 2.15rem;
  border: 1.5px solid currentColor;
  border-radius: 0.85rem;
}

.hero-scroll__wheel {
  position: absolute;
  left: 50%;
  top: 0.4rem;
  width: 0.2rem;
  height: 0.35rem;
  margin-left: -0.1rem;
  border-radius: 999px;
  background: currentColor;
  animation: hero-scroll-wheel 1.6s ease-in-out infinite;
}

.hero-scroll__label {
  font-family: var(--il-font-display-en);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  line-height: 1;
  opacity: 0.9;
}

@keyframes hero-scroll-wheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(0.55rem);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll__wheel {
    animation: none;
  }
}

/* 参考サイトの青い主ボタン（角丸小さめ） */
.btn-hero-cta {
  display: inline-block;
  padding: 0.95rem 1.75rem;
  background: var(--il-blue);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 0.35rem;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.35);
  line-height: 1.4;
  max-width: 100%;
}

.btn-hero-cta:hover {
  background: var(--il-blue-hover);
  text-decoration: none !important;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  background: var(--il-blue);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 0.35rem;
  text-decoration: none !important;
}

.btn-primary:hover {
  background: var(--il-blue-hover);
  text-decoration: none !important;
}

button.btn-primary {
  font-family: inherit;
}

.btn-ghost {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0.35rem;
  text-decoration: none !important;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.card-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.5rem;
}

.card-showcase__item {
  background: var(--il-card);
  border: 1px solid var(--il-line);
  border-radius: 0.35rem;
  overflow: hidden;
}

.card-showcase__thumb {
  position: relative;
  height: 9rem;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.card-showcase__thumb .topic-tile__cat {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
}

.card-showcase__item h3 {
  margin: 0;
  padding: 1rem 1rem 0.35rem;
  font-size: 1rem;
  color: var(--il-navy);
}

.card-showcase__item p {
  margin: 0;
  padding: 0 1rem 1.15rem;
  font-size: 0.8125rem;
  color: var(--il-muted);
  line-height: 1.6;
}

.card-showcase__link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.card-showcase__link:hover h3,
.card-showcase__link:hover h4 {
  color: var(--il-blue);
}

.card-showcase__item h4 {
  margin: 0;
  padding: 1rem 1rem 0.35rem;
  font-size: 1rem;
  color: var(--il-navy);
  line-height: 1.45;
}

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

@media (max-width: 52rem) {
  .card-showcase--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 36rem) {
  .card-showcase--home {
    grid-template-columns: 1fr;
  }
}

.service-achievements {
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--il-line);
}

.service-achievements .section-head {
  margin-bottom: 1.35rem;
}

.band--service {
  background: linear-gradient(180deg, #e9eef5 0%, #e2e8f0 100%);
  padding: 3rem 0;
}

.band--works {
  background: #fff;
  padding: 3rem 0;
}

.band--works .section-head {
  margin-bottom: 1.5rem;
}

.section-block {
  max-width: var(--il-max);
  margin: 0 auto;
  padding: 3.25rem var(--il-pad-x);
  box-sizing: border-box;
}

.section-block--tight {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.section-head {
  margin: 0 0 1.75rem;
}

/* 英字見出し：凝縮サンセリフ・大振り（参考: TOPICS 系タイポ） */
.section-head__en {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem 1.25rem;
  font-family: var(--il-font-display-en);
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #0a0a0a;
  margin-bottom: 0.35rem;
  font-synthesis: none;
}

.section-head__en-label {
  display: block;
}

.section-head__ja {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--il-navy);
  letter-spacing: 0.02em;
}

/* Apple風テキストリンク（見出し横） */
.link-apple {
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  margin-left: auto;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #06c;
  text-decoration: none;
  white-space: nowrap;
}

.link-apple:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.link-apple__chev {
  display: inline-block;
  width: 0.38em;
  height: 0.38em;
  margin-top: 0.05em;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.link-apple:hover .link-apple__chev {
  transform: translateX(0.15em) rotate(45deg);
}

/* TOPICS：横スクロール＋左右矢印（参考サイトのスライダー風） */
.section-block--topics {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding: 3.25rem 0;
  background: var(--il-card);
  border-top: 1px solid var(--il-line);
  border-bottom: 1px solid var(--il-line);
}

/* 見出しのみ他セクションと同じカラム幅に揃える */
.section-block--topics .section-head {
  max-width: var(--il-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--il-pad-x);
  padding-right: var(--il-pad-x);
}

.topics-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.25rem, 1.5vw, 0.65rem);
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: clamp(0.35rem, 1.5vw, 0.75rem);
  padding-right: clamp(0.35rem, 1.5vw, 0.75rem);
}

.topics-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.topics-carousel__track {
  display: flex;
  gap: 1.25rem;
  padding: 0.35rem 0 0.85rem;
}

.topics-carousel__arrow {
  flex-shrink: 0;
  width: 2.65rem;
  height: 2.65rem;
  border: none;
  border-radius: 50%;
  background: #dfe3ea;
  color: #3d4555;
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background 0.2s, color 0.2s;
}

.topics-carousel__arrow:hover {
  background: #cfd5df;
}

.topics-carousel__arrow span {
  display: block;
  margin-top: -0.12em;
}

.topic-tile {
  flex: 0 0 calc((100% - 3.75rem) / 4);
  min-width: min(100%, 15.5rem);
  scroll-snap-align: start;
}

@media (min-width: 72rem) {
  .topic-tile {
    max-width: none;
  }
}

@media (max-width: 72rem) {
  .topic-tile {
    max-width: 20rem;
    flex: 0 0 calc((100% - 2.5rem) / 3);
    min-width: 14rem;
  }
}

@media (max-width: 52rem) {
  .topic-tile {
    flex: 0 0 calc((100% - 1.25rem) / 2);
    min-width: 12.5rem;
  }
}

@media (max-width: 36rem) {
  .topic-tile {
    flex: 0 0 86%;
    min-width: 86%;
    max-width: none;
  }
}

.topic-tile__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.topic-tile__link:hover .topic-tile__title {
  color: var(--il-blue);
}

.topic-tile__media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 0.3rem;
  overflow: hidden;
  background: #e8eaef;
  margin-bottom: 0.85rem;
}

.topic-tile__cat {
  --topic-cat-color: #334155;
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 1;
  margin: 0;
  max-width: calc(100% - 1.1rem);
  padding: 0.28rem 0.55rem;
  border-radius: 2px;
  background: var(--topic-cat-color);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

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

.topic-tile__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
  line-height: 1.45;
  color: #111;
}

.topic-tile__desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #333;
}

.topic-tile__date {
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  color: var(--il-muted);
}

/* カテゴリTOP：カードグリッド */
.topic-page--category {
  padding-top: 1.5rem;
}

.topic-category {
  max-width: var(--il-max);
  margin: 0 auto;
  padding-left: var(--il-pad-x);
  padding-right: var(--il-pad-x);
  box-sizing: border-box;
}

.topic-category__head {
  margin: 0 0 1.75rem;
}

.topic-category__head h1 {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  color: var(--il-navy);
  line-height: 1.35;
}

.topic-category__lead {
  margin: 0;
  color: var(--il-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 40rem;
}

.about-prose {
  margin: 0 0 2.75rem;
  max-width: 42rem;
  color: var(--il-muted);
  line-height: 1.9;
}

.about-prose--in-split {
  margin: 0;
  max-width: none;
}

.about-blog {
  margin: 1.75rem 0 0;
  padding: 1.15rem 1.25rem;
  max-width: 22rem;
  border: 1px solid var(--il-line);
  border-radius: 0.35rem;
  background: #fff;
}

.about-blog__eyebrow {
  margin: 0 0 0.25rem;
  font-family: var(--il-font-display-en);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--il-muted);
  line-height: 1;
}

.about-blog__name {
  margin: 0 0 0.55rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--il-navy);
  letter-spacing: 0.04em;
}

.about-blog__link {
  color: #06c;
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.about-blog__link:hover {
  border-bottom-color: currentColor;
}

.about-prose__lead {
  margin: 0 0 1rem;
  color: var(--il-navy);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.7;
}

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
  margin: 0 0 2.75rem;
}

.about-split__copy .section-head--compact {
  margin: 0 0 1.1rem;
}

.about-split__media {
  margin: 0;
  overflow: hidden;
  border-radius: 1rem;
  background: #f5f5f5;
  box-shadow:
    0 2px 6px rgba(26, 39, 68, 0.08),
    0 14px 32px rgba(26, 39, 68, 0.14);
  filter: none;
  border: none;
  line-height: 0;
}

.about-split__media img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: none;
  filter: none;
}

.about-split--message {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: start;
}

.about-split__media--portrait {
  background: #fff;
  max-width: 22rem;
  margin-left: auto;
}

@media (max-width: 860px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .about-split__media {
    order: -1;
  }

  .about-split--message .about-split__media--portrait {
    order: 0;
    max-width: 18rem;
    margin-left: 0;
    margin-right: auto;
  }
}

.about-split--profile {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  margin-bottom: 0;
}

.about-split__map {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.about-map {
  display: block;
  width: 100%;
  min-height: 18rem;
  height: 100%;
  border: 0;
  border-radius: 0.25rem;
  background: #e8eef0;
  box-shadow:
    0 1px 2px rgba(26, 39, 68, 0.06),
    0 8px 24px rgba(26, 39, 68, 0.12);
}

.about-map__link {
  margin: 0;
  font-size: 0.8125rem;
}

.about-map__link a {
  color: #06c;
  text-decoration: none;
}

.about-map__link a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (max-width: 860px) {
  .about-split--profile {
    grid-template-columns: 1fr;
  }

  .about-map {
    min-height: 16rem;
  }
}

.profile-table {
  width: 100%;
  max-width: none;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.profile-table th,
.profile-table td {
  padding: 0.85rem 1rem 0.85rem 0;
  border-bottom: 1px solid var(--il-line);
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}

.profile-table th {
  width: 7.5rem;
  color: var(--il-muted);
  font-weight: 600;
  white-space: nowrap;
}

.profile-table td {
  color: var(--il-text);
}

.profile-table a {
  color: #06c;
  text-decoration: none;
}

.profile-table a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.topic-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
}

.topic-card-grid .topic-tile {
  flex: none;
  min-width: 0;
  max-width: none;
  width: 100%;
}

@media (max-width: 52rem) {
  .topic-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 36rem) {
  .topic-card-grid {
    grid-template-columns: 1fr;
  }
}

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

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

@media (max-width: 36rem) {
  .service-grid,
  .service-grid--page {
    grid-template-columns: 1fr;
  }
}

.service-card {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--il-line);
}

.service-card h2,
.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--il-navy);
}

.service-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--il-muted);
}

.band {
  /* 背景は全幅。中身の幅・余白は section-block と同じ */
  padding: 2.75rem 0;
}

.band--about {
  background: linear-gradient(180deg, #eef5f4 0%, #e2eeed 100%);
}

.band--careers {
  background: linear-gradient(135deg, #1a2744 0%, #0f3460 100%);
  color: #fff;
}

.band__inner {
  max-width: var(--il-max);
  margin: 0 auto;
  padding-left: var(--il-pad-x);
  padding-right: var(--il-pad-x);
  box-sizing: border-box;
}

.band--careers .section-head__en {
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.band--careers .section-head__ja {
  color: #fff;
}

.band--careers p {
  margin: 0 0 1.25rem;
  max-width: 40rem;
  opacity: 0.95;
}

.band--careers a.btn-primary {
  background: #fff;
  color: var(--il-navy) !important;
}

.band--careers a.btn-primary:hover {
  background: #eef2f7;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--il-line);
}

.news-list li {
  border-bottom: 1px solid var(--il-line);
}

.news-list a {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 1rem 0.15rem;
  color: inherit;
  align-items: baseline;
}

.news-list a:hover {
  background: rgba(0, 102, 204, 0.06);
  text-decoration: none;
}

.news-list time {
  font-size: 0.8125rem;
  color: var(--il-muted);
  font-variant-numeric: tabular-nums;
}

.news-list span {
  font-size: 0.9375rem;
  font-weight: 500;
}

/* お知らせ一覧（topic レイアウト内） */
.news-list--topic {
  margin-top: 0.25rem;
}

.news-list--topic a {
  padding: 1.05rem 0.1rem;
}

.news-list--topic time {
  min-width: 5.5rem;
}

.contact-strip {
  background: var(--il-card);
  border: 1px solid var(--il-line);
  border-radius: 0.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}

.contact-strip p {
  margin: 0 0 1.25rem;
  color: var(--il-muted);
}

.page-head {
  max-width: var(--il-max);
  margin: 0 auto;
  padding: 2.25rem var(--il-pad-x) 1.5rem;
  border-bottom: 1px solid var(--il-line);
  box-sizing: border-box;
}

.page-head h1 {
  margin: 0 0 0.4rem;
  font-size: 1.65rem;
  color: var(--il-navy);
}

.page-head .lead {
  margin: 0;
  color: var(--il-muted);
  font-size: 0.95rem;
}

.page-body {
  max-width: var(--il-max);
  margin: 0 auto;
  padding: 2rem var(--il-pad-x) 3rem;
  box-sizing: border-box;
}

.page-body .section-head {
  margin-top: 2.5rem;
}

/* 下層ページ：左右余白は中のシェル側でヘッダーと揃える */
.topic-page {
  padding: 1.5rem 0 3.5rem;
}

.page-breadcrumb {
  max-width: var(--il-max);
  margin: 0 auto 1rem;
  padding-left: var(--il-pad-x);
  padding-right: var(--il-pad-x);
  box-sizing: border-box;
}

.page-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--il-muted);
  line-height: 1.5;
}

.page-breadcrumb__list li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.page-breadcrumb__list li:not(:last-child)::after {
  content: "›";
  margin-left: 0.45rem;
  margin-right: 0.35rem;
  color: #94a3b8;
}

.page-breadcrumb__list a {
  color: var(--il-blue);
  text-decoration: none;
}

.page-breadcrumb__list a:hover {
  text-decoration: underline;
}

.page-breadcrumb__list [aria-current="page"] span {
  color: var(--il-navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 18rem;
}

.topic-article__back-top {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
}

.topic-article__back-top a {
  color: var(--il-blue);
  text-decoration: none;
}

.topic-article__back-top a:hover {
  text-decoration: underline;
}

.topic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--il-topic-side);
  gap: var(--il-topic-gap);
  align-items: start;
  width: 100%;
  max-width: var(--il-max);
  margin: 0 auto;
  padding-left: var(--il-pad-x);
  padding-right: var(--il-pad-x);
  box-sizing: border-box;
}

.topic-article {
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.topic-article__body {
  min-width: 0;
  max-width: 100%;
}

.topic-article__head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  margin: 0 0 1.15rem;
  padding: 1rem 1.25rem 1.05rem;
  border: 1px solid var(--il-line);
  border-radius: 8px;
  background: var(--il-card);
  box-sizing: border-box;
}

.topic-article__head h1 {
  margin: 0;
  min-width: 0;
  font-size: 1.55rem;
  line-height: 1.4;
  color: var(--il-navy);
}

.topic-article__meta {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.45rem;
}

.topic-article__author {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.topic-article__author-photo {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--il-line);
}

.topic-article__author-photo--empty {
  display: block;
  background: linear-gradient(135deg, #e8edf3 0%, #d7dee8 100%);
}

.topic-article__author-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--il-navy);
  line-height: 1.3;
}

.topic-article__date {
  margin: 0;
  color: var(--il-muted);
  font-size: 0.92rem;
  white-space: nowrap;
  text-align: right;
}

.topic-author-box {
  margin: 2.25rem 0 0;
  padding: 1.35rem 1.4rem 1.45rem;
  border: 1px solid var(--il-line);
  border-radius: 10px;
  background: #f8fafc;
  box-sizing: border-box;
}

.topic-author-box__heading {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--il-muted);
}

.topic-author-box__body {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.topic-author-box__photo {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--il-line);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--il-line);
}

.topic-author-box__photo--empty {
  display: block;
  background: linear-gradient(135deg, #e8edf3 0%, #d7dee8 100%);
}

.topic-author-box__text {
  min-width: 0;
  flex: 1;
}

.topic-author-box__name {
  margin: 0.15rem 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--il-navy);
  line-height: 1.35;
}

.topic-author-box__bio {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: #475569;
}

.topic-read-end {
  height: 1px;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

/* 下端ひょっこりバー */
.topic-sub-peek {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  max-width: min(28rem, calc(100vw - 1.5rem));
  padding: 0.55rem 0.45rem 0.55rem 0.65rem;
  border: 1px solid var(--il-line);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  background: #fff;
  box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.14);
  transform: translate(-50%, 110%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.topic-sub-peek.is-visible {
  transform: translate(-50%, 0);
}

.topic-sub-peek__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  margin: 0;
  padding: 0.35rem 0.5rem;
  border: none;
  background: transparent;
  color: var(--il-navy);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
}

.topic-sub-peek__photo {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.topic-sub-peek__text {
  line-height: 1.3;
}

.topic-sub-peek__close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

/* 読了モーダル */
body.topic-sub-open {
  overflow: hidden;
}

.topic-sub-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.topic-sub-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.topic-sub-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.topic-sub-modal__panel {
  position: relative;
  z-index: 1;
  width: min(28rem, 100%);
  max-height: min(92vh, 40rem);
  overflow: auto;
  margin: 0;
  padding: 1.5rem 1.35rem 1.75rem;
  border-radius: 18px 18px 0 0;
  background: #fff;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.2);
  transform: translateY(100%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.topic-sub-modal.is-open .topic-sub-modal__panel {
  transform: translateY(0);
}

@media (min-width: 40rem) {
  .topic-sub-modal {
    align-items: center;
  }
  .topic-sub-modal__panel {
    border-radius: 14px;
    transform: translateY(1.25rem) scale(0.98);
  }
  .topic-sub-modal.is-open .topic-sub-modal__panel {
    transform: none;
  }
}

.topic-sub-modal__x {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.1rem;
  height: 2.1rem;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 1.2rem;
  cursor: pointer;
}

.topic-sub-modal__author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin: 0.25rem 0 0.85rem;
}

.topic-sub-modal__photo {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--il-line);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--il-line);
}

.topic-sub-modal__photo--empty {
  display: block;
  background: linear-gradient(135deg, #e8edf3 0%, #d7dee8 100%);
}

.topic-sub-modal__who {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--il-navy);
}

.topic-sub-modal__title {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--il-navy);
  text-align: center;
}

.topic-sub-modal__msg {
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #475569;
  text-align: center;
}

.topic-sub-form {
  display: grid;
  gap: 0.85rem;
}

.topic-sub-form__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.topic-sub-form__label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--il-navy);
}

.topic-sub-form__label input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
}

.topic-sub-form__submit {
  margin-top: 0.25rem;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 8px;
  background: var(--il-blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.topic-sub-form__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.topic-sub-form__error {
  margin: 0;
  color: #b91c1c;
  font-size: 0.85rem;
}

.topic-sub-form__ok {
  margin: 0;
  color: #047857;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.topic-article__eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--il-blue);
}

.topic-article__figure {
  position: relative;
  margin: 0 0 1.1rem;
  border-radius: 8px;
  overflow: hidden;
  background: var(--il-line);
}

.topic-article__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 22rem;
  object-fit: cover;
}

.topic-article__cat {
  --topic-cat-color: #334155;
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 1;
  max-width: calc(100% - 1.3rem);
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
  background: var(--topic-cat-color);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.topic-article__summary {
  margin: 0 0 1.5rem;
  padding: 0.95rem 1.05rem;
  background: #eef3f8;
  border-left: 4px solid var(--il-blue);
  color: var(--il-navy);
  font-size: 0.98rem;
  line-height: 1.75;
}

.topic-article__content {
  max-width: none;
  margin: 0;
  padding: 1.35rem 1.4rem 1.5rem;
  color: var(--il-text);
  font-size: 1rem;
  line-height: 1.9;
  background: var(--il-card);
  border: 1px solid var(--il-line);
  border-radius: 8px;
  box-sizing: border-box;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.topic-article__content img,
.topic-article__content video,
.topic-article__content iframe,
.topic-article__content embed,
.topic-article__content object {
  display: block;
  max-width: 100%;
  height: auto;
}

.topic-article__content figure {
  margin: 1.25em 0;
  max-width: 100%;
}

.topic-article__content figure img {
  margin: 0 auto;
}

.topic-article__content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.topic-article__content p {
  margin: 0 0 1.15em;
}

.topic-article__content p:last-child {
  margin-bottom: 0;
}

.topic-article__content h2,
.topic-article__content h3 {
  margin: 1.75em 0 0.6em;
  color: var(--il-navy);
  line-height: 1.4;
}

.topic-article__content ul,
.topic-article__content ol {
  margin: 0 0 1.15em;
  padding-left: 1.4em;
}

.topic-article__empty {
  margin: 0;
  padding: 1.35rem 1.4rem 1.5rem;
  color: var(--il-muted);
  background: var(--il-card);
  border: 1px solid var(--il-line);
  border-radius: 8px;
}

.topic-article__external {
  margin: 2rem 0 0;
}

.topic-article__back {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--il-line);
}

.topic-sidebar {
  position: sticky;
  top: 1.25rem;
  min-width: 0;
  padding: 1.15rem 1.1rem 1.25rem;
  border: 1px solid var(--il-line);
  border-radius: 8px;
  background: #fff;
}

.topic-sidebar__title {
  margin: 0 0 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--il-line);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--il-navy);
}

.topic-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.topic-sidebar__item {
  border-bottom: 1px solid #eef1f5;
}

.topic-sidebar__item:last-child {
  border-bottom: none;
}

.topic-sidebar__link {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.75rem 0.15rem;
  color: inherit;
  text-decoration: none;
}

.topic-sidebar__link:hover .topic-sidebar__item-title {
  color: var(--il-blue);
}

.topic-sidebar__item.is-current .topic-sidebar__link {
  background: #f5f8fc;
  margin: 0 -0.55rem;
  padding-left: 0.7rem;
  padding-right: 0.7rem;
  border-radius: 6px;
}

.topic-sidebar__item.is-current .topic-sidebar__item-title {
  color: var(--il-blue);
  font-weight: 700;
}

.topic-sidebar__thumb {
  width: 64px;
  height: 42px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 4px;
  background: var(--il-line);
}

.topic-sidebar__thumb--empty {
  display: block;
  background: linear-gradient(135deg, #e8edf3 0%, #d7dee8 100%);
}

.topic-sidebar__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.topic-sidebar__cat {
  --topic-cat-color: #334155;
  display: inline-block;
  align-self: flex-start;
  margin: 0;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  background: var(--topic-cat-color);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.3;
}

.topic-sidebar__item-title {
  display: block;
  min-width: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #1a1a1a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-sidebar__date {
  display: block;
  margin: 0;
  font-size: 0.75rem;
  color: var(--il-muted);
  white-space: nowrap;
}

.topic-sidebar__empty {
  margin: 0;
  font-size: 0.85rem;
  color: var(--il-muted);
}

@media (max-width: 52rem) {
  .topic-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .topic-sidebar {
    position: static;
  }
}

.form-grid {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
}

.form-grid label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--il-navy);
  margin-bottom: 0.35rem;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--il-line);
  border-radius: 0.35rem;
  font: inherit;
}

.form-grid textarea {
  min-height: 8rem;
  resize: vertical;
}

.site-footer {
  margin-top: 0;
  padding: 2.25rem var(--il-pad-x);
  background: #1a2744;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
}

.site-footer__inner {
  max-width: var(--il-max);
  margin: 0 auto;
}

.site-footer strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #fff;
}

.site-footer p {
  margin: 0.2rem 0;
}

.site-footer a {
  color: #9ec9f5;
}

.site-footer__note {
  margin-top: 1.25rem !important;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  opacity: 0.75;
}

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.value-tag {
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
}
