/*
Theme Name: 徽音塾オリジナル
Author: 株式会社白峰社
Version: 1.0
*/

/* =========================
   基本
========================= */
:root{
    --congress-blue: #003a84;
    
    --congress-blue-hover: #7B99C1;


    --congress-title: #138F45;

    --congress-blue: #3FAF4A;
    --congress-blue-hover: #92df9a;


    --aqua-pearl: #63b8ce;
    --aqua-pearl-hover: #ACD8E3;
   
    --aqua-pearl: #7F8261;
    --aqua-pearl-hover:  #dce2a8;
    
    
    --lily-white: #e6faff;

  --lily-white: #FAFFEC;

    
    --log-cabin: #232323;
     --red: #ff0000;
    --white: #ffffff;
    
    --course_e: #70C83E;
    --course_p: #f78da7;
    --course_b: #3E87E5;
    --course_o: #777;







    --course_btn_clik: #3f3f3f;
    --course_btn: #9b9b9b;

    --course-select: #E8E8E8;
    --course-banner:#9A9A9A;



    --footer-hover: #B6CCEC;
    

    --font-size-25px: 25px;
    --font-size-l: 19px;
    --font-size-m: 16px;
    --font-size-s: 15px;
    --font-size-xl: 20px;
    --font-size-xs: 14px;
    --font-size-xxl: 45px;
    --font-size-xxs: 13px;
    --font-family-noto_sans_jp: "Noto Sans JP", Helvetica;
    --font-family-zen_antique_soft: "Zen Antique Soft", Helvetica;
    --font-family-zen_kaku_gothic_antique: "Zen Kaku Gothic Antique", Helvetica;
    --font-family-zen_maru_gothic: "Zen Maru Gothic", Helvetica;


    --transition-duration: 0.2s;
}



html, body { height:100%; margin:0; scroll-behavior: auto;}

body { 
  font-family:"Noto Sans JP", serif;
  color:#333;
  padding-top: 100px;
 
}


#kiin_page_top {
  scroll-margin-top: 100px; /* 上に100px空ける */
}

h1{ font-family:"Zen Maru Gothic"; color:var(--congress-blue); font-weight:normal; padding-bottom:2rem; font-size:45px; }
h2{ 
  font-family:"Zen Maru Gothic";
  color:var(--congress-blue);
  font-weight:normal;
  font-size:1.6rem;
}
h3{ color:var(--congress-blue); font-weight:normal; padding-top:1.2rem; font-size:1.4rem; }
h4{ color:var(--congress-blue); font-weight:normal; margin:0.2rem; font-size:1.1rem; }
h5{ color:var(--congress-blue); font-weight:normal; margin:0.2rem; font-size:1.0rem; }
p{ font-size:1.1em; line-height:1.4; }


.margin-top2{
  margin-top:2rem;

}

/* スペーサー */
.spacer-s0{ display:block; height:1rem; }
.spacer-ss{ display:block; height:2rem; }
.spacer-sm{ display:block; height:4rem; }
.spacer-md{ display:block; height:8rem; }
.spacer-lg{ display:block; height:12rem; }



/* 少し上げる（-margin） */
.text-shift-up-1 { margin-top: -1px; }
.text-shift-up-2 { margin-top: -2px; }
.text-shift-up-3 { margin-top: -3px; }
.text-shift-up-4 { margin-top: -4px; }

/* 少し下げる（+margin） */
.text-shift-down-1 { margin-top: 1px; }
.text-shift-down-2 { margin-top: 2px; }
.text-shift-down-3 { margin-top: 3px; }
.text-shift-down-4 { margin-top: 4px; }


.required-mark {
  font-size: 0.6em; /* 小さく */
  color: var(--red);
  margin-left: 0.22em; /* 少しスペースを空ける */

  vertical-align: super; /* 文字の上に寄せる（任意） */
}


.kiin-link-text {
  color: var(--aqua-pearl);
  text-decoration: none; 
}

.kiin-link-text:hover {
  color: var(--aqua-pearl-hover);
}

.fw700{ font-weight:500; }

.keyword-label {
  background-color: var(--course_o); /* JS/PHPで上書きされるので任意でOK */
  color: #fff;
  font-size: 0.8rem;
  padding: 0 4px;
  margin-right: 6px;
  display: inline-block;
}


.vertical-nav {
  display: flex;
  flex-direction: column;
  align-items: center; /* ← ここを修正します */
  justify-content: flex-end; /* 下揃えにする */
  height: 100%; /* 親要素の高さ基準で揃える */
}


.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 70vh;
  width: 100%;         /* 横幅の制限を回避 */
  align-items: stretch; /* 子要素が全幅を使えるようにする */
}



section{
  margin-bottom: 40px;
}  


main {
  max-width: 890px;
  padding-left: 6.0rem;
  padding-right:  6.0rem;
    margin: 0 auto; /* ← 中央寄せに必要！ */
}


.kiin-container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 3rem; /* 上下: 0, 左右: 2rem */
  box-sizing: border-box;
  flex: 1; /* 必要なら高さ調整にも使える */
}

.kiin-admin-container {
  width: 100%;
  max-width: 1900px;
  margin: 0 auto;
  padding: 3rem;
  box-sizing: border-box;
  flex: 1; /* 必要なら高さ調整にも使える */
}

.kiin-admin-container main {
  max-width: none;
  width: 100%;
  padding: 0;   /* 余白も不要ならリセット */
}



/* =========================
   共通：ヘッダーの外観
========================= */
.top-header {
  max-width: 1920px;
  width: 100%;
  height: 100px;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  display: flex;
  justify-content: center;

  margin: 0 auto;
  z-index: 9999;
  /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
  background: transparent; /* ← 余白部分は透明 */
}


.top-header-inner {
  width: 100%;
  max-width: 1920px;           /* 中央の最大幅 */
  margin: 0 3rem;
  height: 100px;

  background-color: var(--congress-blue); /* 中央部分だけ塗る */
  color: var(--white);

/*  display: flex;*/
  align-items: center;
}


@media (max-width: 768px) {
  .kiin-container { padding: 1rem; }
}


.site-main{ flex:1; }
.container{ max-width:1200px; width:100%; margin:0 auto; padding:0 1.5rem; }
.flex-header{ display:flex; align-items:center; justify-content:space-between; }
.wp-block-heading{ padding:2rem; }


.logo img.pc-logo{ display:block; }
.logo img.sp-logo{ display:none; }

/* =========================
   ボタン/フォーム
========================= */
.btn{
  display:inline-block; padding:12px 24px; font-size:16px; font-weight:700; text-align:center;
  color:#fff; background:#5f7c9b; border:none; border-radius:9999px; text-decoration:none;
  transition:background-color .3s ease; cursor:pointer;
}
.btn:hover{ background:#87a5c5; }
.btn-secondary{ background:#49806b; }
.btn-secondary:hover{ background:#76b99f; }



/***************************/
/*    ボタン/フォーム        */
/***************************/
.kiin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5em 1.2em;
  border: 1px solid var(--aqua-pearl, #00aacc); /* fallback color */
  border-radius: 100px;
  font-size: 0.9rem;
  color: var(--aqua-pearl, #00aacc);
  background-color: var(--white);;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.kiin-btn:hover {
  background-color: var(--aqua-pearl, #00aacc);
  color: var(--white);
}



.form-wrapper{
  max-width:600px;
  margin:40px auto;
  padding:20px;
  background:#fff;
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,.1);
}

.form-wrapper-left {
  margin: 10px -20 10px 0px; /* 左寄せにする */
}


input[type="text"],input[type="email"],input[type="password"],input[type="date"],input[type="number"],select,textarea{
  width:100%; max-width:100%; padding:12px 16px; font-size:16px; border:1px solid #ccc;
  border-radius:8px; outline:none; box-sizing:border-box; margin-bottom:16px; background:#f9f9f9;
  transition:border-color .3s, box-shadow .3s;
}
input:focus,select:focus,textarea:focus{
  border-color:#007bff; box-shadow:0 0 0 3px rgba(0,123,255,.2); background:#fff;
}

/* =========================
   ヒーロー
========================= */
.hero-image{ position:relative; display:inline-block; }
.hero-image img{ display:block; width:100%; height:auto; }

.osusume-badge{
  position:absolute; left:200px; top:40%; transform:translateY(-50%);
  width:600px; height:auto;
}

.nobr {
  white-space: nowrap;
}


.error-message {
    color:var(--red); /* 赤色 */
    background-color:var(--lily-white);
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}


/* =========================
   レスポンシブ
========================= */
@media (max-width: 768px){
  h1{ font-size:1.4rem; } h2{ font-size:1.2rem; } p{ font-size:.9rem; }
  .container{ padding:0 .5rem; }
  .top-header{ padding:6px 12px; }
  .logo img.pc-logo{ display:none; }
  .logo img.sp-logo{ display:block; height:60px; }
  :root{ --drawer-top: 280px; } /* スマホ時の円の上端 */


/* メニュー内側（背景とは独立。右寄せ距離はここで調整） */
.drawer-inner{
 position: absolute;
  top: 10px;
  bottom: 24px;
  left: 24px;                 /* 左余白 */
  right: 30px;                /* ← 右端からの距離（寄せ具合はここを調整） */
  z-index: 1;
  overflow: auto;
}

  

/* =========================
   基本
========================= */
:root{
  --drawer-top: 150px;          /* メニューの上端（上下位置） */
}

}


/* 動きに弱い方へ */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation:none !important; transition:none !important; }
}



.textarea-lg {
  min-height: 14rem;   /* 好みで 12rem, 16rem など */
  line-height: 1.6;
  resize: vertical;    /* ユーザーが縦方向だけ伸縮できるように */
  width: 100%;
}



  .course-handouts { margin-top: 10px; }
  .course-handouts__title { display:block; margin-bottom: 6px; color:#334155; font-weight:600; }
  .course-handouts__list { display:flex; flex-wrap:wrap; gap:8px; }
  .doc-chip {
    display:inline-flex; align-items:center; gap:6px;
    padding:8px 12px; border:1px solid #e2e8f0; border-radius:999px;
    background:#fff; color:#0f172a; text-decoration:none;
    box-shadow:0 1px 1px rgba(0,0,0,.02);
    transition: background .15s ease, border-color .15s ease, transform .02s ease;
  }
  .doc-chip:hover { background:#f8fafc; border-color:#94a3b8; }
  .doc-chip:active { transform: translateY(1px); }
  .doc-chip__icon { width:16px; height:16px; display:block; }
  .doc-chip__ext {
    font-size:12px; padding:2px 6px; border-radius:999px; background:#eef2ff; color:#3730a3;
  }


/* 暗幕 */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.05);
  display: none;
  pointer-events: none;
  z-index: 999;
}
.drawer-overlay.active {
  display: block;
  pointer-events: auto;
}

/* ドロワーメニュー */
.site-drawer {
  position: fixed;
  top: 190px;
  left: 0;
  width: clamp(320px, 34vw, 520px);
  height: 100vh;
  transform: translateX(-100%);
  background: transparent;
  color: var(--brand-fg, #424242);
  z-index: 1000;
  transition: transform .4s ease;
  overflow: visible;
}
.site-drawer[aria-hidden="false"] {
  transform: translateX(0);
}

/* 半円背景 */
.site-drawer::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  top: 20%;
  left: -60%;
  border-radius: 50%;
  background: rgb(255, 250, 200);
  backdrop-filter: blur(8px);
  transform: scale(0);
  transform-origin: center;
  opacity: 0;
  transition: transform .55s ease, opacity .35s ease;
  pointer-events: none;
}
.site-drawer[aria-hidden="false"]::before {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}

/* メニュー内部 */
.drawer-inner {
  position: absolute;
  top: 0;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 1;
  overflow: auto;
}
.drawer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.drawer-menu > li > a {
  display: inline-block;
  white-space: nowrap;
  padding: 6px 10px;
  font-size: 1.05rem;
  color: var(--brand-fg, #1d1d1d);
  font-weight: 600;
  text-decoration: none;
  border-radius: 9999px;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.drawer-menu > li > a:hover {
  background: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .08);
  transform: translateY(-1px);
}

.drawer-menu {
  position: relative;
  height: 500px; /* 必要に応じて調整 */
}

.drawer-menu li {
  position: absolute;
}

.drawer-menu li:nth-child(1) {
  top: 20px;
  left: 20px;
}
.drawer-menu li:nth-child(2) {
  top: 70px;
  left: 30px;
}
.drawer-menu li:nth-child(3) {
  top: 120px;
  left: 40px;
}
.drawer-menu li:nth-child(4) {
  top: 170px;
  left: 50px;
}
.drawer-menu li:nth-child(5) {
  top: 220px;
  left: 40px;
}
.drawer-menu li:nth-child(6) {
  top: 270px;
  left: 30px;
}
.drawer-menu li:nth-child(7) {
  top: 320px;
  left: 20px;
}




/*========================= ===========
============= ========================= 
   フッター
========================= =============
============= ========================= */
.site-footer {
  padding: 40px 0;
  text-align: center;
  background: var(--congress-blue);
  overflow-x: hidden;
  color: #fff; /* 全体の文字色 */
}

/* リンク共通 */
.footer-link,
.footer-link-with-icon {
  color: #fff;
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  transition: color 0.5s ease; /* ← ゆっくりに変更 */
}


.footer-link:hover,
.footer-link-with-icon:hover {
  color: var(--footer-hover);
}


/* アイコン */
.footer-link-with-icon .x-icon {
  width: 1.5em;
  height: 1.5em;
  fill: currentColor;
  margin-left: 0.4em;
}

.x-icon {
  margin-top: 0.7em;
}


/* 上段リンクの行 */
.footer-buttons-top {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1rem;
}

/* | 区切り */
.footer-separator {
  color: #fff;
  margin: 0 10px;
}


/* 下段（右寄せ） */
.footer-buttons-bottom {
  display: flex;
  justify-content: flex-end; /* ← 中央揃え → 右寄せ に変更 */
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-right :2rem;
}


.footer-copy {
  margin: 0;
  color: #fff;
  font-size: 0.85rem;
}















































.news-link {
  display: inline-flex;
  align-items: center;
  gap: 4px; /* アイコンとの余白 */
  font-weight: normal;
  font-size: 1rem; /* 必要なら他と揃える */
  color: var(--congress-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-link:hover {
  color: var(--congress-blue-hover);
  text-decoration: none;
}

.news-arrow-icon {
  width: 1.2em;              /* ← 少し大きく */
  height: 1.2em;
  display: inline-block;
  vertical-align: middle;    /* 基本位置合わせ */
  transform: translateY(2px); /* ↓ 下に2pxずらす */
}
.news-meta {
  margin-right: 0.5rem; /* スペース相当の余白を追加 */
}

.news-item{
  margin-bottom: 1.2rem;
}

/* 親：ロゴ全体は flex-item として普通に残す */

/* ロゴ全体：通常ブロック、内部絶対配置の基準 */
.header-logo {
  color: var(--white);
  position: relative;   /* 内部 absolute の基準に */
  padding-left: 2rem;
  height: 120px;
  display: block;       /* 通常のブロック要素 */
  color: var(--white);
  font-family: var(--font-family-zen_maru_gothic, sans-serif);
  line-height: 1.2;
}

/* サブタイトル */
.header-subtitle {
  color: var(--white);  
  position: absolute;
  top: 12px;   /* 上からの距離で固定 */
  left: 2rem;
  font-size: 12px;
  margin: 0;
  letter-spacing: 0.1em;
}

/* ルビ */
.header-rubititle {
  color: var(--white);
  position: absolute;
  top: 32px;  /* サブタイトルの下あたり */
  left: 3rem;
  font-size: 10px;
  letter-spacing: 0.2em;
}

/* タイトル */
.header-title {
  position: absolute;
  top: 38px;  /* ルビの下あたり */
  left: 2rem;
  font-size: 46px;
  font-weight: bold;
  font-family: 'Shippori Mincho', serif;
  letter-spacing: 0.2em;
  margin: 0;
  color: var(--white);
}

/*============================================
=============================================
  ナビゲ―ション
==============================================
=============================================*/


/* =========================
   ヘッダー内 NAV
========================= */

.universal-nav {
  position: absolute;
  top: 8px;
  right: 3rem; /* ← paddingの内側に固定 */
  padding: 10px 20px;

}



.universal-nav {
  background-color: var(--congress-blue, #004899);
  /*padding: 1.0rem 1rem;*/
}



.nav-item{ display:flex; align-items:center; }
.nav-link{
  color:inherit; text-decoration:none; padding:6px 8px; display:block; transition:color .2s ease;
}
.nav-link:hover{ color:#727272; }



.header-logo-link {
    text-decoration: none;
    color: inherit;
}

.header-logo-link:hover,
.header-logo-link:visited,
.header-logo-link:active {
    text-decoration: none;
    color: inherit;
}

/* =========================
   マイページ用サブnavi
========================= */

 .mypage-nav-menu {
      display: flex;
      gap: 20px;
      justify-content: center;
    }

    .mypage-nav-menu a {
      text-decoration: none;
      color: #333;
      font-weight: normal;
      padding: 5px 15px;
      border-radius: 8px;
      transition: background-color 0.3s, color 0.3s;
    }

    .mypage-nav-menu a:hover {
      background-color: #97b7da;
      color: white;
    }





.nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
}

.nav-link,
.nav-hamburger {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: none;
  border: none;
  color: #fff; /* ← テキスト白 */
  font-size: 0.75rem;
  cursor: pointer;
}

.nav-hamburger {
  margin-top: 2px;
  margin-bottom: -4px;
}




.icon-img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
  margin-bottom: 4px;
  transition: transform 0.2s ease; /* ← スムーズな拡大 */
}

.nav-link:hover .icon-img,
.nav-hamburger:hover .icon-img {
  transform: scale(1.2); /* ← ホバーで1.2倍に拡大 */
}

/* ホバーでアイコン拡大 */
.nav-hamburger-icon:hover .icon-img {
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

.news-arrow-icon {
  margin-left: 0px;
  vertical-align: middle;
  transition: margin-left 0.3s ease, stroke 0.3s ease;
  stroke: var(--congress-blue);
  fill: none;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.news-link:hover .news-arrow-icon {
  margin-left: 6px; /* ← ホバー時に右へ6px移動（4 → 10） */
  stroke: var(--congress-blue-hover);
}



.icon-text {
  margin-top: 2px;
  line-height: 1;
  color: #fff; /* 念のため明示 */
}




  
.internal-menu {
  text-align: center; /* 全体を中央揃え */
  margin: 2rem 0;
}

.internal-menu ul {
  font-size : 0.9em;
  display: inline-flex; /* 横並び */
  flex-wrap: wrap; /* 折り返し可能にする場合 */
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
  gap: 1.5rem; /* リンク間のスペース */
}

.internal-menu li {
  margin: 0;
}






.internal-link {
  display: inline-flex;
  align-items: flex-start;
  color: var(--congress-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}




.link-icon {
  display: inline-block;
  margin-left: -0.4rem;
  line-height: 1;
}

.link-icon svg {
  width: 2em;
  height: 2em;
  fill: none;
  stroke: currentColor;
  transform: translateY(0);
  transition: transform 0.2s ease;
}

.internal-link:hover {
  color: var(--congress-blue-hover);
}

.internal-link:hover .link-icon svg {
  transform: translateY(2px);
}



.kiin-image-wrapper {
  margin: 2rem auto;
  margin-top: 4rem;
  margin-bottom: 4rem;
  width: 60%; /* ＝左右20%のマージン */
}

.kiin-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.kiin-image-wrapper80{
    width: 80%; /* ＝左右15%のマージン */
}





/********************
マイページ゛のメニュー
*********************/
.mypage-link-text {
  display: inline-flex;
  align-items: center;
}

.mypage-link-text:hover .mypage-arrow-icon {
  transform: translateX(3px); /* 右にだけスライド */
  stroke: var(--congress-blue-hover);
}


  
.mypage-arrow-icon {
/*  margin-left: 4px;*/
  transition: transform 0.3s ease;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
