/* ページ全体の基本フォント */
body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif; /* Helvetica Neueを優先 */
  color: #fff;
  background:url("../img/ushiro.png") center/cover no-repeat;
}

/* メインコンテンツの余白を統一 */
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;
}

.contact-list {
  list-style: none;
  padding-left: 0; /* 点と一緒に余白も消える */
}

header {
  position: relative;
  padding: 1em;
  text-align: right;
}

a{
  color: gray;
  text-decoration: none;
}

a:visited{
	color: #fff;
}

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; }
#menu { text-align: left; }
#menu a { display:block; text-align:left; } /* 念のため */

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


.footer p {
  margin: 5px 0;
}

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

/* Contact form */
form {
  max-width: 600px;
  margin: 40px auto;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #333;
}

form label {
  display: block;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 2px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border 0.3s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
  outline: none;
  border: 1px solid #000;
}

form textarea {
  min-height: 180px;
  resize: vertical;
}

form button {
  display: block;
  width: 180px;
  margin: 30px auto 0;
  padding: 14px 0;
  background-color: #262a2d; /* 黒に近いグレー */
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s ease;
}

form button:hover {
  background-color: #000;
}
/* 背景をうっすら暗くして文字を読みやすく（壊さない薄さ） */
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;
}