/* ========================================
   HIRATO Kids Base - Main Stylesheet
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
  --color-green-dark:   #2d6a4f;
  --color-green:        #52b788;
  --color-green-light:  #b7e4c7;
  --color-orange:       #f4a261;
  --color-orange-light: #fde8d5;
  --color-cream:        #fdf8f2;
  --color-white:        #ffffff;
  --color-text:         #333333;
  --color-text-light:   #666666;
  --color-blue:         #457b9d;
  --color-blue-light:   #a8dadc;
  --font-main:          'Noto Sans JP', sans-serif;
  --radius-lg:          16px;
  --radius-md:          10px;
  --shadow-sm:          0 2px 8px rgba(0,0,0,.08);
  --shadow-md:          0 6px 24px rgba(0,0,0,.12);
  --transition:         0.35s ease;
}

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

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

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.75;
}

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

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

ul { list-style: none; }

/* ---------- Utility ---------- */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-green-dark);
  background: var(--color-green-light);
  padding: .25rem .75rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-green-dark);
  margin-bottom: .5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
}

.badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 999px;
  margin-left: .4rem;
  vertical-align: middle;
}
.badge-preparing {
  background: #fff3e0;
  color: #e65100;
}
.badge-open {
  background: var(--color-green-light);
  color: var(--color-green-dark);
}

/* ========================================
   HEADER / NAV
   ======================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 16px rgba(0,0,0,.08);
  padding: .9rem 0;
  transition: var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-text-wrap { line-height: 1.1; }
.logo-en {
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--color-green-dark);
}
.logo-ja {
  font-size: .65rem;
  color: var(--color-text-light);
  letter-spacing: .05em;
}

.site-nav ul {
  display: flex;
  gap: 2rem;
}
.site-nav a {
  font-size: .88rem;
  font-weight: 600;
  color: var(--color-text);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--color-green);
  transition: width var(--transition);
}
.site-nav a:hover { color: var(--color-green-dark); }
.site-nav a:hover::after { width: 100%; }

/* Mobile menu button */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
}
.menu-btn span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========================================
   HERO / SLIDESHOW
   ======================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 520px;
  overflow: hidden;
  margin-top: 64px; /* header height */
}

.slideshow {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.slide.active { opacity: 1; }

.slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlay gradient */
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.15) 0%,
    rgba(0,0,0,.45) 100%
  );
}

/* Hero text */
.hero-content {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  text-align: center;
  color: var(--color-white);
  z-index: 10;
}
.hero-content .catchcopy {
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.35;
  text-shadow: 0 2px 16px rgba(0,0,0,.4);
  margin-bottom: .6rem;
}
.hero-content .hero-sub {
  font-size: clamp(.9rem, 2vw, 1.15rem);
  font-weight: 400;
  opacity: .92;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}

/* Slideshow indicators */
.slideshow-indicators {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .6rem;
  z-index: 10;
}
.indicator {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.indicator.active {
  background: var(--color-white);
  transform: scale(1.25);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
  padding: 5rem 0;
  background: var(--color-white);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text .tagline {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: var(--color-green-dark);
  line-height: 1.45;
  margin-bottom: 1.2rem;
}
.about-text p {
  font-size: .95rem;
  color: var(--color-text-light);
  margin-bottom: .9rem;
}
.about-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}
.about-img-grid img {
  border-radius: var(--radius-md);
  height: 180px;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}
.about-img-grid img:hover { transform: scale(1.03); }
.about-img-grid .span2 {
  grid-column: span 2;
  height: 200px;
}

/* ========================================
   SERVICES OVERVIEW (4つの取り組み)
   ======================================== */
.initiatives-section {
  padding: 5rem 0;
  background: var(--color-cream);
}
.initiatives-section .section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.initiatives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.initiative-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-green);
  transition: transform var(--transition), box-shadow var(--transition);
}
.initiative-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.initiative-card .num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-green-light);
  line-height: 1;
  margin-bottom: .5rem;
}
.initiative-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-green-dark);
  margin-bottom: .4rem;
}
.initiative-card .sub {
  font-size: .82rem;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: .6rem;
}
.initiative-card p {
  font-size: .85rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ========================================
   SERVICE SECTIONS — SHARED
   ======================================== */
.service-section {
  padding: 5.5rem 0;
}
.service-section:nth-of-type(even) {
  background: var(--color-white);
}
.service-section:nth-of-type(odd) {
  background: var(--color-cream);
}

.service-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.service-inner.reverse { direction: rtl; }
.service-inner.reverse > * { direction: ltr; }

/* Image side */
.service-img-wrap {
  position: relative;
}
.service-img-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.service-img-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px; height: 120px;
  border-radius: 50%;
  opacity: .18;
  z-index: -1;
}
.accent-green { background: var(--color-green); }
.accent-orange { background: var(--color-orange); }
.accent-blue   { background: var(--color-blue); }

/* Text side */
.service-body .number-tag {
  font-size: 4rem;
  font-weight: 900;
  color: var(--color-green-light);
  line-height: 1;
  margin-bottom: .3rem;
}
.service-body .service-name {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: var(--color-green-dark);
  margin-bottom: .3rem;
}
.service-body .service-type {
  font-size: .82rem;
  font-weight: 600;
  color: var(--color-text-light);
  letter-spacing: .05em;
  margin-bottom: 1rem;
}
.service-body .service-desc {
  font-size: .95rem;
  color: var(--color-text);
  line-height: 1.85;
  margin-bottom: 1.4rem;
}
.service-body .feature-list {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.service-body .feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .88rem;
  color: var(--color-text-light);
}
.service-body .feature-list li::before {
  content: '✓';
  color: var(--color-green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .05rem;
}

/* Tags strip */
.tags-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1.2rem;
}
.tag {
  display: inline-block;
  font-size: .76rem;
  font-weight: 700;
  padding: .22rem .7rem;
  border-radius: 999px;
  border: 1.5px solid var(--color-green);
  color: var(--color-green-dark);
  background: transparent;
}

/* ========================================
   SECTION — ASUNOS (保育園)
   ======================================== */
#asunos .service-img-accent { background: var(--color-green); }
#asunos .number-tag { color: #b7e4c7; }

/* ========================================
   SECTION — TATTA (児童発達支援)
   ======================================== */
#tatta { background: var(--color-white); }
#tatta .initiative-card { border-top-color: var(--color-orange); }
#tatta .number-tag { color: #fde8d5; }
#tatta .service-name { color: #c07030; }
#tatta .section-label { background: var(--color-orange-light); color: #9c4a00; }
#tatta .service-body .feature-list li::before { color: var(--color-orange); }

/* ========================================
   SECTION — WITH (子育て支援ルーム)
   ======================================== */
#with { background: var(--color-cream); }
#with .number-tag { color: var(--color-blue-light); }
#with .service-name { color: var(--color-blue); }
#with .section-label { background: #dff3f7; color: #1d4e6b; }
#with .service-body .feature-list li::before { color: var(--color-blue); }
#with .tag { border-color: var(--color-blue); color: var(--color-blue); }

/* ========================================
   LOCATION / ACCESS SECTION
   ======================================== */
.access-section {
  padding: 5rem 0;
  background: var(--color-green-dark);
  color: var(--color-white);
}
.access-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.access-text .section-label {
  background: rgba(255,255,255,.18);
  color: var(--color-white);
}
.access-text .section-title { color: var(--color-white); }
.access-text .section-subtitle { color: rgba(255,255,255,.75); }
.access-text p {
  font-size: .92rem;
  color: rgba(255,255,255,.85);
  line-height: 1.85;
  margin-bottom: 1.4rem;
}
.access-info { display: flex; flex-direction: column; gap: 1rem; }
.access-info li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: .9rem;
  color: rgba(255,255,255,.9);
}
.access-info li .icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.access-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
/* iframeは現在未使用（地図画像に変更済み） */

/* ========================================
   CONTACT BUTTON
   ======================================== */
.contact-btn {
  display: inline-block;
  background: var(--color-green);
  color: var(--color-white) !important;
  font-weight: 700;
  font-size: .95rem;
  padding: .7rem 1.8rem;
  border-radius: 999px;
  letter-spacing: .06em;
  box-shadow: 0 4px 16px rgba(82,183,136,.35);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.contact-btn:hover {
  background: var(--color-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45,106,79,.4);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-logo .logo-en { color: var(--color-green); font-size: 1.1rem; }
.footer-logo .logo-ja { color: rgba(255,255,255,.5); font-size: .7rem; }
.footer-logo p {
  font-size: .82rem;
  margin-top: .8rem;
  line-height: 1.7;
  color: rgba(255,255,255,.55);
}
.footer-col h4 {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--color-white);
  margin-bottom: .8rem;
  text-transform: uppercase;
}
.footer-col ul { display: flex; flex-direction: column; gap: .4rem; }
.footer-col ul li a {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--color-green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.4rem;
  text-align: center;
  font-size: .76rem;
  color: rgba(255,255,255,.35);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  .about-inner,
  .service-inner,
  .access-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .service-inner.reverse { direction: ltr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .site-nav { display: none; }
  .site-nav.open {
    display: block;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--color-white);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-md);
  }
  .site-nav.open ul {
    flex-direction: column;
    gap: 1.2rem;
  }
  .menu-btn { display: flex; }
}

@media (max-width: 600px) {
  .initiatives-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .about-img-grid { grid-template-columns: 1fr; }
  .about-img-grid .span2 { grid-column: span 1; }
  .hero-content .catchcopy { font-size: 1.4rem; }
}
