@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

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

:root {
  --font: 'Jost', 'Futura', 'Century Gothic', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;

  --color-bg: #ffffff;
  --color-bg-raised: #ffffff;
  --color-bg-card: #f4f4f4;
  --color-border: #e4e4e4;

  --color-text: #111111;
  --color-text-muted: #666666;
  --color-accent: #000000;
  --color-highlight: #000000;

  --color-link: #111111;
  --color-link-hover: #000000;

  --radius-l: 24px;
  --radius-m: 18px;
  --radius-s: 10px;

  --header-height: 80px;
  --container-max: 1200px;

  --section-space: 72px;
  --grid-gap: 24px;
  --shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.08);
}

body {
  font-family: var(--font);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  animation: fadeIn 1.2s ease-in-out;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

a:hover {
  color: var(--color-link-hover);
  opacity: 0.6;
}

.container {
  width: min(calc(100% - 40px), var(--container-max));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.kaminjpg {
  height: 56px;
  width: auto;
  max-width: min(600px, 56vw);
  min-width: 50px;
  filter: invert(1);
}

.nav {
  margin-left: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  font-family: var(--font);
  color: var(--color-text-muted);
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 8px 4px;
  transition: color 0.2s ease;
}

.nav-links li a:hover {
  color: var(--color-highlight);
}

main {
  padding-top: calc(var(--header-height) + 24px);
}

.section {
  padding: var(--section-space) 0;
}

.section-bordered {
  border-top: 1px solid var(--color-border);
}

.section-heading {
  margin-bottom: 28px;
}

.section-contact {
  padding-top: 44px;
}

h1 {
  font-family: var(--font);
  color: var(--color-accent);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.section-heading h1::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 12px;
  background: #000;
  border-radius: 999px;
}

h2 {
  font-family: var(--font);
  color: var(--color-text);
  font-size: clamp(17px, 2.2vw, 24px);
  margin: 0;
  line-height: 1.5;
}

h3 {
  color: var(--color-text-muted);
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 400;
  margin: 0;
}

p {
  margin: 0;
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--color-text);
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
}

.contact-group {
  min-width: 0;
}

.contact-group h3 {
  font-family: var(--font);
  color: var(--color-highlight);
  font-size: 14px;
  margin-bottom: 12px;
}

.contact-group p {
  color: var(--color-text);
  padding: 4px 0;
  word-break: break-word;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 0 6px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #111;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.icon {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  fill: #111;
  transition: transform 0.2s ease, fill 0.2s ease;
}

a.btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  background: #000;
  border-color: #000;
}

.btn:hover .icon {
  fill: #fff;
  transform: scale(1.08);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--grid-gap);
  align-items: start;
}

.compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.media-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.media-card h3 {
  color: var(--color-text);
  font-size: clamp(13px, 1.6vw, 16px);
  line-height: 1.5;
  padding-left: 2px;
}

.jacket {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background: var(--color-bg-card);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    filter 0.3s ease;
}

.media-card a:hover,
.feature-image-link:hover {
  opacity: 1;
}

.media-card a:hover .jacket,
.feature-image-link:hover .jacket {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--color-highlight);
  box-shadow: 0 14px 34px rgba(0,0,0,0.16);
}

.single-feature {
  display: grid;
  justify-items: center;
  gap: 20px;
}

.feature-image-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.feature-image {
  width: min(100%, 520px);
}

.rave2d-image-link {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rave2d-image {
  display: block;
  width: min(100%, 720px);
  max-width: 720px;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center center;
  margin-inline: auto;
  background: transparent;
  padding: 0;
}

.detail {
  width: min(100%, 860px);
}

.detail h3 {
  font-size: clamp(13px, 1.5vw, 15px);
  color: var(--color-text-muted);
  line-height: 1.9;
}

.detail-center {
  text-align: center;
}

.video-stack {
  display: grid;
  gap: 40px;
}

.video-card {
  display: grid;
  gap: 18px;
}

.videobox iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-m);
  background: #000;
  box-shadow: var(--shadow-soft);
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 24px 0 36px;
  margin-top: 20px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1000px) {
  :root {
    --header-height: 68px;
    --section-space: 60px;
  }

  .container {
    width: min(calc(100% - 32px), var(--container-max));
  }

  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

  .rave2d-image {
    width: min(100%, 640px);
    max-width: 640px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 60px;
    --section-space: 52px;
    --grid-gap: 18px;
  }

  .header-inner {
    gap: 12px;
  }

  .kaminjpg {
    height: 40px;
    max-width: 45vw;
  }

  .nav-links {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-links li a {
    font-size: 11px;
    padding: 4px 2px;
  }

  .contact-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .card-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rave2d-image {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(calc(100% - 24px), var(--container-max));
  }

  .nav-links {
    display: none;
  }

  .card-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .media-card h3 {
    font-size: 13px;
  }

  .social-links {
    gap: 10px;
  }

  .btn {
    width: 46px;
    height: 46px;
  }

  .icon {
    width: 20px;
    height: 20px;
  }
}
