/* === ベース設定 === */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* === グローバルナビ・ヘッダー === */
@media (min-width: 769px) {
  body .header-inner:not(.scrolled) .site-branding {
  margin-top: -40px; /* 必要に応じて -15px や -5px に調整 */
}
  .menu-toggle { display: none !important; }

  .site-header.overlay-header {
    position: absolute; top: 0; left: 0; right: 0; width: 100%; z-index: 10;
    background: none !important;

  }

  .header-inner {
    margin: 0 auto; 
    padding: 0; 
    max-width: 1140px; 
    width: 100%; 
    display: flex; 
    justify-content: 
    center;
  }

  .header-row {
    display: flex; justify-content: center; align-items: center; gap: 2em; max-width: 1140px; margin: 0 auto;
  }

  .site-branding {
    display: flex; align-items: center; flex-shrink: 0; margin-right: 3em ; 
  }

  .site-branding img {
    height: 50px; width: auto; object-fit: contain; display: block;
  }

  .global-nav-re {
    flex-grow: 0; display: flex; justify-content: center;
  }

  .global-nav-re ul {
    display: flex; justify-content: center; list-style: none; margin: 0; padding: 0; gap: 3em;
  }

  .global-nav-re ul li { text-align: center; }

  .global-nav-re ul li a {
    color: #fff; font-weight: bold; text-decoration: none; font-size: 1rem; line-height: 1.2;
  }

  .global-nav-re ul li a span {
    display: block; font-size: 0.75rem; opacity: 0.7; color: #fff;
  }

    .global-nav-re ul li a:hover { color: #fff; }
    .global-nav-re ul li a:hover span { color: #FFF; }


  .header-inner .global-nav-re {
  /*background-color: rgba(0, 0, 0, 0.95);*/
  transform: translateY(-100%);
  transition: transform 0.8s ease;
  margin-top: 30px; /* ← ★ 追加：透過ナビが最初に下がって表示されるように */
}   

 .header-inner.scrolled {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   width: 100vw !important;
   max-width: none !important; /* ← 必須 */
   transform: translateY(0)　!important; 
   background-color: rgba(0, 0, 0, 0.95)!important;  
   height: 70px;
   z-index: 0;
   margin: 0 !important;
   padding: 0 !important;
  }  

/* 最上部へ戻ったときは即時表示させる */
.header-inner.no-transition .global-nav-re {
  transition: none !important;
}
/* ヘッダー自体のアニメーションを止める */
.header-inner.no-transition {
  transition: none !important;
  transform: none !important; /* 状況により追加 */
}
.header-inner.no-transition.scrolled {
  transition: none !important;
  transform: none !important;
}





  .header-inner.scrolled .header-row {
    display: flex; justify-content: center; align-items: center; gap: 2em; max-width: 1140px; margin: 0 auto;
  }


  .header-inner.scrolled .global-nav-re {
    margin: 0 !important; 
    flex-grow: 0 !important; 
    transform: translateY(0px);
  }
    .header-inner.scrolled .global-nav-re ul li a {color: #fff;}
    .header-inner.scrolled .global-nav-re ul li a span { color: white; }
  .header-inner.scrolled .global-nav-re ul li a:hover {
  color: rgb(217, 102, 9);
}


}


/* モバイル時の制御 */
@media (max-width: 768px) {

  /* --------------------
     リセット・レイアウト調整
  -------------------- */
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    height: 100% !important;
    overflow-x: hidden;
  }

  body {
    position: relative !important;
    top: 0 !important;
  }

  * {
    box-sizing: border-box;
  }

  #wpadminbar {
    position: fixed !important;
    top: -100px !important;
    height: 0 !important;
    overflow: hidden !important;
    z-index: -1 !important;
  }

  /* --------------------
     ヘッダー・ロゴなど
  -------------------- */
  .site-header.overlay-header {
    position: fixed !important;
    top: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    z-index: 9999;
  }


  .header-inner {
    background: transparent !important;
  }



  .site-branding,
  .scroll-indicator {
    display: none !important;
  }

  /* --------------------
     トグルボタン（☰）
  -------------------- */
  .menu-toggle {
    display: block;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10000;
    font-size: 28px;
    background: none;
    border: none;
    color: #fff;
    }
  
  body.blog  .menu-toggle {
  color: #fff !important;
}


  /* --------------------
     ナビゲーションメニュー
  -------------------- */

.global-nav-re {
  position: fixed;
  top: 80px;
  left: 5%;
  width: 90%;
  max-height:75vh;
  height: auto;
    
  background :rgba(0, 0, 0, 0.95); /* ← 黒背景はこの中だけ */
  z-index: 10000;
  padding: 1.5em 1em;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-50px) scale(0.96);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  pointer-events: none;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  visibility: hidden;
  border: 2px solid #fff;  /* ← 白い枠線を追加 */
  border-radius: 10px;     /* （任意）角丸がある場合 */
}


.global-nav-re.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}



  .global-nav-re ul {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .global-nav-re ul li a {
    display: block;
    width: 100%;
    font-size: 1.3rem;
    color: #fff;
    text-decoration: none;
    line-height: 1.5;
    text-align: left;
  }

  .global-nav-re ul li a span {
    display: none;
  }

  /* --------------------
     閉じるボタン（✕）
  -------------------- */
  .menu-close {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
  }

  .global-nav-re.open .menu-close {
    display: block;
  }

  /* --------------------
     オーバーレイ（背景黒）
  -------------------- */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }

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

}


/* ヒーローセクション */
.hero-visual {
  width: 100vw; height: 100vh; overflow: hidden; position: relative; margin: 0; padding: 0;
}
.hero-bg-layer {
  position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; background-size: cover;
  background-position: center; background-repeat: no-repeat; z-index: 1; opacity: 0; transition: opacity 2s;
}
.hero-bg-layer.visible {
  opacity: 1; animation: zoomOut 12s ease-in-out;
}
@keyframes zoomOut {
  0% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.layer1 { background-image: url('../img/top/top_back.png'); }
.layer2 { background-image: url('../img/top/top_back2.png'); }
.layer3 { background-image: url('../img/top/top_back3.png'); }

.teletype-message {
  position: fixed;
  width: 100%;
  text-align: center;
  top: 18%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 26px;
  font-weight: bold;
  color: #fff;
  z-index: 20;
  /*background: rgba(0, 0, 0, 0.4);*/
  background: rgba(0, 0, 0, 0.4);
  padding: 0.6em 1.2em;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden; /* ← 追加 */
  transition: opacity 1s, visibility 1s; /* ← visibilityも対象に */
  font-family: "游明朝", "Yu Mincho", "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "ＭＳ Ｐ明朝", "MS PMincho", serif;
}

.teletype-message.visible {
  opacity: 1;
  visibility: visible; /* ← 追加 */
}


/* NEWSセクション 2トーン背景（PCのみ） */
@media (min-width: 769px) {
  .new-posts {
    position: relative;
    width: 100vw;
    height: 150px;
    overflow: hidden;
    color: #fff;
    box-sizing: border-box;
    padding-top: 1em;
  }
  
  .new-posts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 35%; /* ← 左側エリアを小さく */
    height: 100%;
    background: #0b0f3c;
    clip-path: polygon(0 0, 100% 0, 65% 100%, 0% 100%);
    z-index: 1;
  }







  .new-posts::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1f5c;
    z-index: 0;
  }

  .new-posts .container {
    position: relative;
    z-index: 2;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1em;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: pointer;
    display: block;
    transition: opacity 0.5s;
  }

  .scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
  }

  .scroll-indicator img {
    width: 50px;
    height: auto;
  }
}





/* NEWSセクション内配置 */
.new-posts .news-header {
  display: flex; flex-direction: column; align-items: flex-start; margin-top: 0.5em;
}
.news-heading {
  color: yellow; font-size: 1.8em; font-weight: bold; letter-spacing: 0.1em; margin-bottom: 0.5em;
}
.news-btn {
  display: inline-flex; align-items: center; justify-content: center; border: 1px solid #fff;
  background: #5e2f2f; color: #fff; padding: 0.5em 1.5em; min-width: 140px; text-decoration: none;
}
.news-btn:hover { background: #462020; color: #fff; }
.news-contents {
  flex-grow: 1; display: flex; justify-content: center; align-items: flex-start; flex-direction: column;
  margin-left: 2em; width: 100%;
}
.new-posts ul {
  list-style: none; padding: 0; margin: 0 auto; max-width: 600px; width: 100%; display: flex; flex-direction: column;
  align-items: flex-start; padding-left: 2.5em;
}
.new-posts ul li {
  display: flex; justify-content: center; align-items: center; gap: 3em; margin-bottom: 0;
}
.new-posts a {
  color: #fff; text-decoration: none; display: flex; align-items: center; gap: 3em;
}
.post-date {
  background: #fff; color: #0b0f3c; display: inline-flex; align-items: center; justify-content: center;
  min-width: 100px; height: 1em; line-height: 0; font-size: 1em;
}
.post-title {
  color: #fff; text-align: left; font-size: 0.9em; text-decoration: underline;
}



@media (min-width: 769px) {
  .scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: pointer;
    display: block;
    transition: opacity 0.5s;
    animation: scrollBounce 2s infinite ease-in-out;
  }

  .scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
  }

  .scroll-indicator img {
    width: 50px;
    height: auto;
  }
}


@media (max-width: 768px) {
  .new-posts {
    background: #1a1f5c;
    color: #fff;
    padding: 2em 1em;
  }

    .new-posts .news-header {
    display: flex;
    flex-direction: row;           /* 横並びに変更 */
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1em;
    margin-bottom: 1em;
  }

  .new-posts::before,
  .new-posts::after {
    display: none;
  }

  .new-posts .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
  }

  .news-heading {
    font-size: 1.4em;
    margin-bottom: 0;
  }

  .news-btn {
    font-size: 0.9em;
    padding: 0.4em 1em;
    min-width: auto;
    white-space: nowrap;
  }
  .news-contents {
    margin-left: 0;
    width: 100%;
  }
  
  .new-posts ul {
    padding-left: 1em;         /* 左余白を狭く */
    gap: 0;                /* 各行間のスペース調整（必要に応じて） */
  }

  .new-posts a {
    gap:1em
  }
  
  .new-posts ul li {
    gap: 1em;                  /* 日付とタイトルの間を詰める */
    margin-bottom: 0.5em;      /* 行と行の間を詰める */
  }
  .post-date {
    font-size: 0.85em;
    min-width: 80px;
  }

  .post-title {
    font-size: 0.85em;
    text-align: left;
  }
}


@keyframes scrollBounce {
  0% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
  100% { transform: translateX(-50%) translateY(0); }
}



/* ▼ ✕ボタン：デフォルトでは非表示（PC） */
.menu-close {
  display: none !important;
}

/* ▼ モバイル（768px以下）のときだけ表示 */
@media screen and (max-width: 768px) {
  .menu-close {
    display: block !important;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
  }
}




/* === モバイル専用ロゴ（画像の上段中央） === */
.hero-mobile-logo {
  display: none;
  position: absolute;
  top: 5%; /* 上段中央に配置 */
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}
.hero-mobile-logo img {
  width: 300px !important;  
  height: auto;
}

/* === モバイル専用メッセージ（ロゴの下） === */
.hero-message-mobile {
  display: none;
  position: absolute;
  top: 18%; /* ロゴの下あたり */
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  padding: 0.6em 1.2em;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  z-index: 15;
  width: 90%;
}

/* === モバイル表示時のみ表示・PCでは非表示 === */
@media (max-width: 768px) {
  .hero-mobile-logo,
  .hero-message-mobile {
    display: block;
  }

  /* テロップ（PC用）はモバイルで非表示にする */
  .teletype-message {
    display: none !important;
  }

  /* 将来のモバイル専用画像切替（未対応ならそのままでOK） */
  .layer1 { background-image: url('../img/top/top_back.png'); }
  .layer2 { background-image: url('../img/top/top_back2.png'); }
  .layer3 { background-image: url('../img/top/top_back3.png'); }
}


/*　画面下のバナー固定表示　*/

/* --- PC / タブレット --- */
.fixed-topinfo {
  position: fixed;
  bottom: 0px;
  right: 0px;
  display: flex;       /* 横並び */
  flex-direction: column;
  gap: 0px;
  z-index: 10000;
}

.fixed-topinfo img {
  width: 300px;        /* PC用サイズ */
  height: auto;
}

/* --- タブレット調整 --- */
@media (max-width: 1024px) {
  .fixed-topinfo img {
    width: 90px;
  }
}

/* --- スマホ --- */
@media (max-width: 768px) {
  .fixed-topinfo {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;   /* 横幅いっぱいに2枚を配置 */
    gap: 0;
    padding: 0;
    background: #000; /* （任意）背景を黒透過にする場合 */
  }

  .fixed-topinfo img {
    width: 50%;       /* 2枚で横幅100%にする */
    height: auto;
    max-width: none;
  }
}




