@charset "utf-8";
/* レイアウトのためのCSS */

* {
  box-sizing: border-box;
}
/* ヘッダーの背景色を適用 */
#header {
  background-color: #dcd4d4; /* 落ち着いたワインレッドグレー */
  /* 他のヘッダーのスタイル */
}

/* フッターの背景色を適用 */
#footer {
  background-color: #dcd4d4; /* 落ち着いたワインレッドグレー */
  /* 他のフッターのスタイル */
}
.red {
  color: #c7b600;
}
.fas.fa-angle-right {
  color: #c7b600; /* あなたが指定した赤色 */
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: #333;
  text-decoration: none;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* area */
#container {
  overflow-x: hidden;
  /*以下、IE11用*/
  z-index: 1;
  position: relative; /* 疑似要素::beforeの基準点 */
}

#container::before {
  content: "";
  /* container全体に広げる */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  /* 背景画像の設定 */
  background-image: url("../img/background.jpg");

  /* ★★★ 変更点: 画像を繰り返し、隙間をなくす ★★★ */
  background-size: auto; /* 拡大縮小せず、原寸大で扱う */
  background-repeat: repeat; /* 縦横に画像を繰り返して隙間を埋める */

  background-position: top left; /* 繰り返しは通常、左上から開始 */

  /* 背景画像にのみ透明度30% (不透明度70%)を適用 */
  opacity: 0.2;

  /* containerのコンテンツの下に配置 */
  z-index: -1;
}

/* font-family */
h1,
h2,
#service .service-area section h3,
#g-nav,
#footer-link,
.scrolldown1 span,
#vidual-area dt,
.footer-logo {
  /* Oswald (サンセリフ) から EB Garamond (セリフ体) へ変更 */
  font-family: "EB Garamond", serif;
  /* letter-spacingはセリフ体の可読性を考慮し、ここでは維持します */
  letter-spacing: 0.2em;
}

/* heading */

h2 {
  font-size: 2rem;
  margin: 0 0 50px 0;
  text-transform: uppercase;
}
@media screen and (max-width: 570px) {
  h2 {
    font-size: 2rem;
    margin: 10% 0 50px 10%;
    text-transform: uppercase;
  }
}
/* header */

#header h1 {
  position: absolute;
  top: 22px;
  left: 20px;
  text-transform: uppercase;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
}

#service {
  padding: 10% 10% 0;
}
#service .service-lead {
  margin-top: 20px;
}
#service .back-button {
  position: absolute;
  right: 10%;
  font-size: 1rem; /* 例: フォントサイズ */
  line-height: 1.6; /* 例: 行の高さ */
  margin-top: -50px;
  margin-bottom: 20px; /* 例: 下部マージン */
  z-index: 100;
}

@media screen and (min-width: 1500px) {
  #service .back-button {
    right: 10%; /* または calc(1500px * 0.15); */
  }
}
@media screen and (max-width: 768px) {
  #service {
    padding: 10% 10% 0 10%;
  }
  #service .back-button {
    right: 10%; /* 768px以下の場合の右端からの割合 */
  }
}
@media screen and (max-width: 570px) {
  #service {
    padding: 10% 0 0;
  }
  #service .back-button {
    right: 30px; /* 570px以下の場合の右端からの固定値 */
  }
}
/*==================================================
　機能編 7-1-34	少し出ていた線が伸びる
===================================*/

.btnlinestretches2 {
  /*線の基点とするためrelativeを指定*/
  position: relative;
  /*ボタンの形状*/
  color: #333;
  padding: 5px 40px;
  display: inline-block;
  text-decoration: none;
  outline: none;
  font-family: "Oswald", sans-serif;
}

/*線の設定*/
.btnlinestretches2::before,
.btnlinestretches2::after {
  content: "";
  /*絶対配置で線の位置を決める*/
  position: absolute;
  /*事前に出現させる線の形状*/
  border: solid #333;
  width: 10px;
  height: 10px;
  /*アニメーションの指定*/
  transition: all 0.3s ease-in-out;
}

.btnlinestretches2::before {
  /*事前に出現させる線の位置*/
  top: 0;
  left: 0;
  /*事前に出現させる線の形状*/
  border-width: 1px 0 0 1px;
}

.btnlinestretches2::after {
  /*事前に出現させる線の位置*/
  bottom: 0;
  right: 0;
  /*事前に出現させる線の形状*/
  border-width: 0 1px 1px 0;
}

/*hoverした際の線の形状*/
.btnlinestretches2:hover::before,
.btnlinestretches2:hover::after {
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  border-color: #c7b600;
}

/* service-area全体のスタイル */
#service .service-area {
  display: flex;
  flex-direction: column;
  align-items: center; /* アイテムを水平方向で中央揃え */
  /* その他のスタイルは維持 */
  flex-wrap: wrap;
  padding: 0 0 0 0;
  position: relative;
  margin: 0 10%;
}

/* テキスト（.service-lead）と画像の幅を揃えるためのラッパースタイル */
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* コンテンツを左揃えに */
}

.content-wrapper > * {
  width: 100%;
}

/* PC画像とSP画像をデフォルトで非表示にする */
#service .service-area .pc,
#service .service-area .sp {
  display: none;
}

/* --- メディアクエリ --- */

/* ブラウザ幅768px以上の場合（PC表示） */
@media screen and (min-width: 768px) {
  /* PC画像を中央に表示 */
  #service .service-area .pc {
    display: block;
  }
  /* SP画像を非表示 */
  #service .service-area .sp {
    display: none;
  }
  /* .content-wrapperの幅をPC画像と同じにする */
  .content-wrapper {
    width: 600px; /* PC画像の幅に合わせてください */
  }
}

/* ブラウザ幅767px以下の場合（SP表示） */
@media screen and (max-width: 767px) {
  /* PC画像を非表示 */
  #service .service-area .pc {
    display: none;
  }
  /* SP画像を中央に表示 */
  #service .service-area .sp {
    display: block;
  }
  /* .content-wrapperの幅をSP画像と同じにする */
  .content-wrapper {
    width: 300px; /* SP画像の幅に合わせてください */
  }
}
/* 個人プロフィール関係ここから */
.image-container-flex {
  display: flex; /* これが肝！子要素をFlexアイテムにする */
  /* justify-content: space-between; は後述のgapとflex-wrapと合わせて調整 */
  justify-content: center; /* 中央に寄せる */
  align-items: flex-start; /* アイテムを上端に揃える（必要に応じて） */
  gap: 20px; /* アイテム間の隙間を指定（適宜調整） */
  flex-wrap: wrap; /* 画面幅が狭くなった時に折り返す */
  margin-top: 20px;
  margin-left: 0;
  margin-right: 0;
  width: 100%; /* service-areaの幅に合わせる */
}

/* image-container-flex img のスタイルは不要になるか、調整が必要です */
/* 各 image-wrapper のサイズで調整するため、削除またはコメントアウトします */
/*
.image-container-flex img {
    max-width: 18%;
    height: auto;
    box-sizing: border-box;
}
*/

/* 画像とキャプションをグループ化するためのスタイル */
.image-wrapper {
  display: flex; /* Flexコンテナとして設定 */
  flex-direction: column; /* 子要素（画像とp要素）を縦に並べる */
  align-items: center; /* 子要素を水平方向に中央揃えにする */
  /* 各.image-wrapperの幅を調整して横並びに表示 */
  width: calc(
    (100% - (20px * 2)) / 3
  ); /* 3つのアイテムを横並びにする計算 (gap 20px想定) */
  min-width: 120px; /* 小さくなりすぎないように最小幅を設定（適宜調整） */
  margin-bottom: 100px; /* 下方向への間隔（適宜調整） */
}

.image-wrapper img {
  max-width: 100%; /* 親要素の.image-wrapperの幅に合わせる */
  height: auto;
  display: block; /* 画像の下に余白ができないように */
}

.image-caption {
  margin-top: 5px; /* 画像との間に少しスペースを作る */
  text-align: center; /* キャプションを中央揃えにする */
  font-size: 0.9em; /* フォントサイズを調整 */
  color: #333; /* 文字色を調整 */
}

/* SNSアイコン */
.image-wrapper dl ul {
  display: -webkit-flex;
  display: flex; /* ULをFlexコンテナにして、LIを横並びにする */
  justify-content: center; /* アイコンを水平方向に中央揃えにする */
  gap: 10px; /* アイコン間のスペース */
  margin-top: ５px; /* ULの上部にマージンを追加 */
}

.image-wrapper dl ul li {
  margin: 0; /* 既存のLIのマージンをリセット */
}

.image-wrapper dl ul li a {
  font-size: 1rem; /* アイコンのサイズを調整 */
  color: #333; /* アイコンの色 */
  transition: color 0.3s ease; /* ホバー時のトランジション */
}

.image-wrapper dl ul li a:hover {
  color: #c7b600; /* ホバー時の色 (例: 青) */
}
/* SNSアイコンここまで */

/* レスポンシブ対応の調整 */
@media screen and (max-width: 1024px) {
  .image-wrapper {
    width: calc((100% - (20px * 2)) / 3); /* タブレットサイズで3列表示 */
    margin-bottom: 50px;
  }
}

@media screen and (max-width: 768px) {
  .image-wrapper {
    width: calc((100% - 20px) / 2); /* スマートフォン横向きで2列表示 */
    margin-bottom: 30px;
  }
}

@media screen and (max-width: 480px) {
  .image-container-flex {
    justify-content: center; /* スマートフォン縦向きで中央寄せ */
  }
  .image-wrapper {
    width: 100%; /* スマートフォン縦向きで1列表示 */
    margin-bottom: 30px;
  }
}
/* 個人プロフィール関係ここまで */

/* footer */

#footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  opacity: 0.8;
  padding: 5%;
}

#footer .footer-info {
  width: 30%;
}

#footer .footer-info .footer-logo {
  font-size: 1.5rem;
  margin: 0 0 10px 0;
}

#footer .footer-info address {
  font-style: normal;
  margin: 0 0 10px 0;
}

#footer .footer-info ul li {
  margin: 0 0 10px 0;
}

#footer .footer-info dl dt,
#footer .footer-info dl dd {
  display: inline-block;
}

#footer .footer-info dl dt::after {
  content: ":";
  padding: 0 10px;
}

#footer .footer-link {
  width: 65%;
}

#footer .footer-link ul {
  display: flex;
  flex-wrap: wrap;
  line-height: 2.5;
}

#footer .footer-link ul li {
  margin: 0 20px;
}

#footer .footer-link ul ul li {
  margin: 0 10px 0 0;
}

#footer small {
  padding: 100px 0 0 0;
  display: block;
  text-align: right;
  color: #aaa;
}
#footer .footer-link ul ul {
  display: block;
}

@media screen and (max-width: 830px) {
  #footer {
    justify-content: center;
    padding: 5% 0;
  }
  #footer .footer-info {
    width: 100%;
    padding: 0 0 5% 0;
    margin: 0 0 5% 0;
    text-align: center;
    border-bottom: 1px solid #aaa;
  }
  #footer .footer-info li:nth-of-type(2) dt::after {
    content: "";
    padding: 0;
  }
  #footer .footer-info li:nth-of-type(2) dd {
    display: block;
  }

  #footer .footer-link {
    width: auto;
  }

  #footer .footer-link ul {
    justify-content: center;
  }

  #footer small {
    padding: 10% 0;
    text-align: center;
  }
}

@media screen and (max-width: 400px) {
  #footer .footer-link ul li {
    margin: 0 10px;
  }
}
.footer_jp {
  font-size: 0.6em; /* 例: 親要素の80%のサイズに */
  /* あるいは、固定値で指定したい場合は px などを使用 */
  /* font-size: 12px; */
}
