/* ===== 基本設定 ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Zen Kaku Gothic New", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  line-height: 1.7;
  color: #24262b;
  background-color: #f5f6f7;
}

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

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

/* ===== 上部メニュー ===== */
.top-menu {
  width: 100%;
  padding: 20px 0 8px;
  background-color: #d8d8d8;
  border-bottom: none;
}

.hamburger-button {
  display: none;
}

.top-menu-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
  overflow: visible;
}

.top-menu-button {
  display: block;
  flex: 0 0 auto;
  width: 100px;
  line-height: 0;
  margin-top: -6px;
  margin-bottom: -6px;
  transition: 0.2s ease;
}

.top-menu-img {
  display: block;
  width: 100%;
  height: auto;
}

.top-menu-button:hover,
.top-menu-button.is-active {
  transform: translateY(-2px);
}

/* ===== トップページ ===== */
.home-page {
  width: 100%;
}

.main-visual {
  width: min(100% - 48px, 900px);
  margin: 0 auto;
  padding: 10px 0 48px;
}

.photo-frame {
  width: min(100%, 760px);
  height: 320px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #d8d8d8;
  position: relative;
}

.member-photo-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr;
  grid-auto-flow: row;
  background-color: #f5f6f7;
}

.member-photo {
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center 10%;
  display: block;
  background-color: #f5f6f7;
}

.photo-over-logo {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: -30%;
  width: min(72%, 480px);
  height: auto;
  transform: translateX(-50%);
  opacity: 0;
  animation: logoFadeIn 0.9s ease forwards;
  animation-delay: 1.95s;
  pointer-events: none;
}

@keyframes logoFadeIn {
  to {
    opacity: 1;
  }
}

.fade-member {
  opacity: 0;
  transform: translateX(-18px);
  animation: memberFadeIn 0.7s ease forwards;
}

.fade-member:nth-child(1) { animation-delay: 0.08s; }
.fade-member:nth-child(2) { animation-delay: 0.18s; }
.fade-member:nth-child(3) { animation-delay: 0.28s; }
.fade-member:nth-child(4) { animation-delay: 0.38s; }
.fade-member:nth-child(5) { animation-delay: 0.48s; }
.fade-member:nth-child(6) { animation-delay: 0.58s; }
.fade-member:nth-child(7) { animation-delay: 0.68s; }
.fade-member:nth-child(8) { animation-delay: 0.78s; }
.fade-member:nth-child(9) { animation-delay: 0.88s; }
.fade-member:nth-child(10) { animation-delay: 0.98s; }
.fade-member:nth-child(11) { animation-delay: 1.08s; }
.fade-member:nth-child(12) { animation-delay: 1.18s; }

@keyframes memberFadeIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== ロゴ ===== */
.logo-area {
  --title-logo-width: 560px;
  --title-logo-x: 0px;
  --title-logo-y: 0px;
  --title-logo-margin-bottom: 8px;

  margin: 12px auto 0;
  text-align: center;
}

.title-logo {
  display: block;
  width: min(100%, var(--title-logo-width));
  height: auto;
  margin: 0 auto var(--title-logo-margin-bottom);
  transform: translate(var(--title-logo-x), var(--title-logo-y));
}

.logo-text {
  display: none;
}

/* ===== 紹介文 ===== */
.intro-box {
  width: min(100%, 760px);
  margin: 0 auto 28px;
  padding: 0;
  border: none;
  background-color: transparent;
  text-align: center;
}

.intro-sentence-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.fade-in-intro-sentence {
  opacity: 0;
  transform: translateY(16px);
  animation: introSentenceFadeIn 0.9s ease forwards;
  animation-delay: 2.4s;
}

@keyframes introSentenceFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-box h3 {
  margin-bottom: 20px;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.2;
}

.intro-box p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1rem;
  text-align: center;
}

/* ===== 下側画像ボタン ===== */
.link-button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 84px;
  width: min(100%, 760px);
  margin: 0 auto;
}

.image-link-button {
  display: block;
  line-height: 0;
  transition: 0.2s ease;
}

.image-link-button img {
  display: block;
  width: 100%;
  height: auto;
}

.image-link-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* ===== スマホ対応 ===== */
@media (max-width: 640px) {
  .top-menu {
    position: relative;
    padding: 14px 0;
  }

  .hamburger-button {
    display: grid;
    gap: 3px;
    width: 26px;
    height: 26px;
    margin: 0 10px 0 auto;
    padding: 5px;
    border: 1.5px solid #161616;
    border-radius: 5px;
    background-color: #ffffff;
    cursor: pointer;
  }

  .hamburger-button span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #161616;
    border-radius: 999px;
    transition: 0.2s ease;
  }

  .hamburger-button.is-open span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .hamburger-button.is-open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-button.is-open span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .top-menu-inner {
    display: none;
    position: absolute;
    z-index: 10;
    top: calc(100% - 4px);
    right: 10px;
    width: min(220px, calc(100% - 20px));
    max-height: calc(100vh - 72px);
    padding: 6px;
    background-color: #ffffff;
    border: 2px solid #161616;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    flex-direction: column;
    overflow-y: auto;
  }

  .top-menu-inner.is-open {
    display: grid;
    gap: 2px;
  }

  .top-menu-button {
    width: 100%;
    max-width: 190px;
    flex: none;
    line-height: 0;
    margin: -2px auto;
  }

  .top-menu-img {
    width: 100%;
    height: auto;
  }

  .photo-frame {
    height: 240px;
  }

  .member-photo-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: 1fr;
  }

  .member-photo {
    object-position: center 20%;
  }

  .photo-over-logo {
    width: min(72%, 360px);
    bottom: -30%;
  }
}

@media (max-width: 430px) {
  .top-menu-inner {
    width: min(190px, calc(100% - 20px));
    max-height: calc(100vh - 64px);
    padding: 5px;
  }

  .top-menu-button {
    max-width: 165px;
    margin: -3px auto;
  }

  .link-button-grid {
    gap: 10px 28px;
  }

  .photo-frame {
    height: 200px;
  }

  .member-photo {
    object-position: center 22%;
  }

  .photo-over-logo {
    width: 76%;
    bottom: 7%;
  }
}