/* 全体背景を黒 */
body {
  margin: 0;
  background-color: #000;
  font-family: sans-serif;
  color: #000;
}
html, body {
  margin: 0;
  padding: 0;
}
/* ヘッダー内の動画を全幅で表示 */
.header-video {
  width: 100%;
  height: auto;
  display: block;
}

/* テキスト部分（中央・白背景） */
.content {
  background-color: #fff;
  max-width: 640px;
  padding: 20px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* レスポンシブ（640px以下の端末にもpadding維持） */
@media (max-width: 640px) {
  .content {
    padding: 20px;
  }
}

/* セクション全体（背景黒・白文字） */
.media-section {
  background-color: #000;
  color: #fff;
  max-width: 640px;
  width: 100%;
  margin: 20px auto 40px auto;
  padding: 0;
  box-sizing: border-box;
}

/* 上部の見出し・サブタイトル */
.media-heading-top {
  padding: 20px;
}

.media-title {
  font-size: 2.4em;  /* 以前より大きく（例: 約38px相当） */
  font-weight: bold;
  color: #f00;
  margin: 0 0 5px 0;
}

.media-subtitle {
  font-size: 0.9em;
  color: #fff;
  margin: 0;
}

/* 画像とテキスト横並び用ラッパー */
.media-content-wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
  box-sizing: border-box;
}

/* 画像コンテナ */
.media-image-container {
  width: 50%;
  box-sizing: border-box;
}

/* 画像・テキスト共通設定 
.media-image-container,
.media-text-container {
  width: 50%;
  box-sizing: border-box;
} */

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

/* テキストコンテナ */
.media-text-container {
  width: 50%;
  padding: 0px 20px 20px 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  flex-direction: column;   /* 子要素を縦に並べる */
  justify-content: flex-start; /* 上に寄せる */
}

/* モバイル：縦並びに変更 */
@media (max-width: 640px) {
  .media-content-wrap {
    flex-direction: column;
  }

  .media-image-container,
  .media-text-container {
    width: 100%;
  }

  .media-title {
    font-size: 2.4em;
  }

  .media-subtitle {
    font-size: 0.9em;
  }
}



/* 背景画像セクション */
.hero-banner {
  background-image: url("./img/r3_2.jpg"); /* 任意の背景画像 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  width: 100%;
  padding: 80px 20px 0px 20px;
  box-sizing: border-box;
  text-align: left;
}
.hero-banner {
  background-image: url("./img/r3_2.jpg"); /* 任意の背景画像 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  width: 100%;
  padding: 80px 20px 0px 20px;
  box-sizing: border-box;
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 20px 0px 20px;
  box-sizing: border-box;
  text-align: left;
}

/* 白いテキスト */
.hero-title {
  font-size: 2em;
  font-weight: bold;
  margin: 0;
}

/* モバイル対応 */
@media (max-width: 640px) {
  .hero-title {
    font-size: 1.5em;
  }
.hero-banner {
  padding: 30px 0px 0px 0px;
}
}





/* 白背景セクション全体 */
.media-section2 {
  background-color: #fff;
  color: #000;
  max-width: 640px;
  width: 100%;
  margin: 40px auto;
  padding: 0;
  box-sizing: border-box;
}

/* 画像とテキスト横並び用ラッパー */
.media-content-wrap2 {
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.media-image2 {
  width: 100%;
  height: auto;
  display: block;
}

/* 見出しとサブタイトル（白背景用） */
.media-heading-top2 {
  padding: 20px;
  text-align: left;
}

/* 画像コンテナ */
.media-image-container2 {
  width: 50%;
  box-sizing: border-box;
}
.media-title2 {
  font-size: 2em;
  font-weight: bold;
  color: #000;
  margin: 0 0 5px 0;
}

.media-subtitle2 {
  font-size: 0.9em;
  color: #333;
  margin: 0;
}

/* 画像・テキスト共通設定 
.media-image-container,
.media-text-container {
  width: 50%;
  box-sizing: border-box;
} */

.media-image2 {
  width: 100%;
  height: auto;
  display: block;
}

/* テキストコンテナ */
.media-text-container2 {
  width: 50%;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #000;
}
/* モバイル：縦並びに変更 */
@media (max-width: 640px) {
  .media-content-wrap2 {
    flex-direction: column;
  }

  .media-image-container2,
  .media-text-container2 {
    width: 100%;
  }

  .image-container {
    width: 100%;
  }

  .media-title2 {
    font-size: 1.6em;
  }

  .media-subtitle2 {
    font-size: 0.8em;
  }
}








/* media-section3：セクション全体（背景白） */
.media-section3 {
  background-color: #fff;
  color: #000;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* 見出し */
.media-heading-top3 {
  padding: 20px;
}

.media-title3 {
  font-size: 2em;
  font-weight: bold;
  color: #000;
  margin: 0 0 5px 0;
}

.media-subtitle3 {
  font-size: 0.9em;
  color: #333;
  margin: 0;
}

/* コンテンツ横並び */
.media-content-wrap3 {
  display: flex;
  flex-wrap: wrap;
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* 画像側 */
.media-image-container3 {
  width: 50%;
  box-sizing: border-box;
}

.media-image3 {
  width: 100%;
  height: auto;
  display: block;
}

/* テキスト側 */
.media-text-container3 {
  width: 50%;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* スマホ表示：縦並び */
@media (max-width: 640px) {
  .media-content-wrap3 {
    flex-direction: column;
  }

  .media-image-container3,
  .media-text-container3 {
    width: 100%;
  }

  .media-title3 {
    font-size: 1.6em;
  }

  .media-subtitle3 {
    font-size: 0.8em;
  }
}









/************ ***********/

.img-c{
  margin-to: 30px;
  margin-bottom: -10px;
	
}




/************ ***********/
.image-container {
  widoth: 640px;
  padding: 0;
  margin-bottom: 0px;
  display: flex;
  justify-content: center;

}

.fade-in-image {
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  transition-delay: calc(var(--delay) * 1s);
  widoth: 640px;
  height: auto;
  /*aspect-ratio: 1/1;*/
  object-fit: cover;
}

.fade-in-image.visible {
  opacity: 1;
  transform: translateY(0);
}

/********* moji ***********/
.t001 {
    font-size: 2.0em;
  }
  
.t002 {
    font-size: 2.2em;
  }
.text_b{
    font-size: 1.3em;font-weight:bold;
  }
.text_tel{
    font-size: 1.5em;font-weight:bold;

  }
 .text_tel a {
  text-decoration: none;color: #000;
}
.html_link{
    font-size: 1em;font-weight:bold;

  }
 .html_link a {
  text-decoration: none;color: #000;
}
  
  
  
.content2 {
  background-color: #fff;
  max-width: 640px;
  padding: 10px 20px 20px 20px;
  margin: 0 auto;
  box-sizing: border-box;
}
.content3 {
  background-color: #fff;
  max-width: 640px;
  padding: 0px 20px 20px 20px;
  margin: -10px 0px 10px 0px ;
  box-sizing: border-box;
}

/* レスポンシブ（640px以下の端末にもpadding維持） */
@media (max-width: 640px) {
  .content {
    padding: 20px;
  }
  .content2 {
    padding: 20px;
  }
  .content3 {
    padding: 20px;
  }
}



/* fadeUp */

.fadeUp{
animation-name:fadeUpAnime;
animation-duration:1.5s;
animation-fill-mode:forwards;
opacity:0;
}

@keyframes fadeUpAnime{
  from {
    opacity: 0;
  transform: translateY(100px);
  }

  to {
    opacity: 1;
  transform: translateY(0);
  }
}
/* 左から */

.fadeLeft{
margin-left:-25px;
animation-name:fadeLeftAnime;
animation-duration:1.5s;
animation-fill-mode:forwards;
opacity:0;
}

@keyframes fadeLeftAnime{
from {
opacity: 0;
transform: translateX(-100px);
}
to {
opacity: 1;
transform: translateX(0);
}
}


/* スクロールをしたら出現する要素にはじめに透過0を指定　*/
.fadeUpTrigger,
.fadeLeftTrigger{
    opacity: 0;
}

.animation {
  animation: fade-in 2s;
  animation-fill-mode: forwards;
  margin-bottom:-16px;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}



.container{
	overflow: hidden;
}
.slidein{
	/* 装飾に関わるスタイルは省略 */
	margin: 10px auto;
	transition: 0.5s cubic-bezier(0.75, 0, 0.25, 1);
}
.slide_left{
	transform: translateX(calc(-50vw - 50%));
}
.slide_right{
	transform: translateX(calc(50vw + 50%));
}
.show{
	transform: translateX(0);
}



/* トップに戻るボタン*/
html {
  scroll-behavior: smooth;
}

.link001 a{
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  text-decoration: none;
  background-color: #b31031;
  display: block;
  text-align: center;
  border-radius: 24px;
}

.link001 a::before {
  content: '\f062';
  font-family: 'Font Awesome 6 Free';
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  line-height: 48px;
}


/**********ヘッダーメニュー*****************/

/* 共通スタイル */

.header {
  display: flex;
  justify-content: flex-start;  /* ← 左詰めにする */
  align-items: center;
  padding: 15px 20px;
  background-color: #000;
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
  margin-right: 30px;
  color: #fff;
}

.nav {
  flex-grow: 1;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 20px;
  padding-left: 0;
  margin: 0;
  align-items: center;
}

.nav-list li a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
}

.hamburger {
  width: 30px;
  height: 22px;
  position: absolute;
  right: 50px;  /* ←位置調整 */
  top: 18px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  height: 3px;
  background: red;
  border-radius: 2px;
  transition: 0.3s;
}

/* ハンバーガー表示（スマホ） */
@media screen and (max-width: 768px) {
  .hamburger {
    display: flex;
    right: 50px;  /* ←ここで30px左にずらす */
  }

  .nav-list {
    display: none;
    flex-direction: column;
    background: #000;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    align-items: flex-start;
  }

  .nav-list.active {
    display: flex;
  }

  /* ハンバーガーを×に変形 */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}


