﻿
/*---------------------------------------
  基本設定
---------------------------------------*/
body {
	color: #000000;
	background-color: white;
	font-family: "Noto Serif JP", 游明朝, "Yu Mincho", "ヒラギノ明朝 ProN", serif, sans-serif;
}
html {
  font-size: clamp(0.9rem, 0.5rem + 1vw, 2rem);
}
article {
  max-inline-size: 66ch;
  line-height: 1.65;
}
img {
  max-inline-size: 100%;
  block-size: auto;
  display: block;
}
section {
	box-sizing: border-box;
	max-width: 1200px; /* 幅の上限 */;
	width: 100%; /* 画面幅に応じて縮む */;
	margin: 1rem auto 6rem;      /* 中央寄せ */
	padding: 1rem;       /* 左右に少し余白 */
}

.line-links {
  text-decoration: underline;   /* 通常はアンダーライン */
  color: #333333;
}

.line-links::after {
  content: " →";               /* 通常は矢印つき */
}

.line-links:hover {
  text-decoration: none;        /* ホバーでアンダーライン消える */
}

.line-links:hover::after {
  content: "";                  /* ホバーで矢印が消える */
}
@media (max-width: 600px) {
  .line-links {
    text-decoration: none;  /* そもそも最初からアンダーラインをつけない */
    font-weight: 800;
  }
}

/*---------------------------------------
  レイアウト：レスポンシブ横並び
---------------------------------------*/
.flex-row-responsive {
	margin: 8px -10px 10px 10px; 
	  transform: translateY(20px);
  z-index: 2;
	display: flex;
	flex-direction: row;
	gap: 1.5rem;
	background-color: #FFFFFF;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 横:0px, 縦:4px, ぼかし:10px, 透過:20% */

}
.image-block img {
  width: 100%;
  height: auto;
  display: block;
}

.green-back{
	background-color: #E9EEE3;
  width: 100%;
  height: 80%;
}

@media screen and (min-width: 768px) {
  .flex-row-responsive {
    flex-direction: row;
    align-items: center;
  }

  .flex-row-responsive > .text-block,
  .flex-row-responsive > .image-block {
flex: 1 1 50%;
}
.tab-content .content-inner {
    flex-direction: row;
    align-items: center;
  }

  .tab-content .content-inner img {
    width: 50%;
    max-width: 400px;
  }

}
/*---------------------------------------
  ヘッダーとメニュー
---------------------------------------*/
header {
  display: flex;
  flex-direction: column; /* 上段と下段を縦に並べる */
  align-items: center;   
  width: 100%; /* 横幅いっぱいに広げる */
  padding: 10px 0; /* 縦方向の余白を設定 */
  box-sizing: border-box; 
  background-color: #ffffff; /* 背景色 */
  z-index: 10;
}
/* 2. 上段 (.header-top-row) の設定: 横並びのFlexコンテナにする */
.header-top-row {
    display: flex; 
    width: 100%; 
    align-items: center;
    padding: 0 20px; /* 左右の余白 */
    box-sizing: border-box;
    margin-bottom: 10px; /* メニューとの間隔 */
    justify-content: space-between;
}
.header-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin: 0 auto;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-title h1 {
  margin: 0;
}
/* H1 内のリンクスタイル */
.logo-title h1 a {
  text-decoration: none;   /* 下線なし */
  color: #000;             /* 通常時：黒 */
  transition: color 0.3s;  /* 色変化をなめらかに */
  font-family: "Dancing Script", cursive;
}

/* ホバー時 */
.logo-title h1 a:hover {
  color: #00796b;          /* ホバー時：青 */
}
.subtitle {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

.pc-menu {
  width: 100%; 
   margin-left: 0; 
    padding: 0 20px;
    box-sizing: border-box;}

.pc-menu ul {
    display: flex;
    list-style: none;
    gap: 20px;
    padding: 0;
    margin: 0 auto; /* ul全体を中央に寄せる */
    justify-content: center; /* リスト項目を中央に配置 */
}

.pc-menu li {
  position: relative;
}
.pc-menu .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 10px 0;
  list-style: none;
  min-width: 300px;
  z-index: 999;
}
.pc-menu .dropdown li {
  padding: 8px 20px;
}
.pc-menu .dropdown li a {
  color: #333;
  text-decoration: none;
  display: flex;
  }
.pc-menu li a {
  font-size: 0.9rem;   /* 小さく */
  text-decoration: none; /* 下線を消す */
  color: #333;
  display: flex;/* 画像横並び */
}
.pc-menu > ul > li > a:hover {
  color: #00796b;           /* ホバー時だけ色を変える */
}


/* ========================================================= */
/* 【追加】モバイルメニュー用アコーディオンのCSS設定 16-43tuila*/
/* ========================================================= */

/* 1. アコーディオンの開閉アニメーションと制御 */
#fullscreen-menu .dropdown {
    /* 初期状態：高さをゼロにして隠す */
    max-height: 0;
    overflow: hidden;
    /* スムーズな開閉のためのトランジション */
    transition: max-height 0.5s ease;
    
    /* リストのデフォルト設定をリセット */
    list-style: none;
    margin: 0;
    padding: 0; 
}

#fullscreen-menu .dropdown.open {
    /* openクラスが付いたときに高さを十分に確保して展開 */
    max-height: 500px;
    
    /* 開いたときに上下にパディングを追加 */
    padding-top: 10px; 
    padding-bottom: 10px; 
}

/* 2. 子メニュー内のリンクのスタイル調整 (視認性向上) */
#fullscreen-menu .dropdown li a {
    /* 親項目と区別するためのインデント（字下げ） */
    padding-left: 40px; 
    
    /* 親項目（1.2rem）より少し小さくする */
    font-size: 1.1rem;
    color: #666;
    
    /* その他の表示設定 */
    display: flex;
    text-decoration: none;
}


/* ========================================================= */
/* 【追加】モバイルメニュー用アコーディオンのCSS設定 16-43tuilakokomade */
/* ========================================================= */



/* SNS */
.pc-sns {
    display: flex; /* 既存の設定 */
    align-items: center;
}
.pc-sns a img {
  width: 24px;
  height: auto;
  margin-left: 10px;      /* アイコン間の余白 */
  vertical-align: middle;
}

/* スマホでは非表示 */
/* スマホでは非表示終わり */
@media (min-width: 801px) {
  .pc-menu li:hover .dropdown {
    display: block;
  }

  #hamburger,
  #fullscreen-menu {
    display: none !important;
  }
}


/* ハンバーガーメニュー */
.menu-icon {
  font-size: 30px;
  cursor: pointer;
  padding: 15px;
  position: fixed;
  top: 10px;
  right: 20px;
  z-index: 1001;
}
#fullscreen-menu {
	position: fixed;
	top: -100%;
	left: 10%;
	width: 90%;
	height: 100%;
    background-color: rgba(255, 251, 255, 0.6);
    backdrop-filter: blur(12px);	z-index: 1000;
	padding: 60px 20px;
	box-sizing: border-box;
	transition: top 1s ease;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	overflow-y: auto;
}
#fullscreen-menu.open {
  top: 0;
}
#close-btn {
  position: fixed;
  top: 10px;
  right: 20px;
  font-size: 30px;
  padding: 15px;
  z-index: 1001;
}
#fullscreen-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#fullscreen-menu li a {
  text-decoration: none;
  font-size: 1.2rem;
  color: #333;
  display: flex;
  padding: 10px 0 10px 20px;
}
#fullscreen-menu li a:hover {
  color: #0077cc;
  transition: color 0.3s ease;
}
@media (max-width: 800px) {
  .pc-menu {
    display: none;
  }
  #hamburger,
  #fullscreen-menu {
    display: block;
  }
  .header-left {
    /* 中央寄せを解除し、左寄せに変更 */
    margin: 0; 
    align-items: flex-start; /* 縦に並んだ子要素（title-rowとsubtitle）を左揃えにする */
  }
  .pc-sns {
    display: none;
  }
}

.is-hidden {
  display: none !important;
}



/*---------------------------------------
  スライドショー
---------------------------------------*/
.slideshow-container {
  position: relative;
  width: 100%;
  height: 60vw;
  overflow: hidden;
}
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  background-size: cover;
  background-position: center;
}
.slide.active {
  opacity: 1;
  z-index: 1;
}
.slide img {
 width: 100%;
 height: 100%; /* 👈 スライドの高さ全体を使うように設定 */
 object-fit: cover;
 display: block;
}
.slide-text {
  position: absolute;
  bottom: 10%;
  left: 5%;
  color: white;
  font-size: 2rem;
  background-color: rgba(255, 255, 255, 0.35);
  padding: 1rem 1rem;
  border-radius: 12px;
  max-width: 90%;
  line-height: 1.6;
  font-weight: bold;
}
#slide1-text {
color: #999;
font-size: 1.8rem;
}
#slide2-text {
font-size: 1.4rem;
}
/*---------------------------------------
  スマホ用の文字サイズ調整（メディアクエリ）
---------------------------------------*/
@media (max-width: 768px) {
  #slide1-text {
    font-size: 1.1rem;
  }
}

/*---------------------------------------
  タブコンテンツ
---------------------------------------*/
.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 30px;
}
.tab-btn {
	border: none;
	font-size: 1.2rem;
	color: #F2B7BF;
	cursor: pointer;
	transition: color 0.3s, border-color 0.3s;
	border-radius: 8px;
}
.tab-btn:hover {
  color: black;
}
.tab-btn.active {
	font-weight: bold;
	border-bottom: 2px solid black;
	background: #C7D3DD;
	color: #FFFFFF;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/*---------------------------------------
  グリッドとセクション
---------------------------------------*/
.study,
.news-grid,
.feature-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
    width: 100%;
    margin: 0 auto;
}
.news-thumb {
	background: #f9f9f9;
	padding: 1rem;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 横:0px, 縦:4px, ぼかし:10px, 透過:20% */
	overflow: hidden;
	
}
/* 確実にすべてのブラウザ、すべてのメディアクエリ設定を上書きします */
section.grid-pink {
	background-image: none;
	background-repeat: repeat;
	background-color: #F6F4F1;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 横:0px, 縦:4px, ぼかし:10px, 透過:20% */
}

/*---------------------------------------
  フッター
---------------------------------------*/

footer {
	background-color: #F6F4F1;
	color: #b9c4c9;
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1rem;
}
.icon-sns-footer img {
  width: 24px;
  height: auto;
}
.icon-sns-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 4px; /* アイコン間の間隔 */
  align-items: center; /* 垂直方向の位置を揃える */
}


/* スマホ用レイアウト */
@media (max-width: 768px) {
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
}
}

/* フｔッターのリンク */
footer a {
   text-decoration: none;  /* そもそも最初からアンダーラインをつけない */
   color: #333333;
}
footer a:hover {
  text-decoration: none;        /* ホバーでアンダーライン消える */
  font-weight: 800;
}


@media (max-width: 600px) {
  footer a  {
  font-weight: 700;
  }
}


/*---------------------------------------
  slie in
-----------------------------------------*/
/* スライドインの初期状態 */
.slide-in {
	opacity: 0;
	transform: translateY(30px);
	transition: all 0.6s ease-out;
}

.slide-in.active {
  opacity: 1;
  transform: translateY(0);
}

/*---------------------------------------
  TIMELINE STYLES
-----------------------------------------*/

.timeline {
  position: relative;
  margin: 2rem 0;
}

.timeline-wrapper {
	position: relative;
	padding: 10px 0 6px 0;
}

/* 縦ライン */
.timeline-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  width: 3px;
  height: 100%;
  background-color: #474559;
  z-index: 0;
}
.timeline-wrapper:last-child::before {
  height: 0;
}

.timeline-yr span {
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  display: block;
  line-height: 60px;
}

.timeline-yr,
.timeline-yr2 {
	position: absolute;
	top: 0;
	width: 60px;
	height: 60px;
	line-height: 60px;
	text-align: center;
	border-radius: 50%;
	z-index: 1;
	/* ↓↓↓ この行を追加してください ↓↓↓ */
	display: inline-block; 
}
.timeline-yr {
	background-color: #EAB7D1;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 横:0px, 縦:4px, ぼかし:10px, 透過:20% */
}
.timeline-yr2 {
	background-color: #9ABFD9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 横:0px, 縦:4px, ぼかし:10px, 透過:20% */

}
/* テキスト情報 */
.timeline-info {
  display: inline-block;
  vertical-align: top;
  margin-left: 5em;
}
.timeline-info h3 {
  margin-top: 0;
  margin-bottom: 0.3em; /* ← 見出しの下余白を小さく */
}
.timeline-info p {
  margin-top: 0.3em; /* ← 段落の上余白を小さく */
}
.timeline-info small {
  color: #474559;
  font-weight: bold;
  display: inline-block;
  vertical-align: middle;
  margin-left: 15px;
}


/* タブと固定画像のバランスを整える */
.main-content-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .main-content-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .tab-area-wrapper {
	width: 60%;
	margin-right: 40px;
	background-color: #fff;
}
  .fixed-image-area {
    width: 40%;
    text-align: center;
  }
  .fixed-image-area img {
    max-width: 100%;
    height: auto;
  }
}



/* 最初は非表示にする */
.acc-hideable-content {
  display: none;
}

/* パソコンでは常に表示 */
@media screen and (min-width: 768px) {
  .acc-hideable-content {
    display: block !important;
  }
}

@media screen and (max-width: 767px) {
  .read-more-toggle {
    display: block;
  }
}
@media screen and (min-width: 768px) {
  .read-more-toggle {
    display: none;
  }
}
/*---------------------------------------
  レイアウトなど共通
---------------------------------------*/
.text-center{
	text-align:center;

}
.img-center {
    display: block;
  margin: 0 auto;
}
#upsmall {
	margin-top: 0.6rem !important;
	padding:0em;
}
.title1 {
	color: #D6A5CD;
}
.title2 {
	color: #5C8C90;
}

/*---------------------------------------
  others
---------------------------------------*/.lead-copy {
    font-size: 1.5rem;    /* 文字を大きく（h2くらいのサイズに） */
    font-weight: bold;     /* 太字にする */
    margin-top: 10px;      /* h1との間隔を調整 */
    color: #333;           /* お好みの色に */
}
