@charset "utf-8";


/* HEADER
------------------------------- */
#header
.wrapper{
  margin: 0;  
}

/* =================================
   ヘッダー基本設定
================================= */

.page-header {
  width: 100%;
  max-height: 120px;
  margin: 0;
  padding: 0;
}

.header-container {
  width: 95%;
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}
.block1 {
  width: auto;
  min-width: 0;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.site-logo {
  display: flex;
  align-items: center;
}
.tlogo {
  display: block;
  width: 10rem;
  height: auto;
  margin: 0 0 0 5rem;
  padding: 0;
}

.kansaihonkou {
  width: 22rem;
  height: auto;
  margin: 1rem 0 0 0.5rem;
  padding: 0 0 0 32px;
}

.img_ac {
  display: block;
  width: 3rem;
  height: auto;
  margin: 0;
}
.img_max_log_in {
  width: 3rem;
  margin-left: 0;
}
.img_max_log_in2 {
  width: 3rem;
  margin-left: 0;
}
.img_max_menu {
  display: block;
  width: 3rem;
  height: auto;
  margin: 0;
}

.block2 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin: 0;
  padding: 0 2rem 0 0;
  flex-shrink: 0;
}

/* ==========================
ドロワーメニュー
========================== */

/* MENUボタン */
.header-container .btn {
display: inline-block;
cursor: pointer;
position: relative;
z-index: 1002;
}

.header-container .img_max_menu {
display: block;
}

/* メニュー本体 */
.header-container .drawr {
position: fixed;
top: 0;
right: 0;
width: 300px;
max-width: 85vw;
height: 100vh;
height: 100dvh;
box-sizing: border-box;
padding: 80px 25px 30px;
background: #fff;
overflow-y: auto;
-webkit-overflow-scrolling: touch;

/* 初期状態は画面の右側に隠す */
transform: translateX(100%);
visibility: hidden;
opacity: 0;
pointer-events: none;

transition:
transform 0.35s ease,
opacity 0.25s ease,
visibility 0.35s ease;

z-index: 1001;
box-shadow: -5px 0 20px rgba(0, 0, 0, 0.12);
}

/* メニューが開いた状態 */
.header-container .drawr.is-open {
transform: translateX(0);
visibility: visible;
opacity: 1;
pointer-events: auto;
}

/* メニューリスト */
.header-container .drawr ul#menu {
list-style: none;
padding: 0;
margin: 0;
}

.header-container .drawr ul#menu li {
display: block;
margin: 0;
padding: 0;
border-bottom: 1px solid #e8e8e8;
}

.header-container .drawr ul#menu li a {
display: block;
padding: 15px 5px;
color: #333;
font-size: 15px;
line-height: 1.7;
text-decoration: none;
overflow-wrap: anywhere;
transition: background-color 0.2s ease;
}

.header-container .drawr ul#menu li a:hover {
background-color: #f5f3ef;
}

/* メニュー内の地域リンク */
.header-container .drawr #menu table {
width: 100%;
border-collapse: collapse;
margin: 8px 0 15px;
table-layout: fixed;
}

.header-container .drawr #menu table th {
width: 50%;
border: 1px solid #e8e8e8;
font-weight: normal;
}

.header-container .drawr #menu table th a {
display: block;
padding: 10px 5px;
color: #333;
text-decoration: none;
}

.drawr table td {
  width: 50%;
  border: 1px solid #e5ebe6;
  text-align: center;
}
/* メニュー表示中の背景 */
.menu-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.35);
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity 0.3s ease, visibility 0.3s ease;
z-index: 1000;
}

.menu-overlay.is-open {
opacity: 1;
visibility: visible;
pointer-events: auto;
}

/* スマートフォン */
@media screen and (max-width: 768px) {
.header-container .drawr {
width: 300px;
max-width: 85vw;
padding: 70px 20px 25px;
}
.tlogo {
  margin: 0;
}
.header-container .drawr ul#menu li a {
font-size: 14px;
padding: 13px 5px;
}
}

/* 動きを減らす設定への配慮 */
@media (prefers-reduced-motion: reduce) {
.header-container .drawr,
.menu-overlay {
transition: none;
}
}


/* =================================
   大阪道学院 ヘッダーレスポンシブ
================================= */

@media screen and (max-width: 768px) {

  /* ヘッダー全体 */
  .page-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: #fff;
  }

  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 70px;
    padding: 8px 15px;
    box-sizing: border-box;
    position: relative;
  }

  /* ロゴ部分 */
  .block1 {
    flex: 1;
    min-width: 0;
  }

  .site-logo {
    display: flex;
    align-items: center;
  }

  .site-logo a {
    display: inline-flex;
    align-items: center;
  }

  /* メインロゴ */
  .site-logo .tlogo {
    display: block;
    width: auto;
    height: auto;
    max-width: 180px;
    max-height: 52px;
    object-fit: contain;
  }

  /* 関西本校・大阪道学院の文字ロゴは非表示 */
  .site-logo .kansaihonkou {
    display: none !important;
  }

  /* 右側のアイコン */
  .block2 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    gap: 18px;
    position: relative;
  }

  /* アクセス */
  .access-link {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .img_ac {
    display: block;
    width: auto;
    height: 38px;
    max-width: 55px;
    object-fit: contain;
  }

  /* ハンバーガーボタン */
  .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  .img_max_menu {
    display: block;
    width: 35px;
    height: 35px;
    object-fit: contain;
  }


  /* メニューリスト */
  .drawr ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .drawr ul li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e5ebe6;
  }

  .drawr ul li a {
    display: block;
    padding: 13px 8px;
    color: #354b3c;
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
  }

  .drawr ul li a u {
    text-decoration: none;
  }

  .drawr ul li a:hover {
    background: #f1f6f2;
  }

  /* 地域一覧テーブル */
  .drawr table {
    width: 100%;
    border-collapse: collapse;
    margin: 5px 0 12px;
  }

  .drawr table td {
    width: 50%;
    border: 1px solid #e5ebe6;
    text-align: center;
  }

  .drawr table td a {
    padding: 10px 5px;
    font-size: 13px;
  }

}

/* 小さいスマートフォン */
@media screen and (max-width: 380px) {

  .header-container {
    padding: 8px 10px;
  }

  .site-logo .tlogo {
    max-width: 145px;
    max-height: 45px;
  }

  .block2 {
    gap: 12px;
  }

  .img_ac {
    height: 33px;
  }

  .btn {
    width: 38px;
    height: 38px;
  }

  .img_max_menu {
    width: 32px;
    height: 32px;
  }

}

/* =================================
   スマートフォン・タブレット
================================= */

@media screen and (max-width: 768px) {

  .page-header {
    width: 100%;
    max-height: none;
    background: #fff;
  }

  .header-container {
    width: 100%;
    min-height: 70px;
    padding: 8px 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .block1 {
    width: auto;
    flex: 1;
    min-width: 0;
  }

  .site-logo {
    display: flex;
    align-items: center;
  }

  .tlogo {
    width: auto;
    max-width: 160px;
    max-height: 50px;
    margin: 0;
    padding: 0;
  }

  .kansaihonkou {
    display: none !important;
  }

  .block2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    gap: 15px;
    margin: 0;
    padding: 0;
  }

  .access-link {
    display: flex;
    align-items: center;
  }

  .img_ac {
    width: auto;
    height: 36px;
    max-width: 50px;
    margin: 0;
  }

  .header-container .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
  }

  .img_max_menu {
    width: 32px;
    height: 32px;
    margin: 0;
  }

}

@media screen and (max-width: 380px) {

  .tlogo {
    max-width: 135px;
  }

  .block2 {
    gap: 10px;
  }

  .img_ac {
    height: 32px;
  }

}

/* メニューボタンの枠・背景を消す */
.header-container .btn {
  border: none !important;
  outline: none;
  box-shadow: none;
  background: transparent !important;
  appearance: none;
  -webkit-appearance: none;
}

/* クリック時の枠も消す */
.header-container .btn:focus,
.header-container .btn:active,
.header-container .btn:focus-visible {
  outline: none;
  box-shadow: none;
  border: none;
}

