/* --- 改行制御（スマホのみ有効） --- */
.sp-br {
  display: none;
}

.fo-aka {
color: #ED1C24;
  }

.fo-dai {
font-size: 2.2em;
  }

@media screen and (max-width: 767px) {
  .sp-br {
    display: inline;
  }
}

/* --- ヒーロー背景画像設定 --- */
.hero-section {
  position: relative;
  width: 100%;
  height: 120vh;
  overflow: hidden;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center; /* ←ここを追加！ */
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  }

/* --- コンテンツ配置 --- */
.hero--content {
  position: absolute;
  top: 5%;
  left: 7%;
  right: 10%;
  z-index: 1;
  color: #fff;
  text-align: left;
  width: auto;
  max-width: none;
}

@media screen and (max-width: 767px) {
  .hero--content {
    width: 98%;
    left: 1%;   /* 中央寄せしたい場合 */
    right: 1%;
  top: 5%;
  height: -webkit-fill-available;
  }

  .hero--content {
    transform: none !important;
  }

}

/* --- テキスト各行と帯 --- */
.hero--title .row > span {
  position: relative;
  display: inline-block;
  overflow: hidden;
  color: #fff;
  padding: 0.2em 0.6em;
}

/* グレーの帯 */
.hero--title .row > span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: -1;
  transition: width 0.8s ease-out;
}
.hero--title.is-show .row > span::before {
  width: 100%;
}

/* --- テキストスライドアニメーション --- */
/* 初期状態（非表示） */
.hero--title.animate-trigger > span,
.hero--title.animate-trigger > span > span {
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path 0.5s ease-out;
}

/* 表示状態 */
.hero--title.animate-trigger.is-show > span,
.hero--title.animate-trigger.is-show > span > span {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* 各行の遅延設定 */
.hero--title.animate-trigger > span:nth-of-type(1),
.hero--title.animate-trigger > span:nth-of-type(1) > span {
  transition-delay: 0s;
}
.hero--title.animate-trigger > span:nth-of-type(2),
.hero--title.animate-trigger > span:nth-of-type(2) > span {
  transition-delay: 1s;
}

/* --- 強調テキストスタイル --- */
.hero--title {
  font-size: 28px;
}
.hero--title .strong {
  color: #FFD700;
  font-weight: bold;
  font-size: 32px;
}

@media screen and (max-width: 767px) {
  .hero--title {
    font-size: 18px;
  }
  .hero--title .strong {
    font-size: 24px;
  }
}

/* --- 画像のふわっと出現アニメーション --- */
/* 初期状態（透明・下にずらす） */
.fade-in-target {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: 2s;
  position: relative;
  z-index: 2;
}

.fade-in-target.is-fade-in {
  opacity: 1;
  transform: translateY(0);
}


/* --- 行調整 --- */
.row {
  display: block;
  margin-bottom: 0;
}


.hero-image {
  width: 100%;
  max-width: 1080px;
  height: auto;
  display: block;
  margin: 0 auto 0; /* 中央寄せ + 上余白 */
}

/* --- section-feature --- */

.section-feature {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 1080px;
  padding: 2rem 1rem;
  gap: 2rem;
}

.column2-l,
.column2-r {
  flex: 1 1 500px;
  min-width: 300px;
}

.main-image-wrapper {
  position: relative;
  display: inline-block;
}

.corner-images {
  position: absolute;
  top: 0;
  right: 0;
}

.bottom-left-image {
  position: absolute;
  bottom: 0;
  left: 0;
}

.img-sub1,
.img-sub2 {
  max-width: 100%;
  height: auto;
}

.hero--title .row > span {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 0.2em 0.6em;
  color: #fff;
}

.hero--title .row > span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: -1;
  transition: width 0.8s ease-out;
}

.hero--title .row > span.dark-line::before {
  background-color: #222;
}

.hero--title.is-show .row > span::before {
  width: 100%;
}

.hero--title.animate-trigger > span,
.hero--title.animate-trigger > span > span {
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path 0.5s ease-out;
}

.hero--title.animate-trigger.is-show > span,
.hero--title.animate-trigger.is-show > span > span {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.hero--title {
  font-size: 24px;
  margin-bottom: 1rem;
  line-height: 1.8em;
}

@media screen and (max-width: 767px) {
  .section-feature {
    flex-direction: column;
  }
}

.section-feature p {
  font-size: 16px;
  line-height: 1.8em;
  width: 95%;
  max-width: 500px;
  margin: 0 auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  box-sizing: border-box;
}

/* fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.delay-1 {
  transition-delay: 0.3s;
}
.fade-in.delay-2 {
  transition-delay: 0.7s;
}
.fade-in.delay-3 {
  transition-delay: 1.1s;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* --- section-tsuyomi --- */


.section-tsuyomi ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 2rem auto;
  max-width: 1080px;
}

.section-tsuyomi li.tsuyomi-item {
  flex: 1 1 100%;
  max-width: 450px;
  box-sizing: border-box;
  background: #FFFDE1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tsuyomi-box {
  margin-top: 1rem;
  background: #FFFDE1;
  padding: 1rem;
  font-weight: bold;
  color: #000;
  border-left: 11pt solid;
}

.tsuyomi-box .strong {
  color: #ED1C24;
}

.tsuyomi-box.border1 { border-color: #92C41D; }
.tsuyomi-box.border2 { border-color: #00B2B3; }
.tsuyomi-box.border3 { border-color: #F08E94; }
.tsuyomi-box.border4 { border-color: #00A0E9; }
.tsuyomi-box.border5 { border-color: #EC664F; }

@media screen and (min-width: 901px) {
  .section-tsuyomi li.tsuyomi-item {
    flex: 1 1 calc(50% - 1rem);
  }
}

@media screen and (max-width: 900px) {
  .section-tsuyomi ul {
    flex-direction: column;
    align-items: center;
  }
  .section-tsuyomi li.tsuyomi-item {
    width: 98%;
  }
}

.tsuyomi-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.4s ease;
  will-change: opacity, transform;
}

.tsuyomi-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- section-midashi --- */


.section-midashi {
background: linear-gradient(50deg, #f7bab3, #f6f1cf);
text-align: center;
padding: 1px 0 20px;
}

.section-midashi h2{
font-size: 32px;
color: #750021;
}

@media screen and (max-width: 768px) {

.section-midashi {
padding: 1px 0 20px;
}

.section-midashi h2{
font-size: 22px;
}

}



/* --- section-kodawari --- */

.section-kodawari {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin: 2rem auto;
  max-width: 1080px;
  padding: 0 1rem;
}
.kodawari {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.kodawari-img {
  position: relative;
  width: 100%;
  max-width: 559px;
}

.kodawari-img {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.4s ease;
  will-change: opacity, transform;
}

.kodawari-img.is-visible {
  opacity: 1;
  transform: translateY(0);
}



.kodawari-image {
  width: 100%;
  height: auto;
  display: block;
}
.kodawari-overlay {
  position: absolute;
  top: 10%;
  left: 5%;
  right: 5%;
  background-color: rgba(176, 224, 59, 0.85);
  color: #fff;
  padding: 1.2rem;
  border-radius: 1rem;
  font-weight: bold;
  font-size: 1.1rem;
  box-sizing: border-box;
  z-index: 2;
}
@media screen and (max-width: 767px) {
  .kodawari-overlay {
    top: auto;
    bottom: 5%;
  }
}
@media screen and (min-width: 768px) {
  .kodawari {
    flex-direction: row;
    justify-content: center;
  }
  .kodawari-img {
    width: 100%;
  }
  .kodawari-overlay-left {
    left: -10%;
    right: auto;
    top: 25%;
  }
  .kodawari-overlay-right {
    right: -10%;
    left: auto;
    top: 25%;
  }
  .kodawari-overlay {
    font-size: 1.3rem;
    padding: 1.5rem;
  }
}



.review-container {
  background-color: #fff;
  border-radius: 1rem;
  width: 90%;
  max-width: 880px;
  margin: 3rem auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.review-box {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.review-img img {
  max-width: 100%;
  height: auto;
}
.review-text {
  flex: 1;
  text-align: center;
  color: #000;
}
.review-count {
  font-size: 1.5rem;
  font-weight: bold;
}
.review-number {
  font-size: 2.5rem;
  color: #ED1C24;
  display: block;
}
.review-date {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}
@media screen and (max-width: 767px) {
  .review-box {
    flex-direction: column;
    text-align: center;
  }
}

/* --- contact-form7-wrapper --- */

.contact-form7-wrapper {
  max-width: 720px;
  margin: 3rem auto;
  background-color: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-family: 'Helvetica Neue', sans-serif;
  color: #333;
}
.contact-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #B0E03B;
  text-align: center;
  margin-bottom: 1rem;
}
.contact-description {
  font-size: 1rem;
  text-align: center;
  margin-bottom: 2rem;
}
.contact-box input[type="text"],
.contact-box input[type="email"],
.contact-box input[type="tel"],
.contact-box textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
  box-sizing: border-box;
}
.contact-box label {
  font-weight: bold;
  display: block;
  margin-bottom: 0.3rem;
  color: #000;
  position: relative;
  padding-left: 4rem;
  text-align: left;
}
.contact-box label.required::before {
  content: "必須";
  position: absolute;
  left: 0;
  top: 0.1rem;
  background-color: orange;
  color: #fff;
  font-size: 0.65rem;
  padding: 0.2rem 0.4rem;
  border-radius: 0.3rem;
  font-weight: bold;
  line-height: 1;
}
.contact-box fieldset {
  border: none;
  padding: 0;
  margin-bottom: 1.5rem;
  text-align: left;
}
.contact-box fieldset legend {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #000;
  font-size: 1rem;
  padding-left: 4rem;
  position: relative;
}
.contact-box fieldset legend::before {
  content: "必須";
  position: absolute;
  left: 0;
  top: 0.1rem;
  background-color: orange;
  color: #fff;
  font-size: 0.65rem;
  padding: 0.2rem 0.4rem;
  border-radius: 0.3rem;
  font-weight: bold;
  line-height: 1;
}
.contact-box fieldset label {
  display: block;
  margin: 0.5rem 0;
  padding-left: 0;
  text-align: left;
}
.contact-box .wpcf7-submit {
  background-color: #B0E03B;
  color: #fff;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}
.contact-box .wpcf7-submit:hover {
  background-color: #9ace31;
}

/* --- section-jirei --- */


.jirei-container {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}

.jirei-midahi {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 0.5em 1em;
  border-radius: 5px;
  font-size: 1.2em;
  line-height: 1.4;
  font-weight: bold;
}

@media screen and (max-width: 600px) {
  .jirei-midahi {
    font-size: 1em;
    bottom: 10px;
    left: 10px;
    padding: 0.4em 0.8em;
  }
}

/* --- 会社概要 --- */

.company-profile {
  max-width: 900px;
  margin: 0 auto;
  padding: 2em;
  font-size: 16px;
  line-height: 1.8;
  background: #f9f9f9;
  border-radius: 8px;
}
.company-profile h2 {
  font-size: 1.8em;
  margin-bottom: 1em;
  border-bottom: 2px solid #333;
  padding-bottom: 0.2em;
}
.profile-block {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #ccc;
  padding: 0.5em 0;
}
.profile-block dt {
  width: 30%;
  font-weight: bold;
  color: #333;
}
.profile-block dd {
  width: 70%;
  margin: 0;
}
@media (max-width: 768px) {
  .profile-block dt,
  .profile-block dd {
    width: 100%;
  }
}


/* --- フッター追従 --- */


.footer_area {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.footer_area.visible {
  transform: translateY(0);
  opacity: 1;
}

.footer_area .footer_area_inner {
    position: relative;
    margin: 0px auto;
    padding: 10px 0 0;
	margin-right: 0px;
	text-align: center;
}
.footer_area .footer_area_inner .footer_area_inner_btn {
    padding: 11px 0;
    font-size: 20px;
    font-weight: bold;
    margin-left: 15px;
	line-height: 1.3;
    
}
.inquiry_btn {
    display: inline-block;
    padding: 0;
}
.inquiry_btn:link, .inquiry_btn:visited {
    color: #FFFFFF !important;
}
.footer_area_inner span{
	color: #fff;
}

.footbot_tel {
width: 100%;
min-height: 50px;
background-color: #ffda00;
}

.footbot_tel table{
margin: 0 auto;
}


.footbot_tel table td{
min-height: 55px;
vertical-align: middle;
font-size: 18px;
font-weight: bold;
}

.footbot_tel table td a{
color: #000;
font-size: 18px;
}

.footbot_line {
display: inline-block;
width: 50%;
min-height: 60px;
background-color: #00b900;
float: left;
}

.footbot_yoyaku {
display: inline-block;
width: 50%;
min-height: 60px;
background-color: #ff7bac;
}

@media screen and (max-width: 800px){

.footbot_tel table td,
.footbot_line,
.footbot_yoyaku
{
padding: 10px 0;
}

}

/* --- サンクスページ --- */

.thanks-container {
  max-width: 800px;
  margin: 4em auto;
  padding: 2em;
  background: #f7f7f7;
  border-radius: 10px;
  text-align: center;
  font-size: 1.1em;
  line-height: 1.8;
}
.thanks-container h1 {
  font-size: 2em;
  color: #333;
  margin-bottom: 0.5em;
}
.thanks-container p {
  margin-bottom: 1.5em;
}
.thanks-btn {
  display: inline-block;
  padding: 0.8em 2em;
  font-size: 1em;
  background-color: #C6EF45;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}
.thanks-btn:hover {
  background-color: #B0E03B;
}

/* --- ショップページの基本メニュー --- */


.shop-subnav {
  background: #f8f8f8;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.shop-subnav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-subnav li {
  flex: 1;
  text-align: center;
  border-right: 1px solid #ccc;
}

.shop-subnav li:last-child {
  border-right: none;
}

.shop-subnav a {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}

.shop-subnav a:hover {
  background: #e0e0e0;
  color: #000;
}

/* --- 口コミ --- */


.review-set {
width: 85%;
max-width: 880px;
margin: 20px auto;
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 20px;
  background-color: #fff;
}

.review-set2 {
width: 85%;
background: #fff8f0;
    padding: 24px;
    border: 1px solid #f1c48e;
    border-radius: 10px;
    max-width: 700px;
    margin: 40px auto;
    font-family: sans-serif;
    font-size: 16px;
    }


.review-header {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: #444;
}

.review-block {
  border-top: 1px dashed #ccc;
  padding-top: 12px;
  margin-top: 12px;
}

.review-block:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.review-block h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.stars {
  color: #f5b301;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.review-block p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* --- 口コミ --- */

.shop-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  padding: 24px 16px;
  background-color: #fff;
  max-width: 800px;
  margin: 0 auto;
}

.shop-content h2,
.shop-content h3,
.shop-content h4 {
  font-weight: bold;
  margin-top: 2em;
  margin-bottom: 0.5em;
  line-height: 1.4;
  color: #222;
}

.shop-content h2 {
  font-size: 1.5rem;
  border-left: 5px solid #f7931e;
  padding-left: 0.6em;
}

.shop-content h3 {
  font-size: 1.3rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.2em;
}

.shop-content p {
  margin-bottom: 1.2em;
}

.shop-content ul {
  margin-left: 1.5em;
  margin-bottom: 1.5em;
  list-style: disc;
}

.shop-content li {
  margin-bottom: 0.5em;
}

.shop-content strong {
  font-weight: bold;
  color: #f7931e;
}

.shop-content .cta-button {
  margin-top: 30px;
  text-align: center;
}

.shop-content .cta-button .btn {
  background: #f7931e;
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  display: inline-block;
  transition: background 0.3s;
}

.shop-content .cta-button .btn:hover {
  background: #a00;
}

ul.tag-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

ul.tag-list li {
  background-color: #f0f4f8;
  color: #333;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  white-space: nowrap;
  border: 1px solid #c0d2e0;
  transition: background 0.3s;
}

ul.tag-list li:hover {
  background-color: #dbe9f5;
}


/* --- フォーム全体のデザイン --- */
.wpcf7 form.cf7-review-form {
  background: #f9f9f9;
  padding: 24px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-family: sans-serif;
  font-size: 16px;
  line-height: 1.6;
  max-width: 700px;
  margin: auto;
}

.cf7-review-form h3 {
  margin-top: 40px;
  font-size: 20px;
  border-left: 5px solid #f7931e;
  padding-left: 10px;
  color: #333;
}

.cf7-review-form .form-group {
  margin-bottom: 30px;
  padding: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
}

.cf7-review-form .form-group h4 {
  margin-top: 0;
  font-size: 18px;
  color: #333;
  border-bottom: 1px solid #ddd;
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.cf7-review-form p {
  margin-bottom: 20px;
}

.cf7-review-form input[type="text"],
.cf7-review-form input[type="email"],
.cf7-review-form input[type="date"],
.cf7-review-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 15px;
}

.cf7-review-form textarea {
  min-height: 100px;
  resize: vertical;
}

.cf7-review-form input[type="submit"] {
  background-color: #f7931e;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cf7-review-form input[type="submit"]:hover {
  background-color: #a83838;
}

/* --- 星評価用スタイル --- */
.rating-group {
  display: inline-block;
  font-size: 28px;
  cursor: pointer;
  color: #ccc;
  user-select: none;
}
.rating-group .rating-star {
  margin-right: 5px;
  transition: color 0.2s ease;
}
.rating-group .rating-star.active,
.rating-group .rating-star.hover {
  color: #FFD700;
}

/* --- レビューボタンスタイル --- */


.review-submit-button {
  display: inline-block;
  background-color: #f7931e;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.review-submit-button:hover {
  background-color: #e27e00;
}

.cf7-estimate-form {
  background: #fff8f0;
  padding: 24px;
  border: 1px solid #f1c48e;
  border-radius: 10px;
  max-width: 700px;
  margin: 40px auto;
  font-family: sans-serif;
  font-size: 16px;
}

.cf7-estimate-form h3 {
  font-size: 20px;
  border-left: 5px solid #f7931e;
  padding-left: 10px;
  color: #333;
  margin-bottom: 20px;
}

.cf7-estimate-form p {
  margin-bottom: 20px;
}

.cf7-estimate-form input[type="text"],
.cf7-estimate-form input[type="email"],
.cf7-estimate-form input[type="tel"],
.cf7-estimate-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
}

.cf7-estimate-form input[type="submit"] {
  background-color: #f7931e;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cf7-estimate-form input[type="submit"]:hover {
  background-color: #e27e00;
}

/* 口コミフォーム全体の背景と枠線をオレンジに */
.wpcf7 form.cf7-review-form {
  background: #fff7ef; /* 薄いオレンジ背景 */
  border: 2px solid #f7931e; /* オレンジ枠線 */
  padding: 24px;
  border-radius: 10px;
  font-family: sans-serif;
  font-size: 16px;
  line-height: 1.6;
  max-width: 700px;
  margin: auto;
}

/* 各評価ブロック（.form-group）の枠もオレンジに統一 */
.cf7-review-form .form-group {
  margin-bottom: 30px;
  padding: 16px;
  border: 1px solid #f7931e;
  border-radius: 8px;
  background-color: #fff;
}

/* トップメッセージ全体 */
.top-message {
  background-color: #fffaf5;
  border: 2px solid #f7931e;
  border-radius: 12px;
  padding: 30px;
  margin: 40px auto;
  max-width: 880px;
  color: #333;
  line-height: 1.8;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* 見出し（大） */
.top-message h2 {
  font-size: 24px;
  color: #f7931e;
  margin-bottom: 20px;
  border-left: 6px solid #f7931e;
  padding-left: 12px;
}

/* 見出し（小） */
.top-message h3 {
  font-size: 20px;
  color: #444;
  margin-top: 30px;
  margin-bottom: 12px;
  border-bottom: 2px solid #f7931e;
  display: inline-block;
  padding-bottom: 4px;
}

/* 段落 */
.top-message p {
  margin-bottom: 20px;
  font-size: 16px;
}

/* 強調 */
.top-message strong {
  color: #f7931e;
  font-weight: bold;
}

/* リスト */
.top-message ul {
  padding-left: 20px;
  margin-bottom: 20px;
}
.top-message ul li {
  list-style: disc;
  margin-bottom: 10px;
  font-size: 16px;
}

/* スマホ対応（任意） */
@media screen and (max-width: 768px) {
  .top-message {
    padding: 20px;
    font-size: 15px;
  }
  .top-message h2 {
    font-size: 20px;
  }
  .top-message h3 {
    font-size: 18px;
  }
}

.sayu-block {
  display: flex;
  align-items: center; /* 縦中央揃え */
  justify-content: space-between;
  margin: 2rem 0;
  gap: 1.5rem;
}

.block-left,
.block-right {
  flex: 1;
}

.block-left img,
.block-right img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* スマホ時は縦並び */
@media screen and (max-width: 768px) {
  .sayu-block {
    flex-direction: column;
    text-align: center;
  }

  .block-left,
  .block-right {
    width: 100%;
  }
}

/* ==== Color Scheme ==== */
:root {
  --qa-primary: #f7bab3;  /* メインアクセント */
  --qa-bg: #f6f1cf;       /* 背景系 */
  --qa-text: #333333;
  --qa-border: #ef9f97;   /* 少し濃いめの境界色 */
  --qa-white: #ffffff;
}

/* ==== Layout ==== */
.qa-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  background: var(--qa-bg);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.qa-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  color: var(--qa-text);
  line-height: 1.3;
  text-align: center;
}

/* ==== QA Items ==== */
.qa-item {
  background: var(--qa-white);
  border: 2px solid var(--qa-primary);
  border-radius: 14px;
  margin: 1rem 0;
  overflow: clip;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.qa-item[open] {
  border-color: var(--qa-border);
  box-shadow: 0 6px 14px rgba(247,186,179,0.25);
}

/* summary をボタン風に */
.qa-q {
  list-style: none;         /* 既定の?マーカーを消す */
  cursor: pointer;
  position: relative;
  padding: 1rem 3.25rem 1rem 1.1rem;
  background: linear-gradient(0deg, #f7bab3 0%, #f8c7c1 100%);
  color: #612d28;           /* 読みやすい濃色 */
  font-weight: 700;
  line-height: 1.5;
  user-select: none;
}

/* + / ? アイコン */
.qa-q::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--qa-white);
  color: var(--qa-primary);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  border: 2px solid var(--qa-primary);
}

.qa-item[open] > .qa-q::after {
  content: "?";
  color: #b85f56;
  border-color: var(--qa-border);
}

/* キーボード操作の可視フォーカス */
.qa-q:focus-visible {
  outline: 3px solid #b85f56;
  outline-offset: 2px;
  border-radius: 12px;
}

/* 回答本文 */
.qa-a {
  padding: 1rem 1.1rem 1.2rem;
  background: linear-gradient(0deg, #fff 0%, #fff 65%, #fff8f7 100%);
  color: var(--qa-text);
  line-height: 1.9;
  font-size: 0.98rem;
}

.qa-a p {
  margin: 0.25rem 0 0.9rem;
}

.qa-a p:last-child {
  margin-bottom: 0.2rem;
}

.qa-a small {
  color: #666;
}

/* 追記文 */
.qa-note {
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  background: #fff5f4;
  border-left: 6px solid var(--qa-primary);
  border-radius: 10px;
  color: #4a4a4a;
  font-size: 0.96rem;
}

/* ==== Responsive ==== */
@media (min-width: 768px) {
  .qa-wrap {
    padding: 2.2rem 2rem 3rem;
  }
  .qa-q {
    padding: 1rem 3.5rem 1rem 1.25rem;
    font-size: 1.05rem;
  }
  .qa-a {
    font-size: 1rem;
  }
}


/* ==== Base Colors ==== */
:root {
  --flow-accent: #f7bab3;
  --flow-bg: #f6f1cf;
  --flow-text: #333;
  --flow-white: #fff;
}

/* ==== Wrapper ==== */
.flow-wrap {
  background: var(--flow-bg);
  padding: 2.5rem 1rem 3rem;
  border-radius: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.flow-title {
  text-align: center;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  margin-bottom: 2rem;
  color: var(--flow-text);
}

/* ==== Steps ==== */
.flow-steps {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.flow-step {
  flex: 1 1 22%;
  background: var(--flow-white);
  border: 2px solid var(--flow-accent);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.flow-img img {
  max-width: 140px;
  height: auto;
  margin: 0 auto 0.75rem;
  display: block;
}

.flow-step-title {
  font-size: 1.05rem !important;
  margin: 0.5rem 0 !important;
  color: #612d28 !important;
  width: 100% !important;
  padding: 0 !important;
}

.flow-step-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--flow-text);
}


/* ==== Responsive ==== */
@media (max-width: 768px) {
  .flow-steps {
    flex-direction: column;
    gap: 1.2rem;
  }
  .flow-step {
    flex: 1 1 100%;
    text-align: left;
    padding: 1.2rem;
  }
  .flow-img img {
    max-width: 120px;
    margin-bottom: 0.5rem;
  }
}

.anshin-block strong {
    font-size: 20px;
    color: #750021;
  }

/* 横スクロール対応 */
.custom-table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
}

/* テーブルデザイン */
.custom-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  border: 2px solid #f7bab3;
  font-size: 15px;
  background-color: #fff;
}

/* 月（th）のセル */
.custom-table th {
  background-color: #f7bab3;
  color: #333;
  padding: 12px 15px;
  text-align: left;
  width: 100px;
  white-space: nowrap;
  border: 1px solid #ddd; /* ←ここを修正 */
}

/* 内容（td）のセル */
.custom-table td {
  padding: 12px 15px;
  background-color: #f6f1cf;
  color: #333;
  border: 1px solid #ddd; /* ←tdも合わせて見た目を統一 */
  line-height: 1.6;
}

/* ホバー時の効果 */
.custom-table tr:hover td {
  background-color: #fde2e0;
}

/* ==== Area Section ==== */
.area-wrap {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 2rem 1.5rem;
  background: var(--flow-bg, #f6f1cf);
  border-radius: 16px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  text-align: center;
}

.area-title {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin-bottom: 1.5rem;
  color: var(--flow-text, #333);
}

.area-box {
  background: #fff;
  border: 2px solid var(--flow-accent, #f7bab3);
  border-radius: 12px;
  padding: 1.5rem 1rem;
}

.area-main {
  font-size: 1.25rem;
  font-weight: 700;
  color: #612d28;
  margin: 0 0 0.8rem;
}

.area-note {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

/* ==== Color Scheme ==== */
:root{
  --accent: #f7bab3;  /* ピンク */
  --paper:  #f6f1cf;  /* 淡いイエロー */
  --ink:    #333333;
  --ink-soft:#555;
  --brown:  #612d28;
  --white:  #ffffff;
}

/* ==== Base ==== */
.selfpay-wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  color: var(--ink);
}
.sec-title{
  text-align: center;
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  margin: 0 0 1.5rem;
  color: var(--ink);
  font-weight: 700;
}

/* ---- 1) Hero（自費治療専用） ---- */
.jihi-hero {
  background: var(--paper);
  border-radius: 16px;
  padding: 1.5rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
}
.jihi-hero-text h1 {
  margin: 0 0 .5rem;
  color: var(--brown);
  font-size: clamp(1.6rem, 3vw, 2rem);
}
.jihi-hero-lead {
  margin: 0;
  line-height: 1.7;
}
.jihi-hero-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  background: #fff;
}

/* ---- 2) Profile ---- */
.profile{
  margin-top: 2.5rem;
  background: var(--paper);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
}
.profile-grid{
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr 1.4fr;
}
.profile-photo img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  background: #fff;
}
.profile-photo figcaption{
  text-align: center;
  font-size: .95rem;
  color: var(--ink-soft);
  margin-top: .4rem;
}
.profile-name{
  margin: 0 0 .5rem;
  color: var(--brown);
  font-size: 1.3rem;
}
.profile-intro{
  margin: 0 0 1rem;
  line-height: 1.9;
}
.career-title{
  margin: 1rem 0 .4rem;
  font-weight: 700;
}
.career-list{
  margin: 0;
  padding-left: 1.2em;
}
.career-list li{ margin: .25rem 0; }

/* Bio details */
.bio{
  margin-top: 1rem;
  border: 2px solid var(--accent);
  border-radius: 12px;
  overflow: clip;
  background: #fff;
}
.bio-summary{
  list-style: none;
  cursor: pointer;
  padding: .9rem 1rem;
  font-weight: 700;
  background: linear-gradient(0deg,#f7bab3 0%,#f8c7c1 100%);
  color: var(--brown);
}
.bio-body{ padding: 1rem; line-height: 1.9; }

/* ---- 3) Pricelist ---- */
.pricelist{ margin-top: 2.5rem; }
.fee-note{
  text-align: center;
  margin-bottom: 1rem;
  background: #fff5f4;
  border-left: 6px solid var(--accent);
  border-radius: 10px;
  padding: .75rem 1rem;
}
.pricelist-grid{
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
.pricelist-card{
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0,0,0,.06);
  display: grid;
  grid-template-rows: auto 1fr;
}
.pricelist-img img{ width: 100%; height: auto; display: block; }
.pricelist-body{ padding: 1rem 1rem 1.2rem; }
.pricelist-name{ margin: 0 0 .3rem; font-size: 1.15rem; color: var(--brown); }
.pricelist-time{ margin: 0; color: var(--ink-soft); }
.pricelist-price{ margin: .2rem 0 .6rem; }
.pricelist-desc{ margin: 0; line-height: 1.8; }

/* ---- 4) Features (accordion) ---- */
.features{
  margin-top: 2.5rem;
  background: var(--paper);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
}
.qa-item{
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 14px;
  margin: 1rem 0;
  overflow: clip;
}
.qa-q{
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 1rem 3.25rem 1rem 1rem;
  background: linear-gradient(0deg,#f7bab3 0%,#f8c7c1 100%);
  color: var(--brown);
  font-weight: 700;
}
.qa-q::after{
  content:"+";
  position:absolute;
  right:1rem;
  top:50%;
  transform:translateY(-50%);
  width:2rem;
  height:2rem;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#fff;
  color:var(--accent);
  font-weight:800;
  border:2px solid var(--accent);
}
.qa-item[open] > .qa-q::after{
  content:"?";
  color:#b85f56;
  border-color:#ef9f97;
}
.qa-a{ padding: 1rem; }
.feat-inner{
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1.4fr;
  align-items: start;
}
.feat-img img{
  width:100%;
  height:auto;
  display:block;
  border-radius: 10px;
  background:#fff;
}
.feat-text p{ margin:0; line-height:1.9; }


/* ---- 6) CTA ---- */
.cta{
  margin-top: 2.5rem;
  background: var(--paper);
  border-radius: 16px;
  padding: 1.6rem 1.2rem 2rem;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
}
.cta-text{ margin: .2rem 0 1rem; }
.cta-actions{
  display:flex;
  gap:.8rem;
  justify-content:center;
  flex-wrap:wrap;
}
.btn{
  display:inline-block;
  padding:.9rem 1.2rem;
  border-radius: 999px;
  text-decoration:none;
  font-weight:700;
  border:2px solid var(--accent);
  background:#fff;
  color: var(--brown);
}
.btn:hover{ filter: brightness(0.98); }
.btn.tel{
  background: linear-gradient(0deg,#f7bab3 0%,#f8c7c1 100%);
  color: var(--brown);
}

/* ---- Responsive ---- */
@media (max-width: 960px){
  .jihi-hero{ grid-template-columns: 1fr; }
  .profile-grid{ grid-template-columns: 1fr; }
  .feat-inner{ grid-template-columns: 1fr; }
}
@media (max-width: 768px){
  .pricelist-grid{ grid-template-columns: 1fr; }
  .flow-steps{ flex-direction: column; }
  .flow-step{ text-align:left; }
  .flow-img img{ width:120px; margin-bottom:.4rem; }
}

/* 配色 */
:root {
  --cf-accent: #f7bab3;
  --cf-bg: #f6f1cf;
  --cf-text: #333;
  --cf-note: #555;
  --cf-brown: #612d28;
  --cf-white: #fff;
}

/* 枠 */
.contact-wrap{
  background: var(--cf-bg);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 6px 14px rgba(0,0,0,.06);
  color: var(--cf-text);
  max-width: 900px;
  margin: 0 auto 2rem;
}
.cf-title{
  text-align:center;
  margin:0 0 .5rem;
  color: var(--cf-brown);
  font-size: clamp(1.3rem,2.5vw,1.7rem);
}
.cf-lead{
  text-align:center;
  margin:0 0 1rem;
  color: var(--cf-note);
}

/* グリッド */
.cf-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}
.cf-col label{ display:block; }

/* フィールドセット */
.cf-fieldset{
  border: 2px solid var(--cf-accent);
  border-radius: 12px;
  padding: .9rem;
  margin: 1rem 0;
  background: var(--cf-white);
}
.cf-fieldset > legend{
  padding: 0 .4rem;
  color: var(--cf-brown);
  font-weight: 700;
}

/* 必須バッジ */
.req{
  display:inline-block;
  font-size: .82em;
  color:#fff;
  background: var(--cf-accent);
  padding: .06rem .4rem;
  border-radius: 999px;
  margin-left: .4rem;
}

/* CF7デフォルト要素の整形 */
.wpcf7-form label{
  font-weight: 600;
  color: var(--cf-text);
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="date"],
.wpcf7-form input[type="time"],
.wpcf7-form textarea,
.wpcf7-form select{
  width: 100%;
  border: 1.6px solid #ddd;
  border-radius: 10px;
  padding: .7rem .8rem;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus{
  outline: none;
  border-color: var(--cf-accent);
  box-shadow: 0 0 0 3px rgba(247,186,179,.25);
}

/* ラジオ・チェックの行間 */
.wpcf7-list-item{ margin-right: 1rem; }

/* 送信ボタン */
.cf-actions{ text-align:center; margin-top: 1rem; }
.wpcf7-form input[type="submit"]{
  appearance: none;
  border: 2px solid var(--cf-accent);
  background: linear-gradient(0deg,#f7bab3 0%,#f8c7c1 100%);
  color: var(--cf-brown);
  font-weight: 700;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
}
.wpcf7-form input[type="submit"]:hover{
  filter: brightness(.98);
}

/* エラーメッセージ */
.wpcf7 form .wpcf7-response-output{
  border-radius: 10px;
}
.wpcf7-not-valid-tip{
  color:#c0392b;
  font-size:.9em;
}

/* レスポンシブ */
@media (max-width: 768px){
  .cf-grid{ grid-template-columns: 1fr; }
}

/* ===== Piano Form base ===== */
:root {
  --bg-dark: #1a0b08;      /* 背景（濃い茶） */
  --text: #231815;         /* 文字色（濃いこげ茶） */
  --accent: #750021;       /* 強調（ワインレッド） */
  --grad-1: #5a2b00;       /* グラデ左 */
  --grad-2: #e6bc84;       /* グラデ中央 */
  --grad-3: #5a2b00;       /* グラデ右 */
  --card-bg: #fff;         /* 入力カード背景 */
  --line: #e9e4df;         /* 罫線 */
  --muted: #7a6d66;        /* 補助テキスト */
}

.piano-form {
  color: var(--text);
  background: linear-gradient(180deg, #fffdf6 0%, #fff 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.piano-form .form-intro {
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--muted);
}

.piano-form .req { color: var(--accent); font-weight: 700; }

/* 常に縦並び */
.piano-form .form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.piano-form .field { display: block; }

/* Labels & inputs */
.piano-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.piano-form .wpcf7-form-control,
.piano-form input[type="text"],
.piano-form input[type="tel"],
.piano-form input[type="email"],
.piano-form input[type="number"],
.piano-form textarea,
.piano-form select {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.5;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}

.piano-form textarea {
  min-height: 140px;
  resize: vertical;
}

.piano-form .wpcf7-radio {
  display: flex;
  gap: 18px;
}

.piano-form .wpcf7-radio input[type="radio"] {
  transform: translateY(1px);
  margin-right: 6px;
}

/* Validation messages */
.piano-form .wpcf7-form-control.wpcf7-not-valid {
  border-color: var(--accent);
  outline: 2px solid rgba(117,0,33,0.12);
}

.piano-form .wpcf7-not-valid-tip {
  color: var(--accent);
  font-size: 12px;
  margin-top: 6px;
}

.piano-form .wpcf7-response-output {
  border-radius: 10px !important;
  padding: 10px 14px !important;
}

/* Privacy */
.piano-form .privacy {
  background: #faf7f3;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

.piano-form .privacy-label {
  font-weight: 600;
}

.piano-form .privacy-note {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}

/* Submit button */
.piano-form .form-actions {
  margin-top: 16px;
  text-align: center;
}

.piano-form input[type="submit"] {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  background-image: linear-gradient(90deg, var(--grad-1), var(--grad-2), var(--grad-3));
  color: #fff;
  box-shadow: 0 6px 14px rgba(90,43,0,0.25);
  transition: transform .06s ease, box-shadow .2s ease, opacity .2s ease;
}

.piano-form input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(90,43,0,0.28);
  opacity: 0.95;
}

/* ==== はみ出し防止パッチ（CF7フォーム用） ==== */

/* 親枠の明示（必要なら） */
.piano-form {
  max-width: 880px;       /* 親コンテナがw880なら合わせる */
  margin: 0 auto;         /* 中央寄せ */
}

/* すべてを境界含めて幅計算（これが最重要） */
.piano-form, .piano-form * {
  box-sizing: border-box;
}

/* CF7のwrapやinput/textareaが横に伸び過ぎるのを抑制 */
.piano-form .wpcf7-form-control-wrap,
.piano-form input[type="text"],
.piano-form input[type="tel"],
.piano-form input[type="email"],
.piano-form input[type="number"],
.piano-form textarea,
.piano-form select {
  width: 100%;
  max-width: 100%;
  display: block;
}

/* グリッド/フレックスのはみ出し対策（縮まない要素がある場合） */
.piano-form .form-grid {
  min-width: 0;
}
.piano-form .field {
  min-width: 0;
}

/* 長い単語・プレースホルダーでの横スクロール防止 */
.piano-form,
.piano-form input,
.piano-form textarea,
.piano-form label {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* テーマ側が独自に input{width: calc(100% + ...);} 等を当てている場合の上書き */
.piano-form input[type="text"],
.piano-form input[type="tel"],
.piano-form input[type="email"],
.piano-form input[type="number"],
.piano-form textarea,
.piano-form select {
  width: 100% !important;        /* 既存の強い指定を潰す */
  max-width: 100% !important;
}

/* 画像・SVG・iframeなどが入った際の保険 */
.piano-form img,
.piano-form svg,
.piano-form iframe {
  max-width: 100%;
  height: auto;
}

/* 余白で実幅が880pxを超えるケースの緩和（任意） */
.piano-form {
  padding-left: 20px;
  padding-right: 20px;
}

.course-page {
  background-color: #fff; /* 白背景 */
  color: #000;
  line-height: 1.8;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  padding: 40px 20px;
  max-width: 880px;
  margin: 0 auto;
}

/* セクションタイトル */
.section-title {
  font-size: 1.6rem;
  color: #750021;
  border-bottom: 2px solid #750021;
  margin: 40px 0 20px;
  padding-bottom: 5px;
}

/* テーブル */
.course-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}
.course-table th,
.course-table td {
  border: 1px solid #750021;
  padding: 15px;
  vertical-align: top;
}
.course-table th {
  width: 25%;
  background-color: #f6f5e6;
  color: #750021;
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
}
.course-table td {
  background-color: #fff;
}

/* 料金 */
.price {
  color: #750021;
  font-weight: bold;
}

/* ボックス型コース */
.course-box {
  background-color: #f6f5e6;
  border: 1px solid #750021;
  padding: 20px;
  margin-bottom: 25px;
}

/* 注意書き */
.note-box {
  background: #fff4f4;
  border: 1px solid #750021;
  padding: 15px;
  margin: 30px 0;
  font-size: 0.95rem;
  color: #750021;
}

/* 支払い方法 */
.pay-title {
  font-size: 1.3rem;
  margin-top: 40px;
  color: #750021;
}


/* ===== 配色・ベース ===== */
:root{
  --accent:#750021;      /* 強調・罫線 */
  --box-bg:#f6f5e6;      /* ボックス背景 */
  --text:#000;
  --bg:#fff;
}

.music-classic-page{
  color:var(--text);
  background:var(--bg);
  font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
  line-height:1.9;
  letter-spacing:.02em;
  max-width:980px;
  margin:0 auto;
  padding:36px 16px 48px;
}

/* 視覚的に上品な見出し */
.m-title{
  font-size:1.5rem;
  color:var(--accent);
  border-bottom:2px solid var(--accent);
  padding-bottom:.4em;
  margin:40px 0 18px;
}
.m-sub{
  font-size:1.15rem;
  color:var(--accent);
  margin:0 0 .4em;
}
.m-section{ margin:28px 0; }

/* ボックス（コース風） */
.m-box{
  background:var(--box-bg);
  border:1px solid var(--accent);
  border-radius:12px;
  padding:16px 18px;
}

/* ===== ① 導線カード ===== */
.gate-cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
@media (max-width:880px){
  .gate-cards{ grid-template-columns:1fr; }
}
.gate-card{
  display:block;
  text-decoration:none;
  background:var(--box-bg);
  border:1px solid var(--accent);
  border-radius:14px;
  padding:16px 18px;
  transition:transform .12s ease, box-shadow .12s ease, background .2s ease;
  color:inherit;
}
.gate-card h3{
  margin:.1em 0 .35em;
  font-size:1.08rem;
  color:var(--accent);
}
.gate-card p{ margin:0; }
.gate-card:hover{
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(0,0,0,.06);
  background:#fff;
}

/* ===== ② 理由（リストの間隔調整） ===== */
.m-reason{ margin:18px 0 16px; }

/* ===== ③ 実績（カード風） ===== */
.m-result{
  border:1px solid var(--accent);
  border-radius:14px;
  overflow:hidden;
  margin:14px 0;
  background:#fff;
}
.result-title{
  margin:0;
  padding:12px 16px;
  font-size:1.08rem;
  color:var(--accent);
  background:var(--box-bg);
  border-bottom:1px solid var(--accent);
}
.result-body{ padding:14px 16px; }

/* アクセシビリティ用：導線の飛び先だけ用意（画面には出さない） */
.sr-only{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}
/* 余計な枠を出さない：見出し(h3)を持たない子要素は隠す */
.gate-cards > *:not(:has(h3)) {
  display: none !important;
}

/* 念のため、4つ目以降の要素は強制的に非表示（カードは3つ運用） */
.gate-cards > *:nth-child(n+4) {
  display: none !important;
}

/* 3枚とも必ず表示させる（強制上書き） */
.gate-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.gate-cards > a.gate-card { 
  display: block !important; 
  visibility: visible !important; 
  opacity: 1 !important;
}

/* 念のため、2枚目・3枚目も個別に強制表示 */
.gate-cards > a.gate-card:nth-child(2),
.gate-cards > a.gate-card:nth-child(3){
  display: block !important;
}

/* テーブル内のリスト体裁を上品に */
.course-table td ul,
.course-table td ol {
  margin: .4em 0 0;
  padding-left: 1.2em;
}
.course-table td li { margin: .25em 0; }

/* 年表（沿革）を落ち着いた見た目に */
.course-table .era-list {
  list-style: none;
  padding-left: 0;
  margin: .3em 0 0;
}
.course-table .era-list li {
  position: relative;
  padding-left: 1.2em;
}
.course-table .era-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: .15em;
  color: #750021;  /* 強調色に合わせる */
  font-size: .85em;
}

/* 電話番号の折返し防止 */
.course-table .nowrap { white-space: nowrap; }

/* 注記 */
.course-table .note {
  margin-top: .5em;
  font-size: .9em;
  color: #444;
}
