@charset "utf-8";

/*
 * Visual tone aligned with https://udon-toki.shop/
 * — left sidebar, full-viewport hero, dark content blocks, serif typography.
 */

:root {
  --toki-black: #000;
  --toki-dark: #111;
  --toki-accent: #ab3b3a;
  --toki-muted: #8e90a3;
  --toki-line: rgba(235, 236, 242, 0.55);
  --toki-sidebar-w: 80px;
  --toki-sidebar-w-mobile: 56px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-serif-jp: "Kaisei Tokumin", "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --font-serif-en: Cinzel, "Times New Roman", Georgia, serif;
  --font-sans-jp: "Noto Sans JP", "Hiragino Sans", Meiryo, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-img {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .fade-rise {
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-serif-jp);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.08em;
  color: var(--toki-black);
  background: #fff;
  word-break: break-word;
}

body.lang-en {
  letter-spacing: 0.04em;
}

body.lang-zh-CN {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: var(--toki-black);
  color: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  z-index: 30000;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--toki-black);
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--toki-black);
}

/* ----- Layout shell (Toki-like .page + sidebar) ----- */

.page {
  position: relative;
  overflow-x: clip;
  padding-left: var(--toki-sidebar-w);
  width: 100%;
}

@media screen and (max-width: 768px) {
  .page {
    padding-left: 0;
    padding-bottom: var(--toki-sidebar-w-mobile);
  }
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--toki-sidebar-w);
  height: 100vh;
  background: #fff;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 9000;
}

.sidebar-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.8rem;
  padding: 2rem 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 4.8rem;
  padding: 0 0.8rem;
  border: none;
  background: transparent;
  color: var(--toki-black);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.sidebar-link:hover {
  color: var(--toki-accent);
}

.sidebar-link svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

.sidebar-down svg {
  stroke-width: 2;
}

@media screen and (max-width: 768px) {
  .sidebar {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--toki-sidebar-w-mobile);
    border-right: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .sidebar-inner {
    flex-direction: row;
    justify-content: center;
    gap: 4rem;
    padding: 0 1.6rem;
  }

  .sidebar-link {
    min-height: auto;
    flex: 0 0 auto;
  }

  /* スマホは右上ハンバーガーのみでメニュー（下部バーからは非表示） */
  .drawer-trigger--sidebar {
    display: none;
  }
}

/* ----- Mobile hamburger（固定・スマホのみ） ----- */

.drawer-trigger--mobile {
  display: none;
}

@media screen and (max-width: 768px) {
  .drawer-trigger--mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: max(1.2rem, env(safe-area-inset-top, 0px));
    right: max(1.2rem, env(safe-area-inset-right, 0px));
    z-index: 9500;
    width: 4.8rem;
    height: 4.8rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.97);
    color: var(--toki-black);
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition:
      color 0.2s ease,
      box-shadow 0.2s ease,
      transform 0.15s ease;
  }

  .drawer-trigger--mobile svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.85;
  }

  .drawer-trigger--mobile:hover {
    color: var(--toki-accent);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.16);
  }

  .drawer-trigger--mobile:active {
    transform: scale(0.96);
  }

  body.nav-drawer-open .drawer-trigger--mobile {
    color: var(--toki-accent);
    z-index: 12501;
  }
}

/* ----- Hero ----- */

.hero-upper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .hero-upper {
    min-height: 61.8vh;
  }
}

.hero-visual {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  animation: hero-zoom 14s ease-out forwards;
}

@keyframes hero-zoom {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual {
    animation: none;
  }
}

.hero-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 4vw 10rem;
  text-align: center;
  pointer-events: none;
}

.hero-overlay > * {
  pointer-events: auto;
}

.hero-brand {
  margin: 0;
  font-family: var(--font-serif-jp);
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  letter-spacing: 0.14em;
  line-height: 1.25;
}

.hero-brand a {
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.hero-lang {
  position: absolute;
  top: max(1.4rem, env(safe-area-inset-top, 0px));
  left: max(1.4rem, env(safe-area-inset-left, 0px));
  z-index: 4;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  align-items: center;
  justify-content: flex-start;
  max-width: min(100% - 2.8rem, 28rem);
  font-family: var(--font-serif-en);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: left;
}

.hero-lang a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.55);
  padding-bottom: 2px;
}

.hero-lang a:hover {
  border-bottom-style: solid;
  border-bottom-color: var(--toki-accent);
}

.hero-lang .is-current {
  font-weight: 600;
  border-bottom-color: #fff;
}

.hero-scroll {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 1rem 1rem 9rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-serif-en);
  font-size: 1.15rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-scroll::after {
  content: "";
  position: absolute;
  bottom: 1rem;
  left: 50%;
  width: 1px;
  height: 7rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
  transform: translateX(-50%);
}

@media screen and (max-width: 768px) {
  .hero-scroll {
    padding-bottom: 7rem;
    font-size: 1rem;
  }

  .hero-scroll::after {
    height: 5rem;
  }
}

/* ----- Dark content band ----- */

.content-dark {
  position: relative;
  background: var(--toki-black);
  color: #fff;
  padding-bottom: clamp(6rem, 12vw, 10rem);
}

.content-dark a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.55);
}

.content-dark a:hover {
  border-bottom-color: var(--toki-accent);
}

.content-dark .btn01,
.content-dark .btn02,
.btn-toki {
  display: inline-block;
  padding: 1.2rem 2.6rem;
  border: 1px solid #fff;
  color: #fff !important;
  text-decoration: none !important;
  font-family: var(--font-serif-en);
  font-size: 1.15rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition:
    color 0.25s ease,
    background 0.25s ease;
}

.content-dark .btn01:hover,
.content-dark .btn02:hover,
.btn-toki:hover {
  background: #fff;
  color: var(--toki-black) !important;
}

.content-dark .btn02 {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
}

.content-dark strong,
.content-dark b {
  font-weight: 800;
  box-decoration-break: clone;
  background: linear-gradient(transparent 72%, rgba(171, 59, 58, 0.85) 0);
}

/* ----- Sections ----- */

.section {
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.wrap {
  margin: 0 4vw;
  width: calc(100% - 8vw);
  position: relative;
}

@media screen and (max-width: 768px) {
  .wrap {
    margin: 0 5vw;
    width: calc(100% - 10vw);
  }
}

.display-xl {
  margin: 0 0 3rem;
  font-family: var(--font-serif-en);
  font-weight: 400;
  font-size: clamp(3.6rem, 8vw, 6.4rem);
  line-height: 1.15;
  letter-spacing: 0.06em;
}

.display-sub {
  margin: 0 0 2.4rem;
  font-family: var(--font-serif-jp);
  font-weight: 800;
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  line-height: 1.45;
}

.content-dark .toki-lead {
  max-width: 42em;
}

.content-dark .toki-lead p + p {
  margin-top: 1.6rem;
}

.content-dark .toki-indent {
  text-indent: 1em;
}

.split-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 38.2%);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media screen and (max-width: 900px) {
  .split-intro {
    grid-template-columns: 1fr;
  }
}

.vertical-copy {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.18em;
  max-height: 42rem;
  margin-inline-start: auto;
}

@media screen and (max-width: 768px) {
  .vertical-copy {
    writing-mode: horizontal-tb;
    max-height: none;
    margin-inline-start: 0;
    letter-spacing: 0.1em;
    line-height: 1.65;
    font-size: clamp(1.6rem, 4.4vw, 2rem);
  }
}

.panel-rail {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px dotted var(--toki-line);
}

.panel-rail p {
  margin: 0;
  max-width: 52rem;
}

.panel-rail__media {
  margin-top: 2rem;
}

.kicker {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.kicker .menu-ranking-label {
  margin: 0 0 0.8rem;
  font-family: var(--font-serif-en);
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.92;
}

.kicker .display-sub {
  margin: 0;
}

.ranking-band {
  border-top: 1px dotted var(--toki-line);
}

.ranking-card {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  border-bottom: 1px dotted var(--toki-line);
}

.ranking-chip {
  font-family: var(--font-serif-en);
  font-size: 1.8rem;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1rem;
}

.ranking-copy h3 {
  margin: 0 0 1.2rem;
  font-family: var(--font-serif-jp);
  font-weight: 800;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.35;
}

.ranking-copy p {
  margin: 0 0 2rem;
  max-width: 42rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: clamp(2rem, 4vw, 3rem);
}

.tone-panel {
  padding: clamp(2rem, 4vw, 2.8rem);
  background: rgba(255, 255, 255, 0.05);
}

.feature-chip {
  font-family: var(--font-serif-en);
  font-size: 1.3rem;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.55);
}

.news-shell {
  margin-top: 2rem;
  padding: clamp(2.4rem, 4vw, 3.6rem);
  border: 1px solid rgba(235, 236, 242, 0.35);
}

.news-shell-inner {
  display: grid;
  gap: 2rem;
}

.news-shell time {
  font-family: var(--font-serif-en);
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.65);
}

.small-print {
  font-size: 1.25rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
}

/* ----- Inner pages ----- */

.breadcrumbs-list {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumbs-list a {
  border-bottom: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-page {
  max-width: 72rem;
}

.prose-page h1 {
  font-family: var(--font-serif-jp);
  font-weight: 800;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  margin: 0 0 2rem;
}

.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}

@media screen and (max-width: 768px) {
  .access-grid {
    grid-template-columns: 1fr;
  }
}

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

table.info th,
table.info td {
  padding: 1rem 1.2rem;
  border-bottom: 1px dotted var(--toki-line);
  text-align: left;
  vertical-align: top;
}

table.info th {
  width: 28%;
  font-weight: 800;
}

.map-embed iframe {
  width: 100%;
  min-height: 32rem;
  border: 0;
  filter: grayscale(100%);
  opacity: 0.92;
}

.article-list article {
  padding: clamp(2rem, 4vw, 2.6rem) 0;
  border-bottom: 1px dotted var(--toki-line);
}

.article-list article:first-of-type {
  border-top: 1px dotted var(--toki-line);
}

.picture-frame img {
  width: 100%;
}

.reveal-img {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 900ms var(--ease-out),
    transform 1100ms var(--ease-out);
}

.reveal-img.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Drawer ----- */

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(32rem, 88vw);
  background: rgba(0, 0, 0, 0.96);
  color: #fff;
  transform: translateX(100%);
  transition: transform 420ms var(--ease-out);
  z-index: 12000;
  padding: clamp(8rem, 18vw, 10rem) clamp(2.4rem, 6vw, 3.6rem);
  overflow: auto;
  visibility: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-drawer[aria-hidden="false"] {
  transform: translateX(0);
  visibility: visible;
}

.nav-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-drawer li {
  border-bottom: 1px dotted rgba(255, 255, 255, 0.28);
}

.nav-drawer a,
.nav-drawer a:link,
.nav-drawer a:visited {
  display: block;
  padding: 1.4rem 0;
  border-bottom: none;
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  color: #fff;
  text-decoration: none;
}

.nav-drawer a:hover {
  color: var(--toki-accent);
}

.nav-drawer a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  border: none;
  padding: 0;
  z-index: 11500;
  display: none;
}

.nav-drawer-open .nav-backdrop {
  display: block;
}

body.nav-drawer-open {
  overflow: hidden;
}

/* ----- Footer ----- */

.site-footer {
  padding-top: clamp(6rem, 12vw, 10rem);
  border-top: 1px dotted var(--toki-line);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(3rem, 8vw, 5rem);
}

@media screen and (max-width: 768px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
  }
}

.site-footer h2 {
  margin: 0 0 2rem;
  font-family: var(--font-serif-en);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.site-footer-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1.35rem;
  line-height: 1.85;
}

.site-footer-meta li + li {
  margin-top: 0.8rem;
}

.site-footer-meta a {
  border-bottom: 1px dotted rgba(255, 255, 255, 0.45);
}

.brand-sign {
  margin: 0;
  font-family: var(--font-serif-jp);
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: 0.14em;
}

.to-top {
  position: fixed;
  right: clamp(1.4rem, 4vw, 2.8rem);
  bottom: clamp(1.4rem, 4vw, 2.8rem);
  z-index: 11000;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-family: var(--font-serif-en);
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.24s ease,
    visibility 0.24s ease;
}

.to-top.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media screen and (max-width: 768px) {
  .to-top {
    bottom: calc(var(--toki-sidebar-w-mobile) + 1.2rem);
  }
}

.content-dark dl {
  margin: 1.6rem 0 0;
}

.content-dark dl dt {
  font-weight: 800;
  margin-top: 1.4rem;
}

.content-dark dl dd {
  margin: 0.4rem 0 0;
}

code {
  font-family: ui-monospace, monospace;
  font-size: 0.92em;
}



.content-dark > nav.breadcrumbs {
  padding-top: clamp(4rem, 8vw, 6rem);
}

.vertical-copy {
  margin: 0;
  font-weight: 800;
}

/* Legacy utility aliases */
.mincyo {
  font-family: inherit;
}

.ui-serif {
  font-family: var(--font-serif-en);
}

.c_gara {
  font-family: var(--font-serif-en);
}
