/*  Font & Body  */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f4f8;
    color: #333;
  }
  
  /*  Header  */
  header {
    background: rgba(255,255,255,0.85);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #e0e0e0;
    border-radius: 0 0 18px 18px;
    transition: box-shadow 0.2s;
    min-height: 120px;
  }
  .site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 80px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: clamp(100px, 7vw, 72px);
  width: auto;
  max-height: 100px;
  object-fit: contain;
}



.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  text-decoration: none;
  font-weight: 600;
  color: #222;
  padding: 8px 14px;
  border-radius: 6px;
}

.nav a:hover {
  background: #d7551d;
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #222;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: center;
    gap: 0;
    display: none;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  }

  .nav a {
    width: 100%;
    text-align: center;
    padding: 16px;
    border-bottom: 1px solid #eee;
  }

  .nav.active {
    display: flex;
  }
}
@media (max-width: 480px) {
  .header-inner {
    height: 74px;
  }
}

  
  /* Mobile (320px - 480px) */
  @media (min-width: 320px) and (max-width: 480px) {
    .header-content {
      padding: 0 15px;
      min-height: 70px;
    }
    
    .logo {
      height: 56px;
    }
    
    nav a {
      font-size: 1em;
      padding: 12px 20px;
    }
  }
  
  /*  Slider  */
  /* Slider Container */
.slider-section {
  max-width: 900px;
  margin: 40px auto;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.10);
  background-color: #fff;
}
.slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 220px;
  max-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fa;
  border-radius: 16px;
  overflow: hidden;
}
.slide {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  background: #e0e7ef;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.slide.active {
  display: block;
}
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  font-size: 2em;
  padding: 10px 16px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.7);
}
.prev {
  left: 18px;
}
.next {
  right: 18px;
}
/* Small Laptops/Large Tablets (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .slider-section {
    max-width: 95vw;
    border-radius: 12px;
  }
  .slider {
    aspect-ratio: 16/9;
    min-height: 200px;
    max-height: 400px;
    border-radius: 12px;
  }
}

/* Tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .slider-section {
    max-width: 100vw;
    border-radius: 10px;
  }
  .slider {
    aspect-ratio: 16/10;
    min-height: 180px;
    max-height: 300px;
    border-radius: 10px;
  }
  .slide {
    border-radius: 10px;
  }
  .prev, .next {
    font-size: 1.5em;
    padding: 8px 12px;
  }
}

/* Mobile (320px - 480px) */
@media (min-width: 320px) and (max-width: 480px) {
  .slider-section {
    max-width: 100vw;
    border-radius: 10px;
  }
  .slider {
    aspect-ratio: 16/10;
    min-height: 140px;
    max-height: 260px;
    border-radius: 10px;
  }
  .slide {
    border-radius: 10px;
  }
  .prev, .next {
    font-size: 1.3em;
    padding: 7px 10px;
  }
}

  
  .prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
  }
  
  .prev {
    left: 10px;
  }
  
  .next {
    right: 10px;
  }
  
  /*  Main Section */
  .main-section {
    padding: 50px 20px;
    text-align: center;
    background-color: #ffffff;
  }
  
  .main-title {
    font-size: 2.8em;
    margin-bottom: 30px;
    color: #2e2e2e;
    border-bottom: 3px solid #aac;
    display: inline-block;
    padding-bottom: 10px;
  }
  
  /* --- About the Museum Section --- */
.maincontent {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  background: linear-gradient(120deg, #f8fafc 80%, #e0e7ef 100%);
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
  padding: 2.5em 2em;
  flex-direction: row;
  margin-bottom: 2em;
}
.maincontent p {
  flex: 1 1 340px;
  text-align: left;
  margin: 0;
  font-size: 1.18em;
  line-height: 1.8;
  color: #222;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(215,85,29,0.06);
  padding: 1.5em 1.5em 1.5em 1.2em;
  border-left: 6px solid #d7551d;
}
.maincontent img {
  flex: 0 0 420px;
  max-width: 420px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(215,85,29,0.13);
  object-fit: cover;
  background: #fff;
  margin: 0;
}
/* Small Laptops/Large Tablets (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .maincontent {
    gap: 35px;
    padding: 2em 1.5em;
  }
  .maincontent img {
    max-width: 400px;
  }
}

/* Hero Section Responsive */
@media (max-width: 768px) {
  .hero {
    min-height: 300px;
    padding: 60px 20px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .main-title {
    font-size: 1.8rem;
    padding-left: 0;
  }
  .main-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .card {
    width: 100%;
    max-width: 350px;
  }
}

/* Learn Page */
  .purpose-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
  }
  .purpose-btn {
    padding: 12px 25px;
    border: 2px solid #d7551d;
    background: transparent;
    color: #d7551d;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  .purpose-btn.active {
    background: #d7551d;
    color: white;
  }
  .card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
  }
  .card.experience, .card.learn, .card.materials {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    padding: 25px;
    text-align: left;
    border: 1px solid #eee;
  }
  .card-header {
    font-size: 1.4rem;
    font-weight: 700;
    color: #d7551d;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8fafc;
  }
  .btn {
    display: inline-block;
    padding: 10px 20px;
    background: #d7551d;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
  }
  .btn:hover {
    background: #bf4a1a;
  }

  /* Visit Page */
  .visit-container {
    max-width: 1000px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
  }
  .visit-block {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    text-align: left;
  }
  .visit-block h2 {
    color: #d7551d;
    margin-bottom: 20px;
    border-left: 5px solid #d7551d;
    padding-left: 15px;
  }
  .map-container {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  }
  .access-map {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Exhibitions Page */
  .first-column {
    padding: 30px 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
  }
  .first-section {
    padding: 40px 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin: 0 20px 40px;
  }
  .first-section .first {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    text-align: left;
    max-width: 900px;
    margin: 0 auto 20px;
  }
  .second-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px 50px;
  }
  .second-section figure {
    margin: 0;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
  }
  .second-section figure:hover {
    transform: translateY(-5px);
  }
  .second-section img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
  }
  .second-section figcaption {
    padding: 15px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
  }

  /* Responsive Design for All Pages */
@media (max-width: 1024px) {
  .header-inner {
    height: auto;
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  .nav {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  /* Visit Page */
  .visit-container {
    padding: 0 10px;
  }
  .visit-block {
    margin-bottom: 30px;
  }
  .access-map {
    max-width: 100%;
    height: auto;
  }

  /* Learn Page */
  .purpose-nav {
    flex-direction: column;
    gap: 10px;
    padding: 0 10px;
  }
  .purpose-btn {
    width: 100%;
  }
  .card-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

  /* Contact Page */
  .contact-form-container {
    margin: 2rem 15px;
    padding: 1.5rem;
  }
  .contact-form-container h1.otoiawase {
    font-size: 1.6rem;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .footer-left, .footer-middle, .footer-right {
    width: 100%;
    margin-bottom: 20px;
  }
  .footer-logo {
    margin: 0 auto 15px;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 1.5rem;
  }
  .card-section {
    padding: 30px 10px;
  }
  .card {
    max-width: 100%;
  }
  .news-section {
    padding: 30px 15px;
  }
  .news-section h2 {
    font-size: 1.4rem;
  }
  .news-list li {
    font-size: 1rem;
    padding: 10px 5px;
  }
}

/* Tablets (481px - 768px) and Mobile */
@media (max-width: 768px) {
  .maincontent {
    flex-direction: column;
    gap: 24px;
    padding: 1.2em 0.5em;
  }
  .maincontent img {
    max-width: 98vw;
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(215,85,29,0.10);
    flex-basis: auto;
  }
}
  
  .fright {
    float: right;
    margin: 0 0 20px 20px;
    width: 45%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .mtext {
    font-size: 1.2em;
    line-height: 1.8;
    text-align: justify;
    margin-top: 20px;
  }
  
  /*  Cards  */
  .card-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 50px 20px;
    background-color: #eef4f8;
  }
  
  .card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    width: 300px;
    transition: transform 0.3s ease;
  }
  
  .card:hover {
    transform: translateY(-8px);
  }
  
  .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .card-text {
    padding: 15px;
  }
  
  .card-text h3 {
    margin-top: 0;
    font-size: 1.3em;
    color: #1a1a1a;
  }
  
  .card-text p {
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
  }
  
  /*  News Section */
  .news-section {
    background-color: #fff;
    padding: 50px 20px;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .news-section h2 {
    font-size: 1.8em;
    border-bottom: 2px solid #ccc;
    margin-bottom: 20px;
    padding-bottom: 10px;
  }
  
  .news-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
  }
  
  .news-list li {
    padding: 15px 10px;
    border-bottom: 1px dotted #999;
    font-size: 1.1em;
    line-height: 1.6;
  }
  
  .news-list li:last-child {
    border-bottom: none;
  }
  
  .new {
    background-color: crimson;
    color: white;
    font-size: 0.8em;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 10px;
  }
  
  /*  Footer */
  .footer {
    background-color: #111;
    color: #f1f1f1;
    padding: 50px 20px 20px;
  }
  
  .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
  }
  
  .footer-left,
  .footer-middle,
  .footer-right {
    flex: 1 1 250px;
  }
  
  .footer-logo {
    height: 100px;
    margin-bottom: 18px;
    border-radius: 10px;
    background: #fff;
    padding: 6px 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  }
  @media (max-width: 900px) {
    .footer-logo {
      height: 60px;
      padding: 3px 8px;
    }
  }
  
  .footer h3,
  .footer h4 {
    margin-bottom: 10px;
    color: #fff;
  }
  
  .footer p,
  .footer li,
  .footer a {
    font-size: 0.95em;
    color: #ccc;
    line-height: 1.6;
    text-decoration: none;
  }
  
  .footer a:hover {
    color: #ffffff;
    text-decoration: underline;
  }
  
  .footer-middle ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px dotted #444;
    font-size: 0.9em;
    color: #aaa;
    margin-top: 40px;
  }
  
/*exhibition*/

section.first-section {
  background-image:url(../images/mymainimage.png);
  background-size:cover;
  background-repeat: no-repeat;
  background-position: center center;
  min-height: 250px;
  position: relative;
  text-align: center;
  margin: 0 auto;
  padding: 0 0 20px 0;
}
section.first-section .first{
  color: white;
  text-align: center;
  font-family: cursive;
  font-size: 150%;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
  margin-top: 0px;
}
section.first-section a button {
  text-decoration: none;
  color: #000000;
  background-color:rgb(255, 255, 255);
  font-size: 120%;
  height: 40px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 2px 10px rgba(240, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease all;
  z-index: 1;
}
section.first-section a button:before {
  transition: 0.5s all ease;
  position: absolute;
  top: 0;
  left: 50%;
  right: 50%;
  bottom: 0;
  opacity: 0;
  content: "";
  background-color: rgb(0, 0, 0);
  z-index: -1;
}
section.first-section a button:hover,
section.first-section a button:focus {
  color: white;
}
section.first-section a button:hover:before,
section.first-section a button:focus:before {
  transition: 0.2s all ease;
  left:0;
  right: 0;
  opacity: 1;
  border-radius: 10px;
}
button:active {
  transform: scale(0.9);
}
section.second-section{
  display: flex;
  margin-top: 20px;
}
section.second-section figure{
  margin: auto;
}
section.second-section figure a img{
  height: 200px;
  border-radius: 50px;
  transition: box-shadow 0.3s ease;
}
section.second-section figure a img:hover{
  box-shadow: black 0 0 20px;
}
section.second-section figure figcaption{
  font-size: 150%;
  text-align: center;
  font-family:cursive;
  color: black;
  text-transform: uppercase;
}
section.second-section figure a{
  text-decoration: none;
}
footer p{
  background-color: #000000;
  color: white;
  text-align: center;
}
footer p a{
  text-decoration: none;
  color: white;
}

/* Responsive adjustments - Tablets and Mobile (Exhibitions page thumbnails, hero text, etc.) */
@media (max-width: 768px) {
  section.second-section {
      flex-direction: column;
      align-items: center;
  }
  section.second-section figure {
      margin-bottom: 20px;
      text-align: center;
  }
  section.first-section .first {
      font-size: 110%;
      padding: 0 10px;
  }
  section.first-section {
      min-height: auto;
      padding: 20px 10px;
  }
  .maincontent p {
      font-size: 1rem;
  }
  a.LOGO img {
      width: 50%;
      height: auto;
  }
}

   /*  Contact-us */ 
   .contact-form-container {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    font-family: 'Noto Sans', sans-serif;
  }

  .contact-form-container h1.otoiawase {
    text-align: center;
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 0.5rem;
  }

  .contact-form-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
    margin-top: 1.2rem;
  }

  .contact-form-container input,
  .contact-form-container textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
  }

  .contact-form-container input:focus,
  .contact-form-container textarea:focus {
    border-color: #4CAF50;
    outline: none;
  }

  .contact-form-container textarea {
    min-height: 120px;
    resize: vertical;
  }

  .contact-form-container .required {
    color: #d32f2f;
    margin-left: 0.25rem;
  }

  .contact-form-container button {
    margin-top: 1.5rem;
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .contact-form-container button:hover {
    background-color: #388e3c;
  }


  /*  Responsive Layout  */
  /* Tablets (481px - 768px) and Mobile */
  @media (max-width: 768px) {
    .fright {
      float: none;
      width: 100%;
      margin: 0 0 20px 0;
    }
  
    nav {
      flex-direction: column;
      align-items: center;
    }
  
    nav a {
      margin: 10px 0;
    }
  
    .card-section {
      flex-direction: column;
      align-items: center;
    }
  
    .footer-content {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .footer-left,
    .footer-middle,
    .footer-right {
      flex: 1 1 100%;
    }
  
    .slide {
      height: 250px;
    }
    
    .main-title {
      font-size: 2.2em;
      display: block;
      width: 100%;
    }
  }
  
  /* Mobile (320px - 480px) */
  @media (min-width: 320px) and (max-width: 480px) {
    .main-title {
      font-size: 1.8em;
      padding: 15px 10px;
      margin-bottom: 20px;
    }
  
    .card {
      width: 90%;
    }
  
    .footer-logo {
      height: 70px;
    }
    .logo {
      height: 100px;
    }
  }
  
#intro {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, #232526 80%, #414345 100%);
  color: white;
  z-index: 10000;
  opacity: 1;
  transition: opacity 1s ease;
  pointer-events: all;
}
.loader {
  font-size: 2.2em;
  margin-bottom: 32px;
  color: #d7551d;
  letter-spacing: 2px;
  animation: pulse 1s infinite alternate;
  font-weight: bold;
  text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
@keyframes pulse {
  from { opacity: 0.6; }
  to { opacity: 1; }
}
#animatedText {
  font-weight: 700;
  font-size: 2.5em;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  margin-top: 40px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.greeting {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1em;
}
.cursor {
  display: inline-block;
  background-color: white;
  width: 0.12em;
  margin-left: 0.12em;
  animation: blink 1s step-start infinite;
  height: 1em;
  border-radius: 2px;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
@media (max-width: 600px) {
  #intro {
    font-size: 0.8em;
    padding: 0 10px;
  }
  #animatedText {
    font-size: 1.3em;
    gap: 8px;
  }
  .loader {
    font-size: 1.2em;
    margin-bottom: 18px;
  }
}
  
.hero-content {
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-radius: 0 0 18px 18px;
  padding: 2em 1em 1.5em 1em;
  text-align: center;
}
.hero-content::after {
  display: none;
}
.hero-content h1 {
  font-size: 2.2em;
  font-weight: 700;
  margin: 0 0 12px 0;
  letter-spacing: 1px;
  color: #232526;
  text-shadow: none;
}
.hero-content p {
  font-size: 1.1em;
  color: #444;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.2px;
  text-shadow: none;
}
@media (max-width: 900px) {
  .hero-content {
    padding: 1.2em 0.5em 1em 0.5em;
    border-radius: 0 0 12px 12px;
  }
  .hero-content h1 {
    font-size: 1.3em;
  }
  .hero-content p {
    font-size: 0.98em;
  }
}
 /*   learn Layout */
 /* 基本スタイル - Scoped to .container to avoid conflicts */
        :root {
            --peace-blue: #006284;
            --peace-light: #e8f4f8;
            --accent-orange: #e67e22;
            --accent-green: #27ae60;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        .container h1 {
            font-size: 2.5rem;
            margin: 0;
            font-weight: 300;
        }
        
        .container h2 {
            color: var(--peace-blue);
            border-bottom: 2px solid var(--peace-blue);
            padding-bottom: 10px;
            margin-top: 40px;
        }
        
        .container h3 {
            color: var(--peace-blue);
            font-size: 1.3rem;
        }
        
        /* 目的別ナビゲーション */
        .purpose-nav {
            display: flex;
            justify-content: center;
            margin: 40px 0;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .purpose-btn {
            padding: 15px 30px;
            background: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 1.1rem;
            transition: all 0.3s;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            min-width: 250px;
            text-align: center;
        }
        
        .purpose-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .purpose-btn.experience {
            border-left: 5px solid var(--accent-orange);
        }
        
        .purpose-btn.learn {
            border-left: 5px solid var(--accent-green);
        }
        
        .purpose-btn.materials {
            border-left: 5px solid var(--peace-blue);
        }
        
        .purpose-btn.active {
            background: var(--peace-blue);
            color: white;
        }
        
        /* 目的別コンテンツ */
        .purpose-content {
            display: none;
            animation: fadeIn 0.5s;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        /* カードレイアウト */
        .card-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 25px;
            margin-top: 30px;
        }
        
        .card {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }
        
        .card:hover {
            transform: translateY(-5px);
        }
        
        .card-header {
            padding: 20px;
            font-size: 1.2rem;
            color: white;
        }
        
        .experience .card-header {
            background: var(--accent-orange);
        }
        
        .learn .card-header {
            background: var(--accent-green);
        }
        
        .materials .card-header {
            background: var(--peace-blue);
        }
        
        .card-body {
            padding: 20px;
        }
        
        .btn {
            display: inline-block;
            padding: 10px 20px;
            border-radius: 4px;
            text-decoration: none;
            margin-top: 15px;
            transition: background 0.3s;
            font-weight: bold;
        }
        
        .experience .btn {
            background: var(--accent-orange);
            color: white;
        }
        
        .learn .btn {
            background: var(--accent-green);
            color: white;
        }
        
        .materials .btn {
            background: var(--peace-blue);
            color: white;
        }
        
        .btn:hover {
            opacity: 0.9;
        }
        
        /* 検索ボックス */
        .search-box {
            background: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
            margin-bottom: 30px;
        }
        
        .search-form {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        .search-input {
            flex: 1;
            min-width: 250px;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 1rem;
        }
        
        .search-btn {
            background: var(--accent-orange);
            color: white;
            border: none;
            padding: 0 25px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 1rem;
        }
        
        /* レスポンシブデザイン */
        /* Small Laptops/Large Tablets (769px - 1024px) */
        @media (min-width: 769px) and (max-width: 1024px) {
            .card-container {
                grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
                gap: 20px;
            }
        }
        
        /* Tablets (481px - 768px) and Mobile */
        @media (max-width: 768px) {
            .card-container {
                grid-template-columns: 1fr;
            }
            
            .purpose-btn {
                min-width: 100%;
            }
        }

/* Visitor Info Page Styles  */
.visit-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.visit-block {
    background: #fff;
    border-radius: 12px;
    padding: 2.5em;
    margin-bottom: 2.5em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.visit-block h2 {
    color: #2e2e2e;
    font-size: 2em;
    margin-bottom: 1.2em;
    padding-bottom: 0.6em;
    border-bottom: 2px solid #d7551d;
}

.visit-block h3 {
    color: #d7551d;
    font-size: 1.4em;
    margin-top: 1.8em;
    margin-bottom: 1em;
}

.visit-block ul {
    list-style: none;
    padding: 0;
    margin: 1.2em 0;
}

.visit-block ul li {
    padding: 0.7em 0;
    padding-left: 1.8em;
    position: relative;
    line-height: 1.8;
    color: #444;
    font-size: 1.05em;
}

.visit-block ul li:before {
    content: "•";
    color: #d7551d;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.visit-block p {
    line-height: 1.8;
    margin: 1.2em 0 0 0;
    color: #666;
    font-style: italic;
    font-size: 1em;
}
.map-container {
  margin-top: 20px;
  text-align: center;
}

.access-map {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
}


/* Small Laptops/Large Tablets (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .visit-container {
        max-width: 950px;
        padding: 0 35px;
    }
    
    .visit-block {
        padding: 2.2em;
        margin-bottom: 2.2em;
    }
    
    .visit-block h2 {
        font-size: 1.85em;
    }
    
    .visit-block h3 {
        font-size: 1.35em;
    }
}

/* Tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .visit-container {
        max-width: 100%;
        padding: 0 25px;
    }
    
    .visit-block {
        padding: 1.8em;
        margin-bottom: 1.8em;
        border-radius: 10px;
    }
    
    .visit-block h2 {
        font-size: 1.6em;
        margin-bottom: 1em;
    }
    
    .visit-block h3 {
        font-size: 1.25em;
        margin-top: 1.4em;
    }
    
    .visit-block ul li {
        font-size: 1em;
        padding-left: 1.5em;
    }
}

/* Mobile (320px - 480px) */
@media (min-width: 320px) and (max-width: 480px) {
    .visit-container {
        padding: 0 15px;
    }
    
    .visit-block {
        padding: 1.2em;
        margin-bottom: 1.3em;
        border-radius: 8px;
    }
    
    .visit-block h2 {
        font-size: 1.3em;
        margin-bottom: 0.8em;
        padding-bottom: 0.4em;
    }
    
    .visit-block h3 {
        font-size: 1.1em;
        margin-top: 1.2em;
        margin-bottom: 0.7em;
    }
    
    .visit-block ul {
        margin: 0.9em 0;
    }
    
    .visit-block ul li {
        padding: 0.5em 0;
        padding-left: 1.2em;
        font-size: 0.92em;
        line-height: 1.6;
    }
    
    .visit-block ul li:before {
        font-size: 1.1em;
    }
    
    .visit-block p {
        font-size: 0.9em;
        margin: 0.9em 0 0 0;
    }
    
    .main-section {
        padding: 30px 10px;
    }
    
    .main-title {
        font-size: 1.8em;
        padding: 10px 5px;
    }
}


  