/* 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;
}

h1 a:hover, a.banner {
  background-image: none !important;
  padding-bottom: 0 !important;
}


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;
}

.fee-table {
  width: 100%;
  max-width: 600px;
  margin: 30px 0 0 30px;
  border-collapse: collapse;
  font-size: 15px;
}

.fee-table th,
.fee-table td {
  padding: 12px 16px;
  border: 1px solid #ddd;
}

.fee-table thead {
  background-color: #dde3ea;
}

.fee-table th {
  font-weight: 600;
  text-align: center;
}

.fee-table td {
  text-align: center;
}

.fee-table td:first-child {
  text-align: left;
  width: 35%;
  font-weight: 700;
}

.fee-table tbody tr {
  background-color: #fff;
}

/* PDFバッジ */
a[href$=".pdf"] {
  display: inline-flex;   /* ← ここ重要 */
  align-items: center;    /* ← 縦中央揃え */
  gap: 0.5em;
  text-decoration: none;
  margin-left: 15px;
}

/* 通常リンク */
a {
  color: #1e4fa3;
  text-decoration: none;
/*  transition: all 0.2s ease;*/
}

/* hover時に下線風エフェクト */
a:hover {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1.5px;   /* 線の太さ */
  background-position: 0 100%;   /* 下に配置 */
  background-repeat: no-repeat;
  padding-bottom: 4px;           /* 文字との間隔 */
}

a[href$=".pdf"]:hover {
  padding-left: 1.00em !important;
  margin-left: 0em !important;
}

a[href$=".pdf"]::after {
  content: "[ PDF ]";
  display: inline-flex;
  align-items: center !important;
  justify-content: center !important;

  width: 2.3em;     /* ← 固定幅にする */
  height: 1.9em;

  font-size: 0.65em;
/*
  background: rgba(244, 59, 16, 0.15);
  color: rgba(198, 40, 40, 1.0);
  border: 1px solid rgba(198, 40, 40, 0.2);
*/
  border-radius: 999px;
  font-weight: 600;
  padding-left: 10px;
  text-decoration: none;
}

section.content h5 {
    font-size: 120%;
}


.seminar-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.seminar-item.is-open .seminar-detail {
  max-height: 1200px;
}

.seminar-toggle {
  margin-top: 10px;
  padding: 8px 16px;
  border: none;
  background: #e8eef2;
  border-radius: 4px;
  cursor: pointer;
}

.site-banner-wrap {
  display: flex;
  flex-direction: row !important;   
  align-items: center;
  gap: 5px 12px;
  margin-top: 40px;
  flex-wrap: wrap;
  width:110%;
}

.site-banner-wrap .banner img {
  width: 230px;
}

.banner-text {
  flex: 1;
  line-height: 1.4;
  font-size: 80%;
  margin-top: -10px;
}


.manga-story {
  margin-top: -20px;
  background: #c8e8ee;
  padding: 28px 6%;
}

.manga-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
  margin-left: -28px;
  margin-top: -10px;
}

.manga-header h2 {
  margin: 0;
  padding: 12px 34px;
  background: #3c83b4;
  color: #fff;
  font-size: 42px;
  font-weight: bold;
  line-height: 1.2;
}

.manga-header p {
  margin: 0;
  padding: 8px 0px;
  font-size: 32px;
  font-weight: bold;
  line-height: 1.2;
}

.manga-list {
  display: flex;
  gap: 70px;
  justify-content: center;
  align-items: flex-start;
}

.manga-item {
  width: calc(50% - 35px);
  max-width: 520px;
}

.manga-item h3 {
  display: inline-block;
  margin: 0 0 4px;
  padding: 4px 8px;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.manga-thumb {
  position: relative;
  background: #fff;
}

.manga-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.manga-btn {
  position: absolute;
  right: -7px;
  bottom: -7px;
  display: block;
  min-width: 150px;
  padding: 0px 12px;
  padding-bottom: 2px;
  background: #ffd943;
  color: #000;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
}

.manga-btn:hover {
  background-image: none;
}

.manga-btn:hover {
    border-color: #f00 !important;
}
.manga-story {
  background: #c8e8ee;
  padding: 28px 20px;
}

.manga-inner {
  max-width: 980px;
  margin: 0 auto;
}

.info-manga {
  display: flex;
  flex-direction: column;    
  padding: 30px 30px 30px 30px;
  line-height: 1.6em;
}

.manga-btn {
  position: absolute;
  right: -7px;
  bottom: -7px;
  display: block;
  min-width: 150px;
  padding: 0 12px 2px;
  background: #ffd943;
  color: #000;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;

  transition: all .25s ease;
}


.manga-btn:hover + .lnk-manga,
.lnk-manga:hover {
  transform: scale(1.03);
}

.lnk-manga:hover img {
  transform: scale(1.03);
}

.manga-thumb img {
  display: block;
  transition: all .25s ease;
}

.manga-btn {
  transition: all .25s ease;
}

.manga-thumb:hover img {
  transform: scale(1.03);
}

.manga-thumb:hover .manga-btn {
  transform: translate(3px,3px);
  box-shadow: 4px 4px 10px rgba(0,0,0,.25);
}

/* ==== */
/* 現在表示中 */
.
/* 画像リンク無効 */
.manga-item.current .lnk-manga {
  pointer-events: none;
  cursor: default;
}

/* ボタン無効 */
.manga-item.current .manga-btn {
  pointer-events: none;
  cursor: default;
}

/* hover効果を無効 */
.manga-item.current:hover img,
.manga-item.current:hover .manga-btn {
  transform: none !important;
  box-shadow: none !important;
}

.manga-item.current .manga-thumb {
  border: 5px solid #3c83b4;
  box-sizing: border-box;
}

.manga-item.current .manga-btn {
  background: #3c83b4;
  color: #fff;
}

.manga-item.current .lnk-manga,
.manga-item.current .manga-btn {
  pointer-events: none;
  cursor: default;
}

.manga-item.current {
  transform: scale(1.03);
}

.manga-item.current .manga-thumb {
  box-shadow: 0 0 15px rgba(60,131,180,.4);
}

.manga-item.current h3 {
  background: #3c83b4;
  color: #fff;
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(60,131,180,.4);
}

.manga-item.current .manga-btn {
  color: transparent;
  pointer-events: none;
  cursor: default;
  background: #3c83b4;
}
.manga-item.current .manga-btn::after {
  content: "現在表示中";
  color: #fff;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ------------------------------------*/
.manga-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.manga-title-row h2 {
  margin-bottom: 30px;
}

.manga-page-links {
  font-size: 16px;
  white-space: nowrap;
  margin-top: 8px;
}

.manga-page-links a {
  color: #1f6680;
  text-decoration: none;
}

.manga-page-links a:hover {
  text-decoration: underline;
}

#manga-a {
  display: flex;
  width: 100%;
  max-width: 100%;
  gap: 10px;
}
#manga-a img {
  width: calc(50% - 10px);
  height: auto;
  display: block;
}

#manga-b {
  display: flex;
  width: 100%;
  max-width: 100%;
  gap: 5px;
  margin-top: 180px;
}

#manga-b img {
  width: calc(50% - 10px);
  height: auto;
  display: block;
}

#manga-c {
  margin-top: 80px;
  margin-bottom: 150px;
}    

div.manga-title-row {
  margin-bottom: 40px;
}

#manga-c img {
  width: 100%;
  max-width: 100%;
  margin-top: 50px;
}

.banner.small img {
  width: 70%;    
}

.info-manga {
  display: flex;
  flex-direction: row;    
  padding: 20px;
  margin-top: 20px;
  gap: 40px;
}

/* トップページのNEWS欄のボタン調整
/* 開閉ボタン：リンク風・控えめ */
.seminar-toggle {
  margin-top: 10px;
  padding: 4px 0;
  border: none;
  background: transparent;
  color: #1c5f79;
  font-weight: 700;
  cursor: pointer;
}

.seminar-toggle::before {
  content: "▼ ";
}

.seminar-item.is-open .seminar-toggle::before {
  content: "▲ ";
}

.seminar-toggle:hover {
  text-decoration: underline;
}

/* ページ遷移ボタン：CTAとして強調 */
.btn-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9em;
  color: #fff;
  background: #1c5f79;
  padding: 7px 16px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 1px 2px 4px rgba(0,0,0,0.15);
}

.btn-more:not(.past)::after {
  content: " →";
}

.btn-more:hover {
  background: #164b60;
  background-image: none;
  padding-bottom: 7px;
}

.seminar-summary p {
  margin-bottom: 6px;
}

.seminar-toggle {
  margin-top: 0px;
}

@media screen and (max-width: 768px) {
  .banner.small img {
    width: 100% !important;
    margin-top: 20px;
    margin-bottom: 20px;
  }      
  .info-manga {
    display: flex;
    flex-direction: column;      
    padding: 20px;
    margin-top: 20px;
    gap: 10px;
  }
  .manga-title-row h2 {
    display: flex;
    flex-direction: column;
    color: #3c83b4 !important;
    font-size: 120% !important;
    gap: 0 !important;
    margin-left: 15px;
  }
  .manga-title-row h2 span {
    color: #3c83b4 !important;
    font-size: 160% !important;
    margin-top: -10px;
  }
  
  #manga-a {
    flex-direction: column-reverse;	
    gap: 50px;
  }
  #manga-a img {
    width: 90% !important;
    margin-left: 18px;      
  }

  #manga-b {
    flex-direction: column-reverse;	
    gap: 10px;
    margin-top: 150px;
  }
  #manga-b img {
    width: 90% !important;
  }
  #manga-b img:nth-child(1) {
    margin-left: 25px;
  }
  #manga-b img:nth-child(3) {
      margin-left: 5px;
  }
  #manga-c img {
    width: 112% !important;
    max-width: 112% !important;
    margin-left: -15px;
  }
  
  .manga-title-row {
    display: block;
  }

  .manga-page-links {
    text-align: right;
    margin-bottom: 20px;
  }

  .manga-header p {
    margin-left: 30px;
  }
}
/* ------------------------------------*/

@media screen and (max-width: 768px) {
  .manga-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .manga-header h2 {
    font-size: 30px;
    padding: 10px 18px;
  }

  .manga-header p {
    font-size: 22px;
  }

  .manga-list {
    flex-direction: column;
    gap: 28px;
  }

  .manga-item {
    width: 100%;
    max-width: none;
  }

  .manga-item h3 {
    font-size: 22px;
  }

  .manga-btn {
    font-size: 20px;
    min-width: 160px;
  }

}
/* 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;
 }

section.content ul {
  margin: 0;
  padding: 0;
  margin-left: 1.0em;
}

section.content ul li {
  text-indent: -1.0em;
  padding-left: 1.0em;
  margin-bottom: 6px;
  line-height: 1.6em;
}

section.content h4 {
/*  background: #0b4c5e;*/
  background: rgba(28, 95, 121, 0.8);
  color: #fff;
  padding: 1px 15px 1px 15px;
  margin-top: 50px;
}

section.content h4:first-child {
  margin-top: 25px;
}

section.content .wrap {
  background: rgba(232, 233, 238, 0.4);
  padding: 5px 40px 30px 40px;
  margin-bottom: 10px;
}

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

  section.content p.msg {
    margin-bottom: 30px;
  }

}

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.1),
     1px -1px 0 rgba(255,255,255,0.1),
    -1px  1px 0 rgba(255,255,255,0.1),
     1px  1px 0 rgba(255,255,255,0.1),

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


.logo {
  font-size: 2.4em;
  font-weight: 500;
/*  background-color: #0b4c5e;*/
  background: rgba(11, 76, 94, 0.6);
  margin-left: 0px;
  display: inline-block;
  z-index: 10;
  margin-top: -2px;
  color: #fff;
  height: 67px;
  padding: 0px 20px 15px 20px !important;
  text-align: center;
}

.logo a {
  color: #fff;
  text-decoration: none;
}

.logo span {
  display: block;
  font-size: 12px;
  margin-top: -15px;
}
/*
.logo {
  font-size: 2.6em;
  font-weight: 700;
  color: #0b4c5e;
  margin-left: 40px;
  display: inline-block;
  z-index: 10;
  margin-top: 0px;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 0px 10px 3px 10px !important;
  line-height: 1.2em;
  margin-top: 5px;
  height: 1.2em;
}
*/

.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;
  z-index: 100;
}

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

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

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

/* レスポンシブ対応 */
@media (max-width: 520px) {
  section.activity-section h3 {
    font-size: 140%;
    margin-left: -0.5em;
  }
  section.contact ul li img {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
  }
  section.content h4 {
    padding: 5px 15px 5px 15px;
  }
  section.content {
    margin-top: 90px !important;
  }
  section.content .wrap {
    padding: 1px 20px 30px 20px;
    margin-bottom: 10px;
  }
  .fee-table {
    margin: 30px 0 0 0px;
  }
  .fee-table td:first-child {
    width: 40%;
  }
  section.content ul {
    margin-left: 0;
  }
    
  .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;
  margin-top: -20px;
  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: 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: rgba(28, 95, 121, 0.9);
}

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;
  margin-left: 8px;
}

/* リスト */
.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 {
    width: 110px !important;
    max-width: 110px;
    padding: 0 !important;
    height: 49px;
    text-align: center;
  }
  .logo {
    margin: 0px 0px 0px 0px !important;
    font-size: 1.6em;
    line-height: 60px !important;
    height: 60px !important
  }

  #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;
  }

    /* 右端とその手前（最後の2つ）を右基準に */
  .main-menu > ul > li:nth-last-child(-n+2) > .sub-menu {
    left: auto;
    right:-70px;
    transform: none;
  }

  .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;
  }   
}


