
/* ロゴコンテナのスタイル */
.logo-container {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: #f9f9f9;
}

/* ロゴ画像のスタイル */
.logo {
  height: 50px; /* ロゴ画像の高さを固定 */
  margin-right: 10px; /* 画像と文字の間に余白 */
}

/* 会社名のスタイル */
.company-name {
  font-family: 'Playfair Display', serif; /* Playfair Displayを適用 */
  font-size: 24px; /* 文字サイズ */
  font-weight: 700; /* 太字 */
  color: #333; /* テキストの色 */
}
/* 
hamburger(ハンバーガーアイコン)
=================================== */
.hamburger {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 50px;
    height: 40px;
    cursor: pointer;
    z-index: 300;
  }
  
  .hamburger__line {
    position: absolute;
    width: 60px;
    height: 10px;
    right: 0;
    background-color: #000;
    transition: all 0.5s;
  }
  
  .hamburger__line--1 {
    top: 1px;
  }
  
  .hamburger__line--2 {
    top: 12px;
  }
  
  .hamburger__line--3 {
    top: 24px;
  }


  
  p {
    text-align: center; /* テキストを中央揃え */
    margin: 0 auto; /* 上下のマージンをなくし、左右の余白を自動で調整 */
    max-width: 800px; /* 最大幅を設定して長すぎないように調整 */
    }
 
  #news-h3 {
      text-align: center; /* 中央揃え */
      font-family: "ＭＳ 明朝", serif; /* 明朝体フォント */
      font-size: 24px; /* フォントサイズ（お好みに調整） */
      margin: 0 auto; /* 上下のマージンをなくし、左右の余白を自動調整 */
      position: relative; /* 擬似要素の基準となるための設定 */
  }
  
  #news-h3::after {
      content: ""; /* 擬似要素に空のコンテンツを追加 */
      position: absolute; /* 親要素を基準に絶対位置指定 */
      left: 50%; /* 左端から中央に配置 */
      transform: translateX(-50%); /* 中央揃えの調整 */
      bottom: -10px; /* タイトルの下に配置（間隔調整可） */
      width: 200px; /* 二重線の長さを固定 */
      border-bottom: 3px double #a11a1a; /* 2重線のデザイン */
  }
  


  /*ハンバーガーがクリックされたら*/
  .open .hamburger__line--1 {
    transform: rotate(-45deg);
    top: 11px;
  }
  
  .open .hamburger__line--2 {
    opacity: 0;
  }
  
  .open .hamburger__line--3 {
    transform: rotate(45deg);
    top: 11px;
  }
  
  /* 
  sp-nav(ナビ)
  =================================== */
  .sp-nav {
    position: fixed;
    right: -100%; /*ハンバーガーがクリックされる前はWindow右側に隠す*/
    top: 0;
    width: 20%; /* 出てくるスライドメニューの幅 */
    height: 100vh;
    background-color: #f2f1f6;
    transition: all 0.5s;
    z-index: 200;
    overflow-y: auto; /* メニューが多くなったらスクロールできるように */
    color: #ffffff; /* テキストの色を白に設定 */
    font-size: 18px; /* フォントサイズを変更 */
    font-family: "ＭＳ 明朝", serif; /* 明朝体を設定（任意） */
    padding: 20px; /* 内側に余白を追加（オプション） */
  }
  
  /*ハンバーガーがクリックされたら右からスライド*/
  .open .sp-nav {
    right: 0;
  }
  

  .sp-nav ul {
    padding: 0;
    margin: 0;
    list-style: none; /* デフォルトのリストマーカーを削除 */
}

.sp-nav li {
    margin-bottom: 20px; /* 各項目の下に余白を追加 */
}

.image-container {
  position: relative; /* 子要素を絶対配置する基準を設定 */
  width: 100%; /* 必要に応じて幅を指定 */
  max-width: 500px; /* 写真の最大幅を設定 */
  margin: 0 auto; /* 中央に配置 */
}

.image-container img {
  width: 100%; /* 画像の幅を親要素に合わせる */
  height: auto; /* アスペクト比を維持 */
  opacity: 0.5; /* 画像を半透明にする (0が完全透明, 1が不透明) */
}

.image-text {
  position: absolute; /* 画像の上に配置 */
  top: 50%; /* 縦中央 */
  left: calc(50% + 10px);
  color: white; /* テキストの色を白に設定 */
  font-size: 24px; /* テキストサイズを設定 */
  font-weight: bold; /* 太字 */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* テキストに影を付けて読みやすくする */
  text-align: left; /* テキストを左揃えに変更 */
  transform: none; /* translateXを無効にする */
}

  
  /* 
  black-bg(ハンバーガーメニュー解除用bg)
  =================================== */
  .black-bg {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 5;
    background-color: #000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
    cursor: pointer;
    z-index: 100;
  }
  
  /*ハンバーガーメニューが開いたら表示*/
  .open .black-bg {
    opacity: 0.3;
    visibility: visible;
  }

  /* 英語部分 */
.menu-en {
  display: block; /* 英語を上の行に */
  font-size: 20px; /* 英語のフォントサイズ */
  /* font-weight: bold; 英語を太字に */
  color: #030303; /* 日本語を少し薄い白色にする */
  font-family: 'Arial', 'Helvetica', sans-serif; /* フォントを指定 */
}

/* 英語部分のホバー時 */
.menu-en:hover {
  color: #ff5733; /* ホバー時に色を変更 */
}

/* 英語部分のアクティブ状態 */
.menu-en:active {
  color: #c70039; /* アクティブ状態時に色を変更 */
}

/* 日本語部分 */
.menu-jp {
  display: block; /* 日本語を下の行に */
  font-size: 14px; /* 日本語のフォントサイズ */
  margin-top: 2px; /* 日本語の上に少し余白 */
  color: #030303; /* 初期の色 */
}

/* 日本語部分のホバー時 */
.menu-jp:hover {
  color: #ff5733; /* ホバー時に色を変更 */
}

/* 日本語部分のアクティブ状態 */
.menu-jp:active {
  color: #c70039; /* アクティブ状態時に色を変更 */
}

/* 日本語部分 */
.menu-jp {
  display: block; /* 日本語を下の行に */
  font-size: 14px; /* 日本語のフォントサイズ */
  margin-top: 2px; /* 日本語の上に少し余白 */
  color: #030303; /* 日本語を少し薄い白色にする */
}
 
/* 全体のコンテナ */
/* 全体のレイアウト設定 */
.content-left,
.content-container {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}



/* テキスト部分 */
.content-lefttext,
.content-text {
  flex: 1;
}


/* スマホ対応（幅768px以下） */
/* ======== スマホ対応（幅768px以下） ======== */
@media screen and (max-width: 768px) {
  /* 親コンテナを縦並びに */
  .content-left,
  .content-container {
    flex-direction: column !important; /* スマホでは強制的に縦並び */
    text-align: center; /* 必要なら中央揃え */
  }

  /* 画像を上に配置 */
  .content-left img,
  .content-container img {
    order: -1 !important; /* 画像を先に表示 */
    width: 100%; /* 画面幅いっぱいに */
    max-width: 400px; /* 画像の最大幅を制限 */
  }

  /* テキスト部分 */
  .content-lefttext,
  .content-text {
    width: 100%;
    text-align: left; /* 左揃え */
  }
}

/* 横並び三枚の写真を設定 */
/* 📌 画像コンテナのスタイル */
.image-contner {
  display: flex;
  justify-content: space-between; /* 写真を均等配置 */
  align-items: center; /* 縦方向の中央揃え */
  gap: 20px; /* 画像間のスペース */
  flex-wrap: wrap; /* 画面が狭くなったら折り返す */
  width: 90%; /* コンテナの横幅を調整 */
  margin: 0 auto; /* 中央揃え */
}

/* 📌 各画像アイテム */
.image-item {
  text-align: center;
  width: 30%; /* 3枚を均等に配置 */
  max-width: 300px; /* 画像の最大幅 */
}

/* 📌 画像のスタイル */
.image-item img {
  width: 100%;
  height: auto;
  border-radius: 10px; /* 角を丸める */
}

/* 📌 画像下のテキスト */
.image-text {
  margin-top: 10px;
  left:10%;
  font-size: 1rem;
  font-weight: bold;
}

/* 📱 スマホ対応（画面幅 768px 以下のとき） */
@media screen and (max-width: 768px) {
  .image-contner {
    flex-direction: column; /* 画像を縦並びに */
    align-items: center; /* 中央揃え */
    gap: 30px; /* 画像間の余白を大きめに */
  }

  .image-item {
    max-width: 100%; /* スマホでは横幅を調整 */
  }

  .image-item img {
    max-width: 90%; /* 画像が画面いっぱいにならないように */
  }
}



h3 {
  font-family: "ＭＳ 明朝", serif; /* 明朝体フォント */
  font-size: 24px; /* フォントサイズ（お好みに調整） */
  color: #a11a1a; /* h3の文字色を青に変更 */
  position: relative; /* 擬似要素の位置を基準にするために必要 */
            padding-bottom: 10px; /* 文字と線の間に余白を設定 */
}

h3::after {
  content: ""; /* 擬似要素に空のコンテンツを追加 */
  position: absolute; /* 親要素を基準に絶対位置指定 */
  left: 0; /* 左端から配置 */
  bottom: 0; /* h3の下に配置 */
  width: 100%; /* 親要素の幅に合わせる */
  border-bottom: 3px double #a11a1a; /* 2重線のデザイン */
}

#paragraph1, #paragraph2, #paragraph3 {
  position: relative; /* positionをrelativeに設定 */
  left: 5px; /* 左に10pxずらす */
  text-align: left; /* 左揃え */
  
}


  /* 全体コンテナ */
.image-container {
  display: flex;
  justify-content: space-between; /* 等間隔 */
  gap: 10px; /* アイテム間のスペース */
  margin: 20px 0;
}

/* 各アイテムのスタイル */
.image-item {
  position: relative;
  width: 100%; /* 横幅の均等割り当て */
}

/* 画像そのもの */
.image-item img {
  width: 380px; /* アイテム幅にフィット */
  height: 200px;
  display: block;
}

/* テキストを写真上に配置 */
.image-text {
  position: absolute;
  top: 80%; /* 中央揃え */
  left: 65%;
  transform: translate(-50%, -50%);
  color: #a11a1a; /* 文字を白色に */
  font-size: 1.2rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* 読みやすさを向上 */
  text-align: center;
  white-space: nowrap; /* テキストを改行しない */
  font-size: 24px; /* フォントサイズを変更 */
  font-family: "ＭＳ 明朝", serif; /* 明朝体を設定（任意） */
}

/* コンテナのスタイル */
.image-container {
  display: flex; /* 横並び配置 */
  justify-content: space-between; /* 各アイテムを左右均等に配置 */
  align-items: center; /* 垂直方向の中央揃え */
  width: 100%; /* コンテナ幅をページ全体に設定 */
  padding: 0 20px; /* 左右の余白 */
  box-sizing: border-box; /* パディングを含めてサイズを計算 */
}

/* 各画像アイテムのスタイル */
.image-item {
  text-align: center; /* 画像とテキストを中央揃え */
  flex: 1; /* 各画像アイテムの幅を均等に設定 */
  margin: 0 10px; /* 各画像の間隔 */
}

.container {
  text-align: center; /* 子要素を水平方向に中央揃え */
}

/* 角丸ボックスのスタイル */
.highlight-box {
  background-color: red;          /* 背景色を赤に設定 */
  color: white;                   /* 文字色を白に設定 */
  padding: 20px 120px;             /* 内側の余白を調整（上下20px、左右40px） */
  border-radius: 25px;            /* 角丸の半径を25pxに設定 */
  font-size: 25px;                /* 文字サイズを20pxに設定 */
  font-family: 'Arial', sans-serif; /* フォントをArialに設定 */
  font-weight: bold;              /* フォントの太さを太字に設定 */
  line-height: 1.5;               /* 行間を調整 */
  display: block;                 /* ブロック要素として表示 */
  text-align: center;             /* 文字を中央揃え */
  width: fit-content;             /* ボックスの幅を内容に合わせる */
  margin: 0 auto;                 /* 両端に自動的な余白を設定して中央揃え */
}

/* スマホ表示用スタイル */
@media (max-width: 768px) {
  .highlight-box {
    font-size: 20px;               /* スマホ用に文字サイズを小さく設定 */
    padding: 20px 40px;            /* スマホ用に左右の余白を調整 */
    width: 90%;                    /* 幅を90%に設定して画面に合わせる */
    white-space: normal;           /* 文字を折り返して2行に */
    overflow: hidden;              /* はみ出した部分を隠す */
    text-overflow: ellipsis;       /* 省略記号を表示 */
  }
}

/* 見出しデザイン */
.t_hard {
  left: 80px;
  border-top: 1px solid #888;
  border-right: 10px solid #F00;
  border-bottom: 1px solid #888;
  border-left: 30px double #F00;
  padding: 5px 15px 5px 15px;
  background: #666;
  background: -moz-linear-gradient(top, #666, #252525); /* FireFox */
  background: -webkit-gradient(linear, left top, left bottom, from(#666), to(#252525)); /* Chrome & Safari */
  border-radius: 7px;
  -moz-border-radius: 7px; /* FireFox */
  -webkit-border-radius: 7px; /* Chrome & Safari */
  font-size: 140%;
  color: #DDD;
  width: 50%;
  height: auto;
  white-space: nowrap; /* 改行しない */
}

/* スマホ向けに調整 */
@media screen and (max-width: 768px) {
  .t_hard {
    left: 0; /* 左の位置を調整 */
    width: 90%; /* 幅を広げる */
    font-size: 120%; /* フォントサイズを少し小さく */
    padding: 3px 10px; /* パディングを調整 */
  }
}

/* より小さい画面（例: 480px以下）に対応 */
@media screen and (max-width: 480px) {
  .t_hard {
    left: 0; /* 左の位置を調整 */
    width: 100%; /* 幅を100%に */
    font-size: 110%; /* フォントサイズをさらに小さく */
    padding: 3px 8px; /* パディングを調整 */
  }
}


  
/* windows横並び写真 */
  .description {
    /* position: relative; */
    left: 10%; /* 親要素の50%位置に */
    padding: 1em;
    background-color: #e3f6f5;
    border-left: 30px solid #0a64e2;
    font-weight: bold;
    margin: 0 auto 0; /* 左側の余白を0に設定 */
    text-align: left; /* コンテンツ内のテキストを左揃え */
    border-radius: 10px; /* 角を丸める */
    width: 550px;  /* 幅を指定 */
    height: 100px; /* 高さを指定 */
  }
  
/* スマホも対応する */
  @media screen and (max-width: 768px) {
    .description {
      width: 90%;  /* 幅を90%に設定（画面サイズに合わせる） */
      height: auto; /* 高さを自動調整 */
      padding: 1em; /* パディング調整 */
      margin: 20px auto; /* 上下の余白を追加して中央に配置 */
      border-left: none; /* 左のボーダーを削除（スマホだと邪魔になる可能性があるため） */
    }
  }
/* nav にクラスを指定 */
/* 言語切替ナビゲーション */
/* 言語切替ナビゲーション */
.language-nav {
  display: flex;
  justify-content: center; /* 中央揃え */
  gap: 10px; /* ボタン間の余白 */
  margin: 60px 0 20px; /* 上の余白を増やす */
}

/* ボタンのスタイル */
.language-nav button {
  font-size: 16px; /* 文字サイズ */
  padding: 10px 20px; /* ボタンの内側余白 */
  width: 100px; /* ボタンの幅を固定 */
  height: 40px; /* ボタンの高さを固定 */
  border: 2px solid #a11a1a; /* 枠線の色と太さを指定 */
  border-radius: 5px; /* 角丸 */
  background-color: #f9f9f9; /* 背景色 */
  color: #a11a1a; /* 初期文字色 */
  cursor: pointer; /* カーソルをポインタに */
  transition: background-color 0.3s, color 0.3s, border-color 0.3s; /* スムーズな変化 */
}

/* ホバー時のスタイル */
.language-nav button:hover {
  background-color: #007bff; /* 背景色を青に */
  color: #fff; /* 文字色を白に */
  border-color: #007bff; /* 枠線の色を青に変更 */
}

/* アクティブ状態のスタイル */
.language-nav button:active {
  background-color: #0056b3; /* 背景色をさらに濃い青に */
  color: #fff; /* 文字色は白のまま */
  border-color: #0056b3; /* 枠線をさらに濃い青に変更 */
}

/* スマホ対応スタイル */
@media (max-width: 768px) {
  .language-nav {
    /* flex-direction: row; ボタンを水平に並べる */
    /*align-items: center;  水平方向に中央揃え */
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2列 */
    gap: 10px; /* ボタン間の余白 */
    justify-content: center;
    padding: 0 10px;
    position: relative;
    z-index: 1000;
  }

  .language-nav button {
    font-size: 14px; /* 文字サイズを調整 */
    padding: 8px 16px; /* 内側余白を小さく */
    width: 50px; /* ボタンの幅を縮小 */
    height: 35px; /* ボタンの高さを縮小 */
    margin-bottom: 10px; /* ボタン間の余白を調整 */
  }
}

.content-image {
  border-radius: 15px; /* 画像の角を丸くする */
  width: 500px; /* 幅を指定 */
  height: 400px; /* 高さを指定 */
  object-fit: cover; /* 画像をサイズに合わせてトリミング */
}

 .hero {
  position: relative;
}

.caption {
  font-family: 'Elixia', sans-serif;
  color: white;
  text-align: center;

  position: absolute;   /* ← relative を変更 */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  pointer-events: none;
  z-index: 2;
}

.caption h1,
.caption p {
  font-family: 'Elixia', sans-serif; /* h1とpタグに対してもフォントを指定 */
}

.logo {
  width: 100px; /* 必要に応じてサイズを調整 */
  height: 100px; /* 幅と高さを同じに設定 */
  border-radius: 50%; /* 画像を丸くする */
  object-fit: cover; /* 画像が丸にフィットするようにトリミング */
}
.logo-container {
  display: flex; /* フレックスボックスを使用 */
  align-items: center; /* 垂直方向の中央揃え */
  justify-content: center; /* 水平方向の中央揃え */
}

.logo {
  width: 50px; /* ロゴ画像の幅を調整 */
  height: 50px; /* ロゴ画像の高さを調整 */
  border-radius: 50%; /* 画像を丸くする */
  object-fit: cover; /* 画像を丸く収める */
  margin-right: 10px; /* 画像と文字の間隔を調整 */
}

.company-name {
  font-size: 20px; /* フォントサイズを調整 */
  font-family: 'Elixia', sans-serif; /* 任意のフォントを指定 */
}
/* ロゴスマホにも対応 */
@media (max-width: 768px) {
  .logo {
    width: 40px;  /* スマホ用にロゴサイズを小さく調整 */
    height: 40px; /* スマホ用にロゴサイズを小さく調整 */
  }

  .company-name {
    font-size: 16px; /* スマホ用に文字サイズを調整 */
  }

  .logo-container {
    flex-direction: column; /* ロゴと名前を縦に並べる */
    padding: 10px; /* スマホ用に余白を追加 */
  }
}

.slideshow-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.slideshow-zoom {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.slideshow-zoom li {
  position: relative;
  width: 100%;
  height: auto;
}

.slideshow-zoom img {
  width: 100%;
  height: auto;
  display: block;
}

.caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  background: transparent;
  padding: 20px;
  max-width: 80%;
  
}


/* お客様の最高のサービスを提供します */
.image-life img {
  width: 1300px; /* 画像の幅を指定 */
  height: auto; /* アスペクト比を維持して高さを自動調整 */
  max-width: 100%; /* 親コンテナより大きくならないように制限 */
  border-radius: 10px; /* 画像の角を少し丸める */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 軽い影を追加 */
  object-fit: cover; /* 必要に応じて画像のトリミング */
}

p.dx-case-title {
  position: relative;
  font-size: 18pt;
  left: 180px;  /* leftを指定して位置を調整 */
  font-weight: bold;
  margin: 0 0 1.5em;
  padding: 0.2em 0.5em 0.4em 2em;
  border-bottom: 3px solid #ff6699;
}

p.dx-case-title:before {
  position: absolute;
  top: -8px;
  left: 85px;  /* leftを指定して位置を調整 */
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  height: 12px;
  width: 12px;
  background: #ff1493;
  content: "";
}

p.dx-case-title:after {
  position: absolute;
  top: 8px;
  left: 80px;  /* leftを指定して位置を調整 */
  transform: rotate(15deg);
  -webkit-transform: rotate(15deg);
  height: 8px;
  width: 8px;
  background: #ff99cf;
  content: "";
}

.left-aligned {
  text-align: left;
}
/* メディアクエリ：スマホ対応 */
@media screen and (max-width: 768px) {
  .content-image {
    width: 100%; /* スマホで画像の幅を100%に調整 */
    height: auto;
  }

  .caption {
    font-size: 16px; /* テキストサイズを少し小さく調整 */
  }

  .logo-container {
    flex-direction: column; /* ロゴと会社名を縦に並べる */
  }

  .logo {
    width: 40px; /* ロゴサイズを調整 */
    height: 40px;
  }

  .company-name {
    font-size: 16px; /* フォントサイズを調整 */
  }

  .slideshow-zoom {
    width: 100%;
    height: auto; /* スライドショーのサイズ調整 */
  }

  .slideshow-zoom li {
    width: 100%; /* スライドショーのアイテム幅を100%に設定 */
  }

  p.dx-case-title {
    font-size: 16pt; /* スマホ用にタイトルサイズを調整 */
    left: 20px; /* 左の位置を調整 */
  }

  p.dx-case-title:before {
    left: 20px; /* アイコンの位置調整 */
  }

  p.dx-case-title:after {
    left: 20px; /* アイコンの位置調整 */
  }

  .image-life img {
    width: 100%; /* 画像の幅を100%に調整 */
  }
}

/* コンテナ全体のレイアウト設定 */
.cont-container, .cont-right {
  display: flex; /* 子要素を横並びに配置 */
  align-items: center; /* 垂直方向を中央揃え */
  gap: 20px; /* 写真と文字の間に余白を追加 */
  padding: 20px; /* コンテナ全体の余白 */
}

/* 写真のスタイル設定 */
.content-image {
  width: 100%; /* 写真の横幅を100%に設定 */
  max-width: 500px; /* 写真の最大横幅を400pxに設定 */
  height: auto; /* アスペクト比を維持 */
  object-fit: cover; /* 写真の収まり方を調整 */
  flex-shrink: 1; /* 写真が縮小できるようにする */
  margin-bottom: 20px; /* 写真と次のコンテンツとの間に余白 */
}

/* テキスト部分のスタイル設定 */
.content-righttextcastam {
  flex: 1; /* テキスト部分を残りのスペースに適応させる */
  text-align: left; /* テキストは左揃え */
  margin-bottom: 20px; /* テキストと次の写真との間に余白 */
}

/* 説明文部分のスタイル設定 */
.descrip {
  font-size: 1rem; /* 説明文のフォントサイズ */
  line-height: 1.6; /* 行間の調整 */
  padding: 1em;
  background-color: #e3f6f5;
  border-left: 30px solid #d0e20a;
  font-weight: bold;
  margin: 0 auto; /* 自動的に左右中央揃え */
  text-align: left; /* テキストを左揃え */
  border-radius: 10px;
  width: 100%; /* 幅を親要素にフィット */
  max-width: 550px; /* 最大幅を550pxに設定 */
  height: auto; /* 高さはコンテンツに合わせて可変 */
}

/* スマホ対応のメディアクエリ */
@media screen and (max-width: 768px) {
  /* スマホのときのみ縦並びに変更 */
  .cont-container, .cont-right {
    flex-direction: column; /* 縦並びに変更 */
    gap: 15px; /* 写真とテキストの間を狭く */
  }

  /* 写真 */
  .content-image {
    max-width: 100%; /* 写真の最大幅を100%に設定 */
    margin: 0 auto; /* 写真を中央揃え */
  }

  /* 説明文 */
  .descrip {
    width: 100%; /* 幅を親要素にフィット */
    max-width: 90%; /* 最大幅を90%に設定 */
    font-size: 0.9rem; /* フォントサイズを少し小さく */
    padding: 0.8em; /* パディングを少し小さく */
  }

  /* 各コンテンツブロックの順番を明示的に設定 */
  .cont-container .content-righttextcastam {
    order: 1; /* テキストは写真の前に表示 */
  }
  .cont-container .content-image {
    order: 2; /* 写真はテキストの後に表示 */
  }

  /* テキスト部分の中央揃え */
  .content-Righttextcastam {
    text-align: center; /* テキストを中央揃え */
  }
}

.btn-container {
  text-align: center; /* ボタンの中央揃え */
  margin-top: 1em; /* 文字とボタンの間にスペース */
}

.btn-flat-border {
  display: inline-block;
  padding: 0.5em 1em;
  width: 100px; /* 幅を指定 */
  height: 25px; /* 高さを指定 */
  text-decoration: none;
  color: #b00101;
  border: double 2px #b00101;
  border-radius: 3px;
  transition: .4s;
}

.btn-flat-border:hover {
  background: #fafafb;
  color: rgb(245, 21, 9);
}

#pagetop {
  position: fixed;
  right: 30px;
  bottom: 30px;
  margin: 0;
  
}

#pagetop a{
  position: relative;
  display: flex;
  width: 70px;
  height: 70px;
  justify-content: center;
  background: #FFA500 ;/*背景の色を変える*/
  transition: opacity .6s ease;
  color: #FFFFFF;/*アイコンの色を変える*/
  align-items: center;
  text-decoration: none;
  font-size: 32px;
  border-radius: 30%;
}
#pagetop a:hover {
  opacity: .3;
}
@media screen and (max-width:767px) {
#pagetop a {
  width: 50px;
  height: 50px;
}
}
