@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;700;900&family=Zen+Maru+Gothic:wght@400;500;700;900&display=swap');

:root {
  /* Common */
  --font-main: "Zen Maru Gothic", sans-serif;
  --font-en: "Outfit", sans-serif;
  --max-width: 800px;
  --header-height: 70px;
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 12px;

  /* Theme: Sandy Beach (Default) */
  --bg-color: #fdfcf4;

  --text-main: #2b4257;
  --text-muted: #5c7f92;
  --primary: #0096c7;
  --accent: #ff8fa3;

  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 12px 40px rgba(43, 66, 87, 0.05);

  --card-bg: #ffffff;
}

[data-theme="dark"] {
  /* Theme: Night Ocean */
  --bg-color: #0b1a2a;

  --text-main: #f0f4f8;
  --text-muted: #829ab1;
  --primary: #48c6ef;
  --accent: #d6409f;

  --glass-bg: rgba(23, 49, 77, 0.6);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);

  --card-bg: rgba(36, 59, 85, 0.8);
}

/* Parallax Background Layers */
.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.layer {
  position: absolute;
  width: 100%;
  height: 100%;
  background-repeat: repeat;
  background-position: center bottom;
}

/* Layer 1: Sand Texture (Full Background) */
.layer-sand {
  background-color: var(--bg-color);
  background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><g fill="%23d6ccc2" fill-opacity="0.2"><circle cx="2" cy="2" r="1"/><circle cx="25" cy="15" r="1.5"/><circle cx="12" cy="30" r="1"/></g></svg>');
  z-index: 1;
}

/* Layer 1.5: Walking Crab */


/* Tropical Decorations (Beach Area at TOP) */
.tropical-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  /* On top of sand, beneath waves if they rise high, but generally framing content */
}

/* Small Palm Trees on Top Beach */
.palm-tree {
  position: absolute;
  top: 200px;
  /* Hanging from top */
  width: 120px;
  /* Much Smaller */
  height: 160px;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.9;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.1));
}

.palm-left {
  left: -20px;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 300" xmlns="http://www.w3.org/2000/svg"><path d="M100,0 C90,100 110,200 100,300" stroke="%23795548" stroke-width="14" fill="none" stroke-linecap="round"/><g fill="%235D4037"><circle cx="90" cy="25" r="14"/><circle cx="110" cy="30" r="14"/><circle cx="100" cy="45" r="14"/></g><g stroke="%234CAF50" stroke-width="6" fill="none" stroke-linecap="round"><path d="M100,10 C70,50 20,80 0,130"/><path d="M100,10 C80,50 40,60 10,80"/><path d="M100,10 C60,20 20,30 0,40"/><path d="M100,10 C130,50 170,80 190,110"/><path d="M100,10 C140,20 180,50 200,90"/><path d="M100,10 C150,10 190,20 200,30"/><path d="M100,10 C90,60 90,100 85,120"/><path d="M100,10 C110,60 110,100 115,120"/></g></svg>');
  transform: rotate(15deg);
  transform-origin: top center;
  animation: palmSway 6s ease-in-out infinite alternate;
}

.palm-right {
  right: -20px;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 300" xmlns="http://www.w3.org/2000/svg"><path d="M100,0 C110,100 90,200 100,300" stroke="%23795548" stroke-width="14" fill="none" stroke-linecap="round"/><g fill="%235D4037"><circle cx="90" cy="25" r="14"/><circle cx="110" cy="30" r="14"/><circle cx="100" cy="45" r="14"/></g><g stroke="%234CAF50" stroke-width="6" fill="none" stroke-linecap="round"><path d="M100,10 C70,50 20,80 0,130"/><path d="M100,10 C80,50 40,60 10,80"/><path d="M100,10 C60,20 20,30 0,40"/><path d="M100,10 C130,50 170,80 190,110"/><path d="M100,10 C140,20 180,50 200,90"/><path d="M100,10 C150,10 190,20 200,30"/><path d="M100,10 C90,60 90,100 85,120"/><path d="M100,10 C110,60 110,100 115,120"/></g></svg>');
  transform: scaleX(-1) rotate(15deg);
  transform-origin: top center;
  animation: palmSway 7s ease-in-out infinite alternate-reverse;
}

/* Parasol */
/* Parasol */
.parasol {
  position: absolute;
  width: 120px;
  height: 120px;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M50,90 L50,40" stroke="%238d6e63" stroke-width="4" stroke-linecap="round"/><path d="M10,40 Q50,0 90,40 Z" fill="%23ff8fa3"/><path d="M10,40 Q50,0 90,40" fill="none" stroke="%23fff" stroke-width="2"/><path d="M50,40 L50,20" stroke="%23fff" stroke-width="2"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.1));
  z-index: 10;
}

.parasol-1 {
  top: 25%;
  /* Lowered from 10% */
  right: 15%;
  transform: rotate(10deg);
}

.parasol-2 {
  top: 30%;
  /* Lower and offset */
  left: 10%;
  transform: scaleX(-1) rotate(5deg);
  /* Different color (Blueish) via hue-rotate for variety? Or keep same? Let's keep consistent style but maybe flipped */
  filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.1)) hue-rotate(40deg);
  /* Yellow/Orange tint */
}

@keyframes palmSway {
  0% {
    transform: rotate(15deg);
  }

  100% {
    transform: rotate(18deg);
  }
}

/* Hibiscus - Floating in the air/water */
.hibiscus {
  position: absolute;
  width: 50px;
  height: 50px;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M50,50 Q20,20 20,50 Q20,80 50,80 Q80,80 80,50 Q80,20 50,50" fill="%23ff8fa3" opacity="0.4" /><path d="M50,50 Q30,10 50,10 Q70,10 50,50" fill="%23ff8fa3" /><path d="M50,50 Q10,30 10,50 Q10,70 50,50" fill="%23ff8fa3" /><path d="M50,50 Q30,90 50,90 Q70,90 50,50" fill="%23ff8fa3" /><path d="M50,50 Q90,70 90,50 Q90,30 50,50" fill="%23ff8fa3" /><circle cx="50" cy="50" r="10" fill="%23fff176"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.8;
  z-index: 6;
}

.hibiscus-1 {
  top: 150px;
  left: 10%;
  animation: float 20s infinite ease-in-out;
}

.hibiscus-2 {
  top: 50px;
  right: 25%;
  width: 40px;
  height: 40px;
  animation: float 25s infinite ease-in-out reverse;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(20px, 10px) rotate(10deg);
  }
}

/* 
   WAVE ANIMATIONS (Bottom Seascape)
*/
.layer-foam,
.layer-water-mid,
.layer-water {
  background-repeat: repeat-x;
  background-size: 1000px 100%;
}

.layer-foam {
  /* Lighter Blue, Topmost wave edge */
  background-image: url('data:image/svg+xml;utf8,<svg preserveAspectRatio="none" viewBox="0 0 1000 320" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="g1" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="%23ade8f4"/><stop offset="1" stop-color="%2300b4d8"/></linearGradient></defs><path fill="url(%23g1)" fill-opacity="0.9" d="M0,160 C200,180 300,120 500,160 C700,200 800,140 1000,160 L1000,320 L0,320 Z"></path></svg>');
  bottom: -20px;
  height: 60vh;
  /* Reaches up to 60% of screen height */
  z-index: 2;
  opacity: 1;
  animation: waveFlow 12s linear infinite, waveBob 4s ease-in-out infinite alternate;
}

.layer-water-mid {
  /* Mid Blue */
  background-image: url('data:image/svg+xml;utf8,<svg preserveAspectRatio="none" viewBox="0 0 1000 320" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="g2" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="%230077b6"/><stop offset="1" stop-color="%23023e8a"/></linearGradient></defs><path fill="url(%23g2)" fill-opacity="1" d="M0,190 C150,220 350,150 500,190 C650,230 850,160 1000,190 L1000,320 L0,320 Z"></path></svg>');
  bottom: -30px;
  height: 50vh;
  z-index: 3;
  opacity: 1;
  animation: waveFlow 18s linear infinite reverse, waveBob 5s ease-in-out infinite alternate-reverse;
}

.layer-water {
  /* Deep Blue */
  background-image: url('data:image/svg+xml;utf8,<svg preserveAspectRatio="none" viewBox="0 0 1000 320" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="g3" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="%2303045e"/><stop offset="1" stop-color="%23000000"/></linearGradient></defs><path fill="url(%23g3)" fill-opacity="1" d="M0,220 C250,230 350,180 500,220 C650,260 750,210 1000,220 L1000,320 L0,320 Z"></path></svg>');
  bottom: -50px;
  height: 40vh;
  z-index: 4;
  opacity: 1;
  animation: waveFlow 25s linear infinite, waveBob 7s ease-in-out infinite alternate;
}


@keyframes waveFlow {
  0% {
    background-position-x: 0;
  }

  100% {
    background-position-x: 1000px;
  }
}

@keyframes waveBob {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(15px);
  }
}

/* Rest of CSS (Unchanged Base) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 
   Requested: Prevent image saving (long-press/right-click) 
   Note: This is a deterrent, not a perfect security measure.
*/
img {
  pointer-events: none;
  /* Disables all click/touch events on images */
  user-select: none;
  /* Disables text selection */
  -webkit-user-select: none;
  /* Safari */
  -webkit-touch-callout: none;
  /* Disables long-press menu on iOS */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* IE/Edge */
  -webkit-user-drag: none;
  /* Disables dragging */
}

html {
  scroll-behavior: smooth;
  font-size: 95%;
  /* Requested: Make whole site slightly smaller */
}

@media (max-width: 768px) {
  html {
    font-size: 85%;
  }
}

body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 2.0;
  letter-spacing: 0.03em;
  overflow-x: hidden;
  transition: color 0.5s ease;
}

h1,
h2,
h3 {
  font-family: var(--font-main);
  font-weight: 700;
  margin: 0 0 1.2rem;
  line-height: 1.4;
}

/* ... existing code ... */

.footer {
  text-align: center;
  padding: 40px 0;
  border-top: none;
  margin-top: 60px;
  color: var(--text-muted);

  /* Added Glass Background for Footer Readability */
  background: var(--glass-bg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  position: relative;
  z-index: 5;
  /* Ensure it's above waves if they overlap */
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

.container {
  width: min(var(--max-width), 90%);
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.glass {
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.card-hover {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  /* Removed rotate(1deg) to lift straight up */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.card-hover:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  border: none;
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn:hover {
  transform: scale(1.05);
}

.btn:active {
  transform: scale(0.95);
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.12);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4cc9f0);
  color: white;
  box-shadow: 0 8px 20px rgba(0, 150, 199, 0.2);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #ff6b8a);
  color: white;
  box-shadow: 0 8px 20px rgba(255, 143, 163, 0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid var(--text-muted);
  color: var(--text-muted);
}

/* High-Impact CTA Styles */
.cta-card {
  text-align: center;
  padding: 60px 20px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
  /* Animated Gradient Border Effect */
  box-shadow: 0 0 20px rgba(0, 150, 199, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.5);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.9));
}

.cta-sub {
  display: inline-block;
  font-size: 1.1rem;
  color: var(--primary);
  background: rgba(0, 150, 199, 0.1);
  padding: 4px 16px;
  border-radius: 99px;
  margin-bottom: 12px;
  font-weight: 900;
}

.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--text-main);
}

.cta-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.8;
}

.btn-large {
  font-size: 1.2rem;
  padding: 18px 48px;
  border-radius: 99px;
}

/* Pulsing Button Animation */
.pulse-btn {
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(0, 150, 199, 0.7);
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 150, 199, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 15px rgba(0, 150, 199, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 150, 199, 0);
  }
}

/* Base Styles */
.header {
  position: sticky;
  top: 0;
  /* Changed from 20px to 0 to close the gap */
  z-index: 100;
  margin: 0;
  /* Align full width or handle via inner padding */
  padding: 20px;
  /* Add padding to maintain visual spacing */
}

@media (max-width: 768px) {
  .header {
    padding: 10px;
    /* Reduced mobile padding */
  }

  .header__inner {
    height: 50px;
    /* Compact height for mobile */
    padding: 0 16px;
  }
}

.header__inner {
  height: var(--header-height);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.brand__text {
  font-weight: 900;
  font-size: 1.1rem;
}

.nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav__link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.theme-toggle {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  margin-left: 12px;
  font-size: 1.2rem;
  transition: 0.3s;
}

.theme-toggle:hover {
  transform: rotate(15deg);
}

.hero {
  padding: 10px 0 80px;
  /* Reduced from 30px to minimal */
  text-align: center;
}

.hero__tag {
  display: inline-block;
  padding: 8px 20px;
  background: white;
  border-radius: 999px;
  color: var(--accent);
  font-weight: 900;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transform: rotate(-2deg);
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.3;
  margin-bottom: 30px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 40px;
}

/* Photo Vision Section (Scroll-reveal photo block) at the very top */
.photovision-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin-top: calc(-1 * var(--header-height));
  /* Extend behind transparent header */
  margin-left: calc(-50vw + 50%);
  /* Full viewport width */
  display: flex;
  align-items: flex-end;
  /* Align title to bottom */
  justify-content: flex-start;
  /* Align title to left */
  padding: 0 40px 60px;
  /* Padding for the bottom-left title */
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0) 100%), url('./画像/hero.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Parallax effect */
  z-index: 10;
  /* margin-bottom: 80px;  Removed margin to allow the original hero to flow right under */
}

/* Scroll Down Button for Photo Vision Section */
.scroll-down-btn {
  position: absolute;
  bottom: 60px;
  /* Aligned vertically with the 60px bottom padding of the section */
  right: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 20;
  animation: bounce 2s infinite;
  transition: all 0.3s ease;
}

.scroll-down-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(5px);
}

.scroll-down-btn svg {
  width: 24px;
  height: 24px;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-15px);
  }

  60% {
    transform: translateY(-7px);
  }
}

@media (max-width: 768px) {
  .photovision-section {
    padding: 0 20px 40px;
  }
}

.photovision__title-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.photovision__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
  letter-spacing: 0.1em;
  /* Increased letter spacing for premium feel */
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 2px 5px rgba(0, 0, 0, 0.5);
  /* Stronger shadow for image contrast */
}

/* Highlight specifically designed for dark background image */
.text-highlight {
  color: #a8dadc;
  /* Soft cyan/blue from existing gradient idea, contrasts well with dark/photo */
  background: linear-gradient(135deg, #a8dadc, #457b9d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding: 0 4px;
}

/* Initial load animation for the hero text */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUpElevate 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.2s;
  /* Slight delay after page load */
}

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

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 100%;
  /* Requested: Widen the small boxes to fill parent */
  margin: 0 auto;
}

.card {
  padding: 30px 40px;
  text-align: center;
  /* Requested: Center all content */
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center flex items horizontally */
}

.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.member-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #eef;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

section {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 16px;
}

.timeline {
  border-left: 3px solid rgba(0, 150, 199, 0.2);
  margin-left: 20px;
  padding-left: 30px;
}

.timeline-item {
  margin-bottom: 40px;
  position: relative;
  /* Glass Card Style for Readability */
  background: var(--glass-bg);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 6px;
  width: 15px;
  height: 15px;
  background: white;
  border: 4px solid var(--primary);
  border-radius: 50%;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  background: #f4f8fa;
  margin-bottom: 15px;
}

.form-input:focus,
.form-textarea:focus {
  background: white;
  border-color: var(--primary);
  outline: none;
}

.footer {
  text-align: center;
  padding: 40px 0;
  border-top: none;
  margin-top: 0;
  color: var(--text-muted);

  /* Added Glass Background for Footer Readability (Like other cards) */
  background: var(--glass-bg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-top: 1px solid var(--glass-border);
  /* Re-add mild border for definition */
  position: relative;
  z-index: 5;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-main);
}

@media (max-width: 900px) {
  .nav {
    display: none;
    /* Hide desktop nav sooner */

    &.active {
      display: flex;
      position: fixed;
      flex-direction: column;
      top: 80px;
      left: 20px;
      right: 20px;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      padding: 30px;
      border-radius: 20px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
      z-index: 200;
      gap: 24px;
      font-size: 1.1rem;
      text-align: center;
    }
  }

  .hamburger {
    display: flex;
  }
}

/* Section Grouping Box (Added per user request) */
/* Section Grouping Box */
.section-box {
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  /* Requested: Center align everything */
}

@media (max-width: 768px) {
  .section-box {
    padding: 40px 24px;
    /* Responsive adjustment (Reverted to original) */
  }

  /* Text-like elements inside section-box push closer to edges */
  .section-box p,
  .section-box .card__text,
  .section-box .section-desc {
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-5px);
}

/* Mobile Font Size Optimization */
@media (max-width: 768px) {
  html {
    font-size: 80%;
    /* Scale down global font size */
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  .hero__title {
    font-size: 2.4rem;
    margin-bottom: 20px;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .section-desc {
    font-size: 0.9rem;
  }
}

/* New Member Profile Card Design */
.member-profile-card {
  display: flex;
  background: var(--card-bg);
  border-radius: 16px 80px 16px 80px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: stretch;
}

.member-image-container {
  /* Exactly as per screenshot: left side image takes up roughly 40-45% */
  flex: 0 0 42%;
  position: relative;
  /* Remove min-height to let padding of right side dictate height, or keep a relative min-height */
}

.member-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.member-info-container {
  flex: 1;
  /* Takes remaining ~58% */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5% 5%;
  /* Fluid padding to scale with card width */
  text-align: center;
}

.member-name-area {
  margin-bottom: 5%;
}

.member-name-en {
  font-size: clamp(1.2rem, 5vw, 3rem);
  /* Fluid typography */
  font-weight: 800;
  font-family: serif;
  color: var(--text-main);
  /* Or specific dark blue like #1d3557 */
  margin: 0;
  letter-spacing: 2px;
  line-height: 1;
}

.member-name-ja {
  font-size: clamp(0.6rem, 2.5vw, 1rem);
  /* Fluid typography */
  font-weight: 700;
  color: var(--text-main);
  margin-top: 8px;
  display: block;
}

.member-details-area {
  font-size: clamp(0.55rem, 2.2vw, 0.95rem);
  /* Fluid typography */
  line-height: 1.8;
  color: var(--text-main);
  width: 100%;
}

.member-detail-row {
  margin-bottom: 4%;
}

/* Optional: targeted styling for the "likes" box to scale nicely */
.member-detail-row[style*="background"] {
  padding: 4% !important;
  border-radius: 12px !important;
}

.member-detail-row[style*="background"]>div:first-child {
  font-size: clamp(0.5rem, 2vw, 0.8rem) !important;
  margin-bottom: 2% !important;
}

.member-detail-row[style*="background"]>div:last-child {
  font-size: clamp(0.55rem, 2.2vw, 0.9rem) !important;
}