/* common.css ================================================
   全ページ共通スタイル
   ============================================================ */

/* リセット ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, figure, figcaption { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ユーティリティ -------------------------------------------- */
.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* CSS変数 -------------------------------------------------- */
:root {
  /* カラー（design_img/colorset.png 準拠） */
  --txt_color:      #0F0E0F;
  --bg_cream:       #FCFCF0;
  --point_color:    #F3CB1E;
  --bg_orange:      #F6E7D8;
  --accent_color:   #EB6C21;
  --bg_cta_orange:  #EFC3A0;
  --deep_color:     #DD4D05;
  --color_gray:     #D9D9D9;
  --req_color:      #F7381F;

  /* フォント */
  --font_jp:     "Noto Sans JP", sans-serif;
  --font_number: "Roboto", sans-serif;

  /* デザインデータの基準幅（design_img/ の書き出し画像は375px基準） */
  --design-width: 375;

  /* レイアウト */
  /* PC最大幅600px・SPメイン設計（design_img/PC.png補足より）。
     左右サイドバーは中央600pxを除いた残り幅を左:右 = 2:3 で分割する */
  --sectionWidth:       600px;
  --sidebar_nav_width:  calc((100vw - var(--sectionWidth)) * 2 / 5);
  --sidebar_form_width: calc((100vw - var(--sectionWidth)) * 3 / 5);
  --header_height:      clamp(8rem, 7.78vw, 11.3rem);
  --footer_height:      clamp(20rem, 20vw, 28rem);

  /* その他 */
  --transition: all .3s ease;
}

/* フォントサイズ基準 --------------------------------------- */
html { font-size: 62.5%; }
body {
  font-size: 1.6rem;
  line-height: 1.8;
  font-family: var(--font_jp);
  color: var(--txt_color);
}

/* WP管理バーを下部に移動 ----------------------------------- */
#wpadminbar { top: unset !important; bottom: 0; }
html { margin-top: 0 !important; }

/* main オフセット（固定ヘッダー分） ------------------------ */
.main-wrap {
  max-width: var(--sectionWidth);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 1.6rem rgba(165, 165, 66, .15);
}
main {
  padding-top: var(--header_height);
}

/* .section / .section__inner ------------------------------- */
.section { padding: clamp(6rem, 6.88vw, 10rem) 0; }
.section__inner {
  max-width: var(--sectionWidth);
  margin: 0 auto;
  padding: 0 clamp(2rem, 2.75vw, 4rem);
}

/* .section__head ------------------------------------------- */
.section__head { text-align: center; margin-bottom: 6rem; }
.section__label {
  font-size: clamp(1.5rem, 1.24vw, 1.8rem);
  color: var(--accent_color);
  letter-spacing: 0.1em;
}
.section__title {
  font-family: var(--font_jp);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.0;
}

/* .page-hero ----------------------------------------------- */
.page-hero {
  background: var(--bg_orange);
  padding: 5rem 0;
  text-align: center;
}

/* .breadcrumb-wrap ----------------------------------------- */
.breadcrumb-wrap {
  background: #fff;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--color_gray);
}

/* .btn ----------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 1.2rem 2.8rem;
  border-radius: 5rem;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}
/* 送信する 系（colorset.png：deep_color → accent_color） */
.btn.btn--solid-main {
  background: var(--deep_color);
  color: #fff;
  border-color: var(--deep_color);
}
.btn.btn--solid-main:hover {
  background: var(--accent_color);
  border-color: var(--accent_color);
}
/* オフィシャルサイトはコチラ 系（deep_color → bg_cta_orange） */
.btn.btn--cta-outer {
  background: var(--deep_color);
  color: #fff;
  border-color: var(--deep_color);
}
.btn.btn--cta-outer:hover {
  background: var(--bg_cta_orange);
  border-color: var(--bg_cta_orange);
}
@media (max-width: 768px) {
  .btn { padding: 1.4rem 3.2rem; }
}

/* ヘッダー（SP専用バー：00-header.png）--------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header_height);
  z-index: 100;
  display: flex;
  align-items: center;
  background: var(--bg_cream);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 clamp(1.6rem, 4.27vw, 2.4rem);
}
.header__logo {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  text-decoration: none;
}
.header__logo img {
  width: 16rem;
  height: auto;
}
.header__tagline {
  font-size: 1.0rem;
  color: var(--txt_color);
  line-height: 1.3;
}
.header__drawer-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  width: 4.4rem;
  height: 4.4rem;
  padding: 0;
  background: none;
  border: 1px solid var(--color_gray);
  border-radius: .8rem;
  cursor: pointer;
}
.header__drawer-btn span {
  display: block;
  width: 2.2rem;
  height: 2px;
  background: var(--accent_color);
  transition: var(--transition);
}
.header__drawer-btn.header__drawer-btn--close span:nth-child(1) { transform: translateY(.7rem) rotate(45deg); }
.header__drawer-btn.header__drawer-btn--close span:nth-child(2) { opacity: 0; }
.header__drawer-btn.header__drawer-btn--close span:nth-child(3) { transform: translateY(-.7rem) rotate(-45deg); }

/* SPドロワー（nav_open.png）--------------------------------- */
.header__nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: calc(var(--header_height) + 1.6rem);
  background: rgba(15, 14, 15, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.header__nav.header__nav--open {
  opacity: 1;
  visibility: visible;
}
.header__nav-panel {
  width: calc(100% - 3.2rem);
  max-width: 44rem;
  max-height: calc(100vh - var(--header_height) - 3.2rem);
  overflow-y: auto;
  padding: 2.4rem 2rem;
  border-radius: 1.6rem;
  background: #fff;
}
.header__list {
  list-style: none;
}
.header__list a {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1.4rem 0;
  font-family: var(--font_jp);
  font-size: 1.6rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--txt_color);
  transition: var(--transition);
}
.header__list a i { color: var(--point_color); font-size: 1.3rem; }
.header__list a:hover { color: var(--accent_color); }
.header__nav-cta {
  display: block;
  width: 100%;
  margin-top: 1.6rem;
  padding: 1.6rem;
  text-align: center;
  border-radius: .8rem;
}
/* .btn.btn--solid-main の背景色(var(--deep_color))より優先させるため3クラス結合で指定 */
.btn.btn--solid-main.header__nav-cta {
  background: linear-gradient(180deg, #F9A32B 0%, #D05000 100%);
  border-color: #F9A32B;
}

/* SP固定CTA（画面下部に追従表示） ----------------------------- */
.sp-fixed-cta {
  display: none;
}
@media (max-width: 768px) {
  .sp-fixed-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    margin-top: 0;
  }
}
.sp-fixed-cta img {
  display: block;
  width: 100%;
  height: auto;
}

/* PC左サイドバー（常設ナビ）--------------------------------- */
.sidebar-nav {
  display: none;
}

/* PC右サイドバー（常設・相談フォーム）------------------------ */
.sidebar-form {
  display: none;
}

.sidebar-form__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  background: var(--bg_orange);
  border-radius: 1.2rem;
  padding: 1.2rem 1.6rem;
  margin-bottom: 2.4rem;
}
.sidebar-form__head-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.6rem;
  font-weight: 700;
}
.sidebar-form__head-time {
  flex-shrink: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent_color);
  border: 1px solid var(--accent_color);
  border-radius: 999px;
  padding: .4rem 1rem;
  white-space: nowrap;
}

/* 電話問い合わせブロック（PC：.sidebar-form ／ SP：.top_form） --- */
.tel-box {
  background: var(--bg_cream);
  border: 2px solid var(--accent_color);
  border-radius: 1.2rem;
  padding: 1.6rem;
  margin-bottom: 1.6rem;
  text-align: center;
}
.tel-box__lead {
  font-size: 1.4rem;
  font-weight: 700;
}
.tel-box__num {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: .8rem;
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent_color);
}
.tel-box__num::before,
.tel-box__num--btn::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 1.6rem;
  height: 2.4rem;
  background: url("../images/admini/tel-emphasis.svg") no-repeat center / contain;
}
.tel-box__num::before {
  right: calc(100% + .6rem);
  transform: translateY(-50%);
}
.tel-box__num--btn {
  display: flex;
  justify-content: center;
  width: calc(100% - 5.6rem);
  margin: .8rem auto 0;
  padding: 1.2rem;
  border-radius: 1.2rem;
  background: linear-gradient(var(--accent_color), var(--deep_color));
  font-size: 2.6rem;
  color: #fff;
  text-decoration: none;
}
.tel-box__num--btn::after {
  left: calc(100% + .6rem);
  transform: translateY(-50%) scaleX(-1);
}
.tel-box__time {
  margin-top: 1.2rem;
  padding: .8rem;
  border-radius: .8rem;
  background: var(--bg_orange);
  font-size: 1.4rem;
}

/* 段階1（769px〜1199px）：タブレット表示。
   ヘッダーはSPと同じロゴ＋ハンバーガードロワーをそのまま使用し、
   左にメインコンテンツ、右に相談フォームサイドバーを表示する。
   左の常設ナビ（sidebar-nav）はPC(1200px〜)専用のためここでは表示しない */
@media (min-width: 769px) {
  .sidebar-form {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--sidebar_form_width);
    padding: 3.2rem 2.4rem;
    overflow-y: auto;
    background: #fff;
  }
  body { padding-right: var(--sidebar_form_width); }
}

/* 段階1専用調整（769px〜1199px）：中央コンテンツと右フォームを50vw/50vwの均等幅にする。
   このレンジはヘッダーが固定表示のままなので、topをヘッダー分下げて重なりを防ぐ */
@media (min-width: 769px) and (max-width: 1199px) {
  .sidebar-form {
    top: var(--header_height);
    width: 50vw;
  }
  .main-wrap {
    max-width: 50vw;
  }
  body {
    padding-right: 50vw;
  }
}

/* 段階2（1200px〜）：PC完成形。左の常設ナビも表示し、SPヘッダー/ドロワーは非表示にする。
   左278px＋中央600px＋右572px＝約1450pxがPC.png実測の完成形のため、
   余白込みで無理なく収まる1200pxを左サイドバー表示の基準にする */
@media (min-width: 1200px) {
  .header,
  .header__nav {
    display: none;
  }

  .sidebar-nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar_nav_width);
    padding: 3.2rem 2rem;
    overflow-y: auto;
    background: var(--bg_cream);
  }
  .sidebar-inner {
    display: grid;
    justify-content: center;
    justify-items: center;
    align-content: center;
    height: 100%;
  }
  .sidebar-nav__logo {
    display: block;
    margin-bottom: 3.2rem;
    text-decoration: none;
  }
  .sidebar-nav__logo img {
    display: block;
    width: clamp(12rem, 14vw, 20rem);
    height: auto;
  }
  .sidebar-nav__list ul { list-style: none; }
  .sidebar-nav__list a {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1.2rem 0;
    font-family: var(--font_jp);
    font-size: 1.4rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--txt_color);
    transition: var(--transition);
  }
  .sidebar-nav__list a i { color: var(--point_color); font-size: 1.2rem; }
  .sidebar-nav__list a:hover { color: var(--accent_color); }

  body { padding-left: var(--sidebar_nav_width); }
  main { padding-top: 0; }
}

/* フッター（10-footer.png + 11-copyright.png）--------------- */
.footer {
  background: #fff;
  padding: 4.8rem 0 0;
  text-align: center;
}
.footer__inner {
  max-width: var(--sectionWidth);
  margin: 0 auto;
  text-align: left;
  padding: 0 2rem;
  max-width: 55rem;
}
.footer__logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
  text-decoration: none;
  margin-bottom: 3.2rem;
}
.footer__logo img {
  height: 3.6rem;
  width: auto;
}
.footer__tagline {
  font-size: 1.0rem;
  color: var(--txt_color);
}
.footer__company {
  margin-bottom: 3.2rem;
}
.footer__company-name {
  display: flex;
  gap: .4rem;
}
.footer__company-name,
.footer__address,
.footer__tel {
  font-size: 1.3rem;
  color: var(--txt_color);
  line-height: 1.8;
}
.footer__cta {
  display: inline-block;
  padding: 1.6rem 4.8rem;
  margin-bottom: 4.8rem;
}
@media (max-width: 768px) {
  .footer__cta {
    padding: 1.6rem;
  }
}
.footer__legal {
  margin-bottom: 1.6rem;
  font-size: 1.3rem;
}
.footer__legal a {
  color: var(--txt_color);
  text-decoration: underline;
}
.copyright {
  font-size: 1.1rem;
  color: #fff;
  background: var(--txt_color);
  padding: 1.4rem 1.6rem;
  text-align: center;
}

/* ページトップボタン --------------------------------------- */
.pagetop {
  position: fixed;
  bottom: 3.2rem;
  right: 3.2rem;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  background: var(--accent_color);
  color: #fff;
  text-decoration: none;
  font-size: 1.6rem;
}
@media (max-width: 768px) {
  .pagetop {
    width: 5.2rem;
    height: 5.2rem;
    bottom: 7.5rem;
    right: 1.6rem;
  }
}

/* スライダー（Slick）--------------------------------------- */
.slider .slick-arrow {
  z-index: 10;
  width: 4rem;
  height: 4rem;
}
.slider .slick-arrow::before {
  content: none;
}
.slider .slick-prev { left: 0; }
.slider .slick-next { right: 0; }
.slider .slick-dots {
  position: static;
  display: flex !important;
  justify-content: center;
  gap: .8rem;
  margin-top: 2rem;
  padding: 0;
}
.slider .slick-dots li {
  width: 1rem;
  height: 1rem;
  margin: 0;
}
.slider .slick-dots li button {
  width: 1rem;
  height: 1rem;
  padding: 0;
}
.slider .slick-dots li button::before {
  width: 1rem;
  height: 1rem;
  font-size: 1rem;
  opacity: 1;
  color: var(--color_gray);
}
.slider .slick-dots li.slick-active button::before {
  color: var(--accent_color);
}

/* フォーム（Contact Form 7）--------------------------------- */
/* dl/dt/dd 構造（design_img/08-form.md・wp-pkg-frontend--contact.md準拠） */
.form_wrapper dt {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .8rem;
}
.form_wrapper dt .req {
  display: inline-block;
  background: var(--req_color);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 400;
  padding: .2rem .8rem;
  border-radius: .4rem;
}
.form_wrapper dd { margin-bottom: 2rem; }

.wpcf7-form label {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: .8rem;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea {
  width: 100%;
  padding: 1.2rem 1.6rem;
  font-size: 1.6rem;
  font-family: var(--font_jp);
  border: 1px solid var(--color_gray);
  border-radius: .6rem;
  background: #fff;
}
.wpcf7-form textarea {
  min-height: 12rem;
  resize: vertical;
}
.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
}
.wpcf7-form .wpcf7-list-item {
  display: block;
  margin: 0 0 1.2rem;
}
.wpcf7-form .wpcf7-list-item:last-child { margin-bottom: 0; }
.wpcf7-form .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: 1.4rem;
  font-weight: 400;
}
.wpcf7-form .wpcf7-radio {
  display: flex;
  gap: .8rem;
}
.wpcf7-form .wpcf7-radio .wpcf7-list-item {
  flex: 1;
  margin: 0;
  background: #fff;
  border: 1px solid var(--color_gray);
  border-radius: .6rem;
  padding: 1.2rem 1.6rem;
}
.wpcf7-form input[type="checkbox"],
.wpcf7-form input[type="radio"] {
  width: 1.8rem;
  height: 1.8rem;
  accent-color: var(--accent_color);
  flex-shrink: 0;
}
.wpcf7-form p { margin-bottom: 2.4rem; }
@property --submit-grad-a {
  syntax: '<color>';
  inherits: false;
  initial-value: #C81700;
}
@property --submit-grad-b {
  syntax: '<color>';
  inherits: false;
  initial-value: #EB6C21;
}
.wpcf7-form input[type="submit"] {
  display: block;
  margin: 0 auto;
  padding: 1.2rem 4.8rem;
  border-radius: 5rem;
  font-size: 1.6rem;
  font-weight: 700;
  appearance: none;
  -webkit-appearance: none;
  --submit-grad-a: #C81700;
  --submit-grad-b: #EB6C21;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='14' viewBox='0 0 8 14'%3E%3Cpath d='M1 1L7 7L1 13' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), linear-gradient(to bottom, var(--submit-grad-a), var(--submit-grad-b));
  background-repeat: no-repeat, no-repeat;
  background-position: right 2.4rem center, center;
  background-size: .8rem 1.4rem, 100% 100%;
  color: #fff;
  border: 2px solid transparent;
  box-shadow: 0 0 10px rgba(141, 93, 27, .15);
  cursor: pointer;
  transition: var(--transition), --submit-grad-a .3s ease, --submit-grad-b .3s ease;
}
.wpcf7-form input[type="submit"]:hover {
  --submit-grad-a: #EB6C21;
  --submit-grad-b: #C81700;
}
.wpcf7-form .wpcf7-not-valid-tip {
  font-size: 1.3rem;
  color: #d32f2f;
  margin-top: .4rem;
}
.wpcf7-form .wpcf7-response-output {
  margin-top: 2.4rem;
  padding: 1.2rem 1.6rem;
  border-radius: .4rem;
  font-size: 1.4rem;
}

/* 404 -------------------------------------------------------- */
.error-404 {
  padding: 10rem 0;
  text-align: center;
}
.error-404__title {
  font-size: clamp(3.2rem, 4vw, 4.8rem);
  font-weight: 700;
  margin-bottom: 1.6rem;
}
.error-404__text {
  margin-bottom: 3.2rem;
}

/* コンテンツ内見出し（固定ページ・投稿共通）--------------------- */
.page__body h1, .single__body h1,
.page__body h2, .single__body h2,
.page__body h3, .single__body h3,
.page__body h4, .single__body h4 {
  font-weight: 700;
  line-height: 1.4;
  margin-top: 4rem;
  margin-bottom: 1.5rem;
}
.page__body h1, .single__body h1 {
  font-size: clamp(2.4rem, 2.2vw, 3.2rem);
}
.page__body h2, .single__body h2 {
  font-size: clamp(2rem, 1.84vw, 2.6rem);
  border-left: 4px solid var(--accent_color);
  padding-left: .75em;
}
.page__body h3, .single__body h3 {
  font-size: clamp(1.8rem, 1.65vw, 2.2rem);
}
.page__body h4, .single__body h4 {
  font-size: 1.8rem;
  color: rgba(15, 14, 15, 0.6);
}
.page__body p, .single__body p {
  margin-bottom: 1.5em;
}
.page__body ul, .single__body ul,
.page__body ol, .single__body ol {
  padding-left: 1.8em;
  margin-bottom: 1.5em;
}
.page__body li, .single__body li {
  margin-bottom: .5em;
}
