/* ============================
   にじいろ保育園 ライトプラン
   （古いデザイン）
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #e8734a;
  --primary-light: #f5a97e;
  --secondary: #5aac8c;
  --accent: #f5c842;
  --text: #333333;
  --text-light: #666666;
  --bg-gray: #f5f5f0;
  --border: #dddddd;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', 'メイリオ', Meiryo, sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
  background: var(--white);
}

/* ============================
   ヘッダー
   ============================ */
#header {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 36px;
}

.logo-text h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.logo-text p {
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: 0.1em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

nav ul li a {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  border-right: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
}

nav ul li:first-child a {
  border-left: 1px solid var(--border);
}

nav ul li a:hover {
  background: var(--bg-gray);
  color: var(--primary);
}

nav ul li a.nav-contact {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  font-weight: 700;
}

nav ul li a.nav-contact:hover {
  background: #d05e35;
  color: var(--white);
}

/* ============================
   スライドショー
   ============================ */
#slideshow {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: #ddd;
}

.slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  display: flex;
  align-items: center;
  z-index: 2;
}

.slide-copy {
  padding: 0 60px;
  color: var(--white);
}

.slide-sub {
  font-size: 14px;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.slide-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  margin-bottom: 24px;
}

.slide-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 2px;
  transition: background 0.2s;
}

.slide-btn:hover {
  background: #d05e35;
}

.slide-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s;
  border: 2px solid rgba(255,255,255,0.7);
}

.dot.active {
  background: var(--white);
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.25);
  border: 2px solid rgba(255,255,255,0.6);
  color: var(--white);
  font-size: 20px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.slide-arrow:hover {
  background: rgba(255,255,255,0.45);
}

.slide-arrow.prev { left: 14px; }
.slide-arrow.next { right: 14px; }

/* ============================
   お知らせバー
   ============================ */
#news-bar {
  background: var(--bg-gray);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.news-label {
  background: var(--secondary);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 16px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.1em;
}

.news-ticker {
  overflow: hidden;
  flex: 1;
  padding: 0 16px;
}

.news-ticker span {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  font-size: 13px;
  color: var(--text);
}

@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ============================
   セクション共通
   ============================ */
.section-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.section-title span {
  color: var(--primary);
}

.title-line {
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin: 0 auto;
  border-radius: 2px;
}

/* ============================
   特徴
   ============================ */
#features {
  background: var(--bg-gray);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  padding: 28px 22px;
  text-align: center;
  border-radius: 2px;
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dotted var(--border);
}

.feature-card p {
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ============================
   ギャラリー
   ============================ */
#gallery {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.gallery-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 2px;
  aspect-ratio: 16/10;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ============================
   基本情報
   ============================ */
#info {
  background: var(--bg-gray);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.info-table th,
.info-table td {
  padding: 14px 18px;
  border: 1px solid var(--border);
  text-align: left;
}

.info-table th {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  width: 160px;
  white-space: nowrap;
}

.info-table tr:nth-child(even) td {
  background: #fafaf7;
}

.info-table tr:nth-child(odd) td {
  background: var(--white);
}

/* ============================
   お問い合わせ
   ============================ */
#contact {
  background: var(--white);
}

.contact-box {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-top: 4px solid var(--secondary);
  padding: 36px;
  text-align: center;
  border-radius: 2px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-box p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 20px;
}

.contact-tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.tel-label {
  background: var(--secondary);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  letter-spacing: 0.1em;
  border-radius: 2px;
}

.tel-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 0.08em;
}

.contact-hours {
  font-size: 12px;
  color: var(--text-light);
}

/* ============================
   フッター
   ============================ */
footer {
  background: #444444;
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 30px 20px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-address {
  font-size: 12px;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.6);
}

.copyright {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 12px;
}

/* ============================
   レスポンシブ
   ============================ */
@media (max-width: 768px) {
  #slideshow { height: 280px; }
  .slide-title { font-size: 24px; }
  .slide-copy { padding: 0 30px; }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  nav ul {
    gap: 0;
  }

  nav ul li a {
    padding: 6px 10px;
    font-size: 12px;
  }

  .info-table th {
    width: 100px;
  }
}
