@charset "UTF-8";

/*
Theme Name: AikiKenshin
Description: AIKI健芯CLUB オリジナルテーマ
Author: Your Name
Version: 1.0
*/

/* ==============================================
  全体設定・リセット
============================================== */
:root {
  --color-main: #333333; 
  --color-white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #f2f2f2;
  font-size: 35px;
  font-family: 'Helvetica', 'Arial', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', 'メイリオ', Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
  color: #333;
  line-height: 1.5;
  text-align: center;
}

picture, img {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* ==============================================
  PC版の調整 (751px以上)
============================================== */
@media screen and (min-width: 751px) {
  picture img {
    object-fit: cover;
    width: 100%;
  }
  .fv {
    height: 63px;
  }
  .sp_only .text .text2 br .pc-only {
    display: none;
  }
}

/* ==============================================
  レイアウト・ボックス
============================================== */
.container, 
.container1, 
.container2, 
.container3 {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

.container {
  background: url(../images/thanks/fv_bg.webp) repeat-y center top / 100% auto;
}

.container2 {
  background: url(../images/thanks/toujitsu_bg.webp) repeat-y center top / 100% auto;
  overflow: hidden;
}

.container3 {
  background: url(../images/thanks/toujitsu_title_bg.webp) repeat-y center top / 100% auto;
}

.inner, 
.inner2 {
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.inner {
  max-width: 900px;
}

.inner2 {
  max-width: 900px;
  margin-bottom: 10%;
}

.inner3 {
  width: 86%;
  max-width: 850px;
  margin: 5% auto 5%;
  padding: 10px;
  box-sizing: border-box;
}

.inner img {
  width: 95%;
  margin: 0 auto;
}

.section {
  padding: 10% 0 5%;
  max-width: 1000px;
  margin: 0 auto;
}

.title {
  width: 100%;
  margin-bottom: 6%;
}

.targetcall {
  width: 100%;
  margin: 0 auto;
}

.fv_image {
  width: 100%;
  max-width: 900px;
  margin: 3% auto 0;
}

.textimage {
  width: 80%;
  margin: 2% auto 8%;
}

/* ==============================================
  テキスト・装飾
============================================== */
.text-title {
  font-size: 32px;
  font-weight: bold;
  line-height: 1.4;
  color: #333333;
}

p {
  padding-bottom: 0.5em;
  margin: 0;
}

p:last-of-type {
  padding-bottom: 0.8em;
}

.red {
  color: #E30003;
}

.marker {
  background: linear-gradient(transparent 55%, #fffc79 55%);
}

.text-p, 
.overlay-text, 
.overlay-text2, 
.overlay-text3 {
  font-family: "Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "HG明朝E", "ＭＳ Ｐ明朝", serif;
  font-weight: bold;
  color: #333333;
}

.text-p {
  font-size: clamp(22px, 5vw, 42px); 
  line-height: 1.5;
  padding: 5%;
}

.text {
  font-size: clamp(17px, 4.5vw, 35px);
  margin-top: 100px;
  margin-bottom: 1.5em;
  text-align: left;
  padding: 20px;
  box-sizing: border-box;
}

/* ==============================================
  画像への重ね合わせ (オーバーレイ)
============================================== */
.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10%;
  box-sizing: border-box;
}

.overlay-text {
  font-size: clamp(22px, 5vw, 45px);
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.overlay-text2 {
  font-size: clamp(18px, 5vw, 42px);
  width: 80%;
  margin-top: 15px;
  margin-bottom: 0;
}

.overlay-text3 {
  position: absolute;
  bottom: 15%;
  left: 5%;
  width: 75%;
  padding: 0 5%;
  font-size: clamp(16px, 4.5vw, 38px);
  text-align: left;
  line-height: 1.8;
}

.overlay-text4 {
  font-size: clamp(15px, 5vw, 35px);
  margin: 15% 4%;
  width: 80%;
  line-height: 1.8;
}

.ribon-img {
  width: 85%;
  max-width: 580px;
  margin: 0;
}

.overlay-desc {
  font-size: clamp(15px, 4vw, 42px) !important;
  width: 78%;
  line-height: 2;
  margin-top: 5%;
  text-align: left;
}

/* ==============================================
  各セクション背景・調整
============================================== */
.body {
  margin: 6% 0;
}

.fv_box {
  background: url("../images/thanks/fv_box.webp") repeat-y center top / 100% auto;
  padding: 20px 0;
}

.fv_box_flow img {
  width: 90%;
  padding: 10px;
}

.connect2 {
  display: block;
  position: relative;
  z-index: 100;
  margin-top: -50px;
  margin-bottom: -50px;
}

.connect2 img {
  height: 207px;
  width: auto;
  margin: 0 auto;
}

/* ==============================================
  コンタクトフォーム (Contact Form 7 互換)
============================================== */
.p-contact__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

.p-contact__form {
  padding-top: 40px;
  padding-bottom: 60px;
}

.wpcf7-not-valid-tip {
  display: block;
  margin-top: 8px;
  color: #e60012;
  font-size: 17px;
  text-align: left;
}

/* 送信ボタンを押すまでエラー文を隠す（functions.php の contact_form_error_control と連動） */
.p-contact__form .wpcf7-not-valid-tip {
  display: none;
}

.p-contact__form.is-show .wpcf7-not-valid-tip {
  display: block;
}

.wpcf7-spinner {
  display: none;
}

.p-form__field + .p-form__field {
  margin-top: 40px;
}

.p-form__label {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 12px;
  font-weight: 700;
  font-size: 24px;
  color: #333;
  text-align: left;
}

.p-form__required {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  background-color: #e60012;
  color: var(--color-white);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.6;
}

.p-form__input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #ccc;
  border-radius: 8px;
  background-color: var(--color-white);
  font-size: 20px;
  box-sizing: border-box;
  font-family: inherit;
}

.p-form__input:focus {
  outline: 2px solid var(--color-main);
  outline-offset: 0;
}

textarea.p-form__input {
  min-height: 240px;
  line-height: 1.6;
  resize: vertical;
}

.p-form__radio {
  display: block;
  text-align: left;
}

.p-form__radio .wpcf7-list-item {
  display: inline-block;
  margin: 0 30px 0 0;
}

.p-form__radio label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  cursor: pointer;
}

.p-form__radio input[type=radio] {
  width: 24px;
  height: 24px;
  accent-color: var(--color-main);
  cursor: pointer;
}

.p-form__submit {
  margin-top: 50px;
  text-align: center;
}

.p-form__btn {
  min-width: 320px;
  padding: 20px 40px;
  border-radius: 999px;
  background-color: var(--color-main);
  color: var(--color-white);
  font-weight: 700;
  font-size: 24px;
  cursor: pointer;
  border: none;
  transition: 0.3s;
}

.p-form__btn:hover {
  opacity: 0.8;
}

/* ==============================================
  稽古日程表（CF7フォーム内 #remote-schedule-container）
============================================== */
.p-schedule {
  margin-top: 30px;
}

.p-schedule__note {
  display: block;
  font-size: 22px;
  text-align: left;
}

#remote-schedule-container {
  margin-top: 24px;
  overflow-x: auto;
  max-height: 800px;
  overflow-y: auto;
  border: 1px solid #ddd;
  scrollbar-width: auto;
  scrollbar-color: #bbb #f3f3f3;
}

#remote-schedule-container::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

#remote-schedule-container::-webkit-scrollbar-track {
  background-color: #f3f3f3;
}

#remote-schedule-container::-webkit-scrollbar-thumb {
  background-color: #bbb;
  border-radius: 999px;
}

#remote-schedule-container table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 20px;
}

#remote-schedule-container th,
#remote-schedule-container td {
  padding: 20px 24px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

#remote-schedule-container th:last-child,
#remote-schedule-container td:last-child {
  border-right: none;
}

#remote-schedule-container tr:last-child td {
  border-bottom: none;
}

#remote-schedule-container th {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: #f3f3f3;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 -4px 0 #f3f3f3;
}

#remote-schedule-container th:first-child,
#remote-schedule-container td:first-child {
  white-space: nowrap;
}

#remote-schedule-container td.sunday {
  color: #e60012;
}

/* ==============================================
  稽古場所 (テーブルデザイン)
============================================== */
.p-place {
  padding-bottom: 10px;
}

.p-place__inner {
  padding-inline: .625rem;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.p-place__title {
  padding-block: 3.75rem;
  background-color: #efefef;
}

.p-place__table {
  margin-top: 3rem;
}

.p-place__text {
  font-size: 2rem;
  line-height: 1.6;
  text-align: left;
}

.p-place__name {
  font-weight: 500;
  font-size: 2.75rem;
  line-height: 1.4;
  letter-spacing: .06em;
  text-align: left;
}

.p-place__name rt {
  font-weight: 400;
  font-size: 1.25rem;
}

.p-place__map {
  color: #333;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.c-table {
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 1.875rem rgba(0,0,0,.25);
}

.c-table__row {
  display: grid;
  grid-template-columns: 13.75rem 1fr;
}

.c-table__rowLabel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  border-bottom: .0625rem solid #fff;
  background-color: #dfdddd;
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: .08em;
}

.c-table__rowBody {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  gap: .5rem;
  border-bottom: .0625rem solid #dfdddd;
  background-color: #fff;
}

/* ==============================================
  TOPページへ戻るボタン (PC用)
============================================== */
.totop-wrapper {
  text-align: center;
  padding: 20px 0 2%0;
}

.totop-btn::after {
  content: "▲";
  font-size: 14px;
  margin-left: 10px;
}

.totop-btn:hover {
  background-color: #333;
  color: #fff;
}

/* ==============================================
  フッター
============================================== */
.footer {
  background-color: #333;
  padding: 20px 10px;
  color: #fff;
  font-size: 20px;
}

.footer a, 
.copyright {
  color: #fff;
}

.footer a {
  display: inline-block;
  text-decoration: underline;
}

/* ==============================================
  タブレット・スマホ (750px以下)
============================================== */
@media screen and (max-width: 750px) {
  body {
    font-size: 16px;
  }
  
  .text-title {
    font-size: 22px;
  }
  
  .text-p {
    padding: 30px 0;
  }
  
  .text {
    margin-top: 20px;
    padding: 10px;
  }
  
  .text2 {
    margin: 10px 10px 0.5em;
  }
  
  .overlay-text {
    padding: 30px 0;
  }
  
  .overlay-text2 {
    margin-top: 15px;
  }
  
  .overlay-text3 {
    font-size: clamp(15px, 4vw, 25px);
    margin: 4% 4% 2%;
    width: 65%;
    line-height: 1.7;
  }
  
  .overlay-text4 {
    font-size: clamp(15px, 4vw, 25px);
    margin: 10% 4% 2%;
    width: 80%;
    line-height: 1.5;
  }
  
  .overlay-desc {
    font-size: 15px !important;
    line-height: 1.7;
    width: 83%;
  }
  
  .overlay-content {
    padding-top: 10%;
  }
  
  .pc_only {
    display: none;
  }
  
  .space_sp {
    display: block;
    height: 1.5em;
  }
  
  .connect2 {
    margin-top: -10px;
    margin-bottom: -10px;
  }
  
  .connect2 img {
    height: 100px;
  }

  .footer {
  background-color: #333;
  padding: 20px 10px;
  color: #fff;
  font-size: 14px;
}


  /* フォームのスマホ対応 */
  .p-contact__inner {
    padding: 0 15px;
  }

  .p-contact__form {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .wpcf7-not-valid-tip {
    font-size: 24px;
  }

  .p-form__field + .p-form__field {
    margin-top: 25px;
  }
  
  .p-form__label {
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  .p-form__required {
    font-size: 12px;
    padding: 2px 6px;
  }
  
  .p-form__input {
    padding: 12px 15px;
    font-size: 16px;
  }
  
  textarea.p-form__input {
    min-height: 180px;
  }
  
  .p-form__radio .wpcf7-list-item {
    display: block;
    margin: 0 0 15px 0;
    text-align: left;
  }
  
  .p-form__radio label {
    font-size: 16px;
  }
  
  .p-form__submit {
    margin-top: 30px;
  }
  
  .p-form__btn {
    display: block;
    width: 100%;
    max-width: 280px;
    min-width: auto;
    margin-inline: auto;
    padding: 14px 32px;
    font-size: 16px;
  }

  /* 稽古日程表のスマホ対応 */
  .p-schedule__note {
    font-size: 16px;
  }

  #remote-schedule-container table {
    font-size: 14px;
  }

  #remote-schedule-container th,
  #remote-schedule-container td {
    padding: 10px 12px;
    line-height: 1.5;
  }

  /* 稽古場所のスマホ対応 */
  .p-place {
    padding-bottom: 40px;
  }
  
  .p-place__title {
    padding-block: 20px;
  }
  
  .p-place__table {
    margin-top: 20px;
  }
  
  .c-table__row {
    display: flex;
    flex-direction: column;
  }
  
  .c-table__rowLabel {
    padding: 10px 15px;
    font-size: 16px;
    justify-content: flex-start;
    border-bottom: none;
  }
  
  .c-table__rowBody {
    padding: 15px 15px 25px;
    border-bottom: 4px solid #f2f2f2;
  }
  
  .p-place__text {
    font-size: 15px;
    line-height: 1.6;
  }
  
  .p-place__name {
    font-size: 22px;
    margin: 10px 0;
  }
  
  .p-place__name rt {
    font-size: 11px;
  }
  
  /* ★TOPページへ戻るボタン (スマホ用) をメディアクエリ内に格納 */
  .totop-wrapper {
    width: 60%;
    padding: 10px 0 10px;
  }
  
  .totop-btn {
    font-size: 16px;
    padding: 12px 40px;
  }
  
  .totop-btn::after {
    font-size: 12px;
  }
}