html {scroll-behavior: smooth;}
/* Google Fonts（Shippori Mincho B1）のインポート */
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho+B1:wght@400;600&display=swap');

/* フォント：Shippori Mincho B1（通常ウェイト） */
.shippori-mincho-b1-regular {
  font-family: "Shippori Mincho B1", serif;
  font-weight: 400;
  font-style: normal;
}

/* フォント：Shippori Mincho B1（セミボールド） */
.shippori-mincho-b1-semibold {
  font-family: "Shippori Mincho B1", serif;
  font-weight: 600;
  font-style: normal;
}

/* 本文のベーススタイル（大きめの文字と行間） */
body {
  font-size: 18px;
	line-height: 36px; 
	background-color: rgba(100, 157, 182, 1);
}

/* h2見出しのスタイル：大きめのフォントとマージン、セミボールド */
h2 {
  font-size: 38px;
  line-height: 48px;
  margin: 2rem 0;
  font-family: "Shippori Mincho B1", serif;
  font-weight: 600;
  font-style: normal;
}



/* h3見出しのスタイル：やや小さめ、通常のウェイト */
h3 {
  font-size: 28px;
  line-height: 32px;
  margin: 1.5rem 0;
  font-family: "Shippori Mincho B1", serif;
  font-weight: 400;
  font-style: normal;
}
h3 span.profile_t{font-size:1.35rem;}
p.caption{font-size: 1rem;}

p.voicenushi{font-size:1.3rem;}

p.staff01{font-size:1.5rem}
	p.staff02{font-size:1.15rem}
	p.staff03{font-size:1rem;line-height:1.6rem}
@media (max-width: 576px) {
body {
  font-size: 16px;
  line-height: 28px;
}
h2 {
		font-size: 32px;
		  line-height: 42px;
	}
h3 {
  font-size: 24px;
  line-height: 28px;
	}
h3 span.profile_t{font-size:1.15rem;}
			p.voicenushi{font-size:1.0rem;}
			p.staff02{font-size:1.0rem}
}


/* 白文字用のユーティリティクラス */
.color-white {
  color: #fff;
}

/* 最大幅960pxに制限したコンテナ（レスポンシブ中心） */
.container {
  max-width: 960px;
}

/* Bootstrap Iconsに対してサイズ調整 */
.icon-link > .bi {
  width: 0.75em;
  height: 0.75em;
}

/* -------------------------------------- */
/* 半透明のサイトヘッダー（ガラス風の背景） */
/* -------------------------------------- */
.site-header {
  background-color: rgba(0, 0, 0, .85); /* 黒の半透明背景 */
  -webkit-backdrop-filter: saturate(180%) blur(20px); /* Safari対応 */
  backdrop-filter: saturate(180%) blur(20px); /* 背景ぼかしと彩度調整 */
}

/* ヘッダー内リンクの通常とホバー時の色指定 */
.site-header a {
  color: #8e8e8e; /* デフォルトはグレー */
  transition: color .15s ease-in-out; /* 色変化のアニメーション */
}
.site-header a:hover {
  color: #fff; /* ホバー時は白に */
  text-decoration: none;
}

/* -------------------------------------- */
/* デモ用のデバイス風図形（見た目調整用） */
/* -------------------------------------- */
.product-device {
  position: absolute;
  right: 10%;
  bottom: -30%;
  width: 300px;
  height: 540px;
  background-color: #333; /* ダークグレー */
  border-radius: 21px; /* 丸みを帯びた角 */
  transform: rotate(30deg); /* 斜め回転 */
}

/* デバイス内の画面部分を表す疑似要素 */
.product-device::before {
  position: absolute;
  top: 10%;
  right: 10px;
  bottom: 10%;
  left: 10px;
  content: "";
  background-color: rgba(255, 255, 255, .1); /* 白の薄い半透明 */
  border-radius: 5px;
}

/* 別パターンのデバイス：位置・色が異なる */
.product-device-2 {
  top: -25%;
  right: auto;
  bottom: 0;
  left: 5%;
  background-color: #e5e5e5; /* 明るいグレー */
}

/* -------------------------------------- */
/* フレックスアイテムを等幅にするユーティリティ */
/* -------------------------------------- */
.flex-equal > * {
  flex: 1;
}

/* md（768px以上）の場合に等幅にする */
@media (min-width: 768px) {
  .flex-md-equal > * {
    flex: 1;
  }
}

/* ハンバーガーメニューアイコンのスタイル（白色の3本線） */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* 閉じるボタン（オフキャンバスメニュー用）のカスタムスタイル */
.btn-close {
  width: 1.5rem; /* サイズ調整 */
  height: 1.5rem;
  background-size: 1.5rem;
  background-color: transparent; /* 背景色を透明に */
  border: none;
  opacity: 1; /* 完全に表示 */
  /* 白い「×」アイコンのSVG */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cline x1='1' y1='1' x2='15' y2='15' stroke='white' stroke-width='2.5'/%3E%3Cline x1='15' y1='1' x2='1' y2='15' stroke='white' stroke-width='2.5'/%3E%3C/svg%3E");
}

/* オフキャンバス（ドロワーメニュー）を画面サイズに縛られず自由な高さにする */
.offcanvas {
  height: auto !important;
  max-height: none;
  top: auto;
  bottom: auto;
}

/* オフキャンバスの背面（バックドロップ）の透明化 */
.offcanvas-backdrop {
  background-color: rgba(0, 0, 0, 0) !important;
}

/* スクロール時にアニメーションする要素の初期状態（透明） */
.animate-on-scroll {
  opacity: 0;
  /* Safariでの描画問題を回避するため、GPUアクセラレーションを有効にする 
  transform: translateZ(0);*/
}

/* アニメーションが開始された状態（可視） */
.animate-on-scroll.animate__animated {
  opacity: 1;
}

/* YouTube埋め込み用のレスポンシブコンテナ */
.youtube {
  width: 100%;
  max-width: 600px; /* 最大幅を指定 */
  aspect-ratio: 16 / 9; /* アスペクト比を維持 */
}

/* YouTube iframe自体をコンテナにフィットさせる */
.youtube iframe {
  width: 100%;
  height: 100%;
}

/* TOPイメージのところ*/
            .fade-in {
  animation: fadeIn 2s ease-in-out;
}

.fade-out {
  animation: fadeOut 2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* 縦長スマホでトップセクションが画像で溢れないように */
@media (max-height: 600px) {
  #section1, #section2 {
    height: auto !important;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

a.button:hover,buttonon:hover{opacity: 0.5;}


/* 背景画像の指定 */
.backimage01{
background-image: url(../../images/backimage01.webp);
background-size: cover;background-position: center;}
.backimage02{
background-image: url(../../images/backimage02b.webp);background-size:cover
;background-position:bottom;}

@media (max-width: 767px) {
.backimage01{background-image: url(../../images/backimage01b.webp);background-position: bottom;}
.backimage02{background-image: url(../../images/backimage02b.webp);background-size:contain;background-position:bottom;background-repeat: repeat-y;}
			}
			
/*
  Animate.cssのアニメーションを2秒でゆっくり、かつスムーズに動作させるためのカスタムクラス
*/
.custom-slow {
  /* アニメーション時間を2秒に設定します。
     !important は、他のスタイルよりもこの設定を優先させるための記述です。 */
  animation-duration: 2s;

  /* --- ここから下は、特にiPhone(iOS)でのパフォーマンスを改善するための記述です --- */

  /* GPUアクセラレーションを有効にし、アニメーションを滑らかにします */
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);

  /* アニメーション中のチラつきを防止します */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;

  /* ブラウザに「transformとopacityが変化する」と事前に伝え、最適化を促します */
  will-change: transform, opacity;
			}
			
/* スマホで冒頭文字小さく */
#section1{padding:32px 32px}
@media screen and (max-width: 767px) {
					#section1{padding:32px 16px}
#section1 img {
      transform: scale(0.8);
      transform-origin: center;
}
					}
					
/* section-container は section1 と section2 を囲む親要素とします */
.section-container {
  position: relative;
  width: 100%;
  height: 100vh; /* ビューポートの高さに合わせる */
}

.section-container section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* opacity と visibility で制御 */
					}
					
					/*---------*/
					/* 2つのセクションを重ねるための親コンテナの設定 */
.section-container {
  position: relative; /* 子要素を絶対配置(position:absolute)するための基準点にする */
  width: 100%;
  height: 100vh; /* 画面の高さに合わせる */
}

/* 重ねるセクションの共通スタイル */
#section1,
#section2 {
  position: absolute; /* 親要素を基準に、絶対位置で配置する（これで2つが重なります） */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  /* ★アニメーション時間を4秒に変更して、よりゆっくりに */
  transition: opacity 4s ease;
}

/* section2 は初期状態では透明にしておく */
#section2 {
  opacity: 0;
  /* 透明な間はクリックなどの操作ができないようにする */
  pointer-events: none;
}
					
/* -------------------------------------- */
/* アニメーション前の初期状態（透明なだけ） */
.fade-init {
  opacity: 0;
}

/* シンプルなフェードインアニメーションの定義（移動の動きなし） */
@keyframes simpleFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* アニメーションを実行するためのクラス */
.fade-in {
  /* 上で定義した "simpleFadeIn" という名前のアニメーションを適用 */
  animation-name: simpleFadeIn;
  /* アニメーションにかける時間 */
  animation-duration: 2s;
  /* アニメーションの速度変化 */
  animation-timing-function: ease-out;
  /* アニメーション完了後、その状態を維持する */
  animation-fill-mode: forwards;
						}
						
/* footer-navi */

/* "最初の"リスト項目"以外"の"前"に区切り線を追加 
.footnav-item:not(:first-child)::before {*/
  content: "|";
  /* リンクの色に合わせて色を指定してください（例: 黒色） 
  color: #000;*/
  /* リンクの左側の余白とバランスを取るための余白 
padding-right: 1rem; */
							/* この値は好みで調整してください 
}*/
/* footer-のcss */						
.footer {
 text-align: center;
 padding: 30px;
}
.footer a {
color: #808080;
 text-decoration: none;
}
.footer a:hover {
 text-decoration: underline;
}
.footer .menu {
 margin: 0;
 padding: 0;
 list-style: none;
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
}
.footer .menu li {
 margin: 0;
 padding:0 20px;
 border-right: 1px #808080 solid;
}
.footer .menu li:last-child {
 border: none;
}

@media only screen and (max-width: 599px) {
.footer .menu {
 justify-content: flex-start;
}
.footer .menu li {
 width: 50%;
 box-sizing: border-box;
 border: none;
}
.footer .menu li:nth-child(odd) {
 border-right: 1px #808080 solid;
}
}