/*
 * サービス LP（/kenzo/ /stress/ /houjin/ /health-checkup/）共通フッターのスタイル
 * footer-lp.php から読み込む。houjin/style.css（本番）の「追記」部分からフッター関連だけを抜き出したもの。
 */
.footer {
  position: relative;
  background: #F7F7F7;
  box-sizing: border-box;
  padding: 49px clamp(20px, 10vw, 208px) 40px;
}

.footer-inner {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
}

.footer-main {
  display: flex;
  gap: 57px;
  margin-bottom: 32px;
  align-items: flex-start;
}

.footer-company {
  flex-shrink: 0;
  width: 307px;
}

.footer-company-name {
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  margin: 0 0 17px;
}

.footer-logo {
  margin-bottom: 18px;
}

.footer-address {
  font-size: 14px;
  line-height: 1.71;
  margin: 0;
}

.footer-btns {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 17px;
}

.footer-btn--primary {
  background: #BA0000;
  color: #FFFFFF;
  transition: opacity 0.2s ease;
}

.footer-btn--primary:hover {
  opacity: 0.7;
}

.footer-btn--secondary {
  background: #FFFFFF;
  color: #BA0000;
  font-family: "Jost", "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
  gap: 10px;
  min-width: 247px;
  justify-content: flex-start;
  transition: background-color 0.2s ease;
}

.footer-btn--secondary:hover {
  background: #F5D3D5;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex: 1;
  min-width: 742px;
}

.footer-nav-group {
  flex-shrink: 0;
  padding-left: 18px;
  border-left: 1px solid #D9D9D9;
}

.footer-nav-group:first-of-type {
  width: 170px;
  flex: 0 0 170px;
  min-width: 170px;
}

.footer-nav-group:nth-of-type(2) {
  width: 220px;
  flex: 0 0 220px;
  min-width: 220px;
}

.footer-nav-group:nth-of-type(3) {
  width: 254px;
  flex: 0 0 254px;
  min-width: 254px;
}

.footer-nav-title {
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  color: #333333;
  margin: 0 0 18px;
}

.footer-nav-title a {
  color: inherit;
  text-decoration: none;
}

.footer-nav-title a:hover {
  color: #BA0000;
}

.footer-nav-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-nav-subsection {
  position: relative;
  padding-left: 18px;
}

.footer-nav-subsection::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 5px;
  background: #BA0000;
  border-radius: 50%;
}

.footer-nav-subtitle {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.14;
  color: #333333;
  margin: 0 0 9px;
}

.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 2;
  color: #333333;
}

.footer-nav-list li {
  padding-left: 12px;
  position: relative;
}

.footer-nav-list li::before {
  content: "-";
  position: absolute;
  left: 0;
}

.footer-nav-list a {
  color: inherit;
  text-decoration: none;
}

.footer-nav-list a:hover {
  color: #BA0000;
}

.footer-bottom {
  padding-top: 0;
}

.footer-bottom-line {
  height: 1px;
  background: #D9D9D9;
  margin-bottom: 18px;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 47px;
}

.footer-bottom-links a {
  font-weight: 500;
  font-size: 12px;
  line-height: 1.14;
  color: #333333;
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: #BA0000;
}

.footer-bottom .footer-copyright {
  font-size: 12px;
  line-height: 1.67;
  margin: 0;
  text-align: right;
}

.pagetop {
  position: fixed;
  right: 208px;
  bottom: 20px;
  z-index: 100;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.pagetop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.pagetop:hover, .pagetop:focus-visible {
  opacity: 0.7;
}

.pagetop svg {
  display: block;
}

.footer-lp .footer-nav-group:first-of-type {
  width:100%;
  flex:none;
}

.footer-lp .footer-nav-list {
  display:flex;
  gap:10px;
}

.footer-lp .isms-area {
  background:#fff;
  text-align: center;
  margin:16px 0 0 0;
  padding:8px 24px;
  display:flex;
  flex-wrap: wrap;
  align-items: center;
  gap:24px;
}

.footer-lp .isms-area img {
  max-width:200px;
}

.footer-lp .isms-tx {
  font-size:12px;
  text-align: left;
  padding:16px;
  display:flex;
  gap:24px;
}

.footer-lp .isms-tx span {
  font-weight:bold;
  display:block;
  margin-top:8px;
}

.footer-lp .isms-tx a {
  display:block;
  padding:8px 0;
}

@media (max-width: 1200px) {
  .footer {
    padding: 49px 40px 40px;
  }
  .footer-main {
    flex-wrap: wrap;
  }
  .footer-company {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-company .footer-logo {
    order: -2;
    margin-bottom: 12px;
    width: 168px;
    height: auto;
  }
  .footer-company .footer-company-name {
    order: -1;
    margin-bottom: 18px;
    font-size: 13px;
  }
  .footer-address {
    text-align: left;
    margin-bottom: 32px;
  }
  .footer-btns {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .footer-btns .footer-btn {
    margin: 0;
  }
  .footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 18px;
    width: auto;
    min-width: 0;
    white-space: nowrap;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.71;
    margin-bottom: 18px;
  }
  .footer-btn--secondary {
    width: 224px;
    gap: 10px;
    font-family: "Jost", sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 1;
    margin-bottom: 0;
  }
  .pagetop {
    right: 40px;
  }
  .footer-links {
    min-width: 0;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 32px;
  }
  .footer-nav-group {
    min-width: 0 !important;
    width: auto !important;
    flex: 1 1 auto !important;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 32px 20px 32px;
  }
  .footer-main {
    flex-direction: column;
    gap: 0;
    margin-bottom: 51px;
  }
  .footer-company {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-company .footer-logo {
    order: -2;
    margin-bottom: 12px;
    width: 168px;
    height: auto;
  }
  .footer-company .footer-company-name {
    order: -1;
    margin-bottom: 18px;
    font-size: 13px;
  }
  .footer-address {
    margin-bottom: 16px;
    text-align: left;
  }
  .footer-btns {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 18px;
    width: auto;
    height: auto;
    min-width: 0;
    white-space: nowrap;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.71;
  }
  .footer-btn img {
    flex-shrink: 0;
    width: 27px;
    height: 27px;
  }
  .footer-btn--secondary {
    width: 224px;
    justify-content: flex-start;
    gap: 10px;
    font-family: "Jost", sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 1;
  }
  .footer-btns .footer-btn {
    margin-bottom: 18px;
  }
  .footer-btns .footer-btn--secondary {
    margin-bottom: 0;
  }
  .footer-links {
    flex-direction: column;
    gap: 32px;
    min-width: 0;
  }
  .footer-nav-group {
    width: 100% !important;
    flex: 1 1 100% !important;
    min-width: 0 !important;
    padding-left: 18px !important;
    border-left: 1px solid #D9D9D9 !important;
    border-top: none;
    padding-top: 0;
    margin-bottom: 0;
  }
  .footer-nav-content {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }
  .footer-nav-subsection:first-child {
    flex: 1 1 0;
    min-width: 0;
  }
  .footer-nav-subsection:last-child {
    flex: 0 0 auto;
    min-width: 80px;
  }
  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-bottom-links {
    gap: 28px;
  }
  .footer-copyright {
    text-align: left !important;
  }
  .pagetop {
    right: 20px;
    bottom: 20px;
  }
  .footer {
    padding-bottom: 40px;
  }
  .footer-nav-group {
    border:none !important;
    padding:0 !important;
    border-left:none !important;
  }
  .footer-lp .footer-nav-list {
    display:block;
    gap:10px;
  }
  .footer-lp .isms-area {
    background:#fff;
    text-align: center;
    margin:16px 0 0 0;
    padding:24px 8px;
    display:flex;
    flex-wrap: wrap;
    align-items: center;
    gap:0;
    justify-content: center;
  }
}

/* ---------------------------------------------------------
 * LP ごとの CSS（.footer { color:#fff } や h2 の大きな文字など）の影響を受けないための土台。
 * :where() で詳細度を 0 にしているので、上のクラス指定がそのまま優先される。
 * --------------------------------------------------------- */
.footer.footer-lp {
  background-color: #F7F7F7;
  color: #333333;
  text-align: left;
  line-height: 1.5;
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}
:where(.footer-lp) a {
  color: inherit;
  text-decoration: none;
}
:where(.footer-lp) :is(h2, h3, p, ul) {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  background: none;
  border: 0;
}
:where(.footer-lp) ul {
  list-style: none;
}
:where(.footer-lp) img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* 「コーポレートサイト」ボタン（houjin/style.css の .top-btn と同じ見た目） */
.footer-lp .top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid #BA0000;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.89;
  letter-spacing: 0.055em;
  text-decoration: none;
  max-width: 246px;
  margin: 16px 0;
}
.footer-lp .top-btn--white {
  background: #FFFFFF;
  color: #BA0000;
  transition: background-color 0.2s ease;
}
.footer-lp .top-btn--white:hover {
  background: #F5D3D5;
}

/* ISMS 認証マーク：width/height 属性があっても縦に伸びないようにする */
.footer-lp .isms-area img {
  height: auto;
}

/* スマホ・タブレットでフッターのリンクを押しやすくする（タップ領域を広げる） */
@media (max-width: 1024px) {
  .footer-lp .footer-nav-list a,
  .footer-lp .footer-bottom-links a,
  .footer-lp .footer-nav-title a {
    display: inline-block;
    padding: 8px 0;
  }
}
