/* ===============================
   タイトル画像
=============================== */
/*タイトル背景画像*/
.title-area{
  
  height:20vh;   /*画面の20% */
  min-height:180px; /*小さくなりすぎ防止*/


  background-image:url("../pic2026/training1.png");
  background-size:cover;
  background-position:center;

  display:flex;
  align-items:center;
  padding-left:10%;

  margin-top:80px;
}

/*タイトルの文字*/
.title-area h1{
  color:#008080;
  font-size:clamp(22px, 5vw, 32px);
  font-family: "Noto Serif JP", serif;
}

/* ===============================
   スマホ対応タイトル画像
=============================== */

@media (max-width: 1024px){

  /* タイトル画像縮小 */
  .title-area{
    height:13vh;
    min-height:100px;

    background-image:url("../pic2026/training2.png"); /* スマホ用画像 */
    background-position:center;/* 中央に */

    justify-content:center;
    padding-left:0;           /* 左余白消す */
    text-align:center;        /* 文字中央 */

  }
}

/* ===============================
   メインコンテンツ
=============================== */
/* メインコンテンツ */
.content{
  flex:1;
  padding:40px;
}

/* タイトル内タイトル */
h3{
  color:#5C2408;
  font-size: clamp(18px, 4vw, 26px);
  margin-bottom:10px;
  text-align: center;
}

/* テキスト */
.stripe-box p {
  text-align: center;
}

p{
  font-size:clamp(14px, 2.5vw, 18px);
  text-align: center;
}

.content-box p{
  text-align:left;
}

/* 月表示 */
.month-label {
  text-align: center;
  margin: clamp(15px, 4vw, 20px) 0 clamp(20px, 5vw, 30px);
}
.month-label span {
  display: inline-block;
  background: #69C4D0;
  padding: clamp(6px, 2vw, 10px) clamp(12px, 5vw, 20px);
  font-size: clamp(16px, 4vw, 22px);

  font-weight: bold;
  color: #FFFFFF;
  border-radius: clamp(20px, 6vw, 30px);

  border: solid #69C4D0;
  border-width: clamp(1px, 0.4vw, 2px);
}

/* 黄色のボックス */
.content-box{
  background: rgba(255, 246, 133, 0.3);

  border:4px double #FFF685;
  border-radius: clamp(8px, 2vw, 12px);            
  border-width: clamp(2px, 0.5vw, 4px); 

  padding: clamp(12px, 4vw, 20px);
  margin: clamp(15px, 4vw, 20px) auto;
  width: min(92%, 800px);

  scroll-margin-top: 100px;
}

.content-box h3 {
  display: block;
  width: 100%;
  text-align: center;
}

/* ストライプ黄色ボックス */
.stripe-box {
  padding: 20px;
  border-radius: 12px;
 
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 246, 133, 0.15),
    rgba(255, 246, 133, 0.15) 10px,
    #FFFFFF 10px,
    #FFFFFF 20px
  );
  border: 2px solid #FFF685;
  margin-bottom: 40px;
}

/*水色線*/
.group{
  border: 2px dashed rgba(105,196,208,0.7);
  border-radius: 12px;
  padding: clamp(12px, 4vw, 20px);
  margin: 0 auto 50px;
}

#imgModal {
  display: none; /* ← 最初は非表示が重要 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.8);

  justify-content: center;
  align-items: center;

  z-index: 9999;
}

/* 画像 */
#imgModal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

/* ×ボタン */
#closeBtn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

/*画像 */
.text-image {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* 文字 */
.text {
  flex: 1;
}

/* 画像 */
.text-image img {
  width: 160px;
  height: auto;
}


/* 小さい画像 */
.text-image img.img-small {
  max-width: 150px;
}


/* PC：横並び＆中央揃え */
.photo-row {
  display: flex;
  justify-content: center;  /* ← 横中央 */
  gap: 30px;                /* ← 画像の間の余白 */
   margin: 20px auto 10px;
}

/* 画像サイズ（共通） */
.photo-row img {
  width:90%;
  max-width: 300px;
  height: auto;
  border-radius: 12px;
}


@media (max-width: 768px){
  .photo-row img{
    width: 85%;
    max-width: none;
  }
}

.photo-row img:hover{
  transform: scale(1.03);
}

/* ===============================
   スクロール調整
=============================== */
html{
  scroll-behavior:smooth;
}

.month-label,.content-box{
  scroll-margin-top:200px;
}

    /* ===============================
     スマホ対応 フリー画像
  =============================== */
  @media (max-width: 1024px){

  /* 横 → 縦 */
  .text-image {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* 画像調整 */
  .text-image img {
    width: 60%;
    max-width: 200px;
    height: auto;
    margin-top: 10px;
  }

  /* 文字 */
  .text {
    text-align: center;
  }

    /* ===============================
     スマホ対応 写真
  =============================== */

  .photo-row {
    flex-direction: column;
    align-items: center;
  }

  .photo-row img {
    display: block;
    margin: 0 auto;
    width: 70%;
    max-width: 300px;
  }
  
}
