@charset "UTF-8";

/* =====================
  0. index.html セクション共通
   ===================== */
.section-2 .inner {
  padding-top: 0px;
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 24px;
}

/* section-2・3 のp にだけ color と font-size を適用 */
.section-2 p,
.section-3 p {
  color: #555;
  font-size: 1rem;
}

/* =====================
   4. ブロック1 背景
   ===================== */
.section-1 {
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 1)  0%,
    rgba(255, 252, 221, 1) 28%,
    rgba(222, 238, 220, 1) 50%,
    rgba(202, 229, 211, 1) 100%
  );
  padding-bottom: var(--curve-h);
}

/* =====================
   5. ブロック2 背景
   ===================== */
.section-2 {
  background: none;
  margin-top: calc(var(--curve-h) * -1);
}

.section-2::before {
  content: '';
  position: absolute;
  top: var(--curve-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(196, 225, 197, 1)  0%,
    rgba(227, 240, 219, 1) 42%,
    rgba(176, 218, 213, 1) 100%
  );
  z-index: 0;
}

.section-2 .inner,
.section-2 .curve-divider {
  position: relative;
  z-index: 1;
}

/* =====================
   6. カーブ仕切り
   ===================== */
.curve-divider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.curve-divider svg {
  display: block;
  width: 100%;
  height: var(--curve-h);
}


/* =====================
   8. ローディング画面
   ===================== */
#loading {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

#loading.hide {
  opacity: 0;
  pointer-events: none;
}

.loading-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-iitan-green);
  margin: 0 6px;
  animation: blink 1.2s infinite ease-in-out;
}
.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40%           { opacity: 1;   transform: scale(1); }
}

/* =====================
   9. ブロック1 動画
   ===================== */
.hero-video-wrap {
  width: 100vw;
  height: 100vh;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 0px;
  margin-top: -10px;  /* ヘッダー高さ分上に引き上げ */
  overflow: hidden;
  transition: opacity 0.8s ease;
}

@media (max-width: 980px) {
  .hero-video-wrap {
    margin-top: -72px;
  }
}

.hero-video-wrap.hide {
  opacity: 0;
  pointer-events: none;
}

.hero-video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

/* =====================
   10. ブロック1 テキスト
   ===================== */

/* 初期非表示 → visible で表示 */
.section-1-content {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  text-align: center;
  color: var(--color-iitan-green);
  padding: 0 24px 80px;
  position: relative;
  width: 100%;
}

.section-1-content.visible {
  opacity: 1;
  transform: translateY(0);
}


.section-1-content p {
  color: var(--color-iitan-green);
}

.section-1-content .s1-body {
  color: #444;
}

.s1-tagline {
  font-size: clamp(0.95rem, 3.5vw, 1.3rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

img.image-college {
  width: 50%;
  max-width: 180px;
  margin: 0 auto;
}

.s1-name-ja {
  font-size: clamp(1.4rem, 6vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 5px;
  color: var(--color-iitan-green);
}

img.image-symbol {
  width: 20%;
  max-width: 50px;
  margin: 0 auto;
}

.s1-name-en {
  font-family: var(--font-en);
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.3;
  margin-bottom: 1px;
}

.s1-name-en-sub {
  font-family: var(--font-en);
  font-size: clamp(1.08rem, 4.2vw, 1.27rem);
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 20px;
}

.s1-60th {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  line-height: 1;
  margin-bottom: 8px;
}

.s1-60th .num {
  font-family: var(--font-en);
  font-size: clamp(64px, 17vw, 150px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.s1-60th .th {
  font-family: var(--font-en);
  font-size: clamp(28px, 7.5vw, 68px);
  font-weight: 700;
  padding-bottom: 0.1em;
}

.s1-anniversary {
  font-family: var(--font-en);
  font-size: clamp(0.72rem, 2.8vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.35em;
  margin-bottom: 1px;
}

img.image-icons {
  width: 60%;
  max-width: 280px;
  margin: 0 auto;
}

.s1-body {
  font-size: clamp(0.875rem, 3.5vw, 1rem);
  font-weight: 400;
  line-height: 2.2;
}

/* =====================
   11. ブロック1 装飾イラスト
   ===================== */
.content-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  position: relative;
  z-index: 1;
}

.deco {
  position: absolute;
  opacity: 0;
  transform: scale(0);
  width: clamp(180px, 12vw, 240px);
  height: auto;
  pointer-events: none;
  z-index: 0;
}

@keyframes popBounce {
  0%   { opacity: 0; transform: scale(0) rotate(-8deg); }
  55%  { opacity: 1; transform: scale(1.18) rotate(4deg); }
  72%  { transform: scale(0.92) rotate(-2deg); }
  86%  { transform: scale(1.06) rotate(1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.deco.pop {
  animation: popBounce 0.65s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

/* PC */
.deco-1 { top:  60px; left:  4vw; }
.deco-2 { top:  40px; right: 4vw; }
.deco-3 { top: 290px; left:  2vw; }
.deco-4 { top: 260px; right: 2vw; }
.deco-5 { top: 480px; left:  3vw; }
.deco-6 { top: 440px; right: 3vw; }

/* スマホ */
@media (max-width: 600px) {
  .deco { width: clamp(77px, 22vw, 108px); }
  .deco-1 { top:  30px; left:  1vw; }
  .deco-2 { top:  20px; right: 1vw; }
  .deco-3 { top: 160px; left:  0vw; }
  .deco-4 { top: 140px; right: 0vw; }
  .deco-5 { top: 310px; left:  1vw; }
  .deco-6 { top: 280px; right: 1vw; }
}





/* =====================
   13. ブロック2 カード
   ===================== */
.card {
  background: #fff;
  border-radius: 20px;
  padding: clamp(32px, 6vw, 56px) clamp(24px, 5vw, 48px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}
 

.card .card-body p {
  margin-bottom: 8px;
}
 
/* ＼いいたん／ */
p.text-iitan {
  font-size: clamp(1.6rem, 8vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0px;
  color: var(--color-iitan-green);
}
/* 60周年記念制作 */
p.text-iitan-sub {
  font-size: clamp(1rem, 4vw, 1.4rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0px;
  color: #333;
  display: inline-block;
  transform: rotate(-6deg);
}
/* 新キャラクター‼ */
p.text-chara {
  font-size: clamp(1.6rem, 7vw, 2.6rem);
  font-weight: 900;
  color: var(--color-iitan-orange);
  margin-bottom: 0;
  letter-spacing: 0.02em;
  line-height: 1.3;
  display: inline-block;
  transform: rotate(-6deg);
}
 
.character-wrap {
  position: relative;
  width: clamp(200px, 70%, 320px);
  margin: 0 auto;
}
 
.character-wrap img {
  width: 100%;
  height: auto;
  display: block;
  animation: float 3s ease-in-out infinite;
}
 
/* ふわふわ浮く */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
 
/* 影：浮き上がりに連動して縮む */
.character-wrap::after {
  content: '';
  display: block;
  width: 55%;
  height: 10px;
  background: rgba(0,0,0,0.9);
  border-radius: 50%;
  margin: -4px auto 0;
  animation: float-shadow 3s ease-in-out infinite;
}
 
@keyframes float-shadow {
  0%, 100% { transform: scaleX(1);    opacity: 0.3; }
  50%       { transform: scaleX(0.65); opacity: 0.12; }
}
 
p.coming-soon {
  position: absolute;
  bottom: 40%;
  left: 0;
  width: 100%;
  text-align: center;
  transform: rotate(-6deg);
  font-family: var(--font-en);
  font-size: clamp(2.4rem, 8.5vw, 4.2rem);
  font-weight: 800;
  font-style: italic;
  color: var(--color-iitan-green);
  letter-spacing: -0.02em;
  line-height: 0.75;
}
 
p.coming-date {
  display: block;
  transform: rotate(-6deg);
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 700;
  color: var(--color-iitan-green);
  line-height: 1.25;
  margin-top: 0px;
}


/* =====================
   14. ブロック3 メッセージ
   ===================== */
.message-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.message-photo {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.message-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.message-photo img.image-small {
  width: 45%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.message-text {
  width: 100%;
}

.message-text p {
  color: #444 !important;
  font-size: 1rem;
  line-height: 2.2;
  margin-bottom: 32px;
}




/* =====================
   17. ブロック4 スライダー
   ===================== */
 
.section-4 {
  background: var(--color-bg);
  padding-bottom: 60px;
}
 
/* スライダー全幅ラッパー */
.slider-wrap {
  width: 100%;
  overflow: hidden;
  cursor: grab;
  user-select: none; /* ドラッグ中にテキスト選択させない */
}
 
.slider-wrap:active {
  cursor: grabbing;
}
 
/* 横に並ぶトラック */
.slider-track {
  display: flex;
  gap: 12px;
  padding:0 0 16px 0;
  will-change: transform; /* アニメーション最適化 */
  /* 自動スクロールはJSで制御 */
}
 
/* 各画像カード */
.slide {
  flex: 0 0 auto;
  width: clamp(160px, 22vw, 280px);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  pointer-events: none;    /* ドラッグ中に画像がイベントを拾わない */
  align-self: center;      /* 凸凹の基準点 */
}
 
.slide img {
  width: 100%;
  height: clamp(110px, 15vw, 190px);
  object-fit: cover;
  display: block;
}
/* 奇数：高さ大・上寄り */
.slide:nth-child(odd) {
  margin-top: -40px;
}
 
.slide:nth-child(odd) img {
  height: 100%;
}

/* 偶数：高さ小・下寄り */
.slide:nth-child(even) {
  margin-top: 40px;
}
 
.slide:nth-child(even) img {
  height: 100%;
}

/* =====================
   18. ブロック5 NEWS
   ===================== */
.section-5 {
  background: var(--color-bg-light-green);
  overflow: hidden;
}

.news-list-container {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
}

/* スマホ：縦並び */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* スマホ：2記事目以降に上部ボーダー */
.news-item + .news-item {
  border-top: 1px solid #ccc;
  padding-top: 20px;
  margin-top: 20px;
}

.news-item {
  cursor: pointer;
  background: #fff;
  transition: transform 0.3s ease;
  padding-bottom: 20px;
}

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

/* PC：横並び・2記事目以降に左ボーダー */
@media (min-width: 769px) {
  .news-list {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    gap: 0;
  }

  .news-item {
    flex: 0 0 calc(33.333% - 1px);
    scroll-snap-align: start;
    padding: 0 24px 20px;
    border-top: none;
    margin-top: 0;
  }

  /* 2記事目以降に左ボーダー */
  .news-item + .news-item {
    border-top: none;
    border-left: 1px solid #ccc;
    padding-top: 0;
    margin-top: 0;
  }

  .news-list::-webkit-scrollbar { height: 12px; }
  .news-list::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
  .news-list::-webkit-scrollbar-thumb { background: var(--color-iitan-green); border-radius: 10px; }
}

.news-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 12px;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.news-date { color: #888; }

.news-category {
  color: var(--color-iitan-green);
  font-weight: 700;
}

.news-item-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  color: #333;
}

/* =====================
   19. NEWS モーダル
   ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  padding: 20px;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: #fff;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  color: #333;
}

.modal-content {
  overflow-y: auto;
  padding: 40px;
}

@media (max-width: 600px) {
  .modal-content { padding: 24px; }
}

.modal-img {
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
}

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

.modal-text-area h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #222;
}

.modal-body-text {
  line-height: 1.8;
  color: #444;
  white-space: pre-wrap;
}


/* =====================
   19. ブロック6 応援メッセージ
   ===================== */
 
.section-6 {
  background: var(--color-bg);
}
 
/* 2列グリッド */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
 
/* 1枚のカード */
.support-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
}
 
/* 名前行：オレンジドット＋名前 */
.support-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #333 !important;
  margin-bottom: 16px;
}
 
/* 写真＋テキストの横並び */
.support-body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
 
/* 正方形の写真 */
.support-photo {
  flex: 0 0 clamp(80px, 35%, 130px);
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f0f0;
}
 
.support-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
 
.support-text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.9;
  color: #444 !important;
}
 
/* スマホ：1列 */
@media (max-width: 600px) {
  .support-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
 
/* =====================
   20. ブロック7 Instagram
   ===================== */
.section-7 {
  background: #fff;
  padding-bottom: 60px;
}

.insta-header {
  text-align: center;
  margin-bottom: 40px;
}

.insta-logo-wrap {
  max-width: 400px;
  margin: 0 auto 20px;
}

.insta-tagline {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.6;
}

.insta-handle {
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 600;
	font-style: italic;
  color: #222;
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.insta-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
}

.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.insta-item:hover img {
  transform: scale(1.05);
}

/* =====================
   21. ブロック8 寄付
   ===================== */
.section-8 {
  background: #fff;
  padding-bottom: 100px;
}

.donation-text {
  text-align: center;
  font-size: 1rem;
  line-height: 2;
  color: #333;
  margin-bottom: 40px;
}

