@charset "UTF-8";
:root {
  --bg: #fbf9f4;
  --ink: #37322c;
  --ink-soft: #6f675c;
  --green: #7FD67E;
  --green-deep: #2f7a45;
  --card: #ffffff;
  --line: #e8e2d5;
  /* レール線の位置（左端寄り） */
  --rail-x: clamp(14px, 2.8vw, 40px);
  /* コンテンツ左右の余白。レール〜本文の距離もこれと揃える */
  --page-inline: clamp(20px, 4.5vw, 56px);
  --disp: "Zen Maru Gothic", sans-serif;
  --body: "Zen Kaku Gothic New", sans-serif;
  --mono: "SFMono-Regular", Menlo, Consolas, monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.9;
  overflow-x: hidden;
}

a {
  color: var(--green-deep);
}

/* ---- theme: site header ---- */
.theme-site-head {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

.theme-site-head__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
}

.theme-site-head__symbol {
  width: 27px;
  height: 27px;
  color: var(--green);
  flex-shrink: 0;
}

.theme-site-head__wordmark {
  height: 17px;
  width: auto;
  color: var(--ink);
}

.theme-site-head__nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.theme-site-head__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}

.theme-site-head__nav a:hover {
  color: var(--ink);
}

.theme-site-head__nav a.theme-btn--small {
  color: #1e4020;
}

/* ---- theme: buttons ---- */
.theme-btn {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  font-family: var(--disp);
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.theme-btn--primary {
  background: var(--green);
  color: #1e4020;
  padding: 14px 34px;
  font-size: 17px;
  box-shadow: 0 6px 18px rgba(127, 214, 126, 0.45);
}

.theme-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(127, 214, 126, 0.55);
}

.theme-btn--small {
  background: var(--green);
  color: #1e4020;
  padding: 8px 20px;
  font-size: 14px;
}

.theme-btn--ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.theme-btn--ghost:hover {
  border-color: var(--green-deep);
  color: var(--green-deep);
}

@media (max-width: 640px) {
  .theme-site-head__nav a:not(.theme-btn) {
    display: none;
  }
}
/* ---- theme: timeline rail (図形のみの装飾。文字ラベルなし) ---- */
main {
  position: relative;
}

.theme-tl-rail {
  position: absolute;
  inset: 0;
  inset-inline: 0 auto;
  width: calc(var(--rail-x) + 28px);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.theme-tl-rail::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: var(--rail-x);
  width: 2px;
  background: linear-gradient(to bottom, var(--green) 0%, #b9e5b8 35%, #cfc8b6 70%, var(--line) 100%);
}

.theme-tl-rail__node {
  position: absolute;
  inset-inline-start: var(--rail-x);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--bg);
  border: 2.5px solid #a8d4a6;
}

.theme-tl-rail__node--sm {
  width: 7px;
  height: 7px;
  border-width: 2px;
}

.theme-tl-rail__node--md {
  width: 11px;
  height: 11px;
}

.theme-tl-rail__node--lg {
  width: 16px;
  height: 16px;
  border-width: 3px;
  border-color: var(--green);
}

.theme-tl-rail__node--head {
  top: clamp(118px, 17vh, 188px);
  width: 16px;
  height: 16px;
  background: var(--green);
  border: none;
  animation: theme-tl-pulse 2.4s ease-out infinite;
}

@keyframes theme-tl-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(127, 214, 126, 0.55);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(127, 214, 126, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(127, 214, 126, 0);
  }
}
/*
  セクションの左右パディングで余白を対称にする。
  レール線〜コンテンツ = コンテンツ〜ウィンドウ右端 = --page-inline
*/
.theme-tl-section {
  position: relative;
  z-index: 1;
  padding-top: clamp(56px, 9vh, 110px);
  padding-bottom: clamp(56px, 9vh, 110px);
  padding-inline-start: calc(var(--rail-x) + var(--page-inline));
  padding-inline-end: var(--page-inline);
}

.theme-tl-section__inner {
  max-width: 880px;
  margin: 0 auto;
}

/* ---- theme: page mast (h1 / lead) ---- */
.theme-page-mast {
  padding-top: clamp(110px, 16vh, 180px);
  padding-bottom: 0;
}

.theme-page-mast h1 {
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(28px, 5.6vw, 52px);
  line-height: 1.35;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

.theme-page-mast__key {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(18px, 2.9vw, 25px);
  line-height: 1.55;
  margin-top: 20px;
  letter-spacing: 0.01em;
}

.theme-page-mast__key b {
  color: var(--green-deep);
}

.theme-page-mast__lead {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--ink-soft);
  max-width: 40em;
  margin-top: 18px;
}

.theme-page-mast__lead strong {
  color: var(--ink);
  font-weight: 700;
}

/* ---- theme: reveal ---- */
.theme-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.theme-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .theme-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .theme-tl-rail__node--head {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
/* ---- theme: site footer ---- */
.theme-site-foot {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 64px var(--page-inline) 46px;
  background: #f5f1e6;
}

.theme-site-foot__inner {
  max-width: 880px;
  margin: 0 auto;
}

.theme-site-foot__chan {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.theme-site-foot__chan img {
  width: clamp(110px, 16vw, 170px);
  height: auto;
}

.theme-site-foot__nav {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.theme-site-foot__nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.theme-site-foot__meta {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.theme-site-foot__origin {
  position: absolute;
  inset-inline-start: var(--rail-x);
  top: -9px;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  border: 4px solid var(--bg);
}

/* ---- theme: auth footer (login status) ---- */
.theme-auth-header-container {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  flex-wrap: wrap;
}

.theme-auth-header__link {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.theme-auth-header__link:hover {
  color: var(--ink);
}

.theme-auth-header__uid {
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  white-space: nowrap;
}

.theme-auth-header__btn {
  font-size: 12px;
  padding: 4px 12px;
  cursor: pointer;
  border: 1.5px solid var(--line);
  background: transparent;
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--body);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.theme-auth-header__btn:hover {
  border-color: var(--green-deep);
  color: var(--green-deep);
}

/* ---- theme: language switcher ---- */
.theme-language-switcher {
  text-align: center;
  padding: 8px 0;
  margin-top: 8px;
}

.theme-language-switcher select {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--body);
  color: var(--ink-soft);
  transition: border-color 0.15s ease, color 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236f675c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
}

[dir=rtl] .theme-language-switcher select {
  background-position: left 12px center;
  padding-left: 30px;
  padding-right: 6px;
}

.theme-language-switcher select:hover {
  border-color: var(--green-deep);
  color: var(--ink);
}

.theme-language-switcher select:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* ---- theme: fixed header offset for in-page anchors ---- */
.theme-tl-section {
  scroll-margin-top: 70px;
}