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

: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;
  /* sticky ヘッダー帯の高さ近似（折返し時は広めに） */
  --site-header-band: 5.5rem;
}

@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 clamp(1.75rem, 5.5vw, 3.75rem);
  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__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;
}

/* 参考サイトの青い主ボタン（角丸小さめ） */
.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 {
  height: 9rem;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.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;
}

.section-block {
  max-width: var(--il-max);
  margin: 0 auto;
  padding: 3.25rem 1.25rem;
}

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

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

/* 英字見出し：凝縮サンセリフ・大振り（参考: TOPICS 系タイポ） */
.section-head__en {
  display: block;
  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__ja {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--il-navy);
  letter-spacing: 0.02em;
}

/* 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: clamp(1.25rem, 5.5vw, 3.75rem);
  padding-right: clamp(1.25rem, 5.5vw, 3.75rem);
}

.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 {
  aspect-ratio: 16 / 9;
  border-radius: 0.3rem;
  overflow: hidden;
  background: #e8eaef;
  margin-bottom: 0.85rem;
}

.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;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.35rem;
}

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

.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 {
  padding: 2.75rem 1.25rem;
}

.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;
}

.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;
}

.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 1.25rem 1.5rem;
  border-bottom: 1px solid var(--il-line);
}

.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 1.25rem 3rem;
}

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

.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 1.25rem;
  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;
}
