@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@400;500;600;700&display=swap');

:root{
  --violet:#56228b;
  --clay:#8b4513;
  --ink:#1f1726;
  --paper:#fbf6ee;
  --paper-2:#f4ebdd;
  --card:#fffdf9;
  --line:rgba(31,23,38,.16);
  --soft:rgba(86,34,139,.09);
  --serif:'Noto Serif JP','Songti SC','Noto Serif CJK SC',Georgia,serif;
  --sans:'Noto Sans JP',system-ui,-apple-system,'PingFang SC','Microsoft YaHei',sans-serif;
}

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

html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}

body{
  margin:0;
  font-family:var(--sans);
  font-size:17px;
  line-height:1.8;
  color:var(--ink);
  background-color:var(--paper);
  background-image:radial-gradient(rgba(139,69,19,.07) 1px,transparent 1px);
  background-size:26px 26px;
  padding-bottom:126px;
  overflow-wrap:break-word;
}

.wrap{overflow-x:clip}
img{max-width:100%;height:auto}
a{color:inherit}
:focus-visible{outline:2px solid var(--violet);outline-offset:3px;border-radius:8px}

/* ---------- hero ---------- */
.hero{
  position:relative;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  align-items:center;
  gap:clamp(20px,4vw,60px);
  min-height:70vh;
  padding:clamp(36px,6vh,84px) clamp(18px,5vw,64px) clamp(28px,5vh,56px);
  overflow:hidden;
  background-color:#f7f0e5;
  background-image:radial-gradient(rgba(86,34,139,.16) 1.5px,transparent 1.6px);
  background-size:20px 20px;
  border-bottom-left-radius:52px 34px;
  border-bottom-right-radius:34px 52px;
}

.hero-copy{position:relative;z-index:2;text-align:center}
.hero h1{
  margin:0;
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(28px,5vw,58px);
  line-height:1.35;
  letter-spacing:.02em;
  color:var(--violet);
}
.hero h1::after{
  content:"";
  display:block;
  width:clamp(70px,18%,140px);
  height:12px;
  margin:18px auto 0;
  background:var(--clay);
  opacity:.32;
  border-radius:60% 40% 55% 45% / 70% 55% 45% 30%;
}

.hero-figure{
  position:relative;
  z-index:1;
  margin:0;
  aspect-ratio:5/4;
  border-radius:46% 54% 40% 60% / 50% 44% 56% 50%;
  background:#ebe0cd;
  border:1px solid var(--line);
  overflow:hidden;
  will-change:transform;
}
.hero-photo{
  position:absolute;
  inset:0;
  z-index:1;
  width:100%;
  height:100%;
  object-fit:cover;
}

.blob{
  position:absolute;
  display:block;
  pointer-events:none;
  background:linear-gradient(130deg,rgba(86,34,139,.16),rgba(139,69,19,.13));
  border-radius:52% 48% 40% 60% / 45% 55% 45% 55%;
}
.b1{width:min(320px,52vw);height:260px;top:-80px;left:-90px}
.b2{width:220px;height:190px;bottom:-70px;left:34%;opacity:.7}
.b3{width:74%;height:74%;top:13%;left:13%;opacity:.6;border-radius:60% 40% 55% 45% / 48% 52% 44% 56%}

/* ---------- body split ---------- */
.split{
  display:grid;
  grid-template-columns:minmax(0,1fr) 298px;
  gap:clamp(20px,3vw,44px);
  max-width:1180px;
  margin:0 auto;
  padding:clamp(28px,5vw,58px) clamp(16px,4vw,40px) clamp(32px,5vw,64px);
}

.body{min-width:0;counter-reset:sec}

.body > div{
  position:relative;
  counter-increment:sec;
  margin:0 0 clamp(20px,3vw,32px);
  padding:clamp(22px,3.2vw,40px);
  background:var(--card);
  border:1px solid var(--line);
  border-radius:24px;
  scroll-margin-top:26px;
}
.body > div:nth-child(even){
  background:#fdf8f0;
  border-radius:14px 28px 16px 30px;
}
.body > div:nth-child(3n){
  border-radius:30px 16px 26px 18px;
}
.body > div::before{
  content:counter(sec,decimal-leading-zero);
  position:absolute;
  top:0;
  left:clamp(18px,3vw,34px);
  transform:translateY(-50%);
  padding:0 10px;
  font-family:var(--serif);
  font-size:13px;
  line-height:1.8;
  letter-spacing:.14em;
  color:var(--clay);
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:999px;
}
.body > div > *:last-child{margin-bottom:0}

.body h2{
  margin:0 0 .55em;
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(21px,2.4vw,28px);
  line-height:1.5;
  color:var(--violet);
}
.body h2::after{
  content:"";
  display:block;
  width:64px;
  height:9px;
  margin-top:10px;
  background:var(--clay);
  opacity:.3;
  border-radius:60% 40% 55% 45% / 70% 55% 45% 30%;
}
.body h3{
  margin:1.5em 0 .4em;
  font-family:var(--serif);
  font-weight:600;
  font-size:19px;
  line-height:1.6;
}
.body h4{margin:1.3em 0 .3em;font-size:17px;letter-spacing:.04em}
.body p{margin:0 0 1.05em}
.body ul,.body ol{margin:0 0 1.1em;padding-left:1.35em}
.body li{margin:.35em 0}
.body a{
  color:var(--violet);
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
  text-decoration-color:rgba(139,69,19,.55);
}
.body a:hover{text-decoration-color:var(--violet)}
.body strong{color:#2a1f33}
.body blockquote{
  margin:1.2em 0;
  padding:14px 20px;
  color:#3a2c44;
  background:#f7efe3;
  border-left:5px solid var(--clay);
  border-radius:0 18px 18px 0;
}
.body figure{margin:1.2em 0}
.body img{border-radius:18px}
.body figcaption{margin-top:.45em;font-size:.9em;color:#6b5c78}
.body table{width:100%;border-collapse:collapse;margin:0 0 1.1em;font-size:.95em}
.body th,.body td{border:1px solid var(--line);padding:9px 11px;text-align:left}
.body th{background:#f5ece0;font-weight:600}
.body hr{border:0;border-top:1px dashed var(--line);margin:1.6em 0}
.body code{font-size:.94em;background:#f3ebe0;padding:.1em .4em;border-radius:6px}

/* ---------- aside ---------- */
.rail{
  position:sticky;
  top:22px;
  align-self:start;
  min-width:0;
  padding:22px 18px;
  background:var(--paper-2);
  border:1px solid var(--line);
  border-radius:26px 16px 24px 18px;
}
.rail-title{
  margin:0;
  font-family:var(--serif);
  font-weight:600;
  font-size:18px;
  line-height:1.5;
  color:var(--violet);
}
.subtitle{
  margin:4px 0 12px;
  font-size:13px;
  line-height:1.7;
  letter-spacing:.14em;
  color:var(--clay);
}
.rail-list{list-style:none;margin:0;padding:0}
.rail-list li + li{border-top:1px dashed var(--line)}

.dl{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:9px 12px;
  font-size:16px;
  line-height:1.35;
  color:var(--ink);
  text-decoration:none;
  border-radius:999px;
  white-space:nowrap;
  transition:background .22s ease,color .22s ease,transform .22s ease;
}
.dl svg{width:16px;height:16px;flex:0 0 auto;color:var(--clay);transition:color .22s ease}
.dl:hover,.dl:focus-visible{background:var(--soft);color:var(--violet);transform:translateY(-1px)}
.dl:hover svg{color:var(--violet)}
.rail-list .dl{border-radius:14px;white-space:normal}

/* ---------- footer ---------- */
.foot{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:space-between;
  gap:clamp(18px,3vw,40px);
  padding:clamp(28px,5vw,54px) clamp(18px,4vw,44px) clamp(30px,5vw,50px);
  background:var(--paper-2);
  border-top:1px solid var(--line);
  border-top-left-radius:46px 22px;
  border-top-right-radius:22px 46px;
}
.foot-brand{flex:0 1 auto;min-width:0}
.foot-brand span{
  display:block;
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(30px,6vw,54px);
  line-height:1.12;
  letter-spacing:.04em;
  color:var(--violet);
  overflow-wrap:anywhere;
}
.foot-nav dl{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 16px;
  margin:0;
}
.foot-nav dt{margin:0}
.foot-nav dd{margin:0;display:none}
.foot-nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:6px 8px 6px 0;
  font-size:16px;
  line-height:1.4;
  color:var(--ink);
  text-decoration:none;
  border-radius:8px;
  transition:color .2s ease;
}
.foot-nav a:hover,.foot-nav a:focus-visible{color:var(--violet);text-decoration:underline;text-underline-offset:3px}

.foot-legal{display:flex;flex-direction:column;align-items:flex-end;gap:4px;min-width:0}
.cop{margin:0;font-size:16px;line-height:1.7;color:#5c4c6a}
.legal-links{display:flex;gap:14px;margin:0}
.legal-links a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:16px;
  color:var(--ink);
  text-decoration:none;
  border-bottom:1px solid var(--line);
}
.legal-links a:hover,.legal-links a:focus-visible{color:var(--violet);border-color:var(--violet)}

/* ---------- dock ---------- */
.dock{
  position:fixed;
  left:50%;
  bottom:14px;
  transform:translateX(-50%);
  z-index:30;
  display:flex;
  align-items:center;
  gap:2px;
  max-width:min(1080px,calc(100vw - 24px));
  padding:7px;
  background:rgba(251,246,238,.96);
  border:1px solid var(--line);
  border-radius:999px;
  box-shadow:0 12px 30px rgba(31,23,38,.1);
  backdrop-filter:blur(8px);
}
.dock-grp{display:flex;align-items:center;gap:0;min-width:0}
.dock-grp.b{justify-content:flex-end}
.dock-brand{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  margin:0 3px;
  padding:8px 15px;
  font-family:var(--serif);
  font-size:16px;
  font-weight:700;
  letter-spacing:.04em;
  color:var(--violet);
  text-decoration:none;
  white-space:nowrap;
  border-left:1px solid var(--line);
  border-right:1px solid var(--line);
}

/* ---------- reveal ---------- */
.rv{opacity:0;transform:translateY(16px)}
.rv.in{opacity:1;transform:none;transition:opacity .6s ease,transform .6s ease}

/* ---------- mobile ---------- */
@media (max-width:900px){
  .split{grid-template-columns:minmax(0,1fr)}
  .rail{position:static}
}

@media (max-width:760px){
  body{font-size:17px;padding-bottom:174px}
  .hero{
    grid-template-columns:minmax(0,1fr);
    min-height:auto;
    padding:clamp(26px,5vh,46px) 16px 26px;
    border-bottom-left-radius:36px 24px;
    border-bottom-right-radius:24px 36px;
  }
  .hero-figure{order:2;width:100%;aspect-ratio:16/10;margin-top:6px}
  .split{padding:22px 14px 40px}
  .body > div{padding:22px 18px;border-radius:20px}
  .body > div:nth-child(even){border-radius:14px 24px 16px 26px}
  .foot{flex-direction:column;align-items:flex-start;gap:16px}
  .foot-legal{align-items:flex-start}
  .foot-nav dl{width:100%}
  .dock{
    left:8px;
    right:8px;
    bottom:8px;
    transform:none;
    max-width:none;
    justify-content:center;
    flex-wrap:wrap;
    border-radius:22px;
    padding:6px;
  }
  .dock-brand{
    order:-1;
    flex:0 0 100%;
    justify-content:center;
    margin:0;
    padding:6px 0 8px;
    min-height:42px;
    border-left:0;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .dock-grp{flex:1 1 0;overflow-x:auto;scrollbar-width:none}
  .dock-grp.b{justify-content:flex-start}
  .dock-grp::-webkit-scrollbar{display:none}
  .dock .dl{padding:8px 10px;font-size:16px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation:none !important;transition:none !important}
  .rv{opacity:1;transform:none}
}

button[aria-expanded]{min-width:44px;min-height:44px}
