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

  /* brand */
  --primary-color : #16253F;
  --secondary-color : #F3EFE7;
  
  /* text */
  --color-text: #454545;
  --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;

}

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

/* ヘッダー */

.l-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  box-shadow: none;
  transition: background-color .3s ease, box-shadow .3s ease;
}

.l-header.is-scrolled {
  background: var(--primary-color);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
}

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

.l-header__logo { flex-shrink: 0; margin-right: auto; }
.l-header__logo img { height: 45px; width: 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(--color-text-white);
  display: block;
  white-space: nowrap;
  transition: color .2s;
}
.l-header__nav a:hover { color: var(--ss-navy); }

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

.l-header__contact {
  margin-left: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-text-white);
  color:  var(--primary-color);
  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--navy .l-header__nav a { color: #fff; }
.l-header--navy .l-header__nav a:hover { color: rgba(255,255,255,.7); }
.l-header--navy {
  background: var(--primary-color);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
}
.l-header--navy .l-header__nav a {   color: var(--color-text-white); }
.l-header--navy .l-header__nav a:hover {   color: var(--color-text-white); }
.l-header--navy .l-header__contact { background: var(--color-text-white); color:  var(--primary-color) !important; }

.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: 20px; height: 1px;
  background: var(--color-text-white);
  transition: .3s;
}
.l-header.is-scrolled .l-header__hamburger span {     background: #fff; }
.l-header--navy .l-header__hamburger span {     background: #fff; }

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

/* フッター */
.l-footer {
  position: relative;
  background-color: var(--primary-color);
}

.l-footer__inner {
  padding: 10rem clamp(3rem, 5vw, 10rem) 2rem clamp(3rem, 5vw, 10rem);
  background-color: transparent;
}

.l-footer__info {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(2rem, 3vw, 6rem);
}

.l-footer__info-logo {
  grid-row: 1;
  grid-column: 1 / 2;
  padding: 0;
}

.l-footer__info-logo-link {
  display: block;
  width: 16rem;
  margin: 0 auto;
}

.l-footer__info-logo-link img {
  width: 100%;
}

.l-footer__info-nav {
  grid-column: 2 / 3;
}

.l-footer__info-nav-list {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: clamp(1rem, 2vw, 4rem);
  width: 100%;
}

.l-footer__info-nav-group-left {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-left: clamp(0rem, 1vw, 2rem);
}

.l-footer__info-nav-subgrid {
  display: grid;
  grid-template-rows: auto auto;
  grid-template-columns: minmax(80px, auto) minmax(140px, auto);
  row-gap: 2rem;
  column-gap: clamp(1rem, 2vw, 4rem);
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: start;
}

.l-footer__info-nav-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.3rem;
}

.l-footer__info-nav-item-home {
  grid-row: 1 / span 1;
  grid-column: 1 / span 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.3rem;
}

.l-footer__info-nav-item[data-col="1"] {
  grid-row: 1 / 2;
  grid-column: 2 / span 1;
}

.l-footer__info-nav-item[data-col="2"] {
  grid-row: 2 / 3;
  grid-column: 2 / span 1;
}

.l-footer__info-nav-item[data-col="3"] {
  grid-row: 1 / -1;
  grid-column: 3 / span 1;
}

.l-footer__info-nav-item-sub {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.3rem;
  list-style: none;
  margin: 0;
}

.l-footer__info-nav-item-link {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.l-footer__info-nav-item-link:hover {
  color: var(--color-grad2);
  transition: all .5s cubic-bezier(0, 0, 0, 1);
}

.l-footer__info-nav-item-text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.4;
  color: var(--color-text-white);
  font-weight: bold;
  font-family: var(--font-mincho);
}

.l-footer__info-nav-item-text:hover {
  color: var(--color-grad2);
  transition: all .5s cubic-bezier(0, 0, 0, 1);
}

.l-footer__info-nav-item-text-cat {
  margin-top: 12px;
  padding-left: 11px;
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.4;
  color: var(--color-text-white);
  font-weight: normal;
  font-family: var(--font-mincho);
}

.l-footer__info-nav-item-sublist {
  position: relative;
  display: grid;
  padding-left: 1rem;
  margin-top: 1rem;
  list-style: none;
}

.l-footer__info-nav-item-sublist::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  content: "";
  background-color: var(--contact-line);
}

.l-footer__address {
  position: relative;
  z-index: 1;
  grid-row: 1;
  grid-column: 1 / 2;
  margin-top: 77px;
}

.l-footer__address_text {
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.4;
  color: var(--color-text-white);
  font-family: var(--font-mincho);
}

.l-footer__privacypolicy {
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.4;
  margin-top: 0.5rem;
  color: var(--color-text-white);
  font-family: var(--font-mincho);
}

.l-footer__privacypolicy a {
  color: var(--color-text-white);
}

.l-footer__info-bottom {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  grid-row: 2;
  grid-column: 1 / 3;
  align-items: center;
  justify-content: left;
  padding-top: 2rem;
  margin-top: 8rem;
}

.l-footer__info-bottom::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  content: "";
  background-color: var(--color-text);
}

.l-footer__info-bottom-copyright {
  font-size: 8px;
  color: var(--color-text-white);
  text-align: left;
}

.l-footer__top {
  flex-direction: row;
  right: 95px;
  bottom: 8rem;
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.l_footer_pagetop_txt {
  position: relative;
  font-weight: bold;
  color: var(--color-text-white);
  font-size: 1rem;
}

.l_footer_pagetop_txt::after {
  position: absolute;
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  bottom: -13px;
  right: -60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  background: #fff url(../img/common/top_toggle.svg) no-repeat center center / 12px auto;
}

/* ── CTA 背景 ── */
.p-cta {
  position: relative;
  padding: 80px 0;
}

.p-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.p-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .6;
}

.p-cta__card {
  position: relative;
  z-index: 1;
  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);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.p-cta__catch {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 48px;
}

.p-cta__tel-area {
  text-align: center;
  padding-right: 40px;
}

.p-cta__card > div:nth-child(3) {
  width: 1px;
  height: 80%;
  justify-self: center;
  border-right: 2px dotted #ccc;
}

.p-cta__tel-label {
  font-weight: 600;
  line-height: 1;
  margin-bottom: 8px;
}

.p-cta__tel-num {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 45px;
  font-weight: bold;
  color: var(--primary-color);
  line-height: 1.2;
  text-decoration: none;
}

.p-cta__tel-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
}

.p-cta__tel-hours {
  font-size: 0.85rem;
  color: #666;
  margin-top: 5px;
}

.p-cta__tel-hours-sub {
  margin-left: 16px;
}

.p-cta__btns {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-left: 4rem;
}

.p-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  text-decoration: none;
  color: #fff;
  padding: 15px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 0.95rem;
  background-color: var(--primary-color);
  transition: opacity 0.3s;
}
.p-cta__btn:hover {
  opacity: .8;
}

.p-cta__btn--line {
  background-color: #39b54a;
}

/* サブページ共通 */

.p-page-header {
  background: var(--ss-cream);
  text-align: center;
  padding: 160px 0 80px;
}
.p-page-header__title {
  font-family: var(--font-mincho);
  font-size: 40px;
  color: var(--ss-navy);
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 16px;
}
.p-page-header__sub {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--ss-navy);
}

/* ── コンテナ ── */
#container { overflow-x: hidden; }