/****************************************
* main.css :ヘッダー、フッター レイアウトの役割
* ヘッダー、フッターのデザイン、共通適用レイアウト add tamashiro
***************************************/
/* 基本カラー */
:root {
  /* color */

  /* brand */
  --primary-color : #1D5CA6;
  --secondary-color : #42444C;
  
  /* text */
  --color-text: #222222;
  --color-text-light: #666666;
  --color-text-white: #ffffff;
  --color-text-gray:#42444C;

  /* background */
  --color-bg: #ffffff;
  --color-bg-gray: #f7f7f7;
  --color-bg-dark: #42444C;
  --color-bg-gray1: #EDF4FD;
  --color-bg-contact:#EDF4FD;

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

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

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

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

  /* color */
  --lw-navy: #2b4e78;    /* ※要確認 */
  --lw-black: #343434;   /* ※要確認 */
  --lw-bg: #f5f5f7;      /* ※要確認 */
  --lw-gray: #949db1;    /* ※要確認 */
  --lw-dark: #42444c;    /* ※要確認 */
  --lw-light: #e3e8ef;   /* ※要確認 */

  /* font */
  --font-mincho: "Shippori Mincho B1", serif;   /* ※要確認 */
  --font-en: "Inter", sans-serif;               /* ※要確認 */
  --font-sans: "Noto Sans JP", sans-serif;      /* ※要確認 */
}

/* トップページ (layout) */
.p-top__inner{
  max-width: 940px; /* レイアウト最大値 */
  margin: 80px auto 160px; /* 中央配置（配置ルール） */
}

/* ── 共通レイアウト：メインカラム幅（広め/狭め） ── */
.l-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 var(--inner-pad);
}

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

/* ── ヘッダー ── */
.l-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  box-shadow: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.l-header .l-header__nav a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.l-header .l-header__hamburger span {
  background: var(--lw-black);
}

/* ── スクロールしたら白背景に切り替わる ── */
.l-header.is-scrolled {
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
}

.l-header.is-scrolled .l-header__nav a {
  color: var(--lw-black);
}

.l-header.is-scrolled .l-header__nav a:hover {
  color: var(--lw-navy);
}

.l-header.is-scrolled .l-header__contact {
  background: var(--lw-navy);
  color: #ffffff !important;
}

.l-header.is-scrolled .l-header__hamburger span {
  background: var(--lw-black);
}

.l-header__inner {
  max-width: var(--inner-max-l);
  margin: 0 auto;
  padding: 0 80px;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 0;
}

.l-header__logo {
  flex-shrink: 0;
  margin-right: auto;
  width: 230px;
}

.l-header__logo img {
  width: 100%;
  height: auto;
  display: block;
}

.l-header__nav { display: flex; align-items: center; gap: 32px; }
.l-header__nav a {
  font-family: var(--font-mincho);
  font-size: 15px;
  color: var(--lw-black);
  display: block;
  white-space: nowrap;
  transition: color .2s;
}
.l-header__nav a:hover { color: var(--lw-navy); }

.l-header__contact {
  margin-left: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lw-navy);
  color: #fff !important;
  font-family: var(--font-mincho);
  font-size: 15px;
  border-radius: 50px;
  padding: 12px 24px;
  white-space: nowrap;
  transition: opacity .2s;
}
.l-header__contact:hover { opacity: .8; }

.l-header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.l-header__hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--lw-black);
  transition: .3s;
}

/* ── SPドロワー ── */
#c-drawer {
  position: fixed;
  top: 0; right: -100%;
  width: 80%; max-width: 320px;
  height: 100%;
  background: var(--lw-navy);
  z-index: 2000;
  transition: right .35s ease;
  padding: 80px 30px 40px;
  overflow-y: auto;
}
#c-drawer.is-open { right: 0; }
#c-drawer ul { list-style: none; padding: 0; }
#c-drawer ul li { border-bottom: 1px solid rgba(255,255,255,.15); }
#c-drawer ul li a {
  display: block;
  font-family: var(--font-mincho);
  font-size: 16px;
  color: #fff;
  padding: 18px 0;
  letter-spacing: .1em;
}
.c-drawer__close {
  position: absolute; top: 24px; right: 24px;
  font-size: 28px; color: #fff;
  background: none; border: none; cursor: pointer;
}
.c-drawer__contact {
  display: block;
  text-align: center;
  background: #fff;
  color: var(--lw-navy) !important;
  font-family: var(--font-mincho);
  font-size: 16px;
  border-radius: 50px;
  padding: 14px;
  margin-top: 30px;
}
#c-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1999;
}
#c-overlay.is-open { display: block; }

@media (max-width: 768px) {
  .l-header__inner {
    height: 60px;
    padding: 0 24px;
  }

  .l-header__logo {
    width: 160px;
  }

  /* PCナビとお問い合わせボタンを非表示 */
  .l-header__nav,
  .l-header__contact {
    display: none;
  }

  /* ハンバーガーボタンを表示 */
  .l-header__hamburger {
    display: flex;
  }

  /* メニューが開いてる時、ハンバーガーを×に変形 */
  .l-header__hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .l-header__hamburger.is-open span:nth-child(2) {
    opacity: 0;
  }
  .l-header__hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ── フッター ── */
.l-footer {
  color: var(--lw-black);
  background-color: #F5F5F7;
}

.l-footer__inner {
  position: relative;
  z-index: 1;
  max-width: var(--inner-max-l);
  margin: 0 auto;
  padding: 80px 80px 0;
}

.l-footer__layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  column-gap: 40px;
  row-gap: 20px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, .12);
}

.l-footer__nav-group {
  display: flex;
  justify-content: flex-end;
  gap: 60px; /* 各ナビ列の間隔 */
}

.l-footer__logo {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-mincho);
  font-size: 24px;
  font-weight: 700;
  color: var(--lw-black);
  letter-spacing: .12em;
}

.l-footer__address {
  grid-column: 1;
  grid-row: 2;
  font-family: var(--font-mincho);
  font-size: 15px;
  color: var(--lw-black);
  line-height: 1.8;
  font-style: normal;
}

.l-footer__privacy {
  grid-column: 1;
  grid-row: 3;
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--lw-gray);
}

.l-footer__privacy a {
  color: inherit;
}

.l-footer__privacy a:hover {
  color: var(--lw-navy);
}

.l-footer__nav-grid {
  grid-column: 2;
  grid-row: 1 / 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 520px;
  width: 100%;
  justify-self: end;
}

.l-footer__nav-group-title {
  font-family: var(--font-mincho);
  font-size: 16px;
  font-weight: normal;
  color: var(--lw-black);
  margin-bottom: 12px;
}

.l-footer__nav-item {
  font-family: var(--font-mincho);
  font-size: 15px;
  color: var(--lw-black);
  margin-bottom: 16px;
}

.l-footer__nav-item a {
  color: inherit;
  transition: color .2s;
}

.l-footer__nav-item a:hover {
  color: var(--lw-navy);
}

.l-footer__nav-sub {
  font-family: var(--font-mincho);
  font-size: 15px;
  color: #343434;
  margin-bottom: 10px;
  padding-left: 12px;
}

.l-footer__nav-sub a {
  color: inherit;
  transition: color .2s;
}

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

.l-footer__pagetop {
  grid-column: 2;
  grid-row: 4;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: fit-content;
  margin-left: auto;
  font-family: var(--font-mincho);
  font-size: 15px;
  color: var(--lw-black);
  cursor: pointer;
  transition: color .2s;
  text-decoration: none;
}

.l-footer__pagetop:hover {
  color: var(--lw-navy);
}

.l-footer__pagetop::after {
  content: '';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  background-color: var(--lw-navy);
  background-image: url(../img/common/top_toggle.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px auto;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px transparent;
  transition: background-color .2s, box-shadow .2s;
}

.l-footer__pagetop:hover::after {
  background-color: transparent;
  box-shadow: inset 0 0 0 1px var(--lw-navy);
  background-image: url(../img/common/top_toggle_n.svg); /* 黒い矢印用の別画像 */
}

.l-footer__bottom {
  display: flex;
  align-items: center;
  padding: 20px 0 24px;
}

.l-footer__copyright {
  font-family: var(--font-mincho);
  font-size: 13px;
  color: var(--lw-dark);
}

/* ── スマホ ── */
@media (max-width: 768px) {
  .l-footer__inner {
    padding: 60px var(--inner-pad) 0;
  }

  .l-footer__layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 32px;
  }

  .l-footer__logo img {
    width: 16rem;
  }

  .l-footer__pagetop {
    align-self: flex-end;
  }

  .l-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0 24px;
  }
}

/* ── CTA 背景 ── */
.p-lw-cta {
  position: relative;
}

/* ctaセクションでの位置 */
.p-lw-cta .p-lw-kv__badge {
  top: -120px;
  left: 100px;
}

.p-lw-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.p-lw-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
}

.p-lw-cta__card {
  position: relative;
  z-index: 1;
}

.p-lw-cta__tel-num {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.p-lw-cta__tel-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

@media (max-width: 768px) {
  .l-footer__inner {
    padding: 60px var(--inner-pad) 0;
  }

  .l-footer__layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 32px;
  }

  .l-footer__company {
    gap: 16px;
    order: 1; /* ロゴは一番上 */
  }

  .l-footer__logo {
    font-size: 20px;
  }

  .l-footer__nav-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .l-footer__address {
    order: 3; /* 住所を3番目に */
  }

  .l-footer__privacy {
    order: 4; /* プライバシーポリシーを4番目に */
  }

  .l-footer__right {
    gap: 16px;
    display: contents; /* 子要素(.l-footer__nav-grid, .l-footer__pagetop)を親のflexに直接参加させる */
  }

  .l-footer__pagetop {
    order: 5; /* Page Topを一番下に */
    align-self: flex-end;
  }

  .l-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0 24px;
  }
}

/* include-footer-contact */
/* コンタクトフォームは、layoutにて記載しておくことにする */
.include-footer-contact {
  width: 100%;
  background-color: var(--color-bg-contact);
  padding-bottom: 8rem;
  margin-top: 8rem;
  box-sizing: border-box;
}

/* Contactの大見出し */
.include-footer-contact-head-en {
  font-size: 160px;
  font-weight: bold;
  color: var(--contact-bg-text);
  text-align: center;
  margin-bottom: -3rem;          /* 白いボックスと重ねる */
  position: relative;
  z-index: 0;
  opacity: 0.15;
}

/* 白いボックス */
.include-footer-contact-inner {
  max-width: 960px;
  margin: 0 auto;
  background: var(--color-bg);
  border-radius: 12px;
  padding: 40px 60px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

/* ボックス内の見出し */
.include-footer-contact-head {
  text-align: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 48px;
}

/* コンテンツの横並び */
.include-footer-contact-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.include-footer-contactwrap-inner{
  margin: 0 auto;
}

/* 電話エリア */
.include-footer-contact-tel {
  flex: 1;
  text-align: center;
  position: relative;
  padding-right: 40px;
}

.include-footer-contact-tel  .p-top_text{
  font-weight: 600;
  line-height: 1 !important;
}

.include-footer-contact-tel::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 80%;
  border-right: 5px dotted #ccc;
}

.tel-number {
  font-size: 45px;
  font-weight: bold;
}

.tel-icon{
  width: 8%;
}

.contact-time {
  font-size: 0.85rem;
  color: #666;
  margin-top: 5px;
}

/* ボタンエリア */
.include-footer-contact-btns {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-left: 4rem;
}

.c-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  padding: 15px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 0.95rem;
  transition: opacity 0.3s;
}

.c-btn--mail { 
  width: 300px;
  background-color: var(--primary-color);
}
.c-btn--line { 
  background-color: #39b54a;
  width: 300px;
}

/* サブページ共通 */

.kv-title {
  font-size: 62px;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.kv-sub_title {
  font-size: 16px;
  margin-bottom: -1rem;
  font-weight: bold;
  color: var(--secondary-color);
}

/* ヘッダー */

#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%;
  -ms-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  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;
}

.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;
    }
}

/* ── LocaWeave: コンテナ ── */
#container { overflow: clip; }

/* ── LocaWeave: セクション角丸背景帯 ── */
.p-lw-band {
  position: relative;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
}
.p-lw-band--grad1,
.p-lw-band--grad2 {
  background: linear-gradient(to bottom, #fff, var(--lw-bg));
}
.p-lw-band--white { background: #fff; }

/* ── 回転バッジ（事業セクション／CTA前）── */
/* .p-business__badge {
  position: absolute;
  top: -110px;
  right: 0;
  width: 160px;
  height: 160px;
  z-index: 2;
}
.p-cta__badge {
  display: block;
  position: relative;
  width: 160px;
  height: 160px;
  margin: -80px auto 0 var(--inner-pad);
  z-index: 2;
} */