/****************************************
* main.css :ヘッダー、フッター レイアウトの役割
* ヘッダー、フッターのデザイン、共通適用レイアウト
***************************************/

/* =========================================
   基本カラー・変数
========================================= */
:root {
  /* brand */
  --primary-color: #17568C;
  --secondary-color: #333A52;

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

  /* background */
  --color-bg: #ffffff;
  --color-bg-gray: #F5F5F5;
  --color-bg-dark: #333A52;
  --color-bg-gray1: #EDF4FD;
  --color-bg-contact: #EDF4FD;

  /* gradation */
  --color-grad1: #2e5eb4;
  --color-grad2: #4b8ee4;

  /* dot */
  --dot-color: #ccc;

  /* contact */
  --contact-bg-text: #8EBCF7;
  --contact-line: #949DB1;

  /* layout */
  --inner-max: 1100px;   /* メインカラム幅（広め）※要確認 */
  --inner-max-s: 940px;  /* メインカラム幅（狭め）※要確認 */
  --inner-pad: 24px;     /* 左右の余白 ※要確認 */
}

/* =========================================
   共通レイアウト
========================================= */
.p-top__inner {
  max-width: 940px;
  margin: 80px auto 160px;
}

.l-inner {
  max-width: var(--inner-max);
  margin: 160px auto;
  padding: 0 var(--inner-pad);
}

.l-inner.-s {
  max-width: var(--inner-max-s);
}

.l-top-inner {
  max-width: var(--inner-max);
  margin: 80px auto;
  padding: 0 var(--inner-pad);
}

.l-top-inner.-s {
  max-width: var(--inner-max-s);
}

/* =========================================
   ヘッダー（丸型フロート）
========================================= */
.l-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1300px, 94%);
  z-index: 1000;
}

.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 50px 0 70px;
  background: var(--color-bg);
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
}

.l-header__logo {
  flex-shrink: 0;
}

.l-header__logo img {
  width: 150px;
  height: auto;
  display: block;
}

.l-header__nav {
  display: flex;
  align-items: center;
  gap: 31px;
}

.l-header__nav a {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 500;
  color: var(--secondary-color);
  white-space: nowrap;
}

.l-header__nav a:hover {
  color: var(--primary-color);
}

.l-header__contact {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 28px;
  margin-left: 24px;
  background: var(--primary-color);
  color: var(--color-text-white);
  border-radius: 32px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity .2s;
}

.l-header__contact:hover {
  opacity: .8;
}

.l-header__hamburger {
  display: none;
  position: relative;
  width: 28px;
  height: 20px;
  margin-left: 16px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.l-header__hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.l-header__hamburger span:nth-child(1) {
  top: 0;
}

.l-header__hamburger span:nth-child(2) {
  top: 9px;
}

.l-header__hamburger span:nth-child(3) {
  top: 18px;
}

/* --- SPドロワー --- */
#uts-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 1200;
}

#uts-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

#uts-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(320px, 80%);
  background: var(--color-bg);
  z-index: 1300;
  padding: 80px 32px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .35s ease;
}

#uts-drawer.is-open {
  transform: translateX(0);
}

#uts-drawer ul {
  margin: 0;
  padding: 0;
}

#uts-drawer li {
  border-bottom: 1px solid #eee;
}

#uts-drawer li a {
  display: block;
  padding: 16px 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--secondary-color);
}

.l-drawer__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--secondary-color);
  cursor: pointer;
}

.l-drawer__contact {
  display: block;
  margin-top: 32px;
  text-align: center;
  background: var(--primary-color);
  color: var(--color-text-white);
  padding: 14px;
  border-radius: 32px;
  font-weight: 600;
}

/* =========================================
   ヘッダー（上段：ロゴ・電話・CTAボタン）
========================================= */
.l-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 150px;
  background: #fff;
}

#header_logo img {
  height: 64px;
}

.l-header-top_right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.c-btn-contact,
.c-btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 14px;
  transition: opacity .2s;
}

.c-btn-contact {
  background: var(--primary-color);
}

.c-btn-line {
  background: #06c755;
}

.c-btn-line:hover {
  opacity: .8;
}

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

.l-header-tel {
  width: 220px;
  text-align: right;
}

.l-header-tel_number {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #D91534;
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  line-height: 1;
}

.l-header-tel_icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: #1F4C81;
  border-radius: 50%;
}

.l-header-tel_hours {
  font-size: 12px;
  color: #fff;
  margin-top: 2px;
  background-color: #D91534;
  border-radius: 50px;
  text-align: center;
  padding: 4px;
}

/* =========================================
   ヘッダー（下段ナビ・ドロップダウン）
========================================= */
.l-header-nav {
  background: #1D5CA6;
}

.l-header_menu_list {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.l-header_menu_list_item {
  position: relative;
}

.l-header_menu_link {
  display: block;
  padding: 10px 30px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
}

.l-header_menu_list_item:hover .l-header_menu_link {
  background: rgba(255, 255, 255, 0.1);
}

.l-header_sub_menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.l-header_menu_list_item:hover .l-header_sub_menu {
  display: block;
}

.l-header_sub_menu_list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.l-header_sub_menu_list_item a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
}

.l-header_sub_menu_list_item-title {
  padding: 10px 20px 4px;
  font-weight: bold;
  color: #999;
  font-size: 12px;
}

/* menu */

/* =========================================
   トップページ MV（メインビジュアル）
   ※旧版と重複していたブロックを統合（更新版のみ残す）
========================================= */
.l-mv_wrapper {
  width: 100%;
  height: 100vh;
}

.l-header_contents_inner {
  padding: 0;
}

.l-header-contents_side_slider_wrapper {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.l-header-contents_side_slider {
  height: 100%;
  padding-top: 90px;
}

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

.slick-list {
  height: 100%;
}

.slick-track {
  height: 100%;
}

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

.l-header_contents_list {
  position: absolute;
  top: 30%;
  left: 32%;
  transform: translateX(-50%);
  display: flex;
}

.l-header_contents_item_phrase {
  width: 85%;
}

.l-header_contents_phrase_text {
  font-size: 40px;
  font-weight: bold;
  line-height: 1.1;
  letter-spacing: 0.1rem;
  color: var(--primary-color);
  margin-bottom: 3rem;
}

.l-header_contents_phrase_text:last-child {
  margin-bottom: 3rem;
}

.l-header_contents_phrase_text_space {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.l-header_contents_sub_text {
  color: var(--color-text);
  width: 70%;
}

.l-header_contents_img01 {
  width: 50vw;
  position: absolute;
  bottom: -80px;
  right: -300px;
  display: flex;
}

.l-header_contents_img02 {
  width: 700px;
  max-width: 100%;
  position: absolute;
  top: -70px;
  right: -520px;
}

.l-header_contents_char-2_1 {
  position: absolute;
  bottom: -3vh;
  left: 9%;
  width: 140px;
}

.l-header_contents_btn_list {
  display: flex;
  justify-content: end;
  gap: 2.5rem;
  position: absolute;
  bottom: 10%;
  right: calc((100% - 1080px) / 2);
}

.c-btn-header {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-grad-tmplate);
  border-radius: 50%;
  width: 180px;
  height: 180px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
  z-index: 101;
  transition: background 0.3s, border-radius 0.3s, width 0.3s,
              height 0.3s, transform 0.3s, padding 0.3s;
}

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

.l-header.scrolled .c-btn-header,
body:not(.home) .c-btn-header {
  position: static;
  transform: none;
  border-radius: 0;
  width: auto;
  height: auto;
  padding: 31px 20px;
}

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

/* =========================================
   フッター前CTA
========================================= */
.l-cta {
  padding: 118px 177px;
  background: var(--color-bg-teal) url("../img/common/bg_section-teal.jpg") center / cover;
  border-radius: 28px;
  margin-bottom: 80px;
}

.l-cta__card {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--color-bg);
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
}

.l-cta__catch {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 32px;
}

.l-cta__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
}

.l-cta__tel-area {
  text-align: center;
}

.l-cta__tel-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary-color);
}

.l-cta__tel-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text);
  margin: 8px 0;
}

.l-cta__tel-icon {
  width: 26px;
  height: 26px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.l-cta__tel-hours {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.l-cta__divider {
  width: 1px;
  height: 96px;
  background: var(--color-accent1);
  flex-shrink: 0;
}

.l-cta__btns {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.l-cta__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 250px;
  padding: 16px 24px;
  border-radius: 8px;
  background: var(--secondary-color);
  color: var(--color-text-white);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity .2s;
  box-sizing: border-box;
}

.l-cta__btn:hover {
  opacity: .85;
}

.l-cta__btn--line {
  background: #3cb371;
}

.l-cta__btn-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
}

.l-cta__btn-arrow::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid var(--color-text-white);
  margin-left: 2px;
}

/* =========================================
   フッター
========================================= */
.l-footer {
  background: #f5f5f7;
  padding-top: 80px;
  border-top: 5px solid #17568C;
}

.l-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 63px;
}

.l-footer__nav-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  padding-bottom: 56px;
  padding-left: 20px;
}

.l-footer__nav-col {
  flex: 1 1 120px;
  min-width: 120px;
}

.l-footer__nav-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 32px;
  font-family: Inter;
}

.l-footer__nav-title a:hover {
  color: var(--secondary-color);
}

.l-footer__nav-sub {
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.6;
}

.l-footer__nav-sub a:hover {
  color: var(--primary-color);
}

/* ロゴ */
.l-footer__logo-wrap {
  text-align: center;
  padding: 48px 0 24px;
}

.l-footer__logo {
  display: inline-block;
}

.l-footer__logo img {
  display: block;
  margin: 0 auto;
}

/* 住所・プライバシーポリシー */
.l-footer__address-wrap {
  text-align: center;
  padding: 0 0 40px;
}

.l-footer__address {
  font-style: normal;
  font-size: 12px;
  color: var(--color-text);
  line-height: 1.8;
}

.l-footer__address a,
.l-footer__address a:hover {
  display: inline;
  color: var(--color-text);
}

.l-footer__privacy {
  margin-top: 12px;
  font-size: 14px;
}

.l-footer__privacy a {
  display: inline;
  color: var(--color-text);
}

/* 中間層 */
.l-footer__bottom_1 {
  background: var(--color-bg);
  padding: 32px 0;
}

.l-footer__bottom-inner_1 {
  max-width: var(--inner-max, 1300px);
  margin: 0 auto;
  padding: 0 63px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.l-footer__bottom-links_1 {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.l-footer__bottom-links_1 a {
  display: inline;
  font-size: 15px;
  color: #333A52;
  font-family: Inter;
  font-weight: 500;
}

/* 最下層 */
.l-footer__bottom_2 {
  background: var(--color-bg-dark);
  padding: 32px 0;
}

.l-footer__bottom-inner_2 {
  max-width: var(--inner-max, 1300px);
  margin: 0 auto;
  padding: 0 63px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.l-footer__bottom-links_2 {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.l-footer__bottom-links_2 a {
  display: inline;
  font-size: 14px;
  color: var(--color-text-white);
}

.l-footer__bottom-cta {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.l-footer__bottom-cta a {
  display: inline;
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text-white);
}

.l-footer__copyright {
  font-size: 12px;
  color: var(--color-accent1);
  opacity: .8;
}

/* =========================================
   下層ページ共通ヘッダー・パンくず
========================================= */
#page_header {
  background: #fff;
  height: 90vh;
}

#page_header .bg_image {
  width: 75%;
  height: 50%;
  position: absolute;
  top: 321px;
  right: 0px;
  left: auto;
  border-radius: 10px 0px 0px 10px;
}

#page_header_inner {
  width: 1030px;
  margin: 0 auto;
  z-index: 3;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: left;
  top: 40%;
}

.breadcrumbsWrap {
  width: 1030px;
  margin: 0 auto;
  z-index: 3;
  position: absolute;
  left: 50%;
  top: 28%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  color: var(--primary-color);
  font-weight: bold;
  letter-spacing: 0.2em;
}

.breadcrumbs {
  display: flex;
  vertical-align: middle;
  line-height: 1.3;
}

.breadcrumbsWrap span {
  line-height: 1.3;
}

.breadcrumbsWrap a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s;
  line-height: 1.2;
}

.breadcrumbsWrap a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.header_contents_img-sub {
  width: 33%;
  max-width: calc(100% - 32px);
  position: absolute;
  top: 145px;
  right: 0;
  display: flex;
  z-index: 200;
}

.header_contents_img-sub img {
  width: 100%;
  object-fit: cover;
}

#page_content {
  width: 1030px;
  margin: 0 auto;
  padding: 140px 0 150px;
}

/* =========================================
   追従バー（フッター固定・電話/CTA）
========================================= */
.l-follow-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--primary-color);
  z-index: 900;
}

.l-follow-bar_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6px 24px;
  gap: 24px;
}

/* --- 電話情報ブロック（PC） --- */
.l-follow-bar_tel {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
}

.l-follow-bar_tel_label {
  font-size: 13px;
  line-height: 1.3;
  flex-shrink: 0;
}

.l-follow-bar_tel_number {
  display: flex;
  align-items: center;
  width: 280px;
  gap: 8px;
  color: #fff;
  font-size: 36px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}

.l-follow-bar_tel_icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
}

.l-follow-bar_tel_sub {
  font-size: 13px;
  line-height: 1.5;
}

.l-follow-bar_tel_note {
  margin: 0;
}

.l-follow-bar_tel_hours {
  margin: 0;
  color: #cfd9e8;
  font-size: 12px;
}

/* --- ボタンエリア --- */
.l-follow-bar_btns {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.c-btn-followbar {
  width: 230px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
  transition: opacity .2s;
}

.c-btn-followbar:hover {
  opacity: .8;
}

.c-btn-followbar--outline {
  background: #fff;
  color: #1F4C81;
}

.c-btn-followbar--line {
  background: #06c755;
  color: #fff;
}

/* スマホ専用の電話ボタン（PCでは非表示） */
.c-btn-followbar--tel {
  display: none;
  background: #1F4C81;
  color: #fff;
  border: 1px solid #fff;
}

.c-btn-followbar_icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
}

/* --- スマホ表示：ボタンのみのシンプル構成 --- */
@media (max-width: 768px) {
  .l-follow-bar_tel {
    display: none;
  }

  .l-follow-bar_inner {
    padding: 8px 12px;
    gap: 0;
  }

  .l-follow-bar_btns {
    width: 100%;
    gap: 4px;
  }

  .c-btn-followbar {
    flex: 1;
    padding: 12px 4px;
    font-size: 12px;
    white-space: normal;
  }

  .c-btn-followbar--tel {
    display: inline-flex;
  }
}