@charset "UTF-8";
/* ===============================
   Global / Base(共通の前提)
   =============================== */
/* ヘッダーを非表示にするクラス */
.site-header.is-hidden {
  display: none;
}
/* ヘッダー共通 */
.site-header {
  position: fixed; /* ← 常に追従 */
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 20px; /* 既存の重複を整理。必要ならPC側で上書き可 */
  z-index: 1200; /* ← ヘッダーはオーバーレイより下でもOKだが1000より上に */
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  transition: background-color .25s, color .25s;
  color: #212121; /* デフォは黒(=白背景時) */
}
/* ヘッダー内のリンクは常に親色を継承(ロゴのcurrentColor対策) */
.site-header a {
  color: inherit;
  text-decoration: none;
}
/* 暗い背景上では白文字に */
.site-header.on-dark {
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
/* コンテンツが隠れないよう上部に余白(body or main どちらか) */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  height: 40px;
}
.site-name {
  font-size: 16px;
  font-weight: 500;
  color: #212121;
  text-shadow: 0 0 2px rgba(255, 255, 255, .9), 0 0 6px rgba(255, 255, 255, .7), 0 0 12px rgba(255, 255, 255, .5);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
a.btn {
  color: #fff;
}
/*追加*/
/* ===== メニュー背面の黒透過レイヤー ===== */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 900; /* メニュー(nav-overlay:1000)より下、ヘッダーより上 */
}
/* 表示状態(メニュー開時に追加) */
.menu-overlay.is-active {
  opacity: 1;
  visibility: visible;
}
/* PC用(769px以上) */
@media screen and (min-width: 768px) {
  html {
    overflow-y: scroll; /* 常に縦スクロールバーを確保 */
    scrollbar-gutter: stable; /* バーの有無でレイアウトが動かない */
  }
  /* 会社名テキスト(ロゴの右に表示) */
  .site-header .site-name {
    margin-left: 24px;
    font-size: 1rem;
    font-weight: 600;
    color: inherit; /* ←ヘッダーの色(白/黒)に合わせて切替 */
    transition: color 0.25s;
  }
  /*
		.site-header a {
  color: inherit;
}*/
  /* ダーク背景に重なるときは文字を白に */
  .site-header.on-dark {
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }
  /* ロゴ */
  .logo-svg {
    height: 32px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
  }
  /* ナビ */
  .gnav {
    margin-left: auto;
    display: flex;
    gap: 20px;
  }
  .gnav a {
    color: inherit; /* ヘッダーのcolorに追従 */
    text-decoration: none;
    padding: 8px 4px;
    border-radius: 8px;
  }
  .gnav a:hover {
    background: rgba(0, 0, 0, 0.06);
  }
  .site-header.on-dark .gnav a:hover {
    background: rgba(255, 255, 255, 0.12);
  }
  /* コンテンツのダミー */
  main {
    padding-top: 64px;
  } /* ヘッダー高さ分の余白 */
  .section {
    min-height: 120vh;
    display: grid;
    place-items: center;
    font-size: clamp(24px, 5vw, 56px);
    transition: background-color 0.25s, color 0.25s;
  }
  .theme-light {
    background: #ffffff;
    color: #111;
  }
  .theme-dark {
    background: #0f1012; /* 黒背景ゾーン例 */
    color: #f5f5f5;
  }
  .logo-area {
    display: flex;
    align-items: center;
  }
  .logo_sp {
    display: none;
  }
  .logo_pc {
    width: 15%;
  }
  /* ===== Hamburger ===== */
.menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: 0;
    cursor: pointer;
    margin-left: 20px;
    padding: 0;    /* ← Safari用のデフォルト余白リセットを追加 */
  }    
  .menu-btn span {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: #e60012;
    transform: translateZ(0);
    will-change: transform;
    flex-shrink: 0;  
  }
  /* ===== Header ===== */
  .site-header {
    padding: 10px 50px;
    background: transparent;
  }
  /* ===== Buttons ===== */
  .btn {
    background: #e60012;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 400;
    font-size: 13px;
    display: inline-block;
    border-radius: 0;
  }
  /* ===== Overlay Nav (上からスライド) ===== */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #f7f7f7;
    border-top: 1px solid #ccc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-100%);
    transition: transform .3s ease;
    z-index: 1000;
  }
  .nav-overlay.is-open {
    transform: translateY(0);
  }
  /* 中身のパネル */
  .nav-panel {
    padding: 1% 7% 5%;
    display: flex;
    flex-direction: column;
    max-width: 1920px;
    margin: 0 auto;
  }
  .nav-main p, .nav-main a {
    font-size: 15px;
    font-weight: 500;
  }
  .nav-contents {
    width: 80%;
    /*margin-right: 20px;*/
  }
  .nav-main, .nav-sns, .nav-footer {
    display: flex;
    padding: 45px 10px;
    align-items: center;
  }
  .nav-sns, .nav-footer {
    border-top: 1px solid #ccc;
    align-items: center;
  }
  p.hum_title {
    width: 20%;
    font-size: 14px;
    font-weight: 500;
    margin-left: 20px;
  }
  p.hum_title a {
    font-size: 20px;
  }
  div.nav-maintop a {
    /*    margin-left: 7em;*/
    margin-left: 1.5em; /* inoue */
    max-width: 320px;
  }
  /* ヘッダー部 */
  .nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 50px;
  }
  .nav-header .logo {
    height: 32px;
  }
  .nav-header {
    flex: 1;
    /*  margin-left: 10px;*/
    font-weight: 500;
  }
  .nav-close {
    font-size: 46px;
    background: none;
    border: none;
    cursor: pointer;
    color: #e60012;
  }
  /* メインリンクボタン */
  .nav-main {
    display: flex;
    align-items: center;
  }
  .main-link {
    flex: 1;
    border: 2px solid #212121;
    padding: 16px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #212121;
    background: #fff;
  }
  .main-link span {
    float: right;
  }
  .nav-maintop {
    display: flex;
    align-items: baseline;
    justify-content: start;
    width: 95%;
  }
  /* サブリンク */
  .nav-sub_pc {
    display: flex;
    list-style: none;
    width: 95%;
    /*    justify-content: space-between;*/
    margin-top: 3%;
    flex-wrap: wrap; /* inoue */
    justify-content: flex-start; /* inoue */
  }
  .nav-sub_pc li a {
    text-decoration: none;
    color: #212121;
    padding: 12px 0;
    display: block;
  }
  .nav-sub_pc li a span {
    margin: 0 30px;
  }
  .nav-sub_sp {
    display: none;
  }
  /* SNSリンク */
  .sns-links {
    display: flex;
    align-items: anchor-center;
  }
  .sns-links p {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    line-height: 1.8em;
    margin-right: 10px;
  }
  .sns-links img {
    height: 22px;
    margin-right: 8px;
  }
  .nav-sub-sns_pc {
    display: flex;
    list-style: none;
    align-items: center;
    /*    gap: 8em;*/
  }
  /* フッター */
  .nav-footer a {
    text-decoration: none;
    color: #212121;
  }
  .nav-footer a .blankIcon {
    width: 3%;
    margin-left: 10px;
    /*padding-bottom: 5px;*/
  }
  /* スクロール禁止用 */
  .is-nav-open {
    overflow: hidden;
  }
}
@media screen and (min-width: 1024px) {
  .nav-main p, .nav-main a {
    font-size: 18px;
    font-weight: 500;
  }
  .nav-panel {
    padding: 1% 10% 5%;
  }
  div.nav-maintop a {
    margin-left: 2.4em;
  }
  .sns-links p {
    font-size: 14px;
    margin-right: 15px;
  }
  .sns-links img {
    height: 30px;
    margin-right: 8px;
  }
}
@media screen and (min-width: 1440px) {
  .nav-sub-sns_pc {
    gap: 2em;
  }
  .nav-sub_pc li a span {
    margin: 0 40px;
  }
}
/* スマホではボタンだけ表示 */
@media (max-width: 767px) {
  body {
    padding-top: 50px;
  }
  .logo_sp {
    max-width: 15%;
  }
  .logo_sp img {
    width: 100%;
  }
  .site-header {
    padding: 8px 15px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  .header-right .btn, div.nav-maintop, div.nav-header, .nav-sns, p.hum_title, .nav-sub_pc, .nav-footer, .logo_pc {
    display: none;
  }
  /* ===== Hamburger ===== */

.menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0; 
  }    
  .menu-btn span {
    display: block;
    height: 3px;
    background: #e60012;
    border-radius: 2px;
    transition: all 0.3s ease;
    width: 100%;
    transform: translateZ(0);
    will-change: transform;
    flex-shrink: 0;  
  }
  /* ===== メニュー開いたとき ===== */
  .menu-btn.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .menu-btn.is-open span:nth-child(2) {
    opacity: 0; /* 真ん中の線は消す */
  }
  .menu-btn.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  /* ===== Header ===== */
  /*.site-header {
  padding: 10px 20px;
	background: #fff; 
	margin-bottom: 50px;
}*/
  /* ===== Overlay Nav (上からスライド) ===== */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #f7f7f7;
    box-shadow: 0px 5px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-100%);
    /* 初期状態 */
    opacity: 0; /* 透明 */
    pointer-events: none; /* 非表示中はクリック不可 */
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 1000;
  }
  .nav-overlay.is-open {
    transform: translateY(50px); /* 元の位置へ */
    opacity: 1; /* 不透明に */
    pointer-events: auto; /* クリック可能に */
  }
  /* 中身のパネル */
  .nav-panel {
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
  }
  .nav-main p, .nav-main a {
    font-size: 16px;
    font-weight: 500;
  }
  /* ヘッダー部 */
  .nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .nav-header .logo {
    height: 40px;
  }
  .nav-header {
    flex: 1;
    margin-left: 10px;
    font-weight: 500;
  }
  .nav-close {
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #e60012;
  }
  /* メインリンクボタン */
  .main-link {
    flex: 1;
    border: 2px solid #212121;
    padding: 16px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #212121;
    background: #fff;
  }
  .main-link span {
    float: right;
  }
  .nav-maintop {
    display: flex;
    align-items: baseline;
  }
  /* サブリンク */
  .nav-sub_sp {
    list-style: none;
  }
  .nav-sub_sp li {
    margin: 5px;
    border-bottom: 1px solid #212121;
  }
  .nav-sub_sp li a {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    color: #212121; /* ← 文字の色 */
    font-weight: bold;
    position: relative;
    padding: 15px 0;
  }
  .nav-sub_sp li a::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 11px;
    height: 11px;
    border-right: 2px solid #e60012; /* ← 矢印の色 */
    border-bottom: 2px solid #e60012; /* ← 矢印の色 */
    transform: translateY(-50%) rotate(-45deg);
    margin-right: 10px;
  }
  /* スクロール禁止用 */
  .is-nav-open {
    overflow: hidden;
  }
}