/****************************************
* main.css :ベース
* タグ要素、基本全て適用するデザイン
***************************************/
@charset "UTF-8";

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

a {
  display: block;
  color: currentcolor;
  cursor: pointer;
  text-decoration: none;
}

a:hover {
  cursor: pointer;
}

ul,
li {
  margin-left: 0 !important;
  list-style: none !important;
}

.p-sub_pc_on {
  display: block;
}

.p-sub_sp_on {
  display: none !important;
}

/* --- Unitec: PC/SP表示切替 --- */
.u-pc-only {
  display: block !important;
}

.u-sp-only {
  display: none !important;
}

table .p-sub_sp_on {
  display: none;
}

#page_no_side {
  width: 100%;
  margin: 0;
}

h1,
h2,
h3,
section,
[id] {
  scroll-margin-top: 88px; /* ヘッダーの高さ分 */
}

/****************************************
* main.css :コンテンツ
* 役割:ボタン,カード,見出し,フォーム部品
***************************************/

.lp_content {
  margin: 0;
}

/* =========================================
   カラー・フォント・変数
========================================= */
:root {
  /* brand */
  --primary-color: #17568C;
  --secondary-color: #333A52;

  /* accent */
  --color-accent1: #AFD6D9;
  --color-accent2: #8F2E23;

  /* text */
  --color-text: #333A52;
  --color-text-light: #666666;
  --color-text-white: #ffffff;

  /* background */
  --color-bg: #ffffff;
  --color-bg-gray: #F5F5F5;
  --color-bg-teal: #DCEEEE;
  --color-bg-dark: #333A52;

  /* font */
  --font-main: 'Noto Sans JP', sans-serif;
  --font-head: 'Shippori Mincho B1', serif;
  --font-en: 'Inter', sans-serif;

  /* fontsize */
  --top-head: 60px;
  --top-subhead: 36px;
  --top-text: 16px;
  --top-subtext: 16px;
}

/* =========================================
   トップページ：基本デザイン（見出し・テキスト）
========================================= */
.p-top_head {
  font-size: var(--top-head) !important;
  color: var(--primary-color);
  font-weight: bold;
  position: relative !important;
}

.p-sub_head {
  font-size: var(--top-subhead) !important;
  color: var(--primary-color);
  font-weight: 600;
  position: relative !important;
  margin-bottom: 4rem !important;
}

.p-top_text {
  font-size: var(--top-subtext);
  color: var(--primary-color);
  font-weight: normal;
  line-height: 2.2 !important;
  margin-bottom: 1rem;
}

.p-sub_text {
  font-size: var(--top-subtext);
  color: var(--sub-color);
  font-weight: normal;
  line-height: 2.2 !important;
  margin-bottom: 1rem !important;
}

/*****************************************
 * コンポーネント　再利用パーツ
 * mainとsubの出し分けはデザインを見て判断
 ****************************************/

/* =========================================
   メニュー（SPドロワー）
========================================= */
#c-menu {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 299;
  will-change: transform;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  -webkit-transform: translateX(100%);
  transform: translateX(100%);
}

#c-menu.active {
  display: block;
  -webkit-transform: translateX(0%);
  transform: translateX(0%);
}

.c-menu-bg {
  background: var(--color-bg);
  width: 100%;
  height: 100%;
  overflow: scroll;
}

.c-menu_inner {
  width: 90%;
  margin: 0 auto;
  padding: 80px 0;
}

.c-menu_list_wrapper {
  margin-bottom: 1.5rem;
}

.c-menu_list_item {
  position: relative;
  border-bottom: 1px solid #ffffff63;
}

.c-menu_list_item_inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem 1rem 1rem;
  border-bottom: 1px solid #cccc;
}

.c-menu_list_item_inner:hover {
  background: #a0cfdf63;
}

.c-menu_list_item_head_text {
  font-size: 16px;
  font-weight: bold;
  color: var(--primary-color);
}

.c-menu_sub_list_text {
  background-color: var(--color-bg-contact);
  padding: 15px;
  padding-left: 24px;
  font-size: 12px;
  font-weight: 500;
  border-bottom: 1px solid #ccc;
}

.c-menu_sub_list_text-title {
  background-color: var(--primary-color);
  padding: 15px;
  font-size: 12px;
  color: var(--color-text-white);
  font-weight: 500;
  border-bottom: 1px solid #ccc;
}

.c-menu_list_item_body_text {
  position: relative;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
}

.c-menu_contact_wrapper {
  width: 280px;
  margin: 0 auto 24px;
}

.c-menu_contact_contents p {
  width: 280px !important;
}

.c-menu_tel_wrapper {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  color: var(--primary-color);
  margin-top: 24px;
}

.c-menu_under_text {
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  color: var(--color-text-light);
}

.c-menu_sub_list_wrapper {
  display: none;
}

.c-parent .c-menu_list_item_inner::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  transform: rotate(45deg);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.c-parent.active .c-menu_list_item_inner::after {
  transform: rotate(-135deg);
}

/* =========================================
   ボタン
========================================= */
.c-btn {
  width: 240px;
  padding: 1rem;
  background-color: var(--secondary-color);
  color: var(--color-text-white);
  font-size: 16px;
  text-align: center;
  font-weight: bold;
  border-radius: 50px;
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  border: 1px solid transparent;
  transition: background .5s cubic-bezier(0,0,0,1),
              color .5s cubic-bezier(0,0,0,1),
              border-color .5s cubic-bezier(0,0,0,1);
}

.c-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 33px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid currentColor;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  transition: border-color .5s cubic-bezier(0,0,0,1);
}

.c-btn:hover {
  background: var(--color-bg);
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.c-btn:hover::after {
  border-left-color: currentColor;
}

.c-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.c-btn.c-btn_return {
  width: 230px;
  color: var(--color-bg);
  background: var(--secondary-color);
  border-color: transparent;
  padding-left: 3.2rem;
  padding-right: 1.8rem;
  position: relative;
}

.c-btn.c-btn_return::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 33px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-right: 7px solid currentColor;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  transition: border-color .5s cubic-bezier(0,0,0,1);
}

.c-btn.c-btn_return::after {
  content: none;
}

.c-btn.c-btn_return:hover {
  background: var(--color-bg);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.c-btn.c-btn_return:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.c-btn.c-btn_return:active {
  filter: brightness(0.96);
}

.c-btn_return::after {
  top: calc(50% - 6px);
  left: 45px;
  border-top: 7px solid transparent;
  border-right: 7px solid var(--color-bg);
  border-bottom: 7px solid transparent;
  border-left: none;
}

/* 要確認: .c-btn-header はレイアウト用main.cssにも別内容で定義されています（対応未定・保留中） */
.c-btn-header {
  margin-left: auto;
  display: inline-block;
  background: var(--primary-color);
  color: var(--color-bg);
  padding: 1.8rem 1.4rem;
  text-decoration: none;
  font-weight: bold;
  box-sizing: border-box;
  border: 1px solid transparent;
  transition: background .3s, color .3s, border-color .3s;
}

.c-btn-header:hover {
  background: var(--color-bg);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.c-btn-header:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.c-btn-header:active {
  filter: brightness(0.96);
}

.c-btn_associate {
  background-color: var(--color-bg);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.c-btn_associate::after {
  border-left: 7px solid var(--primary-color);
}

.c-btn_associate:hover {
  background-color: var(--primary-color);
  color: var(--color-bg) !important;
  border-color: var(--primary-color);
}

.c-btn_associate:hover::after {
  border-left-color: currentColor !important;
}

/* =========================================
   文字スライダー
========================================= */
.c-loop_wrapper {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.c-loop_area {
  display: flex;
  animation: loop-slide 55s infinite linear 1s both;
  list-style: none !important;
  margin: 0 !important;
  padding: 0;
  width: calc(1740px * 2);
}

.c-loop_text {
  width: 700px;
  flex-shrink: 0;
}

.c-loop_text img {
  display: block;
  height: 82px;
}

@keyframes loop-slide {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* =========================================
   hoverユーティリティ
   使用例: <ul class="c-hover-opacity p-top_business-list">
        カーソルが範囲に入るとフェードがかかる
========================================= */
.c-hover-opacity:hover {
  opacity: 0.7;
  transition: 0.3s;
}

/* =========================================
   slick
========================================= */
.c-slick-slider {
  position: relative;
  margin: 0;
  height: 100%;
}

.c-slick-list {
  height: 100%;
}

.c-slick-track {
  height: 100%;
}

.c-slick-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg_image.pc {
  display: block;
}

.bg_image.mobile {
  display: none;
}

/* =========================================
   ページネーション
========================================= */
.c-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  gap: 8px;
  width: 100%;
}

.c-pagination-inner {
  max-width: 210px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}

.page-nation {
  margin-top: 4vw;
}

.page-nation ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 1vw;
}

/* 数字ボタン */
.c-pagination-inner a.page-numbers,
.c-pagination-inner span.page-numbers {
  display: block;
  font-size: 14px;
  text-align: center;
  line-height: 40px;
  color: #333333;
  background-color: var(--color-bg-gray);
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* 現在のページ */
.c-pagination-inner a.page-numbers.current,
.c-pagination-inner span.page-numbers.current {
  color: var(--color-bg);
  background-color: var(--primary-color);
  font-weight: bold;
}

/* 前へ・次へ */
.c-pagination-inner a.page-numbers.prev,
.c-pagination-inner a.page-numbers.next {
  font-size: 16px;
  color: var(--primary-color);
  background: none;
  font-weight: bold;
  width: auto;
  line-height: 40px;
  border-radius: 50%;
}

/* =========================================
   スクロールフェードイン（IntersectionObserver）
========================================= */
.js-inview {
  opacity: 0;
  transform:
    translateX(var(--inview-x, 0px))
    translateY(var(--inview-y, 30px))
    scale(var(--inview-scale, 1));
  transition:
    opacity var(--inview-duration, 0.8s) var(--inview-ease, ease),
    transform var(--inview-duration, 0.8s) var(--inview-ease, ease);
  transition-delay: var(--inview-delay, 0s);
}

.js-inview.is-inview {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}

.js-inview-stagger > .js-inview:nth-child(2) {
  --inview-delay: 0.12s;
}

.js-inview-stagger > .js-inview:nth-child(3) {
  --inview-delay: 0.24s;
}

.js-inview-stagger > .js-inview:nth-child(4) {
  --inview-delay: 0.36s;
}

.js-inview-stagger > .js-inview:nth-child(5) {
  --inview-delay: 0.48s;
}

.js-inview-stagger > .js-inview:nth-child(6) {
  --inview-delay: 0.6s;
}

/* =========================================
   KVテキスト 1文字アニメーション
========================================= */
.kv-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
}

.kv-char--show {
  animation: kvCharIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards var(--kv-delay, 0ms);
}

.kv-sub-anim {
  opacity: 0;
  transform: translateY(10px);
}

.kv-sub-anim--show {
  animation: kvSubIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards var(--kv-delay, 0ms);
}

@keyframes kvCharIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kvSubIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   パンくずリスト
========================================= */
.c-breadcrumb-wrap {
  max-width: 1030px;
  margin: 0 auto;
}

.c-breadcrumb {
  color: var(--color-text-light);
  font-size: 16px;
  padding: 20px 0;
  display: flex;
}

.c-breadcrumb a {
  color: #42444c;
  text-decoration: none;
}

.c-breadcrumb .current,
.c-breadcrumb .current-item {
  color: var(--primary-color);
  font-weight: 700;
}

/* =========================================
   サブページタイトル
========================================= */
.c-heading__en {
  display: block;
  font-family: "Shippori Mincho B1", serif;
  font-size: 32px;
  letter-spacing: 0.12em;
  color: #1d1d1f;
}

.c-heading__ja {
  text-align: center;
  font-family: "Shippori Mincho B1", serif;
  display: block;
  font-size: 16px;
  color: #343434;
  margin-top: 8px;
  margin-bottom: 48px;
}

/* =========================================
   テーブルスタイル
========================================= */
.c-table {
  width: 100%;
  border-collapse: collapse;
}

.c-table th,
.c-table td {
  padding: 24px;
  font-size: 16px;
  line-height: 1.75;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
}

.c-table th {
  width: 220px;
  background: #e3e8ef;
  color: #535353;
  font-weight: 700;
}

.c-table td {
  background: #ffffff;
  color: #42444c;
}

.c-table td a {
  color: #42444c;
  text-decoration: none;
}

/* =========================================
   共通：回転バッジ
========================================= */
.c-rotate-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.c-rotate-badge__img {
  display: block;
  width: 240px;
  height: 240px;
}

.c-rotate-badge__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1.5px solid var(--secondary-color);
  pointer-events: none;
}

/* 共通：回転アニメーション（他要素にも使い回し可） */
.c-rotate {
  animation: c-rotate-spin 20s linear infinite;
}

@keyframes c-rotate-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* =========================================
   Unitec: セクション見出し
========================================= */
.c-section-title {
  font-family: var(--font-en);
  font-size: 60px;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1;
}

.c-section-subtitle {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary-color);
  margin-top: 12px;
}

/* =========================================
   外部リンクアイコン
========================================= */
.c-link-external {
  position: relative;
  padding-right: 1.3em;
}

.c-link-external::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 0.9em;
  height: 0.9em;
  transform: translateY(-50%);
  background-image: url("../img/common/link_window.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* 外部リンクアイコン（白バージョン・濃い背景用） */
.c-link-external.-white::after {
  background-image: url("../img/common/link_window_w.png");
}

/* =========================================
   ユーティリティ
========================================= */
.u-under_line {
  text-decoration: underline !important;
}

.u-inline {
  display: inline;
}

/* =========================================
   ページネーション
========================================= */
.c-pagination {
  margin-top: 40px;
}

.c-pagination ul,
.c-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  list-style: none;
  font-size: 16px;
}

.c-pagination .page-numbers a,
.c-pagination .page-numbers span {
  color: #333;
  text-decoration: none;
}

.c-pagination .prev,
.c-pagination .next {
  font-weight: 700;
  color: var(--primary-color);
}

.c-pagination .current {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #ffffff;
}

/* =========================================
   レスポンシブ
========================================= */
@media (max-width: 768px) {
  .c-rotate-badge__img {
    width: 110px;
    height: 110px;
  }

  .c-rotate-badge__dot {
    width: 18px;
    height: 18px;
  }
}