@charset "UTF-8";

/* ==========================================================================
   三浦 海の学校 — 新デザインシステム
   白基調 × POPパステル × モバイルファースト
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
  /* Colors */
  --white:         #FFFFFF;
  --bg-cream:      #FAFBFC;
  --bg-soft:       #F0F7FA;
  --teal:          #4ECDC4;
  --teal-light:    #A8E6CF;
  --teal-dark:     #38AFA7;
  --coral:         #FF6B9D;
  --coral-light:   #FFA3C4;
  --yellow:        #FFE66D;
  --yellow-light:  #FFF3B0;
  --sky:           #45B7D1;
  --lavender:      #B8A9E8;
  --text-dark:     #2D3436;
  --text-sub:      #636E72;
  --text-light:    #B2BEC3;
  --border:        #E5EDF2;

  /* Typography */
  --ff-body: "Zen Maru Gothic", "Rounded Mplus 1c", "Hiragino Maru Gothic ProN", sans-serif;
  --ff-accent: "Montserrat", var(--ff-body);

  /* Spacing */
  --section-pad:   clamp(3rem, 8vw, 6rem);
  --container-max: 1100px;

  /* Radius & shadow */
  --radius-sm:  12px;
  --radius-md:  20px;
  --radius-lg:  28px;
  --shadow-sm:  0 2px 12px rgba(0,0,0,.06);
  --shadow-md:  0 8px 30px rgba(0,0,0,.08);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.10);
  --shadow-pop: 0 8px 24px rgba(78,205,196,.20);

  /* Transition */
  --ease: .35s cubic-bezier(.4,0,.2,1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width:100%; height:auto; display:block; }
a   { color: var(--teal-dark); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--coral); }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.text-center { text-align: center; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.sp-only { display:none; }
@media(max-width:767px) { .sp-only { display:inline; } }

/* ---------- Section ---------- */
.section {
  padding: var(--section-pad) 0;
}

.section--alt {
  background: var(--bg-soft);
}

.section-label {
  display: inline-block;
  font-family: var(--ff-accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .5rem;
}

.section-title {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: .75rem;
}

.section-lead {
  font-size: clamp(.95rem, 2.5vw, 1.1rem);
  color: var(--text-sub);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 2rem;
  border: none;
  border-radius: 50px;
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ease);
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: linear-gradient(135deg, var(--teal), var(--sky));
  color: var(--white);
  box-shadow: var(--shadow-pop);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(78,205,196,.30);
  color: var(--white);
}

.btn--coral {
  background: linear-gradient(135deg, var(--coral), #FF8E7A);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(255,107,157,.20);
}
.btn--coral:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255,107,157,.30);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--teal-dark);
}

.btn--ghost {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.4);
  color: var(--white);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.25);
  color: var(--white);
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: .6rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  height: 36px;
  width: auto;
}

.site-header.is-scrolled .header-logo img {
  filter: none;
}

/* ---- Desktop nav ---- */
.desktop-nav { display: none; }

@media (min-width: 769px) {
  .desktop-nav {
    display: flex;
    gap: 1.75rem;
    align-items: center;
  }
  .desktop-nav a {
    font-size: .9rem;
    font-weight: 600;
    color: var(--white);
    transition: color var(--ease);
    position: relative;
  }
  .desktop-nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2px;
    background: var(--coral);
    transition: width var(--ease);
  }
  .desktop-nav a:hover::after { width: 100%; }

  .site-header.is-scrolled .desktop-nav a {
    color: var(--text-dark);
  }
  .site-header.is-scrolled .desktop-nav a:hover {
    color: var(--teal);
  }
}

/* ---- Hamburger ---- */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--ease);
}
.site-header.is-scrolled .hamburger span {
  background: var(--text-dark);
}
.hamburger.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 769px) {
  .hamburger { display: none; }
}

/* ---- Mobile nav overlay ---- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}
.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--white);
  padding: 5rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform var(--ease);
  overflow-y: auto;
}
.mobile-nav.is-open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-panel a {
  display: block;
  padding: .9rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
}
.mobile-nav-panel a:hover { color: var(--teal); }

.mobile-nav-cta {
  margin-top: 1.5rem;
}
.mobile-nav-cta .btn {
  width: 100%;
  text-align: center;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0A8F8F 0%, #45B7D1 40%, #4ECDC4 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.15) 0%,
    rgba(0,0,0,.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 2rem 1.25rem;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  padding: .4rem 1.2rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  letter-spacing: .05em;
}

.hero h1 {
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: .92;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

/* Decorative bubbles */
.hero-bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  z-index: 1;
  animation: float 8s ease-in-out infinite;
}
.hero-bubble:nth-child(1) { width:120px; height:120px; top:15%; left:8%; animation-delay:0s; }
.hero-bubble:nth-child(2) { width:80px; height:80px; bottom:25%; right:10%; animation-delay:2s; }
.hero-bubble:nth-child(3) { width:60px; height:60px; top:50%; right:25%; animation-delay:4s; }

@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-20px) scale(1.05); }
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .15em;
  opacity: .7;
  animation: bounce 2s ease infinite;
}
.scroll-hint span { margin-bottom: .4rem; }
.scroll-hint svg { width: 20px; height: 20px; }

@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(8px); }
}

/* ================================================================
   SERVICES SECTION
   ================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--ease);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.service-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--ease);
}
.service-card:hover .service-card-img img {
  transform: scale(1.05);
}

.service-card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--coral);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: 50px;
}

.service-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.service-card-body p {
  color: var(--text-sub);
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  flex: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-weight: 600;
  font-size: .9rem;
  color: var(--teal-dark);
}
.service-card-link .arrow {
  transition: transform var(--ease);
}
.service-card:hover .service-card-link .arrow {
  transform: translateX(4px);
}

/* ================================================================
   WHY US — FEATURES
   ================================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.feature-icon--teal    { background: rgba(78,205,196,.15); }
.feature-icon--coral   { background: rgba(255,107,157,.15); }
.feature-icon--yellow  { background: rgba(255,230,109,.25); }
.feature-icon--sky     { background: rgba(69,183,209,.15); }

.feature-card h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.feature-card p {
  font-size: .8rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.testimonials-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .testimonials-track { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .testimonials-track { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 3rem;
  font-family: Georgia, serif;
  color: var(--teal-light);
  position: absolute;
  top: .75rem;
  left: 1.25rem;
  line-height: 1;
}

.testimonial-text {
  font-size: .9rem;
  line-height: 1.8;
  color: var(--text-sub);
  margin-bottom: 1rem;
  padding-top: 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-light), var(--sky));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: var(--white);
  font-weight: 700;
}

.testimonial-name {
  font-weight: 600;
  font-size: .85rem;
}
.testimonial-detail {
  font-size: .75rem;
  color: var(--text-light);
}

/* Stars */
.stars {
  color: #FFC107;
  font-size: .9rem;
  margin-bottom: .5rem;
}

/* ================================================================
   FAQ
   ================================================================ */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  font-size: .95rem;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--teal);
  transition: transform var(--ease);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-answer {
  padding: 0 0 1.1rem;
  font-size: .9rem;
  color: var(--text-sub);
  line-height: 1.8;
}

/* ================================================================
   CTA SECTION
   ================================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--teal) 0%, var(--sky) 100%);
  color: var(--white);
  text-align: center;
  padding: var(--section-pad) 0;
}

.cta-section .section-title { color: var(--white); }
.cta-section .section-lead  { color: rgba(255,255,255,.85); }

.cta-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.cta-card {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  min-width: 200px;
  flex: 1;
  max-width: 260px;
  text-align: center;
  transition: all var(--ease);
  color: var(--white);
  text-decoration: none;
}
.cta-card:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-3px);
  color: var(--white);
}

.cta-card-icon {
  font-size: 1.8rem;
  margin-bottom: .5rem;
}

.cta-card-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: .25rem;
}

.cta-card-detail {
  font-size: .8rem;
  opacity: .8;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
  font-size: .85rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand p {
  margin-top: .5rem;
  line-height: 1.7;
  font-size: .8rem;
}

.footer-nav h4,
.footer-social h4 {
  color: var(--white);
  font-size: .9rem;
  margin-bottom: .75rem;
}

.footer-nav a {
  display: block;
  padding: .25rem 0;
  color: rgba(255,255,255,.6);
  font-size: .85rem;
}
.footer-nav a:hover { color: var(--teal-light); }

.footer-social-icons {
  display: flex;
  gap: .75rem;
}

.footer-social-icons a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  transition: background var(--ease);
}
.footer-social-icons a:hover {
  background: var(--teal);
  color: var(--white);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: .75rem;
  color: rgba(255,255,255,.4);
}

/* ================================================================
   ANIMATIONS (Intersection Observer)
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   RESPONSIVE — fine-tuning
   ================================================================ */
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(1.5rem, 7vw, 2.2rem); }
  .hero-sub { font-size: .9rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 280px; }
  .features-grid { grid-template-columns: 1fr; }
}

/* Touch device optimization */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .feature-card:hover,
  .testimonial-card:hover {
    transform: none;
  }
  .service-card:active,
  .feature-card:active {
    transform: scale(.98);
  }
}

/* Print */
@media print {
  .site-header, .hero-bubble, .scroll-hint, .cta-section, .mobile-nav { display: none; }
  .hero { min-height: auto; padding: 2rem 0; }
  .section { padding: 1.5rem 0; }
}
