/* ===== MUSIC LESSON PORTAL 全ページ共通（上・下・広告・文字）=====
   色: 赤 #8b0000／ベージュ #f5f1ea／文字 #333／濃い灰 #2b2b2b
   トップ（css/top.css）と講師ページ（instructors/style.css）は、この後に読み込む */
* {
  box-sizing: border-box
}

html {
  font-size: 62.5%
}

/* 手本 tonozuka.net から持ってきた部品（rem）用。本文は px */
body {
  margin: 0;
  font-family: "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Sans", sans-serif;
  color: #333;
  font-size: 15px;
  line-height: 1.9;
  background: #fff
}

a {
  color: inherit
}

a:hover {
  opacity: .8;
  transition: opacity .2s
}

/* マウス: 少し薄く（拡大しない） */
/* 出る動き（js/efct.js）＝ tonozuka.net（手本 music_school の style.css「efct」）を土台に、11/9の指示で時間を20%短縮。箱 .js-efct が画面に入ると中の物が 01→04 の順に出る */
.js-efct .efct-bottom01,
.js-efct .efct-bottom02,
.js-efct .efct-bottom03,
.js-efct .efct-bottom04 {
  transform: translateY(50px);
  opacity: 0
}

.js-efct .efct-bottom01 {
  transition: transform .8s linear .16s, opacity .8s linear .16s
}

.js-efct .efct-bottom02 {
  transition: transform .8s linear .48s, opacity .8s linear .48s
}

.js-efct .efct-bottom03 {
  transition: transform .8s linear .8s, opacity .8s linear .8s
}

.js-efct .efct-bottom04 {
  transition: transform .8s linear 1.12s, opacity .8s linear 1.12s
}

.js-efct.is-active .efct-bottom01,
.js-efct.is-active .efct-bottom02,
.js-efct.is-active .efct-bottom03,
.js-efct.is-active .efct-bottom04 {
  transform: translateY(0);
  opacity: 1
}

img {
  max-width: 100%
}

button {
  font: inherit;
  cursor: pointer
}

.in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px
}

/* 中身の幅（1200px） */
@media (max-width:767px) {
  .pc {
    display: none
  }

  .in {
    padding: 0 12px
  }
}

@media (min-width:768px) {
  .sp {
    display: none
  }
}

/* --- 上（ヘッダー） --- */
.hd {
  border-bottom: 2px solid #8b0000;
  background: #fff
}

.hd .in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px
}

/* 80px＝上の帯の高さ（11/10 文字を大きくするため 64→80） */
.logo {
  font-family: "Noto Serif JP", "Noto Serif CJK JP", serif;
  color: #8b0000;
  font-size: 24px;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: .02em
}

.hd nav a {
  margin-left: 32px;
  font-size: 18px;
  text-decoration: none
}

/* 18px＝上部ナビの文字（11/10「小さすぎる」で13→18）、32px＝リンク同士の間 */

/* --- 広告の枠（中身は広告のコードに差し替える） --- */
.ad {
  border: 2px dashed #aaa;
  border-radius: 6px;
  background: #faf8f4;
  color: #777;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px
}

.ad small {
  font-size: 11px;
  color: #aaa
}

.ad.is-on {
  border: 0;
  background: #fff;
  height: auto !important;
  padding: 0
}

/* 広告が入った枠（js/ads.js）: 高さはバナーに合わせる */
.ad.is-on a {
  display: block;
  width: 100%
}

.ad.is-on img {
  display: block;
  width: 100%;
  height: auto
}

/* バナーを切らずに全部見せる */
.adlb {
  font-size: 11px;
  color: #999;
  margin: 0 0 4px
}

/* --- 下（フッター）＝エリア・楽器別・運営・バナー・広告⑤ --- */
.ft {
  background: #f5f1ea;
  padding: 48px 0 30px;
  font-size: 12px
}

.fc {
  display: block
}

/* エリア → 楽器別 の順に上下に。横幅いっぱい使い、地方・分類1つ＝1行にする（11/9「縦長で整理整頓されていない」） */
.fc>div+div {
  margin-top: 28px
}

/* エリアと楽器別の間 */
.fc>div {
  flex: 1
}

.fh {
  color: #8b0000;
  font-weight: 700;
  margin: 0 0 8px;
  font-size: 13px
}

/* フッターのエリア・楽器別（11/8「これくらい一覧で並べろよ」）: 全部をボタンで一覧に。形＝トップの検索の選択肢（.chip）と同じ
   .ft dl を頭に付けているのは、トップで後から読む top.css の .chip.all（幅150px）などに負けないため */
.ft dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px 0;
  margin: 0
}

/* 150px＝左の地方・分類のボタンの列の幅 */
.ft dd {
  margin: 0;
  display: grid;
  gap: 6px;
  align-content: start
}

/* 都道府県・楽器のボタンを同じ幅の升目に並べる（11/9「整然と並んでいない」） */
.ft dd {
  grid-template-columns: repeat(9, 1fr)
}

/* 9＝1行のボタンの数（一番多い中部・中国四国の9県が1行に入る）。エリアも楽器も同じ升目で縦の線をそろえる */
.ft dd.one {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px
}

.ft dd.one .chip {
  width: 136px
}

/* ボーカル〜ギターの行: 左の列から、分類のボタンと同じ幅で */
.ft dd .w2 {
  grid-column: span 2
}

/* 長い楽器名（フリューゲルホルン）は2マス */
.ft dd .online {
  grid-column: span 3
}

/* オンラインレッスン（全国から受講可）は3マス */
.ft dl .chip {
  display: inline-block;
  border: 1px solid #d6d2cc;
  background: #fff;
  border-radius: 4px;
  padding: 2px 10px;
  margin: 0;
  width: auto;
  font-size: 12px;
  font-weight: 400;
  color: #444;
  line-height: 1.8;
  text-decoration: none
}

.ft dl .chip.all,
.ft dl .chip.online {
  border-color: #8b0000;
  color: #8b0000;
  font-weight: 700
}

/* 地方・分類＝まとめて選ぶボタン */
.ft dl .chip.online small {
  font-size: 11px;
  font-weight: 400
}

.ft dl .chip.on {
  background: #8b0000;
  border-color: #8b0000;
  color: #fff
}

/* 選んだ物 */
.ft dt .chip {
  width: 136px;
  text-align: center;
  box-sizing: border-box
}

/* 136px＝左の地方・分類のボタンを全部同じ幅に（列は150px） */
.ft dd .chip {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  padding: 2px 4px
}

/* 升目いっぱいの同じ幅 */
.fmode {
  text-align: center;
  margin: 20px 0 0;
  font-size: 13px
}

.fmode label {
  margin-left: 14px
}

/* 選んだ条件の扱い（トップの検索の箱と同じ・トップでは2つが連動） */
.fgo {
  text-align: center;
  margin: 12px 0 0
}

.fgo button {
  border: 0;
  background: #8b0000;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 28px;
  border-radius: 4px
}

.fgo .fclear {
  background: none;
  color: #666;
  font-weight: 400;
  text-decoration: underline;
  font-size: 12px;
  padding: 8px 14px
}

.run {
  text-align: center;
  color: #777;
  margin: 56px 0 14px;
  padding-top: 40px;
  border-top: 1px solid #ddd6cb
}

/* 検索（選んだ条件で探す）と、運営・バナーを線と空きで分ける（11/9「ひとまとまりに見える」）。56px＝線の上の空き・40px＝線の下の空き */
.ks {
  text-align: center;
  margin: 0 0 24px
}

.ks a {
  display: inline-block;
  max-width: 100%
}

.ks img {
  display: block;
  width: 600px;
  max-width: 100%
}

/* KingStone PROJECT のバナー（img/bnr_ks.jpg）。600px＝講師ページの公式サイトのバナーと同じ幅（そろえる。11/9） */
.fads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

.fads .ad {
  height: 110px
}

/* 下の帯: 1段目＝ロゴ（左）とリンク（右）、2段目＝著作権（線で区切って中央）。
   HTMLは変えず、p を display:contents にして中身を .in の升目に直接並べる */
.bar {
  background: #8b0000;
  color: #fff;
  font-size: 14px
}

.bar .in {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  column-gap: 32px;
  padding-top: 28px
}

/* 32px＝リンク同士の間 */
.bar .logo {
  color: #fff;
  font-size: 24px
}

/* 24px＝上のロゴと同じ */
.bar p {
  display: contents
}

.bar p a {
  text-decoration: none
}

.bar p small {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 24px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .3);
  text-align: center;
  font-size: 12px
}

.fix {
  display: none
}

/* --- お問い合わせの選択肢（js/cpop.js。押すと、すぐ下に出る） ---
   LINE → Messenger → メールを同じ大きさで縦に。メール＝このサイトの基本色 */
.cpop {
  display: none;
  position: absolute;
  z-index: 60;
  width: 260px;
  padding: 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .15)
}

/* 260px＝枠の幅 */
.cpop.is-open {
  display: grid;
  gap: 8px
}

.cpop a {
  padding: 12px 8px;
  border: 2px solid;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  font-size: 15px;
  text-decoration: none
}

.cpop .is-line {
  color: #06c755
}

.cpop .is-msgr {
  color: #0084ff
}

.cpop .is-mail {
  color: #fff;
  background: #8b0000;
  border-color: #8b0000
}

/* --- シェア（押すと、すぐ下に出る。勝手にスクロールしない） --- */
.shpop {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0
}

.shpop[hidden] {
  display: none
}

.shpop a,
.shpop button {
  font-size: 12px;
  text-decoration: none;
  border-radius: 4px;
  padding: 4px 14px;
  border: 1px solid;
  background: #fff
}

.shpop .x {
  color: #000
}

.shpop .fb {
  color: #1877f2
}

.shpop .ln {
  color: #06c755
}

.shpop button {
  color: #555
}

@media (max-width:767px) {
  body {
    font-size: 14px
  }

  .hd .in {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    height: auto;
    min-height: 64px;
    padding: 10px 12px
  }

  /* スマホ: ロゴの下にナビを中央で折り返す（横にはみ出さない） */

  .logo {
    font-size: 17px
  }

  .hd nav {
    display: flex;
    justify-content: center;
    gap: 12px
  }

  .hd nav a {
    margin: 0;
    font-size: 15px
  }

  /* 15px＝スマホの上部ナビの文字（10→15） */

  .fc {
    display: block
  }

  .fc>div {
    margin-bottom: 24px
  }

  .ft dl {
    grid-template-columns: 1fr
  }

  .ft dd {
    margin-bottom: 6px
  }

  .ft dd {
    grid-template-columns: repeat(4, 1fr)
  }

  .ft dd .online {
    grid-column: span 4
  }

  /* スマホ: エリアは1行4つ */
  .fc>div+div dd {
    grid-template-columns: repeat(3, 1fr)
  }

  /* スマホ: 楽器は1行3つ（長い楽器名が切れない幅） */
  .fads {
    grid-template-columns: 1fr
  }

  .fmode label {
    display: block;
    margin: 4px 0 0
  }

  .bar .in {
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    column-gap: 20px;
    row-gap: 14px;
    padding: 24px 12px 70px
  }

  /* 70px＝下に固定した広告⑥と重ならない空き */
  .bar .logo {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 17px
  }

  .bar p a {
    font-size: 13px
  }

  .bar p small {
    grid-row: 3;
    margin-top: 6px;
    font-size: 11px
  }

  .fix {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56px;
    background: #fff;
    border-top: 1px solid #ddd;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #777;
    z-index: 50
  }
}
