/* --------------------------------------
  Default Styling　基本設定
-------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box; /* 親要素の中で子要素の幅を制限する */
}

html {
  scroll-behavior: smooth; /* スクロールのビュー */
}

body,
footer {
  /* 使用できるフォントの指定 */
  color: #333;
  font-family:
    "Noto Sans JP", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro",
    "メイリオ", "Meiryo", "游明朝", "Yu Mincho", "Avenir", "Helvetica Neue",
    "MS PMincho", ui-sans-serif;
}

h1,
h2,
h3,
h4 {
  /* h1・h2・h3・h4の書式指定 */
  font-family:
    "Noto Sans JP", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic ProN",
    "メイリオ", "Meiryo", "游明朝", "Yu Mincho", "Avenir", "Helvetica Neue",
    "MS PMincho", ui-sans-serif;
  line-height: 1.5;
  position: left;
  margin-top: 0;
}

h1 {
  /* h1の上幅書式設定 */
  color: #1469ac;
  margin-top: 0;
  font-weight: 900;
}

h2,
h3 {
  /* h2・h3のweight設定 */
  color: #1469ac;
  font-weight: 600;
}

ul {
  /* リストの初期設定を無効 */
  list-style: none;
}

p {
  /* pタグの書式設定 */
  font-size: 16px;
  line-height: 175%;
}

a {
  /* aタグの装飾を無効 */
  color: #333;
  text-decoration: none;
}

a,
input,
textarea {
  /* フォームのテキストエリアの効果設定 */
  transition: all 0.15s ease-in-out;
}

input[type="submit"]:hover {
  /* 送信ボタンのカーソル設定 */
  cursor: pointer;
}

/* レスポンシブ時の画像の切り替え */
.pc {
  display: inline-block;
}
.sp {
  display: none;
}

/* レスポンシブ時のTab画像の切り替え */
.pc_img {
  display: inline-block;
}
.tab_img {
  display: none;
}
.sp_img {
  display: none;
}
.pc_btn {
  display: inline-block;
}
.tab_btn {
  display: none;
}
.sp_btn {
  display: none;
}

/* --------------------------------------
  Reusable Classes
-------------------------------------- */
html {
  /* PC画面のMAXサイズ */
  max-width: 100%;
}

/* --------------------------------------
  Header
-------------------------------------- */
/* ヘッダーの設定 */
#header {
  display: flex; /* 要素を並列にする */
  font-weight: 500;
  position: fixed;
  top: 0;
  width: 100%;
  height: 100px;
  z-index: 999; /* 要素の重ね順 */
  background-color: white;
  opacity: 90%;
}

.header_inner {
  display: flex;
  justify-content: space-between; /* 要素同士の位置を指定する */
}

.hamburger-menu.hide {
  transform: translateY(-100%);
}

/* ヘッダーロゴの設定 */
.header-logo {
  width: 450px;
  height: auto;
  margin: 0 50px;
}

/* ヘッダーメニューの設定 */
#main-nav {
  width: 100%;
  display: flex;
  align-items: center;
}

#main-nav nav {
  margin: 0 auto;
}

#main-nav ul {
  display: flex;
  text-align: center;
}

#main-nav ul li span {
  font-size: 16px;
  line-height: 2;
  color: #5991c9;
  font-weight: bold;
}

#main-nav ul li {
  font-size: 14px;
  margin: auto 50px;
}

/* リンクのテキストカラー */
.header-nav-menu-item > a:link,
.header-nav-menu-item > a:visited,
.header-nav-menu-item > a:active {
  color: #333;
  position: relative;
}

.header-nav-menu-item > a:hover,
.header-nav-menu-item > a:focus {
  color: #5c6d87;
}

.header-nav-menu-item a::after {
  position: absolute;
  left: 0;
  content: "";
  width: 100%;
  height: 2px;
  background: #1469ac;
  bottom: -10px;
  transform: scale(0, 1);
  transform-origin: left top;
  transition: transform 0.3s;
}

.header-nav-menu-item a:hover::after {
  transform: scale(1, 1);
}

/* --------------------------------------
  ハンバーガーメニュー
  -------------------------------------- */
.hamburger-menu {
  display: none;
}

/* メニューボタン */
.menu-btn {
  position: fixed;
  top: 13px;
  right: 13px;
  display: flex;
  height: 50px;
  width: 50px;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  background-color: #3584bb;
}

.menu-btn span,
.menu-btn span:before,
.menu-btn span:after {
  content: "";
  display: block;
  height: 2px;
  width: 25px;
  border-radius: 3px;
  background-color: #fff;
  position: absolute;
}

.menu-btn span:before {
  bottom: 8px;
}

.menu-btn span:after {
  top: 8px;
}

#menu-btn-check:checked ~ .menu-btn span {
  background-color: rgba(
    255,
    255,
    255,
    0
  ); /*メニューオープン時は真ん中の線を透明にする*/
}

#menu-btn-check:checked ~ .menu-btn span::before {
  bottom: 0;
  transform: rotate(45deg);
}

#menu-btn-check:checked ~ .menu-btn span::after {
  top: 0;
  transform: rotate(-45deg);
}

.menu-hm-content ul {
  padding: 5px 10px 0;
}

.accordion a {
  border-bottom: solid 1px #fff;
  list-style: none;
}

.accordion a {
  display: block;
  width: 100%;
  font-size: 15px;
  box-sizing: border-box;
  color: #fff;
  text-decoration: none;
  padding: 10px 0 10px 20px;
  position: relative;
}

.accordion a::before {
  content: "";
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  position: absolute;
  right: 11px;
  top: 16px;
}

.menu-hm-content {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 100%; /*leftの値を変更してメニューを画面外へ*/
  z-index: 3;
  background-color: #3584bb;
  transition: all 0.75s; /*アニメーション設定*/
}

#menu-btn-check:checked ~ .menu-hm-content {
  left: 0; /*メニューを画面内へ*/
}

/* ハンバーガーメニューを隠す */
#menu-btn-check {
  display: none;
}

/* --------------------------------------
  Main メイン設定
-------------------------------------- */
/* トップ画像の設定 */
.top-wrap {
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
  margin: 0;
  margin-top: 85px;
}

.top_img {
  width: 100%;
  height: 720px;
}

.catchcopy {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 60px;
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 1);
  letter-spacing: 10px;
  color: #fff;
  text-align: center;
  margin: -350px auto 15px;
}

.sub-catchcopy {
  font-family: "Noto Serif JP", serif;
  font-weight: 300;
  font-size: 18px;
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 1);
  letter-spacing: 20px;
  color: #fff;
  text-align: center;
  margin-bottom: 195px;
}

.backcopy {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 150px;
  letter-spacing: -10px;
  color: #f2f2f2;
  mix-blend-mode: multiply;
  padding-top: 1px;
  z-index: -1;
}

.slant-bg,
.slant-bg1 {
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

.slant-bg::before {
  content: "";
  position: absolute;
  top: 225px;
  bottom: -25px;
  left: 0;
  right: 0;
  background-color: #5991c9;
  opacity: 10%;
  transform: skewY(-4deg);
  z-index: -2;
}

.slant-bg::after {
  content: "";
  position: absolute;
  top: 225px;
  bottom: -25px;
  left: 0;
  right: 0;
  background-color: #457cfb;
  opacity: 10%;
  transform: skewY(-7deg);
  z-index: -3;
}

.slant-bg1::before {
  content: "";
  position: absolute;
  top: 225px;
  bottom: -25px;
  left: 0;
  right: 0;
  background-color: #5991c9;
  opacity: 10%;
  transform: skewY(-4deg);
  z-index: -2;
}

.slant-bg1::after {
  content: "";
  position: absolute;
  top: 225px;
  bottom: -25px;
  left: 0;
  right: 0;
  background-color: #457cfb;
  opacity: 10%;
  transform: skewY(-7deg);
  z-index: -3;
}

/* --------------------------------------
   Index - ごあいさつ
-------------------------------------- */
/* メインコンテンツの背景 */
#top-message {
  width: 50%;
  margin: 0 auto 100px;
}

#top-message h2 {
  text-align: center;
  margin: 100px 0 75px;
  color: #5991c9;
}

#top-message p {
  line-height: 1.75;
}

/* --------------------------------------
  Footer
-------------------------------------- */
#footer-credit,
#footer-credit a {
  color: #fff;
  font-size: 10px;
  width: 100%;
  height: auto;
  padding: 10px;
  background: #5991c9;
  text-align: center;
  align-content: center;
}

/* サイドナビゲーションのレスポンシブ挙動 */
.side-navigation li a:hover {
  background: #eee;
}

#toggle {
  display: none;
}

.fixed_btn {
  position: fixed;
  bottom: 4px;
  right: 4px;
  padding: 5px;
  z-index: 9999;
  font-size: 35px;
  mix-blend-mode: hard-light; /* 覆い焼きを指定 */
}

.fixed_btn:hover {
  opacity: 0.5;
}

/* ページトップボタン */
.fixed_btn-show {
  display: block;
}

/* --------------------------------------
  Company - 企業情報
-------------------------------------- */
#profile {
  max-width: 1000px;
  width: 50%;
  margin: -150px auto 0;
}

#profile h2 {
  text-align: center;
  margin: 250px 0 75px;
  color: #5991c9;
}

.rinen {
  font-family: "Noto Serif JP", serif;
  font-weight: 900;
  font-size: 36px;
  color: #707070;
  text-align: center;
  margin: 50px auto 100px;
  line-height: 1.5;
}

.vision-text-img {
  width: 80%;
  display: block;
  margin: 50px auto 100px;
  text-align: center;
}

.profile-table,
.blunch-table,
.group-table {
  border-collapse: collapse;
  border-spacing: 0 10px;
  width: 90%;
  margin: 0 auto;
  margin-bottom: 100px;
}

.profile-table th,
.blunch-table th,
.group-table th {
  color: #1469ac;
  vertical-align: middle;
  text-align: left;
  width: 20%;
  border: solid 1px #707070;
  border-width: 1px 1px 1px 0;
  padding: 10px 20px;
}

.profile-table td,
.blunch-table td,
.group-table td {
  line-height: 1.5;
  width: 80%;
  border: solid 1px #707070;
  border-width: 1px 0;
  padding: 10px 20px;
}

/* Mapを加工要素 */
.map-wrap {
  width: 100%;
  margin: 0 auto 100px;
}

.map {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 25%; /* アスペクト比4:3固定 */
}

.map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.history-table {
  border-collapse: collapse;
  border-spacing: 0 10px;
  margin: -25px auto 0;
  margin-bottom: 100px;
}

.history-table th {
  background: white;
  color: #1469ac;
  vertical-align: middle;
  text-align: center;
  width: 20%;
  border: solid 1px #707070;
  border-width: 0 1px 0 0;
  padding: 10px 0;
}

.history-table td {
  line-height: 1.5;
  background: white;
  width: 80%;
  padding: 10px 25px;
}

.company-title,
.vision-title,
.company-sub-title,
.history-title,
.group-title {
  color: #fff;
  text-align: center;
  background: #1469ac;
  padding: 10px;
  width: 100%;
  margin: 0 auto 50px;
}

.slide_left {
  opacity: 0;
  transform: translateX(-50px);
  transition: 2s ease;
}

.slide_right {
  opacity: 0;
  transform: translateX(50px);
  transition: 2s ease;
}

/* --------------------------------------
  Buisiness - 事業内容
-------------------------------------- */
#business {
  width: 60%;
  margin: -150px auto 0;
}

#business h2 {
  text-align: center;
  margin: 250px 0 75px;
  color: #5991c9;
}

.card-wrapper {
  display: flex;
  justify-content: flex-start; /* 左寄せで開始 */
  margin: 0 auto 100px; /* 中央寄せし、下のマージンを設定 */
  gap: 30px; /* カード間の隙間を指定 */
  flex-wrap: wrap; /* カードを折り返すように設定 */
}

.card {
  display: flex;
  flex-direction: column;
  width: calc(50% - 15px); /* 2列表示 (gapを考慮) */
  height: auto;
  box-shadow: 0 10px 10px -6px rgba(0, 0, 0, 0.3);
  overflow: hidden; /* 画像のはみ出しを防ぐ */
  background-color: #fff;
  opacity: 0;
  transform: rotateY(-90deg) scale(0.95); /* 初期状態：Y軸で回転し、少し縮小 */
  transform-origin: left center; /* 回転の基点を左端中央に設定 */
  transition:
    transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 1.5s ease-out; /* 滑らかなアニメーション */
  transform-style: preserve-3d; /* 3D変形を子要素に適用 */
}

.card.is-visible {
  opacity: 1;
  transform: rotateY(0deg) scale(1); /* 表示状態：回転とスケールを元に戻す */
}

.card_content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  padding: 20px;
}

.card-text {
  flex-grow: 1;
}

.biz-category {
  color: #5991c9;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  border-bottom: 2px solid #5991c9;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.biz-img {
  width: 100%;
  height: auto; /* 高さを固定するか、アスペクト比を保つ */
  object-fit: cover;
}

/* --------------------------------------
  Recruit - 採用情報
-------------------------------------- */
#recruit {
  max-width: 1000px;
  width: 50%;
  margin: -150px auto 0;
}

#recruit h2 {
  text-align: center;
  margin: 250px 0 75px;
  color: #5991c9;
}

.recruit-table {
  border-collapse: collapse;
  border-spacing: 0 10px;
  margin: 0 auto;
  margin-bottom: 100px;
}

.recruit-table th {
  background: white;
  color: #1469ac;
  vertical-align: middle;
  text-align: left;
  width: 15%;
  border: solid 1px #707070;
  border-width: 1px 1px 1px 0;
  padding: 10px;
}

.recruit-table td {
  line-height: 1.5;
  background: white;
  border: solid 1px #707070;
  border-width: 1px 0;
  width: 85%;
  padding: 10px 0 10px 15px;
}

.apply-title {
  color: #fff;
  text-align: center;
  background: #1469ac;
  padding: 10px;
}

.apply-text {
  width: 90%;
  margin: 0 auto 50px;
}

.apply-text-s {
  font-size: 14px;
  line-height: 1.5;
  color: #777;
  width: 90%;
  margin: 75px auto 100px;
}

.apply-text-b {
  border-bottom: solid 1px #404040;
  margin-bottom: -10px;
}

.apply-btn {
  width: 250px; /* 横幅指定 */
  background-color: #f5848c; /* 背景色 */
  color: #fff; /* 文字色 */
  box-shadow: 0 10px 10px -6px rgba(0, 0, 0, 0.3);
  font-weight: bold; /* 文字の太さ */
  display: block; /* インライン要素をブロック要素に変更 */
  text-align: center;
  margin: 50px auto; /* 中央寄せ */
  font-size: 16px; /* 文字の大きさ */
  padding: 10px 0; /* 内側の余白 */
  border-radius: 100vh; /* 角丸指定 */
  border: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.apply-qa-btn,
.apply-phone-btn {
  width: 250px; /* 横幅指定 */
  color: #fff; /* 文字色 */
  box-shadow: 0 10px 10px -6px rgba(0, 0, 0, 0.3);
  font-weight: bold; /* 文字の太さ */
  display: block; /* インライン要素をブロック要素に変更 */
  text-align: center;
  margin: 50px auto; /* 中央寄せ */
  font-size: 16px; /* 文字の大きさ */
  padding: 10px 0; /* 内側の余白 */
  border-radius: 100vh; /* 角丸指定 */
  border: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.apply-qa-btn {
  background-color: #68c959; /* 背景色 */
}

.apply-phone-btn {
  background-color: #5991c9; /* 背景色 */
}

.apply-btn a,
.apply-qa-btn a,
.apply-phone-btn a {
  color: #fff;
}

/* --------------------------------------
  Contact
-------------------------------------- */
#contact {
  width: 50%; /*横幅*/
  margin: 0 auto;
}

#contact h2 {
  text-align: center;
  margin: 100px 0 75px;
  color: #5991c9;
}

#contact-contact {
  max-width: 1000px;
  width: 50%; /*横幅*/
  margin: 0 auto; /*中央寄せ*/
}

.contact-table {
  width: 100%;
  margin-bottom: 75px;
  border-collapse: collapse;
  background-color: #fff;
}

.req {
  margin-right: 10px;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background-color: #ff3366;
}

.contact-item,
.contact-body {
  padding: 10px;
  border: 1px solid #ccc;
}

.contact-item {
  text-align: left; /* テキスト左寄せ */
  width: 30%; /* 横幅30%指定（グレーの背景色部分） */
  background-color: #eee; /* グレーの背景色 */
}

.contact-body {
  width: 70%; /* 横幅70%指定（白背景色部分） */
}

.form-text {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  max-width: 100%;
}

.form-textarea {
  width: 100%;
  padding: 10px;
  height: 200px;
  border-radius: 5px;
  border: 1px solid #ccc;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.contact-submit {
  width: 360px; /* 横幅指定 */
  background-color: #666; /* 背景色 */
  color: #fff; /* 文字色 */
  font-weight: bold; /* 文字の太さ */
  display: block; /* インライン要素をブロック要素に変更 */
  margin: 0 auto 50px; /* 中央寄せ */
  font-size: 18px; /* 文字の大きさ */
  padding: 15px 0; /* 内側の余白 */
  border-radius: 100vh; /* 角丸指定 */
  border: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.privacy {
  width: 70%;
  font-size: 12px;
  line-height: 1.5;
  margin: 75px auto 125px;
  text-align: left;
}

.privacy a {
  color: #1469ac;
}

/* --------------------------------------
  Privacy Policy　プライバシーポリシー
-------------------------------------- */
#privacy-policy {
  width: 50%;
  margin: 0 auto 150px;
}

#privacy-policy h2 {
  text-align: center;
  margin: 100px 0 75px;
  color: #5991c9;
  margin-bottom: 50px;
}

#privacy-policy h4 {
  margin: 35px auto 5px;
}

.privacy-text {
  color: #606060;
  line-height: 1.5;
}

.privacy-text ul {
  margin-left: -40px;
}

/* --------------------------------------
  Thanks　サンクスページ
-------------------------------------- */
#thanks {
  margin-top: 5%;
}

.custom-box {
  position: relative;
  margin: 20% auto;
  padding: 50px 25px;
  border: solid 2px #62c1ce;
  width: 25%;
  text-align: center;
}

.custom-box .box-title {
  position: absolute;
  display: inline-block;
  top: -25px;
  left: -3px;
  padding: 0 15px;
  height: 25px;
  line-height: 25px;
  background: #62c1ce;
  color: #ffffff;
  border-radius: 5px 5px 0 0;
}

.custom-box p {
  margin: 0;
  padding: 0;
}
