@charset "utf-8";

/*--------------------------------
ベース
---------------------------------*/
:root {
  --main: #fffbe8;
  --sub: #ffef97;
  --black: #333;
  --blue: #059bd7;
  --red: #ff0000;

  --f32: clamp(1.5rem, 1.116rem + 1.1vw, 2rem); /* 22px--32px */
  --f28: clamp(1.5rem, 1.396rem + 0.44vw, 1.75rem); /* 24px--28px */
  --f24: clamp(1.125rem, 0.97rem + 0.66vw, 1.5rem); /* 18px--24px */
  --f20: clamp(1.125rem, 1.073rem + 0.22vw, 1.25rem); /* 18px--20px */
  --f18: clamp(0.938rem, 0.86rem + 0.33vw, 1.125rem); /* 15px--18px */
  --f16: clamp(0.938rem, 0.912rem + 0.11vw, 1rem); /* 15px--16px */
  --f-note: clamp(0.813rem, 0.787rem + 0.11vw, 0.875rem); /* 13px--14px */
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  color: var(--black);
  font-style: normal;
  font-family: "Noto Sans JP", sans-serif;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

a {
  text-decoration: none;
  color: var(--black);
}

@media (hover: hover) {
  a:hover {
    opacity: 0.6;
    transition: opacity 0.35s ease;
  }
}

p,
a,
dt,
dd,
li,
span {
  font-size: var(--f20);
  line-height: 1.7;
}

h2 {
  font-size: var(--f28);
}

/*--------------------------------
共通のレイアウト
---------------------------------*/

.wrapper {
  display: flex;
  flex-direction: column;
}

.inner {
  margin: 0 auto;
  padding: 0 3%;
}
@media (min-width: 768px) {
  .inner {
    max-width: 1280px;
    padding: 0;
  }
}

.l-flex {
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .l-flex {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .sp-display {
    display: none;
  }
}

/*--------------------------------
header
---------------------------------*/

/* ヘッダー全体を横並び・両端揃えにする */
.header__inner {
  padding: 13px 10px;
  display: flex;               /* 追加：横並び */
  justify-content: space-between; /* 追加：両端に離す */
  align-items: center;         /* 追加：上下の中央で揃える */
}

/* 既存の「a」の指定を、「a.header__logo」に限定する */
.header__inner a.header__logo {
  display: block;
  width: 140px;
}
@media (min-width: 768px) {
  .header__inner a.header__logo {
    width: 200px;
  }
}
.header__inner a.header__logo img {
  width: 100%;
}

/* ▼ここから下を追加：ログアウトボタンのデザイン */
.header__logout-btn {
  display: inline-block;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background-color: #666;
  border-radius: 4px;
  text-decoration: none;
  width: auto; /* 念のため幅を自動に戻す */
}

.header__logout-btn:hover {
  opacity: 0.7;
}

@media screen and (max-width: 767px) {
  .header__logout-btn {
      padding: 6px 12px;
      font-size: 11px;
  }
}

/*--------------------------------
mainvisual
---------------------------------*/

.mainvisual {
  background-color: var(--main);
  border-top: solid 20px #ffef97;
  border-bottom: solid 20px #ffef97;
}
@media (min-width: 768px) {
  .mainvisual {
    border-top: solid 28px #ffef97;
    border-bottom: solid 28px #ffef97;
  }
}

/*--------------------------------
entry 
---------------------------------*/

.entry__inner {
  margin: 40px auto;
}
@media (min-width: 768px) {
  .entry__inner {
    max-width: 1080px;
    padding: 0 2%;
    margin: 80px auto;
  }
}

.entry__title {
  width: 100%;
  color: var(--blue);
  border-bottom: solid 2px #059bd7;
  margin-bottom: 20px;
}
@media (min-width: 768px) {
  .entry__title {
    margin-bottom: 32px;
  }
}

.entry__text {
  padding: 0 5%;
  margin-bottom: 1rem;
}

.entry__text:last-child {
  margin-bottom: 3rem;
}

.entry__text.small-txt {
  font-size: var(--f16);
}

/*--------------------------------
prize
---------------------------------*/

.prize {
  background-color: var(--main);
}

.prize__inner {
  padding: 40px 3%;
}
@media (min-width: 768px) {
  .prize__inner {
    max-width: 1080px;
    padding: 80px 2%;
  }
}

.prize__title {
  text-align: center;
}

.prize__title img {
  width: clamp(136px, 30%, 200px);
}

.prize__lead {
  font-size: var(--f28);
  text-align: center;
}

.prize__lead span {
  font-size: clamp(2.25rem, 2.146rem + 0.44vw, 2.5rem);
  font-weight: bold;
  color: var(--red);
}

.prize__content {
  margin-top: 24px;
}
@media (min-width: 768px) {
  .prize__content {
    margin-top: 48px;
  }
}

/*--------------------------------
gift
---------------------------------*/

.gift-wrap {
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}
@media (min-width: 768px) {
  .gift-wrap {
    gap: 3%;
    margin-bottom: 28px;
  }
}

.gift {
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 12px;
}

.gift--column {
  flex-direction: column;
}

.gift--row {
  gap: 10%;
  margin-bottom: 16px;
}
@media (min-width: 768px) {
  .gift--column {
    width: 45%;
  }

  .gift--row {
    margin: 0 3.5%;
    margin-bottom: 28px;
  }
}
@media (max-width: 435px) {
  .gift--row {
    gap: 5%;
  }
}

.gift__label {
  background-color: var(--sub);
  border-radius: 50%;
  padding: 6px 16px;
  font-size: var(--f28);
  font-weight: 600;
}
@media (min-width: 768px) {
  .gift__label {
    padding: 8px 28px;
  }
}

.gift__img {
  padding: 16px 5%;
}

.gift__name-wrap {
  display: flex;
  align-items: center;
}

.gift__logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-right: 5px;
}

.gift__name {
  font-size: var(--f24);
  text-align: center;
}

.gift__txt-wrap {
  margin: .9rem 1.3rem;
}

.gift__txt { 
  font-size: var(--f18);
} 

.gift__note { 
  text-align: end; 
  font-size: var(--f-note);
}

.gift__name .large-txt,
.gift__win {
  font-size: var(--f32);
  font-weight: bold;
}

.gift--column .gift__win { 
  margin-top: auto; 
}

.gift__win .small-txt {
  font-size: var(--f24);
  font-weight: normal;
  white-space: nowrap;
}
@media (max-width: 430px) {
  .gift--row .gift__name,
  .gift--row .gift__win .small-txt {
    font-size: 16px;
  }
}

.prize__note {
  margin: 0 3.5%;
  font-size: var(--f16);
}

.prize__link {
  margin-left: 5px;
  border-bottom: 1px solid currentColor;
  color: var(--blue);
  line-height: 1.1;
  cursor: pointer;
}

/* モーダル */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}

.modal.is-active {
  opacity: 1;
  visibility: visible;
}

.modal__bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.modal__content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.modal__img {
  width: 100vw;
  height: auto;
}
@media (min-width: 768px) {
  .modal__img {
    width: auto;
    height: 90vh;
  }
}

.modal__close {
  position: absolute;
  top: -60px;
  right: 0;
  color: #fff;
  font-size: 50px;
  cursor: pointer;
}

/*--------------------------------
btn
---------------------------------*/

.btn-wrap {
  margin: 54px auto 96px;
}
@media (min-width: 768px) {
  .btn-wrap {
    max-width: 1280px;
    margin: 108px auto 160px;
  }
}

.btn {
  display: block;
  width: 300px;
  margin: 0 auto;
  padding: 15px;
  border-radius: 20px;
  box-shadow: 2px 2px 6px 0px rgba(0, 0, 0, 0.45);
  color: white;
  font-size: var(--f24);
  font-weight: bold;
  text-align: center;
}
@media (min-width: 768px) {
  .btn {
    width: clamp(300px, 35%, 400px);
  }
}

.btn--apply {
  background-color: #0799d8;
  margin-bottom: 16px;
}
@media (min-width: 768px) {
  .btn--apply {
    margin-bottom: 32px;
  }
}

.btn--signup {
  background-color: #e96c67;
}

/*　ボタンのアニメーション　*/
.btn-animation {
  animation: dokundokun 2200ms ease infinite; /*1300*/
}

@keyframes dokundokun {
  0% {
    transform: scale(1);
  }

  15% {
    transform: scale(1.05);
  }

  30% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.05);
  }

  70% {
    transform: scale(1);
  }
}

/* フォーム下部のログアウトエリア */
.logout-block {
    margin: 40px auto 60px;
    padding: 0 20px;
    text-align: center;
    max-width: 600px;
}

.logout-block__text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333;
    text-align: left; /* 文章が2行になる場合は左寄せの方が読みやすいため */
}

.logout-block__btn {
    display: inline-block;
    padding: 10px 40px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background-color: #666;
    border-radius: 30px; /* メインボタンに合わせて丸みを持たせる */
    text-decoration: none;
    transition: opacity 0.3s;
}

.logout-block__btn:hover {
    opacity: 0.7;
}

/* スマホ表示時の微調整 */
@media screen and (max-width: 767px) {
    .logout-block {
        margin: 30px auto 40px;
    }
    .logout-block__text {
        font-size: 12px;
    }
    .logout-block__btn {
        padding: 8px 30px;
        font-size: 13px;
    }
}

/*--------------------------------
選べる４つのコース
---------------------------------*/

.course {
  margin-bottom: 40px;
}
@media (min-width: 768px) {
  .course {
    margin-bottom: 108px;
  }
  .course__inner {
    max-width: 840px;
  }
}

.content__head__title {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--black);
  font-size: 20px;
}
@media (min-width: 768px) {
  .content__head__title {
    margin-bottom: 40px;
    line-height: 1.3;
  }
}

.component-text p {
  font-size: var(--f16);
  line-height: 2;
}

.content__block {
  margin-top: 20px;
}
@media (min-width: 768px) {
  .content__block {
    margin-top: 40px;
  }
}

.courses__table {
  font-weight: bold;
  overflow: auto;
}

.courses__table table {
  width: 840px;
}

.courses__table th {
  background: #275b9f;
  color: #fff;
  font-weight: normal;
  line-height: 1.3;
  padding: 20px 10px;
  vertical-align: middle;
}

.courses__table th.-relative {
  position: relative;
}

.courses__table th.-relative span {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #ff4800;
  font-size: 12px;
  -webkit-transform: translateY(-120%);
  transform: translateY(-120%);
}

.courses__table td {
  text-align: center;
  vertical-align: middle;
  padding: 15px 10px;
  line-height: 1.2;
  position: relative;
}

.courses__table td::after {
  content: "";
  display: block;
  position: absolute;
  background: #d9d9d9;
  height: 1px;
  left: 10px;
  right: 10px;
  bottom: 0;
}

@media screen and (max-width: 749px) {
  .courses__table td img {
    width: 20px;
  }
}

.courses__table small {
  font-weight: normal;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.courses__price {
  color: #275b9f;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.scroll-announce {
  text-align: center;
  color: #f44336;
  font-weight: 700;
  font-size: min(3.58977vw, 14px);
  margin-bottom: 4px;
}

@media (min-width: 1200px) {
  .scroll-announce {
    display: none;
  }
}

.courses__note {
  font-size: 14px;
  color: #555;
  margin-top: 8px;
  margin-left: 8px;
}

.fixed-column {
  position: sticky !important;
  left: 0;
  background-color: white;
  z-index: 5;
}

/*--------------------------------
info
---------------------------------*/

.info {
  margin-bottom: 48px;
}

.info__inner {
  width: 90%;
  margin: 0 auto;
  border: 1px solid var(--black);
}
@media (min-width: 768px) {
  .info__inner {
    width: 500px;
  }
}

.info__text {
  width: fit-content;
  margin: 0 auto;
  padding: 32px 4px 32px 8px;
  font-size: var(--f16);
}

/*--------------------------------
footer
---------------------------------*/

.footer__inner {
  padding: 10px 0;
  text-align: center;
}

.footer__copyright {
  font-size: 12px;
}

/*--------------------------------
追加項目(terada)
---------------------------------*/
.hidden {
  display: none !important;
}

.exclude-text{
  text-align: center;
  margin: 20px auto;
  border: 2px solid;
  padding: 15px;
  word-break: keep-all;
  width: fit-content;
  font-size: var(--f24);
}

.address{
  max-width: 800px;
  /*width: fit-content;*/
  margin: 0 auto;
  padding: 20px;
}

.piano-id-modal-ver- input{
  width: 200px !important;
}

input{
  width: 300px !important;
}

/* 親ページのCSSファイル、または <style> タグ内に記述 */
#piano-id-iframe-wrapper button.btn.prime t {
    display: none !important;
}
#piano-id-iframe-wrapper button.btn.prime::after {
    content: "応募する" !important;
}
