:root {
  --bg: #f3f3d7;
  --text: #2c2c2a;
  --sub: #6b6a64;
  --line: #30210b;
  --accent: #185fa5;

  --font-body: "Noto Sans JP", sans-serif;
  --font-head: "Shippori Mincho", "Noto Serif JP", serif;

  --tone-1: #d9fae7;
  --tone-2: #b7ceff;
  --tone-3: #eed3c6;
  --tone-4: #fbe5f5;
  --tone-5: #e0bff5;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(240, 231, 238, 0.92);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--font-head);
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  text-decoration: none;
}

.site-header nav { display: flex; gap: 24px; }

.site-header nav a {
  font-size: 0.85rem;
  color: var(--sub);
  text-decoration: none;
  transition: color 0.2s;
}

.site-header nav a:hover { color: var(--text); }

/* ---------- 共通 ---------- */
main { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

section { padding: 72px 0; }

h1, h2 {
  font-family: var(--font-head);
  font-weight: 400;
  margin: 0;
}

h2 {
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.section-note {
  margin: 0 0 32px;
  color: var(--sub);
  font-size: 0.85rem;
}

/* ---------- ヒーロー ---------- */
.hero { padding: 96px 0 64px; }

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.hero p {
  margin: 24px 0 0;
  color: var(--sub);
  max-width: 34em;
}

/* ---------- 作品グリッド ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 20px;
}

.work {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.work-wide { grid-column: span 2; }

.ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--tone-1);
  transition: opacity 0.25s;
}

.work-wide .ph { aspect-ratio: 8 / 3.9; }

.work img {
  width: 100%;
  height: auto; /* 比率を保つので歪まない */
  
}

.work:hover .ph,
.work:hover img { opacity: 0.85; }

.tone-1 { background: var(--tone-1); }
.tone-2 { background: var(--tone-2); }
.tone-3 { background: var(--tone-3); }
.tone-4 { background: var(--tone-4); }
.tone-5 { background: var(--tone-5); }

.work-title { margin-top: 10px; font-size: 0.95rem; }
.work-meta { font-size: 0.8rem; color: var(--sub); }

/* ---------- 自己紹介 ---------- */
.about { border-top: 1px solid var(--line); }

.about-body { max-width: 40em; }

.skills {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 12px 16px;
  font-size: 0.9rem;
}

.skills dt { color: var(--sub); }
.skills dd { margin: 0; }

/* ---------- 連絡先 ---------- */
.contact { border-top: 1px solid var(--line); }

.mail {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-head);
  font-size: 1.3rem;
  text-decoration: none;
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
}

.mail:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- フッター ---------- */
.site-footer {
  padding: 32px 24px;
  text-align: center;
  color: var(--sub);
  border-top: 1px solid var(--line);
}

/* ---------- 拡大表示 ---------- */
dialog {
  width: min(92vw, 720px);
  padding: 20px;
  border: 0;
  background: var(--bg);
  color: var(--text);
}

dialog::backdrop { background: rgba(244, 244, 244, 0.6); }

#viewer-art { aspect-ratio: 4 / 3; }

dialog p { margin: 12px 0; }

dialog button {
  padding: 8px 20px;
  border: 1px solid var(--text);
  background: none;
  font: inherit;
  cursor: pointer;
}

dialog button:hover { background: var(--text); color: var(--bg); }

/* ---------- スマホ ---------- */
@media (max-width: 720px) {
  .site-header { padding: 12px 16px; }
  .site-header nav { gap: 16px; }
  main { padding: 0 16px; }
  section { padding: 56px 0; }
  .hero { padding: 64px 0 40px; }
  .grid { grid-template-columns: 1fr; gap: 28px; }
  .work-wide { grid-column: auto; }
  .work-wide .ph { aspect-ratio: 4 / 3; }
  .skills { grid-template-columns: 1fr; gap: 2px; }
  .skills dd { margin-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
  @keyframes rise {
    from { opacity: 0; transform: translateY(26px);}
    to { opacity: 1; transform: translateY(0); }
  }

  hero h1 {
    animation: rise 5.0s ease-out both;
  }
  hero p {
    animation: rise 5.0s ease-out 0.5s both;
}

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero p { animation: none;}
}

.work-meishi {
  height: auto;
  overflow: visible;
}
 