@charset "UTF-8";

/* =========================
   ベース（スマホ前提）
========================= */

body {
  margin: 0;
  background-image: url(IME-ZI/sono_web_bg.png);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: #333333;
  font-family: 'M PLUS Rounded 1c', 'Kosugi Maru', sans-serif;
  transition: .7s;
}

/* 全体ラッパー（スマホ幅で中央寄せ） */
.article {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  padding: 0;
}

/* 各セクション共通 */
.section {
  padding: 24px 16px;
  box-sizing: border-box;
}

/* =========================
   セクションごとの背景
========================= */

#sec01 {
  position: relative;
  background-color: #ffffff;
  color: #000000;
  padding: 0;
  overflow: hidden;
}

#sec02 {
  position: relative;
  background-color: #ffffff;
  color: #000000;
}

#sec03 {
  position: relative;
  background-color: #7CD147;
  color: #000000;
}

#sec04 {
  position: relative;
  background-color: #7CD147;
  color: #000000;
}

/* 下のスライドセクションだけコンパクトにする */
#sec05 {
  position: relative;
  background-color: #000000;
  color: #000000;
  padding: 16px 0;      /* ちょっとだけ上下余白（お好みで） */
  overflow: hidden;
}

/* sec05 の中では 100vh を無効にする */
#sec05 .slider {
  height: auto;         /* ここで 100vh を上書き */
}



/* =========================
   スライダー（上）
========================= */




#sec01 .midasi {
  position: relative;
  top: -130px;        /* 上に持ち上げる量（お好みで調整してOK） */
  margin-bottom: 8px;
  left: -10px;
}

#sec01 .tika {
  position: relative;
  top: -70px;        /* 見出しと同じだけ上げる */
}





.slider {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 上のスライドの比率（縦長） */
.slider .slider-item {
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 18;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* ロゴを真ん中に重ねる */
.top-gazou {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  pointer-events: none;
}

.top-gazou img {
  width: 60%;
  max-width: 320px;
  height: auto;
  position: relative;
  top: -35%;
}

/* =========================
   sec02 の「ゼミとは!?」
========================= */

/* 写真＋ロゴ用ラッパー（縦並び） */
.top-gazou01 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px auto 32px;
}

/* 写真・ロゴ共通 */
.top-gazou01 img {
  display: block;
  width: 80%;
  max-width: 260px;
  height: auto;
}

/* 写真だけ装飾 */
.huloto01 {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  width: 90%;
}

/* 波SVG 共通（スマホ用） */
.wave-svg {
  display: block;
  width: 109%;   /* ちょいハミ出させて幅ピッタリ感 */
  height: auto;
  z-index: 999;
  margin: 32px 0 0;
  transform: translateX(-20px);  /* ちょっと左にずらす */
}

/* =========================
   見出し（吹き出し）
========================= */

/* 「03 近澤LAB.小ネタ集!!」や「プレゼミ」など共通 */
.midasi {
  position: relative;
  font-size: 28px;
  letter-spacing: 2px;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0 1.5rem;
  border-bottom: 3px solid #000;
  border-left: 3px solid #000;
  border-radius: 0 0 0 20px;
  background: #fff;
  display: block;
  width: 100%;          /* ★全見出し同じ幅にするポイント */
  box-sizing: border-box;
  border-radius: 16px;
}


/* sec01 のタイトルだけ少し左に寄せたいとき */
#sec01 .midasi {
  margin-left: 12px;
}

/* 吹き出しの三角 */
.midasi::before {
  position: absolute;
  right: 40px;
  bottom: -21px;
  width: 0;
  height: 0;
  content: '';
  border-width: 21px 21px 0 0;
  border-style: solid;
  border-color: #000 transparent transparent transparent;
}

.midasi::after {
  position: absolute;
  right: 44px;
  bottom: -11px;
  width: 0;
  height: 0;
  content: '';
  border-width: 14px 14px 0 0;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

/* 1文字ずつアニメさせる用クラス（必要なら） */
.midasi .letter {
  display: inline-block;
  line-height: 1em;
}

/* ギャラリー内の h2 も同じデザインにしたいので上書き不要。
   もしサイズだけ変えたいならここで調整してもOK */

/* =========================
   説明テキストの枠（tika）
========================= */

.tika {
  margin: 1.5em 1.2em;
  position: relative;
  padding: 0.8em 1.2em;
  border-top: solid 2px black;
  border-bottom: solid 2px black;
  font-size: 0.95rem;
  line-height: 1.7;
  background: #fff;
  box-sizing: border-box;
}

.tika:before,
.tika:after {
  content: '';
  position: absolute;
  top: -10px;
  width: 2px;
  height: calc(100% + 20px);
  background-color: black;
}

.tika:before {
  left: 8px;
}

.tika:after {
  right: 8px;
}

.tika p {
  margin: 0;
  padding: 0;
}

/* =========================
   ボタン（研究室訪問・Xリンクなど）
========================= */

a.btn_23 {
  display: block;
  text-align: center;
  text-decoration: none;
  width: 80%;
  max-width: 280px;
  margin: 16px auto;
  padding: 0.9rem 1rem;
  font-weight: bold;
  font-size: 0.95rem;
  border: 2px solid #27acd9;
  color: #27acd9;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background-color: #fff;
  box-sizing: border-box;
}

a.btn_23::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(39, 172, 217);
  transform: translateX(-100%);
  transition: all .3s;
  z-index: -1;
}

a.btn_23:hover::before {
  transform: translateX(0);
}

a.btn_23:hover {
  color: #fff;
}

/* =========================
   ギャラリー：カテゴリボタン
========================= */

.button-02 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px auto 24px;
  width: 100%;
}

.button-02 a {
  font-family: 'Noto Sans JP', serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: #333;
  font-weight: 700;
  border: solid 3px #333;
  display: block;
  box-sizing: border-box;
  max-width: 300px;
  text-align: center;
  padding: 12px 24px;
  margin-inline: auto;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  background: #fff;
}

.button-02 a:hover {
  color: #fff;
  background: #333;
}

/* =========================
   ギャラリー本体
========================= */

.gallery-block {
  margin: 32px 0;
}

.gallery-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.gallery-list {
  list-style: none;
  margin: 0;
  padding: 0 12px;
  box-sizing: border-box;
}

.gallery-item {
  margin-bottom: 16px;
}

.gallery-item .item-content {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
  box-sizing: border-box;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 8px;
}

.gallery-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* =========================
   下のスライダー（sec05）
========================= */

.slider01 {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 下のスライドだけ比率を変える（横長っぽく） */
.slider01 .slider-item {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}





.footer {
  text-align: center;
  padding: 16px 8px;
  font-size: 0.8rem;
  
}

.footer p {
  margin: 4px 0;
}

.footer-small {
  opacity: 0.8;               /* ちょっと薄く */
  font-size: 0.7rem;
}

