/* =========================
   Reset & Base
========================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #9a1e37;
  --text: #222;
  --muted: #888;
  --border: #e6e6e6;
  --bg: #fff;
}

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  opacity: 0.85;
}

/* =========================
   Header / Nav
========================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: center;
  padding: 10px 16px;
}

header img {
  height: 48px;
  cursor: pointer;
  transition: transform 0.25s ease;
}

header img:hover {
  transform: scale(1.03);
}

nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

nav a {
  position: relative;
  font-weight: 500;
  color: #111;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.28s ease;
}

nav a:hover::after {
  width: 100%;
}

/* =========================
   Hero
========================= */
.hero {
  height: min(60vh, 560px);
  min-height: 360px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 55%,
    rgba(255, 255, 255, 0.9)
  );
}

/* =========================
   Sections
========================= */
.section {
  max-width: 980px;
  margin: 64px auto;
  padding: 0 16px;
}

.section h2 {
  font-weight: 300;
  font-size: clamp(22px, 3vw, 28px);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 1rem;
}

.section p,
.section li {
  font-weight: 300;
  font-size: 1rem;
}

/* Apple-like reveal */
.reveal {
  display: inline-block;
  overflow: hidden;
}

.reveal > span {
  display: inline-block;
  transform: translateY(120%);
  transition: transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible > span {
  transform: translateY(0);
}

/* =========================
   Access
========================= */
.access-block {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px dashed var(--border);
}

.access-img {
  flex: 0 0 320px;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.access-img img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: transform 1.2s ease;
}

.access-img.is-visible img {
  transform: scale(1.06) translateY(-6px);
}

.access-text {
  flex: 1;
  min-width: 260px;
}

.access-text h3 {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.access-text p {
  color: #333;
}

/* Logo under text */
.logo-under {
  margin-top: 12px;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.logo-under.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.logo-under img {
  width: 110px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
}

.logo-under.center-logo {
  text-align: center;
  margin-bottom: 12px;
}

/* =========================
   Works
========================= */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 2rem;
}

.work-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.work-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.work-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.work-info {
  padding: 1rem;
}

.work-year {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
}

/* =========================
   Gallery
========================= */
.gallery {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 24px auto;
}

.gallery img {
  width: 280px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery img:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* =========================
   Partners
========================= */
.partners {
  margin-top: 64px;
}

.partners-title {
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}

.partners-list.premium {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
  list-style: none;
  padding: 0 16px;
}

.partners-list.premium li {
  position: relative;
  padding: 16px 18px;
  background: linear-gradient(180deg, #fff, #fafafa);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.partners-list.premium li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  width: 3px;
  height: 64%;
  background: var(--accent);
}

.partners-list.premium li:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
}

/* =========================
   Footer
========================= */
footer {
  padding: 24px 16px;
  text-align: center;
  background: #f7f7f7;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* =========================
   Responsive (Smartphone)
========================= */
@media (max-width: 768px) {
  header {
    justify-content: center;
  }

  nav {
    gap: 16px;
    font-size: 0.95rem;
  }

  .section {
    margin: 48px auto;
  }

  .access-block {
    flex-direction: column;
  }

  .access-img {
    flex: none;
    width: 100%;
  }

  .works-grid {
    gap: 16px;
  }

  .gallery img:hover {
    transform: none;
    box-shadow: none;
  }

  .partners-list.premium {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 300px;
  }

  .partners-list.premium {
    grid-template-columns: 1fr;
  }

  .work-thumb img {
    height: 160px;
  }
}
