/* ==============================================
   50周年式典特設テンプレート専用CSS
   ============================================== */

/* ==============================================
   50周年式典特設テンプレート専用CSS
   ============================================== */

html {
  scroll-behavior: smooth;
}

:target {
  scroll-margin-top: 80px;
}

@media screen and (max-width: 768px) {
  :target {
    scroll-margin-top: 60px;
  }
}

.pc {
  display: none;
}

.sp {
  display: block;
}

@media screen and (max-width: 768px) {
  .pc {
    display: block;
  }

  .sp {
    display: none;
  }
}

.anniversary-page p {
  font-weight: 400;
}

/* リセット・基本設定 */
.anniversary-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.anniversary-page {
  font-family: "Noto Sans JP", "Open Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==============================================
   共通コンポーネント
   ============================================== */

/* セクションコンテナ */
.section-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 1108px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-container .section-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

@media screen and (max-width: 768px) {
  .section-container {
    padding: 40px 16px;
    gap: 32px;
  }
}

/* セクションヘッダー */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

@media screen and (max-width: 768px) {
  .section-header {
    gap: 16px;
  }
}

/* セクションタイトル */
.section-title {
  font-size: 32px;
  font-weight: 500;
  color: #14b4e6;
  letter-spacing: 0.02em;
  text-align: center;
  margin: 0;
}

@media screen and (max-width: 768px) {
  .section-title {
    font-size: 20px;
    line-height: 1.6;
    letter-spacing: 0;
  }
}

/* セクション区切り線 */
.section-divider {
  width: 72px;
  height: 2px;
  background: #14b4e6;
}

/* セクション サブタイトル */
.section-subtitle {
  font-size: 18px;
  color: #14b4e6;
  margin: 0;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .section-subtitle {
    font-size: 16px;
  }
}

/* レスポンシブ画像 */
.image-responsive {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* ボタン */
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 22px 100px;
  border: 1px solid #1d4c5e;
  border-radius: 8px;
  background: transparent;
  color: #000;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.button-primary:hover {
  background: #1d4c5e;
  color: #fff;
}

@media screen and (max-width: 768px) {
  .button-primary {
    padding: 16px 40px;
    font-size: 16px;
    width: 100%;
  }
}

/* ==============================================
   ヒーローセクション
   ============================================== */

.hero-section {
  background-image: url("../img/anniversary/hero-bg-pc.jpg");

  @media screen and (max-width: 768px) {
    background-image: url("../img/anniversary/hero-bg-sp.jpg");
  }

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 536px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #fff;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.3));
}

@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 32px;
    line-height: 1.6;
  }
}

/* ==============================================
   ナビゲーションセクション
   ============================================== */

.navigation-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 64px;
  padding: 64px 24px;
}

.navigation-section iframe {
  width: 100%;
  max-width: 1060px;
  aspect-ratio: 16/9;
}

.anniversary-nav {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  list-style: none;
  flex-wrap: wrap;
  width: 100%;
  max-width: 800px;
}

.nav-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 19.5%;
}

.nav-item > a {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-item:first-child:before {
  content: "";
  display: inline-block;
  width: 2px;
  height: 80px;
  background-color: #14b4e6;
  position: absolute;
  left: -24px;
}

.nav-item::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 80px;
  background-color: #14b4e6;
  position: absolute;
  right: -24px;
}

.nav-item {
  position: relative;
}

.nav-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.nav-content:hover {
  opacity: 0.7;
}

.nav-title {
  font-size: 24px;
  color: #0f1835;
  font-weight: 400;
  line-height: 1.8;
}

.nav-icon {
  font-size: 32px;
  color: #14b4e6;
}

@media screen and (max-width: 768px) {
  .navigation-section {
    gap: 48px;
    padding: 64px 24px;
  }

  .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    row-gap: 64px;
  }

  .nav-item {
    width: calc(50% - 24px);
  }

  .nav-item > a {
    flex-direction: row;
  }

  .nav-item:first-child:before {
    display: none;
  }

  .nav-item::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: #14b4e6;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -16px;
  }

  .nav-item:not(:last-child)::after {
  }

  .nav-title {
    font-size: 20px;
  }

  .nav-icon {
    font-size: 24px;
  }
}

/* ==============================================
   歴史セクション
   ============================================== */

.history-section {
  background: #14b4e6;
  color: #fff;
}

.history-section .section-title {
  color: #fff;
}

.history-section .section-divider {
  background: #fff;
}

.history-text {
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}

.history-image {
}

@media screen and (max-width: 768px) {
  .history-text {
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
  }
}

/* ==============================================
   メッセージセクション
   ============================================== */

.message-section {
  background: #fff;
}

.message-section .section-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.message-text {
  max-width: 800px;
}

.message-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #000;
  text-align: center;
}

.message-image {
  max-width: 400px;
}

@media screen and (max-width: 768px) {
  .message-text p {
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
  }

  .message-section .section-content {
    gap: 24px;
  }
}

/* ==============================================
   ビジョンセクション
   ============================================== */

.vision-section {
  background: #fff;
}

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

.vision-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.vision-text {
}

.vision-main-title {
  font-size: 32px;
  font-weight: 700;
  color: #000;
  text-align: center;
  margin-bottom: 24px;
}

.vision-description {
  font-size: 16px;
  line-height: 1.8;
}

.vision-image {
  width: 100%;
}

@media screen and (max-width: 768px) {
  .vision-main-title {
    font-size: 20px;
    line-height: 1.4;
  }

  .vision-description {
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
  }

  .vision-content {
    gap: 24px;
  }
}

/* ==============================================
   活動セクション
   ============================================== */

.activity-section {
  background: #fff;
}

@media screen and (max-width: 768px) {
  .activity-section .section-container {
    gap: 0;
  }
}

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

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1108px;
  padding: 0 24px;
}

.activity-card {
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.activity-title {
  font-size: 18px;
  letter-spacing: 0;
  color: #14b4e6;
  font-weight: 400;
}

.activity-description {
  font-size: 14px;
  line-height: 1.8;
  color: #000;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .activity-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .activity-card {
    gap: 24px;
  }

  .activity-image {
  }

  .activity-title {
    font-size: 20px;
  }
}

/* ==============================================
   お問い合わせセクション
   ============================================== */

#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px 24px 80px 24px;
  width: 100%;
}

.contact-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact-text {
  font-size: 18px;
  line-height: 1.8;
  color: #000;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .contact-text {
    font-size: 16px;
    margin-bottom: 24px;
  }
}

/* ==============================================
   アニメーション・トランジション
   ============================================== */

/* スクロールアニメーション用のクラス（必要に応じて追加） */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* スムーススクロール */
html {
  scroll-behavior: smooth;
}

/* フォーカス時のアウトライン */
.nav-content:focus,
.button-primary:focus {
  outline: 2px solid #14b4e6;
  outline-offset: 2px;
}

/* ホバーエフェクト */
.activity-card,
.nav-content,
.button-primary {
  transition: all 0.3s ease;
}

/* 印刷スタイル */
@media print {
  .navigation-section,
  .contact-section {
    display: none;
  }

  .section-container {
    padding: 20px 0;
  }

  .hero-section {
    min-height: 200px;
  }
}
