/* Base */
html {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  line-height: 1.8;
  margin: 0;
  background-color: #fff;
  overflow-x: hidden;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
}

h1, h2, h3 {
  margin: 0 0 0.5em;
}

ul {
    list-style: none;
}
/* Header */
.site-header {
  position: fixed;
  overflow: visible;
  width: 100%;
  min-width: 100%;
  background: #fff;
  box-sizing: border-box;
  font-family: 'Noto Sans JP', sans-serif;
  padding-right: 0px;
  z-index: 1000;   /* ← 追加 */
}

/* ヘッダー上部の帯 */
.site-header::before {
  content: "";
  display: block;
  height: 60px; /* strip_block.png の原寸高さ */
  background: url("../img/top/strip_block.png") repeat-x center top;
  background-size: auto;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin-right: 0px;
}

/* ===== PC メインメニュー ===== */
.main-menu ul {
  display: flex;
  justify-content: center;   /* ← 右寄せではなく中央基準 */
  align-items: flex-end;
  gap: 20px;
  position: relative;
}

/* ===== PC サブメニュー配置 ===== */
.main-menu li.has-sub {
  position: relative;
}

/* サブメニュー本体 */
.main-menu li.has-sub > .sub-menu {
  display: block;              /* PCでは常に制御可能 */
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.95);
  padding: 8px 25px;
  white-space: nowrap;
  z-index: 1100;
}

/* 横並び */
.main-menu li.has-sub > .sub-menu ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

/* PCのみ */
@media screen and (min-width: 768px) {

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.4s ease;
    will-change: transform;
  }

  .site-header.hide {
    transform: translateY(-110%);
  }

}

section.content {
  margin-top: 120px;
 }

@media screen and (min-width: 768px) {
  .hero {
    margin-top: 100px !important; /* ヘッダー高さに合わせる */
  }
  section.content {
    margin-top: 120px;
    padding-left: 140px;
    padding-right: 140px;
  }
}

section.content ul {
  text-decoration: none;
}    

.pagetop {
  height: calc(50vw/12);
  width: calc(50vw/12);
  position: fixed;
  right: calc(30vw/12);
  bottom: calc(30vw/12);
  background: rgba(0,0,0,0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}
.pagetop:hover {
  background: rgba(0,0,0,0.2);
}

.pagetop_arrow {
  height: calc(10vw/12);
  width: calc(10vw/12);
  border-top: calc(3vw/12) solid #fff;
  border-right: calc(3vw/12) solid #fff;
  transform: translateY(20%) rotate(-45deg);
}


@media (min-width: 521px) {
  /* PC：active な main-menu だけ sub-menu を表示 */
  .main-menu li.has-sub > .sub-menu {
    display: none;
  }

  .main-menu li.has-sub.active > .sub-menu {
    display: block;
  }

  .wrap-header-items {
    overflow: visible;
  }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .site-header::before {
    background-image: url("../img/top/strip_block@2x.png");
  }
}

.logo {
  text-shadow:
    -1px -1px 0 rgba(255,255,255,0.2),
     1px -1px 0 rgba(255,255,255,0.2),
    -1px  1px 0 rgba(255,255,255,0.2),
     1px  1px 0 rgba(255,255,255,0.2),

    -2px  0   0 rgba(196,196,196,0.1),
     2px  0   0 rgba(196,196,196,0.1),
     0   -2px 0 rgba(196,196,196,0.1),
     0    2px 0 rgba(196,196,196,0.1);
}

.logo {
  font-size: 2.6em;
  font-weight: 700;
  color: #0b4c5e;
  margin-left: 40px;
  display: inline-block;
  z-index: 10;
  margin-top: -10px;
}


.wrap-header-items {
  width: 100%;
  max-width: 1024px !important;
  display: flex;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  justify-content: space-between;
/*  align-items: center;  上下中央揃え*/
}

#wrap-menu {
  margin-top: 17px;
  height: 90px;
}   
/* 上段：メインメニュー */
.main-menu {
  background: #f7f7f7 url("../img/top/strip_block.png") repeat-x top center;
  background-size: auto;
  padding-top: 0px; /* 帯分の余白 */
  text-align: right;
}

.main-menu ul {
  list-style: none;
  margin: 0;
  padding: 0px 40px 3px 40px;
  background-color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  justify-content: flex-end; /* ← rightではなくflex-end */
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  position: relative; /* ::before背景に埋もれないように */
  z-index: 1;
  margin-right: auto;
  border-radius: 30px 20px 0 0;
  overflow: visible;
}

.main-menu li {
  margin: 0 25x;
  position: relative;
}

.main-menu a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  font-size: 1em;
  line-height: 2.5;
  display: inline-block;
  position: relative;
}

/* 下三角マーク */
.main-menu li.active::after {
  content: "▼";
  font-size: 0.6em;
  color: #333;
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
}


/* 下段：サブメニュー */
.sub-menu {
  background: #effafe;
}

.sub-menu ul {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  display: flex;
  justify-content: right;
  flex-wrap: wrap;
}

.sub-menu li {
  margin: 0 12px;
  position: relative;
  z-index: 20 !important;
}

.sub-menu li + li::before {
  content: "｜";
  color: #aaa;
  position: absolute;
  left: -18px;
}

/* サブメニュー文字 */
.sub-menu a {
  text-decoration: none;
  color: #333;
  font-size: 0.95em;
  display: inline-block;
  padding-bottom: 4px;
  position: relative;
}

/* アクティブなサブメニューのアンダーライン */
.sub-menu li.active a {
  border-bottom: 2px solid #333;
}

.wrap-hero {
  position: relative;
}

/* 共通 */
.hero-text {
  position: absolute;
  width: 4.57%;       /* ← 元画像に対する横幅比率 */
  max-width: 35%;
  height: auto;
}

/* 元画像が 2048px 幅だった例 */
.hero-text.t1 {
  left: 78.5%;   /* 1605 / 2048 * 100 */
  top: 7.1%;     /* 102 / 元画像高さ * 100 */
}

.hero-text.t2 {
  left: 72.4%;   /* 1477 / 2048 * 100 */
  top: 7.1%;
}

.hero-text.t3 {
  left: 21.0%;   /* 431 / 2048 * 100 */
  top: 7.6%;
}

/* レスポンシブ対応 */
@media (max-width: 520px) {
  .pagetop {
    height: 50px;
    width: 50px;
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: rgba(0,0,0,0.2);;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
  }

  .pagetop_arrow {
    height: 10px;
    width: 10px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    transform: translateY(20%) rotate(-45deg);
  }

    
  .main-menu ul,
  .sub-menu ul {
    flex-direction: column;
    align-items: center;
  }

  .main-menu li,
  .sub-menu li {
    margin: 5px 0;
  }

  .sub-menu li + li::before {
    display: none;
  }

  .main-menu li.active::after {
    bottom: -2px;
  }  
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  margin: 0 8px;
  font-size: 0.9em;
}

.item-circle {
  position: absolute;
  opacity: 0.5;  
}
.item-circle img {
  width: 300px !important;
  height: auto;
}
.item-circle.n01 {
  top: 80px;
  left: -200px;
}
.item-circle.n02 {
  top: 300px;
  right: -180px;
}
.item-circle.n03 {
  top: 2600px;
  right: 0px;
  z-index: 1;
}

/* Hero */
.hero-image {
  width: 100%;
  max-width: 1024px;
  height: auto;
  display: block;
  z-index: 100;
}
.hero-image-bg {
  position: absolute;
  width: 100%;
  max-width: 1024px;
  height: auto;
  left: 0px;
  top: 0;
  z-index: -1;
  background-color: #effafe;
}
.hero-kumo {
  position: absolute;
}
.hero-kumo.kmleft {
  top: 22.0%;
  width: 26.33% !important;
  left: 5.5%;
  z-index: 100;
}
.hero-kumo.kmright {
  top: 35.5%;
  width: 21.25% !important;
  right: 4%;
  z-index: 100;
}


/* Sections */
section {
  max-width: 1024px;
  margin: 40px auto;
  padding: 0 20px;
}

section.hero {
  width: 100vw !important;
  max-width: 100vw !important;   
  background-color: #effafe;
  text-align: center;
  padding-top: 0px;
  margin-top: 20px;
  z-index: 1;
  overflow: hidden;
}

.wrap-hero {
  position: relative;
  width: 100%;
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  z-index: 1;
  padding-top: 0px;
  margin-top: -30px;
}

/* ===== Seminar & News セクション ===== */
.seminar-news {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1024px;
  margin: 0px auto;
  padding: 0 20px;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.seminar-block,
.news-block {
  flex: 1 1 42%;
  background: rgba(255, 255, 255, 0.8);
  padding: 20px 25px;
  position: relative;
  /*  box-shadow: 0 2px 4px rgba(0,0,0,0.05);*/
  box-sizing: border-box;
}

.seminar-block::after,
.news-block::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 180px;
  background: url("../img/top/bg_circle.png") no-repeat right top / contain;
  opacity: 0.2;
  pointer-events: none;
}

/* 見出し */
section.common h2,
.seminar-block h2,
.seminar-block h2,
.news-block h2 {
  font-size: 1.5em;
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

section.common h2 span,
.seminar-block h2 span,
.news-block h2 span {
  color: #999;
  font-size: 1.2em;
}

section.common h2 strong,
.seminar-block h2 strong,
.news-block h2 strong {
  font-weight: 700;
  font-size: 1.8em;
}

section.common h2 small,
.seminar-block h2 small,
.news-block h2 small {
  font-weight: 400;
  font-size: 0.9em;
  color: #555;
}

/* リスト */
.seminar-block ul,
.news-block ul {
  list-style: disc;
  padding-left: 20px;
}

.seminar-block li,
.news-block li {
  margin-bottom: 25px;
}

.seminar-block h3,
.news-block h3 {
  font-size: 1.05em;
  font-weight: 600;
  margin-bottom: 5px;
}

.seminar-block p,
.news-block p {
  font-size: 0.9em;
  margin: 2px 0 6px;
  color: #333;
}

/* ===== 再生塾とはセクション ===== */
.about-section {
  background: #b8d4d9;
  padding: 35px 0;
}

.about-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0px 0px;
  background: #b8d4d9;
  position: relative;
}

/* 手描きライン */
.about-line {
  width: 100%;
  height: 40px;
  display: block;
  margin: 10px 0;
  pointer-events: none;
}

.about-line.top {
  margin-bottom: 12px;
}

.about-line.bottom {
  margin-top: 12px;
}

/* 見出し */
.about-header {
  display: flex;
  align-items: baseline;
  gap: 15px;
  justify-content: flex-start;
}

.about-header h2 {
  font-size: 1.8em;
  font-weight: 700;
  color: #222;
  margin: 0;
}

.about-header .subtitle {
  font-size: 1em;
  color: #333;
  white-space: nowrap;
  margin: 0;
}

/* リード文 */
.about-lead p {
  margin-top: 20px;
  color: #0c5a6b;
  line-height: 1.8;
  font-weight: 500;
}

/* スマホ対応 */
@media (max-width: 520px) {
  .about-header {
    flex-direction: column;
    gap: 5px;
  }
  .about-header h2 {
    font-size: 1.4em;
  }
}


/* 詳細ボタン */
.btn-more {
  display: inline-block;
  font-size: 0.85em;
  color: #333;
  background: linear-gradient(to right, #e5eff3, #d7e4ea);
  padding: 5px 12px;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  transition: all 0.2s;
}

.btn-more:hover {
  background: linear-gradient(to right, #d3e2e8, #c5d7de);
}



/* ===== 再生塾〈セミナー〉のご案内 ===== */
.seminar-section {
  position: relative;
  background: #fff;
  padding: 80px 0;
  overflow: hidden;
}

.seminar-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* 右上の円形背景 */
.seminar-bg-circle {
  position: absolute;
  top: -40px;
  right: -120px;
  width: 400px;
  height: 400px;
  background: url("images/bg_circle_photo.jpg") no-repeat center/cover;
  border-radius: 50%;
  opacity: 0.25;
  z-index: 0;
}

/* 見出し */
.seminar-inner h2 {
  font-size: 2em;
  color: #222;
  font-weight: 700;
  border-bottom: 2px solid #7fbad2;
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.seminar-inner h2 span {
  font-weight: 400;
  font-size: 0.9em;
  margin-left: 6px;
}

/* レイアウト */
.seminar-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  position: relative;
  z-index: 1;
}

/* 左側本文 */
.seminar-text {
  flex: 1 1 60%;
  font-size: 0.95em;
  color: #333;
  line-height: 1.9;
}

/* コースリスト */
.course-list {
  list-style: none;
  margin: 20px 0 35px;
  padding: 0;
}

.seminar-content h3 {
  margin-top: 35px;
}
.course-list li {
  margin-bottom: 8px;
  font-weight: 500;
}

.course-list span {
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
  margin-right: 6px;
  font-size: 0.85em;
}

.course-list .a { background: #a5c978; }
.course-list .b { background: #6ea9cc; }
.course-list .c { background: #c78eb2; }
.course-list .d { background: #b77f7f; }

.seminar-text h3 {
  font-size: 1.1em;
  color: #1e5d75;
  border-left: 4px solid #7fbad2;
  padding-left: 8px;
  margin-bottom: 10px;
}

/* 右側画像 */
.seminar-images {
  flex: 1 1 35%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.seminar-images img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 3px 5px rgba(0,0,0,0.15);
}

/* スマホ対応 */
@media (max-width: 520px) {
  .seminar-content {
    flex-direction: column;
  }
  .seminar-images {
    align-items: center;
  }
  .seminar-bg-circle {
    width: 250px;
    height: 250px;
    right: -60px;
    top: -20px;
    opacity: 0.25;
  }
}


/* ===== 各コースの構成 ===== */
.courses-section {
  background: #fff;
}

.courses-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 0px;
}

/* 見出し */
.courses-inner h2 {
  font-size: 2em;
  font-weight: 700;
  color: #222;
  border-bottom: 3px solid #7fbad2;
  padding-bottom: 6px;
  margin-bottom: 40px;
}

/* 各コース共通ボックス */
.course-box {
  border-radius: 4px;
  margin-bottom: 40px;
  padding: 20px;
}

.course-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  padding: 10px 15px;
  border-radius: 3px 3px 0 0;
}

.course-header h3 {
  font-size: 1.2em;
  font-weight: 700;
  margin: 0;
}

.course-header .schedule {
  font-size: 0.85em;
  background: rgba(255,255,255,0.3);
  padding: 3px 8px;
  border-radius: 4px;
}

/* 本文レイアウト */
.course-body {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 10px;
  flex-wrap: wrap;
}

.course-text {
  flex: 1 1 65%;
  font-size: 0.95em;
  color: #333;
  line-height: 1.8;
}

.course-text p { margin-bottom: 1em; }

.target {
  border: 1px solid #333;
  background: rgba(255,255,255,0.5);
  padding: 8px 10px;
  margin-top: 10px;
  font-size: 0.9em;
}

/* 右画像 */
.course-image {
  flex: 1 1 30%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.course-image img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* 各コースごとの色 */
.course-box.a { background: #e9f0e1; }
.course-box.a .course-header { background: #a5c978; }

.course-box.b { background: #e5f3f8; }
.course-box.b .course-header { background: #6ea9cc; }

.course-box.c { background: #f0e5f1; }
.course-box.c .course-header { background: #c78eb2; }

.course-box.d { background: #f1e5e1; }
.course-box.d .course-header { background: #b77f7f; }

/* スマホ対応 */
@media (max-width: 520px) {
  .course-body {
    flex-direction: column;
  }
  .course-image {
    justify-content: center;
  }
}

/* ===== 参加者の声 ===== */
.voice-box.b {
  background: #88bfd0;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 20px;
}

.voice-box.b h3 {
  font-size: 1.2em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #10344c;
}

/* ← h3の下のブロックを横並びにする */
.voice-box.b .voice-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.voice-box.b .voice-text {
  flex: 1 1 65%;
}

.voice-box.b .voice-inner {
  background: rgba(255, 255, 255, 0.75);
  padding: 18px 20px;
  border-radius: 6px;
  line-height: 1.9;
  color: #222;
}

.voice-box.b {
  padding: 25px;
}
.voice-box.b .voice-image {
  flex: 1 1 30%;
  display: flex;
  justify-content: flex-end;
}

.voice-box.b .voice-image img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

/* スマホ対応 */
@media (max-width: 520px) {
  .voice-box.b .voice-content {
    flex-direction: column;
    align-items: center;
  }

  .voice-box.b .voice-image {
    justify-content: center;
  }
}

/* ===== アドバンストコース ===== */
/* アドバンスドコース */
.voice-box.c {
  background: #bca4c9;
  border-radius: 4px;
  padding: 25px;
}

.voice-box.c h3 {
  font-size: 1.2em;
  font-weight: 700;
  color: #3b1d54;
  margin-bottom: 15px;
}

/* flexで横並び */
.voice-box.c .voice-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

/* 左：白背景 */
.voice-box.c .voice-text {
  flex: 1 1 65%;
}

.voice-box.c .voice-inner {
  background: rgba(255, 255, 255, 0.75);
  padding: 18px 20px;
  border-radius: 6px;
  line-height: 1.9;
  color: #222;
}

.voice-box.c .voice-inner .name {
  margin-top: 10px;
  font-weight: 600;
  color: #3b1d54;
}

/* 右：画像２枚 */
.voice-box.c .voice-image {
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.voice-box.c .voice-image img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

/* スマホ対応 */
@media (max-width: 520px) {
  .voice-box.c .voice-content {
    flex-direction: column;
    align-items: center;
  }

  .voice-box.c .voice-image {
    justify-content: center;
  }
}

/* 活動ご案内セクション */
/* 背景をブラウザ全幅で */
.activity-bg {
  width: 100%;
  background: #e8e9ee;
}

/* セクション本体 */
.activity-section {
  padding: 60px 0;
}

/* コンテンツを中央寄せ */
.activity-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 見出し */
.activity-inner h3 {
  font-size: 1.8em;
  font-weight: 700;
  color: #222;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* 各項目リスト */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 項目ごとに横並び */
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

/* 左のタイトル部分 */
.activity-title {
  flex: 0 0 230px;
  font-weight: 700;
  color: #005c91; /* 再生塾ブルー */
  font-size: 1em;
  line-height: 1.7;
}

/* 右側の本文 */
.activity-text {
  flex: 1;
  font-size: 0.95em;
  color: #222;
  line-height: 1.9;
}

/* レスポンシブ（スマホ） */
@media (max-width: 520px) {
  .activity-item {
    flex-direction: column;
    gap: 8px;
  }
  .activity-title {
    flex: none;
    font-size: 1em;
  }
}

/* セクション全体（中央寄せ） */
.contact-section {
  padding: 0px 0 0px;
  background: #fff;
}

.contact-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
}

/* 上段の団体名 */
.contact-name {
  font-weight: 600;
  color: #008192; /* 青緑系アクセント */
  font-size: 1.05em;
  margin-bottom: 10px;
}

/* サブ括弧部分 */
.contact-sub {
  font-weight: 400;
  color: #008192;
}

/* 住所・電話・メール */
.contact-address,
.contact-tel {
  color: #222;
  font-size: 0.95em;
  line-height: 1.8;
  margin-bottom: 4px;
}

/* メールリンク */
.contact-tel a {
  color: #222;
  text-decoration: none;
}

.contact-tel a:hover {
  text-decoration: underline;
}

/* URL（大きく強調） */
.contact-url a {
  font-size: 1.4em;
  font-weight: 600;
  color: #000;
  text-decoration: none;
}

.contact-url a:hover {
  text-decoration: underline;
}

/* スマホ対応 */
@media (max-width: 520px) {
  .contact-section {
    padding: 20px 0 20px;
  }

  .contact-url a {
    font-size: 1.1em;
    word-break: break-all;
  }
}

/*======================================*/
.about {
  background: #e9f4f5;
  padding: 30px;
  border-radius: 8px;
}

.guidance {
  background: #f7f7f7;
  padding: 30px;
  border-radius: 8px;
}

.courses .course {
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 8px;
}

.course-a { background: #e7f0e3; }
.course-b { background: #e6f2fa; }
.course-c { background: #f2e5ec; }
.course-d { background: #e5eef3; }

.voices {
  background: #f3f7f8;
  padding: 30px;
  border-radius: 8px;
}

/* Footer */
.site-footer {
  padding: 20px 10px 60px; /* 帯分の余白下に追加 */
  text-align: center;
  font-size: 0.85em;
  position: relative;
}

/* フッター下部の帯 */
.site-footer::after {
  content: "";
  display: block;
  width: 100%;
  height: 79px;
  background: url("../img/top/strip_block.png") repeat-x center bottom;
  background-size: auto;
  position: absolute;
  bottom: 0;
  left: 0;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .site-footer::after {
    background-image: url("../img/top/strip_block@2x.png");
  }
}


/* Responsive */
@media (max-width: 520px) {
  .seminar-news {
    flex-direction: column;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
  }

  .main-nav a {
    margin: 5px 0;
  }

  section {
    margin: 20px auto;
    padding: 0 15px;
  }

  .logo {
    font-size: 1.5em;
  }
}

@media (max-width: 520px) {
  html {
    font-size: 90%;
  }
}

/* ==============================
   Hamburger Menu (Mobile)
============================== */
.hamburger {
  display: none;
  position: absolute;
  top: 18px;
  right: 20px;
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #333;
  border-radius: 2px;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* メニュー開いた状態（×に変形） */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* スマホ用メニュー本体 */
@media (max-width: 520px) {

  .hamburger {
    display: block;
  }

  #wrap-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 10px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
    z-index: 1000;
    padding-top: 80px;
  }

  #wrap-menu.open {
    right: 0;
  }

  .main-menu ul,
  .sub-menu ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  .main-menu li,
  .sub-menu li {
    margin: 8px 0;
  }

  /* 背景オーバーレイ */
  .menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
  }

  .menu-overlay.show {
    display: block;
  }
}

@media (max-width: 520px) {

  .wrap-header-items {
    flex-direction: column;
    align-items: left;
  }

  .logo {
    margin: 5px 0px 5px 0px;
    font-size: 1.8em;
    padding-left: 20px;
  }

  #wrap-menu {
    width: 100%;
    margin-top: 0;
  }

  .main-menu ul,
  .sub-menu ul {
    justify-content: left;
    padding: 8px 10px;
  }

  .main-menu a,
  .sub-menu a {
    font-size: 1.1em;
    padding: 8px 0;
  }

}
@media (max-width: 520px) {	/**/

  /* hero全体で切り取る */
  section.hero {
    overflow: hidden;
    margin-top: 60px;
  }
  
  .wrap-hero {
    margin-top: 0px !important;
  }

  /* 画像を中央拡大 */
  .hero-image {
    width: calc(100% + 350px); /* 左右100pxずつ */
    max-width: none;
    position: relative;
    left: 47.8%;
    transform: translateX(-50%);
  }

  .hero-image-bg {
    width: calc(100% + 80px); /* 左右100pxずつ */
    max-width: none;
    left: 53.8%;
    top: 22.5%;
    transform: translateX(-50%);
  }
  .hero-kumo {
    position: absolute;
  }
  .hero-kumo.kmleft {
    top: 8.5%;
/*    width: 26.33% !important;*/
    width: 23.33% !important;
    left: 70% !important;
    z-index: 100;
  }
  .hero-kumo.kmright {
    top: 2.0%;
/*    width: 21.25% !important;*/
    width: 24.25% !important;
    left: -3%;
    z-index: 100;
    transform: scale(-1, 1);
  }
  .hero-text {
    top: 6.5%;     /* 102 / 元画像高さ * 100 */
    width: 7.0% !important;       /* ← 元画像に対する横幅比率 */
    z-index: 100;
  }
  .hero-text.t1 {
    left: 84.0%;   /* 1605 / 2048 * 100 */
  }
  .hero-text.t2 {
    left: 74.5%;   /* 1477 / 2048 * 100 */
  }
  .hero-text.t3 {
    left: 10.7%;   /* 431 / 2048 * 100 */
  }

  .seminar-block,
  .news-block {
    padding: 0px 0px 0px 0px;
  }

 .about-section {
     padding: 10px   20px  20px 20px;;
  }  

  .seminar-content {
    gap: 10px;
  }

  .seminar-section {
    padding: 20px 0;
  }

  .seminar-inner h2 {
    font-size: 1.6em;
  }

  .courses-inner h2 {
    margin-bottom: 20px;
    font-size: 1.6em  !important;
  }

  .course-box {
    padding: 10px;
  }

  .course-header {
    margin: 10px;
  }

  .course-body {
    padding: 10px;
  }

  .course-text p {
    margin-block-start: 0em !important;
    margin-block-end: 1em;
  }

  .schedule span {
    display: block;
    line-height: 1.3em;      
  }

  .voice-box.b {
    padding: 15px;
  }

  voice-image img {
    width: 100%;
  }

  .activity-section {
    padding: 20px 0;
  }

  .activity-inner h3 {
    margin-bottom: 20px;
    font-size: 1.7em;      
  }

  .contact-name span {
    display: block;
  }

  .voice-box.b {
    margin-bottom: 10px;
  }

  .voice-inner {
    padding:  15px !important;
  }

  .courses-inner {
    padding: 0 0px;
  }

  .voice-box.b, .voice-box.c {
      padding: 20px;  
  }

  .seminar-text {
    margin-bottom: 10px;
  }
}
  .voice-inner p {
    margin-block-start: 0em;
    margin-block-end: 0em;    
  }

  p {
    margin-block-start: 0em;
    margin-block-end: 0em;    
  }

  
/* ==========================
   Mobile Accordion Menu
========================== */
@media (max-width: 520px) {

  .main-menu ul {
    align-items: stretch;
  }

  /* サブメニュー初期状態 */
  .main-menu .sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 10px;
  }

  /* 開いた状態 */
  .main-menu li.open > .sub-menu {
    max-height: 500px; /* 中身に応じて十分大きく */
  }

  /* 矢印アイコン */
  .main-menu li.has-sub > a::after {
    content: "";
    width: 0;
    height: 0;
    margin-left: auto;
    margin-right: 20px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #333;

    transition: transform 0.2s ease;
  }

  /* 開いたとき（上向き） */
  .main-menu li.open > a::after {
    transform: rotate(180deg);
  }

}

/* ===== PC：サブメニューを横一列固定 ===== */
@media (min-width: 521px) {
  .main-menu li.has-sub > .sub-menu {
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% + 4px);  /* ← ここを微調整 */
  }

  .main-menu li.has-sub > .sub-menu ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;        /* ← ★最重要 */
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 0;
  }

  .main-menu li.has-sub > .sub-menu li {
    white-space: nowrap;      /* 折り返し防止 */
  }

  .sub-menu li {
    position: relative;
    padding: 0;
    margin: 0;
  }
  
  .sub-menu li + li::before {
    content: "｜";
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #bbb;
    font-weight: normal;
  }

  .main-menu a {
    font-weight: 500;
  }

  .sub-menu a {
    line-height: 1.6;
  }

  .main-menu li.has-sub > .sub-menu {
    padding: 6px 20px;
  }

  .main-menu a.selected {
    font-weight: 700 !important;
  }
}
    

@media (max-width: 520px) {

  /* wrap-menu に逃げ場を作る */
  #wrap-menu {
    padding-right: 24px;
  }

  .main-menu ul {
    padding: 16px 20px;
    width: 100%;
  }

  .main-menu li {
    width: 100%;
  }

  .main-menu > ul > li > a {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 14px 0;
  }

  /* ▼ PC用を消す */
  .main-menu li.active::after {
    display: none;
    content: none;
  }

    /* サブメニュー初期状態 */
  .main-menu .sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  /* 開いた状態（JSが付ける） */
  .main-menu li.open > .sub-menu {
    max-height: 500px;
  }

}

@media (max-width: 520px) {

  /* sub-menu を通常フローに戻す */
  .main-menu li.has-sub > .sub-menu {
    position: static;          /* ← absolute を殺す */
    transform: none;           /* ← translateX を殺す */
    width: 100%;
    background: transparent;
    padding: 4px 0 8px 16px;   /* ← 左インデント */
  }

  /* sub-menu 中の ul */
  .main-menu .sub-menu ul {
    align-items: flex-start;
    padding: 0;
  }

  /* sub-menu の li */
  .main-menu .sub-menu li {
    margin: 6px 0;
  }

  /* sub-menu のリンク */
  .main-menu .sub-menu a {
    font-size: 1em;
    line-height: 1.5;
    text-align: left;
  }
}

@media (max-width: 520px) {

  /* ==== sub-menu 全体を完全リセット ==== */
  .main-menu li.has-sub > .sub-menu {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;

    width: 100% !important;
    max-width: 100% !important;

    background: transparent;
    padding: 6px 0 10px 20px;
    margin: 0;
  }

  /* ==== ul も完全に縦＆左寄せ ==== */
  .main-menu li.has-sub > .sub-menu ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;

    padding: 0 !important;
/*    margin: 0 !important;*/
  }

  /* ==== li ==== */
  .main-menu li.has-sub > .sub-menu li {
    width: 100%;
    margin: 6px 0;
  }

  /* ==== a ==== */
  .main-menu li.has-sub > .sub-menu a {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 1em;
    line-height: 1.5em;
  }
}

@media (max-width: 520px) {

  .main-menu > ul > li {
    border-bottom: 1.5px solid #7fa6b8;
    line-height: 1.5em;
  }

  /* 最後だけ消す（好みで） */
  .main-menu > ul > li:last-child {
    border-bottom: none;
  }

}

@media (max-width: 520px) {

  .sub-menu li {
    border-bottom: 1px solid #7fa6b8;
    padding: 6px 30px;
  }

  .sub-menu li:last-child {
    border-bottom: none;
  }

}

@media (max-width: 520px) {


  /* スマホメニュー全体 */
  #wrap-menu {
    background: #f2fbfe;   /* ← 全体の薄い青 */
  }

  @media (max-width: 520px) {

  .main-menu > ul > li {
    background: #f2fbfe;   /* ← 全体の薄い青 */
    border-radius: 0px;
    margin-bottom: 6px;
    padding: 0 8px;
  }

  .main-menu > ul {
    background: #f2fbfe;   /* ← 全体の薄い青 */
  }

  .main-menu a {
    line-height: 1.5 !important;
  }

  .main-menu ul {
    gap: 0;
  }

  .sub-menu ul {
    gap: 0 !important;
  }
}

@media (max-width: 520px) {

  /* ===== 閉じている状態 ===== */
  .main-menu li.has-sub > .sub-menu {
    max-height: 0;
    overflow: hidden;
    padding: 0 !important;      /* ← ★これが最重要 */
    margin: 0 !important;
    border: none !important;
    background: transparent;
  }

  /* ===== 開いた状態 ===== */
  .main-menu li.open > .sub-menu {
    max-height: 500px;
    padding: 6px 0 10px 20px;   /* ← 開いた時だけ */
    background: transparent;
  }

  /* ===== sub-menu li ===== */
  .main-menu li.has-sub > .sub-menu li {
    padding: 10px 0 10px 10px;
    border-bottom: 2px solid #6b93a6; /* ← 少し濃く */
  }

  .main-menu li.has-sub > .sub-menu li:last-child {
    border-bottom: none;
  }

    /* 親の角丸を殺す */
  .main-menu ul {
    border-radius: 0 !important;
/*    background-color: transparent;*/
  }

  /* メニュー1項目ずつをフラットに */
  .main-menu > ul > li {
    border-radius: 0;
  }
}

@media (max-width: 380px) {
  .hero-image-bg {
      top: 24.0% !important;
  }   
}

