/* 
  堤コミュニティセンター
  テーマ：温かみ・親しみ・オーガニック
*/

:root {
  --color-bg: #fcfaf5; /* 優しいクリーム色 */
  --color-bg-soft: #fffdf9; /* さらに明るい背景 */
  --color-text: #4a3f35; /* 真っ黒ではなくダークブラウンで柔らかく */
  --color-accent: #e07a21; /* 暖かみのあるオレンジ・テラコッタ */
  --color-accent-light: #fbe6d4;
  --color-secondary: #5ba3a3; /* 落ち着いたグリーン/ブルー */
  --font-base: 'Noto Sans JP', sans-serif;
  --font-title: 'Kiwi Maru', serif; /* 丸みのある優しい明朝・ポップ体 */
  --organic-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; /* オーガニックシェイプ */
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

/* 共通コンテナ */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 100px 0;
  position: relative;
}

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}

.section-header .subtitle {
  font-size: 0.9rem;
  color: #a09388;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ヘッダー */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(252, 250, 245, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(74, 63, 53, 0.05);
  transition: padding 0.3s ease;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 5%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-accent);
}

.logo-char {
  width: 40px;
  height: auto;
}

.pc-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.pc-nav a {
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.pc-nav a:hover {
  color: var(--color-accent);
}

/* スマホメニューボタン */
.sp-menu-btn {
  display: none;
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
}
.sp-menu-btn span {
  display: block;
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 3px;
  transition: all 0.3s;
}
.sp-menu-btn span:nth-child(1) { top: 0; }
.sp-menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.sp-menu-btn span:nth-child(3) { bottom: 0; }

.sp-menu-btn.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.sp-menu-btn.open span:nth-child(2) { opacity: 0; }
.sp-menu-btn.open span:nth-child(3) { top: 50%; transform: translateY(-50%) rotate(-45deg); }

/* モバイル用ナビゲーション */
.sp-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(252, 250, 245, 0.98);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: right 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 999;
}
.sp-nav.open { right: 0; }
.sp-nav ul { list-style: none; text-align: center; }
.sp-nav li { margin-bottom: 25px; }
.sp-nav a { font-size: 1.4rem; font-family: var(--font-title); color: var(--color-accent); font-weight: bold; }

/* ボタン共通 */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 4px 15px rgba(224, 122, 33, 0.2);
}

.btn-primary {
  background-color: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background-color: #c96a1a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 122, 33, 0.3);
}

.btn-secondary {
  background-color: #fff;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  box-shadow: none;
}
.btn-secondary:hover {
  background-color: var(--color-accent);
  color: #fff;
}

.center-btn {
  text-align: center;
  margin-top: 40px;
}

/* ヒーローセクション */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* 写真がない場合の一時的なグラデーション背景 */
  background-color: var(--color-accent-light);
  background-image: linear-gradient(135deg, #fbe6d4 0%, #e0f2f1 100%);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255, 0.4);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 20px;
}

.hero-copy {
  font-family: var(--font-title);
  font-size: 3.5rem;
  line-height: 1.4;
  color: var(--color-text);
  text-shadow: 0 2px 10px rgba(255,255,255,0.8);
  margin-bottom: 20px;
}

.copy-small {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 10px;
  color: var(--color-accent);
}

.hero-char {
  width: 150px;
  margin-top: 20px;
}

.bounce {
  animation: bounce 3s infinite ease-in-out;
}

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

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--color-text);
  font-weight: 700;
}
.scroll-down::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background-color: var(--color-text);
  margin: 5px auto 0;
  animation: scrollDown 2s infinite;
}
@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* お知らせ */
.news-list {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(74, 63, 53, 0.05);
}

.news-item {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px dashed #e8dfd8;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-weight: 700;
  color: #a09388;
  margin-right: 20px;
  font-family: sans-serif;
}

.news-tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-right: 20px;
  min-width: 80px;
  text-align: center;
}
.news-tag.new { background: var(--color-accent-light); color: var(--color-accent); }
.news-tag.event { background: #e0f2f1; color: var(--color-secondary); }
.news-tag.info { background: #f0f0f0; color: #666; }

.news-title {
  flex: 1;
  font-weight: 700;
}
.news-title a {
  transition: color 0.3s;
}
.news-title a:hover {
  color: var(--color-accent);
}

/* 施設利用状況 (スケジュール) */
.schedule-desc {
  text-align: center;
  margin-bottom: 40px;
}

#schedule-container {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  min-height: 200px;
  box-shadow: 0 10px 30px rgba(74, 63, 53, 0.05);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* スケジュールテーブル (PC) */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.schedule-table th {
  background: #e07a21;
  color: #fff;
  text-align: left;
  padding: 15px;
  white-space: nowrap;
}
.schedule-table th:first-child { border-radius: 10px 0 0 10px; }
.schedule-table th:last-child { border-radius: 0 10px 10px 0; }
.schedule-table td {
  padding: 15px;
  border-bottom: 1px solid #e8dfd8;
}
.schedule-table .room-col {
  font-weight: bold;
  color: #5ba3a3;
  white-space: nowrap;
}
.schedule-table .time-col {
  white-space: nowrap;
}
.schedule-table .title-col {
  font-weight: bold;
}
.schedule-table tr.cancelled td {
  text-decoration: line-through;
  color: #999;
}

.loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-weight: 700;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--color-accent-light);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 施設案内 */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.facility-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(74, 63, 53, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(74, 63, 53, 0.1);
}

.facility-img {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-color: #eee;
  margin-bottom: 20px;
  border-radius: 16px;
  transition: opacity 0.3s ease;
}

.facility-card:hover .facility-img {
  opacity: 0.9;
}

.facility-info h3 {
  font-family: var(--font-title);
  color: var(--color-accent);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.capacity {
  display: inline-block;
  background: var(--color-bg);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #888;
  margin-bottom: 15px;
}

.facility-info .desc {
  font-size: 0.95rem;
  text-align: left;
}

/* ご利用案内 */
.guide-content {
  display: flex;
  gap: 30px;
}

.guide-box {
  flex: 1;
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(74, 63, 53, 0.05);
  position: relative;
}

.guide-box h3 {
  font-family: var(--font-title);
  color: var(--color-text);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.guide-box.highlight {
  background: var(--color-accent-light);
  border: 2px solid var(--color-accent);
}

.guide-box.highlight h3 {
  color: var(--color-accent);
}

/* 開館時間リスト */
.hours-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 15px;
  margin-top: 8px;
}
.hours-list dt {
  font-weight: 700;
  color: var(--color-secondary);
  white-space: nowrap;
}
.hours-list dd {
  font-weight: 700;
  font-size: 1.05rem;
  font-family: sans-serif;
  letter-spacing: 0.05em;
}

/* 休館日リスト */
.holiday-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 15px;
  margin-top: 8px;
}
.holiday-list dt {
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
}
.holiday-list dd {
  font-weight: 700;
  font-size: 1.05rem;
  font-family: sans-serif;
  letter-spacing: 0.05em;
}

.highlight-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  background: var(--color-accent);
  color: #fff;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-title);
  transform: rotate(15deg);
  box-shadow: 0 4px 10px rgba(224, 122, 33, 0.3);
}

/* アクセス */
.access-wrap {
  display: flex;
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(74, 63, 53, 0.05);
}

.access-info {
  flex: 1;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.access-name {
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: var(--color-accent);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--color-accent-light);
}

.access-detail-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 25px;
}

.access-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.access-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  margin-top: 2px;
}

.access-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #a09388;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.access-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.access-tel {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  font-family: sans-serif;
  transition: color 0.3s;
}
.access-tel:hover {
  color: #c96a1a;
}

.access-memo {
  font-size: 0.85rem;
  color: #888;
}

.access-map {
  flex: 1;
  min-height: 400px;
}

/* フッター */
.footer {
  background: var(--color-text);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.copyright {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* スクロールアニメーション用クラス */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* レスポンシブ対応 (スマホ) */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .header-inner { padding: 10px 5%; }
  .logo span { font-size: 0.9rem; }
  .pc-nav { display: none; }
  .header-btn { display: none; }
  .sp-menu-btn { display: block; }
  
  .hero-copy { font-size: 1.8rem; }
  .copy-small { font-size: 1.1rem; }
  .hero-char { width: 100px; }
  
  .news-list { padding: 20px; }
  .news-item { flex-direction: column; align-items: flex-start; gap: 10px; }
  .news-date, .news-tag { margin-right: 0; }
  
  #schedule-container { padding: 20px; }
  
  /* スケジュールテーブル (スマホカード型) */
  .schedule-table, .schedule-table tbody, .schedule-table tr, .schedule-table td {
    display: block;
    width: 100%;
  }
  .schedule-table thead {
    display: none;
  }
  .schedule-table tr {
    background: #fff;
    border: 1px solid #e8dfd8;
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(74, 63, 53, 0.05);
  }
  .schedule-table td {
    padding: 8px 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    white-space: normal;
  }
  .schedule-table td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #a09388;
    font-size: 0.85rem;
    min-width: 90px;
    margin-right: 10px;
  }
  .schedule-table .room-col {
    color: #5ba3a3;
    font-size: 1.1rem;
    padding-top: 0;
  }
  .schedule-table .title-col {
    font-size: 1.1rem;
    color: var(--color-accent);
    padding-bottom: 0;
    border-top: 1px dashed #e8dfd8;
    margin-top: 5px;
    padding-top: 10px;
  }
  
  .facility-grid { grid-template-columns: 1fr; gap: 20px; }
  .guide-content { flex-direction: column; gap: 20px; }
  .guide-box { padding: 30px 20px; }
  .highlight-badge { width: 50px; height: 50px; font-size: 0.7rem; right: -5px; top: -5px; }
  
  .access-wrap { flex-direction: column; }
  .access-info { padding: 30px 20px; }
  .access-name { font-size: 1.3rem; margin-bottom: 20px; padding-bottom: 12px; }
  .access-tel { font-size: 1.4rem; }
  .access-map { min-height: 300px; }
  .tel-num { font-size: 1.8rem; }
}
