@charset "UTF-8";

/* =========================================================
   Design tokens
   紙色の地 / Bodoni Moda の欧文ディスプレイ / 罫線と枠のグリッド
   ========================================================= */
:root {
  --paper: #F3F2ED;
  --card:  #FDFDFB;
  --ink:   #17171A;
  --body:  #3D3D3A;
  --mute:  #8A897F;
  --rule:  #DEDDD4;   /* 主要な区切り */
  --grid:  #E9E8E0;   /* 従属的な区切り */
  --shu:   #A8453A;   /* アクセント（唯一の色） */

  --serif-en: "Bodoni Moda", serif;
  --serif-jp: "Shippori Mincho B1", serif;
  --sans:     "Zen Kaku Gothic New", system-ui, sans-serif;

  --head-h: 72px;       /* 追従ヘッダーの高さ = アンカー着地の補正量 */
  --pad: 40px;          /* セクション左右の余白 */
  --maxw: 1300px;
  --radius: 3px;
  --pill:   999px;      /* タグ・チップの角丸 */
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* 追従ヘッダーの下に見出しが潜らないよう、着地点をヘッダーぶん下げる */
.hero, .section, .cta { scroll-margin-top: var(--head-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

ul, ol { list-style: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }
table { border-collapse: collapse; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--shu);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff;
  padding: 10px 18px; font-size: 13px; text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 8px; }

/* ---------- frame ---------- */
.frame {
  max-width: var(--maxw);
  margin-inline: auto;
  border-inline: 1px solid var(--rule);
}

/* =========================================================
   Header
   ========================================================= */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
  padding-inline: var(--pad);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
}

.wordmark {
  font-family: var(--serif-en);
  font-size: 19px;
  letter-spacing: .14em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav ul { display: flex; gap: 28px; }
.site-nav a {
  font-size: 13px;
  color: var(--body);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--rule); }
.site-nav a.is-current { color: var(--ink); border-bottom-color: var(--ink); }

.nav-toggle { display: none; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  border-bottom: 1px solid var(--rule);
}

.hero__main {
  padding: 78px var(--pad) 66px;
  border-right: 1px solid var(--rule);
}

.hero__hello {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 22px;
  color: var(--mute);
}

.hero__name {
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: clamp(48px, 6.8vw, 92px);
  line-height: 1;
  letter-spacing: -.005em;
  margin-top: 14px;
}
.hero__name-jp {
  display: block;
  font-family: var(--serif-jp);
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 400;
  letter-spacing: .16em;
  margin-top: 16px;
}

.hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 34px;
}
.hashtags li {
  font-size: 12px;
  color: var(--body);
  border-bottom: 1px solid var(--rule);
}

.hero__main .btn-group { margin-top: 40px; }

.hero__side { padding: 72px 34px 60px; }

.eyebrow {
  font-family: var(--serif-en);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--mute);
}
.eyebrow--inline { margin-bottom: 12px; padding-inline: var(--pad); }

.hero__position {
  font-family: var(--serif-en);
  font-size: 25px;
  line-height: 1.5;
  margin-top: 18px;
}
.hero__org { font-size: 12.5px; color: var(--mute); line-height: 1.85; margin-top: 6px; }

.role-list { margin-top: 24px; border-top: 1px solid var(--rule); }
.role-list li {
  display: flex;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid var(--grid);
  font-size: 12.5px;
  color: var(--body);
  line-height: 1.8;
}
.role-list li::before {
  content: "";
  flex: none;
  width: 4px; height: 4px;
  margin-top: 11px;
  border-radius: 50%;
  background: var(--shu);
}

/* ---------- buttons ---------- */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--rule);
  background: var(--card);
}
.btn {
  padding: 14px 26px;
  font-size: 13.5px;
  text-decoration: none;
  border-right: 1px solid var(--rule);
}
.btn:last-child { border-right: 0; }
.btn:hover { background: var(--grid); }
.btn--fill { background: var(--ink); color: #fff; }
.btn--fill:hover { background: #000; }

/* =========================================================
   Marquee
   ========================================================= */
.marquee {
  border-bottom: 1px solid var(--rule);
  background: var(--card);
  padding: 15px 0;
  overflow: hidden;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee__item {
  font-family: var(--serif-jp);
  font-size: 19px;
  letter-spacing: .1em;
  color: var(--body);
  padding-right: 44px;
  white-space: nowrap;
}
.marquee__item i {
  font-family: var(--serif-en);
  font-style: italic;
  color: var(--mute);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* =========================================================
   Section head
   ========================================================= */
.section { border-bottom: 1px solid var(--rule); }

.sec-head {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  padding: 38px var(--pad) 20px;
}
.sec-head h2 {
  font-family: var(--serif-en);
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 400;
  line-height: 1;
}
.sec-head__rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
  margin-bottom: 7px;
}
.sec-head__note {
  font-size: 12px;
  color: var(--mute);
  margin-bottom: 4px;
  text-align: right;
}

/* =========================================================
   About / Future
   ========================================================= */
.about {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  border-top: 1px solid var(--rule);
}
.about__body { padding: 30px var(--pad) 36px; border-right: 1px solid var(--rule); }
.lead-jp {
  font-family: var(--serif-jp);
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.85;
  margin-bottom: 20px;
}
.about__body p {
  font-size: 14.5px;
  color: var(--body);
  line-height: 2.15;
  max-width: 38em;
}
.about__body p + p { margin-top: 16px; }
.about__body > .lead-jp:last-child { margin-bottom: 0; }

.deflist { padding: 30px 34px 36px; }
.about--single { grid-template-columns: 1fr; }
.about--single .about__body { border-right: 0; }
.about--single .deflist { padding-inline: var(--pad); }
.deflist > div {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--grid);
  align-items: baseline;
  font-size: 13.5px;
}
.deflist > div:first-child { border-top: 1px solid var(--rule); }
.deflist dt { font-size: 11.5px; letter-spacing: .12em; color: var(--mute); }
.deflist dd { color: var(--body); line-height: 1.9; }

/* =========================================================
   Cards (強み / Projects)
   ========================================================= */
/* 最終列・最終行の罫線は .grid-clip で切り落とす。
   しぼりこみで表示件数が変わっても罫線が破綻しない。 */
.grid-clip { overflow: hidden; }
.cards {
  display: grid;
  border-top: 1px solid var(--rule);
  margin: 0 -1px -1px 0;
}
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  padding: 22px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--grid);
}

.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
  font-size: 17px;
  color: var(--mute);
  line-height: 1;
}
.card__meta { font-size: 11px; letter-spacing: .14em; color: var(--mute); margin-top: 15px; }
.card__title {
  font-family: var(--serif-jp);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .05em;
  line-height: 1.7;
  margin: 12px 0 8px;
}
.card__title--en {
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: .01em;
  margin-top: 4px;
}
.card__title--en .u { border-bottom: 1px solid var(--ink); }
.card__text { font-size: 12.5px; color: var(--mute); line-height: 1.9; }
.card__note { margin-top: 12px; font-size: 11.5px; color: var(--mute); }
.card__links { margin-top: 12px; display: flex; gap: 16px; }
.card__links a {
  font-family: var(--serif-en);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

.card--empty { display: grid; place-items: center; min-height: 120px; }
.xmark { width: 14px; height: 14px; position: relative; opacity: .45; }
.xmark::before, .xmark::after {
  content: ""; position: absolute; left: 0; top: 6.5px;
  width: 14px; height: 1px; background: #BFBEB4;
}
.xmark::before { transform: rotate(45deg); }
.xmark::after  { transform: rotate(-45deg); }

/* tags */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tags li {
  font-size: 10.5px;
  border: 1px solid var(--rule);
  border-radius: var(--pill);
  padding: 2px 10px;
  color: var(--body);
  background: var(--card);
}

/* =========================================================
   Experience — timeline
   ========================================================= */
.tl { border-top: 1px solid var(--rule); }

.tl__item {
  display: grid;
  grid-template-columns: 8.5em 1fr;
  gap: 32px;
  padding-inline: var(--pad);
  border-bottom: 1px solid var(--grid);
}
.tl__item:last-child { border-bottom: 0; }

.tl__when {
  /* 欧文は Bodoni、和文は明朝でそろえる */
  font-family: "Bodoni Moda", "Shippori Mincho B1", serif;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: .06em;
  color: var(--mute);
  padding: 26px 0 30px;
}

.tl__body {
  position: relative;
  border-left: 1px solid var(--rule);
  padding: 26px 0 30px 30px;
}
/* 軸上のしるし */
.tl__body::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 30px;
  width: 7px;
  height: 7px;
  background: var(--paper);
  border: 1px solid var(--mute);
  transform: rotate(45deg);
}
.tl__item--now .tl__body::before {
  background: var(--shu);
  border-color: var(--shu);
}

.tl__cat {
  font-family: var(--serif-en);
  font-size: 10.5px;
  letter-spacing: .24em;
  color: var(--mute);
  line-height: 1;
}
.tl__title {
  font-family: var(--serif-jp);
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 500;
  letter-spacing: .05em;
  line-height: 1.7;
  margin-top: 10px;
}
.tl__text {
  font-size: 14px;
  color: var(--body);
  line-height: 2.1;
  margin-top: 10px;
  max-width: 72ch;
}
.tl__note {
  font-size: 12px;
  color: var(--mute);
  letter-spacing: .04em;
  margin-top: 12px;
}
.tl__text + .tl__note { margin-top: 10px; }

.badge {
  display: inline-block;
  margin-left: 12px;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--shu);
  border: 1px solid var(--shu);
  border-radius: var(--pill);
  padding: 1px 10px;
  vertical-align: middle;
}

/* =========================================================
   Filters
   ========================================================= */
.filters { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 var(--pad); }
.chip {
  font-size: 11.5px;
  border: 1px solid var(--rule);
  border-radius: var(--pill);
  padding: 4px 15px;
  color: var(--body);
  background: var(--card);
}
.chip:hover { border-color: var(--mute); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters__count {
  padding: 10px var(--pad) 18px;
  font-size: 11.5px;
  color: var(--mute);
}

/* =========================================================
   Skills
   ========================================================= */
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 var(--pad) 28px;
}
.stack li {
  font-family: var(--serif-en);
  font-size: 13px;
  letter-spacing: .03em;
  color: var(--body);
  border: 1px solid var(--grid);
  padding: 4px 12px;
  background: var(--card);
}

.table-scroll { overflow-x: auto; border-top: 1px solid var(--rule); }
.skills { width: 100%; min-width: 620px; }
.skills th, .skills td {
  text-align: left;
  padding: 13px var(--pad);
  border-bottom: 1px solid var(--grid);
  font-size: 13.5px;
  line-height: 1.95;
  vertical-align: top;
  font-weight: 400;
}
.skills thead th {
  font-family: var(--serif-en);
  font-size: 11.5px;
  letter-spacing: .2em;
  color: var(--mute);
  border-bottom: 1px solid var(--rule);
}
.skills tbody th {
  font-family: var(--serif-en);
  font-size: 17px;
  white-space: nowrap;
  width: 1%;
}
.skills td:nth-of-type(2) { color: var(--body); font-size: 12.5px; }
.skills td:last-child { color: var(--mute); }
.skills tbody tr:last-child th,
.skills tbody tr:last-child td { border-bottom: 0; }

/* =========================================================
   CTA / Footer
   ========================================================= */
.cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 48px var(--pad);
  border-bottom: 1px solid var(--rule);
}
.cta__title {
  font-family: var(--serif-en);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.2;
}
.cta .btn-group { margin-top: 0; }

/* Contact — 罫線で囲んだ枠に、アイコンを1マスずつ並べる */
.social {
  display: flex;
  width: max-content;
  border: 1px solid var(--rule);
  background: var(--card);
}
.social li + li { border-left: 1px solid var(--rule); }
.social__link {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
.social__link:hover { background: var(--ink); color: #fff; }
.social__icon { width: 21px; height: 21px; fill: currentColor; }

.site-foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 18px var(--pad);
  font-size: 11.5px;
  color: var(--mute);
}
.site-foot__c { text-align: center; }
.site-foot__e { text-align: right; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1000px) {
  :root { --pad: 28px; }

  .hero { grid-template-columns: 1fr; }
  .hero__main { border-right: 0; border-bottom: 1px solid var(--rule); padding: 60px var(--pad) 52px; }
  .hero__side { padding: 40px var(--pad) 42px; }

  .about { grid-template-columns: 1fr; }
  .about__body { border-right: 0; border-bottom: 1px solid var(--rule); }
  .deflist { padding-inline: var(--pad); }

  .cards--3 { grid-template-columns: repeat(2, 1fr); }

  .tl__item { grid-template-columns: 7em 1fr; gap: 22px; }
  .tl__body { padding-left: 24px; }
}

@media (max-width: 680px) {
  :root { --pad: 20px; --head-h: 0px; }

  body { font-size: 14.5px; }
  .frame { border-inline: 0; }

  /* --- nav --- */
  .site-head { height: 60px; position: relative; }
  .nav-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: .1em;
    color: var(--body);
  }
  .nav-toggle__bar {
    width: 18px; height: 9px;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
  }
  .site-nav {
    display: none;
    position: absolute;
    inset: 60px 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    z-index: 19;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-top: 1px solid var(--grid); }
  .site-nav a { display: block; padding: 14px var(--pad); font-size: 14px; border-bottom: 0; }
  .site-nav a.is-current { border-bottom: 0; text-decoration: underline; text-underline-offset: 4px; }

  /* --- layout --- */
  .cards--3 { grid-template-columns: 1fr; }
  .card--empty { display: none; }

  .tl__item { grid-template-columns: 1fr; gap: 0; }
  .tl__when { padding: 22px 0 0; font-size: 14px; }
  .tl__body { border-left: 0; padding: 8px 0 24px; }
  .tl__body::before { display: none; }

  .sec-head { flex-wrap: wrap; gap: 10px 16px; }
  .sec-head__rule { display: none; }
  .sec-head__note { text-align: left; margin-bottom: 0; }

  .marquee__item { font-size: 16px; }

  .cta { grid-template-columns: 1fr; gap: 24px; }
  .btn-group { width: 100%; }
  .btn { flex: 1; text-align: center; padding-inline: 14px; }

  .site-foot { grid-template-columns: 1fr; gap: 4px; }
  .site-foot__c, .site-foot__e { text-align: left; }
}

/* =========================================================
   Print
   ========================================================= */
@media print {
  .site-head, .marquee, .filters, .filters__count, .skip-link { display: none; }
  body { background: #fff; }
  .frame { border: 0; max-width: none; }
  .section { break-inside: avoid; }
}
