@charset "utf-8";

/*
 * Phase 17 compatibility note:
 * Legacy lower-page CSS keeps html { font-size: 62.5%; }.
 * Shared-header/footer font values therefore use px rather than rem so their
 * intended size remains stable until the legacy CSS is retired.
 */

:root {
  --color-text: #3a2a1a;
  --color-text-dark: #333333;
  --color-blue: #2180ed;
  --color-line-green: #06c755;
  --color-orange: #f28c28;
  --color-beige: #fdf7ef;
  --color-red: #ff383c;
  --section-space-y: clamp(64px, 8vw, 120px);
  --curved-section-heading-space: clamp(150px, 13vw, 190px);
  --contents-width: 1100px;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--color-text);
}

body.is-nav-open {
  overflow: hidden;
}

.site-header {
  display: block;
  padding-top: 10px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e9e9e9;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  z-index: 1000;
}
@media (max-width: 768px) {
  .site-header {
    padding: 10px;
  }
}
.c-inner {
  width: 100%;
  max-width: var(--contents-width);
  margin: 0 auto;
  padding: 0 20px;
}


/* ========================================
  Layout utilities
======================================== */
.sec-padding {
  padding-block: var(--section-space-y);
}

/* ========================================
  Decorated section heading
======================================== */
.c-section-heading {
  text-align: center;
}

.c-section-heading__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--section-heading-label-gap, 10px);
  margin: 0 0 var(--section-heading-label-margin, clamp(12px, 1.5vw, 18px));
  color: var(--section-heading-accent, var(--color-orange));
  font-size: var(--section-heading-label-size, clamp(13px, 1.4vw, 16px));
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
}

.c-section-heading__label::before,
.c-section-heading__label::after {
  content: "";
  display: block;
  width: var(--section-heading-line-width, 20px);
  height: 1px;
  background-color: currentColor;
}

.c-section-heading__title {
  margin: 0;
  color: var(--section-heading-title-color, var(--color-text));
  font-size: var(--section-heading-title-size, clamp(26px, 3vw, 40px));
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.c-section-heading__lead {
  margin: clamp(14px, 1.8vw, 22px) 0 0;
  color: var(--section-heading-lead-color, var(--color-text));
  font-size: var(--section-heading-lead-size, clamp(14px, 1.4vw, 16px));
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.03em;
  text-align: center;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-logo {
  margin: 0;
  line-height: 1;
}

.header-logo a {
  display: flex;
  align-items: center;
}

.header-logo img {
  display: block;
  width: 190px;
  height: auto;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.header-tel {
  text-align: center;
}

.header-tel-time {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.header-tel-number {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.tel-icon {
  width: 31px;
  height: 31px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 164px;
  height: 46px;
  padding: 0 20px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.cta-button span {
  display: block;
}
.cta-button:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.cta-h {
  flex-direction: column;
  border: 1px solid var(--color-line-green);
  color: var(--color-line-green);
}
.cta-h span {
  font-size: 12px;
}
.cta-company {
  background: var(--color-blue);
  color: #fff;
}
.header-inquiry {
  position: relative;
  flex-shrink: 0;
}

/* ボタンとして使用するための調整 */
.header-inquiry-trigger {
  appearance: none;
  background-color: #fff;
  cursor: pointer;
}

/* お問い合わせ横の矢印 */
.cta-h .cta-h-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.cta-h-label::after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

/* プルダウンとボタン間のホバー切れ防止 */
.header-inquiry::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -10px;
  z-index: 1199;
  width: calc(100% + 20px);
  height: 12px;
}

/* プルダウン本体 */
.header-inquiry-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 190px;
  padding: 10px;
  background-color: #fff;
  border: 1px solid #eeeeee;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
}

/* プルダウン内のボタン */
.header-inquiry-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  padding: 2px 8px;
  border-radius: 24px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.header-inquiry-item img {
  width: 21px;
  height: 21px;
  object-fit: contain;
  flex-shrink: 0;
}
.header-inquiry-item.header-inquiry-line img {
  width: 40px;
  height: 40px;
}
.header-inquiry-mail {
  background-color: var(--color-blue);
}

.header-inquiry-line {
  background-color: var(--color-line-green);
}

.header-inquiry-item:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

/* JSによって開いている状態 */
.header-inquiry.is-open .header-inquiry-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.header-inquiry.is-open .cta-h-label::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

/* PC：ホバーで表示 */
@media (hover: hover) and (pointer: fine) {
  .header-inquiry:hover .header-inquiry-menu,
  .header-inquiry:focus-within .header-inquiry-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  .header-inquiry:hover .cta-h-label::after,
  .header-inquiry:focus-within .cta-h-label::after {
    margin-top: 3px;
    transform: rotate(225deg);
  }
}
/* 下段ナビ */
.global-nav {
  z-index: 1050;
}

.global-nav-list {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 0;
  padding: 0;
  list-style: none;
}

.global-nav-list a {
  position: relative;
  display: inline-block;
  padding: 12px 0 16px;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
}

.global-nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 100%;
  height: 2px;
  background: var(--color-blue);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.28s ease;
}

.global-nav-list a:hover::after,
.global-nav-list a:focus-visible::after {
  transform: translateX(-50%) scaleX(1);
}

.sp-nav-cta {
  display: none;
}

/* ハンバーガー */
.hamburger {
  display: none;
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  position: absolute;
  left: 8px;
  width: 26px;
  height: 2px;
  background: var(--color-text);
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 12px;
}

.hamburger span:nth-child(2) {
  top: 20px;
}

.hamburger span:nth-child(3) {
  top: 28px;
}

.hamburger.is-active span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}
.sp-nav-logo {
  display: none;
}
/* SP */
@media (max-width: 768px) {
    .header-top {
    gap: 8px;
  }
  .c-inner {
    padding: 0 16px;
  }

  .header-contact {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
  }
  .header-tel {
    display: none;
  }
  .header-cta {
    display: flex;
    align-items: center;
    gap: 0;
  }
    .header-inquiry {
    display: none;
  }
  .hamburger {
    display: block;
    flex-shrink: 0;
  }

  .global-nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    margin-top: 0;
    padding: 16px 20px 24px;
    background: #fff;
    box-shadow: none;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 1050;

    display: flex;
    flex-direction: column;

      overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .global-nav.is-open {
    transform: translateX(0);
  }
  .sp-nav-logo {
    display: block;
    margin-bottom: 20px;
    padding-right: 56px;
  }
    .sp-nav-logo a {
    display: flex;
    align-items: center;
  }
   .sp-nav-logo img {
    display: block;
    width: 190px;
    height: auto;
  }
  .global-nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .global-nav-list li {
    border-bottom: 1px solid #eeeeee;
  }

  .global-nav-list a {
    display: block;
    padding: 18px 0;
    color: var(--color-text);
    font-size: 16px;
    text-decoration: none;
  }

  .global-nav-list a::after {
    display: none;
  }
/* 法人ボタンはSPでも表示 */
  .header-cta .cta-company {
    display: flex;
    min-width: clamp(92px, 26vw, 112px);
    height: 40px;
    padding: 0 10px;

    border-radius: 24px;
    font-size: clamp(11px, 3.2vw, 13px);
    white-space: nowrap;
  }
    .header-logo img {
    width: clamp(100px, 31vw, 130px);
  }
  .sp-nav-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    flex-shrink: 0;
  }

  .sp-nav-cta .cta-button {
    width: 100%;
    max-width: 320px;
    height: 54px;
  }
  .cta-button.cta-mail {
    background: var(--color-blue);
    color: #ffffff;
  }
  .cta-button.cta-line {
    background: var(--color-line-green);
  }
  .cta-button.cta-mail img {
    width: 30px;
    height: 30px;
  }
  .cta-button.cta-line img {
    width: 45px;
    height: 45px;
  }

}
@media (max-width: 360px) {
  .site-header {
    padding-right: 6px;
    padding-left: 8px;
  }

  .header-top {
    gap: 5px;
  }

  .header-logo img {
    width: 96px;
  }

  .header-cta .cta-company {
    min-width: 88px;
    height: 38px;
    padding: 0 7px;
    font-size: 11px;
  }

  .hamburger {
    width: 38px;
    height: 38px;
  }
}

/* ========================================
  Footer
======================================== */
.site-footer {
  width: 100%;
  background: #3A2A1A;
  color: #ffffff;
  text-align: center;
}

.site-footer-main {
  padding: 70px 0 64px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-nav-list li {
  display: flex;
  align-items: center;
}

.footer-nav-list li + li::before {
  content: "";
  display: block;
  width: 1px;
  height: 1em;
  margin: 0 18px;
  background: rgba(255, 255, 255, 0.7);
}

.footer-nav-list a {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.footer-nav-list a:hover {
  opacity: 0.7;
}

.footer-logo {
  margin-top: 30px;
}

.footer-logo a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-logo img {
  width: 160px;
  height: auto;
}

.footer-license {
  margin: 18px 0 0;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.footer-tel {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 0;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
}

.footer-tel-label {
  font-size: 22px;
}

.footer-tel-number {
  color: #ffffff;
  font-size: 24px;
  text-decoration: none;
}

.footer-hours {
  margin: 2px 0 0;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.footer-copy {
  width: 90%;
  padding: 11px 16px 12px;
  background: #3A2A1A;
  color: #fff;
  text-align: center;
  border-top: 1px solid #ffffff;
  margin: 0 auto;
}

.footer-copy small {
  display: block;
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

/* SP */
@media (max-width: 768px) {
  .site-footer-main {
    padding: 52px 0 46px;
  }

  .footer-nav-list li + li::before {
    margin: 0 14px;
  }

  .footer-logo {
    margin-top: 28px;
  }

  .footer-logo img {
    width: 150px;
  }
}

@media (max-width: 540px) {
  .site-footer-main {
    padding: 42px 0 38px;
  }

  .footer-nav-list {
    flex-direction: column;
    gap: 12px;
  }

  .footer-nav-list li + li::before {
    display: none;
  }

  .footer-nav-list a {
    font-size: 14px;
  }

  .footer-license {
    margin-top: 16px;
    font-size: 14px;
  }

  .footer-tel-label,
  .footer-tel-number {
    font-size: 22px;
  }

  .footer-hours {
    font-size: 13px;
  }

  .footer-copy small {
    font-size: 12px;
  }
}
/* 下層ページh1 */
.page-h1-area{
  padding-top: 240px;
}
.page-h1{
  font-size: clamp(32px, calc(2.424vw + 18.909px), 48px);
  font-weight: bold;
  letter-spacing: 0.02em;
  line-height: 1.2;
  position: relative;
}
.page-h1::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -20px;
  width: 2em;
  height: 3px;
  background: var(--color-blue);
  border-radius: 999px;
}
@media (max-width: 768px) {
  .page-h1-area{
    padding-top: 120px;
  }
}

/* ========================================
  Phase 17 shared behavior
======================================== */
html {
  scroll-padding-top: 130px;
}

body.admin-bar .site-header {
  top: 32px;
}

.sub-faq-item .question[role="button"] {
  cursor: pointer;
}

.sub-faq-item .question[role="button"]:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 4px;
}

.sub-faq-item .answer.is-open {
  display: block;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 88px;
  }
}
