@charset "utf-8";

.tkw {
  --ink: #421d05;
  --soft: #615043;
  --paper: #fcf8ee;
  --line: #ded2be;
  --olive: #44522c;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.75 var(--sans);
}
.tkw *, .tkw *::before, .tkw *::after { box-sizing: border-box; }
.tkw a { color: inherit; text-underline-offset: .22em; }
.tkw :focus-visible { outline: 3px solid #5b4c88; outline-offset: 4px; }
.tkw [hidden] { display: none !important; }
.tkw img { display: block; max-inline-size: 100%; block-size: auto; }
.tkw [id] { scroll-margin-block-start: 1rem; }
.tkw-shell { width: min(100% - 6rem, 1120px); margin-inline: auto; }
.tkw-skip { position: fixed; z-index: 5; top: 8px; left: 8px; padding: .5rem 1rem; background: white; transform: translateY(-150%); }
.tkw-skip:focus { transform: none; }

.tkw-header { border-bottom: 1px solid #eae1d0; }
.tkw-top { min-height: 66px; display: flex; align-items: center; justify-content: space-between; }
.tkw-mark { display: flex; align-items: center; gap: 8px; min-height: 44px; font: 700 22px Georgia, serif; letter-spacing: .04em; text-decoration: none; }
.tkw-mark span { width: 10px; height: 15px; border-radius: 90% 0 90% 0; background: #7c8a46; rotate: 24deg; }
.tkw-language { display: grid; align-items: center; min-height: 44px; font-size: .88rem; letter-spacing: .05em; }

.tkw-garden {
  --sky: #f6e9bd;
  --haze: #fcf2d9;
  --sun: #f9db8b;
  --halo: #fff2bb;
  --hill: #d9dcb1;
  --bank: #bbc58f;
  --stalk: #798b53;
  --leaf: #778944;
  --sky-text: #421d05;
  position: relative;
  isolation: isolate;
  color: var(--sky-text);
}
.tkw-garden[data-season="summer"] { --hill: #cbdcab; --bank: #a6bf85; --leaf: #547733; --stalk: #667d43; }
.tkw-garden[data-season="autumn"] { --hill: #ded3a6; --bank: #c6bc8a; --leaf: #8e8640; --stalk: #88825a; }
.tkw-garden[data-season="winter"] { --hill: #d8ddcf; --bank: #bdc9b8; --leaf: #647654; --stalk: #758576; }
.tkw-garden[data-time="morning"] { --sky: #f4dbbc; --haze: #fff4de; --sun: #fbd7a1; --halo: #fff3d3; }
.tkw-garden[data-time="evening"] { --sky: #ecc2ab; --haze: #f9e1bb; --sun: #f1aa71; --halo: #ffcf9f; }
.tkw-garden[data-time="night"] { --sky: #28394a; --haze: #536278; --sun: #f5e8bb; --halo: #e9ecdd55; --sky-text: #fff8e9; }
.tkw-landscape { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(168deg, var(--sky), var(--haze) 73%); pointer-events: none; }
.tkw-sun { position: absolute; top: 9%; right: 19%; width: clamp(110px, 17vw, 250px); aspect-ratio: 1; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 20px var(--halo), 0 0 66px 26px var(--halo); }
.tkw-garden[data-time="night"] .tkw-sun { width: clamp(52px, 8vw, 106px); right: 16%; box-shadow: 0 0 42px 8px var(--halo); }
.tkw-hill, .tkw-bank { position: absolute; border-radius: 50% 46% 0 0; }
.tkw-hill { bottom: -19%; right: -22%; width: 131%; height: 60%; background: var(--hill); transform: rotate(-8deg); }
.tkw-bank { bottom: -34%; left: -31%; width: 145%; height: 66%; background: var(--bank); transform: rotate(7deg); }
.tkw-garden[data-time="night"] :is(.tkw-hill, .tkw-bank, .tkw-bamboo) { filter: brightness(.64) saturate(.7); }
.tkw-bamboo { position: absolute; width: 118px; height: 85%; bottom: 0; opacity: .77; }
.tkw-bamboo-left { left: -24px; transform: rotate(-8deg); opacity: .52; }
.tkw-bamboo-right { right: 4px; transform: scaleX(-1) rotate(-10deg); }
.tkw-bamboo i { position: absolute; left: 30px; bottom: -12px; width: 6px; height: 99%; border-radius: 80% 80% 0 0; background: repeating-linear-gradient(to top, var(--stalk) 0 49px, transparent 49px 51px); transform-origin: bottom; transform: rotate(5deg); }
.tkw-bamboo i:nth-child(2) { left: 57px; height: 76%; transform: rotate(-11deg); }
.tkw-bamboo i:nth-child(3) { left: 5px; height: 58%; transform: rotate(18deg); }
.tkw-bamboo i::before, .tkw-bamboo i::after { content: ""; position: absolute; width: 54px; height: 13px; background: var(--leaf); border-radius: 0 100% 0 100%; transform-origin: left; }
.tkw-bamboo i::before { top: 15%; left: 3px; transform: rotate(-31deg); }
.tkw-bamboo i::after { top: 28%; right: 0; transform-origin: right; transform: rotate(28deg); }
.tkw-garden[data-season="winter"] .tkw-bamboo i:nth-child(3)::after { display: none; }

.tkw-hero { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); align-items: center; min-height: clamp(485px, 41vw, 610px); column-gap: 16px; padding-block: 48px 28px; }
.tkw-intro { z-index: 1; position: relative; }
.tkw-place { margin: 0 0 16px; font-size: .89rem; letter-spacing: .16em; font-weight: 600; }
.tkw h1, .tkw h2 { font-family: var(--serif); line-height: 1.23; margin: 0; font-weight: 650; }
.tkw h1 { font-size: clamp(2.4rem, 5.1vw, 5rem); letter-spacing: .015em; }
.tkw-opening { margin: 24px 0; font-size: clamp(.94rem, 1.35vw, 1.12rem); line-height: 1.95; }
.tkw-figure { position: relative; justify-self: center; width: min(100%, 480px); margin-top: 34px; }
.tkw-figure::before { content: ""; position: absolute; inset: auto 5% 1% 5%; height: 10%; border-radius: 50%; background: #585d383c; filter: blur(10px); }
.tkw-figure img { position: relative; }
.tkw a.tkw-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; padding: 9px 19px; border-radius: 26px; color: #fffdf3; background: var(--olive); font-size: .96rem; font-weight: 650; text-decoration: none; }
.tkw a.tkw-button:hover { background: #354221; }
.tkw-garden[data-time="night"] .tkw-button { background: #f8efdb; color: #421d05; }
.tkw-down::after { content: "↓"; font-weight: 400; }
.tkw-forward::after { content: "→"; font-weight: 400; }
.tkw-up::after { content: " ↑"; }

.tkw-weather {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px 24px; flex-wrap: wrap;
  min-height: 76px; padding-block: 8px; padding-inline: 18px; color: var(--ink); background: #faf5e8; border-radius: 14px 14px 0 0;
}
.tkw-weather p { margin: 0; font-family: var(--serif); }
.tkw-weather noscript p { font-size: .84rem; }
.tkw-weather #tkw-options { display: flex; gap: 12px; flex-wrap: wrap; }
.tkw-weather label { display: grid; gap: 0; color: var(--soft); font-size: .75rem; font-weight: 600; }
.tkw-weather select { min-height: 44px; border: 1px solid #9d916c; border-radius: 7px; padding: 4px 8px; background: #fffbef; color: var(--ink); font: inherit; font-size: .84rem; max-width: 100%; }
.tkw-path { background: #f5efdf; border-block: 1px solid #e9dfc8; }
.tkw-path ul { list-style: none; padding: 11px 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tkw-path li { display: grid; }
.tkw-path li + li { border-inline-start: 1px solid #dcd1b8; }
.tkw-path a { display: grid; place-items: center; padding: 6px; min-height: 46px; text-align: center; text-decoration: none; font-size: .89rem; font-weight: 600; line-height: 1.4; }
.tkw-path a:hover { text-decoration: underline; }

.tkw-chapters { width: min(100% - 6rem, 1040px); }
.tkw-chapter { min-height: 340px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .98fr); align-items: center; gap: clamp(32px, 7vw, 108px); padding-block: clamp(48px, 7vw, 100px); border-block-end: 1px solid var(--line); }
.tkw-vignette { margin: 0; position: relative; padding: 16px; background: #e3dbc6; border-radius: 48% 48% 18px 18px / 18% 18% 18px 18px; }
.tkw-vignette img { width: 100%; border-radius: 42% 42% 8px 8px / 13% 13% 8px 8px; }
.tkw-stories .tkw-vignette { background: #dfe3c6; }
.tkw-letter .tkw-vignette { background: #eedbcc; }
.tkw-play .tkw-vignette { background: #e7e4cc; }
.tkw-paper .tkw-vignette { background: #e2e1d5; }
.tkw-works .tkw-vignette { background: #dec8a9; max-width: 380px; }
.tkw-chapter:nth-child(even) .tkw-vignette { grid-column: 2; grid-row: 1; }
.tkw-chapter:nth-child(even) .tkw-copy { grid-column: 1; grid-row: 1; }
.tkw-chapter h2 { font-size: clamp(1.95rem, 3.6vw, 3.5rem); }
.tkw-description { color: var(--soft); margin: 1rem 0 1.35rem; line-height: 1.95; }
.tkw details { border-bottom: 1px solid var(--line); margin-block: .35rem; }
.tkw details summary { cursor: pointer; padding-block: 11px; min-height: 44px; font-size: .94rem; font-weight: 650; }
.tkw details summary:hover { text-decoration: underline; }
.tkw-files, .tkw-terms { margin: .3rem 0 .65rem; padding-inline-start: 1.3rem; }
.tkw-files a { display: inline-flex; align-items: center; min-height: 44px; }
.tkw-note, .tkw-terms { font-size: .875rem; color: var(--soft); }
.tkw-terms li { margin-bottom: .45rem; }
.tkw-work-title { font-weight: 700; margin: 0 0 .5rem; }
.tkw-footer { padding-block: 30px; background: #f5efdf; }
.tkw-footer .tkw-shell { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; }
.tkw-footer a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.tkw-footer small { margin-inline-start: auto; color: var(--soft); }
.tkw a, .tkw summary, .tkw select { -webkit-tap-highlight-color: #7b85533b; }

@media (max-width: 900px) {
  .tkw-shell, .tkw-chapters { width: min(100% - 3.5rem, 1120px); }
  .tkw-bamboo-right { right: -38px; }
  .tkw-bamboo-left { left: -45px; }
  .tkw-hero { min-height: 435px; }
  .tkw-weather { margin-top: 12px; padding-block: 12px; }
  .tkw-editorial { display: none; }
}
@media (max-width: 620px) {
  .tkw-shell, .tkw-chapters { width: calc(100% - 2.5rem); }
  .tkw-top { min-height: 56px; }
  .tkw-hero { display: flex; flex-direction: column; align-items: stretch; min-height: auto; gap: 12px; padding-block: 29px 18px; }
  .tkw h1 { font-size: clamp(2.32rem, 8.8vw, 3.05rem); }
  .tkw-place { margin-bottom: 10px; }
  .tkw-opening { margin-block: 12px 16px; }
  .tkw-figure { align-self: center; width: min(100%, 300px); margin-top: 0; }
  .tkw-sun { top: 29%; right: 11%; }
  .tkw-garden[data-time="night"] .tkw-sun { top: 43%; right: 11%; }
  .tkw-bamboo { height: 75%; }
  .tkw-bamboo-left { left: -56px; }
  .tkw-bamboo-right { right: -52px; }
  .tkw-weather { margin-top: 0; padding-inline: 12px; }
  .tkw-weather #tkw-options { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tkw-weather label, .tkw-weather select { min-width: 0; width: 100%; }
  .tkw-path ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
  .tkw-path li + li { border: 0; }
  .tkw-path a { font-size: .79rem; }
  .tkw-chapter { display: flex; flex-direction: column; align-items: stretch; gap: 24px; padding-block: 46px; }
  .tkw-vignette { width: 100%; }
  .tkw-works .tkw-vignette { width: min(100%, 310px); }
  .tkw-footer small { margin-inline-start: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .tkw-chapter a.tkw-button { transition: background-color 160ms ease; }
}

.tkw-path-return { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: var(--soft); font-size: .84rem; }
.tkw-path-return::before { content: "↑"; padding-inline-end: .45em; }
.tkw-letter .tkw-path-return, .tkw-play .tkw-path-return { display: flex; width: fit-content; }
.tkw-play .tkw-vignette { width: min(100%, 310px); justify-self: center; border-radius: 14px; }
.tkw-play .tkw-vignette img { border-radius: 6px; }
.tkw-garden[data-time="night"] :focus-visible { outline-color: #fff4c9; }
.tkw-garden[data-time="night"] .tkw-weather :focus-visible { outline-color: #5b4c88; }
