/* ==========================================================================
   oO MINAMO ランディングページ スタイルシート
   ========================================================================== */

:root {
  --navy-950: #081B30;
  --navy-900: #0B2540;
  --navy-800: #123655;
  --navy-700: #1A4B75;
  --navy-600: #245F92;
  --navy-100: #E4EDF4;
  --navy-50:  #F7FAFC;
  --ripple-600: #C1352B;
  --ripple-700: #A22A22;
  --wave-blue: #2E86AB;
  --wave-coral: #D98C82;
}

html { scroll-behavior: smooth; }
body { font-feature-settings: "palt"; }
section[id] { scroll-margin-top: 4.5rem; }

.font-mincho { font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif; }
.font-zen { font-family: 'Zen Kaku Gothic New', sans-serif; }

/* ---- Signature: gradient "wave" line, echoes the keyvisual's underline ---- */
.wave-line {
  display: inline-block;
  width: 96px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--wave-blue), var(--wave-coral));
}

/* ---- Hero keyvisual (image supplied by client, embedded for portability) ---- */
.hero-keyvisual {
  width: 100%;
  aspect-ratio: 1730 / 909;
  background-image: url("https://oo-community.ooo/minamo/minamo_top.png");
  background-size: cover;
  background-position: center;
  border-radius: 0;
}

/* ---- Ripple hero rings (used in dark sections: header intro / entry CTA) ---- */
.ripple-ring {
  position: absolute;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.16);
  opacity: 0;
  animation: ripple-out 4.5s ease-out infinite;
}
.ripple-ring.r2 { animation-delay: 1.1s; }
.ripple-ring.r3 { animation-delay: 2.2s; }
.ripple-ring.r4 { animation-delay: 3.3s; }
@keyframes ripple-out {
  0%   { transform: scale(0.15); opacity: 0; }
  12%  { opacity: 0.9; }
  100% { transform: scale(1); opacity: 0; }
}

/* ---- Drop-shaped list bullet, echoes the water-drop motif in the keyvisual ---- */
.drop-bullet::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.7rem;
  margin-right: 0.65rem;
  background: currentColor;
  clip-path: path("M4 0C4 0 0 6.5 0 9.5C0 11.9853 1.79086 13.5 4 13.5C6.20914 13.5 8 11.9853 8 9.5C8 6.5 4 0 4 0Z");
  flex-shrink: 0;
  transform: translateY(3px);
}

/* ---- Scroll-in reveal ---- */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .ripple-ring { animation: none; opacity: 0.25; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

a:focus-visible, button:focus-visible {
  outline: 2px solid #C1352B;
  outline-offset: 3px;
}

.wave-divider { display: block; width: 100%; height: 48px; }

.stage-line { background: linear-gradient(to bottom, #C1352B, #1A4B75); }

/* ==========================================================================
   TOPICS (note magazine auto-import list)
   ========================================================================== */
.topic-list {
  border-top: 1px solid var(--navy-100);
}
.topic-row {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.15rem 0.25rem;
  border-bottom: 1px solid var(--navy-100);
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}
.topic-row:hover {
  background-color: #fff;
  padding-left: 0.75rem;
}
.topic-row__date {
  flex-shrink: 0;
  width: 5.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy-600);
  letter-spacing: 0.03em;
}
.topic-row__title {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.6;
}
.topic-row__arrow {
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ripple-600);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.topic-row:hover .topic-row__arrow {
  opacity: 1;
  transform: translateX(0);
}
@media (max-width: 480px) {
  .topic-row { flex-wrap: wrap; gap: 0.3rem 1rem; }
  .topic-row__date { width: auto; }
  .topic-row__arrow { display: none; }
}

/* skeleton loading state, shown while the note RSS feed is being fetched */
.topic-skeleton {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.15rem 0.25rem;
  border-bottom: 1px solid var(--navy-100);
}
.topic-skeleton .skeleton-line {
  height: 0.8rem;
  border-radius: 0.25rem;
  background: linear-gradient(90deg, var(--navy-100) 25%, #eef3f7 37%, var(--navy-100) 63%);
  background-size: 400% 100%;
  animation: skeleton-shine 1.6s ease infinite;
}
@keyframes skeleton-shine {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .topic-skeleton .skeleton-line { animation: none; }
}

/* ==========================================================================
   MENTORS profile cards
   ========================================================================== */
.mentor-card {
  background: #fff;
  border: 1px solid var(--navy-100);
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
}
.mentor-card__photo {
  width: 168px;
  height: 168px;
  border-radius: 9999px;
  object-fit: cover;
  margin: 0 auto 1.1rem;
  background: var(--navy-100);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--navy-100);
}
.mentor-card__photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--navy-600);
  background: var(--navy-50);
  border-style: dashed;
  border-color: var(--navy-100);
}
.mentor-card__name {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.mentor-card__role {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ripple-600);
  background: var(--ripple-100, #FBE8E5);
  border-radius: 9999px;
  padding: 0.15rem 0.7rem;
  margin-bottom: 0.7rem;
}
.mentor-card__bio {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--navy-800);
  text-align: left;
  white-space: pre-line;
}
.mentor-card--more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--navy-600);
  color: var(--navy-600);
  font-size: 0.85rem;
  font-weight: 700;
  min-height: 100%;
}

/* ==========================================================================
   PARTNERS logo tiles
   ========================================================================== */
.partner-tile {
  background: #ffffff;
  border-radius: 0.85rem;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 1.3rem;
}
.partner-tile img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.partner-tile--placeholder {
  flex-direction: column;
  gap: 0.3rem;
  color: var(--navy-600);
  border: 1px dashed var(--navy-100);
}
.partner-tile--placeholder span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}
.partner-tile--more {
  background: transparent;
  border: 1px dashed rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.75);
  flex-direction: column;
  gap: 0.2rem;
}
.partner-tile--more span {
  font-size: 0.7rem;
  font-weight: 700;
}

/* ==========================================================================
   Mobile hamburger menu
   ========================================================================== */
.hamburger-icon {
  display: block;
  width: 22px;
  height: 16px;
  position: relative;
}
.hamburger-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}
.hamburger-icon span:nth-child(1) { top: 0; }
.hamburger-icon span:nth-child(2) { top: 7px; }
.hamburger-icon span:nth-child(3) { top: 14px; }

#menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}
#menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
  opacity: 0;
}
#menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 27, 48, 0.5);
  z-index: 55;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu-backdrop.is-open {
  opacity: 1;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(84vw, 380px);
  background: #ffffff;
  z-index: 60;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -8px 0 30px rgba(8, 27, 48, 0.15);
}
.mobile-menu.is-open {
  transform: translateX(0);
}
.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--navy-100);
  flex-shrink: 0;
}
.mobile-menu__close {
  font-size: 1.7rem;
  line-height: 1;
  color: var(--navy-800);
  background: none;
  border: none;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
}
.mobile-menu__list {
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  overflow-y: auto;
  flex: 1;
}
.mobile-menu__list li {
  border-bottom: 1px solid var(--navy-100);
}
.mobile-menu__list a {
  display: block;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: 0.02em;
}
.mobile-menu__cta {
  padding: 1.1rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid var(--navy-100);
  flex-shrink: 0;
}
.mobile-menu__btn-primary {
  display: block;
  text-align: center;
  background: var(--ripple-600);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem;
  border-radius: 9999px;
}
.mobile-menu__btn-secondary {
  display: block;
  text-align: center;
  color: var(--navy-800);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem;
}
body.menu-open {
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .mobile-menu-backdrop, .hamburger-icon span { transition: none; }
}
