/*
Theme Name: C-Earth
Description: 地球こどもクラブのWordPressテーマ - 環境保護教育活動を支援するウェブサイト
Version: 1.0
Author: C-Earth Development Team
*/

/* Import reset and fonts */
@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");
@import url("https://fonts.googleapis.com/css?family=Noto+Sans+JP:400,500,700");

* {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

html,
body {
  margin: 0px;
  height: 100%;
  font-family: "Noto Sans JP", Helvetica, sans-serif;
  line-height: 1.6;
}

button:focus-visible {
  outline: 2px solid #4a90e2 !important;
  outline: -webkit-focus-ring-color auto 5px !important;
}

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

/* Main container */
.site-container {
  max-width: 100%;
  margin: 0 auto;
  background-color: #ffffff;
}

/* Header */
.site-header {
  padding: 20px 0;
  background-color: #ffffff;
  position: relative;
  z-index: 1000;
}

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

.logo-ss {
  width: auto;
  height: 52px;
  display: block;
  object-fit: contain;
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-item {
  font-family: "Noto Sans JP", Helvetica;
  font-weight: 700;
  color: #272727;
  font-size: 16px;
  padding: 10px 10px;
  border-radius: 5px;
  transition: background-color 0.3s;
  position: relative;
}

.nav-item:hover {
  background-color: #f5f5f5;
}

.nav-item.cta-button {
  background-color: #12a265;
  color: #ffffff;
  border-radius: 9px;
  padding: 14px 30px;
  margin-left: 20px;
}

.nav-item.cta-button:hover {
  background-color: #0f8552;
}

/* ドロップダウンメニュー */
.dropdown {
  position: relative;
}

.nav-link {
  font-family: "Noto Sans JP", Helvetica;
  font-weight: 700;
  color: #272727;
  font-size: 15px;
  text-decoration: none;
  display: block;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.nav-link:hover {
  background-color: #f5f5f5;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 9999;
  padding: 8px 0;
  margin-top: 8px;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #12a265;
}

/* Hero Section */
.hero-section {
  width: 100%;
  height: 515px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

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

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

.hero-bg-image.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 77px 0 0 71px;
  text-align: left;
  color: #12a265;
}

.hero-title {
  font-family: "Noto Sans JP", Helvetica;
  font-weight: 700;
  font-size: 62px;
  line-height: 82px;
  letter-spacing: 0;
  color: #12a265;
  margin-bottom: 47px;
  width: 462px;
}
.hero-subtext-area {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 71px;
  padding-right: 71px;
}
.hero-subtitle {
  font-family: "Noto Sans JP", Helvetica;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
  color: #000000;
  margin-bottom: 50px;
  width: 387px;
  background: none;
  color: #272727;
  line-height: 1.7;
  padding: 0;
}

.hero-cta {
  font-family: "Noto Sans JP", Helvetica;
  font-weight: 700;
  font-size: 14px;
  color: #000000;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  bottom: -30px;
  left: 315px;
}

.hero-cta:hover {
  opacity: 0.8;
}

.hero-cta .arrow-icon {
  width: 16px;
  height: 16px;
  background-color: #000000;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.hero-cta img {
  width: 5px;
  height: 8px;
  filter: brightness(0) invert(1);
}

/* Hero Text Color Variations */
.hero-section.white-text .hero-title {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-section.white-text .hero-subtitle {
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.hero-section.white-text .hero-cta {
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.hero-section.white-text .hero-cta .arrow-icon {
  background-color: #ffffff;
}

.hero-section.white-text .hero-cta img {
  filter: brightness(0);
}

/* Hide hero content */
.hero-section.hero-no-content .hero-content,
.hero-section.hero-no-content .hero-subtext-area {
  display: none !important;
}

/* Topics Section */
.topics-section {
  padding: 0 20px 100px;
  margin-top: 100px;
  background-color: #f1f1f1;
}

.topics-background {
  /* 削除 - 背景はsection自体に設定 */
}

.section-title {
  font-family: "Helvetica", "Noto Sans JP", Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: #12a265;
  font-size: 62px;
  text-align: center;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 20px 0;
  position: relative;
  top:-40px;
}

.topics-grid {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
}

.topic-main {
  flex: 1.2;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #cfcfcf;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  max-width: 420px;
  overflow: hidden;
  position: relative;
}

.topic-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  width: 100%;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topic-main:hover,
.topic-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topic-card-link:hover {
  color: inherit;
}

.topic-main .topic-card-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

.topic-main .topic-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 0;
}

.topic-main .topic-date {
  color: #9e9e9e;
  font-size: 12px;
  font-weight: 700;
  margin: 16px 24px 8px 24px;
  line-height: 1.2;
}

.topic-main .topic-title {
  font-size: 18px;
  font-weight: 700;
  color: #272727;
  margin: 0 24px 12px 24px;
  line-height: 1.4;
}

.topic-main .topic-excerpt {
  font-size: 13px;
  color: #000;
  line-height: 1.6;
  margin: 0 24px 24px 24px;
}

.topic-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.topic-item {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #cfcfcf;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  margin-bottom: 20px;
  overflow: hidden;
  min-height: 120px;
  position: relative;
}

.topic-item .topic-card-link {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
  min-height: 120px;
}

.topic-item:last-child {
  margin-bottom: 0;
}

.topic-item .topic-image {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 0;
  flex-shrink: 0;
}

.topic-item .topic-content {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
}

.topic-item .topic-date {
  color: #9e9e9e;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
}

.topic-item .topic-title {
  font-size: 14px;
  font-weight: 700;
  color: #272727;
  line-height: 1.5;
  margin: 0;
}

/* About Section - static HTML再現 */
.about-section {
}
.about-section .section-title {
  margin-bottom: 30px;
}
.about-section .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px;
}
.about-upper {
  display: flex;
  gap: 48px;
  margin-bottom: 48px;
  align-items: flex-start;
}
.about-upper-left {
  width: 48%;
  min-width: 320px;
}
.about-upper-right {
  width: 48%;
  max-width: 420px;
}
.about-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}
.about-photo-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
}
.about-lower {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.about-lower-left {
  width: 48%;
  min-width: 320px;
  position: relative;
  height: 260px;
}
.artwork-main {
  position: absolute;
  left: 0; top: 0;
  width: 180px;
  z-index: 2;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.artwork-sub1 {
  position: absolute;
  left: 120px; top: 40px;
  width: 120px;
  z-index: 1;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.artwork-sub2 {
  position: absolute;
  left: 60px; top: 120px;
  width: 100px;
  z-index: 0;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.about-lower-right {
  width: 48%;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-lower-title {
  color: #12a265;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
}
.about-lower-lead {
  color: #12a265;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}
.about-lower-desc {
  font-size: 15px;
  margin-bottom: 20px;
}
.about-stats-row {
  display: flex;
  gap: 32px;
  margin: 20px 0;
}
.stat-item {
  text-align: center;
}
.stat-number {
  color: #12a265;
  font-size: 32px;
  font-weight: bold;
}
.stat-label {
  font-size: 13px;
}
.about-link {
  color: #222;
  font-weight: bold;
  text-decoration: none;
  margin-top: 10px;
  display: inline-block;
}
.about-link:hover {
  text-decoration: underline;
}

/* Statistics Section */
.stats-section {
  padding: 40px 20px;
  text-align: center;
}

.stats-description {
  color: #272727;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 800px;
  margin: 40px auto;
}

.stats-summary {
  color: #272727;
  font-size: 16px;
  line-height: 1.6;
  margin-top: 10px;
}

/* Gallery Section */
.gallery-section {
  background-color: #F1F1F1;
  color: #12A265;
  padding: 0 0 100px;
  text-align: center;
}

.gallery-header {
  display: flex;
  justify-content: center;
  gap: 100px;
  margin-bottom: 20px;
}

.gallery-title-top {
  font-family: "Helvetica", "Noto Sans JP", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 62px;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 0;
  position: relative;
  top: -40px;
}

/* Gallery Slider */
.gallery-slider-container {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  margin-top: 0;
}

.gallery-slider {
  display: flex;
  animation: slide-left 30s infinite linear;
  gap: 0;
}

.gallery-slide {
  flex-shrink: 0;
  height: 300px;
  overflow: hidden;
}

.gallery-slide img {
  height: 100%;
  width: auto;
  object-fit: cover;
  display: block;
}

@keyframes slide-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Pause animation on hover */
.gallery-slider:hover {
  animation-play-state: paused;
}

/* Testimonials Section */
.testimonials-section {
  padding: 0px 20px 60px;
  background-color: #FFFFFF;
}

.testimonials-subtitle {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  top: -10px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-item {
  text-align: center;
}

.testimonial-avatar {
  width: 180px;
  height: 180px;
  background-color: #d9d9d9;
  border-radius: 90px;
  margin: 0 auto 30px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 90px;
}

.testimonial-name {
  font-weight: 700;
  color: #272727;
  font-size: 18px;
  margin-bottom: 8px;
}

.testimonial-title {
  color: #666;
  font-size: 16px;
  margin-bottom: 20px;
}

.testimonial-text {
  color: #272727;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  max-width: 280px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  background-color: #5F5F5F;
  color: #ffffff;
  padding: 40px 20px;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
}

.sponsors-section {
  background: #f1f1f1;
  padding: 60px 0 60px;
}

.footer-sponsors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  align-items: center;
}

.sponsor-logo {
  height: auto;
  max-height: 60px;
  width: auto;
  max-width: 300px;
  opacity: 1;
  transition: opacity 0.3s;
  object-fit: contain;
}

.sponsor-logo:hover {
  opacity: 0.8;
}

.sponsor-text {
  display: inline-block;
  padding: 12px 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  color: #333;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  min-width: 120px;
  transition: all 0.3s ease;
}

.sponsor-link:hover .sponsor-text {
  background-color: #12a265;
  color: white;
  border-color: #12a265;
}

.sponsor-link {
  text-decoration: none;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 20px;
}

.footer-nav-section h4 {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-nav-section ul {
  list-style: none;
  padding: 0;
}

.footer-nav-section li {
  margin-bottom: 8px;
}

.footer-nav-section a {
  color: #cccccc;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-nav-section a:hover {
  color: #ffffff;
}

/* Image Gallery */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.gallery-item img {
  width: 100%;
  height: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* ヘッダーのモバイル調整 */
  .header-container {
    padding: 0 15px;
  }
  
  .logo-ss {
    height: 40px;
  }
  .site-header {
    padding: 10px 0;
  }
  
  .main-navigation {
    display: none !important;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
    z-index: 1001;
  }
  
  /* ヒーローセクションのモバイル調整 */
  .hero-section {
    height: 400px;
  }
  
  .hero-content {
    padding: 40px 20px 0;
    text-align: center;
  }
  
  .hero-title {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 12px;
  }
  
  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }
  
  .hero-cta {
    font-size: 14px;
    padding: 12px 24px;
  }
  
  /* トピックスセクションのモバイル調整 */
  .topics-section {
    margin-top: 50px;
    padding: 0 0 80px;
  }
  
  .section-title {
    font-size: 32px;
    margin-bottom: 10px;
    top: -20px;
  }
  
  .topics-grid {
    flex-direction: column;
    gap: 5px;
    padding: 0 15px;
  }
  
  .topic-main,
  .topic-sidebar {
    max-width: 100%;
    width: 100%;
  }
  
  .topic-main .topic-image {
    height: 180px;
  }
  
  .topic-main .topic-title {
    font-size: 18px;
  }
  
    /* モバイル版サイドバー記事の表示改善 */
  .topic-sidebar {
    margin-top: 10px;
    gap: 5px;
  }

  .topic-item {
    flex-direction: row;
    min-height: auto;
    align-items: flex-start;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 16px;
    transition: all 0.3s ease;
  }

  .topic-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  }

  .topic-item .topic-image {
    width: 100px;
    height: 80px;
    flex-shrink: 0;
  }

  .topic-item .topic-content {
    padding: 12px 16px;
    flex: 1;
  }

  .topic-item .topic-date {
    color: #12a265;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
  }

  .topic-item .topic-title {
    font-size: 14px;
    font-weight: 600;
    color: #272727;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  /* Aboutセクションのモバイル調整 */
  .about-section {
    padding: 0 15px 40px;
  }
  .about-section .section-title {
    margin-bottom: 20px;
  }
  
  .about-upper,
  .about-lower {
    flex-direction: column;
    gap: 20px;
  }
  
  .about-upper-left,
  .about-upper-right,
  .about-lower-left,
  .about-lower-right {
    width: 100%;
    min-width: 0;
  }
  
  .about-lower-left {
    height: 160px;
  }
  
  .about-lower-title {
    font-size: 20px;
  }
  
  .about-lower-desc {
    font-size: 14px;
  }
  
  /* ギャラリーセクションのモバイル調整 */
  .gallery-section {
    padding: 0 0 60px;
  }
  
  .gallery-header {
    padding: 0 15px;
    margin-bottom: 0;
  }
  
  .gallery-title-top {
    font-size: 32px;
    line-height: 1.7;
    margin-bottom: 0;
    top: -30px;
  }
  
  .gallery-slide {
    width: 280px;
    height: 200px;
  }
  
  /* 証言セクションのモバイル調整 */
  .testimonials-section {
    padding: 0 15px 40px;
  }
  
  .testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 100%;
  }
  .testimonial-item {
    width: 100%;
    max-width: 100%;
  }
  .testimonials-subtitle {
    font-size: 16px;
  } 
  .testimonial-avatar {
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
  }
  
  .testimonial-name {
    font-size: 14px;
  }
  
  .testimonial-text {
    font-size: 13px;
  }
  
  /* フッターのモバイル調整 */
  .site-footer {
    padding: 30px 15px 20px;
  }
  
  .footer-sponsors {
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .sponsor-logo {
    max-height: 40px;
    max-width: 200px;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-nav-section {
    margin-bottom: 20px;
  }
  
  .footer-nav-section h4 {
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  .footer-nav-section a {
    font-size: 13px;
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 10px;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
    width: 36px;
    height: 36px;
  }
  
  .main-navigation {
    display: none !important;
  }
  
  .hero-section {
    padding: 40px 15px;
  }
  
  .topics-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* 480px以下でのモバイルトピックス詳細調整 */
  .topics-grid {
    padding: 0 10px;
  }

  .topic-item .topic-image {
    width: 80px;
    height: 60px;
  }

  .topic-item .topic-content {
    padding: 10px 12px;
  }

  .topic-item .topic-date {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .topic-item .topic-title {
    font-size: 13px;
    line-height: 1.3;
  }
  
  .stat-number {
    font-size: 36px;
  }
  
  .footer-sponsors {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 900px) {
  .main-navigation {
    display: none !important;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
  }
  
  .about-upper, .about-lower { flex-direction: column; gap: 24px; }
  .about-upper-left, .about-upper-right, .about-lower-left, .about-lower-right { width: 100%; min-width: 0; }
  .about-lower-left { height: 180px; }
  .artwork-main, .artwork-sub1, .artwork-sub2 { position: static; width: 100px; }
  .about-photo-grid img { aspect-ratio: 4/3; }
  .topics-grid { flex-direction: column; gap: 20px; }
  .topic-main, .topic-sidebar { max-width: 100%; width: 100%; }
  .topic-main .topic-image { height: 200px; }
  .topic-item { flex-direction: column; align-items: stretch; min-height: auto; }
  .topic-item .topic-image { width: 30%; height: 140px; }
  .topic-item .topic-content { padding: 16px 20px; }
}

/* WordPress specific styles */
.wp-block-group {
  margin: 0;
}

.aligncenter {
  text-align: center;
}

.alignleft {
  float: left;
  margin-right: 20px;
}

.alignright {
  float: right;
  margin-left: 20px;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.text-center {
  text-align: center;
}

.mb-40 {
  margin-bottom: 40px;
}

/* 全幅用 */
.container-full {
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.container-full-no-padding {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.container-full-mobile-no-padding {
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* About us section (static_html/aboutus 準拠) */
.aboutus-frame {
  display: flex;
  flex-direction: column;
  width: 1020px;
  max-width: 100%;
  margin: 0 auto 110px auto;
  gap: 51px;
  position: relative;
}
.aboutus-row {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0;
}
.aboutus-row-bottom {
  align-items: center;
}
.aboutus-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.aboutus-col-left {
  width: 490px;
  min-width: 320px;
  gap: 25px;
}
.aboutus-col-right {
  width: 490px;
  min-width: 320px;
  align-items: center;
}
.aboutus-title {
  font-family: "Noto Sans JP", Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: #12a265;
  font-size: 24px;
  line-height: 42px;
  margin-bottom: 0;
}
.aboutus-title-bottom {
  margin-bottom: 6px;
  text-align: left;
}
.aboutus-desc {
  font-family: "Noto Sans JP", Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: #000;
  font-size: 15px;
  line-height: 24px;
  margin-bottom: 0;
}
.aboutus-desc-bottom {
  margin-bottom: 12px;
  text-align: left;
}
.aboutus-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Noto Sans JP", Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: #272727;
  font-size: 14px;
  text-decoration: none;
  margin-top: 10px;
  position: relative;
}
.aboutus-link-ellipse {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #000;
  border-radius: 8px;
  margin-right: 8px;
  padding: 4px;
}
.aboutus-link-text {
  position: relative;
  top: 1px;
}
.aboutus-link-arrow {
  width: 5px;
  height: 8px;
  margin-left: 4px;
  filter: brightness(0) invert(1);
}
.aboutus-mainimg {
  width: 490px;
  height: 332px;
  object-fit: cover;
}
.aboutus-sideimg {
  width: 477px;
  height: 498px;
  object-fit: cover;
}
.aboutus-stats {
  display: flex;
  flex-direction: row;
  gap: 22px;
  margin: 18px 0 18px 0;
}
.aboutus-stat {
  position: relative;
  width: 125px;
  height: 147px;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.aboutus-stat-icon {
  width: 65px;
  height: 65px;
  margin-bottom: 8px;
}
.aboutus-stat-number {
  font-family: "Noto Sans JP", Helvetica, Arial, sans-serif;
  font-weight: 500;
  color: #000;
  font-size: 24px;
  text-align: center;
  line-height: 42px;
  margin-bottom: 2px;
}
.aboutus-stat-label {
  font-family: "Noto Sans JP", Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: #000;
  font-size: 11px;
  text-align: center;
  line-height: 16px;
}
@media (max-width: 1100px) {
  .aboutus-frame { width: 100%; padding: 0 10px; }
  .aboutus-mainimg, .aboutus-sideimg { width: 100%; height: auto; }
  .aboutus-col-left, .aboutus-col-right { width: 50%; min-width: 0; }
}
@media (max-width: 900px) {
  .aboutus-frame { margin-bottom: 40px; }
  .aboutus-row, .aboutus-row-bottom { flex-direction: column-reverse; align-items: stretch; gap: 20px; }
  .aboutus-row-bottom { flex-direction: column; }
  .aboutus-col-left, .aboutus-col-right { width: 100%; min-width: 0; }
  .aboutus-mainimg, .aboutus-sideimg { width: 100%; height: auto; }
  .aboutus-stats { flex-direction: column; gap: 12px; align-items: flex-start; }
  .aboutus-stat { width: 100%; height: auto; flex-direction: row; align-items: center; }
  .aboutus-stat-icon { margin-bottom: 0; margin-right: 12px; }
  .aboutus-stat-number, .aboutus-stat-label { text-align: left; }
  .aboutus-title { font-size: 20px; line-height: 1.7; }
  .aboutus-desc { font-size: 14px; line-height: 1.7; }
  .aboutus-link { font-size: 12px; }
  .aboutus-link-ellipse { width: 12px; height: 12px; }
  .aboutus-link-arrow { width: 4px; height: 6px; }
}

.site-footer-links {
  padding: 32px 0 16px 0;
}

.site-footer-copyright {
  text-align: center;
  padding-top: 20px;
  font-size: 12px;
  color: #666;
  padding-bottom: 20px;
}

.topics-flex {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.topics-main {
  flex: 1.2;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  max-width: 420px;
}
.topics-main-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}
.topics-main-date {
  color: #9e9e9e;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}
.topics-main-title {
  font-size: 18px;
  font-weight: 700;
  color: #272727;
  margin-bottom: 8px;
}
.topics-main-excerpt {
  font-size: 15px;
  color: #222;
  line-height: 1.6;
}
.topics-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.topics-side-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
}
.topics-side-image {
  width: 90px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
}
.topics-side-date {
  color: #9e9e9e;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 2px;
}
.topics-side-title {
  font-size: 15px;
  font-weight: 700;
  color: #272727;
}
@media (max-width: 900px) {
  .topics-flex { flex-direction: column; gap: 20px; }
  .topics-main, .topics-side { max-width: 100%; width: 100%; }
  .topics-main-image { height: 140px; }
  .topics-side-card { flex-direction: column; align-items: flex-start; }
  .topics-side-image { width: 100%; height: 80px; }
} 

/* ハンバーガーメニュー */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 5px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  position: relative;
  z-index: 1001;
}

.mobile-menu-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background-color: #12A265;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* モバイルメニューオーバーレイ */
.admin-bar .mobile-menu-overlay {
  padding: 46px 0 20px;
}
.mobile-menu-overlay {
  padding: 20px 0 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #12a265;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
}

.mobile-menu-overlay.active {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px;
}

.mobile-menu-close {
  color: white;
  font-size: 30px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

.mobile-menu-content {
  padding: 0 20px;
}

.mobile-menu-nav {
  width: 100%;
}

.mobile-nav-section {
  margin-bottom: 40px;
}

.mobile-nav-title {
  color: white;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.mobile-nav-item {
  display: block;
  color: white;
  font-size: 16px;
  font-weight: 500;
  padding: 15px 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.3s;
}

.mobile-nav-item:hover {
  opacity: 0.8;
}

.mobile-cta-button {
  background-color: white;
  color: #12a265;
  padding: 15px 30px;
  border-radius: 25px;
  font-weight: 700;
  text-align: center;
  margin-top: 30px;
  display: block;
  text-decoration: none;
  transition: transform 0.3s;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.mobile-cta-button:hover {
  transform: translateY(-2px);
}

/* 投稿詳細ページのスタイル */
.single-post-main {
  padding: 40px 0;
  background-color: #f8f9fa;
  min-height: 70vh;
}

/* パンくずリスト */
.breadcrumb {
  margin-bottom: 30px;
  font-size: 14px;
  color: #666;
}

.breadcrumb-link {
  color: #12a265;
  text-decoration: none;
  transition: opacity 0.3s;
}

.breadcrumb-link:hover {
  opacity: 0.8;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: #999;
}

.breadcrumb-current {
  color: #333;
  font-weight: 500;
}

/* 記事コンテナ */
.single-post-article {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 40px;
}

/* 記事ヘッダー */
.single-post-header {
  padding: 40px;
  border-bottom: 1px solid #f0f0f0;
}

.single-post-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.single-post-date {
  color: #12a265;
  font-size: 14px;
  font-weight: 700;
  background: rgba(18, 162, 101, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
}

.single-post-categories a {
  color: #666;
  font-size: 14px;
  font-weight: 500;
  background: #f5f5f5;
  padding: 4px 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.single-post-categories a:hover {
  background: #e5e5e5;
}

.single-post-title {
  font-size: 32px;
  font-weight: 700;
  color: #272727;
  line-height: 1.4;
  margin-bottom: 30px;
}

.single-post-thumbnail {
  margin: 0 -40px -40px -40px;
}

.single-post-image {
  width: 100%;
  height: auto;
  display: block;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

/* 記事コンテンツ */
.single-post-content {
  padding: 40px;
  line-height: 1.8;
  color: #333;
}

.single-post-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: #272727;
  margin: 40px 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #12a265;
}

.single-post-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: #272727;
  margin: 30px 0 15px 0;
}

.single-post-content h4 {
  font-size: 18px;
  font-weight: 700;
  color: #272727;
  margin: 25px 0 12px 0;
}

.single-post-content p {
  margin-bottom: 20px;
}

.single-post-content img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}

.single-post-content ul,
.single-post-content ol {
  margin: 20px 0;
  padding-left: 25px;
}

.single-post-content ul {
  list-style-type: disc;
}

.single-post-content ol {
  list-style-type: decimal;
}

.single-post-content li {
  margin-bottom: 8px;
}

.single-post-content blockquote {
  background: #f8f9fa;
  border-left: 4px solid #12a265;
  padding: 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.single-post-content a {
  color: #12a265;
  text-decoration: underline;
  transition: opacity 0.3s;
}

.single-post-content a:hover {
  opacity: 0.8;
}

/* ページネーション */
.page-links {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.page-links-title {
  font-weight: 700;
  margin-right: 10px;
}

.page-links a {
  display: inline-block;
  padding: 8px 12px;
  margin-right: 5px;
  background: #f5f5f5;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.page-links a:hover {
  background: #12a265;
  color: white;
}

/* 記事フッター */
.single-post-footer {
  padding: 30px 40px 40px;
  border-top: 1px solid #f0f0f0;
}

.single-post-tags {
  margin-bottom: 25px;
}

.tags-label {
  font-weight: 700;
  color: #333;
  margin-right: 10px;
}

.single-post-tags a {
  display: inline-block;
  padding: 4px 10px;
  margin-right: 8px;
  margin-bottom: 8px;
  background: #f5f5f5;
  color: #666;
  font-size: 13px;
  text-decoration: none;
  border-radius: 12px;
  transition: background-color 0.3s;
}

.single-post-tags a:hover {
  background: #12a265;
  color: white;
}

.single-post-share {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.share-label {
  font-weight: 700;
  color: #333;
}

.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-button {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.3s;
}

.share-button:hover {
  transform: translateY(-2px);
}

.share-x {
  background: #000000;
}

.share-facebook {
  background: #1877f2;
}

.share-line {
  background: #00b900;
}

/* 投稿ナビゲーション */
.post-navigation {
  margin: 40px 0;
}

.nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.nav-previous,
.nav-next {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.nav-link {
  display: block;
  padding: 20px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.3s;
}

.nav-link:hover {
  background: #f8f9fa;
}

.nav-direction {
  display: block;
  font-size: 12px;
  color: #12a265;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.nav-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.nav-next .nav-link {
  text-align: right;
}

@media (max-width: 1100px) {
  .logo-ss {
    height: 45px;
  }
  .header-container {
    padding: 0;
  }
  .main-navigation {
    padding: 0;
    gap: 10px;
  }
  .nav-link {
    padding: 10px 0;
  }
  .nav-item.cta-button {
    padding: 10px 10px;
  }
}

@media (max-width: 900px) {
  .logo-ss {
    height: 40px;
  }
}

/* 関連記事 */
.related-posts {
  margin: 60px 0 40px;
}

.related-posts-title {
  font-size: 28px;
  font-weight: 700;
  color: #272727;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.related-posts-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #12a265;
  border-radius: 2px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.related-post-item {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s;
}

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

.related-post-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related-post-thumbnail {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.related-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.related-post-item:hover .related-post-image {
  transform: scale(1.05);
}

.related-post-content {
  padding: 20px;
}

.related-post-date {
  display: block;
  font-size: 12px;
  color: #12a265;
  font-weight: 700;
  margin-bottom: 10px;
}

.related-post-title {
  font-size: 16px;
  font-weight: 700;
  color: #272727;
  line-height: 1.4;
  margin: 0;
}

/* トピックス一覧に戻る */
.back-to-topics {
  text-align: center;
  margin: 40px 0;
}

.back-to-topics-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #12a265;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.3s;
}

.back-to-topics-link:hover {
  background: #0f8552;
  transform: translateY(-2px);
}

.back-arrow {
  font-size: 16px;
  transition: transform 0.3s;
}

.back-to-topics-link:hover .back-arrow {
  transform: translateX(-3px);
}

/* モバイル対応 */
@media (max-width: 768px) {
  .single-post-main {
    padding: 20px 0;
  }

  .single-post-header {
    padding: 30px 20px;
  }

  .single-post-title {
    font-size: 24px;
  }

  .single-post-thumbnail {
    margin: 0 -20px -30px -20px;
  }

  .single-post-content {
    padding: 30px 20px;
  }

  .single-post-content h2 {
    font-size: 20px;
  }

  .single-post-footer {
    padding: 20px;
  }

  .nav-links {
    grid-template-columns: 1fr;
  }

  .nav-next .nav-link {
    text-align: left;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .related-posts-title {
    font-size: 24px;
  }

  .single-post-share {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
} 

@media (max-width: 768px) {
  .container-full-mobile-no-padding {
    padding-left: 0;
    padding-right: 0;
  }
  .hero-section {
    height: auto;
    min-height: 340px;
    padding-bottom: 0;
  }
  .hero-background {
    height: 220px;
    min-height: 180px;
    position: relative;
  }
  
  .hero-bg-image {
    height: 220px;
    min-height: 180px;
  }
  .hero-content {
    position: absolute;
    left: 0; top: 65px;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
    text-align: left;
    color: #12a265;
  }
  .hero-title {
    font-size: 32px;
    color: #12a265;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0;
    text-shadow: 0 2px 8px rgba(255,255,255,0.7);
  }
  
  .hero-section.white-text .hero-title {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  }
  
  .hero-section.white-text .hero-subtitle {
    color: #000000;
    text-shadow: none;
  }
  
  .hero-section.white-text .hero-cta {
    color: #000000;
    text-shadow: none;
  }
  
  .hero-section.white-text .hero-cta .arrow-icon {
    background-color: #ffffff;
  }
  
  .hero-section.white-text .hero-cta img {
    filter: brightness(0);
  }

  .hero-subtext-area {
    position: static;
    z-index: 3;
    background: #fff;
    color: #272727;
    padding: 18px 12px 30px 12px;
    margin: 0 auto;
    width: auto;
    max-width: 100%;
    text-align: left;
    overflow: visible;
  }
  .hero-subtitle {
    color: #272727;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 10px;
    background: none;
    padding: 0;
    width: 100%;
  }
  .hero-cta {
    margin-left: 0;
    font-size: 15px;
    padding: 10px 18px;
    bottom: 0;
    left: auto;
    right: 0;
  }
}
@media (max-width: 480px) {
  .hero-section {
    padding: 0;
    min-height: 0;
  }
  .hero-background {
    height: 140px;
    min-height: 100px;
  }
  
  .hero-bg-image {
    height: 140px;
    min-height: 100px;
  }
  .hero-content { top: 36px; padding: 0 15px; }
  .hero-title { font-size: 24px; }
  .hero-subtext-area {
    padding: 15px 15px 25px 15px;
    border-radius: 0 0 12px 12px;
  }
  .hero-subtitle { font-size: 12px; }
  .hero-cta { font-size: 13px; padding: 8px 14px; }
  
  .hero-section.white-text .hero-title {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  }
  
  .hero-section.white-text .hero-subtitle {
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  }
  
  .hero-section.white-text .hero-cta {
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  }
  
  .hero-section.white-text .hero-cta .arrow-icon {
    background-color: #ffffff;
  }
  
  .hero-section.white-text .hero-cta img {
    filter: brightness(0);
  }
} 

/* 投稿一覧テンプレート用スタイル */

/* カテゴリー・アーカイブヘッダー */
.category-header,
.archive-header,
.gallery-archive-header,
.gallery-category-header {
  margin-bottom: 40px;
  padding: 30px 0;
  border-bottom: 2px solid #12a265;
}

.category-title,
.archive-title,
.gallery-archive-title,
.gallery-category-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #333;
  margin: 0 0 15px 0;
  font-family: "Noto Sans JP", Helvetica, sans-serif;
}

.category-description,
.archive-description,
.gallery-archive-description,
.gallery-category-description {
  font-size: 1.1em;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ===========================
   PAGE STYLES (固定ページ)
   =========================== */

/* ページヒーローセクション */
.page-hero {
  position: relative;
  height: 400px;
  max-height: 400px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0;
}

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

.page-hero-image {
  width: 100%;
  height: 400px;
  max-height: 400px;
  min-height: 400px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-hero-default {
  background: linear-gradient(135deg, #12a265 0%, #0f8a54 100%);
}

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

.page-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  width: 100%;
  padding: 0 20px;
}

.page-hero-content .breadcrumb {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 14px;
}

.page-hero-content .breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-hero-content .breadcrumb a:hover {
  color: #fff;
}

.page-hero-content .breadcrumb-separator {
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.7);
}

.page-hero-content .current-page {
  color: rgba(255, 255, 255, 0.9);
}

.page-hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-family: "Noto Sans JP", Helvetica, sans-serif;
}

/* メインコンテンツ */
.main-content {
  margin-top: 60px;
}

/* ページ記事コンテナ */
.page-article {
  background: #fff;
  margin-bottom: 40px;
}



/* ページコンテンツ */
.page-content {
  padding: 40px 0;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
  margin-top: 2em;
  margin-bottom: 1em;
  font-weight: 600;
  line-height: 1.4;
  color: #222;
}

.page-content h1:first-child,
.page-content h2:first-child,
.page-content h3:first-child {
  margin-top: 0;
}

.page-content h2 {
  font-size: 1.8rem;
  padding-bottom: 0.5em;
  border-bottom: 2px solid #12a265;
}

.page-content h3 {
  font-size: 1.5rem;
  color: #12a265;
}

.page-content h4 {
  font-size: 1.3rem;
}

.page-content p {
  margin-bottom: 1.5em;
}

.page-content ul,
.page-content ol {
  margin-bottom: 1.5em;
  padding-left: 2em;
}

.page-content ul {
  list-style-type: disc;
}

.page-content ol {
  list-style-type: decimal;
}

.page-content li {
  margin-bottom: 0.5em;
}

.page-content blockquote {
  margin: 2em 0;
  padding: 20px 30px;
  background: #f8f9fa;
  border-left: 4px solid #12a265;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #555;
}

.page-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5em 0;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  background: #fff;
}

.page-content th,
.page-content td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.page-content th {
  background: #12a265;
  color: #fff;
  font-weight: 600;
}

.page-content tr:nth-child(even) {
  background: #f8f9fa;
}

/* ページメタ */
.page-meta {
  padding: 20px 0 30px;
  background: #fff;
}

.page-meta .edit-link a {
  color: #12a265;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.page-meta .edit-link a:hover {
  opacity: 1;
}

/* 404エラーページ */
.no-content {
  text-align: center;
  padding: 80px 0;
  background: #fff;
}

.no-content h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 20px;
  font-weight: 700;
}

.no-content p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

.back-home-button {
  display: inline-block;
  padding: 12px 30px;
  background: #12a265;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.back-home-button:hover {
  background: #0f8a54;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(18, 162, 101, 0.3);
}

/* Gutenbergブロックエディタ対応 */
.page-content .wp-block-group {
  margin: 2em 0;
}

.page-content .wp-block-separator {
  margin: 3em auto;
  border: none;
  border-top: 2px solid #12a265;
  width: 100px;
}

.page-content .wp-block-quote {
  margin: 2em 0;
  padding: 20px 30px;
  background: #f8f9fa;
  border-left: 4px solid #12a265;
  border-radius: 0 8px 8px 0;
}

.page-content .wp-block-button .wp-block-button__link {
  background: #12a265;
  border-radius: 6px;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.page-content .wp-block-button .wp-block-button__link:hover {
  background: #0f8a54;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(18, 162, 101, 0.3);
}

/* ===========================
   Page List Templates
   =========================== */

/* ページ一覧ヘッダー */
.page-list-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: 12px;
}

.page-list-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  font-family: "Noto Sans JP", Helvetica, sans-serif;
}

.page-list-description {
  font-size: 1.1em;
  color: #666;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* ブレッドクラム（ページ一覧用） */
.page-list-header .breadcrumb {
  margin-bottom: 20px;
  justify-content: center;
}

/* 投稿リスト（topicsの右側カラムと同じスタイル） */
.posts-grid,
.gallery-grid,
.gallery-category-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

/* 投稿アイテム（topic-itemと同じスタイル） */
.post-card,
.archive-gallery .gallery-item,
.gallery-category-item {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #cfcfcf;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  margin-bottom: 20px;
  overflow: hidden;
  min-height: 120px;
  position: relative;
  transition: all 0.3s ease;
}

.post-card:hover,
.archive-gallery .gallery-item:hover,
.gallery-category-item:hover {
  border-color: #12a265;
  box-shadow: 0 4px 20px rgba(18, 162, 101, 0.1);
}

.post-card:last-child,
.archive-gallery .gallery-item:last-child,
.gallery-category-item:last-child {
  margin-bottom: 0;
}

/* topic-card-linkスタイル（topicsと同じ） */
.post-card .topic-card-link,
.archive-gallery .gallery-item .topic-card-link,
.gallery-category-item .topic-card-link {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
  min-height: 120px;
  text-decoration: none;
  color: inherit;
}

/* サムネイル（topic-imageと同じスタイル） */
.post-thumbnail,
.archive-gallery .gallery-thumbnail,
.gallery-category-thumbnail {
  width: 160px;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  flex-shrink: 0;
}

.post-thumbnail img,
.archive-gallery .gallery-thumbnail img,
.gallery-category-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 投稿コンテンツ（topic-contentと同じスタイル） */
.post-content,
.archive-gallery .gallery-content,
.gallery-category-content {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
}

/* メタ情報 */
.post-meta,
.archive-gallery .gallery-meta,
.gallery-category-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 8px;
  font-size: 0.9em;
}

/* 日付（topic-dateと同じスタイル） */
.post-date,
.archive-gallery .gallery-date,
.gallery-category-date {
  color: #9e9e9e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

/* カテゴリー・タグ */
.post-category,
.gallery-category,
.gallery-category-tag {
  background: #12a265;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 500;
}

/* タイトル（topic-titleと同じスタイル） */
.post-title,
.archive-gallery .gallery-title,
.gallery-category-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #272727;
  line-height: 1.5;
  margin: 0 0 8px 0;
}

.post-title a,
.archive-gallery .gallery-title a,
.gallery-category-item-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title a:hover,
.archive-gallery .gallery-title a:hover,
.gallery-category-item-title a:hover {
  color: #12a265;
}

/* 抜粋 */
.post-excerpt,
.archive-gallery .gallery-excerpt,
.gallery-category-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
  font-size: 0.9em;
}

/* リンク */
.read-more,
.archive-gallery .gallery-link,
.gallery-category-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #12a265;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9em;
  transition: gap 0.3s ease;
}

.read-more:hover,
.archive-gallery .gallery-link:hover,
.gallery-category-link:hover {
  gap: 12px;
}

.read-more .arrow,
.archive-gallery .gallery-link .arrow,
.gallery-category-link .arrow {
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

.read-more:hover .arrow,
.archive-gallery .gallery-link:hover .arrow,
.gallery-category-link:hover .arrow {
  transform: translateX(4px);
}

/* 投稿が見つからない場合 */
.no-posts,
.archive-gallery .no-gallery-posts,
.no-gallery-category-posts {
  text-align: center;
  padding: 60px 20px;
  background: #f8f9fa;
  border-radius: 12px;
  margin: 40px 0;
}

.no-posts h2,
.archive-gallery .no-gallery-posts h2,
.no-gallery-category-posts h2 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.5em;
}

.no-posts p,
.archive-gallery .no-gallery-posts p,
.no-gallery-category-posts p {
  color: #666;
  margin: 0;
  font-size: 1.1em;
}

/* ページネーション */
.wp-pagenavi,
.navigation.pagination {
  display: flex !important;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0;
  text-align: center;
}

/* WordPressデフォルトのページネーション調整 */
.navigation.pagination {
  overflow: visible;
}

.navigation.pagination::before,
.navigation.pagination::after {
  display: none;
}

.navigation.pagination .nav-links {
  display: flex !important;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navigation.pagination .nav-links > * {
  display: inline-flex;
}

/* 数字ページネーション */
.wp-pagenavi a,
.wp-pagenavi span,
.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  background: #fff;
  border: 2px solid #12a265;
  color: #12a265;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

/* 前へ・次へボタン（ボーダーなし） */
.navigation.pagination .prev,
.navigation.pagination .next {
  background: #12a265;
  color: #fff;
  border: none !important;
  padding: 0 16px;
  font-weight: 600;
}

.navigation.pagination .prev:hover,
.navigation.pagination .next:hover {
  background: #0f8a56;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(18, 162, 101, 0.3);
}

/* 数字ボタンのホバー */
.wp-pagenavi a:hover,
.navigation.pagination .page-numbers:hover:not(.prev):not(.next) {
  background: #12a265;
  color: #fff;
}

/* 現在のページ */
.wp-pagenavi .current,
.navigation.pagination .current {
  background: #12a265;
  color: #fff;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .category-title,
  .archive-title,
  .gallery-archive-title,
  .gallery-category-title {
    font-size: 2em;
  }
  
  /* 固定ページ（タブレット） */
  .page-hero {
    height: 300px;
    max-height: 300px;
    min-height: 300px;
  }
  
  .page-hero-image {
    height: 300px;
    max-height: 300px;
    min-height: 300px;
  }
  
  .page-hero-title {
    font-size: 2.5rem;
  }
  
  .page-hero-content .breadcrumb {
    font-size: 13px;
  }
  
  .main-content {
    margin-top: 40px;
  }
  
  .page-content {
    padding: 30px 0;
    font-size: 15px;
  }
  
  .page-content h2 {
    font-size: 1.6rem;
  }
  
  .page-content h3 {
    font-size: 1.4rem;
  }
  
  .page-content h4 {
    font-size: 1.2rem;
  }
  
  .page-meta {
    padding: 15px 0 20px;
  }
  
  .no-content {
    padding: 60px 0;
  }
  
  .no-content h1 {
    font-size: 2rem;
  }
  
  .no-content p {
    font-size: 1rem;
  }

  /* ページ一覧ヘッダー（タブレット） */
  .page-list-header {
    padding: 30px 15px;
    margin-bottom: 30px;
  }
  
  .page-list-title {
    font-size: 2em;
    margin-bottom: 12px;
  }
  
  .page-list-description {
    font-size: 1em;
  }
  
  .post-card,
  .archive-gallery .gallery-item,
  .gallery-category-item {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
  }
  
  .post-thumbnail,
  .archive-gallery .gallery-thumbnail,
  .gallery-category-thumbnail {
    width: 30%;
    height: 140px;
  }
  
  .post-content,
  .archive-gallery .gallery-content,
  .gallery-category-content {
    padding: 16px 20px;
  }
  
  .post-title,
  .archive-gallery .gallery-title,
  .gallery-category-item-title {
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .category-header,
  .archive-header,
  .gallery-archive-header,
  .gallery-category-header {
    padding: 20px 0;
    margin-bottom: 30px;
  }
  
  .category-title,
  .archive-title,
  .gallery-archive-title,
  .gallery-category-title {
    font-size: 1.8em;
  }
  
  /* 固定ページ（モバイル） */
  .page-hero {
    height: 250px;
    max-height: 250px;
    min-height: 250px;
  }
  
  .page-hero-image {
    height: 250px;
    max-height: 250px;
    min-height: 250px;
  }
  
  .page-hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .page-hero-content .breadcrumb {
    font-size: 12px;
    margin-bottom: 15px;
  }
  
  .page-hero-content .breadcrumb-separator {
    margin: 0 8px;
  }
  
  .main-content {
    margin-top: 30px;
  }
  
  .page-content {
    padding: 20px 0;
    font-size: 14px;
  }
  
  .page-content h2 {
    font-size: 1.4rem;
  }
  
  .page-content h3 {
    font-size: 1.2rem;
  }
  
  .page-content h4 {
    font-size: 1.1rem;
  }
  
  .page-content ul,
  .page-content ol {
    padding-left: 1.5em;
  }
  
  .page-content blockquote {
    padding: 15px 20px;
    margin: 1.5em 0;
  }
  
  .page-content table {
    font-size: 13px;
  }
  
  .page-content th,
  .page-content td {
    padding: 8px 10px;
  }
  
  .page-meta {
    padding: 12px 0 15px;
  }
  
  .no-content {
    padding: 40px 0;
  }
  
  .no-content h1 {
    font-size: 1.8rem;
  }
  
  .no-content p {
    font-size: 0.95rem;
  }
  
  .back-home-button {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .post-meta,
  .gallery-meta,
  .gallery-category-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .wp-pagenavi,
  .navigation.pagination {
    gap: 8px;
    margin: 30px 0;
  }
  
  .navigation.pagination .nav-links {
    gap: 8px;
  }
  
  .wp-pagenavi a,
  .wp-pagenavi span,
  .navigation.pagination .page-numbers {
    min-width: 35px;
    height: 35px;
    font-size: 0.9em;
    padding: 0 6px;
  }
  
  .navigation.pagination .prev,
  .navigation.pagination .next {
    padding: 0 12px;
    font-size: 0.85em;
  }
  
  /* ページ一覧ヘッダー（モバイル） */
  .page-list-header {
    padding: 20px 10px;
    margin-bottom: 20px;
  }
  
  .page-list-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }
  
  .page-list-description {
    font-size: 0.95em;
  }
}

/* ===========================
   Single Gallery Page
   =========================== */

/* ギャラリー個別ページメイン */
.single-gallery-main {
  padding: 40px 0;
  background: #fff;
}

/* ギャラリー記事 */
.single-gallery-article {
  margin: 0 auto 40px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ギャラリーヘッダー */
.single-gallery-header {
  padding: 40px 40px 0;
}

.single-gallery-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.single-gallery-date {
  color: #9e9e9e;
  font-size: 14px;
  font-weight: 600;
}

.single-gallery-categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gallery-category-link {
  background: #12a265;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.gallery-category-link:hover {
  background: #0f8a56;
  transform: translateY(-1px);
}

.single-gallery-title {
  font-size: 2.2em;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
  margin-bottom: 30px;
  font-family: "Noto Sans JP", Helvetica, sans-serif;
}

.single-gallery-thumbnail {
  margin-bottom: 0;
}

.single-gallery-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* ギャラリーコンテンツ */
.single-gallery-content {
  padding: 40px;
  line-height: 1.8;
  font-size: 1.1em;
  color: #333;
}

.single-gallery-content p {
  margin-bottom: 1.5em;
}

.single-gallery-content ul,
.single-gallery-content ol {
  margin: 20px 0;
  padding-left: 25px;
}

.single-gallery-content ul {
  list-style-type: disc;
}

.single-gallery-content ol {
  list-style-type: decimal;
}

.single-gallery-content li {
  margin-bottom: 8px;
}

.single-gallery-content h2,
.single-gallery-content h3,
.single-gallery-content h4 {
  margin: 2em 0 1em;
  color: #333;
  font-weight: bold;
}

.single-gallery-content h2 {
  font-size: 1.6em;
  border-bottom: 2px solid #12a265;
  padding-bottom: 10px;
}

.single-gallery-content h3 {
  font-size: 1.4em;
}

.single-gallery-content h4 {
  font-size: 1.2em;
}

/* ギャラリーフッター */
.single-gallery-footer {
  padding: 0 40px 40px;
  border-top: 1px solid #eee;
  padding-top: 30px;
}

.single-gallery-share {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.single-gallery-share .share-label {
  font-weight: 700;
  color: #333;
}

/* ギャラリーナビゲーション */
.gallery-navigation {
  margin: 40px auto;
  max-width: 800px;
}

.gallery-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.gallery-navigation .nav-previous,
.gallery-navigation .nav-next {
  flex: 1;
  max-width: 48%;
}

.gallery-navigation .nav-link {
  display: block;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.gallery-navigation .nav-link:hover {
  background: #12a265;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(18, 162, 101, 0.2);
}

.gallery-navigation .nav-link:hover .nav-direction,
.gallery-navigation .nav-link:hover .nav-title {
  color: #fff;
}

.gallery-navigation .nav-direction {
  display: block;
  font-size: 0.9em;
  color: #666;
  margin-bottom: 5px;
}

.gallery-navigation .nav-link:hover .nav-direction {
  color: rgba(255, 255, 255, 0.8);
}

.gallery-navigation .nav-title {
  display: block;
  font-weight: 600;
  line-height: 1.4;
}

/* 関連ギャラリー */
.related-galleries {
  margin: 40px auto;
  max-width: 800px;
}

.related-galleries-title {
  font-size: 1.8em;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
  font-family: "Noto Sans JP", Helvetica, sans-serif;
}

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

.related-gallery-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.related-gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-gallery-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related-gallery-thumbnail {
  aspect-ratio: 16/9;
  overflow: hidden;
}

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

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

.related-gallery-content {
  padding: 20px;
}

/* 関連コンテンツのメタ情報 */
.related-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 10px;
}

.related-gallery-date {
  color: #9e9e9e;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 0;
  display: block;
}

/* 投稿タイプバッジ */
.related-item-type {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.related-item-type.gallery-type {
  background: #12a265;
  color: #fff;
}

.related-item-type.post-type {
  background: #ff6b35;
  color: #fff;
}

.related-gallery-title {
  font-size: 1.1em;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  margin: 0;
}

/* ギャラリー一覧に戻る */
.back-to-gallery {
  text-align: center;
  margin: 40px auto;
  max-width: 800px;
}

.back-to-gallery-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: #12a265;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.back-to-gallery-link:hover {
  background: #0f8a56;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(18, 162, 101, 0.3);
}

.back-arrow {
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.back-to-gallery-link:hover .back-arrow {
  transform: translateX(-3px);
}

/* ギャラリー個別ページ - レスポンシブ対応 */
@media (max-width: 768px) {
  .single-gallery-main {
    padding: 20px 0;
  }
  
  .single-gallery-header {
    padding: 30px 20px 0;
  }
  
  .single-gallery-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  
  .single-gallery-content {
    padding: 30px 20px;
    font-size: 1em;
  }
  
  .single-gallery-footer {
    padding: 0 20px 30px;
    padding-top: 20px;
  }
  
  .gallery-navigation .nav-links {
    flex-direction: column;
  }
  
  .gallery-navigation .nav-previous,
  .gallery-navigation .nav-next {
    max-width: 100%;
  }
  
  .related-galleries-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .related-galleries-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .single-gallery-header {
    padding: 20px 15px 0;
  }
  
  .single-gallery-title {
    font-size: 1.5em;
  }
  
  .single-gallery-content {
    padding: 20px 15px;
  }
  
  .single-gallery-footer {
    padding: 0 15px 20px;
  }
  
  .single-gallery-meta {
    gap: 10px;
  }
  
  .gallery-navigation .nav-link {
    padding: 15px;
  }
  
  .related-gallery-content {
    padding: 15px;
  }
  
  .related-item-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .related-item-type {
    align-self: flex-end;
  }
  
  .back-to-gallery-link {
    padding: 12px 24px;
    font-size: 0.9em;
  }
}

/* ===========================
   Contact Page
   =========================== */

/* お問い合わせページヘッダー */
.contact-page-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 50px 20px;
  background: #f8f9fa;
  border-radius: 12px;
}

.contact-page-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  font-family: "Noto Sans JP", Helvetica, sans-serif;
}

.contact-page-description {
  font-size: 1.1em;
  color: #666;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

/* お問い合わせフォームセクション */
.contact-form-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.contact-form-container {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Form 7 スタイル */
.wpcf7 {
  margin: 0;
}

.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.wpcf7-form-control-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.wpcf7-form-control {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.wpcf7-form-control:focus {
  outline: none;
  border-color: #12a265;
  box-shadow: 0 0 0 3px rgba(18, 162, 101, 0.1);
}

.wpcf7-textarea {
  min-height: 120px;
  resize: vertical;
}

.wpcf7-submit {
  background: #12a265;
  color: #fff;
  border: none;
  padding: 18px 40px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: center;
  margin-top: 20px;
}

.wpcf7-submit:hover {
  background: #0f8a56;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(18, 162, 101, 0.3);
}

/* フォームラベル */
.wpcf7-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

/* 必須マーク */
.wpcf7-form .required {
  color: #e74c3c;
  margin-left: 4px;
}

/* バリデーションメッセージ */
.wpcf7-not-valid-tip {
  color: #e74c3c;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}

.wpcf7-validation-errors {
  background: #ffeaea;
  color: #e74c3c;
  padding: 15px 20px;
  border-radius: 8px;
  border-left: 4px solid #e74c3c;
  margin-bottom: 20px;
}

/* 送信完了メッセージ */
.wpcf7-mail-sent-ok {
  background: #e8f5e8;
  color: #27ae60;
  padding: 15px 20px;
  border-radius: 8px;
  border-left: 4px solid #27ae60;
  margin-bottom: 20px;
}

/* スピナー */
.wpcf7-spinner {
  margin-left: 10px;
}

/* お問い合わせ情報 */
.contact-info {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.contact-info-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #333;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #12a265;
  font-family: "Noto Sans JP", Helvetica, sans-serif;
}

.contact-info-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-info-item h4 {
  font-size: 1.1em;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.contact-info-item p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.contact-info-item strong {
  color: #12a265;
  font-weight: 700;
}

/* ページコンテンツ */
.contact-page-content {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
}

.contact-page-content ul,
.contact-page-content ol {
  margin: 20px 0;
  padding-left: 25px;
}

.contact-page-content ul {
  list-style-type: disc;
}

.contact-page-content ol {
  list-style-type: decimal;
}

.contact-page-content li {
  margin-bottom: 8px;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .contact-form-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .contact-page-header {
    padding: 40px 20px;
    margin-bottom: 40px;
  }
  
  .contact-page-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  
  .contact-page-description {
    font-size: 1em;
  }
  
  .contact-form-container,
  .contact-info,
  .contact-page-content {
    padding: 25px;
  }
  
  .wpcf7-form-control {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .wpcf7-submit {
    padding: 15px 30px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .contact-page-header {
    padding: 30px 15px;
    margin-bottom: 30px;
  }
  
  .contact-page-title {
    font-size: 1.8em;
  }
  
  .contact-page-description {
    font-size: 0.95em;
  }
  
  .contact-form-container,
  .contact-info,
  .contact-page-content {
    padding: 20px;
  }
  
  .wpcf7-form {
    gap: 20px;
  }
  
  .contact-info-content {
    gap: 20px;
  }
}

/* ============================================
   歴史ページ（History Page）スタイル
   ============================================ */

.history-timeline {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
  position: relative;
}

.history-event {
  position: relative;
  margin-bottom: 60px;
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.history-year {
  font-size: 2.5em;
  font-weight: 700;
  color: #12a265;
  font-family: "Noto Sans JP", Helvetica, sans-serif;
  min-width: 120px;
  text-align: right;
  line-height: 1.2;
  flex-shrink: 0;
}

.history-content-wrapper {
  flex: 1;
  position: relative;
  padding-left: 40px;
}

.history-timeline-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: -60px;
  width: 3px;
  background: linear-gradient(to bottom, #12a265, #e0e0e0);
  border-radius: 2px;
}

.history-event:last-child .history-timeline-line {
  bottom: 0;
}

.history-content {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  transition: box-shadow 0.3s ease;
}

.history-content:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.history-image {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
}

.history-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.history-text {
  color: #333;
}

.history-title {
  font-size: 1.5em;
  font-weight: 700;
  color: #272727;
  margin-bottom: 15px;
  font-family: "Noto Sans JP", Helvetica, sans-serif;
  line-height: 1.4;
}

.history-description {
  font-size: 1em;
  line-height: 1.8;
  color: #555;
  font-family: "Noto Sans JP", Helvetica, sans-serif;
}

.history-page-content {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #e0e0e0;
}

.history-page-content ul,
.history-page-content ol {
  margin: 20px 0;
  padding-left: 25px;
}

.history-page-content ul {
  list-style-type: disc;
}

.history-page-content ol {
  list-style-type: decimal;
}

.history-page-content li {
  margin-bottom: 8px;
}

/* レスポンシブ対応 - 歴史ページ */
@media (max-width: 768px) {
  .history-timeline {
    margin: 40px auto;
    padding: 0 15px;
  }

  .history-event {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
  }

  .history-year {
    min-width: auto;
    text-align: left;
    font-size: 2em;
    padding-left: 0;
  }

  .history-content-wrapper {
    padding-left: 30px;
  }

  .history-timeline-line {
    left: 0;
  }

  .history-content {
    padding: 25px 20px;
  }

  .history-title {
    font-size: 1.3em;
  }

  .history-description {
    font-size: 0.95em;
    line-height: 1.7;
  }
}

@media (max-width: 480px) {
  .history-timeline {
    margin: 30px auto;
    padding: 0 10px;
  }

  .history-event {
    margin-bottom: 40px;
  }

  .history-year {
    font-size: 1.8em;
  }

  .history-content-wrapper {
    padding-left: 25px;
  }

  .history-content {
    padding: 20px 15px;
  }

  .history-title {
    font-size: 1.2em;
    margin-bottom: 12px;
  }

  .history-description {
    font-size: 0.9em;
  }
} 