/* ============================================================
   base.css
   リセット / CSS変数 / 共通ユーティリティ / ナビ / フッター
   ============================================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "ヒラギノ丸ゴ ProN W4", "Hiragino Maru Gothic ProN", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic", Sans-Serif;
  background: #fff;
  color: #0d1a2e;
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
}
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== CSS VARIABLES ===== */
:root {
  --navy-deep:   #020c1b;
  --navy-mid:    #041e3a;
  --navy-light:  #0a3f74;
  --blue-accent: #1a5fa8;
  --blue-bright: #7bbfef;
  --blue-pale:   #e8f2fc;
  --white:       #ffffff;
  --off-white:   #f5f8fc;
  /*--text-dark:   #0d1a2e;
  --text-mid:    #3a5068;*/
  --text-dark:   #333;
  --text-mid:    #333;
  --text-muted:  #7a93aa;
  --border:      rgba(10,63,116,0.12);
  --serif:       "ヒラギノ丸ゴ ProN W4", "Hiragino Maru Gothic ProN", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic", Sans-Serif

  /* ===== フォントサイズ一覧（ここを変えれば全体に反映） ===== */
  --fs-label:      14px;   /* セクションラベル（ABOUT US など） */
  --fs-body-sm:    14px;   /* 補助テキスト・日付・バッジ */
  --fs-body:       16px;   /* 本文 */
  --fs-body-lg:    18px;   /* 本文（大） */
  --fs-ui:         16px;   /* ナビリンク・ボタン・フッターリンク */
  --fs-nav-logo:   17px;   /* ナビロゴ */
  --fs-nav-sub:    14px;   /* ナビロゴ サブテキスト */
  --fs-footer-h:   16px;   /* フッター列見出し */
  --fs-footer-lnk: 16px;  /* フッターリンク */
  --fs-footer-logo:15px;  /* フッターロゴ */
  --fs-copy:       12px;   /* コピーライト */
  --fs-sec-title:  42px;   /* セクション大見出し */
}

/* ===== SCROLL REVEAL UTILITY ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== SECTION COMMON ===== */
section { position: relative; }
.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 52px;
}
.section-label {
  font-size: var(--fs-label);
  letter-spacing: .2em;
  color: var(--blue-accent);
  font-weight: 400;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 0.5px;
  background: var(--blue-accent);
}
.section-title {
  font-family: var(--serif);
  font-size: var(--fs-sec-title);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 18px;
}
.section-title em {
  color: var(--blue-accent);
  font-style: normal;
}

/* ===== BUTTONS (共通) ===== */
.btn-primary {
  font-size: var(--fs-ui);
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--blue-accent);
  color: var(--white);
  padding: 15px 32px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: .06em;
  transition: background .2s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: #1a6cc0; }
.btn-secondary {
  font-size: var(--fs-ui);
  font-family: 'Noto Sans JP', sans-serif;
  background: transparent;
  color: rgba(255,255,255, .85);
  padding: 15px 32px;
  border: 0.5px solid rgba(255,255,255,.22);
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: .06em;
  transition: border-color .2s, color .2s;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,.85);
  color: rgba(255,255,255,.9);
}

/* ===== NAVIGATION (PC) ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 52px;
  gap: 36px;
  z-index: 200;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: rgba(2,12,27,0.96);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
/*.nav-logo {
  font-family: var(--serif);
  font-size: var(--fs-nav-logo);
  font-weight: 600;
  color: var(--white);
  letter-spacing: .04em;
  flex: 1;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}*/

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  /*flex: 1;*/
}
/* ロゴ画像 */
.logo-image {
  height: 48px;   /* 好きなサイズ */
  width: auto;
  display: block;
}
/* 文字部分 */
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
/* 日本語社名 */
.logo-ja {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
}
/* 英語社名 */
.logo-en {
  font-family: var(--serif);
  font-size: 15px;
  opacity: 0.9;
  letter-spacing: .08em;
}

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link {
  font-size: var(--fs-ui);
  color: rgba(255,255,255,.85);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color .2s;
  white-space: nowrap;
}
.nav-link:hover { color: rgba(255,255,255,.9); }
.nav-link.current { color: var(--blue-bright); }
.nav-contact {
  font-size: var(--fs-ui);
  color: var(--blue-bright);
  border: 0.5px solid rgba(123,191,239,.38);
  padding: 8px 20px;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav-contact:hover { background: rgba(123,191,239,.1); }

/* ハンバーガーボタン（SP専用） */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  z-index: 210;
}
.hamburger-bar {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .35s ease, opacity .25s ease;
  transform-origin: center;
}
.nav-hamburger.is-open .hamburger-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.is-open .hamburger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open .hamburger-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== 全画面オーバーレイメニュー ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 40px 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.nav-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(123,191,239,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,191,239,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.nav-overlay-inner {
  position: relative;
  z-index: 1;
  max-width: 480px;
}
.overlay-logo {
  font-family: var(--serif);
  font-size: 13px;
  color: rgba(255,255,255,.85);
  letter-spacing: .08em;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 0.5px solid rgba(255,255,255,.08);
}
.overlay-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.overlay-link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 0.5px solid rgba(255,255,255,.06);
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  transition: padding-left .2s, opacity .4s ease, transform .4s ease, color .2s;
}
.overlay-link:first-child { border-top: 0.5px solid rgba(255,255,255,.06); }
.overlay-link:hover { padding-left: 8px; }
.overlay-link-en {
  font-size: 10px;
  color: rgba(123,191,239,.55);
  letter-spacing: .22em;
  font-weight: 300;
  min-width: 80px;
}
.overlay-link-ja {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.overlay-link--cta .overlay-link-ja { color: var(--blue-bright); }
.overlay-link:hover .overlay-link-ja { color: var(--blue-bright); }
.nav-overlay.is-open .overlay-link { opacity: 1; transform: translateY(0); }
.nav-overlay.is-open .overlay-link:nth-child(1) { transition-delay: .08s; }
.nav-overlay.is-open .overlay-link:nth-child(2) { transition-delay: .13s; }
.nav-overlay.is-open .overlay-link:nth-child(3) { transition-delay: .18s; }
.nav-overlay.is-open .overlay-link:nth-child(4) { transition-delay: .23s; }
.nav-overlay.is-open .overlay-link:nth-child(5) { transition-delay: .28s; }
.nav-overlay.is-open .overlay-link:nth-child(6) { transition-delay: .33s; }

/* ===== FOOTER ===== */
#site-footer {
  margin-top: auto;
}

footer {
  background: #010810;
  padding: 64px 52px 40px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 0.5px solid rgba(255,255,255,.08);
}
.footer-cols-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-logo {
  font-family: var(--serif);
  font-size: var(--fs-footer-logo);
  color: var(--white);
  font-weight: 600;
  margin-bottom: 6px;
}
.footer-logo-sub {
  font-size: var(--fs-nav-sub);
  color: rgba(255,255,255,.85);
  letter-spacing: .14em;
  font-weight: 300;
  margin-bottom: 18px;
}
.footer-address {
  font-size: var(--fs-body-sm);
  color: rgba(255,255,255,.85);
  line-height: 2;
  font-weight: 300;
}
.footer-col h4 {
  font-size: var(--fs-footer-h);
  color: rgba(255,255,255,.85);
  letter-spacing: .18em;
  margin-bottom: 18px;
  font-weight: 400;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
  font-size: var(--fs-footer-lnk);
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-weight: 300;
  transition: color .2s;
}
.footer-col ul li a:hover { color: rgba(255,255,255,.85); }
.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  /*justify-content: space-between;*/
  justify-content: center;
  align-items: center;
}
.footer-copy {
  font-size: var(--fs-copy);
  color: rgba(255,255,255,.85);
  font-weight: 300;
  letter-spacing: .04em;
}

/* ===== KEYFRAMES (共通) ===== */
@keyframes gradFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1);    opacity: .65; }
  50%       { transform: scale(1.18); opacity: 1;   }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(22px); }
  to   { opacity: 1; transform: translateX(0);    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav { padding: 0 24px; gap: 16px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  footer { padding: 48px 24px 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols-wrap { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 480px) {
  .nav-logo { font-size: 14px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 600px) {
  :root { --fs-sec-title: 30px; }
}
