/* --- Storyセクション全体のレイアウト --- */
.story {
  position: relative;
  /*z-index: 10;*/
  z-index: 2;
  margin-top: -100px; /* ヘッダーに重ねる */
  padding: 160px 5% 120px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 60px 60px 0 0;
  box-shadow: 0 -30px 60px rgba(0,0,0,0.15);
  overflow: hidden;
  background: #000;
  color: #fff;
}

/* 背景画像：暗くして文字を浮かび上がらせる */
.story::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), 
              url('https://www.ehime-rogaining.jp/wp-content/uploads/2026/04/20211114-05.jpg') no-repeat center/cover;
  filter: blur(6px);
  transform: scale(1.1);
  z-index: -1;
}

/* テキストの基本設定 */
.story-copy {
  font-family: "Sawarabi Mincho", serif;
  margin-bottom: 40px;
  width: 100%;
}

/* 各行：初期状態は透明 */
.story-copy span {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  line-height: 2.2;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
  color: #ffffff !important; 
  -webkit-text-stroke: 0; 
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* 視認性向上のための影 */
}

/* JSで追加される表示クラス */
.story-copy span.show {
  opacity: 1;
  transform: translateY(0);
}

/* 決め台詞：レスポンシブ & 発光演出 */
.story-copy .big.cinematic {
  font-size: clamp(30px, 7.5vw, 64px) !important;  
  color: #ff9900 !important;
  margin-top: 40px;
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 
    0 0 15px rgba(255, 153, 0, 0.8), 
    0 0 30px rgba(255, 153, 0, 0.4);
    
  transition: all 1.5s cubic-bezier(0.19, 1, 0.22, 1);
  
  word-break: keep-all;
  overflow-wrap: break-word;
  display: inline-block;
  width: 90%; 
}

/* 表示された時に少しだけ傾斜と拡大をつける（躍動感） */
.story-copy .big.cinematic.show {
  transform: translateY(0) scale(1.05) skewX(-5deg);
}

/* ボタンのスタイル */
.hero-btn {
  display: inline-block;
  padding: 18px 40px;
  background: #f39800; /* 愛媛オレンジ */
  color: #fff !important;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 0.1em;
  box-shadow: 0 10px 30px rgba(243, 152, 0, 0.3);
  transition: 0.3s;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(243, 152, 0, 0.5);
  background: #ffaa00;
}

@media screen and (max-width: 480px) {
  .story-copy .big.cinematic {
    letter-spacing: 0.05em; 
    line-height: 1.4;
  }
}

/* --- Galleryの見出し（英語添え） --- */
.section-label {
  position: relative;
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 80px;
  z-index: 2;
}

.section-label span {
  position: relative;
  z-index: 2;
  background: #fff; /* 背景と分離して浮かせる */
  padding: 0 10px;
}

.section-label::before {
  content: "The history of the tournament";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -50%);

  font-size: 1.5rem;
  font-weight: 900;
  /*letter-spacing: 0.2em;*/

  color: rgba(255, 100, 0, 0.08); 
  white-space: nowrap;

  z-index: 1;
  pointer-events: none;
}

/* --- 下部セクションのブラッシュアップ --- */
.news {
  max-width: 1000px;
  margin: 80px auto;
  background: #fff;
  padding: 60px 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.03);
}

.news h2{
	text-align: center;
}
/* --- CTAセクション全体 --- */
.cta-minimal {
    padding: 140px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: #00132a; 
	border-radius: 20px;
}

.cta-minimal::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('https://www.ehime-rogaining.jp/wp-content/uploads/2026/04/rogeining.png');  
    background-size: cover; 
    background-position: center; 
    /*background-position: center bottom;*/ 
    background-repeat: no-repeat;
    opacity: 0.25; 
    filter: brightness(0.8) contrast(1.1); 
    z-index: 1;
}

.cta-minimal a {
    display: inline-block;
    min-width: 320px;
    padding: 22px 50px;
    background: var(--primary-color); 
    color: #fff !important;
    font-size: 1.8rem;
    font-weight: 800;
    border-radius: 999px;
    box-shadow: 0 15px 40px rgba(243, 152, 0, 0.4); 
    transition: 0.3s;
}

.cta-minimal a:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 50px rgba(243, 152, 0, 0.6);
    background: #ffaa00;
}

.cta-minimal a::after {
    content: " \2192"; 
    display: inline-block;
    margin-left: 15px;
    transition: transform 0.3s;
}

.cta-minimal a:hover::after {
    transform: translateX(10px); /* ホバーで矢印が動く */
}

.cta-sub {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
    font-family: "Sawarabi Mincho", serif;
}
.cta-sub,
.cta-minimal a {
    position: relative;
    z-index: 2; /* イラストより手前に表示 */
}