@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Noto+Sans+JP:wght@100..900&family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

/* 全体の設定 */
* {
    padding: 0px;
    margin: 0;
    box-sizing: border-box;
}

p {
  font-size: 16px;
  line-height: 1.8;
  color: #222222;
}

body {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  overflow-x: hidden;
}

h2 {
  font-size: 32px;
}

h3 {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  color: #514496;
}

/* 見出しの下線 */
.u-underline {
  display: inline-block;
  position: relative;
  text-decoration: underline #514496;
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
  line-height: 1.4;
}

/* 見出しh2について */
.text_main {
  margin: 0 auto;
  color: #514496;
  text-align: center;
  padding: 20px 0;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 80px;
}


/* ===== ヘッダー ===== */
.c-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: rgba(255,255,255,0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  z-index: 1000;
}

.c-header__logo img {
  height: 40px;
  width: auto;
}

.c-header__list {
  display: flex;
  gap: 40px;
  list-style: none;
}

.c-header__list-link {
  text-decoration: none;
  color: #707070;
  font-weight: 700;
}

/* ハンバーガーメニュー用のチェックボックスとボタンを基本非表示にする */
.c-hamburger-menu__input,
.c-hamburger-menu__button {
  display: none;
}


/* ===== スマホ（768px以下） ===== */
@media screen and (max-width: 768px) {

  .c-header {
    height: 80px;
    padding: 0 20px;
  }

  .c-header__logo img {
    height: 27px; 
    width: auto;
  }

  .c-header__list {
    display: none;
  }

  /* ハンバーガーボタンを表示 */
  .c-hamburger-menu__button {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
    margin-left: auto;
  }

  .c-hamburger-menu__button-mark {
    display: block !important;
    width: 100% !important;
    height: 3px !important;
    background-color: #514496 !important; /* ★コメントアウト表記を修正 */
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .c-hamburger-menu__bg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .c-hamburger-menu__list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: #ffffff;
    z-index: 1001;
    transition: right 0.3s ease;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  }

  .c-hamburger-menu__input:checked ~ .c-hamburger-menu__bg {
    display: block;
  }

  .c-hamburger-menu__input:checked ~ .c-hamburger-menu__list {
    right: 0;
  }

  .c-hamburger-menu__input:checked ~ .c-hamburger-menu__button .c-hamburger-menu__button-mark:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .c-hamburger-menu__input:checked ~ .c-hamburger-menu__button .c-hamburger-menu__button-mark:nth-child(2) {
    opacity: 0;
  }

  .c-hamburger-menu__input:checked ~ .c-hamburger-menu__button .c-hamburger-menu__button-mark:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}



/* ===== メインビジュアルヒーロー全体 ===== */
.hero {
  min-height: 220px;
  background-color: #EAE9F2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
}

.hero-content {
  margin-top: 0;
}

.hero-content h1 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 36px;
  font-weight: bold;
  line-height: 1.2;
  color: #514496;
}






/*ラーニングコモンズについて*/
.learning {
  padding: 60px 0;
}

.learning_container {
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.learning_img {
  width: 100%;
  max-width: 600px;
  margin: 20px 0;
}

.learning_img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
}

.learning_text {
  padding: 10px 0 30px;
  text-align: left;
}

.learning_news {
  width: 100%;
  max-width: 570px;
  padding: 30px 20px;
  text-align: center;
  background-color: #EAE9F2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 2px dotted #514496;
  border-radius: 20px;
  margin: 0 auto;
}

.text_strong p {
  font-weight: bold;
  font-size: 32px;
  line-height: 1.4;
  color: #514496;
  margin-bottom: 10px;
}

.time_note {
  font-size: 14px;
}




/* ===== 利用について ===== */
.use {
  background-color: #EAE9F2;
  padding: 80px 0;
}

/*利用について説明３個*/
.use_container {
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
}

.use_text {
  width: 60%;
  margin: 0 auto;
  text-align: left;
  margin-bottom: 40px;
}

.rule_list_wrapper {
  width: 100%;
}

.box_1 {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: #ffffff;
  border-radius: 16px;
  padding: 30px 40px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.rule_box{
  flex: 1;
}

.rule_icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(81,68,150,0.12);
  flex-shrink: 0;
}

.rule_icon p {
  color: #514496;
  font-weight: bold;
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
  margin: 0;
}

.rule_icon p span {
  font-size: 24px;
}

.rule_img {
  width: 80px;
  flex-shrink: 0;
}

.rule_img img{
  width: 100%;
  display: block;
}

.rule_midashi {
  margin-bottom: 10px;
  text-align: left;
}

.rule_midashi p {
  font-size: 20px;
  font-weight: bold;
  color: #514496;
}

.rule_text p {
  text-align: left;
}

.use_textbold {
  font-weight: bold;
  font-size: 22px;
  margin: 50px 0 30px;
  text-align: center;
}

.use_textbold p {
  color: #514496;
  line-height: 1.5;
}

.sp-only-br {
  display: none;
}

/*コモンズルール*/
.commons_rule_container {
  width: 100%;
  max-width: 1000px;
  background-color: white;
  margin: 0 auto;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
}
.commons_rule_img {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  margin-bottom: 30px;
  width: 100%;
}
.commons_rule_img img {
  width: 260px;
  max-width: 100%;
  height: auto;
}



/* ==========================================
   利用についてのレスポンシブ対応 (スマホ表示時の調整)
========================================== */
/* 360行目付近 */
@media screen and (max-width: 768px) {

  .use_container {
    width: 95%; /* 幅を広げて余白を確保 */
    padding: 20px 10px;
  }

  .box_1 {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
    gap: 15px;
    border-radius: 10px;
  }

  .rule_icon {
    width: 60px;
    height: 60px;
  }

  .rule_icon p {
    font-size: 16px;
  }

  /* ★見出しの50pxマージンを小さく打ち消す */
  .rule_midashi {
    margin: 10px 0 !important;
    text-align: center;
  }

  .rule_midashi p {
    font-size: 18px;
    line-height: 1.4;
  }

  .rule_text p {
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
  }

  .rule_img {
    width: 70px;
    margin-top: 10px;
  }
  
  .commons_rule_container {
    width: 100%;
    padding: 20px 15px;
  }

  .commons_rule_img {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .commons_rule_img img {
    width: 100%;
    max-width: 280px;
    padding-bottom: 0;
  }
}




/*余白*/
.yohaku{
  background-color: white;
  height: 100px;
}








/*フッター*/
/* ==========================================
   フッター（PC・スマホ共通のベース設定）
========================================== */
footer {
  background: #EAE9F2;
  text-align: center;
  border-radius: 20px 20px 0 0;
  padding: 40px 20px;
}

footer img {
  width: 180px;
  margin-bottom: 15px;
}

footer p, footer a {
  font-size: 12px;
  line-height: 1.5;
  color: #222222;
}

/* リンクを包むコンテナ（flexboxで横並びをコントロール） */
.link {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* 画面幅が狭くなったら綺麗に折り返す */
  gap: 15px 20px;   /* リンク同士の「上下の隙間 15px」「左右の隙間 20px」 */
  margin-top: 20px;
}

.link a {
  text-decoration: none; 
  color: #707070;
  font-size: 14px;
  display: inline-block;
  white-space: nowrap; /* ★ 文字列の途中で変な改行が起きるのを防ぐ */
}

.link a:hover {
  opacity: 0.6;
}




/* ==========================================
   スマホ版（768px以下）レスポンシブ調整
========================================== */
@media screen and (max-width: 768px) {

  p {
    font-size: 14px;
    line-height: 2; /* 行間をstyle.cssと統一して間延びを修正 */
  }

  h2 {
    font-size: 24px;
  }

  .sp-only-br {
    display: inline; /* SP版での改行を有効化 */
  }

  /* ヒーロータイトル中央揃え */
  .hero {
    min-height: 160px;
    padding-top: 80px;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  /* ラーニングコモンズについて（中央揃え調整） */
  .learning {
    padding: 30px 0;
  }

  .learning_container {
    width: 88%;
    padding: 10px 0;
  }

  .learning_img img {
    height: 200px;
  }

  .text_strong p {
    font-size: 22px; /* 利用時間の文字サイズを適正化 */
    line-height: 1.4;
  }

  .time_note {
    font-size: 12px;
  }

  /* 利用について（SP版） */
  .use {
    padding: 40px 0;
  }
  
.use_text {
  width: 80%;
  margin: 0 auto;
  text-align: left;
  margin-bottom: 40px;
}

  .use_container {
    width: 88%;
  }

  .box_1 {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 20px;
    gap: 15px;
  }

  /* ルールアイコンの丸にキレイに文字を入れる */
  .rule_icon {
    width: 75px;
    height: 75px;
  }

  .rule_icon p {
    font-size: 15px;
  }

  .rule_icon p span {
    font-size: 20px;
  }

  .rule_midashi {
    text-align: center;
    margin: 5px 0 10px;
  }

  .rule_midashi p {
    font-size: 17px;
  }

  .rule_text p {
    text-align: left;
  }

  .rule_img {
    width: 65px;
    margin-top: 5px;
  }

  .use_textbold {
    font-size: 16px;
    margin: 35px 0 25px;
  }

  /* コモンズルール画像のゆとり調整 */
  .commons_rule_container {
    padding: 30px 20px;
  }

  .commons_rule_img {
    flex-direction: column;
    align-items: center;
    gap: 30px; /* 画像同士の余白を拡大 */
  }

  .commons_rule_img img {
    width: 100%;
    max-width: 260px;
  }
}

/* ===== スクロールフェードインアニメーション ===== */
/* 初期状態：透明で少し下に下げておく */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 画面内に入ったとき（JavaScriptでこのクラスが付与される） */
.fade-in.is-active {
  opacity: 1;
  transform: translateY(0);
}