:root {
  --paper: #f8f3e8;
  --paper-deep: #eee4d1;
  --ink: #29241f;
  --muted: #746b61;
  --gold: #b58943;
  --gold-light: #d8b874;
  --sakura: #d98f91;
  --sakura-light: #f1d2cc;
  --green: #385a4b;
  --line: rgba(90, 72, 49, .2);
  --max: 1180px;
}

*, *::before, *::after {
  box-sizing: border-box;
  font-family: "Noto Sans JP", sans-serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(181,137,67,.08), transparent 26rem),
    linear-gradient(rgba(255,255,255,.34), rgba(255,255,255,.34)),
    repeating-linear-gradient(93deg, transparent 0 5px, rgba(95,72,45,.018) 5px 6px),
    var(--paper);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .035em;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 1000; padding: .65rem 1rem; background: var(--ink); color: #fff; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}

.site-header.is-scrolled {
  background: rgba(248,243,232,.92);
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(64,47,26,.06);
  backdrop-filter: blur(12px);
}

.brand { display: flex; align-items: center; gap: .7rem; line-height: 1.15; }
.brand-mark { color: var(--gold); font-size: 2rem; font-weight: 300; transform: rotate(-8deg); }
.brand strong { display: block; font-size: .95rem; letter-spacing: .14em; }
.brand small { display: block; margin-top: .25rem; color: var(--muted); font-size: .59rem; letter-spacing: .22em; }
.global-nav { display: flex; gap: clamp(1.2rem, 3vw, 2.8rem); font-size: .82rem; font-weight: 500; letter-spacing: .13em; }
.global-nav a { position: relative; padding: .4rem 0; }
.global-nav a::after { content: ""; position: absolute; right: 100%; bottom: 0; left: 0; height: 1px; background: var(--gold); transition: right .25s; }
.global-nav a:hover::after, .global-nav a:focus-visible::after { right: 0; }
.menu-button { display: none; border: 0; background: transparent; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  align-items: center;
  min-height: 100svh;
  padding: 9rem max(5vw, calc((100vw - var(--max))/2)) 5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(120deg, rgba(255,255,255,.75), transparent 60%); }
.hero-copy { position: relative; z-index: 2; max-width: 720px; }
.eyebrow, .section-heading > p { margin: 0 0 1rem; color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .28em; }
.hero h1 { margin: 0; font-size: clamp(2.55rem, 5.4vw, 5.3rem); font-weight: 400; line-height: 1.35; letter-spacing: .045em; }
.hero h1 em { color: var(--green); font-style: normal; font-weight: 700; }
.hero-lead { max-width: 650px; margin: 2rem 0 0; color: #5d554d; font-size: clamp(1rem, 1.35vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.3rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-width: 166px; padding: .8rem 1.4rem; border: 1px solid var(--gold); font-size: .82rem; font-weight: 600; letter-spacing: .1em; transition: .25s; }
.button.primary, .button:hover { background: var(--gold); color: #fff; }
.button.primary:hover { background: #957034; border-color: #957034; }

.hero-visual { position: relative; min-height: 560px; overflow: hidden; }
.sun { position: absolute; top: 6%; right: 12%; width: 170px; aspect-ratio: 1; border-radius: 50%; background: rgba(217,143,145,.22); box-shadow: 0 0 60px rgba(217,143,145,.12); }
.mountain { position: absolute; right: -8%; bottom: 8%; width: 96%; height: 65%; opacity: .75; clip-path: polygon(0 100%, 22% 51%, 35% 67%, 61% 15%, 100% 100%); }
.mountain-a { background: linear-gradient(145deg, rgba(181,137,67,.15), rgba(56,90,75,.35)); }
.mountain-b { right: 21%; bottom: 1%; width: 72%; height: 48%; background: linear-gradient(150deg, rgba(217,143,145,.25), rgba(181,137,67,.14)); }
.paper-card { position: absolute; top: 24%; left: 12%; display: flex; gap: 1.1rem; padding: 2.3rem 2rem; border: 1px solid rgba(181,137,67,.35); background: rgba(255,252,243,.78); box-shadow: 18px 22px 0 rgba(181,137,67,.09); transform: rotate(-3deg); backdrop-filter: blur(3px); }
.paper-card::before, .paper-card::after { content: ""; position: absolute; width: 65%; height: 1px; background: var(--gold-light); }
.paper-card::before { top: 1rem; left: -1rem; }.paper-card::after { right: -1rem; bottom: 1rem; }
.paper-card span { font-size: clamp(2.2rem, 4vw, 3.8rem); font-weight: 200; writing-mode: vertical-rl; }
.paper-card span:nth-child(2) { color: var(--gold); }.paper-card span:nth-child(3) { color: var(--green); }
.hero-seal { position: absolute; right: 13%; bottom: 14%; display: grid; place-items: center; width: 74px; aspect-ratio: 1; border: 2px solid rgba(179,72,57,.72); color: rgba(179,72,57,.82); font-size: .9rem; font-weight: 700; letter-spacing: .1em; transform: rotate(7deg); }
.scroll-note { position: absolute; bottom: 2rem; left: clamp(1.25rem, 4vw, 4rem); color: var(--muted); font-size: .6rem; letter-spacing: .25em; writing-mode: vertical-rl; }
.scroll-note::after { content: ""; display: inline-block; width: 1px; height: 48px; margin-top: .8rem; background: var(--gold); animation: scrollPulse 1.8s ease-in-out infinite; }

.section { width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; padding: clamp(5.5rem, 10vw, 9rem) 0; }
.section-heading { display: grid; grid-template-columns: minmax(190px,.45fr) 1fr; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-heading > p { grid-row: 1; margin-bottom: .55rem; }
.section-heading h2 { grid-row: 2; margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 400; letter-spacing: .09em; line-height: 1.25; }
.section-heading > span { grid-column: 2; grid-row: 2; align-self: end; justify-self: end; padding-bottom: .5rem; color: var(--muted); font-size: .82rem; }

.about-section { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .6fr); gap: clamp(2.5rem, 7vw, 7rem); }
.about-main p { max-width: 760px; margin: 0 0 1.5rem; color: #585049; }
.about-main .large-text { color: var(--ink); font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.8; }
.about-main strong { color: var(--green); }
.profile-note { padding: 2rem; border-top: 3px solid var(--gold); background: rgba(255,255,255,.42); }
.profile-note dl { margin: 0; }.profile-note dl div { padding: 1rem 0; border-bottom: 1px solid var(--line); }.profile-note dl div:first-child { padding-top: 0; }.profile-note dl div:last-child { border: 0; padding-bottom: 0; }
.profile-note dt { color: var(--gold); font-size: .62rem; font-weight: 700; letter-spacing: .18em; }.profile-note dd { margin: .25rem 0 0; font-size: .92rem; font-weight: 500; }

.projects-section { width: 100%; padding-inline: max(1.25rem, calc((100% - var(--max))/2)); background: rgba(239,229,210,.63); }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.project-card { position: relative; min-height: 360px; padding: clamp(2rem, 4vw, 3.5rem); background: var(--paper); transition: background .3s; overflow: hidden; }
.project-card:hover { background: #fffaf0; }.project-card::after { content: "＊"; position: absolute; right: -1rem; bottom: -3rem; color: rgba(181,137,67,.07); font-size: 10rem; line-height: 1; }
.project-featured { background: var(--green); color: #fff; }.project-featured:hover { background: #304f42; }.project-featured::after { color: rgba(255,255,255,.06); }
.project-number { position: absolute; top: 1.5rem; right: 1.7rem; color: var(--gold); font-size: .7rem; letter-spacing: .15em; }.project-featured .project-number { color: var(--gold-light); }
.project-card .tag { margin: 0 0 1.4rem; color: var(--gold); font-size: .65rem; font-weight: 700; letter-spacing: .2em; }.project-featured .tag { color: var(--gold-light); }
.project-card h3 { margin: 0 0 1.2rem; font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 500; letter-spacing: .08em; }
.project-card > p:not(.tag) { max-width: 500px; color: var(--muted); }.project-featured > p:not(.tag) { color: rgba(255,255,255,.75); }
.project-card ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.8rem 0 0; padding: 0; list-style: none; }.project-card li { padding: .3rem .65rem; border: 1px solid rgba(255,255,255,.25); font-size: .7rem; }
.text-link { position: absolute; bottom: 2.5rem; left: clamp(2rem, 4vw, 3.5rem); z-index: 2; color: var(--green); font-size: .78rem; font-weight: 600; }.text-link span { display: inline-block; margin-left: .4rem; transition: transform .2s; }.text-link:hover span { transform: translateX(.35rem); }

.theme-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.theme-list article { min-height: 200px; padding: 2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.theme-list span { color: var(--sakura); font-size: .65rem; font-weight: 700; }.theme-list h3 { margin: 1.1rem 0 .7rem; font-size: 1.45rem; font-weight: 500; }.theme-list p { margin: 0; color: var(--muted); font-size: .82rem; }

.timeline-section { width: 100%; padding-inline: max(1.25rem, calc((100% - var(--max))/2)); color: #f8f3e8; background: var(--ink); }
.timeline-section .section-heading > p { color: var(--gold-light); }.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: minmax(150px,.34fr) 1fr; gap: 2rem; padding: 2.2rem 0; border-top: 1px solid rgba(255,255,255,.15); }
.timeline time { color: var(--gold-light); font-size: .74rem; font-weight: 700; letter-spacing: .2em; }.timeline h3 { margin: 0 0 .6rem; font-size: clamp(1.15rem,2vw,1.5rem); font-weight: 500; }.timeline p { margin: 0; color: rgba(255,255,255,.55); font-size: .88rem; }

.skills-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.skill-group { padding: 2.5rem; border: 1px solid var(--line); background: rgba(255,255,255,.25); }.skill-group h3 { margin: 0 0 1.1rem; color: var(--green); font-size: 1rem; letter-spacing: .08em; }.skill-group p { margin: 0; color: var(--muted); font-size: .88rem; }

.fieldwork-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem,7vw,7rem); border-top: 1px solid var(--line); }
.fieldwork-copy h2 { margin: 0 0 1.7rem; font-size: clamp(2rem,4vw,3.8rem); font-weight: 400; line-height: 1.45; }.fieldwork-copy > p:last-child { color: var(--muted); }
.route-map { position: relative; min-height: 310px; border: 1px solid var(--line); background: radial-gradient(circle, rgba(181,137,67,.15) 1px, transparent 1px); background-size: 18px 18px; }
.route-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }.route-map path { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 6 8; }.route-map b { position: absolute; right: 2rem; bottom: 1.5rem; color: rgba(56,90,75,.15); font-size: 2.5rem; line-height: 1; letter-spacing: .05em; text-align: right; }
.route-dot { position: absolute; z-index: 2; width: 11px; aspect-ratio: 1; border: 2px solid var(--paper); border-radius: 50%; background: var(--sakura); box-shadow: 0 0 0 1px var(--sakura); }.route-dot.one { left: 5%; bottom: 17%; }.route-dot.two { left: 36%; top: 35%; }.route-dot.three { right: 3%; top: 13%; }

.links-section { width: 100%; padding-inline: max(1.25rem, calc((100% - var(--max))/2)); background: rgba(239,229,210,.63); }
.link-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }.link-cards a { position: relative; min-height: 170px; padding: 2rem; border: 1px solid var(--line); background: rgba(255,255,255,.45); transition: .25s; }.link-cards a:hover { transform: translateY(-4px); background: #fffaf0; box-shadow: 0 12px 28px rgba(70,50,26,.08); }.link-cards span { display: block; margin-bottom: 1.5rem; color: var(--gold); font-size: .62rem; font-weight: 700; letter-spacing: .2em; }.link-cards strong { font-size: 1.15rem; font-weight: 500; }.link-cards i { position: absolute; top: 1.6rem; right: 1.7rem; color: var(--gold); font-style: normal; }

.closing { position: relative; padding: clamp(7rem,14vw,12rem) 1.25rem; overflow: hidden; text-align: center; }.closing::before { content: ""; position: absolute; top: 50%; left: 50%; width: min(70vw,720px); aspect-ratio: 1; border: 1px solid rgba(181,137,67,.16); border-radius: 50%; transform: translate(-50%,-50%); }.closing p { position: relative; margin: 0 0 1.5rem; color: var(--gold); font-size: .82rem; letter-spacing: .16em; }.closing h2 { position: relative; margin: 0; color: var(--green); font-size: clamp(2.4rem,6vw,5.5rem); font-weight: 300; line-height: 1.45; letter-spacing: .12em; }.closing-mark { position: relative; display: block; margin-top: 2rem; color: var(--sakura); font-size: 2rem; }

.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; padding: 3rem max(1.25rem, calc((100% - var(--max))/2)); color: rgba(255,255,255,.8); background: var(--green); }.site-footer strong, .site-footer small { display: block; }.site-footer strong { font-size: .95rem; letter-spacing: .12em; }.site-footer small { margin-top: .2rem; color: var(--gold-light); font-size: .6rem; letter-spacing: .2em; }.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1.2rem; font-size: .72rem; }.site-footer a:hover { color: var(--gold-light); }.site-footer > p { grid-column: 1/-1; margin: 1.4rem 0 0; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.45); font-size: .65rem; }

.petals { position: fixed; inset: 0; z-index: 50; pointer-events: none; overflow: hidden; }.petals i { position: absolute; top: -5vh; width: 11px; height: 16px; border-radius: 80% 0 80% 30%; background: rgba(217,143,145,.46); animation: petalFall 14s linear infinite; }.petals i:nth-child(1){left:8%;animation-delay:-2s}.petals i:nth-child(2){left:31%;animation-delay:-9s;animation-duration:17s}.petals i:nth-child(3){left:55%;animation-delay:-5s;animation-duration:12s}.petals i:nth-child(4){left:78%;animation-delay:-12s;animation-duration:19s}.petals i:nth-child(5){left:93%;animation-delay:-7s;animation-duration:15s}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }.reveal.is-visible { opacity: 1; transform: none; }

@keyframes petalFall { to { transform: translate(80px,110vh) rotate(520deg); } }
@keyframes scrollPulse { 0%,100%{transform:scaleY(.3);transform-origin:top}50%{transform:scaleY(1);transform-origin:top} }

@media (max-width: 900px) {
  .site-header { height: 70px; }.menu-button { display: grid; gap: 5px; width: 42px; height: 42px; place-content: center; cursor: pointer; }.menu-button span:not(.visually-hidden) { display: block; width: 23px; height: 1px; background: var(--ink); transition: .25s; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .global-nav { position: fixed; inset: 70px 0 auto; display: grid; gap: 0; padding: 1rem 1.5rem 1.5rem; background: rgba(248,243,232,.98); border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .3s; }.global-nav.is-open { transform: none; }.global-nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .hero { grid-template-columns: 1fr; padding-top: 8.5rem; }.hero-visual { position: absolute; z-index: -1; inset: 24% -20% 0 36%; opacity: .62; }.hero-copy { text-shadow: 0 1px var(--paper); }
  .section-heading { display: block; }.section-heading > span { display: block; margin-top: .8rem; }
  .about-grid, .fieldwork-section { grid-template-columns: 1fr; }.project-card { min-height: 390px; }.theme-list { grid-template-columns: repeat(2,1fr); }.fieldwork-copy { max-width: 700px; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }.brand small { display: none; }.hero { min-height: 820px; align-items: start; padding-top: 9.5rem; }.hero h1 { font-size: clamp(2.35rem,11vw,3.5rem); }.hero-lead br { display: none; }.hero-actions { display: grid; grid-template-columns: 1fr; max-width: 300px; }.hero-visual { inset: 38% -28% 0 15%; }.paper-card { top: 28%; left: 18%; padding: 1.8rem 1.5rem; }.scroll-note { display: none; }
  .section { width: min(100% - 2rem,var(--max)); padding-block: 5rem; }.projects-section, .timeline-section, .links-section { width: 100%; padding-inline: 1rem; }.project-grid, .skills-grid, .link-cards { grid-template-columns: 1fr; }.project-card { min-height: 340px; }.theme-list { grid-template-columns: 1fr; }.theme-list article { min-height: 160px; }.timeline li { grid-template-columns: 1fr; gap: .6rem; }.route-map { min-height: 250px; }.site-footer { grid-template-columns: 1fr; }.site-footer nav { justify-content: flex-start; }.site-footer > p { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }.reveal { opacity: 1; transform: none; }
}
