/*====================
menu用 H2〜　
=====================*/

h2 {
  font-size: 22px;
  font-weight: bold;
  color: #393939;
  padding: 2em;
  margin-bottom: 2em;
  text-align: left;
  background-image: linear-gradient(90deg, #c1d3ff, #c7d4f7);
}
@media all and (max-width: 767px) {
  h2{
    font-size: 18px;
    margin-bottom: 0;
  }
}

h3 {
  color: #484c70;
  font-size: 20px;
  font-weight: bold;
  line-height: 2em;
  text-align: center;/* menu-regularではセンター配置に */
  }

 @media screen and (max-width: 767px) {
    h3{
    font-size: 18px;
    }
  }
  
/*====================
page menu　
=====================*/
section.hero {
    background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)),
                      url('../images/menu-lesson-img.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0; /* 背景を見せるために少し広めに */
    text-align: center;
}

.hero .sub-title {
    color: #d4a373; /* ゴールド系アクセント */
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .price-card.popular {
        transform: none;
    }
    .hero h1 {
        font-size: 1.4rem;
    }
}

/* ヒーローセクションの背景を薄くして文字を見やすくする */
section.hero {
    background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.8)), 
                      url('../images/menu-regular-imgtop1.png') !important;
    background-size: cover;
    background-position: center;
    padding: 120px 0;
}

.container-menu {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

/* ボタン */
.btn-primary {
    display: inline-block;
    background-color: #2c3e50;
    color: #fff;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #3f5b9d;
}

/* ヒーローセクション */
.menu-bg {
    background-color: #f2eccf70;
    padding: 50px;
}
.menu-bg2 {
    background-color: #c7d4f82e;
    padding: 50px;
}
.menu-bg3 {
    background-color: #ffffff2e;
    padding: 50px;
}
.menu-bg4 {
    background-color: #f2eccf70;
    padding: 50px;
}
@media screen and (max-width: 767px) {
  .menu-bg,.menu-bg2,.menu-bg3 {
    padding: 20px 20px 50px 20px;
  }
  .menu-bg4 {
    padding: 20px 8px 50px 8px;
  }
}

/* ポイントセクション */
.points {
    padding-top: 60px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.point-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.point-card .icon {
    font-size: 40px;
    margin-bottom: 15px;
}

/* 料金セクション */
#menu-regular-more {
    scroll-margin-top: 100px; /* ヘッダーの高さ分だけ余裕を持たせる */
}



/* レギュラーコースを少し大きく見せる */
@media (min-width: 768px) {
    .price-card.popular {
        transform: scale(1.05);
        z-index: 10;
        border: 3px solid #d4a373;
    }
}

.section-title {
    text-align: center;
   margin-bottom: 0;
        margin-top: 3em;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: flex-start;
    padding-top: 2em;
}

.price-card {
    background: #fff;
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #eee;
    position: relative;
}

.price-card.popular {
    border: 3px solid #ed7251;
    transform: scale(1.05);
}

.badge {
    background: #e76f51; /* オレンジを強めて注意を引く */
    color: #fff;
    padding: 5px 15px;
    font-weight: bold;
    border-radius: 20px;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
}


.price {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 20px 0;
}

.price span {
    font-size: 1rem;
}

.sale {
    color: #e63946;
    font-weight: bold;
    margin-bottom: 15px;
}

ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

ul li {
    padding: 8px 0;
    border-bottom: 1px dotted #ccc;
}

.btn-outline {
    display: inline-block;
    border: 2px solid #2c3e50;
    color: #2c3e50;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
}

/* 全体的な余白調整 */
.section-title {
    margin-top: 80px;
    margin-bottom: 40px;
    padding: 0; /* 既存のh2のpadding 2emが強すぎるためリセット */
    background: none; /* 既存のグラデーションをリセット */
    text-align: center;
}
/* --- 不備修正・PCレイアウト最適化 --- */

/* 1. 既存のh2設定をメニューページだけリセット */
.menu-page .section-title, 
main .section-title {
    /*background: linear-gradient(135deg, #e2eef7 0%, #bbdff9 100%); */
    background: linear-gradient(135deg, #f8e5e3 0%, #d2eaff 100%);
    padding: 0 !important;
    text-align: center !important;
    margin-top: 3em !important;
    color: #3a3a3a;
    height: 6em;
    line-height: 6em;
    margin-bottom: 0;
}

span.marker {
    background: linear-gradient(transparent 50%, #fff462 50%);
}

.line-h2 {
    line-height: 2;
}
.lesson-main-text {
    margin: 50px 0 50px 0;
    text-align: left;
    line-height: 2;
}
span.bold {
    font-weight: bold;
}

/* 各ボックス白bg */
.item-menu {
    display: flex;
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 1em;
    margin-bottom: 1em;
    flex-wrap: nowrap;
    align-items: center;
}

/* PCレイアウトの最適化 (1000px以上) */
@media screen and (min-width: 1000px) {
    /* 3つのカードをきれいに横並びにする */
    .grid, .price-grid {
        display: flex !important;
        justify-content: center;
        gap: 30px;
        grid-template-columns: none; /* grid指定を解除 */
    }

    .point-card, .price-card {
        width: 31%; /* 3カラムに固定 */
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
    }

    /* レッスンの特徴（丸い画像とテキスト）の並び */
    .item-menu {
        display: flex !important;
        align-items: center;
        text-align: left;
        padding: 30px;
        gap: 30px;
    }

    .item-img {
        flex-shrink: 0; /* 画像が縮まないように固定 */
    }

    .item-text {
        flex: 1;
    }
}

.point-text {
    font-weight: bold;
    border-bottom: 2px dashed #c7c7c7;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

/* 比較表  */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-bottom: 30px;
    table-layout: fixed;
}
.comparison-table th, .comparison-table td {
    border: 1px solid #2c3e50;
    padding: 15px 10px;
    text-align: center;
    font-size: 0.9rem;
}
.comparison-table th {
    background: #f8f9fa;
    color: #2c3e50;
}
.comparison-table td.highlight, .comparison-table th.highlight {
        border: 3px solid #d0b367;
    font-weight: bold;
}
.comparison-table th.width10{
    width: auto;
}
.comparison-table td.blue{
    background-color: #2c3e50;
    color: white;
}
@media all and (max-width: 767px) {
  /* 比較表のレスポンシブ対応 */
  .comparison-table th.width10{
     width: auto;
    }
    .comparison-table th, .comparison-table td {
    padding: 1em 0.45em;
    text-align: center;
    font-size: 0.7rem;
}
    .table-wrapper {
        overflow: hidden;
        border: 1px solid #f2eccf70;
        -webkit-overflow-scrolling: touch;
    }
    table{
        width: 100%;
        font-size: 0.9em;
        background-color: #ffffff;
        margin: 0 auto;
        border-collapse: collapse;
				
    th,td{
	    border: 1px solid #5f6e7e;
	    padding: 0.45em;
		text-align: center;
	    font-weight: normal;
	}
	th.highlight,td.highlight{
	    background: #fff7bb;
	    border: 2px solid #ffffff;
	    font-weight: bold;
	}
	td.blue{
	    background-color: #2c3e50;
	    color: white;
	}
}  
}



/* ステップ（流れ） */
    .flow-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    }
    .flow-item {
    background: #fff;
    padding: 20px;
    border-left: 5px solid #d4a373; /* 左側にアクセントライン */
    border-radius: 5px;
    }
    /* 
    .flow-item {
    position: relative;
    border-left: none; 
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(212, 163, 115, 0.1);
    margin-bottom: 30px;
    padding: 30px;
    }*/
    /*
.step-num {
    background: #d4a373;
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: absolute;
    top: -20px;
    left: 20px;
  }*/
    .step-num {
    font-size: 1.2rem;
    font-weight: bold;
    color: #d4a373;
    margin-right: 10px;
    }

/* FAQアコーディオン */
.faq-item {
    background: #fff;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.faq-item summary {
    padding: 3em 2em 3em 2em;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    position: relative;
    text-align: left;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
}
.faq-item[open] summary::after { content: '-'; }
.faq-item .answer {
    padding: 0 20px 20px;
    color: #555;
    line-height: 1.8;
}




/* 2. PCでの3列並びを確実に固定する */
@media screen and (min-width: 992px) {
    .grid, .price-grid {
        display: flex !important;
        justify-content: space-between !important;
        gap: 20px !important;
    }

    .point-card, .price-card {
        flex: 1; /* 均等な幅にする */
        width: calc(33.333% - 20px);
    }
    
    /* レッスン特徴の横並び */
    .item-menu {
        display: flex !important;
        flex-direction: row !important;
        text-align: left;
    }
}

/* 4. 不要な余白を削除（スマホ時） */
@media screen and (max-width: 767px) {
    h2 {
        padding: 1em !important; /* 全体h2の余白をスマホでは少し減らす */
    }
}

/*====================
 CTA float 2025
=====================*/
.common-fixed-btn .sp-foot-bottom0 {
  display: none;
} 
.close{
	position: absolute;
  left: 90px;
  top: 0.5em;
  z-index: 100;
	border-radius: 50%;
	border: 0;
	background-color: #abc2e8;
	color: #ffffff;
  width: 1.4em;
  height: 1.4em;
  font-size: 1.1em;
  text-align: center;
}

@media (max-width: 767px) {
  .sp-foot-bottom0{
   display: flex;
   bottom: 0;
   width: 100%;
   height: 60px;
   background-color: #6f695e;
   position: fixed;
   justify-content: center;
   align-items: center;
  }
  .common-fixed-btn{
    display:block;
    position: fixed;
    bottom: 4.5em;
    right: 5%;
    z-index: 2;
  }
  .sp-foot-bottom0-inner{
    width: 25%;
    text-align: center;
    color: #fff;
  }
  .sp-foot-bottom0-text{
    color: #fff;
    font-size: 0.7em;
    font-weight: 400;
    letter-spacing: .12em;
    margin-top: 0.3em;
  }

.bottom-nav-a{
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
}
.online-btn-top img {
  z-index: 1000;
  width: 120px;
  filter: drop-shadow(0px 0px 8px rgba(0, 0, 0, 0.2));
  animation: animation_puni-data-v-9795c524 2s infinite running;
}
@keyframes animation_puni-data-v-9795c524 {
0% {
    transform: scale(1, 1) translateY(0);
}
49% {
    transform: scale(1, 1) translateY(0);
}
50% {
    transform: scale(0.9, 1.05) translateY(0);
}
58% {
    transform: scale(1.1, 0.9) translateY(10%);
}
65% {
    transform: scale(1, 1) translateY(0);
}
73% {
    transform: scale(1.05, 0.95) translateY(5%);
}
80% {
    transform: scale(1, 1) translateY(0);
}
87% {
    transform: scale(1.02, 0.98) translateY(2%);
}
95% {
    transform: scale(1, 1) translateY(0);
}
100% {
    transform: scale(1, 1) translateY(0);
}
}
