@charset "UTF-8";

/* =========================
   CSS変数
========================= */
:root {
  --font-sans: 
  -apple-system,
  BlinkMacSystemFont,
  "Helvetica Neue",
  "Segoe UI",
  Arial,
  "Hiragino Sans",
  "Yu Gothic Medium",
  Meiryo,
  sans-serif;
  --font-serif:
  "Times New Roman",
  "Hiragino Mincho ProN",
  "Yu Mincho",
  "MS PMincho",
  serif;

  --color-text: #222;
  --color-accent: #4a5a66;
  --color-bg: #ffffff;
}

/* =========================
   ベース
========================= */
html {
  font-size: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  padding-top: 70px;
}

.lang-ja {
  letter-spacing: 0.04em;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================
   ヘッダー
========================= */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--color-bg);
  border-bottom: 2px solid var(--color-accent);
  z-index: 5000;
}

.header-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* サイトタイトル */
.site-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.site-title a {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.title-en {
  margin-top: 4px;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: #4e5e66;
}

/* =========================
   メインナビ
========================= */
.nav {
  z-index: 6000;
}

.nav-list {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  align-items: flex-start;
  list-style: none;
  font-size: 0.9rem;
}

.nav-list a {
  color: #888;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.nav-list a:hover {
  opacity: 0.6;
  color: #4a5a66;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  margin: 0;
  padding: 12px 16px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(4px);
  min-width: 180px;
  opacity: 0;
visibility: hidden;
transform: translateY(6px);

transition:
  opacity 0.25s ease,
  transform 0.25s ease,
  visibility 0.25s ease;
}

.has-submenu {
  position: relative;
}

.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 現在ページ */
.nav-list a.active {
  color: #222;
}

/* =========================
   ハンバーガー
========================= */
.hamburger {
  display: none;
  width: 30px;
  height: 22px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 7000;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #222;
  transition: 0.3s;
}

/* ≡ */
.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 10px;
}

.hamburger span:nth-child(3) {
  top: 20px;
}

/* × */
.hamburger.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* =========================
   ページヘッダー
========================= */
.page-header {
  max-width: 1100px;
  margin: 24px auto 36px;
  padding: 0 24px;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.page-nav-row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  width: 100%;
}

/* ページタイトル */
.page-title {
  margin: 0;
  padding-top: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.page-title::after {
  content: "";
  display: block;
  width: 10em;
  height: 1px;
  margin-top: 3px;
  background: #4a5a66;
}

/* =========================
   サブナビ
========================= */
.sub-nav {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.sub-nav-item {
  position: relative;
  padding-top: 20px;
  color: #222;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.sub-nav-item:hover {
  opacity: 0.6;
  color: #4e5e66;
}
.sub-nav-item.process {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* 現在ページ */
.sub-nav-item.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2em;
  width: 100%;
  height: 1px;
  background-color: currentColor;
}

/* =========================
   JP / EN
========================= */
.lang-switch {
  display: flex;
  gap: 12px;
}

/* PC */
@media screen and (min-width: 769px) {

  .lang-switch {
    justify-content: flex-end;
    margin-bottom: 16px;
  }
}

/* スマホ */
@media screen and (max-width: 768px) {

  .nav .lang-switch {
    position: absolute;
    top: 48px;
    right: 64px;
    z-index: 1600;
  }
}

/* =========================
   JP / EN
========================= */
.lang-btn {
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.75rem;
  color: #888;
  cursor: pointer;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.lang-switch span {
  color: #888;
}

.lang-btn:hover {
  opacity: 0.7;
  color: #4e5e66;
}

.lang-btn.active {
  color: #222;
}
.lang-en {
  display: none;
}

body.en-mode .lang-ja {
  display: none;
}

body.en-mode .lang-en {
  display: block;
}

/* =========================
   Overlay
========================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1400;
  pointer-events: none;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* =========================
   Main
========================= */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 120px;
}

/* =========================
   Local Navigation
========================= */
.local-nav {
  text-align: right;
  padding-top: 20px;
}

.local-inner {
  width: fit-content;
  margin: 0 auto;
}

.local-link {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: #444;
  transition: opacity 0.3s ease;
}

.local-link:hover {
  opacity: 0.6;
}


/* =========================
   Footer
========================= */
.site-footer {
  text-align: center;
  font-size: 0.75rem;
  color: #4e5e66;
  padding: 24px 0;
}


/* =========================
   テキストページ共通
========================= */
.text-page {
  max-width: 960px;
}

/* =========================
   スマホ
========================= */
@media (max-width: 768px) {

  body {
    padding-top: 90px;
  }

  main {
  padding-top: 8px;
  }

  /* サイトタイトル */
  .site-title {
    font-size: 1.25rem;
  }

  /* ページタイトル */
  .page-title {
    font-size: 1rem;
  }

  /* ハンバーガー */
  .hamburger {
    display: block;
    margin-left: auto;
  }

  /* メインナビ */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    padding: 100px 24px 40px;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
    z-index: 1500;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
  }

  .nav.open {
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    gap: 8px;
    font-size: 1rem;
  }

  .nav-list a {
    display: block;
    padding: 2px 0;
  }

  .submenu {
    position: static;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 4px 0 0 16px;
    background: none;
    backdrop-filter: none;
  }

  /* ページヘッダー */
  .page-header {
  margin-top: 0;/* サイトタイトルとの距離 */
  margin-bottom: 24px;/* メインとの距離 */
  }
  
  .page-nav-row {
  display: grid;
  grid-template-columns:
    1fr auto;
  align-items: start;
  row-gap: 4px;
}

.page-title {
  grid-column: 1 / 2;
  grid-row: 1;
}

.lang-switch {
  grid-column: 2 / 3;
  grid-row: 1;
  margin-left: 0;
  justify-self: end;
}

}