/* モバイル・タブレット画面 */
@media (max-width: 750px) {
  body {
    width: 100%; 
  }
}

/* 基本設定（インラインCSSから削除した部分） */
body {
  font-family: "MS Mincho", serif;
}

main {
  display: flex;
  flex-direction: column; 
}

/* 画像基本設定 */
img {
  max-width: 100%;
  height: auto;
}

.fv img {
  vertical-align: bottom;
}

.fv {
  background-color: #f0f0f0;
}

/* 固定CTAの追加スタイル */
.fix-cta {
  display: flex;
  flex-direction: column;
}

.fix-cta > img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.button-container {
  justify-content: center;
  align-items: center;
}

.form-button-link, .line-button-link {
  display: block;
}

.btn-section,
.formbtn-section {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* 見出しスタイル */
h2 {
  font-size: 40px;
  font-weight: 500;
  text-align: center; 
  margin-top: 80px;
  font-family: "Noto serif JP";
  color: #254043;
}

h3 {
  font-size: 28px;
  font-weight: 500;
  text-align: center;
}

@media (max-width: 750px) {
  h2 {
    font-size: 30px;
  }
  
  h3 {
    font-size: 24px;
  }
}

/* CTA設定 */
.cta-area {
  position: relative;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  overflow: hidden;
  background-color: #fff; 
  text-align: center;
}

.cta-area img {
  margin: 0 auto;
  display: block;
  height: auto;
}

.ctabtn {
  max-width: 100%;
}

/* 共通セクションスタイル */
.method {
  text-align: center;
}

.method img {
  vertical-align: bottom;
}

.btnimg {
  display: block; 
  margin: 0 auto; 
  padding: 3%;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

/* 画像コンテナ */
.image-container {
  display: flex;
}

.image-container img {
  width: 50%; 
  height: auto; 
}

.image-container img + img {
  margin-left: 5px;
}

/* ボタンスタイル */
.linebutton {
  display: block;
  margin: 10px auto;
  padding: 10px 40px;
  font-size: 24px;
  color: #fff;
  font-family: 'Noto sans JP', sans-serif;
  text-align: center;
  text-decoration: none;
  background-color: #2EAAB2;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #00796b;
}

.boxtext {
  display: inline-block;
  font-size: 14px;
  color: #2EAAB2;
  border: 1px solid #2EAAB2; 
  border-radius: 3px;
  padding: 2px 5px;
}

/* Q&Aセクション */
.qanda_section {
  max-width: 750px;
  min-width: 375px;
  margin: 0;
  padding-top: clamp(27px, 7.33vw, 55px);
  text-align: center;
  padding-bottom: clamp(30px, 8vw, 60px);
}

.qanda_ruby {
  font-family: 'Noto Serif JP';
  font-size: clamp(20px, 3.87vw, 29px);
  margin: 0;
  font-weight: 400;
  color: #FFF;
}

.qanda__h2 {
  font-family: 'Noto Serif JP';
  font-size: 30px;
  font-weight: 400;
  color: #254043;
  margin: 0px;
}

.qanda_area {
  width: clamp(340px, 90.67vw, 680px);
  margin-left: auto;
  margin-right: auto;
  padding-top: clamp(40px, 2.67vw, 20px);
  padding-bottom: clamp(20px, 5.33vw, 40px);
  background-color: #C1E5E3;
  border-radius: clamp(0px, 0.67vw, 0px);
  overflow: hidden; 
}

.qanda_accordion {
  width: clamp(300px, 80vw, 600px);
  margin-top: clamp(10px, 2.67vw, 20px);
  margin-left: auto;
  margin-right: auto;
  background-color: #C1E5E3;
  border-radius: clamp(2px, 0.67vw, 5px);
  color: #254043;
  overflow: hidden; 
}

.qanda_summary {
  padding: 3% 2% 3% 4%;
  display: flex;
  width: 100%;
  align-items: center;
  position: relative;
  border-radius: clamp(1px, 0.67vw, 1px);
  color: var(--qa-q-text-red);
  font-family: 'ヒラギノ角ゴシック', 'Noto Sans JP';
  font-size: clamp(13px, 3.6vw, 27px);
  font-weight: 400;
  line-height: 1.2;
  cursor: pointer;
  text-align: justify;
}

.qanda_summary_top {
  display: inline-block;
  margin-top: clamp(-5px, -0.67vw, -1px);
  margin-right: clamp(6px, 1.73vw, 13px);
  color: #ffffff;
  font-family: 'Noto Sans JP';
  font-size: clamp(24px, 6.53vw, 49px);
  font-weight: 400;
}

.qanda_accordion .qanda_summary::-webkit-details-marker {
  display: none;
}

.qanda_accordion .qanda_summary::before,
.qanda_accordion .qanda_summary::after {
  padding-right: 10px;
  width: clamp(12px, 3.33vw, 25px);
  height: clamp(1px, 0.4vw, 3px);
  background-color: #ffffff;
  content: '';
}

.qanda_accordion .qanda_summary::before {
  position: absolute;
  right: 10%;
  top: 49%;
  transform: translateY(-50%);
  rotate: 90deg;
  transition: rotate 0.3s;
}

.qanda_accordion .qanda_summary::after {
  position: absolute;
  right: 9.8%;
  top: 50%;
  transform: translateY(-50%);
  transition: rotate 0.3s;
}

.qanda_accordion[open] .qanda_summary::before {
  top: 50%;
  rotate: 0deg;
}

.qanda_p {
  width: 100%;
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: clamp(15px, 4vw, 30px) clamp(16px, 4.27vw, 32px)
    clamp(20px, 5.33vw, 40px) clamp(16px, 4.27vw, 32px);
  color: #030200;
  background-color: #fff;
  font-family: 'ヒラギノ角ゴシック', 'Noto Sans JP';
  font-size: clamp(13px, 3.6vw, 27px);
  font-weight: 500;
  line-height: 1.423;
  text-align: justify;
  transition: transform 0.3s, opacity 0.3s, max-height 0.3s;
  border: 1px solid #DEF1F2;
  border-radius: 0 0 clamp(2px, 0.67vw, 5px) clamp(2px, 0.67vw, 5px);
  overflow: hidden;
}

.qanda_accordion[open] .qanda_p {
  transform: none;
  opacity: 1;
  max-height: 500px;
}

.qanda_p_top {
  display: inline-block;
  width: clamp(16px, 4.27vw, 32px);
  font-family: 'ヒラギノ角ゴシック', 'Noto Sans JP';
  font-size: clamp(24px, 6.53vw, 49px);
  font-weight: 400;
  vertical-align: top;
  color: #C1E5E3;
}

.qanda_p_text {
  display: inline-block;
  width: clamp(243px, 64.8vw, 486px);
  padding-top: clamp(5px, 1.33vw, 10px);
  margin-left: clamp(8px, 2.27vw, 17px);
  font-family: 'ヒラギノ角ゴシック', 'Noto Sans JP';
  font-size: clamp(13px, 3.6vw, 27px);
  font-weight: 400;
}

.qanda_p_red {
  color: #DD5188;
}

.accordion-header {
  cursor: pointer;
}

.accordion-icon {
  margin-right: 10px;
}

/* 店舗紹介 */
.toggle {
  display: none;
}

.Label {
  padding: 70% 0% 2% 2%;
  display: block;
  font-size: 20px;
  color: #254043;
  background: #C1E5E3;
}

.tennouji-bg {
  background: url('imgmachinepilates/ptennoji.webp') center center no-repeat;
  background-size: cover;
}

.nishitanabe-bg {
  background: url('imgmachinepilates/pnishitanabe.webp') center center no-repeat;
  background-size: cover;
}

.sakaisuji-bg {
  background: url('imgmachinepilates/psakaisuji.webp') center center no-repeat;
  background-size: cover;
}

.Label::after {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  -webkit-transform: rotate(45deg);
  position: absolute;
  top: calc(100% - 7%);
  right: 20px;
  transform: rotate(135deg);
}

.Label,
.content {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: all 0.3s;
}

.content {
  height: 0;
  margin-bottom: 10px;
  padding: 0 20px;
  overflow: hidden;
}

.toggle:checked + .Label + .content {
  height: auto;
  padding: 20px;
  transition: all .3s;
}

.toggle:checked + .Label::after {
  transform: rotate(-45deg) !important;
}

@media (max-width: 750px) {
  .Label {
    padding: 70% 0% 2% 2%;
    font-size: 16px;
  }
  
  .Label::after {
    top: calc(100% - 10%);
  }
}

/* 店舗紹介テーブル */
table {
  margin-bottom: 3%;
  font-size: 16px;
  border-spacing: 0;
  border-collapse: collapse;
}

table th, table td {
  border: solid 5px #fff;
  padding: 16px;
  line-height: 1.5;
  vertical-align: top;
  color: #040404;
}

th {
  text-align: center;
  background: #d6ebed;
}

/* フォーム */
.form {
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  padding: 20px 12px;
  margin-bottom: 40px;
  box-sizing: border-box;
}

.form__title {
  font-weight: bold;
  font-size: 24px;
  text-align: center;
  margin-top: 40px;
}

form {
  max-width: 500px;
  width: 100%;
  margin: 20px auto 0;
}

label {
  display: block;
  margin-bottom: 5px;
  color: #333333;
  text-align: left;
}

.required {
  font-size: 12px;
  color: white;
  background-color: red;
  padding: 6px;
  border-radius: 4px;
  margin-left: 16px;
}

input[type=text],
input[type=email],
input[type=tel],
input[type=date],
input[type=time],
select,
textarea {
  width: 95%;
  padding: 10px;
  margin: 5px 0 20px 5%;
  border: 1px solid #cccccc;
  border-radius: 4px;
  box-sizing: border-box;
}

input[type=submit] {
  width: 95%;
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

input[type=submit]:hover {
  background-color: #0056b3;
}

.date p {
  text-align: left;
}

.date label {
  font-size: 14px;
  margin-top: 20px;
}

.date input {
  margin-bottom: 0;
}

/* フッター */
footer {
  background-color: #ADDEE3;
  margin-top: 40px;
  padding-bottom: 120px;
  padding-top: 20px;
  text-align: center;
  width: 100%;
}

@media (min-width: 751px) {
  footer {
    max-width: 750px;
  }
}