/* ========= Reset & Base Styles ========= */
body {
  margin: 0;
  font-family: "Yu Gothic", "Noto Sans JP", Arial, sans-serif;
  background-color: #ffffff;
  color: #333;
  font-size: 18px;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
  margin: 0;
}

/* ========= Utility & Container ========= */
.btn {
  background-color: #fff;
  color: #66a8c8;
  padding: 1rem 2.5rem;
  font-size: 1.1em;
  border-radius: 50px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.4s ease 0.2s;
  display: inline-block;
}
.btn:hover {
  background-color: #e0e0e0;
}
.btn-cover {
  text-align: center;
  margin-top: 5rem;
}
.container {
  /* padding-top: 3rem; */
  margin: 0 auto;
}

/* ========= Section Headings ========= */
section {
  margin-bottom: 2rem;
}
section h2 {
  font-size: 2.5rem;
  color: #a3d5ec;
  margin-bottom: 1.5rem;
}

/* ========= Main Visual (if any) ========= */
.main-visual-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========= Schedule Section ========= */
.schedule {
  padding: 80px 2rem;
  background-color: #f9f9f9;
  text-align: center;
}

.schedule p {
  font-size: 1.125rem;
  color: #555;
  margin-bottom: 2rem;
}
.schedule > div {
  max-width: 1200px;
  margin: 0 auto;
}
.schedule iframe {
  width: 100%;
  height: 800px;
  border: 1px solid #777;
}

/* ========= Blog Section ========= */
.home-blog {
  padding: 80px 2rem;
  text-align: center;
}
.home-blog p {
  font-size: 1.125rem;
  color: #555;
  margin-bottom: 2rem;
}
.home-blog-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.home-blog-item {
  display: flex;
  flex-direction: column;
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  color: inherit;
  text-decoration: none;
}
.home-blog-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.home-blog-item img {
  border-radius: 8px;
  width: 100%;
}
.home-blog-item h3 {
  font-size: 1.4rem;
  margin: 1rem;
  color: #333;
  text-align: left;
}
.home-blog-item p {
  font-size: 1.2rem;
  color: #555;
  margin: 0 1rem 1rem;
  text-align: left;
}
.home-blog-btn {
  margin-top: 3rem;
}

/* ========= Contact Section ========= */
.contact {
  padding: 80px 2rem;
  text-align: center;
}
.contact-container {
  max-width: 800px;
  margin: 0 auto;
}
.contact-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.contact-description {
  font-size: 1.125rem;
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.contact-btn {
  padding: 0.75rem 2rem;
}
.contact-btn:hover {
  color: #4a8aaa;
}

/* ========== Blog Page ========== */

.blog-page-container {
  max-width: 1200px;
  margin: 2rem auto;
  display: flex;
  gap: 2rem;
}

.blog-page-left {
  flex: 3;
}

.blog-page-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
}

.blog-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 4rem;
}

.blog-page-card {
  background-color: #f9f9f9;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.6s ease 0.1s;
}

.blog-page-card:hover {
  transform: scale(1.02);
}

.blog-page-card img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-page-card h3 {
  margin: 0.5rem 1rem;
  font-size: 1.3rem;
}

.blog-page-card p {
  margin: 0 1rem 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ========== Sidebar: Recent Posts ========== */
.blog-page-right {
  padding: 0;
  margin-top: 5rem;
  position: sticky;
  top: 2rem;
  align-self: start;
}

.blog-page-right h2 {
  font-size: 1.2rem;
  color: #66a8c8;
  margin-bottom: 1rem;
  border-left: 4px solid #66a8c8;
  padding-left: 0.5rem;
}

.blog-page-recent-posts li {
  margin-bottom: 0.5rem;
  border-left: 3px solid #a3d5ec;
  padding-left: 0.75rem;
}

.blog-page-recent-posts a {
  display: block;
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.blog-page-recent-posts a:hover {
  color: #0077aa;
  text-decoration: underline;
}

.recent-post-title {
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}

.recent-post-date {
  font-size: 0.65rem;
  color: #777;
}

/* ========== Blog Contact Buttons ========== */
.blog-contact-btn-wrapper {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.blog-contact-btn-wrapper .btn {
  color: #fff;
  font-size: 0.8rem;
}

.right-contact-btn {
  background-color: #66a8c8;
  padding: 0.6rem 1.6rem;
}

.right-contact-btn:hover {
  background-color: #5594b0;
}

.x-btn {
  background-color: #000;
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
  padding: 0.6rem 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.x-btn:hover {
  background-color: #333;
}

/* ========== Article Detail Page ========== */
.blog-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #a3d5ec;
}

.blog-date {
  background-color: #f5f5f5;
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.blog-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1.1rem;
}

.blog-image {
  margin: 2rem 0;
  text-align: center;
}

.blog-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.blog-image figcaption {
  font-size: 0.9rem;
  color: #777;
}

/* ========= Header & Navigation ========= */
.main-header {
  background: linear-gradient(135deg, #a3d5ec, #d9f3fb);
  padding: 1.5rem 0 1rem;
  text-align: center;
  color: #fff;
}
.header-title .title-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.08em;
}
.header-title .title-main {
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.main-nav ul {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}
.main-nav li a {
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.3;
  padding-bottom: 4px;
  position: relative;
  transition: all 0.3s;
}
.main-nav li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.main-nav li a:hover::after {
  transform: scaleX(1);
}
.main-nav li a span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

/* フッター */
footer {
  background: linear-gradient(135deg, #a3d5ec, #d9f3fb);
  padding: 1.5rem;
  text-align: center;
}
footer p {
  color: #fff;
  font-size: 0.9rem;
}

/* ========= Mobile Hamburger & Overlay Nav ========= */
.menu-overlay {
  display: none;
}
@media (max-width: 768px) {
  /* 通常ナビを隠す */
  .main-nav {
    display: none;
  }
  /* ハンバーガーボタン */
  .menu-toggle {
    display: block;
    position: absolute;
    top: 1.2rem;
    right: 1rem;
    width: 2rem;
    height: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }
  .menu-toggle span {
    display: block;
    height: 2px;
    background: #fff;
    margin-bottom: 7px;
    transition: transform 0.3s;
  }
  .menu-toggle.hidden {
    display: none;
  }
  /* オーバーレイ */
  .menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem 1.5rem;
  }
  .menu-overlay.open {
    display: block;
  }
  .menu-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-size: 2rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
  }
  .overlay-nav ul {
    margin: 4rem 0 2rem;
  }
  .overlay-nav li {
    margin-bottom: 1.5rem;
  }
  .overlay-nav li a {
    font-size: 1.6rem;
    color: #fff;
    display: block;
  }
  .overlay-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .overlay-footer a {
    font-size: 1rem;
    color: #fff;
  }
  /* 背景スクロール停止 */
  body.no-scroll {
    overflow: hidden;
  }

  .contact-btn {
    padding: 0.6rem 1.8rem;
    font-size: 0.95rem;
  }
  .right-contact-btn {
    padding: 0.6rem 1.6rem;
  }
  .x-btn {
    padding: 0.6rem 0.8rem;
  }

  /* 各セクションのモバイル微調整 */
  section {
    margin: 0;
  }
  .btn-cover.inf-btn-cover {
    margin-top: 1.5rem;
  }

  .schedule {
    padding: 30px 1rem;
  }
  .schedule h2 {
    font-size: 2rem;
  }
  .schedule p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .schedule iframe {
    height: 400px;
  }

  .home-blog {
    padding: 30px 1rem;
  }
  .home-blog h2 {
    font-size: 2rem;
  }
  .home-blog p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .home-blog-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .home-blog-item h3 {
    font-size: 1.125rem;
    margin: 0.75rem 1rem;
  }
  .home-blog-item p {
    font-size: 0.95rem;
    margin: 0 1rem 0.75rem;
  }
  .home-blog-btn {
    margin-top: 0;
  }
  .btn-cover {
    margin-top: 1.5rem;
  }

  .contact {
    padding: 30px 1rem;
  }
  .contact-title {
    font-size: 2rem;
  }
  .contact-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
}
