/* =========================================
   色・サイズの設定（ここを変えると全体に反映）
   ========================================= */
:root {
  --bg: #fafafa;
  --text: #16181d;
  --text-sub: #6a717d;
  --border: #e3e5e8;
  --accent: #0a7d4f;       /* アクセント（緑） */
  --max-width: 880px;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --font-ja: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --text: #e6e9ee;
    --text-sub: #8b939f;
    --border: #262b33;
    --accent: #3fb984;
  }
}

/* ===== 基本 ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.8;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== ヘッダー ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  font-family: var(--font-mono);
  font-size: 14px;
}

.site-name {
  color: var(--text);
  font-weight: 700;
}

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

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

.site-nav a::before {
  content: "./";
  color: var(--accent);
}

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

/* ===== トップ ===== */
.hero {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.prompt {
  margin: 0 0 12px;
  color: var(--text-sub);
  font-family: var(--font-mono);
  font-size: 14px;
}

.prompt span {
  color: var(--accent);
}

.hero-name {
  margin: 0;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

/* 点滅するカーソル */
.hero-name::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.9em;
  margin-left: 0.15em;
  vertical-align: -0.05em;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-roman {
  margin: 4px 0 0;
  color: var(--text-sub);
  font-family: var(--font-mono);
  font-size: 15px;
}

.hero-affiliation {
  margin: 28px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  font-size: 14px;
  line-height: 1.9;
}

.hero-photo {
  width: 350px;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 360 / 300;
  object-fit: cover;
}

/* ===== セクション共通 ===== */
.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.section-title {
  margin: 0 0 28px;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
}

.section-title span {
  color: var(--accent);
}

/* ===== 制作物（非表示中。戻したとき用） ===== */
.works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.work {
  border: 1px solid var(--border);
}

.work-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.work-body {
  padding: 16px 18px;
}

.work-title {
  margin: 0 0 6px;
  font-size: 16px;
}

.work-desc {
  margin: 0 0 12px;
  color: var(--text-sub);
  font-size: 14px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

/* ===== 連絡先 ===== */
.contact {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 15px;
}

.contact div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 10px 0;
}

.contact dt {
  color: var(--text-sub);
}

.contact dt::after {
  content: ":";
}

.contact dd {
  margin: 0;
  word-break: break-all;
}

/* ===== フッター ===== */
.site-footer {
  padding: 28px 0;
  color: var(--text-sub);
  font-family: var(--font-mono);
  font-size: 12px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.site-footer p {
  margin: 0;
}

/* ===== スマホ表示 ===== */
@media (max-width: 640px) {
  .hero {
    padding: 56px 0;
  }

  .hero-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 32px;
  }

  .hero-photo {
    width: 100%;
    max-width: 320px;
  }

  .hero-name {
    font-size: 34px;
  }

  .section {
    padding: 56px 0;
  }

  .contact div {
    grid-template-columns: 72px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-name::after {
    animation: none;
  }
}

