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

:root {
  color-scheme: light;
  --paper: #f6f3eb;
  --ink: #1d2433;
  --muted: #535d6b;
  --gold: #ac6a0b;
  --gold-line: #ebcd95;
  --gold-soft: #fff1d3;
  --rubric: #a74141;
  --serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  min-width: 280px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; }
svg { display: block; }
svg.icon {
  width: 100%; height: 100%;
  fill: none; stroke: currentColor; stroke-width: 1.65;
  stroke-linecap: round; stroke-linejoin: round;
}
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }
.shell { width: min(100% - 80px, 1320px); margin-inline: auto; }
.skip-link {
  position: fixed; z-index: 10; inset: 12px auto auto 12px;
  padding: 10px 16px; border-radius: 10px; background: #fff;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  min-height: 105px; padding-block: 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; border-bottom: 1px solid var(--gold-line);
}
.brand { display: inline-flex; align-items: center; gap: 18px; flex-shrink: 0; }
.brand__mark { width: 65px; height: 54px; color: var(--gold); }
.brand__name { display: block; font: 700 29px/1.35 var(--serif); letter-spacing: .05em; }
.brand__domain { display: block; font-size: 12px; letter-spacing: .16em; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a { font-size: 14px; font-weight: 500; padding-block: 10px; }
.site-nav a:hover { color: var(--gold); }
main.shell { padding-top: 40px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0; margin: 0; list-style: none; }
.project-grid li { min-width: 0; }
.project-card {
  display: flex; align-items: center; gap: 20px;
  position: relative; height: 100%; min-height: 158px; padding: 26px 22px;
  border: 1px solid rgba(174, 129, 46, .035); border-radius: 27px;
  background: #fff; box-shadow: 0 8px 26px rgba(49, 38, 17, .045);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(49, 38, 17, .09); border-color: var(--gold-line); }
.project-card:active { transform: translateY(-1px); }
.project-card__icon {
  width: 88px; height: 88px; flex: 0 0 88px;
  display: grid; place-items: center; border-radius: 50%;
  background: transparent; color: var(--gold);
}
.project-card__icon svg { width: 53px; height: 53px; }
.project-card--rubric .project-card__icon { color: var(--rubric); }
.project-card__body { flex: 1; min-width: 0; }
.project-card h2 { margin: 0 0 7px; font: 700 21px/1.5 var(--serif); overflow-wrap: anywhere; }
.project-card p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--muted); overflow-wrap: anywhere; }
svg.project-card__arrow { flex: 0 0 11px; width: 11px; height: 20px; color: var(--gold); transition: transform .2s ease; }
.project-card:hover .project-card__arrow { transform: translateX(3px); }
.site-footer { margin-top: 48px; border-top: 1px solid var(--gold-line); padding-block: 22px 26px; }
.footer-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 13px; }
.footer-links a { padding-block: 6px; }
.footer-links a:hover { color: var(--gold); }
.footer-links__divider { height: 15px; width: 1px; background: var(--gold-line); }
.about { max-width: 720px; margin: 10px auto 0; color: var(--muted); font-size: 13px; text-align: center; }
.about summary { cursor: pointer; width: fit-content; margin-inline: auto; padding: 9px 12px; }
.about[open] summary { color: var(--gold); }
.about p { text-align: left; line-height: 1.9; padding: 16px 22px; margin: 8px 0 0; background: #fff; border-radius: 16px; }
.about a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1199px) {
  .shell { width: min(100% - 56px, 1000px); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  html { scroll-padding-top: 16px; }
  .shell { width: calc(100% - 32px); }
  .site-header { min-height: auto; padding-block: 19px 15px; gap: 12px; flex-wrap: wrap; }
  .brand { gap: 12px; }
  .brand__mark { width: 48px; height: 42px; }
  .brand__name { font-size: 24px; }
  .brand__domain { font-size: 10px; }
  .site-nav { gap: 20px; width: 100%; justify-content: flex-end; }
  .site-nav a { font-size: 12px; padding-block: 6px; }
  main.shell { padding-top: 24px; }
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .project-card { min-height: 121px; padding: 21px 17px; gap: 16px; border-radius: 23px; }
  .project-card__icon { width: 69px; height: 69px; flex-basis: 69px; }
  .project-card__icon svg { width: 44px; height: 44px; }
  .project-card h2 { font-size: 19px; margin-bottom: 5px; }
  .project-card p { font-size: 13px; }
  .site-footer { margin-top: 30px; padding-block: 18px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.project-card__icon img { display: block; width: 100%; height: 100%; object-fit: contain; }

.brand__mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
