/* Shimpinomori.NET — dark heritage + modern layout */
:root {
  --bg: #050505;
  --bg-elev: #121212;
  --bg-card: #161616;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --faint: #71717a;
  --accent: #ef4444;
  --accent-soft: rgba(239, 68, 68, 0.15);
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  /* Diamond Fuji (2021-12-04) — full-bleed fixed backdrop */
  background-color: var(--bg);
  background-image:
    linear-gradient(
      180deg,
      rgba(5, 5, 8, 0.72) 0%,
      rgba(5, 5, 8, 0.55) 35%,
      rgba(5, 5, 8, 0.78) 70%,
      rgba(5, 5, 8, 0.92) 100%
    ),
    radial-gradient(ellipse 70% 45% at 50% 18%, rgba(255, 160, 60, 0.12), transparent 55%),
    url("/static/img/diamond-fuji.jpg");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* iOS / reduced-motion: fixed backgrounds are janky or ignored */
@media (max-width: 720px), (prefers-reduced-motion: reduce) {
  body {
    background-attachment: scroll;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 5, 8, 0.55);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand-logo-static {
  width: 40px;
  height: auto;
  border-radius: 8px;
}

.brand-text .dot {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1rem;
  margin-left: 0.5rem;
}

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

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

.lang {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  color: var(--faint);
  background: transparent;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.lang-btn:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--bg-elev);
}

.lang-btn.is-active {
  color: var(--text);
  border-color: rgba(239, 68, 68, 0.45);
  background: var(--accent-soft);
}

.lang-btn span {
  display: none;
}

@media (min-width: 900px) {
  .lang-btn span {
    display: inline;
  }
}

/* Hero */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0 3rem;
}

@media (min-width: 800px) {
  .hero {
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 3rem;
    padding: 3.5rem 0 4rem;
  }
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-gif {
  width: min(100%, 320px);
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: #000;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1,
.hero-brand {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

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

.lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38rem;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.45);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 30px rgba(239, 68, 68, 0.25);
  transition: transform 0.12s, filter 0.12s;
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(10, 10, 14, 0.35);
  transition: border-color 0.12s, background 0.12s;
}

.btn-ghost:hover {
  border-color: rgba(239, 68, 68, 0.45);
  background: var(--accent-soft);
}

/* Contact */
.contact-panel {
  max-width: 40rem;
  padding: 1.25rem 1.35rem 1.5rem;
  border-radius: var(--radius);
  background: rgba(10, 10, 14, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
}

.contact-hint {
  margin: 0 0 1.1rem;
  color: var(--faint);
  font-size: 0.92rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem 1rem;
}

@media (min-width: 640px) {
  .contact-form {
    grid-template-columns: 1fr 1fr;
  }
  .field-full {
    grid-column: 1 / -1;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.field span {
  font-weight: 600;
  color: var(--text);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-captcha {
  min-height: 65px;
}

.contact-flash {
  max-width: 40rem;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
}

.contact-flash-ok {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}

.contact-flash-err {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fecaca;
}

/* honeypot off-screen */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Sections */
.section {
  padding: 1rem 0 2.5rem;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 560px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 920px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  border-radius: var(--radius);
  background: rgba(18, 18, 22, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  overflow: hidden;
}

.card:hover {
  border-color: rgba(239, 68, 68, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.15rem 1.15rem 1.25rem;
  gap: 0.65rem;
}

.card-logo-wrap {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}

.card-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card h3 {
  margin: 0.25rem 0 0;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 0.9rem;
}

.card-cta {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--accent);
}

/* About */
.about-body {
  max-width: 42rem;
  color: var(--muted);
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  background: rgba(10, 10, 14, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
}

.about-body p {
  margin: 0 0 1rem;
}

.about-body .note {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(239, 68, 68, 0.12);
  backdrop-filter: blur(8px);
  border-radius: 0 10px 10px 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.25rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  color: var(--faint);
  font-size: 0.88rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}

.footer-brand img {
  border-radius: 6px;
}

.footer-tag {
  margin: 0;
}

.footer-photo {
  margin: 0;
  width: 100%;
  text-align: right;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

@media (min-width: 640px) {
  .footer-photo {
    width: auto;
    margin-left: auto;
  }
}
