/*----------------------------------------
  リセットCSS & 基本設定
----------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  font-family: 'Segoe UI', sans-serif;
  scroll-snap-type: y mandatory;
  overflow-y: auto;
  overflow-x: hidden;
}

:root {
  --header-height: 130px;
}

/*----------------------------------------
  共通要素スタイル
----------------------------------------*/

ul, ol {
  list-style: none;
}

a {
  text-decoration: none;
}

article, aside, footer, header, nav, section {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/*----------------------------------------
  ヘッダー & ナビゲーション
----------------------------------------*/

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 88px;
  background-color: #3171b9;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 30px;
  box-sizing: border-box;
  z-index: 1000;
}

.logo {
  width: 500px;
  height: 88px;
  display: flex;
  align-items: center;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
  gap: 30px;
  margin: 10px;
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0em 0.1em;
  height: 2.5em;
  line-height: 1;
  font-size: 14px;
  font-weight: bold;
  color: white;
  text-decoration: none;
  box-sizing: border-box;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

.nav-links a:hover {
  color: #ff8c00;
}

.nav-contact-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.85em;
  color: white;
}

.contact-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.contact-row span {
  white-space: nowrap;
}

.menu-toggle {
  display: none;
}

.menu-toggle.open::before {
  content: "X";
}

.thislocation {
 position: relative;
  display: inline-block;
  padding: 20px 10px;
  background-color: #1D9EBF;
  color:#FFFFFF;
  border-radius: 10px;
}
.br-sp {
  display: none;
}

/*----------------------------------------
  サブナビゲーション
----------------------------------------*/

.sub-nav {
  background-color: #f8f8f8;
  padding: 10px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  text-align: center;
  position: fixed;
  top: 88px;
  left: 0;
  width: 100%;
  z-index: 1000;
  overflow: auto;
}

.sub-nav ul {
  display: inline-flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
justify-content: center;
}

.sub-nav li a {
  color: #333;
  font-weight: 500;
  padding: 5px 10px;
  transition: color 0.3s ease;
  text-decoration: none;
}

.sub-nav li a:hover {
  color: #0078d4;
}

.sub-nav li p {
  font-weight: 500;
  padding: 5px 10px;
  transition: color 0.3s ease;
}
/* PC版ではサブナビ開閉ボタンを非表示 */
.sub-nav-toggle {
  display: none;
}

/* PC版では閉じるボタンを非表示 */
.sub-nav-close {
  display: none;
}

/*----------------------------------------
  Seven Summits セクション
----------------------------------------*/

.section-anchor {
       scroll-margin-top: 140px;
    scroll-snap-align: start;
    box-sizing: border-box;
  }

.subtitle {
  font-size: 1.2em;
  text-align: center;
  color: #005599;
  margin-bottom: 40px;
}

.content {
  margin-bottom: 24px;
  font-size: 1.05em;
}

#seven-summits {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  background-color: #FFFFFF;
    padding-top: 80px;
}

.section-title {
  align-self: flex-start;
  width: 100%;
  text-align: center;
  margin-bottom: 1em;

}

/* 内部のフレックス構造を調整 */
.intro-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5px;
  max-width: 100%;
  margin: 0 auto;
}

/* テキストと画像のバランス調整 */
.intro-text {
  flex: 1;
  min-width: 0;
  font-size: 1em;
  line-height: 1.8;
  color: #333;
}

.intro-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  object-fit: contain;
}

.intro-image img {
  width: 100%;
  height: auto;
  max-width: 800px;
}

#seven-summits h2 {
  font-size: 2em;
  margin-bottom: 0.5em;
  color: #07346B;
  border-bottom: 2px solid #07346B;
  padding-bottom: 0.3em;
}

#seven-summits h3 {
  font-size: 1.4em;
  margin-top: 2em;
  margin-bottom: 0.5em;
  color: #07346B;
}

#seven-summits p {
  margin-bottom: 1em;
}

#seven-summits .note {
  font-size: 0.9em;
  color: #666;
  margin-top: 0.5em;
}

#seven-summits_list {
  scroll-snap-align: start; /* スクロールスナップの開始位置 */
  display: flex;
  flex-direction: column;
  justify-content: center; /* 垂直中央揃え */
  padding: 40px 20px;
  box-sizing: border-box;
  background-color: #FFFFFF; /* 任意の背景色で視認性アップ */
}

#seven-summits_list table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  background-color: #fff;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

#seven-summits_list th,
#seven-summits_list td {
  border: 1px solid #ddd;
  padding: 0.75em;
  text-align: left;
}

#seven-summits_list th {
  background-color: #e6f2ff;
  color: #003366;
}

#seven-summits_list ul {
  padding-left: 1.2em;
  margin-bottom: 1em;
}

#seven-summits_list li {
  margin-bottom: 0.5em;
}

.big {
  text-align: center;
  font-size: 30px;
  color: #E33437;
}

#guest {
  margin: 20px;
}

/*----------------------------------------
  CPmesse セクション
----------------------------------------*/

.CPmesse-container {
  padding-top: 130px;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
    min-height: 100vh;
}

.headline-wrap {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
    }

#CPmesse {
  height: 100vh; /* 画面全体に表示 */
  position: relative;
  z-index: 1;
}

#CPmesse .headline-wrap {
  position: relative;
  z-index: 2;
  color: white; /* 背景に応じて調整 */
}
.main-text-box p {
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-size: 1rem;
  text-align: justify;
  max-width: 680px;
    color: rgba(237,234,234,1.00);
}

.headline {
  font-size: 36px;
  font-weight: 700px;
  text-align: center;
  margin: 25px;
  color: #01243f;
}

.columns {
  display: flex;
  gap: 45px;
  overflow: hidden;
  margin: 0;
  align-items: center;
}

.photo-column {
  flex: 0.5;
  max-width: none;
  height: auto;
    margin-left: 150px;
  padding: 0;
  overflow: hidden;
}

.photo-column img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.text-box {
  flex: 0.8;
  height: auto;
    margin-left: 10px;
  margin-right: 70px;
    text-align: center;
}
.text-box h2{
    font-size:20px;
    color: #07346B;
}
.line {
  height: 1px;
    background-color:#07346B;
  margin: 20px 0;
}

.midtitle{
    font-size: 30px;
    text-align: center;
    color: rgba(39,41,48,1.00)
}

.text-box p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 12px;
  color: #01243f;
    text-align: left;
}

.text-box .closing {
  font-size: 20px;
  font-weight: bold;
  margin-top: 16px;
}

.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
}

.profile-photo {
  width: 530px;
  height: auto;
  object-fit: cover;
  margin-bottom: 20px;
}

.profile-name {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
}

.profile-description {
    font-size: 1em;
  line-height: 1.6;
}

/*----------------------------------------
  アニメーション
----------------------------------------*/
@keyframes bounce {
  0%, 100% {
    transform: translateY(0) rotate(-45deg);
  }
  50% {
    transform: translateY(8px) rotate(-45deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/*----------------------------------------
Challenger
----------------------------------------*/

#Challenger{
    height: 100vh;
}
.section-anchor {
  display: flex;
  justify-content: center;   /* 水平方向に中央揃え */
  align-items: center;       /* 垂直方向に中央揃え */
  min-height: 100vh;         /* 画面全体の高さに合わせる（必要に応じて） */
}

.columns {
  display: flex;
  flex-direction: row;
  gap: 2rem;                 /* 写真とテキストの間隔 */ 
}

/*----------------------------------------
complete1
----------------------------------------*/

.complete1 {
  margin: 0;
  padding: 0;
}

.complete1 img {
  display: block;           /* 余白をなくすため */
  width: 100vw;             /* ビューポートの幅いっぱいに */
  height: 100vh;            /* ビューポートの高さいっぱいに */
  object-fit: cover;        /* アスペクト比を保ちつつ切り取り表示 */
}

/*----------------------------------------
complete2
----------------------------------------*/

.complete2 {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200vh; /* 必要に応じて 100vh 以上に調整可能 */
  overflow: hidden;
}

#complete2 img {
  width: 100vw;         /* 横幅を画面いっぱいに */
  height: auto;         /* 高さは比率に応じて自動調整 */
  max-height: 100vh;    /* 縦が伸びすぎないように制限（調整可） */
  object-position: center;
  display: block;
}

/*----------------------------------------
Challenger
----------------------------------------*/

.columns2 {
  display: flex;
  gap: 16px;
  overflow: hidden;
    margin-left: 10px;
  align-items: center;
}

figcaption{
    margin-left: 10px;
}

/*----------------------------------------
 gallery-memory-
----------------------------------------*/

.gallery {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

.row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.item {
  margin: 10px;
  text-align: center;
  cursor: pointer;
}

.item img {
  width: 150px;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s;
}

.item img:hover {
  transform: scale(1.05);
}

.item p {
  margin-top: 8px;
  font-size: 14px;
  color: #333;
}

/* モーダル */

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
}

#modal-caption {
  text-align: center;
  color: white;
  margin-top: 10px;
}

.close {
  position: absolute;
  top: 30px; right: 40px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

/* スマホ対応 */
@media screen and (max-width: 600px) {
  .row {
    flex-direction: column;
    align-items: center;
  }

  .item img {
    width: 90%;
  }
}

/*----------------------------------------
  フッター
----------------------------------------*/

footer {
  background-color: #3171b9;
  color: #fff;
  padding: 40px 20px;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-left{
  flex: 1 1 300px;
  margin: 10px;
}

.footer-logo {
  width: 160px;
  margin-bottom: 15px;
}

.footer-left p:first-child {
  margin-top: 5px; /* h4と同じ高さに揃える */
}

.footer-right {
  flex: 1 1 300px;
  margin: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.footer-right h4 {
  font-size: 16px;
  margin: 5px 0; /* 上下の余白を左と揃える */
  border-bottom: 1px solid #fff;
  padding-bottom: 5px;
}

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

.sitemap li {
  margin: 6px 0;
}

.sitemap a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
}

.sitemap a:hover {
  opacity: 0.7;
}

/* 初期状態（PCでは非表示） */
.menu-toggle {
  display: none;
}

/*----------------------------------------
  レスポンシブ対応（max-width: 768px）
----------------------------------------*/
@media screen and (max-width: 768px) {

    header {
    position: fixed;
    top: 0;
    left: 0;
    height: 90px;
    padding: 0 15px;
  }

  .menu-toggle {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    display: block;
    font-size: 28px;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 25px;
    z-index: 1100;
    color: #FFF;
    transition: all 0.3s ease;
  }

  .nav-container {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #3171b9;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
    margin: 0;
    padding: 0;
  }

  .nav-container.active {
    max-height: 800px;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .nav-links a {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: #fff;
    text-align: center;
  }

  .nav-contact-info {
    padding: 10px 15px;
    color: #fff;
  }

  .photo-column {
    order: 2;
  }

  .text-box {
    order: 1;
    text-align: center;
    margin-right: 0;
  }

  .columns {
    flex-direction: column;
    align-items: center;
  }

  .photo-column,
  .text-box {
    flex: none;
    width: 100%;
  }

  html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  *, *::before, *::after {
    box-sizing: inherit;
  }

  #CPmesse {
    width: 100%;
    padding-top: 90px;
    margin-top: 90px;
  }

  #CPmesse h1 {
    font-size: 3rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
  }

  .contents-field {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 5vw;
    text-align: center;
  }

  .text-box {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    text-align: center;
  }


/*----------------------------------------
  レスポンシブ対応（max-width: 768px）
----------------------------------------*/
/* Seven Summits セクション */

#seven-summits {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  background-color: #FFFFFF;
  padding-top: 80px;
}
    
 h2.section-title {
    text-align: center;
    margin-bottom: 1em;
    line-height: 1.2 !important; /* ← ここが重要 */
  }

.section-title {
  align-self: flex-start;
  width: 100%;
  text-align: center;
  margin-bottom: 1em;
}
 .br-sp {
    display: inline-block;
    width: 100%; 
    height: 0;       /* ← 余白をゼロに */
    line-height: 0;     /* ← 行間もゼロに */
    margin: 0;          /* ← 念のため余白を完全に消す */
    padding: 0;
  }


.intro-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5px;
  max-width: 100%;
  margin: 0 auto;
}

.intro-text {
  flex: 1;
  min-width: 0;
  font-size: 1em;
  line-height: 1.8;
  color: #333;
    margin: 0 10px;
}

.intro-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.intro-image img {
  width: 100%;
  height: auto;
  max-width: 800px;
}

#seven-summits h2 {
  font-size: 2em;
  margin-bottom: 0.5em;
  color: #07346B;
  border-bottom: 2px solid #07346B;
  padding-bottom: 0.3em;
}

#seven-summits h3 {
  font-size: 1.4em;
  margin-top: 2em;
  margin-bottom: 0.5em;
  color: #07346B;
}

#seven-summits p {
  margin-bottom: 1em;
}

#seven-summits .note {
  font-size: 0.9em;
  color: #666;
  margin-top: 0.5em;
}

/* Seven Summits List */
#seven-summits_list {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
  background-color: #FFFFFF;
}

#seven-summits_list table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  background-color: #fff;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

#seven-summits_list th,
#seven-summits_list td {
  border: 1px solid #ddd;
  padding: 0.75em;
  text-align: left;
}

#seven-summits_list th {
  background-color: #e6f2ff;
  color: #003366;
}

#seven-summits_list ul {
  padding-left: 1.2em;
  margin-bottom: 1em;
}

#seven-summits_list li {
  margin-bottom: 0.5em;
}

.big {
  text-align: center;
  font-size: 30px;
  color: #E33437;
}

/* CPmesse セクション */
.CPmesse-container {
  padding-top: 130px;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.headline-wrap {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

#CPmesse {
  height: 100vh;
  position: relative;
  z-index: 1;
}

.main-text-box p {
  margin: 0 10px;
  padding: 0;
  line-height: 1.6;
  font-size: 1rem;
  text-align: justify;
  max-width: 680px;
  color: rgba(237,234,234,1.00);
}

.headline {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin: 25px;
  color: #01243f;
}

/* Challenger セクション */
.columns {
  display: flex;
  gap: 45px;
  overflow: hidden;
  margin: 0;
  align-items: center;
}

.photo-column {
  flex: 0.5;
  max-width: none;
  height: auto;
  margin-left: 150px;
  padding: 0;
  overflow: hidden;
}

.photo-column img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.text-box {
  flex: 0.8;
  height: auto;
  margin: 0 10px;
  margin-right: 70px;
  text-align: center;
}

.text-box h2 {
  font-size: 20px;
  color: #07346B;
}

.line {
  height: 1px;
  background-color: #07346B;
  margin: 20px 0;
}

.text-box p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 12px;
  color: #01243f;
  text-align: left;
}

/* 完全画像セクション */
.complete1 img {
  display: block;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}

/* Columns2 */
.columns2 {
  display: flex;
  gap: 16px;
  overflow: hidden;
  margin-left: 10px;
  align-items: center;
}

/* サイトマップ */
.sitemap {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap li {
  margin: 6px 0;
}

.sitemap a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
}

.sitemap a:hover {
  opacity: 0.7;
}

/* ナビゲーション */
.menu-toggle {
  display: none;
}
}

@media screen and (max-width: 768px) {
  header {
    position: fixed;
    top: 0;
    left: 0;
    height: 90px;
    padding: 0 15px;
  }
    
    .logo img {
  width: 80%;
  height: 100%;
  object-fit: contain;
}
  .menu-toggle {
    font-family: 'Segoe UI','Arial',sans-serif;
    display: block;
    font-size: 28px;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 25px;
    z-index: 1100;
    color: #FFF;
    transition: all 0.3s ease;
  }

  .nav-container {
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    background: #3171b9;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
    margin: 0;
    padding: 0;
      margin-top: 130px;
    z-index: 1600;
  }

  .nav-container.active {
    max-height: 800px;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .nav-links a {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: #fff;
    text-align: center;
    display: block;
  }

  .nav-contact-info {
    padding: 10px 15px;
    color: #fff;
  }

  .photo-column {
    order: 2;
    margin-left: 0;
  }

  .text-box {
    order: 1;
    text-align: center;
    margin-right: 0;
  }

  .columns,
  .columns2 {
    flex-direction: column;
    align-items: center;
  }

  .photo-column,
  .text-box {
    flex: none;
    width: 100%;
    margin: 0 auto;
  }

  html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  *, *::before, *::after {
    box-sizing: inherit;
  }

  #CPmesse {
    width: 100%;
    padding-top: 90px;
    margin-top: 90px;
  }

  .text-box {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    text-align: center;
  }
}

/*----------------------------------------
  レスポンシブ対応（max-width: 900px）
----------------------------------------*/
@media (max-width: 900px) {
  .section-anchor {
    height: auto !important;
    padding-top: 130px;
    padding-bottom: 60px;
    box-sizing: border-box;
       scroll-margin-top: 140px;
  }

  html, body {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}

  .columns {
    grid-template-columns: 1;
    height: auto;
  }

  .text-box {
    height: auto;
    overflow: visible;
  }
    
  .CPmesse-container,
  #CPmesse-profile {
    margin-top: 0;
  }
  .CPmesse-wrap,
  #CPmesse-profile h2 {
    margin-top: 0;
    padding-top: 0;
  }
}

.head-input {
    text-align: center;
}

@media (max-width: 768px) {

  /* ▼ サブメニュー開閉ボタンをヘッダーの下に固定 */
  .sub-nav-toggle {
    display: block;
    position: fixed;
    top: 90px; /* ← ヘッダー高さに合わせて修正 */
    left: 0;
    width: 100%;
    padding: 12px;
    background: #0078d4;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    text-align: left;
    z-index: 900;
  }

  /* ▼ サブナビ本体（開閉ボタンの下に配置） */
  .sub-nav {
    display: none !important;
    position: fixed;
    top: 114px; /* ← ヘッダー90px + ボタン48px = 138px */
    left: 0;
    width: 100%;
    background: #f8f8f8;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 10px;
    z-index: 1000;
    overflow: visible;
  }

  .sub-nav.open {
    display: block !important;
  }

  /* 2列レイアウト */
  .sub-nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0;
    margin: 0;
  }

  .sub-nav li a {
    display: block;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    color: #333;
    text-decoration: none;
  }

  /* ▼ 右下の閉じるボタン */
  .sub-nav-close {
    display: block !important;
    grid-column: 2;
  }

  .sub-nav-close button {
    width: 100%;
    padding: 10px;
    background: #0078d4;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
}