/* ==========================================================================
   Trynos
   職務経歴書のような 1 ページ。左に見出しの列、右に内容を置く。
   色はインク 1 色だけをアクセントにし、動きや装飾は入れない。
   ========================================================================== */

:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #1d1f22;
  --sub: #5f6670;
  --rule: #dfe2e6;
  --accent: #24407a;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --label: 9.5em;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  /* 日本語は文節の切れ目（HTML の <wbr>）でだけ折り返す。<wbr> は
     scripts/website_phrase_breaks.py で入れる。収まらない長い語だけは途中で折る */
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-feature-settings: "palt"; text-wrap: balance; }
/* 段落の最後の行に、文節がひとつだけ取り残されないようにする */
p, li, dd { text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: #fff; }
.nb { white-space: nowrap; }

.page { width: min(100% - var(--gutter) * 2, 880px); margin-inline: auto; }

/* ---- 名前 -------------------------------------------------------------- */

.masthead { padding: clamp(56px, 12vw, 128px) 0 clamp(40px, 7vw, 72px); }
.name { font-size: clamp(2.6rem, 9vw, 4.2rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.name rt { font-size: .8rem; font-weight: 400; letter-spacing: .3em; color: var(--sub); }
.intro { margin-top: 28px; max-width: 34em; font-size: 1.05rem; }

/* ---- 行（見出しの列と内容） -------------------------------------------- */

.row { display: grid; grid-template-columns: var(--label) minmax(0, 1fr); gap: 0 clamp(16px, 3vw, 40px); padding: 40px 0 48px; border-top: 1px solid var(--rule); }
.row > * { min-width: 0; }
.row h2 { font-size: .95rem; font-weight: 700; line-height: 1.9; color: var(--sub); }
.row-body > p + p, .row-body > p + dl { margin-top: 1em; }

/* ---- 作ったもの -------------------------------------------------------- */

.work-head { display: flex; align-items: center; gap: 16px; }
.work-head > * { min-width: 0; }
.work-icon { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 0 0 1px var(--rule); }
.work h3 { font-size: 1.5rem; line-height: 1.3; }
.work-kind { color: var(--sub); font-size: .92rem; }
.work > p { margin-top: 16px; max-width: 36em; }
.work > .work-meta { margin-top: 8px; color: var(--sub); font-size: .88rem; }
.shots { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 150px)); gap: 14px; }
.shots img { border-radius: 14px; box-shadow: 0 0 0 1px var(--rule); }
.work-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.work-links > * { min-width: 0; }
.work-links span { color: var(--sub); }
.work-links > a, .foot-links > a, .contact-link {
  display: inline-block;
  min-height: 44px;
  padding-block: 6px;
}
.foot-links > a { min-width: 44px; }
.contact-link { max-width: 100%; }
.app-store-link img { height: 44px; width: auto; }

/* ---- 経歴 -------------------------------------------------------------- */

.career li { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 0 20px; }
.career li > * { min-width: 0; }
.career li + li { margin-top: 32px; }
.year { color: var(--accent); font-size: 1.05rem; font-weight: 600; line-height: 1.6; font-variant-numeric: tabular-nums; white-space: nowrap; }
.year .dash { margin-inline: .1em; }
.year .now, .year.side { font-size: .95rem; }
.entry h3 { font-size: 1.05rem; line-height: 1.6; }
.entry p { margin-top: 4px; max-width: 34em; }

/* ---- できること -------------------------------------------------------- */

.design-consulting { margin-top: 28px; }
.design-consulting h3 { margin-bottom: 8px; font-size: 1.05rem; line-height: 1.6; }
.design-consulting p + p { margin-top: 1em; }

.skills li { padding-left: 1.1em; position: relative; }
.skills li::before { content: ""; position: absolute; left: 0; top: .95em; width: .5em; height: 1px; background: var(--ink); }
.skills li + li { margin-top: 6px; }

/* ---- お仕事のご相談 ---------------------------------------------------- */

.ask { margin-top: 12px; border-top: 1px solid var(--rule); }
.ask > div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 0 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.ask > div > * { min-width: 0; }
.ask dt { font-weight: 600; }
.ask dd { color: var(--sub); }

/* ---- フッター ---------------------------------------------------------- */

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 28px 0 40px; border-top: 1px solid var(--rule); color: var(--sub); font-size: .85rem; }
.foot-links { display: flex; gap: 20px; }
.foot .legal { flex-basis: 100%; min-width: 0; font-size: .75rem; line-height: 1.7; }

/* ---- 404 --------------------------------------------------------------- */

.nf { padding: clamp(56px, 12vw, 128px) 0; }
.nf h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); line-height: 1.3; }
.nf p { margin-top: 16px; }

/* ---- スマホ ------------------------------------------------------------ */

@media (max-width: 640px) {
  .row { grid-template-columns: minmax(0, 1fr); padding: 28px 0 36px; }
  .row h2 { margin-bottom: 14px; }
  .career li { grid-template-columns: minmax(0, 1fr); }
  .career li + li { margin-top: 24px; }
  .shots { gap: 10px; }
  .ask > div { grid-template-columns: minmax(0, 1fr); }
}
