/* 尾薗 圭亮 — 全ページ共通のスタイル */

:root{
  --paper:#faf6f0;
  --card:#ffffff;
  --ink:#2b2724;
  --ink-soft:#7a726b;
  --line:rgba(43,39,36,.12);

  --peach:#f4c4a8;
  --lavender:#cfc3ee;
  --mint:#b9e0cd;
  --butter:#f3dc97;
  --pink:#f1bfd2;
  --blue:#bccde8;

  --letter:#f6eedf;
  --rule:rgba(110,90,60,.18);

  --mincho:"Shippori Mincho","Hiragino Mincho ProN","Yu Mincho",serif;
  --gothic:"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic","Noto Sans JP",sans-serif;
  --hand:"Yomogi","Hiragino Maru Gothic ProN",sans-serif;
  --mono:"SFMono-Regular",Menlo,Consolas,monospace;
}

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

html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; overflow-x:hidden; }

body{
  background:var(--paper);
  color:var(--ink);
  font-family:var(--gothic);
  font-size:1.125rem;
  line-height:1.9;
  -webkit-font-smoothing:antialiased;
  /* 日本語を文節の切れ目で折り返す（対応ブラウザのみ） */
  word-break:auto-phrase;
  text-wrap:pretty;
}

a{ color:inherit; }

.page{
  max-width:600px;
  margin:0 auto;
  padding:56px 24px 96px;
}

/* スマホ幅でだけ効かせる改行 */
.brk-mobile{ display:none; }
@media (max-width:600px){
  .brk-mobile{ display:inline; }
}

/* ---------- 名刺（実物の表面を再現） ----------
   iPhoneのChromeなど、コンテナ単位(cqw)が使えない環境でも同じ倍率になるように、
   画面幅から名刺の幅を計算して、すべての寸法をそこから決める。
   --u は「名刺の中身の幅の1%」。 */
.meishi{
  --card-w:min(calc(100vw - 48px), 552px);
  --u:calc(var(--card-w) * .0092);
  width:100%;
  aspect-ratio:91 / 55;
  min-height:calc(var(--card-w) * .604);
  padding:5.5% 5%;
  background:#fff;
  color:#111;
  border:1px solid var(--line);
  border-radius:4px;
  box-shadow:0 1px 2px rgba(0,0,0,.05), 0 10px 28px rgba(60,40,20,.08);
  font-family:var(--mincho);
  overflow:hidden;
}
.meishi__univ{
  display:flex;
  align-items:baseline;
  gap:calc(var(--u) * 2);
  line-height:1.2;
  white-space:nowrap;
}
.meishi__univ .ja{ font-weight:800; font-size:calc(var(--u) * 6.6); letter-spacing:.02em; }
.meishi__univ .en{ font-weight:500; font-size:calc(var(--u) * 4.2); letter-spacing:.01em; }
.meishi__main{ margin:calc(var(--u) * 4) 0 0 18%; }
.meishi__dept{ font-weight:800; font-size:calc(var(--u) * 5); line-height:1.3; letter-spacing:.05em; }
.meishi__roman{ font-weight:500; font-size:calc(var(--u) * 4); line-height:1.3; letter-spacing:.03em; margin-top:calc(var(--u) * .4); }
.meishi__name{
  font-weight:800;
  font-size:calc(var(--u) * 11.4);
  line-height:1.15;
  letter-spacing:.07em;
  white-space:nowrap;
}
.meishi__mail{
  margin:calc(var(--u) * 3.6) 0 0 calc(var(--u) * -3.4);
  padding-left:calc(var(--u) * 2.4);
  border-left:calc(var(--u) * 1.1) solid #222;
  font-weight:500;
  font-size:calc(var(--u) * 4.3);
  line-height:1.6;
  white-space:nowrap;
}
.meishi__mail a{ text-underline-offset:.25em; text-decoration-thickness:1px; }

.greeting{ margin-top:28px; }

/* ---------- セクション ---------- */
.section{ margin-top:64px; }
.section--loose{ margin-top:92px; }
.section--tight{ margin-top:52px; }

.section__title{
  font-family:var(--mincho);
  font-weight:600;
  font-size:1.5rem;
  letter-spacing:.06em;
  margin-bottom:.9em;
}
.section__title::after{
  content:"";
  display:block;
  width:2.2em;
  height:3px;
  margin-top:.35em;
  background:var(--butter);
  transform:rotate(-1.2deg);
}

.section p + p{ margin-top:.8em; }

.text-link{
  display:inline-block;
  margin-top:1.1em;
  font-size:1rem;
  color:var(--ink-soft);
  text-underline-offset:.3em;
  text-decoration-color:rgba(43,39,36,.3);
}

.as-of{
  font-size:.95rem;
  color:var(--ink-soft);
  margin-bottom:1em;
}

/* ---------- カード（左に色帯） ---------- */
.cards{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.card{
  position:relative;
  display:block;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:6px;
  padding:18px 20px 18px 26px;
  text-decoration:none;
}
.card::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width:6px;
  border-radius:6px 0 0 6px;
  background:var(--accent, var(--line));
}
.card h3{
  font-size:1.2rem;
  font-weight:700;
  line-height:1.5;
}
.card p{
  font-size:1rem;
  line-height:1.75;
  color:var(--ink-soft);
  margin-top:.3em;
}
.card__more{
  display:block;
  margin-top:.5em;
  font-size:.9rem;
  text-align:right;
}
@media (hover:hover){
  a.card:hover{ border-color:rgba(43,39,36,.32); }
}

/* ---------- 手紙 ---------- */
.letter{
  background:var(--letter);
  border:1px solid rgba(110,90,60,.16);
  border-radius:4px;
  padding:28px 24px 32px;
}
.letter__body,
.letter__sign{
  font-family:var(--hand);
  font-size:1.3rem;
  line-height:2.5rem;
  background-image:linear-gradient(to bottom, transparent calc(2.5rem - 1px), var(--rule) calc(2.5rem - 1px));
  background-size:100% 2.5rem;
}
.letter__sign{
  text-align:right;
  margin-top:2.5rem;
}

.js-write .ch{ opacity:0; transition:opacity .2s linear; }
.js-write.is-written .ch{ opacity:1; }

.contact-list{
  list-style:none;
  margin-top:28px;
}
.contact-list li{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
  border-bottom:1px solid var(--line);
  font-size:1rem;
}
.contact-list li > span:first-child{ color:var(--ink-soft); flex-shrink:0; }
.contact-list a{
  text-align:right;
  word-break:break-all;
  text-underline-offset:.3em;
  text-decoration-color:rgba(43,39,36,.3);
}
.muted{ color:var(--ink-soft); }

/* ---------- 下層ページ ---------- */
.back{
  display:inline-block;
  font-size:.95rem;
  color:var(--ink-soft);
  text-decoration:none;
  margin-bottom:40px;
}

.page-title{
  font-family:var(--mincho);
  font-weight:600;
  font-size:2rem;
  letter-spacing:.06em;
  line-height:1.4;
  margin-bottom:.5em;
}

.lead{ color:var(--ink-soft); }

.timeline{
  list-style:none;
  margin-top:40px;
  border-left:1px solid var(--line);
  padding-left:24px;
}
.timeline li{
  position:relative;
  padding-bottom:36px;
}
.timeline li:last-child{ padding-bottom:0; }
.timeline li::before{
  content:"";
  position:absolute;
  left:-30px;
  top:.75em;
  width:11px;
  height:11px;
  border-radius:50%;
  background:var(--accent, var(--ink-soft));
}
.timeline h3{
  font-family:var(--mincho);
  font-weight:600;
  font-size:1.25rem;
  line-height:1.6;
}
.timeline p{
  font-size:1rem;
  color:var(--ink-soft);
  margin-top:.3em;
}

.sub-title{
  font-family:var(--mincho);
  font-weight:600;
  font-size:1.25rem;
  margin:48px 0 16px;
}

.pager{
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin-top:64px;
  padding-top:20px;
  border-top:1px solid var(--line);
  font-size:.95rem;
}
.pager a{ color:var(--ink-soft); text-decoration:none; }

/* ---------- リポジトリ風（projects/） ---------- */
.repo-path{
  font-family:var(--mono);
  font-size:.95rem;
  color:var(--ink-soft);
  margin-bottom:16px;
}
.repo-path strong{ color:var(--ink); font-weight:600; }

.readme{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:6px;
}
.readme__head{
  font-family:var(--mono);
  font-size:.85rem;
  color:var(--ink-soft);
  padding:10px 16px;
  border-bottom:1px solid var(--line);
}
.readme__body{ padding:24px 20px 28px; }
.readme__body h1{
  font-family:var(--mincho);
  font-weight:600;
  font-size:1.8rem;
  line-height:1.4;
  padding-bottom:.3em;
  border-bottom:1px solid var(--line);
  margin-bottom:.6em;
}
.readme__body h2{
  font-size:1.1rem;
  font-weight:700;
  margin:1.6em 0 .5em;
  padding-bottom:.25em;
  border-bottom:1px solid var(--line);
}
.readme__body ul{ padding-left:1.2em; }
.readme__body li{ margin:.15em 0; }
.state{
  display:inline-block;
  font-family:var(--mono);
  font-size:.85rem;
  line-height:1.6;
  background:var(--accent, var(--line));
  padding:2px 10px;
  border-radius:999px;
}

/* ---------- 歩いていく人（walk.js） ---------- */
.walk{
  --walk-h:96px;
  --walker-w:38px;
  position:fixed;
  left:0; right:0; bottom:0;
  height:calc(var(--walk-h) + env(safe-area-inset-bottom, 0px));
  z-index:10;
  pointer-events:none;
  background:linear-gradient(to bottom, rgba(250,246,240,0) 0, var(--paper) 55%);
}
@media (min-width:768px){
  .walk{ --walk-h:132px; --walker-w:56px; }
}
.has-walk .page{ padding-bottom:200px; }

.walk__stage{
  position:absolute;
  left:0; right:0; top:0;
  height:var(--walk-h);
}
.walk__ground{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:visible;
}
.walk__ground path{
  fill:none;
  stroke:#1c1a19;
  stroke-width:3.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.walk__mark{
  position:absolute;
  left:-5px; top:-5px;
  width:10px; height:10px;
  border-radius:50%;
  border:1.5px solid #1c1a19;
  background:var(--paper);
  transition:background-color .4s;
}
.walk__mark.is-passed{ background:var(--accent); }

.walk__pin{
  position:absolute;
  left:0; top:0;
  width:calc(var(--walker-w) * .8);
  text-align:center;
}
.walk__pin svg{ display:block; width:100%; height:auto; }
.walk__pin span{
  position:absolute;
  bottom:100%;
  right:-4px;
  margin-bottom:2px;
  font-family:var(--mincho);
  font-weight:500;
  font-size:.8rem;
  white-space:nowrap;
}

.walker{
  position:absolute;
  left:0; top:0;
  width:var(--walker-w);
  aspect-ratio:60 / 90;
  transform-origin:50% 100%;
}
.walker__body{ width:100%; height:100%; transform-origin:50% 100%; }
.walker svg{ display:block; width:100%; height:100%; overflow:visible; }
.walker .o{ fill:none; stroke:#8a8784; stroke-width:9; stroke-linecap:round; stroke-linejoin:round; }
.walker .f{ fill:none; stroke:#fff; stroke-width:6; stroke-linecap:round; stroke-linejoin:round; }
.walker .torso.o{ stroke-width:16; }
.walker .torso.f{ stroke-width:13; }
.walker .head{ fill:#fff; stroke:#8a8784; stroke-width:2; }
.walker .shade{ fill:none; stroke:#cfcac5; stroke-width:2.5; stroke-linecap:round; }
.walker .pose-jump{ opacity:0; }

/* 開いたときの「Hello!」 */
.walk-hello{
  position:fixed;
  left:0; right:0;
  z-index:11;
  text-align:center;
  font-family:var(--mincho);
  font-weight:500;
  font-size:clamp(2.4rem, 9vw, 4rem);
  pointer-events:none;
  opacity:0;
}

/* ---------- 箇条書きを使わない一覧（作ったもの） ---------- */
.plain{ list-style:none; margin:0 0 1.2em; }
.plain li{ padding:14px 0; border-bottom:1px solid var(--line); }
.plain b{ font-family:var(--mincho); font-weight:600; font-size:1.1rem; }
.plain .plat{ margin-left:.7em; font-size:.85rem; color:var(--ink-soft); }
.plain p{ margin-top:.3em; font-size:1rem; color:var(--ink-soft); line-height:1.75; }
.link-row{ display:flex; flex-wrap:wrap; gap:0 1.4em; margin-top:.4em; }


body{ overflow-x:hidden; overflow-x:clip; }

/* ---------- いまやっていること（箱を使わない一覧） ---------- */
.doing{
  display:grid;
  grid-template-columns:5.2em minmax(0,1fr);
  gap:.55em 1em;
  align-items:baseline;
}
.doing dt{ font-family:var(--mincho); font-weight:800; font-size:1.15rem; }
.doing dd{ color:var(--ink-soft); min-width:0; overflow-wrap:anywhere; }
.memo{ font-family:var(--hand); color:var(--ink); background:linear-gradient(transparent 60%, var(--butter) 60%); padding:0 .2em; }

/* ---------- 宮崎AIハッカソン（名刺の下の大きな告知） ---------- */
.hk{
  position:relative;
  margin:44px calc(50% - 50vw) 0;
  padding:44px 24px 52px;
  background:#ffdf35;
  color:#1f2326;
}
.hk__inner{ max-width:600px; margin:0 auto; }
.hk__hand{
  font-family:var(--hand);
  font-size:1.5rem;
  display:inline-block;
  transform:rotate(-3deg);
  background:#fff;
  padding:.05em .6em;
  margin-bottom:.4em;
}
.hk__date{ display:flex; align-items:baseline; flex-wrap:wrap; gap:0 .5em; line-height:1; }
.hk__md{ font-family:var(--mincho); font-weight:800; font-size:5.4rem; letter-spacing:-.02em; }
.hk__dow{ font-weight:700; font-size:1.05rem; }
.hk__title{
  font-family:var(--mincho);
  font-weight:800;
  font-size:2.2rem;
  line-height:1.35;
  margin:.45em 0 .6em;
}
.hk__lead{ font-size:1.12rem; line-height:1.85; }
.hk__ask{
  margin-top:1em;
  padding:.7em .9em;
  font-family:var(--hand);
  font-size:1.08rem;
  line-height:1.9;
  background:rgba(255,255,255,.6);
  transform:rotate(.6deg);
}
.hk__who{ margin-top:1em; font-size:.98rem; line-height:1.85; }

.hk__shots{ position:relative; margin:34px 0 8px; height:400px; }
.hk__shot{ position:absolute; display:block; width:62%; box-shadow:0 8px 20px rgba(0,0,0,.22); background:#fff; padding:6px; }
.hk__shot img{ display:block; width:100%; height:auto; }
.hk__shot--a{ left:0; top:10px; transform:rotate(-3.5deg); z-index:1; }
.hk__shot--b{ right:0; top:48px; transform:rotate(2.8deg); z-index:2; }
.hk__cap{ position:absolute; left:0; bottom:-6px; font-family:var(--hand); font-size:.95rem; transform:rotate(-1deg); }

.hk__go{ display:flex; flex-wrap:wrap; align-items:center; gap:.9em 1.6em; margin-top:16px; }
.hk__btn{
  display:inline-flex; align-items:center; gap:.7em;
  padding:.95em 1.7em;
  background:#1f2326; color:#fff;
  font-weight:800; font-size:1.15rem;
  text-decoration:none;
  box-shadow:4px 4px 0 rgba(255,255,255,.85);
}
.hk__page{ color:inherit; font-size:1rem; text-underline-offset:.3em; }
.hk__note{ margin-top:1.3em; font-size:.88rem; line-height:1.8; }

@media (min-width:768px){
  .hk{ padding:64px 40px 72px; }
  .hk__inner{ max-width:920px; display:grid; grid-template-columns:1.1fr .9fr; gap:0 48px; }
  .hk__text{ grid-column:1; }
  .hk__shots{ grid-column:2; grid-row:1 / span 2; margin:0; height:520px; align-self:start; }
  .hk__shot{ width:70%; }
  .hk__go, .hk__note{ grid-column:1; }
  .hk__md{ font-size:6.4rem; }
  .hk__title{ font-size:2.6rem; }
}
.nb{ white-space:nowrap; }
.hk__date{ row-gap:.35em; }
.hk__dow{ margin-top:.2em; }
@media (min-width:768px){ .hk__shots{ height:560px; } .hk__cap{ bottom:20px; } }

[id]{ scroll-margin-top:24px; }

.plain b a, .readme__body li > b a, .plain p a{
  color:inherit;
  text-decoration:underline;
  text-decoration-color:rgba(43,39,36,.35);
  text-underline-offset:.25em;
}

.section p a{ color:inherit; text-decoration:underline; text-decoration-color:rgba(43,39,36,.35); text-underline-offset:.25em; }
