/* ============================================
   こども支援サービス にゃー - Style Sheet
   ============================================ */

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

:root {
  /* Brand Colors */
  --brand-nyaa: #E88BA7;       /* ピンク（にゃー） */
  --brand-kiton: #7ECEC0;      /* ミント（きとん） */
  --brand-tabii: #F5DFA0;      /* クリーム（たびい） */

  /* Background */
  --bg-base: #FFFDF9;
  --bg-section: #FFF7EE;
  --bg-card: #FFFFFF;

  /* Text */
  --text-heading: #3C2E1F;
  --text-body: #5A4A3A;
  --text-light: #8A7A6A;

  /* UI */
  --ui-border: #E8DFD4;
  --ui-border-light: #F0EBE4;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Shadow */
  --shadow-card: 0 2px 12px rgba(60, 46, 31, 0.06);
  --shadow-nav: 0 2px 8px rgba(60, 46, 31, 0.08);

  /* Font */
  --font-main: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-main);
  background: var(--bg-base);
  color: var(--text-body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--brand-nyaa);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn-primary:hover {
  background: #D47A96;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--bg-card);
  color: var(--text-heading);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 2px solid var(--ui-border);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: var(--brand-nyaa);
  background: #FFF5F8;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand-nyaa);
  font-weight: 700;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}
.btn-ghost:hover {
  opacity: 0.7;
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.05rem;
}

/* ============================================
   GlobalNav
   ============================================ */
.global-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.3s;
}
.global-nav.scrolled {
  box-shadow: var(--shadow-nav);
}

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 72px;
}

.nav-logo-img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links > a,
.nav-dropdown-trigger {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-heading);
  transition: color 0.2s;
  position: relative;
}
.nav-links > a:hover,
.nav-dropdown-trigger:hover {
  color: var(--brand-nyaa);
}
.nav-links > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-nyaa);
  transition: width 0.25s;
}
.nav-links > a:hover::after {
  width: 100%;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.dropdown-arrow {
  transition: transform 0.2s;
}
.nav-dropdown.is-open .dropdown-arrow {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--ui-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 8px 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s;
}
.nav-dropdown-menu a:hover {
  background: var(--bg-section);
}

.menu-store-logo {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

.coming-soon-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--brand-tabii);
  color: var(--text-heading);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 4px;
}

/* Nav CTA */
.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--brand-nyaa);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: background 0.2s;
}
.nav-cta-btn:hover {
  background: #D47A96;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.is-open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-base);
  z-index: 999;
  padding: 32px 24px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.mobile-menu.is-open {
  transform: translateX(0);
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu-nav > a,
.mobile-menu-label {
  display: block;
  padding: 16px 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-heading);
  border-bottom: 1px solid var(--ui-border-light);
}
.mobile-menu-label {
  color: var(--text-light);
  font-size: 0.85rem;
  padding-bottom: 8px;
  border-bottom: none;
}
.mobile-menu-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-heading);
  border-bottom: 1px solid var(--ui-border-light);
}
.mobile-menu-group {
  padding-top: 16px;
}
.mobile-menu-cta {
  display: block;
  margin-top: 24px;
  padding: 16px;
  background: var(--brand-nyaa);
  color: #fff !important;
  font-weight: 700;
  text-align: center;
  border-radius: var(--radius-full);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  margin-top: 72px;
  height: 696px;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-section);
}
.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
}
.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}
.hero-dot.active {
  background: #fff;
}

.hero-concept {
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 60px 48px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 1;
}
.hero-logo {
  width: 140px;
  height: auto;
  position: relative;
  z-index: 2;
  margin-bottom: -55px;
}
.hero-concept-text {
  font-size: 1.1rem;
  line-height: 2;
  text-align: center;
  color: var(--text-body);
  font-weight: 700;
  background: rgba(255, 253, 249, 0.82);
  padding: 68px 28px 24px;
  border-radius: 16px;
}

/* ============================================
   Section Common
   ============================================ */
.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 40px;
}

.section-header {
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
}
.section-header-line {
  display: block;
  width: 40px;
  height: 4px;
  background: var(--brand-nyaa);
  border-radius: 2px;
}

/* ============================================
   News
   ============================================ */
.section-news {
  background: var(--bg-section);
}

.news-scroll-box {
  background: var(--bg-card);
  border: 1px solid var(--ui-border);
  border-radius: var(--radius-md);
  max-height: 400px;
  overflow-y: auto;
  box-shadow: var(--shadow-card);
}
.news-scroll-box::-webkit-scrollbar {
  width: 6px;
}
.news-scroll-box::-webkit-scrollbar-track {
  background: transparent;
}
.news-scroll-box::-webkit-scrollbar-thumb {
  background: var(--ui-border);
  border-radius: 3px;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--ui-border-light);
  transition: background 0.15s;
}
.news-item:last-child {
  border-bottom: none;
}
.news-item:hover {
  background: var(--bg-section);
}

.news-date {
  font-size: 0.85rem;
  color: var(--text-light);
  white-space: nowrap;
  min-width: 90px;
}

.news-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.tag-nyaa {
  background: var(--brand-nyaa);
  color: #fff;
}
.tag-kiton {
  background: var(--brand-kiton);
  color: #fff;
}
.tag-tabii {
  background: var(--brand-tabii);
  color: var(--text-heading);
}

.news-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-heading);
}

.news-more {
  margin-top: 20px;
  text-align: right;
}

/* ============================================
   Stores
   ============================================ */
.store-cards {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
}

.store-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--ui-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(60, 46, 31, 0.1);
}

.store-card-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  padding: 24px;
}
.kiton-bg {
  background: linear-gradient(135deg, #e6f7f4 0%, #d0ede8 100%);
}
.tabii-bg {
  background: linear-gradient(135deg, #fdf5e0 0%, #f8ecd0 100%);
}
.store-card-logo {
  max-height: 100px;
  width: auto;
}
.store-coming-soon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--brand-tabii);
  color: var(--text-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.store-card-body {
  padding: 24px;
}
.store-card-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
}
.store-card-sub {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light);
  margin-left: 8px;
}
.store-card-address {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 4px;
}
.store-card-tel {
  font-size: 0.88rem;
  color: var(--text-body);
  margin-bottom: 16px;
}
.store-card-info {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

/* Map */
.map-area {
  height: 600px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--ui-border);
}
.map-area iframe {
  display: block;
}
.map-placeholder {
  background: var(--bg-section);
}
.map-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 300px;
  color: var(--text-light);
}
.map-placeholder-inner p {
  font-size: 0.9rem;
}
.map-placeholder-sub {
  font-size: 0.8rem !important;
  color: var(--text-light);
}

/* ============================================
   Service Nav
   ============================================ */
.section-service-nav {
  padding: 48px 40px;
  background: var(--bg-base);
}
.section-inner-row {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ============================================
   CTA
   ============================================ */
.section-cta {
  background: linear-gradient(135deg, #FFF0F4 0%, #FFF5EE 100%);
  padding: 72px 40px;
}
.cta-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.cta-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 32px;
}
.cta-tel {
  margin-bottom: 32px;
}
.cta-tel-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
}
.cta-tel-number {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
}
.tel-icon {
  color: var(--brand-nyaa);
}
.cta-tel-hours {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--text-heading);
  color: #ddd;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 40px 32px;
}

.footer-top {
  display: flex;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand {
  flex: 1;
}
.footer-logo {
  height: 56px;
  width: auto;
  margin-bottom: 12px;
  border-radius: 50%;
  opacity: 0.85;
}
.footer-concept {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
}

.footer-nav {
  display: flex;
  gap: 40px;
}
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.footer-nav-col a:hover {
  color: #fff;
}

.footer-contact {
  text-align: right;
}
.footer-contact-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.footer-contact-tel {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.footer-contact-address {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

.footer-stores {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-store-logo {
  height: 40px;
  width: auto;
  border-radius: 50%;
  opacity: 0.75;
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
}
.footer-corp {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================
   Responsive — Tablet (≤1024px)
   ============================================ */
@media (max-width: 1024px) {
  .nav-inner {
    padding: 0 24px;
  }
  .nav-links {
    gap: 20px;
  }
  .nav-links > a,
  .nav-dropdown-trigger {
    font-size: 0.82rem;
  }
  .hero {
    height: 600px;
  }
  .hero-concept {
    width: 50%;
    padding: 40px 32px;
  }
  .section-inner {
    padding: 56px 24px;
  }
  .footer-top {
    flex-direction: column;
    gap: 32px;
  }
  .footer-contact {
    text-align: left;
  }
}

/* ============================================
   Responsive — SP (≤768px)
   ============================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-cta-btn {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  .hero {
    margin-top: 72px;
    height: 480px;
  }
  .hero-concept {
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    bottom: auto;
    padding: 0 28px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    justify-content: flex-end;
    padding-bottom: 90px;
    gap: 12px;
  }
  .hero-concept-text {
    font-size: 1.15rem;
    line-height: 1.9;
  }

  .section-inner {
    padding: 48px 20px;
  }
  .section-header h2 {
    font-size: 1.3rem;
  }

  /* News */
  .news-item {
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px;
  }
  .news-date {
    min-width: auto;
  }
  .news-title {
    flex-basis: 100%;
    font-size: 0.9rem;
  }

  /* Stores */
  .store-cards {
    flex-direction: column;
  }

  /* Service Nav */
  .section-service-nav {
    padding: 32px 20px;
  }
  .section-inner-row {
    flex-direction: column;
    align-items: center;
  }
  .btn-large {
    width: 100%;
    max-width: 320px;
  }

  /* CTA */
  .section-cta {
    padding: 48px 20px;
  }
  .cta-heading {
    font-size: 1.25rem;
  }
  .cta-tel-number {
    font-size: 1.5rem;
  }

  /* Footer */
  .footer-inner {
    padding: 40px 20px 24px;
  }
  .footer-top {
    flex-direction: column;
    gap: 28px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 24px;
  }
}

/* ============================================
   Responsive — Small SP (≤390px)
   ============================================ */
@media (max-width: 390px) {
  .hero-concept {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-concept-text {
    font-size: 1rem;
  }
  .cta-tel-number {
    font-size: 1.3rem;
  }
}
