@charset "UTF-8";

/* =========================================================
   NEOX Corporate Site - Axon審査対応
   Design tokens（指示書 CHAPTER 07 準拠）
   ========================================================= */
:root {
  --navy:        #1A2744; /* プライマリー：ヘッダー・章見出し・テーブルヘッダー */
  --blue:        #2C6EBD; /* アクセント：CTA・セクション見出し・リンク */
  --light-blue:  #EEF4FB; /* テーブル背景・情報ボックス背景 */
  --text:        #374151; /* 本文テキスト */
  --subtext:     #6B7280; /* 補足テキスト・注記 */
  --gray-bg:     #F3F4F6; /* セクション背景の交互カラー */
  --white:       #FFFFFF;
  --border:      #E5E7EB;

  --maxw: 1120px;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(26, 39, 68, 0.08);
  --shadow-hover: 0 8px 28px rgba(26, 39, 68, 0.14);
}

/* ----------------------- Reset ----------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
  font-weight: 400;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { opacity: .8; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.4; color: var(--navy); margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* English / display headings */
.en {
  font-family: "Montserrat", "Inter", sans-serif;
  letter-spacing: .08em;
}

/* ----------------------- Layout ----------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--gray { background: var(--gray-bg); }
.section--navy { background: var(--navy); color: rgba(255,255,255,.9); }

.section-head { text-align: center; margin-bottom: 48px; }
.section-head .en {
  display: block;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.section-head h2 { font-size: clamp(24px, 3vw, 32px); }
.section-head .lead { color: var(--subtext); margin-top: 12px; font-size: 16px; }

/* ----------------------- Header ----------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); font-size: 22px; }
.brand .en { font-family: "Montserrat", sans-serif; letter-spacing: .12em; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); display: inline-block; }
.brand img { height: 38px; width: auto; display: block; }
.site-header .brand img { transform: translateY(-1px); }
/* フッター（ネイビー背景）ではロゴを白抜きにして可読性を確保 */
.site-footer .brand img { height: 38px; filter: brightness(0) invert(1); opacity: .95; }

.gnav ul { display: flex; gap: 28px; align-items: center; }
.gnav a { color: var(--navy); font-size: 15px; font-weight: 500; }
.gnav a.is-current { color: var(--blue); }
.gnav .btn-nav {
  background: var(--blue); color: #fff; padding: 9px 18px; border-radius: 6px; font-weight: 700;
}
.gnav .btn-nav:hover { opacity: 1; background: #2560a8; }

/* 言語切替 */
.lang-switch { display: flex; align-items: center; gap: 2px; font-family: "Montserrat", sans-serif; font-size: 13px; font-weight: 700; }
.gnav .lang-switch a { color: var(--subtext); display: inline-block; padding: 4px 7px; border: 0; border-radius: 5px; line-height: 1; }
.gnav .lang-switch a:hover { color: var(--navy); opacity: 1; }
.gnav .lang-switch a.is-active { color: var(--navy); background: var(--gray-bg); }
.lang-switch .sep { color: var(--border); font-weight: 400; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; padding: 8px; position: relative; z-index: 101; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .3s ease, opacity .3s ease; transform-origin: center; }
/* メニュー展開時はハンバーガー→✕に変形 */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* メニュー開閉時の背景オーバーレイ（スマホ） */
.nav-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(26, 39, 68, .5);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }

/* ----------------------- Buttons ----------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: 8px; font-weight: 700; font-size: 16px;
  cursor: pointer; border: 2px solid transparent; transition: .2s;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: #2560a8; opacity: 1; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); opacity: 1; }
.btn--outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--light-blue); opacity: 1; }

/* ----------------------- Hero ----------------------- */
.hero {
  background-image:
    linear-gradient(90deg, rgba(8,13,28,.90) 0%, rgba(8,13,28,.62) 36%, rgba(8,13,28,.22) 62%, rgba(8,13,28,0) 100%),
    url("../img/main.jpg");
  background-size: cover;
  background-position: center right;
  background-color: #080d1c; /* 画像読み込み前のフォールバック */
  color: #fff; position: relative; overflow: hidden;
}
/* PC時：端末全体を表示しつつ、画像の左端を背景へ滑らかにフェード（幅が広くても継ぎ目・空白が出ない） */
@media (min-width: 901px) {
  .hero {
    background-image:
      linear-gradient(90deg, #080d1c 0%, #080d1c 16%, rgba(8,13,28,0) 50%),
      url("../img/main.jpg");
    background-size: auto 96%, auto 96%;
    background-position: right center, right center;
    background-repeat: no-repeat, no-repeat;
  }
}
.hero-inner { padding: 96px 24px 104px; position: relative; z-index: 2; max-width: 784px; }
.hero h1 { color: #fff; font-size: clamp(30px, 5vw, 48px); line-height: 1.3; letter-spacing: .01em; }
.hero .sub { margin-top: 24px; font-size: 17px; line-height: 1.9; color: rgba(255,255,255,.88); }
.hero .actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ----------------------- Numbers ----------------------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.num-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 20px; text-align: center; box-shadow: var(--shadow);
}
.num-card .value { font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--blue); font-size: clamp(28px, 4vw, 40px); line-height: 1.1; }
.num-card .label { color: var(--subtext); font-size: 14px; margin-top: 10px; }

/* ----------------------- Cards (services) ----------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 28px; box-shadow: var(--shadow); transition: .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card .icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--light-blue);
  display: flex; align-items: center; justify-content: center; color: var(--blue);
  font-size: 24px; margin-bottom: 20px;
}
.card h3 { font-size: 19px; margin-bottom: 12px; }
.card p { color: var(--subtext); font-size: 15px; }

/* ----------------------- Media logos ----------------------- */
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.logo-chip {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 16px 28px; font-weight: 700; color: var(--navy); font-size: 17px;
  min-width: 180px; text-align: center; letter-spacing: .02em;
}

/* ----------------------- Tables ----------------------- */
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); font-size: 15px; }
.table thead th { background: var(--navy); color: #fff; font-weight: 700; }
.table th[scope="row"] { background: var(--light-blue); color: var(--navy); width: 200px; font-weight: 700; white-space: nowrap; }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
/* 角丸の外枠にセル背景を合わせる（separate時の角のはみ出し対策） */
.table tr:first-child th { border-top-left-radius: var(--radius); }
.table tr:first-child td { border-top-right-radius: var(--radius); }
.table tr:last-child th { border-bottom-left-radius: var(--radius); }
.table tr:last-child td { border-bottom-right-radius: var(--radius); }

/* ----------------------- Service blocks ----------------------- */
.svc-block { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 32px; margin-bottom: 24px; box-shadow: var(--shadow); }
.svc-block .tag { display: inline-block; background: var(--navy); color: #fff; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 13px; padding: 5px 14px; border-radius: 4px; margin-bottom: 14px; letter-spacing: .05em; }
.svc-block h3 { font-size: 21px; margin-bottom: 12px; }
.svc-block .svc-lead { color: var(--text); font-weight: 500; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px dashed var(--border); }
.svc-block ul.dotted li { position: relative; padding-left: 22px; margin: 8px 0; color: var(--text); }
.svc-block ul.dotted li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }

/* ----------------------- Flow steps ----------------------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.flow .step { position: relative; background: var(--blue); color: #fff; border-radius: 8px; padding: 22px 14px; text-align: center; }
.flow .step .n { display: block; font-family: "Montserrat", sans-serif; font-size: 12px; opacity: .85; margin-bottom: 8px; letter-spacing: .1em; }
.flow .step .t { font-size: 14px; font-weight: 700; line-height: 1.5; }
.flow .step:not(:last-child)::after {
  content: "›"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%);
  color: var(--blue); font-size: 22px; font-weight: 700; z-index: 2;
}

/* ----------------------- Results summary ----------------------- */
.result-summary { background: var(--gray-bg); border-radius: var(--radius); padding: 40px; }
.result-summary .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.result-summary .item { text-align: center; }
.result-summary .item .v { font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--navy); font-size: clamp(20px, 2.6vw, 28px); }
.result-summary .item .l { color: var(--subtext); font-size: 13px; margin-top: 8px; }

/* ----------------------- Case cards ----------------------- */
.case { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 22px; box-shadow: var(--shadow); overflow: hidden; }
.case .case-head { background: var(--navy); color: #fff; padding: 18px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.case .case-head .title { font-weight: 700; font-size: 17px; }
.case .case-head .meta { font-size: 13px; color: rgba(255,255,255,.75); }
.case .case-body { padding: 8px 24px 20px; }
.case .case-row { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.case .case-row:last-child { border-bottom: 0; }
.case .case-row .k { color: var(--blue); font-weight: 700; min-width: 80px; }

/* ----------------------- Company image (会社概要 画像差し替え) ----------------------- */
.company-img { display: block; }
.company-img img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
/* 代表メッセージ署名（白地の筆文字をmultiplyで透過） */
.director-sign { display: inline-block; width: clamp(190px, 32vw, 280px); height: auto; mix-blend-mode: multiply; }

/* ----------------------- Mission / Vision / Value ----------------------- */
.mvv { display: grid; gap: 20px; max-width: 880px; margin: 0 auto; }
.mvv-item { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow); }
.mvv-label { display: inline-block; color: var(--blue); font-weight: 700; font-size: 13px; letter-spacing: .12em; margin-bottom: 10px; }
.mvv-text { font-size: 19px; font-weight: 700; color: var(--navy); line-height: 1.6; }
.mvv-values { margin-top: 4px; }
.mvv-values li { position: relative; padding-left: 22px; margin: 12px 0; color: var(--text); }
.mvv-values li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.mvv-values strong { color: var(--navy); }

/* ----------------------- Info box ----------------------- */
.notebox { background: var(--light-blue); border-left: 4px solid var(--blue); border-radius: 6px; padding: 24px 28px; }
.notebox.warn { background: #FFF4EC; border-left-color: #E8893B; }

/* ----------------------- Form ----------------------- */
.form-wrap { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 8px; font-size: 15px; }
.field label .req { color: #d23; font-size: 12px; margin-left: 6px; }
.field label .opt { color: var(--subtext); font-size: 12px; margin-left: 6px; font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 16px; font-family: inherit; color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(44,110,189,.15); }
.field textarea { min-height: 140px; resize: vertical; }
.consent { display: flex; align-items: flex-start; gap: 10px; background: var(--gray-bg); padding: 16px; border-radius: 8px; margin-bottom: 22px; }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.consent label { font-size: 14px; color: var(--text); font-weight: 400; }
.form-note { font-size: 13px; color: var(--subtext); margin-top: 16px; text-align: center; }
.form-error { display: none; background: #FDECEC; border: 1px solid #E5A3A3; color: #B42318; border-radius: 8px; padding: 12px 16px; margin-bottom: 18px; font-size: 14px; }
.form-submit { text-align: center; }
.thanks {
  display: none; background: var(--light-blue); border: 1px solid var(--blue); border-radius: var(--radius);
  padding: 32px; text-align: center; color: var(--navy);
}
.thanks.is-visible { display: block; }
.thanks h3 { margin-bottom: 8px; color: var(--blue); }

/* ----------------------- Page hero (sub pages) ----------------------- */
.page-hero {
  background-image:
    linear-gradient(90deg, rgba(8,13,28,.92) 0%, rgba(8,13,28,.74) 42%, rgba(8,13,28,.42) 100%),
    url("../img/main.jpg");
  background-size: cover;
  background-position: center right;
  background-color: #080d1c; /* 画像読み込み前のフォールバック */
  color: #fff; padding: 54px 0 74px;
}
/* ページ別の背景画像（オーバーレイは共通） */
.page-hero--service {
  background-image:
    linear-gradient(90deg, rgba(8,13,28,.92) 0%, rgba(8,13,28,.74) 42%, rgba(8,13,28,.42) 100%),
    url("../img/SERVICE.jpg");
}
.page-hero--company {
  background-image:
    linear-gradient(90deg, rgba(8,13,28,.92) 0%, rgba(8,13,28,.74) 42%, rgba(8,13,28,.42) 100%),
    url("../img/COMPANY.jpg");
}
.page-hero--privacy {
  background-image:
    linear-gradient(90deg, rgba(8,13,28,.92) 0%, rgba(8,13,28,.74) 42%, rgba(8,13,28,.42) 100%),
    url("../img/PRIVACYPOLICY.jpg");
}
/* スマホ時：会社概要のヘッダー画像を拡大しバランス良く配置（オーバーレイは全幅維持） */
@media (max-width: 900px) {
  .page-hero--company {
    background-size: 100% 100%, auto 150%;
    background-position: center, 62% 58%;
    background-repeat: no-repeat, no-repeat;
  }
}
/* PC時はページヘッダー画像のみ80%に縮小（オーバーレイは全幅維持・スマホはcoverのまま） */
@media (min-width: 901px) {
  .page-hero {
    background-size: 100% 100%, 80%;
    background-position: center, right center;
    background-repeat: no-repeat, no-repeat;
  }
}
.page-hero .en { display: block; color: rgba(255,255,255,.55); font-size: 13px; font-weight: 700; letter-spacing: .15em; margin-bottom: 10px; }
.page-hero h1 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); }
.page-hero .lead { margin-top: 14px; color: rgba(255,255,255,.82); font-size: 16px; }

/* breadcrumb */
.breadcrumb { font-size: 13px; color: var(--subtext); padding: 16px 0; }
.breadcrumb a { color: var(--subtext); }
.breadcrumb span { margin: 0 8px; }

/* ----------------------- CTA band ----------------------- */
.cta-band { background: linear-gradient(120deg, #1A2744, #2C6EBD); color: #fff; text-align: center; padding: 64px 0; }
.cta-band h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 28px; }

/* ----------------------- Map ----------------------- */
.map-embed {
  width: 100%; aspect-ratio: 16 / 7; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--gray-bg);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 560px) { .map-embed { aspect-ratio: 4 / 3; } }

/* ----------------------- Legal page ----------------------- */
.legal h2 { font-size: 20px; margin: 36px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--light-blue); }
.legal h2:first-of-type { margin-top: 0; }
.legal p { margin: 10px 0; }
.legal ul.bullet { margin: 10px 0; padding-left: 20px; list-style: disc; }
.legal ul.bullet li { margin: 6px 0; }
.legal .updated { margin-top: 40px; color: var(--subtext); font-size: 14px; }

/* ----------------------- Footer ----------------------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 56px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer address { font-style: normal; line-height: 1.9; color: rgba(255,255,255,.7); }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; letter-spacing: .05em; }
.footer-col a { color: rgba(255,255,255,.7); display: block; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; text-align: center; color: rgba(255,255,255,.55); font-size: 13px; }

/* ----------------------- Fade-in (最小限のアニメ) ----------------------- */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.is-shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ----------------------- Responsive ----------------------- */
@media (max-width: 900px) {
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow .step:not(:last-child)::after { display: none; }
  .result-summary .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .nav-toggle { display: block; transform: translateX(10px); }
  /* スマホ版はロゴを2px下＋少し左、メニューアイコンを少し右に */
  .site-header .brand img { transform: translate(-6px, 1px); }
  .gnav {
    position: fixed; inset: 68px 0 auto 0; background: #fff; border-bottom: 1px solid var(--border);
    transform: translateY(-120%); visibility: hidden;
    transition: transform .3s ease, visibility .3s ease; box-shadow: var(--shadow);
  }
  .gnav.is-open { transform: translateY(0); visibility: visible; }
  .gnav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .gnav li { width: 100%; }
  .gnav a { display: block; padding: 14px 24px; border-bottom: 1px solid var(--border); }
  .gnav .btn-nav { margin: 12px 24px; text-align: center; }
  /* モバイル：言語切替を横並びで表示 */
  .gnav li.lang-switch { width: auto; padding: 10px 20px; }
  .gnav .lang-switch a { display: inline-block; padding: 6px 12px; border-bottom: 0; }
}
@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .hero-inner { padding: 56px 24px 60px; }
  /* スマホ版はスマホ画像を拡大し、右上の空きを埋めて右寄りに配置 */
  .hero { background-size: auto 110%; background-position: 62% 80%; background-repeat: no-repeat; }
  .hero h1 { font-size: 30px; }
  .hero .sub { font-size: 15px; line-height: 1.85; }
  .hero .actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero .actions .btn { width: 100%; }
  .numbers { grid-template-columns: 1fr; }
  .result-summary { padding: 24px; }
  .result-summary .grid { grid-template-columns: 1fr; }
  .table th[scope="row"] { width: 120px; white-space: normal; }
  /* 媒体チップを縦並び時に同じ幅へ揃える */
  .logos { flex-direction: column; align-items: center; }
  .logo-chip { width: 100%; max-width: 340px; }
  .form-wrap { padding: 24px; }
  .case .case-row { flex-direction: column; gap: 4px; }
}
