/*
Theme Name: エスティネット
Author: Rehal
*/
@charset "UTF-8";

:root {
  font-size: 16px;
  --white: #fff;
  --red-primary: #e50012;
  --red-hover:#be000f;
  --blue-primary: #638cdd;
  --blue-dark: #015077;
  --blue-light: #ecf4f8;
  --light-gray: #f3f3f3;
  --sub-gray: #636363;
  --beige: #fbf8f2;
  --beige-light: #f3efe8;
  --beige-dark: #f3eee4;
  --line-primary: #d7cfc1;
  --line-secondary: #e7e7e7;
  --line-gray: #cacaca;
  --line-gray-light: #e7e7e7;
  --text-primary: #484848;
  --text-secondary: #008ec2;
  --text-gray: #636363;
  --text-white: #fff;
  --font-jp: "Figtree", "Noto Sans JP", sans-serif;
  --text-xl: 1.5rem; /* 32px */
  --text-ll: 1.25rem; /* 20px */
  --text-lg: 1.125rem; /* 18px */
  --text-sm: 0.875rem; /* 14px */
  --text-xs: 0.75rem; /* 12px */
}
@media (min-width: 960px) {
  :root {
    /* 見出しのサイズ定義 (PC用) */
      font-size: 18px;
    --text-xl: 2.5rem; /* 40px */
    --text-ll: 2rem; /* 32px */
  }
}
html{
  scroll-padding-top: 90px;
  scroll-behavior: smooth;
}
body {
  background-color: #fbf8f2;
  color: var(--text-primary);
  font-family: var(--font-jp);
  line-height: 2em;
  font-feature-settings: "palt";
  font-optical-sizing: auto;
  font-weight: 400;
  letter-spacing: 0.05em;
}

img {
  max-width: 100%;
  height: auto;
}
.btn {
  display: inline-block;
  border-radius: 50px;
  padding: 0.8em 2em;
  text-align: center;
  line-height: 1;
  transition: ease-in 0.3s all;
}

.body-second {
  background: url(../img/bg_second.png) no-repeat left top;
  background-size: 80%;
  background-color: #fbf8f2;
}

/* ===================================================================
レスポンシブナビゲーション
=================================================================== */

/* ヘッダーの基本 */
.header {
  width: 100%;
  height: 90px;
  background: var(--white);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

.header-inner {
  width: clamp(0px, 96%, 1440px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* お問い合わせボタン（共通パーツ） */

.btn-header {
  display: inline-block;
  background: var(--red-primary);
  color: var(--white);
  white-space: nowrap;
  transition: all .3s ease-in;
}
.btn-header:hover {
  background-color: var(--red-hover);
}

.btn-header .icon {
  font-size: 1.6em;
  vertical-align: middle;
  margin-right: 0.3em;
}
.header-tel {
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
}
.header-tel .add {
  letter-spacing: -0.02em;
  font-size: 0.85em;
  line-height: 1.6;
}
.header-tel .tel {
  font-size: 1.7em;
}
.header-tel .tel .icon {
  vertical-align: middle;
}

/* --- PCナビ --- */
.pc-nav {
  display: flex;
  align-items: center;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-right: 20px;
  font-weight: 600;
}
.main-wrapper {
  padding-top: 90px;
}
/* --- スマホ設定（初期状態） --- */
.menu-trigger,
.sp-nav,
.overlay {
  display: none;
}

/* --- レスポンシブ (タブレット・スマホ以下) --- */
@media screen and (max-width: 1024px) {
  .header {
    height: 70px;
  }
  .main-wrapper {
    padding-top: 70px;
  }
  .pc-nav .nav-list {
    display: none;
  } /* PCナビを隠す */
  .btn-header {
    margin-right: 1em;
    padding: 0.8em 1.2em;
    font-size: 0.8em;
  }
  .logo-header {
    width: 40vw;
    margin-bottom: 10px;
  }
  /* ハンバーガーボタン表示 */
  .menu-trigger {
    display: block;
    position: relative;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
  }
  .menu-trigger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--blue-primary);
    transition: all 0.4s;
  }
  .menu-trigger span:nth-child(1) {
    top: 6px;
  }

  .menu-trigger span:nth-child(2) {
    bottom: 6px;
  }

  /* 開閉時のアニメーション */
  .menu-trigger.active span {
    background-color: var(--white);
  }
  .menu-trigger.active span:nth-child(1) {
    transform: translateY(5px) rotate(-45deg);
  }

  .menu-trigger.active span:nth-child(2) {
    transform: translateY(-5px) rotate(45deg);
  }

  /* ドロワーメニュー */
  .sp-nav {
    display: block; /* display: noneではなく、初期状態は透明にする */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--blue-primary);
    opacity: 0;
    visibility: hidden;
    transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
    display: flex;
    align-items: top;
    justify-content: center;
    padding-top: 48px;
  }
  .sp-nav.active {
    opacity: 1;
    visibility: visible;
  }
  .sp-nav-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    color: var(--white);
    font-size: var(--text-ll);
    width: min(600px,96%);
  }
  .sp-nav-list ul li a {
    display: block;
    padding: 1.4em 0;
  }
  .btn-drawer-contact {
    background-color: var(--white);
    color: var(--blue-primary);
    margin-bottom: 1em;
  }
  .btn-drawer-contact i {
    font-size: 1.2em;
    vertical-align: middle;
    margin-right: 0.2em;
  }
  .drawer-tel .tel {
    font-size: 1.8em;
    margin: 0 0 0.2em;
  }




.sp-menu li{
  border-bottom: solid 1px rgba(255,255,255,0.5);
}
.sp-sub-menu li{
  border-bottom: none;
}
.sp-sub-menu li a{
  padding: .5em 0 !important;
}

/* 親メニューの並び */
.l-sp-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.l-sp-menu a {
  display: block;
  flex-grow: 1;
}

/* 開閉ボタンのスタイル */
.dropdown-toggle {
  width: 50px;
  height: 50px;
  position: relative;
  cursor: pointer;
}

/* プラスアイコン（疑似要素で描画） */
.dropdown-toggle .icon::before,
.dropdown-toggle .icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background-color: #fff;
  transform: translate(-50%, -50%);
  transition: transform 0.3s;
}
.dropdown-toggle .icon::after {
  transform: translate(-50%, -50%) rotate(90deg); /* 縦棒 */
}

/* 開いている時（マイナスにする） */
.has-dropdown.is-active .icon::after {
  transform: translate(-50%, -50%) rotate(0deg); /* 縦棒を倒して横棒に重ねる */
}

/* サブメニュー（初期状態は非表示） */
.sp-sub-menu {
  display: none;
}





}
/* ===================================================================
footer
=================================================================== */
.footer {
  background-color: var(--blue-dark);
  color: var(--white);
}
.footer-inner {
  padding: 100px 0;
  width: clamp(0px, 96%, 1440px);
  text-align: center;
  margin: 0 auto;
}
.logo-footer {
  margin-bottom: 36px;
}
.nav-footer {
  margin-bottom: 36px;
  font-size: var(--text-sm);
}
.nav-footer li {
  display: inline-block;
  padding: 0 2vw;
  font-size: var(--text-sm);
}
.copyright {
  font-size: var(--text-xs);
}
@media (min-width: 960px) {
  /*PC*/
  .nav-footer li {
    font-size: 1rem;
  }
  .copyright {
    font-size: var(--text-sm);
  }
}
