html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: YakuHanJP, "Noto Sans CJK JP", "Noto Sans JP", sans-serif,
    "游ゴシック", "Yu Gothic", Yu Gothic, "Hiragino Kaku Gothic ProN",
    "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "ＭＳ ゴシック";
  font-size: 15px;

  line-height: 1.6;
  letter-spacing: 0.1em;
  color: #333;
  background-color: #d9faff;
}

/* ハンバーガーメニュー表示時のスクロール無効 */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
}

/* 画面幅が600px以下でさらに縮小 */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  body {
    font-size: 0.9rem;
  }
}


h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  margin-bottom: 1rem;
}

h2,
h3 {
  letter-spacing: 0.1em;
}

/* ヘッダー全体 */
.site-header {
  background: #d9faff;
  color: #222;
  padding: 0.5rem 0;
  margin-top: 0;
  margin-bottom: 0;
  z-index: 999;
  position: relative;
}

/* ヘッダー内のコンテナ */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ロゴ */
.logo img {
  height: auto;
  width: 280px;
  display: block;
}

/* ナビゲーション */
.nav {
  display: flex;
}

.nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: #333;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  transition: color 0.2s;
}

/* メニュー切替ボタン（モバイル用） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
}

.nav-toggle .bar {
  display: block;
  width: 28px;
  height: 2px;
  margin: 4px 0;
  background: #222;
  border-radius: 3px;
  transition: 0.3s;
}

/* メニュー展開時はバツ印に変形 */
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.nav-overlay {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 104px;
  /* ヘッダーの高さ分だけ下げる */
  bottom: 0;
  background: #d9faff;
  z-index: 100;
}

/* メニュー表示時にオーバーレイを表示 */
.nav[aria-expanded="true"]~.nav-overlay {
  display: block;
}

/* レスポンシブ対応 */
/* レスポンシブ：ハンバーガーメニュー表示時のみ縦並び＆全画面表示 */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    flex-direction: column;
    background: transparent;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    justify-content: flex-start;
    align-items: center;
    z-index: 101;
    padding-top: 140px;
  }

  .nav[aria-expanded="true"] {
    display: flex;
  }

  .nav ul {
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    justify-content: flex-start;
    height: auto;
    margin: 0;
    padding: 0;
  }

  .nav a {
    color: #333;
    font-size: 1.4rem;
    /* font-weight: bold; */
    text-decoration: none;
    transition: color 0.2s;
  }

  .nav a:hover {
    color: #50b6e2;
  }
}

/* アニメーション */
.fade-in-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* テキストのアニメーション調整 */
.fade-in-up.is-visible {
  opacity: 1;
  transform: none;
  transition-delay: 0.1s;
  /* テキストを先に表示 */
}

/* または、より具体的に */
.fade-in-up.delay {
  transition-delay: 0.3s;
}

.section-title {
  text-align: center;
  color: #50b6e2;
  font-size: 2.2rem;
  font-weight: bold;
  /* margin-bottom: 1rem; */
  letter-spacing: 0.05em;
}

/* セクションラベル */
.section-label {
  display: block;
  color: #50b6e2;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.15em;
  text-align: center;
}

/* 
--------
アクションセクション
--------
 */

.action1-subtitle {
  color: #fff;
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  font-weight: bold;
}

.action-list {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 1000px) {
  .action-list {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

.action-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  max-width: 900px;
  margin: 0 1rem;
}

.action-item .action-text {
  flex: 1 1 0;
  text-align: left;
}

.action-item img {
  flex: 0 0 auto;
  width: 220px;
  height: auto;
}

.section-title {
  color: #333;
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  display: block;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

.action-text p {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  text-align: left;
  word-break: break-word;
  line-height: 2.0;
  margin-bottom: 4px;
}

.action-text .action-date {
  color: #477285;
  font-weight: bold;
}

.action-text .action-thema {
  font-size: 16px;
}

.action-item {
  border-radius: 16px;
  padding: 0rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: center;
  max-width: 900px;
}

.history-text {
  margin-bottom: 80px;
}

h4 {
  font-size: 1.1rem;
}

h3 {
  text-align: center;
}

.action-text .about-main-text {
  margin-bottom: 4rem;
}

.action-text .about-main-text p {
  font-size: 1.2rem;
  /* 大きく */
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* "YOU SHOP, WE DONATE"を小さく */
.action-text .about-main-text p:last-child {
  font-size: 1rem;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .action-item {
    /* flex-direction: column; */
    text-align: center;
    margin-left: 1rem;
    margin-right: 1rem;
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
  }

  .action-item img {
    margin-bottom: 1rem;
    width: 100%;
    height: auto;
    max-width: 300px;
  }

}

@media (max-width: 768px) {}

/* 左画像のフェードインを先に */
.fade-in-left.is-visible {
  opacity: 1;
  transform: none;
  transition-delay: 0.1s;
}

/* 右画像のフェードインを遅らせる */
.fade-in-right.is-visible {
  opacity: 1;
  transform: none;
  transition-delay: 0.6s;
}

/* 
--------
Contactセクション
--------
 */

#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.link-section {
  padding: 2.5rem 1rem;
}

#contact .section-title {
  font-size: 1.3rem;
  color: #222;
}

.link-images {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.link-images a {
  display: block;
  overflow: hidden;
  transition: opacity 0.3s;
}

.link-images a img {
  width: 180px;
  height: 90px;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}

.link-images a:hover img {
  opacity: 0.6;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
  align-items: center;
}

.contact-btn {
  display: inline-block;
  padding: 1rem;
  background: #DE8600;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 200px;
}

.contact-btn:hover {
  background: #FAC76F;
}

@media (min-width: 768px) {
  .contact-buttons {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}


/* フッター全体 */
.site-footer {
  background-color: #FFFBCF;
  /* color: #fff; */
  color: #333;
}

.footer-content {
  display: flex;
  justify-content: center;
  /* space-betweenからcenterに変更 */
  align-items: flex-start;
  gap: 8rem;
  /* gapを大きくして適度な間隔を確保 */
  max-width: 800px;
  /* 最大幅を設定 */
  margin: 0 auto;
  /* 中央寄せ */
  padding: 4rem 0 2rem;
}

.footer-left {
  flex: 0 0 auto;
  /* flexを固定幅に変更 */
  text-align: left;
}

.footer-left .logo img {
  width: 240px;
  height: auto;
  margin-bottom: 1rem;
}

.footer-left p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  /* color: #666; */
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  /* flex-endからflex-startに変更 */
  flex: 0 0 auto;
  /* flexを固定幅に変更 */
}

.footer-right a {
  color: #333;
  /* color: #fff; */
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-right a:hover {
  color: #333;
}

/* フッターのコピーライト部分 */
.site-footer p.footer-copy {
  text-align: center;
  /* 中央寄せ */
  font-size: 0.6rem;
  /* 小さい文字 */
  margin-bottom: 0;
  padding-bottom: 1rem;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    /* 要素全体を中央寄せ */
    text-align: left;
    /* テキストは左揃え */
    gap: 2rem;
  }

  .footer-left {
    text-align: left;
    /* 左揃えを維持 */
    width: 100%;
    /* 幅を統一 */
    max-width: 280px;
    /* 最大幅を設定 */
  }

  .footer-right {
    align-items: flex-start;
    /* 左揃え */
    width: 100%;
    /* 幅を統一 */
    max-width: 280px;
    /* 最大幅を設定 */
  }
}

/* 戻るボタン */
.pagetop {
  height: 50px;
  width: 50px;
  position: fixed;
  right: 10px;
  bottom: 10px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.pagetop__arrow {
  height: 15px;
  width: 15px;
  border-top: 3px solid #333;
  border-right: 3px solid #333;
  transform: translateY(20%) rotate(-45deg);
}

.history-images {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  justify-content: center;
  flex-wrap: wrap;
}

.history-images img {
  flex: 1;
  min-width: 0;
  max-width: 300px;
  height: auto;
  border-radius: 12px;
  /* 角丸 */
  object-fit: cover;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
}

@media (max-width: 768px) {
  .history-images {
    flex-wrap: wrap;
  }

  .history-images img {
    flex: 1 1 calc(50% - 0.5rem);
    /* モバイルでは2列表示 */
    max-width: none;
  }
}

/* グッズ画像用（2つ横並び） */
.goods-images {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  justify-content: center;
  align-items: center;
}

.goods-images img {
  flex: 1;
  max-width: 350px;
  /* 2つなので少し大きめに */
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .goods-images {
    flex-direction: column;
    /* モバイルでは縦並び */
    gap: 1.5rem;
  }

  .goods-images img {
    max-width: 400px;
    /* 縦並び時は少し大きく */
  }
}

/* 単体画像のスタイル */
.allstar-images img {
  max-width: 1200px;
  /* 最大幅を指定 */
  width: 100%;
  /* レスポンシブ対応 */
  height: auto;
  border-radius: 12px;
  /* 角丸 */
  object-fit: cover;
  margin: 2rem 0;
  /* 上下の余白 */
  display: block;
  margin-left: auto;
  margin-right: auto;
  /* 中央寄せ */
}

@media (max-width: 768px) {
  .allstar-images img {
    margin: 1rem 0;
    /* 上下の余白 */
  }
}

/* ムービー */
.video-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1rem 0;
}

.video-wrapper {
  flex: 1;
  max-width: 450px;
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 28.125%;
  /* 16:9の半分の高さ（横並び用） */
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: none;
}

@media (max-width: 768px) {
  .video-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .video-wrapper {
    max-width: 100%;
    padding-bottom: 56.25%;
    /* モバイル時は通常の16:9比率に戻す */
  }
}

/* アクションセクションを相対位置に */
.action1-section {
  position: relative;
  overflow: visible;
  /* はみ出しを許可 */
}

.action-list {
  position: relative;
}

/* 大きな円のスタイル */
.big-circle {
  position: absolute;
  right: -150px;
  top: 10%;
  width: 800px;
  height: 800px;
  background: #fffde9;
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transform: scale(0);
  /* transform-origin: center center; */
}

/* アニメーション開始クラス */
.big-circle.animate-start {
  animation: scaleBigCircle 0.7s ease-out forwards;
}

@keyframes scaleBigCircle {
  0% {
    opacity: 0;
    transform: scale(0);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* モバイル時の調整 */
@media (max-width: 768px) {
  .big-circle {
    right: -250px;
    top: 15%;
    width: 600px;
    height: 600px;
    /* transform-origin: center center; */
    /* モバイルでも中心基準 */
  }
}

/* 左側の円のスタイル */
.left-circle {
  position: absolute;
  left: -150px;
  /* 左側にはみ出させる */
  top: 60%;
  /* 異なる位置に配置 */
  width: 700px;
  height: 700px;
  background: #fffde9;
  /* 異なる色（青色） */
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transform: scale(0);
  /* transform-origin: center center; */
}

/* アニメーション開始クラス */
.left-circle.animate-start {
  animation: scaleLeftCircle 0.7s ease-out forwards;
}

@keyframes scaleLeftCircle {
  0% {
    opacity: 0;
    transform: scale(0);
  }

  100% {
    opacity: 0.8;
    /* 少し透明に */
    transform: scale(1);
  }
}

/* モバイル時の調整 */
@media (max-width: 768px) {
  .left-circle {
    left: -200px;
    top: 65%;
    width: 500px;
    height: 500px;
  }
}

/* ========= New Section ========= */
.new-section {
  padding: 10px 0 40px;
  /* background-color: #f8f9fa; */
}

.new-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  /* space-betweenからcenterに変更 */
  gap: 0rem;
  max-width: 1200px;
  margin: 0 auto;
}

.new-img {
  flex: 0 0 auto;
  /* flexを固定に変更 */
  max-width: 500px;
}

.new-img img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.new-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 2.8rem;
  letter-spacing: 0.1em;
  color: #333;
  font-weight: 600;
  flex: 0 0 auto;
  /* flexを固定に変更 */
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-left: 2rem;
}

/* New Section - 日本語テキスト */
.new-jp {
  background: #FAC76F;
  /* 黄色の背景 */
  padding: 0.1em;
  margin: 0.8em 0.2em;
  display: inline-block;
  vertical-align: top;
  white-space: nowrap;
}

/* New Section - 英語テキスト */
.new-en {
  font-size: 0.8rem;
  /* 小さいフォントサイズ */
  letter-spacing: 0em;
  writing-mode: vertical-rl;
  /* 縦書きを維持 */
  text-orientation: mixed;
  /* 英語の文字向き */
  margin-top: 2.5rem;
  background: none;
  /* 背景色なし */
  padding: 0;
  /* パディングなし */
  line-height: 1.6;
}

/* テスト用の円 - アニメーションなし */
.test-circle {
  position: absolute;
  right: 40%;
  top: 5%;
  width: 600px;
  height: 600px;
  background: #fffde9;
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transform: scale(0);
  /* translateを削除してscaleのみに */
  /* transform-origin: center center; 中心を基準に拡大 */
}

/* アニメーション開始クラス */
.test-circle.animate-start {
  animation: scaleTestCircle 0.8s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes scaleTestCircle {
  0% {
    opacity: 0;
    transform: scale(0);
    /* translateを削除 */
  }

  100% {
    opacity: 0.8;
    transform: scale(1);
    /* translateを削除 */
  }
}

/* New Sectionを相対位置に */
.new-section {
  position: relative;
  overflow: visible;
}

.new-inner {
  position: relative;
}

/* モバイル時の調整 */
@media (max-width: 768px) {
  .new-img {
    max-width: 300px;
  }

  .test-circle {
    position: absolute;
    width: 350px;
    height: 350px;
  }

  .new-text {
    font-size: 2rem;
  }

  .new-en {
    font-size: 0.7rem;
    margin-top: 1.8rem;
  }
}

@media (max-width: 500px) {
  .new-img {
    max-width: 200px;
  }

  .test-circle {
    position: absolute;
    right: 45%;
    top: 15%;
    width: 250px;
    height: 250px;
  }

  .new-text {
    font-size: 2rem;
  }

  .new-en {
    font-size: 0.7rem;
    margin-top: 1.8rem;
  }
}