/**
 * フロサウナTV メインスタイルシート
 * 
 * Next.jsプロジェクトのSCSSから完全に変換したスタイルシート
 */

/* ========================================
   リセット & ベーススタイル
   ======================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--NotoSansJP);
  color: #333333;
  line-height: 1.6;
  background-color: #f7f7f7;
}

/* ========================================
   ユーティリティクラス
   ======================================== */

.sp-only {
  display: block;
}

.pc-only {
  display: none;
}

@media (min-width: 768px) {
  .sp-only {
    display: none;
  }
  
  .pc-only {
    display: block;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   ヘッダー
   ======================================== */

.header {
  display: block;
  padding-top: 14px;
  padding-bottom: 14px;
  padding-right: 20px;
  padding-left: 20px;
  border-bottom: solid 1px #cdd9e1;
  background: #ffffff;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 500;
}

@media (min-width: 768px) {
  .header {
    padding-right: 80px;
    padding-left: 80px;
  }
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  margin-inline: auto;
}

.header-logo {
  width: auto;
  position: relative;
  width: 111px;
  height: 27px;
}

@media (min-width: 768px) {
  .header-logo {
    width: 215px;
    height: 52px;
  }
}

.header-logo__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

@media (min-width: 768px) {
  .header-nav__inner {
    gap: 40px;
  }
}

.header-nav {
  display: none;
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
    align-items: center;
    gap: 40px;
  }
}

.header-nav__list {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav__item a {
  color: #231815;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  font-family: var(--NotoSansJP);
}

.header-nav__button {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 1rem;
  background-color: #DA1D33;
  padding: 16.5px 24px;
  font-weight: 700;
  text-decoration: none;
  font-family: var(--NotoSansJP);
}

@media (max-width: 767px) {
  .header-nav__button {
    padding: 12px 16px;
    box-shadow: none;
    align-self: stretch;
    margin-top: -14px;
    margin-bottom: -14px;
  }
}

@media (min-width: 768px) {
  .header-nav__button {
    box-shadow: 0px 2px 0px 0px #A51425;
  }
}

.header-nav__button-text-desktop {
  display: none;
}

@media (min-width: 768px) {
  .header-nav__button-text-desktop {
    display: inline;
  }
}

.header-nav__button-text-mobile {
  display: inline;
}

@media (min-width: 768px) {
  .header-nav__button-text-mobile {
    display: none;
  }
}

/* ハンバーガーメニューボタン */
.header-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
  appearance: none;
  position: relative;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: opacity 0.3s;
  margin-left: 12px;
}

@media (min-width: 768px) {
  .header-hamburger {
    display: none;
  }
}

.header-hamburger:hover {
  opacity: 0.6;
}

.header-hamburger__lines {
  position: relative;
  width: 26px;
  height: 20px;
}

.header-hamburger__line {
  display: block;
  width: 26px;
  height: 3px;
  background: #333333;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -13px;
  transition: width 0.2s, right 0.2s, left 0.2s;
}

.header-hamburger__line:nth-child(1) {
  transform: translateY(-7px);
}

.header-hamburger__line:nth-child(2) {
  transition: 0.3s opacity;
  opacity: 1;
}

.header-hamburger__line:nth-child(3) {
  transform: translateY(7px);
}

/* ドロワーメニュー */
.drawer-overlay {
  position: fixed;
  z-index: 2000;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s;
}

.drawer-overlay.drawer-overlay--open {
  background: rgba(0, 0, 0, 0.5);
}

.drawer-content {
  position: fixed;
  inset: 0;
  top: 0;
  width: 100%;
  max-width: 100%;
  max-height: 100vh;
  margin-right: 0;
  margin-left: auto;
  border-radius: 0;
  background: #000;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.3s;
}

.drawer-content.drawer-content--open {
  transform: translateX(0);
}

.drawer {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #000;
}

.drawer__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 20px;
  height: 80px;
}

.drawer__close-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  appearance: none;
  cursor: pointer;
  color: #ffffff;
  transition: opacity 0.2s;
}

.drawer__close-button:hover {
  opacity: 0.7;
}

.drawer__nav {
  flex: 1;
  padding: 0 84px;
}

.drawer__list {
  display: flex;
  flex-direction: column;
  gap: 58px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer__link {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s;
  font-family: var(--NotoSansJP);
}

.drawer__link:hover {
  opacity: 0.7;
}

.drawer__link_contact {
  display: block;
  padding: 16.5px 24px;
  text-align: center;
  background-color: #DA1D33;
  color: #fff;
  box-shadow: 0px 2px 0px 0px #A51425;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
  font-family: var(--NotoSansJP);
}

.drawer__link_contact:hover {
  opacity: 0.9;
}

/* ========================================
   メインコンテンツ
   ======================================== */

.site-main {
  padding-top: 0;
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* ヘッダー、フッターを除いたコンテンツの枠 */
.site-contents {
  display: flex;
  flex-direction: column;
  flex: 1;
  background-color: #f2ece4;
}

/* メインコンテンツ */
.site-main {
  container-type: inline-size;
  flex: 1;
  width: 100%;
}

/* ========================================
   KVセクション
   ======================================== */

.kv {
  width: 100%;
  aspect-ratio: 375 / 740;
  background-image: url('../images/bg-sp.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

@media (min-width: 768px) {
  .kv {
    aspect-ratio: 1920 / 1080;
    background-image: url('../images/bg-pc.png');
  }
}

.kv-bottom {
  padding: 0 20px;
  margin: -100px 0 0;
}

@media (min-width: 640px) {
  .kv-bottom {
    max-width: 1080px;
    margin: -40px auto 0;
  }
}

@media (min-width: 900px) {
  .kv-bottom {
    margin: -120px auto 0;
  }
}

.kv-bottom-inner {
  position: relative;
}

@media (min-width: 768px) {
  .kv-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.kv-bottom-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  .kv-bottom-image-wrapper {
    width: 400px;
  }
}

@media (min-width: 900px) {
  .kv-bottom-image-wrapper {
    width: 600px;
  }
}

.kv-bottom-image {
  width: 100%;
  height: auto;
}

.kv-bottom-text {
  margin: 40px auto 0;
  font-size: 1.625rem;
  color: #333333;
  font-family: var(--ZenOldMincho);
}

@media (min-width: 768px) {
  .kv-bottom-text {
    font-size: 1.875rem;
    margin: 0 0 40px;
  }
}

/* ========================================
   セクション共通
   ======================================== */

.section {
  padding: 80px 20px;
}

@media (min-width: 768px) {
  .section {
    max-width: 1080px;
    margin: 0 auto;
    overflow: hidden;
  }
}

.section--data {
  padding: 80px 20px;
}

@media (min-width: 768px) {
  .section--data {
    max-width: 1080px;
    margin: 0 auto;
    overflow: hidden;
    display: block;
  }
}

.section-inner {
  max-width: 1024px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .section-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 63px;
  }
}

.section-inner--news {
  max-width: 1024px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .section-inner--news {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 63px;
  }
  
  .section-inner--news .section-inner-header {
    max-width: none;
    align-self: flex-start;
  }
}

.section-inner--data {
  max-width: 1024px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .section-inner--data {
    display: block;
    max-width: 1080px;
    margin: 0 auto;
  }
  
  .section-inner--data .section-inner-header {
    position: relative;
    margin: 0 0 80px;
  }
  
  .section-inner--data .section-inner-header::before {
    content: '';
    position: absolute;
    top: 75%;
    left: 70%;
    transform: translateY(-50%);
    width: 753px;
    height: 1px;
    background-color: #B4AFAE;
  }
}

.section-inner-header {
  width: 100%;
}

@media (min-width: 768px) {
  .section-inner-header {
    max-width: 450px;
  }
}

.section-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--ZenOldMincho);
  font-weight: 500;
  font-size: 1.625rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 1.875rem;
  }
}

.section-title-en {
  font-size: 1.25rem;
  font-weight: 500;
  font-family: var(--RobotoCondensed);
  color: #A40000;
  display: block;
}

.section-description {
  margin: 24px 0 0;
  color: #333333;
  font-size: 0.875rem;
  font-weight: 400;
  font-family: var(--ZenOldMincho);
}

.section-content {
  margin: 40px 0 0;
}

.section-content-image {
  width: 100%;
  height: auto;
}

/* ========================================
   Dataセクション
   ======================================== */

.section-content-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

@media (min-width: 768px) {
  .section-content-list {
    display: grid;
    grid-template-columns: calc(50% - 40px) calc(50% - 40px);
    gap: 80px;
  }
}

.section-content-list-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 8px;
}

.section-content-list-item:last-of-type .section-content-list-item-content {
  padding-bottom: 0;
}

@media (min-width: 768px) {
  .section-content-list-item:first-of-type .section-content-list-item-content {
    padding-top: 70px;
  }
}

.section-content-list-item-title {
  width: 100%;
  text-align: center;
  background-color: #231815;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 16px;
  font-family: var(--ZenOldMincho);
  font-weight: 500;
  color: #ffffff;
}

@media (min-width: 768px) {
  .section-content-list-item-title {
    font-size: 20px;
  }
}

.section-content-list-item-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  padding: 24px 0 80px;
}

@media (min-width: 768px) {
  .section-content-list-item-content {
    width: 100%;
  }
}

.section-content-list-item-content-text {
  font-size: 1.125rem;
  font-weight: 400;
  font-family: var(--ZenOldMincho);
  color: #333333;
  margin: 0 0 24px;
}

@media (min-width: 768px) {
  .section-content-list-item-content-text {
    margin: 76px 0 0;
    font-size: 1.75rem;
  }
}

.section-content-list-item-image {
  /* width: 100%; */
  height: auto;
}

/* ========================================
   お知らせセクション
   ======================================== */

.news-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 24px 0 0;
}

@media (min-width: 768px) {
  .news-list {
    max-width: 820px;
    flex-shrink: 0;
  }
}

.news-list-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 8px;
  border-bottom: 1px solid #B4AFAE;
  padding: 24px 0;
}

.news-list-item:first-of-type {
  border-top: 1px solid #B4AFAE;
}

@media (min-width: 768px) {
  .news-list-item {
    flex-direction: row;
    align-items: center;
    gap: 80px;
    padding: 32px 0;
  }
}

.news-list-item-date {
  font-size: 1rem;
  font-weight: 400;
  font-family: var(--ZenOldMincho);
  color: #333333;
  margin: 0 0 8px;
}

@media (min-width: 768px) {
  .news-list-item-date {
    margin: 0;
  }
}

.news-list-item-title {
  font-size: 1rem;
  font-weight: 400;
  font-family: var(--NotoSansJP);
  color: #333333;
}

@media (min-width: 768px) {
  .news-list-item-title {
    font-size: 0.875rem;
  }
}

/* ========================================
   お問い合わせフォーム
   ======================================== */

.section-contact {
  background: #FFFFFF;
  padding: 80px 20px;
}

.section-contact .section-title {
  align-items: center;
}

.section-contact .section-description {
  text-align: center;
}

@media (min-width: 768px) {
  .section-contact {
    background: #F2ECE4;
  }
  
  .section-contact .section-description {
    font-size: 1.125rem;
  }
}

.section-inner--contact {
  width: 100%;
}

@media (min-width: 768px) {
  .section-inner--contact {
    max-width: 860px;
    width: 100%;
    background: #fff;
    margin: 0 auto;
    padding: 80px;
  }
}

.form-wrapper {
  margin: 40px 0 0;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-unit {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-unit + .form-unit {
  margin-top: 24px;
}

.form-unit__label {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: bold;
  font-family: var(--ZenOldMincho);
  color: #333333;
  line-height: 1.4;
}

.form-unit__required {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 32px;
  min-height: 18px;
  background: #A40101;
  font-size: 0.625rem;
  color: #fff;
  font-weight: bold;
  border-radius: 2px;
  padding-bottom: 1px;
  margin-left: 8px;
}

.form-unit__input {
  width: 100%;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cdd9e1;
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.3s;
  background-color: #fafdff;
  color: #333333;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #d8d8d8;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #37abf7;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-unit__error {
  color: #ff4242;
  font-size: 0.75rem;
  margin-top: 4px;
}

.form-error {
  padding: 16px;
  background-color: #ffefef;
  border: 1px solid #ff4242;
  border-radius: 4px;
  color: #ff4242;
  font-size: 0.875rem;
  font-weight: 500;
}

.form-privacy-policy {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  margin: 24px 0 0;
}

/* チェックボックスのスタイル */
.form-privacy-policy input[type="checkbox"] {
  position: relative;
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid #8ba5b4;
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background 0.3s, border-color 0.3s;
}

.form-privacy-policy input[type="checkbox"]:checked {
  background: #1858a4;
  border-color: #1858a4;
}

.form-privacy-policy input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-privacy-policy input[type="checkbox"]:focus {
  outline: 2px solid #2d60a7;
  outline-offset: 2px;
}

.form-privacy-policy input[type="checkbox"]:disabled {
  border-color: rgba(139, 165, 180, 0.4);
  cursor: not-allowed;
}

.form-privacy-policy-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 400;
  color: #333333;
  margin: 0;
  cursor: pointer;
}

.form-privacy-policy-text a {
  color: #58AEFF;
  text-decoration: underline;
}

.form-privacy-policy-text a:hover {
  text-decoration: none;
}

@media (min-width: 768px) {
  .form-privacy-policy-text {
    flex: none;
    justify-content: center;
  }
}

/* ========================================
   Contact Form 7 スタイルカスタマイズ
   ======================================== */

/* Contact Form 7のフォーム全体 */
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Contact Form 7の入力フィールドを既存のスタイルに合わせる */
.wpcf7-form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cdd9e1;
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.3s;
  background-color: #f9f9f9;
  color: #333333;
}

/* チェックボックスやacceptanceを囲む.wpcf7-form-controlのボーダーと背景色を削除 */
.wpcf7-checkbox.wpcf7-form-control,
.wpcf7-acceptance.wpcf7-form-control {
  border: none;
  background-color: transparent;
  padding: 0;
}

.wpcf7-form-control::placeholder {
  color: #d8d8d8;
}

.wpcf7-form-control:focus {
  outline: none;
  border-color: #37abf7;
}

/* テキスト入力 */
.wpcf7-text,
.wpcf7-email,
.wpcf7-tel {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cdd9e1;
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.3s;
  background-color: #f9f9f9;
  color: #333333;
}

.wpcf7-text::placeholder,
.wpcf7-email::placeholder,
.wpcf7-tel::placeholder {
  color: #d8d8d8;
}

.wpcf7-text:focus,
.wpcf7-email:focus,
.wpcf7-tel:focus {
  outline: none;
  border-color: #37abf7;
}

/* テキストエリア */
.wpcf7-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cdd9e1;
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.3s;
  background-color: #f9f9f9;
  color: #333333;
  resize: vertical;
  min-height: 120px;
}

.wpcf7-textarea::placeholder {
  color: #d8d8d8;
}

.wpcf7-textarea:focus {
  outline: none;
  border-color: #37abf7;
}

/* チェックボックス（acceptance） */
.wpcf7-checkbox input[type="checkbox"] {
  position: relative;
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid #8ba5b4;
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background 0.3s, border-color 0.3s;
}

.wpcf7-checkbox input[type="checkbox"]:checked {
  background: #1858a4;
  border-color: #1858a4;
}

/* 同意チェックボックス（acceptance）は通常のチェックボックスと同じスタイル */
.wpcf7-acceptance input[type="checkbox"] {
  position: relative;
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid #8ba5b4;
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background 0.3s, border-color 0.3s;
}

.wpcf7-acceptance input[type="checkbox"]:checked {
  background: #1858a4;
  border-color: #1858a4;
}

.wpcf7-checkbox input[type="checkbox"]:checked::after,
.wpcf7-acceptance input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.wpcf7-checkbox input[type="checkbox"]:focus {
  outline: 2px solid #2d60a7;
  outline-offset: 2px;
}

.wpcf7-checkbox input[type="checkbox"]:disabled,
.wpcf7-acceptance input[type="checkbox"]:disabled {
  border-color: rgba(139, 165, 180, 0.4);
  cursor: not-allowed;
}

.wpcf7-checkbox input[type="checkbox"]:focus,
.wpcf7-acceptance input[type="checkbox"]:focus {
  outline: 2px solid #2d60a7;
  outline-offset: 2px;
}

/* Contact Form 7のacceptanceフィールドのスタイル */
.wpcf7-acceptance {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 24px 0 0;
}

/* Contact Form 7のacceptanceフィールドがform-privacy-policyクラス内にある場合 */
.form-privacy-policy .wpcf7-acceptance {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
}

.wpcf7-acceptance label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 400;
  color: #333333;
  margin: 0;
  cursor: pointer;
  font-family: var(--NotoSansJP);
}

.wpcf7-acceptance label a {
  color: #58AEFF;
  text-decoration: underline;
}

.wpcf7-acceptance label a:hover {
  text-decoration: none;
}

/* Contact Form 7のacceptanceフィールド内のチェックボックス */
.form-privacy-policy .wpcf7-acceptance input[type="checkbox"] {
  position: relative;
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid #8ba5b4;
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background 0.3s, border-color 0.3s;
}

.form-privacy-policy .wpcf7-acceptance input[type="checkbox"]:checked {
  background: #1858a4;
  border-color: #1858a4;
}

.form-privacy-policy .wpcf7-acceptance input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-privacy-policy .wpcf7-acceptance input[type="checkbox"]:focus {
  outline: 2px solid #2d60a7;
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .wpcf7-acceptance label {
    flex: none;
    justify-content: center;
  }
}

/* 送信ボタン - 基本スタイル（inputタグ用のフォールバック） */
.wpcf7-submit {
  background-color: #DA1D33;
  border-radius: 4px;
  box-shadow: 0 2px 0 0 #A51425;
  height: 52px;
  max-width: 260px;
  width: 100%;
  color: #fff;
  font-size: 1.25rem;
  font-family: var(--NotoSansJP);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  position: relative;
  padding: 0;
}

.wpcf7-submit:hover {
  background-color: #C01A2E;
}

.wpcf7-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ボタンタグの基本スタイル（Next.jsのAppButtonコンポーネントを踏襲） */
.button {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 200px;
  width: max-content;
  min-height: 48px;
  padding: 0.5em 24px;
  border-radius: 30px;
  text-decoration: none !important;
  line-height: 1.4;
  cursor: pointer;
  background: none;
  border: none;
  appearance: none;
}

/* 送信ボタン用のカスタムスタイル */
.button.-theme-solidFill.form-submit-button {
  position: relative;
  background-color: #DA1D33;
  border-radius: 4px;
  box-shadow: 0px 2px 0px 0px #A51425;
  height: 52px;
  max-width: 260px;
  width: 100%;
  min-width: auto;
  padding: 0;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  overflow: hidden;
  text-align: center;
  font-family: var(--NotoSansJP);
  font-weight: 700;
  font-size: 20px;
  line-height: 100%;
}

.button.-theme-solidFill.form-submit-button:hover {
  background-color: #C01A2E;
}

.button.-theme-solidFill.form-submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #DA1D33;
}

/* ボタンテキストのスタイル */
.button__text {
  position: relative;
  display: block;
  margin-top: -0.1em; /* Noto Sans JPに対する微調整 */
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--NotoSansJP);
  z-index: 1;
  line-height: 1.4;
}

/* 送信ボタン内のbutton__textのスタイル調整 */
.button.-theme-solidFill.form-submit-button .button__text {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--NotoSansJP);
  line-height: 100%;
  text-align: center;
  margin-top: 0; /* line-height: 100%に合わせて調整 */
}

/* バリデーションエラー */
.wpcf7-validation-errors {
  padding: 16px;
  background-color: #ffefef;
  border: 1px solid #ff4242;
  border-radius: 4px;
  color: #ff4242;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.wpcf7-not-valid-tip {
  color: #ff4242;
  font-size: 0.75rem;
  margin-top: 4px;
}

.wpcf7-not-valid {
  border-color: #ff4242 !important;
}

/* 送信成功メッセージ */
.wpcf7-mail-sent-ok {
  padding: 16px;
  background-color: #e8f5e9;
  border: 1px solid #4caf50;
  border-radius: 4px;
  color: #2e7d32;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 24px;
}

/* 送信失敗メッセージ */
.wpcf7-mail-sent-ng {
  padding: 16px;
  background-color: #ffefef;
  border: 1px solid #ff4242;
  border-radius: 4px;
  color: #ff4242;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 24px;
}

/* スピナー（送信中） */
.wpcf7-spinner {
  display: none;
}

/* Contact Form 7のフォームユニットを既存のスタイルに合わせる */
.wpcf7-form .form-unit {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wpcf7-form .form-unit + .form-unit {
  margin-top: 24px;
}

/* Contact Form 7のラベルを既存のスタイルに合わせる */
.wpcf7-form .form-unit__label {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: bold;
  font-family: var(--ZenOldMincho);
  color: #333333;
  line-height: 1.4;
}

/* brタグを非表示にして中央揃えを維持 */
.wpcf7-form .form-unit__label br {
  display: none;
}

.wpcf7-form .form-unit__label > * {
  display: inline-flex;
  align-items: center;
}

.wpcf7-form .form-unit__required {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 32px;
  min-height: 18px;
  background: #A40101;
  font-size: 0.625rem;
  color: #fff;
  font-weight: bold;
  border-radius: 2px;
  padding-bottom: 1px;
  margin-left: 8px;
  vertical-align: middle;
  line-height: 1;
}

.form-submit {
  position: relative;
  display: inline-flex;
  justify-content: center;
  max-width: 260px;
  width: 100%;
  margin: 0 auto;
}

.form-submit::before {
  content: url('../images/arrow_right02.svg');
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 20px;
  z-index: 2;
  pointer-events: none;
}

/* 既存の.form-submit-buttonスタイルは.button.-theme-solidFill.form-submit-buttonに統合されました */

/* ========================================
   サンクスページ
   ======================================== */

/* サンクスページでSP時のみ.site-contentsの背景を#fffに */
@media (max-width: 767px) {
  .site-contents:has(.thanks) {
    background-color: #fff;
  }
}

.thanks {
  display: flex;
  align-items: flex-start;
  padding: 80px 20px;
  background: #fff;
}

@media (min-width: 768px) {
  .thanks {
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    max-width: 860px;
    margin: 0 auto;
    background: none;
  }
}

.thanks-inner {
  width: 100%;
  text-align: center;
  background-color: #fff;
}

@media (min-width: 768px) {
  .thanks-inner {
    padding: 80px 80px 120px;
  }
}

.thanks-title {
  font-family: var(--ZenOldMincho);
  font-size: 1.75rem;
  font-weight: 700;
  color: #333333;
  margin: 0 0 24px;
}

@media (min-width: 768px) {
  .thanks-title {
    margin: 0 0 16px;
  }
}

.thanks-title-en {
  font-size: 1.25rem;
  font-weight: 500;
  font-family: var(--RobotoCondensed);
  color: #A40000;
  margin: 0;
}

.thanks-message {
  font-size: 1rem;
  font-weight: 400;
  font-family: var(--ZenOldMincho);
  color: #333333;
  line-height: 1.8;
  margin: 0 0 40px;
}

@media (min-width: 768px) {
  .thanks-message {
    margin: 0 0 80px;
  }
}

.thanks-link {
  margin: 40px 0 0;
}

.thanks-link a {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 260px;
  height: 52px;
  padding: 12px 32px;
  background-color: #231815;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--NotoSansJP);
  transition: opacity 0.3s;
}

.thanks-link a::after {
  content: url('../images/arrow_right02.svg');
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 20px;
  color: #fff;
  z-index: 1;
}

.thanks-link a:hover {
  opacity: 0.7;
}

/* ========================================
   フッター
   ======================================== */

.footer {
  display: block;
  padding-top: 40px;
  padding-right: 20px;
  padding-left: 20px;
  padding-bottom: 15px;
  background-color: #231815;
  overflow: hidden;
}

@media (min-width: 768px) {
  .footer {
    padding-right: 40px;
    padding-left: 40px;
  }
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  height: 100%;
  max-width: 1100px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 0 80px;
    max-width: none;
  }
}

.footer-logo {
  width: auto;
}

@media (min-width: 768px) {
  .footer-logo {
    grid-column: 1 / 2;
  }
}

.footer-logo img {
  width: 171px;
  height: 42px;
  object-fit: contain;
}

/* リンクリスト */
.footer-linkList {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .footer-linkList {
    flex-direction: row;
    justify-content: flex-end;
    gap: 24px;
    grid-column: 2 / 3;
  }
}

.footer-linkList__item {
  font-size: 0.875rem;
}

.footer-linkList__item a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-linkList__item a:hover {
  opacity: 0.7;
}

.footer-linkList__item + .footer-linkList__item {
  margin-left: 24px;
}

/* コピーライト */
.footer-copyright {
  position: relative;
  margin-top: 24px;
  text-align: center;
  font-size: 0.8125rem;
  color: #fff;
  font-family: var(--NotoSansJP);
}

.footer-copyright::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 99vw;
  height: 1px;
  background-color: #5A5A5A;
}

.footer-copyright small {
  font-size: inherit;
}

@media (min-width: 768px) {
  .footer-copyright {
    grid-column: 1 / 3;
  }
}

/* ========================================
   レスポンシブ調整
   ======================================== */

@media (max-width: 767px) {
  .site-header__nav {
    display: none;
  }
}

/* ========================================
   フォント変数の定義（CSS変数として）
   ======================================== */

:root {
  --NotoSansJP: 'Noto Sans JP', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --ZenOldMincho: 'Zen Old Mincho', serif;
  --RobotoCondensed: 'Roboto Condensed', 'Helvetica Neue', Arial, sans-serif;
}

/* フォント変数のフォールバック設定 */
body {
  font-family: var(--NotoSansJP);
}
