:root {
  /* メインの水色 */
  --primary-color: #0091ff;
  --primary-gradient: linear-gradient(135deg, #58aff1 0%, #0052cc 100%);
  
  /* 背景のグラデーション */
  --bg-gradient: linear-gradient(180deg, #4389f3 0%, #8fd9f9 50%, #3298cc 100%);

  --text-main: #0f172a;
  --text-sub: #1e293b;
  --text-muted: #334155;
  
  --surface-glass: rgba(255, 255, 255, 0.88);
  --surface-border: rgba(255, 255, 255, 0.6);
  
  --header-height: 90px;
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --font-sans: 'Plus Jakarta Sans', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  --font-serif: 'Shippori Mincho', 'BIZ UDPMincho', serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Hiragino Kaku Gothic ProN";
}

body {
  font-family: var(--font-sans);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- 画像歪み・崩れ防止設定 --- */
img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}
.openday{
  text-shadow: 2px 2px #0077e6,0 0 10px  #0077e6;
  size: 1rem;
  color:#ffffff
}
.kaisai{
  padding: 90px 20px 20px 20px;
  text-shadow: 0 0 20px#2cdb7e;
  color: #ffffff;
  font-size: 1.8rem;
  font-family: "Hiragino Kaku Gothic ProN";
}
.home-img{
  max-width: 70%;
}

#banpeki{
  font-size: 3rem;;
  text-align: center;
}
a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}
.updateCountdown{
  text-shadow: #004fb3;
}
.timer{
  width: 80vw;
  max-width: 1200px;
  font-family: "Hiragino Kaku Gothic ProN", sans-serif; 
  font-size: 1.5rem;
  color: #000000;
  border-radius: 10px;
  text-align: center;
  letter-spacing: 7px; 
  text-shadow: 0 0 10px #fff, 0 0 20px #ff0;
}
.timer-A {
  width: 80vw;
  max-width: 1200px;
  font-family: "Hiragino Kaku Gothic ProN", sans-serif; 
  font-size: 1.5rem;
  color: #000000;
  border-radius: 10px;
  text-align: left;
  letter-spacing: 7px; 
  text-shadow: 0 0 10px #fff, 0 0 20px #ff0;
}
.flex-container{
    display: flex;
    justify-content: space-around;
}
.flex-item{
    color:#fff;
    padding: 0px 40px;
}

.SNS-icon{
  max-height: 300px;
  
}
/* --- ヘッダー：背景と同系統の水色グラデーション＋ガラス感を適用 --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  /* 背景と同色の水色グラデーションを少し透過させて適用 */
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.85) 0%, rgba(56, 189, 248, 0.85) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Shippori Mincho', 'BIZ UDPMincho', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #0f172a;
}

.header-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.sticky-kikaku-bar {
  position: fixed;
  top: calc(var(--header-height) + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--surface-border);
  padding: 6px 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.25);
  max-width: calc(100% - 40px);
}

.sticky-kikaku-bar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.sticky-kikaku-bar img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.sticky-kikaku-bar span {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-trigger {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.menu-trigger .icon-close {
  display: none;
}

.menu-trigger.is-active .icon-menu {
  display: none;
}

.menu-trigger.is-active .icon-close {
  display: inline-block;
}

.nav-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
}

.nav-drawer.is-active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-link {
  font-size: 1.2rem;
  padding: 12px 0;
  border-bottom: 1px solid rgba(2, 132, 199, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-container {
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--header-height) + 24px) 20px 60px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: #0f172a;
  font-weight: 500;
  margin-bottom: 24px;
}

.project-hero {
  text-align: center;
  margin-bottom: 36px;
}

.project-icon-wrapper {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(2, 132, 199, 0.25);
  border: 2px solid var(--surface-border);
}

.project-icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 8px;
  line-height: 1.3;
  color: #0f172a;
}

.project-group {
  font-size: 1.1rem;
  color: #1e293b;
  font-weight: 500;
  margin-bottom: 20px;
}

.project-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.meta-badge span.material-symbols-outlined {
  font-size: 18px;
  color: #0077e6;
}

.tag-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  color: #004fb3;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.card {
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.15);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(2, 132, 199, 0.2);
  padding-bottom: 8px;
}

.description-text {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.8;
  color: #1e293b;
}

.gallery-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.gallery-item {
  flex: 0 0 200px;
  height: 260px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  border: 1px solid var(--surface-border);
}

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

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

.map-container {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--surface-border);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.sns-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}

.sns-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.sns-btn i {
  font-size: 1.1rem;
  color: #0077e6;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 2000;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  object-fit: contain;
}

.footer {
  border-top: 1px solid var(--surface-border);
  padding: 40px 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #0f172a;
  font-weight: 500;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.page-header {
  text-align: center;
  margin-bottom: 28px;
}

.page-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 8px;
  color: #0f172a;
}

.page-subtitle {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 500;
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.search-box {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.search-box .search-icon-left {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box .search-icon-right {
  position: absolute;
  right: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 12px 76px 12px 48px;
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  border-radius: 50px;
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box input:focus {
  border-color: #0091ff;
  box-shadow: 0 0 16px rgba(0, 145, 255, 0.45);
}

.search-clear-btn {
  position: absolute;
  right: 44px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.search-clear-btn.is-visible {
  display: flex;
}

.search-clear-btn:hover {
  color: var(--text-main);
}

.search-clear-btn span {
  font-size: 18px;
}

.category-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.filter-btn {
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  color: #0f172a;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 82, 204, 0.4);
}

.result-count {
  font-size: 0.9rem;
  color: #0f172a;
  font-weight: 600;
  margin-bottom: 16px;
  padding-left: 4px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.project-card {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
  color: inherit;
  text-align: center;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
  opacity: 0.92;
}

.card-header-flex {
  display: contents;
}

.card-icon {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--surface-border);
  flex-shrink: 0;
  background-color: rgba(255, 255, 255, 0.3);
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.25);
}

.card-title-group {
  width: 100%;
  overflow: hidden;
}

.card-project-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  color: #0f172a;
}

.card-project-group {
  font-size: 0.85rem;
  color: #1e293b;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.card-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #0f172a;
}

.card-meta-badge .material-symbols-outlined {
  font-size: 14px;
  color: #0077e6;
}

.card-description {
  font-size: 0.85rem;
  color: #1e293b;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
  flex-grow: 1;
}

.card-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.no-data {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  background: var(--surface-glass);
  border-radius: var(--radius-md);
  color: var(--text-sub);
  border: 1px solid var(--surface-border);
}