@charset "UTF-8";

h1,h3,h5,p
{text-align: center;}

h1,h3,h5,h6,p
{font-family: 'Courier New', Courier, monospace}

p
{font-size: 80%;}

h3
{font-size: 95%;}


h6
{text-align: right;
 font-size: 80%;}

 h2
 {font-size: 80%;
  text-align: left;}


/* --- 共通設定 --- */
body {
  margin: 0;
  font-family: sans-serif;
  padding-top: 110px; /* ヘッダーの高さ分、コンテンツを下げる */
}

/* --- ヘッダー・コンテナ --- */
.header-container {
  display: flex;
  align-items: center;      /* 上下中央揃え */
  justify-content: center;   /* ロゴを水平中央に配置 */
  padding: 0 10px;
  height: 100px;            
  position: fixed;          /* スクロール固定 */
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  box-sizing: border-box;
  z-index: 1000;
}

/* チェックボックス（非表示） */
.menu-checkbox {
  display: none;
}

/* --- 左：ハンバーガーボタン（絶対配置） --- */
.hamburger {
  display: block;
  width: 30px;
  height: 22px;
  position: absolute;       
  left: 15px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #333;
  position: absolute;
  left: 0;
  transition: all 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

/* --- 中央：ロゴ（可変サイズ対応） --- */
.logo {
  max-width: 45%;           /* ボタンにぶつからないよう幅を制限 */
  display: flex;
  justify-content: center;
}

.logo img {
  display: block;
  height: auto;             
  max-height: 65px;         /* PCでの最大高さ */
  width: auto;
  max-width: 100%;          /* 画面が狭いときは自動縮小 */
}

/* --- 右：連絡先グループ（絶対配置） --- */
.header-contact-group {
  position: absolute;       
  right: 10px;
  display: flex;
  flex-direction: column;   /* 縦並び */
  gap: 5px;                 
  align-items: flex-end;    
  z-index: 1002;            /* ボタンの反応を確実にする */
}

/* 共通ボタン設定（可変サイズ対応） */
.phone-button, .mail-button {
  text-decoration: none;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: bold;
  /* 画面幅に合わせて文字を少し小さくする */
  font-size: clamp(9px, 2.5vw, 11px);
  min-width: 75px;          
  text-align: center;
  transition: opacity 0.3s;
  white-space: nowrap;      /* 改行を防ぐ */
}

.phone-button { background-color: #2ecc71; } 
.mail-button  { background-color: #3498db; } 

.phone-button:hover, .mail-button:hover {
  opacity: 0.8;
}

/* --- メニュー本体 --- */
.nav-content {
  position: fixed;
  top: 0;
  right: -100%;            
  width: 280px;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98);
  padding-top: 100px;
  transition: all 0.4s ease;
  z-index: 999;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

.nav-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-content ul li a {
  display: block;
  padding: 20px 25px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #eee;
}

/* --- 開閉アニメーション --- */
.menu-checkbox:checked ~ .nav-content {
  right: 0;
}
.menu-checkbox:checked ~ .header-container .hamburger span:nth-child(1) {
  top: 10px; transform: rotate(45deg);
}
.menu-checkbox:checked ~ .header-container .hamburger span:nth-child(2) {
  opacity: 0;
}
.menu-checkbox:checked ~ .header-container .hamburger span:nth-child(3) {
  top: 10px; transform: rotate(-45deg);
}