@charset "UTF-8";
/* Editorial theme — サイト全体で統一（rice mode が裏のダークを担う）。
   配色を変えたいときはこの :root だけ触れば全体に効きます。 */
:root {
  --bg: #f4f1ea; /* cream */
  --bg-soft: #ece7dc; /* 一段深いcream（カード/ソフト面） */
  --fg: #16120c; /* near-black ink */
  --fg-soft: #6b6256; /* warm gray */
  --border: #d8d2c6; /* warm border */
  --accent: #e8551f; /* orange */
  --accent-soft: #f7e2d6; /* light orange tint */
  --radius: 10px;
  --maxw: 760px;
  --font-sans: "Space Grotesk", "Zen Kaku Gothic New", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

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

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2rem;
  margin: 0 0 0.4em;
}

h2 {
  font-size: 1.4rem;
  margin: 2em 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.lead {
  color: var(--fg-soft);
  font-size: 1.05rem;
}

/* --- Header --- */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(8px);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  font-weight: 700;
  color: var(--fg);
  font-size: 1.05rem;
}

.brand:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--fg-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

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

.site-nav a.active {
  color: var(--fg);
}

.lang-switch {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.82rem !important;
}

.lang-switch:hover {
  background: var(--bg-soft);
}

/* --- Main --- */
main.container {
  padding-top: 48px;
  padding-bottom: 64px;
}

.page-header {
  margin-bottom: 32px;
}

/* --- Home / Hero (legacy, used elsewhere if needed) --- */
.hero {
  padding: 32px 0 8px;
}

.hero h1 {
  font-size: 2.6rem;
}

.hero .accent {
  color: var(--accent);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  text-decoration: none;
  opacity: 0.9;
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--fg);
}

.btn-ghost:hover {
  text-decoration: none;
  background: var(--bg-soft);
}

/* --- Projects --- */
.project-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  background: var(--bg-soft);
  transition: border-color 0.15s ease;
}

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

.project-card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.project-card p {
  margin: 0 0 12px;
  color: var(--fg-soft);
  font-size: 0.95rem;
}

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tag {
  font-size: 0.75rem;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 10px;
  border-radius: 999px;
}

/* --- Blog --- */
.post-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.post-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.post-list .post-date {
  color: var(--fg-soft);
  font-size: 0.85rem;
  display: block;
}

.post-list a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
}

.post-meta {
  color: var(--fg-soft);
  font-size: 0.9rem;
}

.post-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* --- Links --- */
.link-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.link-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--fg);
  font-weight: 500;
}

.link-list a:hover {
  text-decoration: none;
  border-color: var(--accent);
}

.link-list .arrow {
  color: var(--fg-soft);
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 48px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.social {
  display: flex;
  gap: 16px;
}

.social a {
  color: var(--fg-soft);
  font-size: 0.9rem;
}

.copyright {
  color: var(--fg-soft);
  font-size: 0.85rem;
  margin: 0;
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }
  .header-inner {
    height: auto;
    padding: 12px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
/* ============================================================
   Home hero — Editorial Maximalist (full-bleed band)
   ============================================================ */
.home-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -48px; /* main の padding-top を打ち消してヘッダーに密着 */
  background: #f4f1ea;
  color: #16120c;
  overflow: hidden;
  padding-bottom: 0;
}

.home-hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 30px;
}

.home-hero .kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e8551f;
  margin-bottom: 8px;
}

.home-hero .bigtype {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(64px, 13vw, 168px);
  line-height: 0.84;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
  color: #16120c;
}

.home-hero .bigtype span {
  color: #e8551f;
}

.home-hero .lead {
  color: #5b5346;
  max-width: 560px;
  margin: 22px 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.home-hero .hero-actions {
  margin-top: 22px;
}

.home-hero .btn-primary {
  background: #e8551f;
  color: #fff;
}

.home-hero .btn-primary:hover {
  opacity: 0.9;
}

.home-hero .btn-ghost {
  border: 1px solid #d8d2c6;
  color: #16120c;
}

.home-hero .btn-ghost:hover {
  background: #ece7dc;
}

.home-index {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 2px solid #16120c;
  max-width: 1100px;
  margin: 26px auto 0;
}

.hi-cell {
  padding: 16px 18px;
  border-right: 1px solid #d8d2c6;
}

.hi-cell:last-child {
  border-right: 0;
}

.hi-num {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #a59a88;
}

.hi-label {
  font-weight: 700;
  font-size: 16px;
  font-family: "Space Grotesk", "Zen Kaku Gothic New", sans-serif;
}

.secret-hint {
  position: absolute;
  bottom: 14px;
  right: 22px;
  opacity: 0.35;
}

.secret-hint .cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: #16120c;
  animation: blink 1.1s step-end infinite;
}

@media (max-width: 600px) {
  .home-hero-inner {
    padding: 40px 20px 24px;
  }
  .home-index {
    grid-template-columns: repeat(2, 1fr);
  }
  .hi-cell:nth-child(2n) {
    border-right: 0;
  }
  .hi-cell {
    border-bottom: 1px solid #d8d2c6;
  }
}
/* ============================================================
   Rice mode — 隠しコマンドで開く全画面オーバーレイ
   ============================================================ */
.rice-mode {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #0c0e13;
  color: #aab4c2;
  font-family: "JetBrains Mono", monospace;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.rice-mode.rice-open {
  opacity: 1;
  pointer-events: auto;
}

.rice-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 0%, #15202e, transparent 55%);
}

.rice-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 90px;
  background: linear-gradient(#4dd6c0, transparent);
  opacity: 0.06;
  pointer-events: none;
  animation: scan 6s linear infinite;
}

.rice-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 18px;
  background: #11141b;
  border-bottom: 1px solid #1d2530;
  color: #7fded0;
  font-size: 12px;
}

.rice-ws {
  display: flex;
  gap: 6px;
}

.rice-ws span {
  padding: 2px 10px;
  color: #5b6675;
}

.rice-ws span.on {
  background: #4dd6c0;
  color: #0c0e13;
  border-radius: 5px;
  font-weight: 700;
}

.rice-host {
  color: #8893a3;
}

.rice-meters {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #8893a3;
}

.rice-meters > span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rice-clock {
  color: #4dd6c0;
}

.meter {
  display: inline-block;
  width: 48px;
  height: 6px;
  background: #1d2530;
  border-radius: 3px;
  overflow: hidden;
}

.meter i {
  display: block;
  height: 100%;
  background: #4dd6c0;
}

.meter.cpu i {
  width: 38%;
  animation: barPulse 2.4s ease-in-out infinite;
}

.meter.mem i {
  width: 55%;
  background: #7fded0;
  animation: barPulse2 3.1s ease-in-out infinite;
}

.rice-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  padding: 18px;
  height: calc(100% - 40px);
  box-sizing: border-box;
}

.tile {
  border: 1px solid #1d2530;
  border-radius: 12px;
  background: #0f131a;
  padding: 18px 20px;
  overflow: hidden;
}

.tile h3 {
  color: #7fded0;
  font-size: 13px;
  margin: 0 0 14px;
  font-weight: 400;
  letter-spacing: 0;
}

.tile-about {
  grid-row: 1/span 2;
  border-color: #4dd6c0;
  box-shadow: 0 0 0 1px rgba(77, 214, 192, 0.15), 0 0 40px -12px rgba(77, 214, 192, 0.5);
  display: flex;
  flex-direction: column;
  padding: 24px 28px;
}

.nf {
  display: flex;
  gap: 26px;
}

.nf-art {
  margin: 0;
  color: #3aa392;
  font-size: 15px;
  line-height: 1.25;
}

.nf-info {
  font-size: 15px;
  line-height: 1.95;
}

.nf-info b {
  color: #4dd6c0;
  font-weight: 400;
}

.nf-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #e6edf3;
  margin: 30px 0 10px;
  line-height: 1.1;
}

.nf-desc {
  font-family: "Space Grotesk", "Zen Kaku Gothic New", sans-serif;
  font-size: 15px;
  color: #8893a3;
  margin: 0;
  line-height: 1.7;
  max-width: 420px;
}

.nf-prompt {
  margin-top: auto;
  color: #6f7a89;
  font-size: 15px;
}

.nf-prompt span {
  color: #e6edf3;
}

.caret {
  display: inline-block;
  width: 10px;
  height: 17px;
  background: #4dd6c0;
  margin-left: 5px;
  vertical-align: -3px;
  animation: blink 1.1s step-end infinite;
}

.rice-list {
  font-size: 14px;
  line-height: 2.1;
}

.rice-list .b {
  color: #4dd6c0;
}

.rice-list .dim {
  color: #5b6675;
}

.tile-music {
  display: flex;
  flex-direction: column;
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 48px;
  margin-bottom: 16px;
}

.eq i {
  flex: 1;
  height: 100%;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, #1d6b60, #4dd6c0);
  transform-origin: bottom;
  animation: eqbar 1s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.rice-links {
  margin-top: auto;
  color: #6f7a89;
  font-size: 14px;
}

.rice-links a {
  color: #4dd6c0;
  cursor: pointer;
}

.rice-links a:hover {
  text-decoration: underline;
}

.rice-close {
  position: absolute;
  bottom: 20px;
  right: 24px;
  background: transparent;
  border: 1px solid #2a3340;
  color: #7fded0;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.rice-close:hover {
  border-color: #4dd6c0;
}

@media (max-width: 760px) {
  .rice-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    overflow-y: auto;
  }
  .tile-about {
    grid-row: auto;
  }
  .nf-name {
    font-size: 30px;
  }
}
/* ============================================================
   Keyframes
   ============================================================ */
@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}
@keyframes eqbar {
  0%, 100% {
    transform: scaleY(0.18);
  }
  50% {
    transform: scaleY(1);
  }
}
@keyframes barPulse {
  0%, 100% {
    width: 38%;
  }
  50% {
    width: 72%;
  }
}
@keyframes barPulse2 {
  0%, 100% {
    width: 55%;
  }
  50% {
    width: 30%;
  }
}
@keyframes scan {
  0% {
    transform: translateY(-10%);
  }
  100% {
    transform: translateY(110vh);
  }
}
@media (prefers-reduced-motion: reduce) {
  .secret-hint .cursor,
  .rice-scan, .meter i, .eq i, .caret {
    animation: none !important;
  }
}

/*# sourceMappingURL=style.css.map */