@charset "utf-8";
/*
body {
  font-family: "Noto Sans JP", sans-serif;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.8s ease;
}

body.is-loaded {
  opacity: 1;
  transform: translateY(0);
}

body.is-leaving {
  opacity: 0;
}
  */
:root {
  /* ヘッダー背景のカラー定義*/
 /*--header-background-color: #fcf8f8;*/
  --header-background-color: #ffe4e9;
  --header-background-lighter: #fffbfe;
/*ヘッダーサイトメニューのカラー定義*/
  --header-site-menu-background-color: #fbd8e4;
  --header-site-menu-text-color:#ee63bb;
  --header-site-menu-hover-color: #97266d; /* ヘッダーサイトメニューのホバー時のカラー */
  /* フッター背景のカラー定義*/
  /*--footer-background-color: #333333;*/
  --footer-background-color:#ffe4e9;
  --footer-background-lighter: #fffbfe;
  /* メインカラー定義 */
  --authenticated-text-color: #ec4ac4; /* 認証済みのテキストカラー */
  --main-text-color: #333333;
  --form-label-color: #333333; /* フォームラベルのテキストカラー */
  --label-accent-color: #97266d; /* ラベルのアクセントカラー */
  --contact-accent-color: #333333; /* お問い合わせのアクセントカラー */
  --contact-radio-color: #97266d; /* お問い合わせのラジオボタンのカラー */
  /* 背景のカラー定義 */
  --login-box-color: #ffe4e9;
  --base-background-color:#fcf8e6;
  --base-background-lighter:#FDF1F3;
  --menu-icon-color: #333; /* 通常は黒系 */
  --main-bg: #fff;
  --accent: #e38ca9;
  --overlay-bg: rgba(255, 192, 203, 0.3);
  --button-bg: #f6e16e; /* ボタンの背景色 */
  --button-text: #ec4ac4; /* ボタンのテキストカラー */
  --button-hover-bg: #e38ca9; /* ボタンのホバー時の背景色 */
  --button-hover-text: #fff;
  --section-background-color: #f9e0e8; /* 桜色の背景 */
  --section-wrapper-bg: rgba(255, 255, 255, 0.8);
  --text-input-bg-color:#FCE8ED; /* テキスト入力の背景色 */
  --text-input-border-color: #c0bdbd; /* テキスト入力のボーダーカラー */
  --text-input-error-color: #eb4f32; /* テキスト入力のエラー色 */
  --text-input-placeholder-color: #d6d2d2; /* テキスト入力のプレースホルダーカラー */
  --text-input-focus-border-color: #97266d; /* テキスト入力のフォーカス時のボーダーカラー */
  --text-input-focus-bg-color: #fff; /* テキスト入力のフォーカス時の背景色 */
  --text-input-error-bg-color: #ffe4e9; /* テキスト入力のエラー時の背景色 */
  --focus-border-color: #FFDAC1; /* フォーカス時のボーダーカラー */
  --music-submenu-bg:white;/* 音楽サブメニューの背景色 */
  --music-submenu-text-color: #333; /* 音楽サブメニューのテキストカラー */
  --music-submenu-hover-bg: #ffe4e9;
  --music-submenu-hover-text: #000; /* 音楽サブメニューのホバー時のテキストカラー */
  --musicSchool-text-color: #333; /* 音楽教室のテキストカラー */
  --musicSchool-title-color: #97266d; /* 音楽教室のタイトルカラー */

  --about-profile-bg: #fbd8e4; /* Aboutページのプロフィール背景色 */
  --update-member-bg: #fbd8e4; /* 会員情報更新ページの背景色 */
  --about-profile-text-color: #333; /* Aboutページのプロフィールテキストカラー */
  --update-member-read-color:#194ce6 ;/* 会員情報更新ページのテキストカラー */
  --update-mail-bg: #fbd8e4; /* メールアドレス変更ページの背景色 */

  --booklesson-text-color: #333; /* レッスン予約ページのテキストカラー */
  --update-mail-text-color: #333; /* メールアドレス変更ページのテキストカラー */
  --text-color: #333;/*lightモード＆ダークモード共通テキストカラー*/
  --news-text-color: #97266d; /* お知らせページのテキストカラー */

  --story-section-bg: #f9e7ee; /* ストーリーセクションの背景色 */
  --booklesson-background-color: #f9e0e8; /* 桜色の背景 */
  --booklesson-header-background-color: #fcf8e6;
  --news-background-color: #f9e0e8; /* 桜色の背景 */
   --news-text-color: #df2660; /* お知らせページのテキストカラー */
}

@media (prefers-color-scheme: dark) {
  :root {
  /*  --header-background-color:  #333333;*/
    --main-bg:#181818/* #373b38*/;

    --accent: #ff99bb;
    --overlay-bg: rgba(50, 50, 50, 0.5);


    --menu-icon-color: #333; /* 通常は黒系 */

    --base-background-color: #181818/*#2c2c2c*/;
    /*--base-background-lighter: #2c2c2c;*/
    --main-text-color: white;
    --label-accent-color: #e06c9f;
   /* --contact-accent-color: #f0f0f0;*/
    --menu-icon-color: #0c0c0c;

    --music-submenu-bg:#333;/* 音楽サブメニューの背景色 */
    --music-submenu-text-color:white ;/* 音楽サブメニューのテキストカラー */
    --musicSchool-text-color:white; /* 音楽教室のテキストカラー */
    --update-member-read-color:white; /* 会員情報更新ページのテキストカラー */
    --news-text-color: #df2660; /* お知らせページのテキストカラー */
   /*  --news-background-color: #181818;*/
  /*追加*/
    --contact-accent-color: #f2f2f2;

    --text-input-border-color: #555;
    --section-background-color: #242424;

    --button-hover-bg: #d96f9a;
    --button-hover-text: #fff;
  }
}

*,
::before,
::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

ul,
ol {
    list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

body {
  font-family: "Noto Sans JP", sans-serif; /*sans-serif;*/
  font-size: 16px;
  color:rgb(59, 47, 47);
  line-height: 1;
  background-color: var(--base-background-color);

}

img {
    max-width: 100%;
}

.header-inner {
  max-width: 100%;
  /*max-width: 1200px;*/
  height: 150px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  /*color: #fff;*/
  background-color: var(--header-background-color);
  color: var(--label-accent-color);
  /*font-size: 14px;*/
   overflow: visible;
}

.header-logo {
  display: block;
  /*max-height: 170px;*/
  /*border-radius: 20%;*/
    width: 290px;
    max-width: 100%;
    height: auto;
    margin-top: 25px;
  position: relative;
    z-index: 2;
}

.toggle-menu-button {
  display: none;
  width: 44px;
  height: 34px;
  position: relative;
  background-color: #fdebf0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.toggle-menu-button::before,
.toggle-menu-button::after,
.toggle-menu-button span {
  content: '';
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--menu-icon-color);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.toggle-menu-button span {
  top: 50%;
  transform: translateY(-50%);
}

.toggle-menu-button::before {
  top: 8px;
}

.toggle-menu-button::after {
  bottom: 8px;
}

.site-menu ul {
    display: flex;
}

.site-menu ul li {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    margin-left: 20px;
    margin-right: 20px;
    position: relative;
    z-index: 2;
}
.nav {
  position: relative;
  overflow: visible;
}

.nav a {
  position: relative;
  display: inline-block;
  padding: 10px 15px;
}

/* ガイド */
.nav a::after {
  content: attr(data-guide);
  position: absolute;
  top: -40px; /* ←ここが神修正 */
  left: 50%;
  transform: translateX(-50%);

  background: #333;
  color: #fff;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;

  opacity: 0;
  transition: 0.3s;
  white-space: nowrap;
  z-index: 9999;
}

.nav a:hover::after {
  opacity: 1;
  top: -50px;
}
.footer {

    /*color: #fff;*/
    background-color: var(--footer-background-color);
    /*background-color: var(--base-background-color);*/
    padding-top: 50px;
    padding-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--label-accent-color);
    font-size: 14px;

}

.footer-logo {
    display: block;
    width: 235px;
    margin-top: 25px;
  position: relative;
    z-index: 2;

}

.copyright {
    font-size: 14px;
    font-weight: bold;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.loadingMessage {
  display: none;
  font-size: 16px;
  color: #2d2d2d;
  margin-top: 10px;
  text-align: center;
  position: relative;
    z-index: 2;
  }


/* =============================
   ボタン共通
   ============================= */
.submit-button {
   background-color: var(--button-bg);
    color: var(--button-text);
    display: inline-block;
    min-width: 180px;
    max-width: 220px;
    line-height: 48px;
    border-radius: 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Hover */
.submit-button:hover {
    background-color: var(--button-hover-bg);
    color: var(--button-hover-text);
    text-decoration: none;
}

/* Active */
.submit-button:active {
  transform: scale(0.97);
}

/* Disabled */
.submit-button:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.9;
  filter: brightness(0.95);
}

/* Loading state */
.btn-text,
.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-loading {
  display: none;
}

.btn-loading::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.submit-button:disabled .btn-text {
  display: none;
}

.submit-button:disabled .btn-loading {
  display: inline-flex;
}

/* =============================
   Error 状態
   ============================= */
.submit-button.is-error {
  background-color: #e74c3c;
}

.submit-button.is-error:hover {
  background-color: #c0392b;
}
/**/
#loading {
  position: fixed;
  inset: 0;
  background: white;
  opacity: 0;
  transition: 0.4s;
  pointer-events: none;
}

#loading.active {
  opacity: 1;
}
/* =============================
   Shake Animation
   ============================= */
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.4s;
}


/* 処理中ポップアップのスタイル */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fbd0d0;
  padding: 20px 40px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  text-align: center;
  border-radius: 8px;
}

.popup.hidden {
  display: none;
}

/* スピナーアニメーション */
.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  border: 4px solid #ccc;
  border-top: 4px solid #e762b9;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.loading-overlay.show {
  opacity: 1;
}

.loading-box {
  background: #fff;
  padding: 40px 50px;
  border-radius: 20px;
  text-align: center;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}







@media (max-width:800px) {
  main.common-main {
    padding-top: 55px;
  }
    .header-logo {
        width: 100px;
        height: auto;
        margin-top: 0;
    }
    .toggle-menu-button {
        display: block;
        margin-right: 10px;
    }
    .site-menu ul {
        display: block;
        text-align: center;
    }
    .site-menu li {
        margin-top: 20px;
    }
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 95px;
        z-index: 10;
        box-shadow: 0 3px 6px rgba(0,0,0,0.1);

    }

    .header-inner {
        display: flex;
        justify-content: space-between;
        padding-left: 20px;
        padding-right: 20px;
        height: 100%;
        position: relative;
        align-items: center;
    }

    .header-site-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        color: var(--header-site-menu-text-color);
        background-color:rgba(255,228,233,0.96);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        padding-top: 30px;
        padding-bottom: 30px;
        display: none;
        z-index: 15;
    }
    .header-site-menu.is-show {
        display: block;
    }


    .footer-logo {
        margin-top: 60px;
    }
    .copyright {
        margin-top: 60px;
    }
}




