@charset "utf-8";

/*
 * アートメイクスクール（/artmake_school/）のPCヘッダー。
 * ・2段（上：ロゴ＋LINE／下：講師8名の直リンク）を1段に変更する
 * ・PC幅（751px以上）でのみ効かせる。SPのハンバーガーは従来のまま
 * ページ側の native_css が header>.header_ に flex を当てているので、ここで上書きする。
 */

@media only screen and (min-width: 751px) {

  header#masthead.school_header > .header_ {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
  }

  header#masthead.school_header > .header_ > .header_logo {
    grid-column: 1;
    justify-self: start;
    margin: 0;
  }

  /* ロゴは素材のまま（240×61）。ページ側CSSの height:50px を打ち消す */
  header#masthead.school_header > .header_ > .header_logo img {
    height: auto;
    max-height: 61px;
    object-fit: contain;
  }

  header#masthead.school_header > .header_ > .school_pcnav {
    grid-column: 2;
    justify-self: center;
  }

  header#masthead.school_header > .header_ > ul.cta_btn {
    grid-column: 3;
    justify-self: end;
    margin: 0;
  }

  /* 講師8名の直リンクはPCでは出さない（ハンバーガー内には残る） */
  header#masthead.school_header > nav#nav_menu {
    display: none;
  }

  /* ---- ナビ本体 ---- */
  .school_pcnav_list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .school_pcnav_item {
    position: relative;
  }

  .school_pcnav_link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .03em;
    color: #4d4d4d;
    white-space: nowrap;
    background: none;
    border: 0;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
  }

  .school_pcnav_link:hover {
    background: #f4f4f4;
    color: #1a1a1a;
  }

  .school_pcnav_link[aria-expanded="true"] {
    background: #1a1a1a;
    color: #fff;
  }

  .school_pcnav_link:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
  }

  .school_pcnav_chev {
    width: 9px;
    height: 9px;
    transition: transform .2s;
  }

  .school_pcnav_link[aria-expanded="true"] .school_pcnav_chev {
    transform: rotate(180deg);
  }

  /* ---- 講師ドロップダウン ---- */
  .school_mega {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: 820px;
    max-width: calc(100vw - 40px);
    padding: 22px 28px 18px;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .12);
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    translate: 0 -6px;
    transition: opacity .18s ease, translate .18s ease, visibility 0s .18s;
    text-align: left;
  }

  .school_mega.open {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
    transition-delay: 0s;
  }

  /*
   * 「講師」ボタンを基準に中央寄せすると、PCの狭い幅（1160px未満）では
   * パネル（820px）が画面左にはみ出す。その幅ではナビ全体を基準にして画面内に収める。
   */
  @media only screen and (max-width: 1160px) {
    .school_pcnav {
      position: relative;
    }

    .school_pcnav_item.has_mega {
      position: static;
    }
  }

  .school_mega::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    margin-left: -7px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid #e5e5e5;
    border-top: 1px solid #e5e5e5;
    transform: rotate(45deg);
  }

  .school_mega_head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid #1a1a1a;
  }

  /* ページ側CSSが h4 に付けている装飾（縦棒・余白）をこのパネル内だけ打ち消す */
  .school_mega_head h4 {
    position: static;
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .06em;
    line-height: 1.6;
    color: #1a1a1a;
    background: none;
    border: 0;
    text-align: left;
  }

  .school_mega_head h4::before,
  .school_mega_head h4::after {
    content: none;
  }

  .school_mega_cols {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 0 28px;
  }

  .school_mega_col h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .24em;
    color: #8c8c8c;
  }

  .school_mega_col h5::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e5e5;
  }

  .school_mega_col ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .school_mega_teacher {
    margin-bottom: 16px;
    padding: 0;
  }

  .school_mega_teacher:last-child {
    margin-bottom: 0;
  }

  .school_mega_teacher .name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 -4px;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: .03em;
    color: #1a1a1a;
    text-decoration: none;
  }

  .school_mega_teacher .name:hover {
    background: #f4f4f4;
  }

  .school_mega_teacher .name .arr {
    flex: none;
    width: 10px;
    height: 10px;
    color: #8c8c8c;
    transition: transform .15s;
  }

  .school_mega_teacher .name:hover .arr {
    transform: translateX(3px);
    color: #1a1a1a;
  }

  .school_mega_teacher .courses {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 12px;
    margin-top: 2px;
    padding-left: 4px;
    font-size: 11px;
    line-height: 1.6;
  }

  .school_mega_teacher .courses a {
    color: #8c8c8c;
    text-decoration: underline;
    text-decoration-color: #8c8c8c;
    text-underline-offset: 3px;
  }

  .school_mega_teacher .courses a:hover {
    color: #1a1a1a;
    text-decoration-color: #1a1a1a;
  }
}

/* SPでは新ナビを出さない（.is_pc が効くが、念のため明示しておく） */
@media only screen and (max-width: 750px) {
  .school_pcnav {
    display: none !important;
  }

  /*
   * ロゴがヘッダー（60px）に対して61pxで出てはみ出していた。
   * ページ側CSSは `header > .header_ > h1 img { height:37px }` でロゴを縮めていたが、
   * 2026-08にロゴを h1 から p.header_logo に変えた際、この指定が効かなくなっていた。
   */
  header#masthead.school_header > .header_ {
    align-items: center;
  }

  header#masthead.school_header > .header_ > .header_logo {
    margin: 0;
    line-height: 0;
  }

  header#masthead.school_header > .header_ > .header_logo img {
    height: auto;
    max-height: 37px;
  }

  /* ハンバーガーが右端から63px内側で止まっていたので、右に寄せる */
  header#masthead.school_header > .header_ > .menu_btn {
    margin-left: auto;
  }
}
