/*
Theme Name: Nagusa Kindergarten
Theme URI: https://nagusa-youchien.com/
Author: Webleaf
Author URI: https://nagusa-youchien.com/
Description: Official WordPress theme for Nagusa Kindergarten.
Version: 1.5.2
Text Domain: nagusa
*/

:root {
  --primary-color: #4DB6AC;
  --primary-gradient: linear-gradient(135deg, #4DB6AC 0%, #26A69A 100%);
  --secondary-color: #FFC045;
  --secondary-gradient: linear-gradient(135deg, #FFC045 0%, #FFAA00 100%);
  --text-color: #4a4a4a;
  --light-bg: #f8fdfc;
  --mint-bg: #e0f2f1;
  --blue-bg: #f0f8ff;
  --white: #ffffff;
  --font-family: 'M PLUS Rounded 1c', 'Kosugi Maru', sans-serif;
  --border-radius: 20px;
  --box-shadow: 0 10px 30px rgba(77, 182, 172, 0.1);
  --box-shadow-hover: 0 15px 40px rgba(77, 182, 172, 0.15);
}

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

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

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-family);
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.4;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
}

h1 {
  font-size: 2.2rem;
  color: var(--primary-color);
}

h2 {
  font-size: 1.8rem;
  border-bottom: 2px solid var(--mint-bg);
  padding-bottom: 8px;
}

h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  border-left: 5px solid var(--secondary-color);
  padding-left: 15px;
}

h4 {
  font-size: 1.2rem;
}

h5 {
  font-size: 1.1rem;
}

p {
  margin-top: 0;
  margin-bottom: 1.5em;
  word-break: break-word;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Helpers */
.text-center {
  text-align: center;
}

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

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

/* Waves */
.wave-top,
.wave-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-top {
  top: 0;
  transform: translateY(-99%);
}

.wave-bottom {
  bottom: 0;
  transform: translateY(99%);
}

.wave-top svg,
.wave-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.wave-mint .shape-fill {
  fill: var(--mint-bg);
}

.wave-blue .shape-fill {
  fill: var(--blue-bg);
}

.hero .wave-bottom .shape-fill {
  fill: var(--light-bg);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  border: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(77, 182, 172, 0.4);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(38, 166, 154, 0.6);
  color: var(--white);
}

.btn-secondary {
  background: var(--secondary-gradient);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 192, 69, 0.4);
}

.btn-secondary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(255, 170, 0, 0.6);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: #fff;
}

.btn-sm {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

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

.logo img {
  height: 50px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li a {
  font-weight: 700;
  transition: color 0.3s;
}

.nav-list li a:not(.btn-admission):hover {
  color: var(--primary-color);
}

.btn-admission {
  background-color: var(--primary-color);
  color: white !important;
  padding: 8px 20px;
  border-radius: 30px;
  transition: opacity 0.3s;
}

.btn-admission:hover {
  opacity: 0.8;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-color);
  position: absolute;
  left: 0;
  border-radius: 3px;
  transition: 0.3s;
}

.nav-toggle span:nth-child(1) {
  top: 0;
}

.nav-toggle span:nth-child(2) {
  top: 10px;
}

.nav-toggle span:nth-child(3) {
  top: 20px;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 70px;
}

.hero-image-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-image-slider img.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 60px 40px;
  border-radius: 30px;
  box-shadow: var(--box-shadow);
  backdrop-filter: blur(5px);
  animation: fadeIn 1s ease 0.5s both;
}

.hero-logo-img {
  width: 320px;
  max-width: 90%;
  height: auto;
  margin-bottom: 25px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--primary-color);
  line-height: 1.4;
  margin-bottom: 10px;
  margin-top: 0;
}

.hero p {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* Base Sections */
.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 50px;
}

.section-title span {
  display: block;
  font-size: 1rem;
  color: var(--secondary-color);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

/* About */
.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
  background: var(--white);
  padding: 50px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.about-image-wrapper {
  flex: 0 0 300px;
  text-align: center;
}

.about-image {
  width: 100%;
  border-radius: 50%;
  border: 10px solid var(--mint-bg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.feature-list {
  margin-top: 30px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-weight: 700;
  font-size: 1.1rem;
}

.feature-list img.icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* Policy */
.policy-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.policy-box {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.box-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 2px dashed var(--mint-bg);
  padding-bottom: 15px;
}

.policy-lead {
  text-align: center;
  font-weight: 700;
  margin-bottom: 20px;
}

.check-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  margin: 0 auto;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-weight: 700;
}

.check-list li::before {
  content: '★';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.goal-item {
  text-align: center;
  padding: 20px;
  background: var(--light-bg);
  border-radius: 15px;
  transition: transform 0.3s;
}

.goal-item:hover {
  transform: translateY(-5px);
}

.goal-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
}

.goal-item p {
  font-weight: 700;
  line-height: 1.4;
}

.policy-footer {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-top: 60px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.policy-footer p {
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 2;
}

.policy-footer p:last-child {
  margin-bottom: 0;
}

.education-philosophy {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px dashed var(--mint-bg);
  position: relative;
}

.philosophy-label {
  color: #00796B;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 0.1em;
}

.philosophy-main {
  color: #00796B;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
}

.philosophy-sub {
  color: #00796B;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .philosophy-label {
    font-size: 1.2rem;
  }

  .philosophy-main {
    font-size: 1.8rem;
  }

  .philosophy-sub {
    font-size: 1rem;
  }
}

.extra-classes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 15px;
  padding: 15px 20px;
  background: var(--light-bg);
  border-radius: 12px;
  font-size: 0.95rem;
}

.extra-classes span {
  position: relative;
  padding-left: 15px;
  color: var(--text-color);
}

.extra-classes span::before {
  content: '●';
  position: absolute;
  left: 0;
  font-size: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
}

/* One Day */
.oneday-content {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--box-shadow);
}

.oneday-image {
  text-align: center;
  margin-bottom: 30px;
}

.img-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.oneday-attention {
  background: #fff3cd;
  padding: 20px;
  border-radius: 10px;
  color: #856404;
}

.oneday-attention h4 {
  margin-bottom: 10px;
  color: #d39e00;
}

/* Events */
.monthly-routine {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
  margin-bottom: 40px;
  box-shadow: var(--box-shadow);
}

.monthly-routine p {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.event-month-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  border-top: 5px solid var(--secondary-color);
  transition: all 0.3s ease-out;
}

.event-month-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-hover);
}

.event-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background-color: #f8f8f8;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-month-card:hover .event-image img {
  transform: scale(1.1);
}

.event-month-card:nth-child(n+1):nth-child(-n+3) {
  border-color: var(--primary-color);
}

.event-month-card:nth-child(n+4):nth-child(-n+6) {
  border-color: #8BDEFF;
}

.event-month-card:nth-child(n+7):nth-child(-n+9) {
  border-color: #FFC045;
}

.event-month-card:nth-child(n+10):nth-child(-n+12) {
  border-color: #A7E08B;
}

.month-header {
  background: #fafafa;
  padding: 15px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-color);
  border-bottom: 1px solid #eee;
}

.event-details {
  padding: 20px;
}

.event-details li {
  position: relative;
  padding-left: 15px;
  padding-bottom: 8px;
  font-size: 0.95rem;
}

.event-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--secondary-color);
  border-radius: 50%;
}

.event-sub {
  color: #888;
  font-size: 0.85rem !important;
}

.event-sub::before {
  background: #ccc !important;
}

/* Admission */
.admission {
  background: #fff;
}

.admission-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.admission-top-lead {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.admission-year {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  background: var(--primary-gradient);
  padding: 10px 60px;
  border-radius: 0px;
  display: inline-block;
  box-shadow: 0 5px 15px rgba(255, 139, 167, 0.3);
}

.admission-box {
  background: var(--light-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.admission-box-title {
  padding: 20px;
  color: #fff;
  font-size: 1.4rem;
  text-align: center;
}

.admission-box-title span {
  font-size: 0.9rem;
  opacity: 0.9;
  display: block;
}

.bg-1go {
  background: #4facfe;
}

.bg-2go {
  background: #66bd9a;
}

.bg-common {
  background: #4DB6AC;
}

.admission-details {
  padding: 40px;
  background: #fff;
}

.admission-details dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
}

.admission-details dt {
  font-weight: 700;
  color: var(--text-color);
  background: var(--light-bg);
  padding: 10px 15px;
  border-radius: 10px;
  border-left: 4px solid var(--secondary-color);
  align-self: start;
}

.admission-details dd {
  padding: 10px 0;
  border-bottom: 1px dotted #ccc;
  word-break: break-all;
}

.admission-details dd:last-of-type {
  border-bottom: none;
}

.contact-cta {
  margin-top: 40px;
  text-align: center;
  background: var(--mint-bg);
  padding: 40px;
  border-radius: 20px;
}

.contact-cta p {
  font-weight: 700;
}

.tel-link {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-color);
  margin: 15px 0;
}

/* Access */
.access-content {
  display: flex;
  gap: 40px;
  background: var(--white);
  padding: 50px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.access-info {
  flex: 1;
}

.access-info h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.address {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.access-routes li {
  font-size: 1.2rem;
  font-weight: 700;
}

.access-map {
  flex: 1.2;
}

.dummy-map {
  width: 100%;
  height: 300px;
  background: #e9ecef;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-weight: 700;
}

/* Footer */
.footer {
  background: #333;
  color: #fff;
  padding: 60px 0 20px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-brand {
  flex: 1 1 300px;
}

.footer-info {
  margin-top: 20px;
}

.school-name,
.school-type {
  font-size: 0.9rem;
  margin-bottom: 2px;
  opacity: 0.9;
}

.kinder-name {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 15px;
  color: #66bd9a;
  letter-spacing: 1px;
}

.footer-address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0.9;
}

.footer-address a:hover {
  text-decoration: underline;
  color: #66bd9a;
}

.footer-logo {
  height: 80px;
  background: #fff;
  padding: 5px 15px;
  border-radius: 10px;
}

.footer-links {
  flex: 1 1 150px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  font-size: 0.9rem;
  color: #888;
}

/* Subpage: Endayori */
.subpage .page-main {
  margin-top: 70px;
}

.subpage .page-header {
  background: url('../images/bg.jpg') center/cover no-repeat;
  padding: 130px 0 80px;
  text-align: center;
  position: relative;
}

.subpage .page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
}

.subpage .page-header .container {
  position: relative;
  z-index: 1;
}

.subpage .page-header h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.endayori-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.endayori-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s;
}

.endayori-card:hover {
  transform: translateY(-5px);
}

.endayori-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.endayori-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--secondary-color);
  color: #fff;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 700;
}

.endayori-info {
  padding: 25px;
  text-align: center;
}

/* 園だより詳細（endayori_view.html） */
.endayori-detail-section {
  padding: 60px 0;
}

.endayori-article {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.article-header {
  background: var(--mint-bg);
  padding: 30px;
  text-align: center;
  border-bottom: 2px dashed var(--mint-bg);
}

.article-header h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.article-header .date {
  color: #888;
  font-weight: 700;
}

.article-content {
  padding: 40px;
}

.article-content a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 700;
}

.article-content a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

.article-content ul,
.article-content ol {
  margin-left: 1.5em;
  margin-top: 1em;
  margin-bottom: 1em;
}

.article-content ul {
  list-style: circle;
}

.article-content ol {
  list-style: decimal;
}

.greeting-box {
  margin-bottom: 40px;
}

.greeting-box h4 {
  margin-top: 20px;
  color: #333;
  border-left: 4px solid var(--secondary-color);
  padding-left: 10px;
}

.greeting-box p {
  margin-bottom: 15px;
}

.greeting-box .sign {
  text-align: right;
  font-weight: 700;
  margin-top: 20px;
}

.schedule-box,
.notes-box,
.info-box {
  margin-bottom: 40px;
  padding: 25px;
  border-radius: 15px;
  background: var(--light-bg);
}

.info-box.bg-yellow {
  background: #fffbe6;
}

.heading-blue {
  color: #4facfe;
  margin-bottom: 15px;
  border-bottom: 2px solid #4facfe;
  padding-bottom: 5px;
}

.heading-mint {
  color: #4DB6AC;
  margin-bottom: 15px;
  border-bottom: 2px solid #4DB6AC;
  padding-bottom: 5px;
}

.schedule-list li {
  margin-bottom: 15px;
  padding-left: 15px;
  position: relative;
}

.schedule-list li::before {
  content: '📅';
  position: absolute;
  left: -5px;
  top: 2px;
}

.bullet-list li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.bullet-list li::before {
  content: '■';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.dates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 15px 0;
  font-weight: 700;
}

.info-box h3,
.info-box h4 {
  text-align: center;
  color: #d39e00;
  margin-bottom: 15px;
}

.info-box .note {
  font-size: 0.9rem;
  color: #666;
  margin-top: 15px;
}

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

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: #fff;
}



/* Media Queries */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-image-wrapper {
    flex: auto;
    max-width: 250px;
    margin: 0 auto;
  }

  .feature-list li {
    justify-content: center;
  }

  .access-content {
    flex-direction: column;
  }

  .admission-details dl {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .admission-details dt {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: 100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.98);
    transition: 0.3s;
    overflow-y: auto;
  }

  .nav.open {
    left: 0;
  }

  .nav-list {
    flex-direction: column;
    padding: 40px 20px;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .admission-box {
    padding: 0;
  }

  .admission-details {
    padding: 20px;
  }

  .article-content {
    padding: 10px;
  }

  .container {
    padding: 0 5px;
  }

  .check-list {
    width: 100%;
    margin: 0;
  }

  .subpage .page-header {
    padding: 60px 0 8px;
  }
}

.table_css table {
  /* table-layout: fixed; は削除（自動幅に戻す） */
  width: 100%; 
}

/* すべての行の「最初のセル（＝左端の1列目）」だけを45pxに固定 */
.table_css table tr th:first-child,
.table_css table tr td:first-child {
  width: 55px !important;
  min-width: 55px !important;
  white-space: nowrap; /* 文字の折り返しを防ぎ、幅を維持 */
}