/* ===== ABOUT レイアウト ===== */
.about-section {
  display: grid;
  gap: clamp(16px, 3vw, 32px);
  padding: 2.5rem 5%;
}

/* PC幅以上は横並び */
@media (min-width: 900px) {
  .about-section {
    grid-template-columns: 1.2fr 1fr; /* 左:テキスト広め / 右:画像 */
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* テキスト部分 */
.about-section .text {
  min-width: 300px;
}

/* 画像部分 */
.about-section .image {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* 上揃え */
}
.about-section .image img {
  width: min(100%, 520px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.25));
}/* ページ全体の基本フォント */
body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif; /* Helvetica Neueを優先 */
  color: #fff;
  background:url("../img/ushiro.png") center/cover no-repeat;
}

img {
	width: 600px;
	height: auto;
}

/* メインコンテンツの余白を統一 */
main {
  padding: 2.5rem 5%;
}

/* h1共通スタイル */
h1 {
  margin: 0 0 0.75rem;                /* 上の余白はゼロ、下だけ少し */
  font-size: clamp(28px, 4vw, 40px);  /* スマホ〜PCで自動調整 */
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: left;                   /* 左寄せに固定 */
  font-family: "Helvetica Neue", Arial, sans-serif;
}

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


a:hover{
	color:orangered;
}

a:hover{
	color:orangered;
}


/* ===== ハンバーガー（常に最前面） ===== */
.menu-btn{
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 3000; /* メニューより上 */
  /* flexは使わない：回転時のレイアウト暴走を防ぐ */
}

/* 三本線：絶対配置で中央基準に固定 */
.menu-btn span{
  position: absolute;
  left: 0; right: 0;
  margin: 0 auto;
  width: 100%;
  height: 4px;
  background: #000;        /* 閉じてる時の色（必要なら#fffに） */
  border-radius: 2px;
  transform-origin: center; /* 中心回転 */
  transition: transform .25s ease, opacity .2s ease, background .2s ease;
}
/* 初期位置（上・中・下） */
.menu-btn span:nth-child(1){ top: 50%; transform: translateY(-9px); }
.menu-btn span:nth-child(2){ top: 50%; transform: translateY(-50%); }
.menu-btn span:nth-child(3){ top: 50%; transform: translateY(7px); }

/* 開いたとき「×」に変形＆白に */
.menu-btn.open span{ background:#fff; }
.menu-btn.open span:nth-child(1){ transform: translateY(-50%) rotate(45deg); }
.menu-btn.open span:nth-child(2){ opacity: 0; }
.menu-btn.open span:nth-child(3){ transform: translateY(-50%) rotate(-45deg); }

/* ===== スライドインメニュー（transform方式） ===== */
#menu{ /* nav じゃなく #menu に限定して衝突回避 */
  position: fixed;
  top: 0;
  right: 0;                 /* 右端基準に固定 */
  width: 250px;
  height: 100dvh;
  box-sizing: border-box;   /* パディングを幅に含める */
  padding: 2rem;
  background: rgba(0,0,0,.95);
  color: #fff;
  transform: translateX(100%);   /* ←完全に画面外へ */
  transition: transform .3s ease;
  z-index: 2000;
  /* iPhoneノッチ配慮（あれば吸収） */
  padding-right: calc(2rem + env(safe-area-inset-right));
}
#menu.active{
  transform: translateX(0);      /* ←スライドイン */
}

#menu ul{ list-style:none; margin:0; padding:0; }
#menu li{ margin:1rem 0; }
#menu a{ color:#fff; text-decoration:none; font-size:1.2rem; }
#menu a:hover{ color:orangered; }

/* はみ出しスクロール防止（保険） */
html, body { overflow-x: hidden; }

.about-section {
  display: flex;
  flex-wrap: wrap;
  padding: 2em;
  gap: 2em;
}

.about-section .text {
  flex: 1 1 50%;
  min-width: 300px;
}

.about-section .image {
  flex: 1 1 40%;
  text-align: center;
}

.about-section img {
  max-width: 100%;
  height: auto;
}

.breadcrumb {
  color: #fff;
  font-size: 0.9em;
  margin-bottom: 1em;
}

.english {
  margin-top: 1em;
  font-size: 0.95em;
  line-height: 1.6;
}

.members {
  margin-top: 1.5em;
  list-style: none;
  padding-left: 0;
}

.members li {
  line-height: 1.6;
}

/* 1) 画面高に広げて縦フレックス */
html, body {
  height: 100%;
  margin: 0;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100svh; /* iOSでも安定 */
}

/* 2) main が余り高さを受け持つ */
main {
  flex: 1;              /* ←これだけでOK */
  padding: 2.5rem 5%;   /* 既存の共通余白はそのまま */
}

/* 3) footer は通常フローに（固定表示はしない） */
footer {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 1rem 3rem;
  font-size: 0.9rem;
}


/* ===== Footer: 完全固定レイアウト ===== */
:root{
  --footer-pad-y: 18px;
  --footer-gap: 28px;   /* アイコンの間隔 */
  --footer-icon: 28px;  /* アイコンのサイズ（高さ） */
}

/* 本体 */
body > footer{
  background:#000;
  color:#fff;
  text-align:center;
  padding: var(--footer-pad-y) 24px calc(env(safe-area-inset-bottom,0px) + var(--footer-pad-y));
}

/* 見出しやテキストの行間も統一（ページ差吸収） */
body > footer p{
  margin: 0 0 10px;
  line-height: 1.4;
}

/* アイコン行をflexで均一に並べる（marginではなくgapで制御） */
body > footer .sns-icons{
  display:flex;
  justify-content:center;
  align-items:center;
  gap: var(--footer-gap);
  margin-top: 10px;
  flex-wrap: nowrap;              /* 折り返し防止 */
}

/* 旧ルールの margin-right:10px を無効化 */
body > footer .sns-icons img{
  display:block;
  height: var(--footer-icon) !important;
  width: auto !important;
  margin: 0 !important;
  vertical-align: middle;
  /* もし白アイコンじゃないPNGなら、下で反転フィルタを外すか調整 */
  filter: none;                   /* 既に白の画像なら none。黒→白にしたい時は brightness(0) invert(1) */
}

/* スマホで少しだけコンパクトに */
@media (max-width: 600px){
  :root{
    --footer-gap: 24px;
    --footer-icon: 26px;
  }
}
/* 背景をうっすら暗くして文字を読みやすく（壊さない薄さ） */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1; /* 背景画像の直上、コンテンツの下 */
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.25) 0%,
    rgba(0,0,0,.15) 40%,
    rgba(0,0,0,.30) 100%
  );
  pointer-events: none;
}