/* カスタム調整用CSS */
/* このファイルは既存のCSSを上書きするための微調整用CSSです */

:root {
  --shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* サイドバナー設定 */
.side_left {
  left: 15px;
  bottom: 10px;
}

.side_right {
  right: 15px;
  bottom: -1%;
}

@media (max-width: 780px) {
  .side_left,
  .side_right {
    display: none;
  }
}
/* YouTube動画のスタイル */
.youtube-section {
  background-color: #fcf4ed;
}
.section-title {
  font-size: 24px;
  margin-bottom: 10px;
  color: #333;
}
/* 全体のフォントサイズ調整 */
body::before {
  background-image: url(../image/bg.jpg);
  background-size: 50%;
}
/* メインコンテンツ調整 */
main {
  max-width: 60%;
}
@media (max-width: 780px) {
  main {
    max-width: 100%;
  }
}
/* ヘッダー調整 */
header {
  background-color: #f6f6f6;
  min-height: 60px; /* 最小高さを設定 */
  max-height: 100px; /* 最大高さを制限 */
  padding: 0.5% 3%; /* 上下の余白を追加 */
  column-gap: 2%;
}
header h1 {
  /* 最大高さを制限 */
  width: 20%;
  max-height: 90px;
}
@media (max-width: 501px) {
  header h1 {
    width: 50%;
  }
}
header h1 img {
  max-height: 70px;
}
header nav {
  max-width: 630px;
  width: 70%;
}
@media (max-width: 501px) {
  header nav {
    width: 50%;
  }
}
header nav ul {
  column-gap: 2%;
}
header nav ul li {
  width: 40%;
}
header nav ul li a {
  width: 100%;
}
@media (max-width: 501px) {
  header nav ul li a {
    max-width: 40px;
    max-height: 100%;
  }
}
#form {
  background-color: #fcf4ed;
}
.form_title {
  width: 60%;
}
/* フッター調整 */
footer {
  padding: 50px 0;
  background-color: #333; /* 暗い背景色を追加 */
}
.footer_link {
  padding-top: 0;
  margin-bottom: 50px;
}
.footer_link a {
  color: #fefefe;
  font-size: 16px;
}
.footer_link a:hover {
  color: #ccc;
}
.footer-divider {
  color: #fefefe;
  margin: 0 5px;
}
.copy {
  color: #fefefe;
  font-size: 12px;
}
/* メディアクエリ - タブレット表示調整 */
@media screen and (min-width: 781px) and (max-width: 1024px) {
  /* タブレット表示の調整 */
  header h1 {
    max-height: 70px;
  }
  header nav ul li a img {
    max-height: 35px;
  }
}
/* CTAセクションのスタイル設定 */
/* 青色の背景を持つグリッドレイアウトのCTAセクション */
.cta {
  padding: 6% 0;
  background-image: url(../image/CTA_bg.jpg);
  aspect-ratio: 16 / 4;
}
/* CTAボタンのスタイル設定 */
.cta_button {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78.4%; /* コンテナの78.4%の幅 */
}
/* CTAセクションの装飾アイテム（右下に配置される画像） */
.cta::before {
  content: "";
  bottom: 3%; /* 下から3%の位置 */
  right: 7%; /* 右から7%の位置 */
  width: 48px;
  height: 50px;
  background-image: url(../image/CTA_item.png);
}
/* プライバシーポリシーと会社概要のスタイル */
body.privacy main {
  padding: 50px 0;
  section.contact {
    width: 80%;
    max-width: 780px;
    background-color: #fcf4ed;
  }
}

body.company main {
  padding: 50px 0;
  table {
    width: 100%;
    margin: 0;
    box-shadow: var(--shadow);
  }
  th {
    background-color: #d52438;
    border-color: #333;
    color: #fff;
  }
  td {
    padding: 5px;
    border-color: #333;
  }
}

/* ボタンのパルスアニメーション定義（標準ブラウザ用） */
@keyframes cta-button-animation {
  0% {
    transform: translate(-50%, -50%) scale(1); /* 通常サイズ */
  }
  15% {
    transform: translate(-50%, -50%) scale(1.03); /* 3%拡大 */
  }
  30% {
    transform: translate(-50%, -50%) scale(1); /* 通常サイズに戻る */
  }
  45% {
    transform: translate(-50%, -50%) scale(1.03); /* 再度3%拡大 */
  }
  70% {
    transform: translate(-50%, -50%) scale(1); /* 通常サイズに戻る */
  }
  90% {
    transform: translate(-50%, -50%) scale(1.03); /* 最後に3%拡大 */
  }
}
/* ボタンのパルスアニメーション定義（Safari用） */
@-webkit-keyframes cta-button-animation {
  0% {
    -webkit-transform: translate(-50%, -50%) scale(1); /* 通常サイズ */
  }
  15% {
    -webkit-transform: translate(-50%, -50%) scale(1.03); /* 3%拡大 */
  }
  30% {
    -webkit-transform: translate(-50%, -50%) scale(1); /* 通常サイズに戻る */
  }
  45% {
    -webkit-transform: translate(-50%, -50%) scale(1.03); /* 再度3%拡大 */
  }
  70% {
    -webkit-transform: translate(-50%, -50%) scale(1); /* 通常サイズに戻る */
  }
  90% {
    -webkit-transform: translate(-50%, -50%) scale(1.03); /* 最後に3%拡大 */
  }
}
/* YouTube動画セクションのスタイル */
.youtube-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9のアスペクト比 */
  height: 0;
  overflow: hidden;
}
.youtube-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: var(--shadow);
  border-radius: 5px;
}
/* スクロールのスムーズな動き */
html {
  scroll-behavior: smooth;
}
/* 全体のフォントサイズ調整 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
.youtube-section {
  padding: 4% 4.5% 3%;
  text-align: center;
}
.section-title {
  font-weight: bold;
}
/* メインコンテンツ調整 */
main {
  width: 100%;
  margin: 0 auto;
}

body.top main {
  box-shadow: var(--shadow);
  .left_box tr:not(:first-child) td {
    border-top: none;
  }
  .add_wapper {
    flex-direction: column;
  }
  .right_box {
    width: 100%;
  }
  .left_box {
    width: 100%;
    @media (max-width: 780px) {
      table th {
        border: none;
      }
    }
  }
}

body.privacy main {
  width: 100%;
  max-width: 100%;
  height: 100%;
  background-color: transparent;
  padding: 50px 0;
  section.contact {
    width: 80%;
    max-width: 780px;
    border-radius: 10px;
    box-shadow: var(--shadow);
  }
}

body.company main {
  .bosyu {
    width: 100%;
  }
  table {
    width: 100%;
    margin: 0;
    box-shadow: var(--shadow);
  }
  .tbody {
    width: 100%;
  }
  th {
    font-weight: 700;
  }
  td {
    background-color: #fff;
    text-align: center;
  }
  /* 会社情報ページのコンテナ */
  .company-container {
    background-color: #fcf4ed;
  }
}

body:where(.company, .privacy) main {
  display: grid;
  place-items: center;

  .section__ttl {
    font-weight: 700;
  }
  .form__txt {
    line-height: 1.75em;
  }
}

/* ヘッダー調整 */
header {
  height: auto; /* コンテンツに合わせて高さを自動調整 */
}

header h1 {
  /* 最大高さを制限 */
  display: flex;
  align-items: center;
}

@media (max-width: 501px) {
  header h1 {
    width: 50%;
  }
}

header h1 a {
  display: block;
  height: fit-content;
}

header h1 img {
  width: 100%;
  height: auto;
}

header nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

header nav ul {
  display: flex;
  align-items: center;
}

header nav ul li {
  display: flex;
  align-items: center;
}

header nav ul li a {
  width: 100%;
  display: block;
  transition: all 0.2s ease;
}

.form_title {
  margin: 0 auto;
}

/* フッター調整 */
footer {
  text-align: center;
}

.footer_link a {
  text-decoration: none;
  transition: color 0.3s ease;
}

/* CTAセクションのスタイル設定 */
/* 青色の背景を持つグリッドレイアウトのCTAセクション */
.cta {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* CTAボタンのスタイル設定 */
.cta_button {
  position: absolute;
  animation: cta-button-animation 1.5s ease infinite; /* 標準ブラウザ用アニメーション */
  -webkit-animation: cta-button-animation 1.5s ease infinite; /* Safari用アニメーション */
}

/* CTAセクションの装飾アイテム（右下に配置される画像） */
.cta::before {
  content: "";
  position: absolute;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 会社情報テーブルのスタイル */
.company_tb table,
.bosyu table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.company_tb th,
.company_tb td,
.bosyu th,
.bosyu td {
  padding: 15px;
  border: 1px solid #ddd;
  position: relative;
}

.company_tb th {
  width: 30%;
  background-color: #f5f5f5;
  font-weight: bold;
  border-right: none;
}

/* セル内のコンテンツを縦横中央揃え */
.cell-content {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
  width: 100%;
  line-height: 1.5em;
}

/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
  .company_tb th,
  .company_tb td,
  .bosyu th,
  .bosyu td {
    padding: 10px;
  }

  .company_tb th,
  .bosyu th {
    width: 40%;
  }
}

/* 会社情報ページのコンテナ */
.company-container {
  width: 100%;
  max-width: 800px;
  padding: 20px;
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.company-container .section-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 24px;
  color: #333;
  border-bottom: 2px solid #f5f5f5;
  padding-bottom: 10px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
  .company-container {
    margin: 20px auto;
    padding: 15px;
  }

  .company-container .section-title {
    font-size: 20px;
  }
}
