/*
Theme Name: ガラパゴス Custom Theme
Theme URI: https://rightp.jp/
Description: ガラパゴス 放課後等デイサービス カスタムテーマ
Author: Right Person
Author URI: https://rightp.jp/
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: galapagos
*/

/* ===========================
   CSS Custom Properties
=========================== */
:root {
  --emerald:    #2D7A6F;
  --emerald-dk: #1F5A52;
  --emerald-lt: #EEF6F4;
  --amber:      #F4A636;
  --coral:      #E8644A;
  --cream:      #FAFAF6;
  --charcoal:   #2A2A3A;
  --gray:       #6B7280;
  --gray-lt:    #F3F4F6;
  --white:      #FFFFFF;

  --font-serif: 'Noto Serif JP', 'Yu Mincho', serif;
  --font-sans:  'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;

  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.14);

  --transition: 0.25s ease;
  --max-w: 1100px;
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--emerald); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--emerald-dk); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.35;
  color: var(--charcoal);
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ===========================
   Layout Utilities
=========================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--alt { background: var(--emerald-lt); }
.section--dark { background: var(--emerald); color: var(--white); }
.section--dark h2,
.section--dark h3 { color: var(--white); }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--emerald);
  background: var(--emerald-lt);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section--dark .section-label {
  color: var(--amber);
  background: rgba(244,166,54,0.15);
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 16px;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 620px;
  margin-bottom: 48px;
}
.section--dark .section-lead { color: rgba(255,255,255,0.75); }

/* ===========================
   Skip Link
=========================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--emerald);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 16px; }

/* ===========================
   Site Header
=========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,246,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45,122,111,0.12);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

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

.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding__logo {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
}
.site-branding__text { display: flex; flex-direction: column; }
.site-branding__name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
}
.site-branding__tagline {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--emerald);
  font-weight: 600;
}

/* Nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--charcoal);
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  align-items: center;
}

.primary-nav a {
  display: block;
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.primary-nav a:hover { background: var(--emerald-lt); color: var(--emerald); }

.primary-nav .nav-cta a {
  background: var(--coral);
  color: var(--white);
  border-radius: 100px;
  padding: 7px 18px;
}
.primary-nav .nav-cta a:hover { background: #d05035; color: var(--white); }

/* ===========================
   Hero
=========================== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1F5A52 0%, #2D7A6F 50%, #3A9B8B 100%);
  padding: 100px 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(244,166,54,0.18) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(232,100,74,0.12) 0%, transparent 50%);
  pointer-events: none;
}

/* Decorative circles */
.hero::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -120px;
  width: 500px;
  height: 500px;
  border: 2px solid rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content { color: var(--white); }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--amber);
  border-radius: 2px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: normal;
  color: var(--amber);
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.85;
  margin-bottom: 40px;
  max-width: 460px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: none;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--primary {
  background: var(--coral);
  color: var(--white);
}
.btn--primary:hover { background: #d05035; color: var(--white); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn--outline:hover { background: rgba(255,255,255,0.1); color: var(--white); }

.btn--emerald {
  background: var(--emerald);
  color: var(--white);
}
.btn--emerald:hover { background: var(--emerald-dk); color: var(--white); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.hero-img-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4/5;
}

.hero-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-badge__icon {
  width: 44px; height: 44px;
  background: var(--emerald-lt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.hero-badge__text strong {
  display: block;
  font-size: 1.1rem;
  color: var(--emerald);
  font-weight: 800;
  line-height: 1;
}
.hero-badge__text span {
  font-size: 0.72rem;
  color: var(--gray);
}

/* ===========================
   About Section
=========================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img-col { position: relative; }

.about-img-main {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.about-mascot {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 130px; height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--white);
  box-shadow: var(--shadow-md);
}

.about-text { padding-left: 20px; }

.about-since {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--amber);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

/* Feature list */
.feature-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
}

.feature-list__icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--emerald);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-top: 2px;
}

/* ===========================
   Gallery Section
=========================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.gallery-grid__item {
  overflow: hidden;
  border-radius: var(--radius-md);
  position: relative;
}
.gallery-grid__item:first-child {
  grid-row: span 2;
}

.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  min-height: 200px;
}

.gallery-grid__item:hover img { transform: scale(1.03); }

/* ===========================
   Mascot Highlight
=========================== */
.mascot-section { text-align: center; }

.mascot-card {
  display: flex;
  align-items: center;
  gap: 48px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  text-align: left;
  margin-top: 0;
}

.mascot-img {
  flex-shrink: 0;
  width: 220px; height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--emerald-lt);
  box-shadow: var(--shadow-sm);
}

.mascot-text h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.mascot-text p { color: var(--gray); line-height: 1.8; }

/* ===========================
   SNS / Facebook Section
=========================== */
.sns-wrap {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.sns-wrap iframe { border-radius: var(--radius-md); overflow: hidden; }

/* ===========================
   CTA Band
=========================== */
.cta-band {
  background: var(--coral);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--white);
  margin-bottom: 12px;
}
.cta-band p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  font-size: 1.02rem;
}
.cta-band .btn--white {
  background: var(--white);
  color: var(--coral);
  font-weight: 700;
}
.cta-band .btn--white:hover { background: #f9f9f9; color: var(--coral); }

/* ===========================
   Site Footer
=========================== */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand__name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-brand__tagline {
  font-size: 0.8rem;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-brand__desc {
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--white); }

/* ===========================
   WordPress Block & Content
=========================== */
.entry-content {
  max-width: 760px;
  margin: 0 auto;
}

.entry-content h2 { font-size: 1.6rem; margin: 2em 0 0.75em; }
.entry-content h3 { font-size: 1.3rem; margin: 1.75em 0 0.6em; }
.entry-content p  { margin-bottom: 1.25em; line-height: 1.85; }
.entry-content ul, .entry-content ol { margin: 0 0 1.25em 1.5em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content a  { color: var(--emerald); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: var(--radius-md); margin: 1.5em auto; }
.entry-content blockquote {
  border-left: 4px solid var(--emerald);
  padding: 16px 24px;
  margin: 2em 0;
  background: var(--emerald-lt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--gray);
  font-style: italic;
}

/* WordPress Alignment */
.aligncenter { margin: 2em auto; }
.alignleft   { float: left; margin: 0 1.5em 1em 0; }
.alignright  { float: right; margin: 0 0 1em 1.5em; }

/* ===========================
   Page Header (inner pages)
=========================== */
.page-hero {
  background: linear-gradient(135deg, var(--emerald-dk), var(--emerald));
  padding: 60px 0 56px;
  text-align: center;
  color: var(--white);
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--white);
}
.page-hero .breadcrumb {
  margin-top: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.7); }
.page-hero .breadcrumb a:hover { color: var(--white); }

/* ===========================
   Contact Form
=========================== */
.contact-form { max-width: 640px; margin: 0 auto; }
.contact-form label { display: block; font-size: 0.88rem; font-weight: 700; margin-bottom: 6px; }
.contact-form .required { color: var(--coral); font-size: 0.75rem; }
.form-group { margin-bottom: 24px; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #DDE1E7;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(45,122,111,0.12);
}
.contact-form textarea { min-height: 160px; resize: vertical; }

/* ===========================
   Blog Archive
=========================== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.post-card__thumb { aspect-ratio: 16/9; overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .post-card__thumb img { transform: scale(1.05); }

.post-card__body { padding: 20px; }
.post-card__date {
  font-size: 0.75rem;
  color: var(--gray);
  margin-bottom: 8px;
}
.post-card__title {
  font-size: 1rem;
  font-family: var(--font-serif);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__title a { color: var(--charcoal); }
.post-card__title a:hover { color: var(--emerald); }

.post-card__more {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--emerald);
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-text { padding-left: 0; }
  .about-mascot { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .mascot-card { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .container { padding: 0 16px; }
  .nav-toggle { display: block; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(45,122,111,0.12);
    padding: 16px 24px 24px;
  }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 4px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid__item:first-child { grid-row: span 1; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .post-grid { grid-template-columns: 1fr; }
  .hero-actions { justify-content: center; }
  .mascot-img { width: 160px; height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
