
@charset "UTF-8";

/* ========================================
   基本設定
======================================== */

:root {
  --navy: #122b45;
  --blue: #1b6b9a;
  --ink: #263746;
  --muted: #687a89;
  --line: #dce5eb;
  --bg: #f5f8fa;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.95;
}

a {
  color: inherit;
}

a:hover {
  color: var(--blue);
}

.container {
  width: min(1080px, calc(100% - 44px));
  margin: auto;
}


/* ========================================
   ヘッダー・ナビゲーション
======================================== */

.site-header {
  background: white;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .05em;
  text-decoration: none;
  color: var(--navy);
}

.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--blue);
  line-height: 1.2;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

nav a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}


/* ========================================
   メインビジュアル
======================================== */

.hero {
  background: linear-gradient(120deg, #122b45, #1e4669);
  color: white;
  padding: 115px 0 125px;
  position: relative;
  overflow: hidden;
}

.hero:after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border: 1px solid #ffffff22;
  border-radius: 50%;
  right: -150px;
  top: -210px;
  box-shadow: 0 0 0 90px #ffffff07, 0 0 0 180px #ffffff05;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .22em;
  font-weight: 700;
  color: #8cc3e5;
}

.hero h1 {
  font-size: clamp(29px, 5vw, 56px);
  line-height: 1.4;
  letter-spacing: .04em;
  margin: 22px 0;
}

.hero p {
  font-size: 16px;
  max-width: 680px;
  color: #dceaf5;
}

.hero .actions {
  margin-top: 36px;
}


/* ========================================
   ボタン
======================================== */

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 3px;
  background: var(--blue);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.btn:hover {
  background: #12537d;
  color: white;
}

.btn-light {
  background: white;
  color: var(--navy);
}


/* ========================================
   共通セクション
======================================== */

section.content-section {
  padding: 95px 0;
  scroll-margin-top: 78px;
}

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

.section-head {
  margin-bottom: 40px;
}

.section-head span {
  display: block;
  color: var(--blue);
  font-size: 12px;
  letter-spacing: .2em;
  font-weight: 800;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  color: var(--navy);
  margin: 5px 0 0;
  letter-spacing: .06em;
}

.rule {
  width: 50px;
  height: 3px;
  background: var(--blue);
  margin-top: 18px;
}

.lead {
  font-size: 17px;
  line-height: 2.2;
  margin-bottom: 38px;
}


/* ========================================
   会社概要
======================================== */

.company-content .box4 {
  font-size: 17px;
  margin-bottom: 36px;
}

.company-content h3 {
  font-size: 20px;
  color: var(--navy);
  margin: 36px 0 16px;
}

.company-content table {
  border-collapse: collapse;
  width: 100%;
}

.company-content th,
.company-content td {
  border-bottom: 1px solid var(--line);
  padding: 16px;
  text-align: left;
  vertical-align: top;
  white-space: pre-line;
}

.company-content th {
  width: 180px;
  color: var(--navy);
  background: #edf3f7;
}


/* ========================================
   事業内容
======================================== */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  border: 1px solid var(--line);
  background: white;
  padding: 32px 27px;
}

.service-card .num {
  color: var(--blue);
  font-weight: 800;
  letter-spacing: .12em;
  font-size: 12px;
}

.service-card h3 {
  color: var(--navy);
  font-size: 20px;
  line-height: 1.5;
  margin: 15px 0;
}

.service-card p {
  margin: 0;
}


/* ========================================
   事業所一覧
======================================== */

.offices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.office {
  background: white;
  border: 1px solid var(--line);
  padding: 28px;
}

.office h3 {
  color: var(--navy);
  margin: 0 0 14px;
  font-size: 19px;
}

.office p {
  margin: 6px 0;
}

.office a {
  color: var(--blue);
}


/* ========================================
   サポート
======================================== */

.support {
  background: #122b45;
  color: white;
}

.support .section-head h2 {
  color: white;
}

.support .section-head span {
  color: #8cc3e5;
}

.support p {
  max-width: 900px;
}

.support .btn {
  margin-top: 22px;
  background: white;
  color: var(--navy);
}


/* ========================================
   フッター
======================================== */

footer {
  background: #0d2033;
  color: #d4e0ea;
  padding: 35px 0;
  font-size: 12px;
}

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

footer a {
  color: inherit;
}


/* ========================================
   プライバシーポリシー
======================================== */

.policy {
  padding: 70px 0;
}

.policy h3 {
  color: var(--navy);
}


/* ========================================
   レスポンシブ（基本設定）
======================================== */

@media (max-width: 800px) {

  .header-inner {
    padding: 16px 0;
    display: block;
  }

  .brand {
    display: block;
    margin-bottom: 12px;
  }

  nav {
    gap: 10px 17px;
  }

  .hero {
    padding: 75px 0 85px;
  }

  .service-grid,
  .offices {
    grid-template-columns: 1fr;
  }

  section.content-section {
    padding: 65px 0;
  }

  .company-content th {
    width: 115px;
  }

  .company-content th,
  .company-content td {
    padding: 12px 9px;
    font-size: 13px;
  }

}


/* ========================================
   メインビジュアル追加デザイン
======================================== */

.hero {
  background: radial-gradient(
    ellipse at 70% 40%,
    #0f3a66 0%,
    #071a33 60%,
    #030b18 100%
  );
}

.hero:after {
  display: none;
}

#flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  text-shadow: 0 0 24px rgba(80, 180, 255, .35);
}


/* ========================================
   ロゴアニメーション
======================================== */

.logo-wrap {
  position: relative;
  display: inline-block;
  overflow: hidden;
  line-height: 0;
}

.logo {
  height: 52px;
  width: auto;
  display: block;
  animation: logoIn 1.2s cubic-bezier(.2, .8, .2, 1) both;
}

.shine {
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent,
    rgba(255, 255, 255, .95) 50%,
    transparent
  );
  mix-blend-mode: screen;
  transform: skewX(-20deg);
  animation: shine 3.5s ease-in-out 1.2s infinite;
  pointer-events: none;
}

@keyframes shine {

  0% {
    left: -60%;
  }

  35%,
  100% {
    left: 130%;
  }

}

@keyframes logoIn {

  from {
    opacity: 0;
    transform: translateX(-16px);
    filter: blur(6px) drop-shadow(0 0 0 #3af);
  }

  60% {
    filter: blur(0) drop-shadow(0 0 10px #39f);
  }

  to {
    opacity: 1;
    transform: none;
    filter: none;
  }

}

@media (prefers-reduced-motion: reduce) {

  .shine,
  .logo {
    animation: none;
  }

}


/* ========================================
   ロゴサイズ調整
======================================== */

.logo {
  height: 72px;
}

@media (max-width: 800px) {

  .logo {
    height: 58px;
  }

}


/* ========================================
   メインビジュアル登場アニメーション
======================================== */

.hero-inner > * {
  opacity: 0;
  animation: heroUp .9s cubic-bezier(.2, .8, .2, 1) forwards;
}

.hero-inner > *:nth-child(1) {
  animation-delay: .2s;
}

.hero-inner > *:nth-child(2) {
  animation-delay: .4s;
}

.hero-inner > *:nth-child(3) {
  animation-delay: .6s;
}

.hero-inner > *:nth-child(4) {
  animation-delay: .8s;
}

@keyframes heroUp {

  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: none;
    filter: none;
  }

}


/* ========================================
   スクロール時の表示アニメーション
======================================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity .8s ease,
    transform .8s cubic-bezier(.2, .8, .2, 1);
}

.reveal.show {
  opacity: 1;
  transform: none;
}

.rule {
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .8s .3s;
}

.show .rule,
.show.rule {
  transform: scaleX(1);
}


/* ========================================
   カードのホバーアニメーション
======================================== */

.service-card,
.office {
  position: relative;
  overflow: hidden;
  transition:
    transform .3s,
    box-shadow .3s,
    opacity .8s ease;
}

.service-card:hover,
.office:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(18, 43, 69, .15);
}

.service-card:before,
.office:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    #3ab0ff,
    transparent
  );
}

.service-card.show:before,
.office.show:before {
  animation: scan 3s ease-in-out infinite;
}

@keyframes scan {

  0% {
    left: -100%;
  }

  60%,
  100% {
    left: 100%;
  }

}


/* ========================================
   アニメーション軽減設定
======================================== */

@media (prefers-reduced-motion: reduce) {

  .reveal,
  .hero-inner > * {
    opacity: 1;
    transform: none;
    animation: none;
  }

}


/* ========================================
   ロゴサイズ最終調整
======================================== */

.logo {
  height: 30px;
  max-width: min(340px, 60vw);
  object-fit: contain;
}

@media (max-width: 800px) {

  .logo {
    height: 46px;
  }

}


/* ========================================
   スマホ用ヘッダー最終調整
======================================== */

@media (max-width: 800px) {

  .header-inner {
    display: block;
    padding: 10px 0 8px;
    min-height: 0;
  }

  .brand {
    display: block;
    margin: 0 auto 8px;
    width: max-content;
  }

  .logo {
    height: 34px;
    max-width: 70vw;
  }

  nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    padding-top: 6px;
  }

  nav a {
    text-align: center;
    font-size: 11px;
    padding: 6px 2px;
    white-space: nowrap;
    border-left: 1px solid var(--line);
    line-height: 1.4;
  }

  nav a:first-child {
    border-left: 0;
  }

  section.content-section {
    scroll-margin-top: 110px;
  }

}
