* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* アクセシビリティ: フォーカス可視性 */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid #00ccff;
  outline-offset: 2px;
}

/* 電話・メールリンクのスタイル */
a[href^="tel:"],
a[href^="mailto:"] {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

a[href^="tel:"]:hover,
a[href^="mailto:"]:hover {
  color: #007acc;
  text-decoration: underline;
}

/* 前面のコンテンツ */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Noto Serif JP', 'Roboto Serif', serif;
  font-weight: 200; /* ← 細め */
  height: auto;
}

.content-layer {
  position: relative;
  z-index: 1;
  height: 100vh;
  padding-top: 100px;
  padding-bottom: 100px;
}

header, footer {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 1rem;
  position: sticky;
}

section.filler {
  height: 1500px;
}


/* グローバル: フルイドタイポグラフィ変数 */
:root {
  --fs-body: clamp(14px, 1.1vw + 0.25rem, 18px);
  --fs-h1: clamp(1.8rem, 3.8vw, 3rem);
  --fs-h2: clamp(1.4rem, 3vw, 2.2rem);
  --fs-h3: clamp(1.1rem, 2.2vw, 1.6rem);
  --fs-h4: clamp(1rem, 1.8vw, 1.3rem);
  --fs-small: clamp(0.85rem, 1.4vw, 0.95rem);
  --content-max: min(1100px, 92vw);
  --section-pad-y: clamp(20px, 6vh, 80px);
  --section-pad-x: clamp(12px, 4vw, 40px);
  --header-height: 0px; /* JSで実測反映 */
}

/* ベースタイポグラフィ */
html { font-size: 100%; }
body { font-size: var(--fs-body); line-height: 1.7; }

/* セクション共通の横幅と余白（ヘッダーは除外） */
section .container, main .container, .content .container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

/* セクション内の見出し・本文のデフォルト */
section h1 { font-size: var(--fs-h1); line-height: 1.25; }
section h2 { font-size: var(--fs-h2); line-height: 1.3; }
section h3 { font-size: var(--fs-h3); line-height: 1.3; }
section h4 { font-size: var(--fs-h4); line-height: 1.35; }
section p, section li { font-size: var(--fs-body); line-height: 1.8; }

/* ヘッダー基本設定（全画面共通） */
header {
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  color: #fff;
  font-family: 'Noto Serif JP', 'Roboto Serif', serif;
  font-weight: 200;
  /* paddingは各メディアクエリで個別設定 */
}


header {
  padding: 1.2vh 0; /* 画面高さの1.2% */
  min-height: 8vh; /* 最小高さを画面高さの8% */
}

header .container {
  width: 100%;
  max-width: 100%; /* コンテンツを中央寄せしない */
  margin: 0; /* 左端に揃える */
  /* 右側だけさらに詰める（右 < 左） */
  padding: 0 clamp(2px, 0.4vw, 6px) 0 clamp(4px, 0.6vw, 8px);
  display: flex;
  justify-content: space-between; /* 左：タイトル／右：ナビ */
  align-items: center;
  height: 100%;
  gap: clamp(4px, 0.6vw, 8px); /* タイトル-メニュー間をもう少しタイトに */
  text-align: left; /* コンテナ内のテキストを左寄せ */
}

header h1 {
  font-size: clamp(1rem, 2.2vw, 2.5rem);
  font-weight: 200;
  letter-spacing: 0.08em;
  margin: 0 !important; /* 強制的にマージンをリセット */
  margin-left: 0 !important; /* 明示的に左マージンを0に */
  text-align: left !important; /* 強制的に左寄せ */
  white-space: nowrap; /* PCでは1行を優先 */
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;   /* タイトルを縮めてハンバーガーを確保 */
  min-width: 0;     /* 省略記号が効くように */
  align-self: flex-start; /* フレックスアイテムとして左寄せ */
}

/* 動画終了後にヘッダー全体を薄く見せる（文字含めて） */
header.faded {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

/* フェード時はタイトル文字をさらに淡く */
header.faded h1 {
  opacity: 0.5; /* 親の0.6と合成で実効 ~0.3 */
  transition: opacity 0.3s ease;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  gap: clamp(6px, 1vw, 10px); /* 画面に応じて小さく可変 */
  justify-content: flex-end; /* 右側にタイトに寄せる */
  align-items: center;
  flex-shrink: 1;
  width: auto; /* 必要幅のみ使用し右側に寄せる */
  overflow: visible; /* 表示を許可 */
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(0.75rem, 1.2vw, 1.5rem); /* ほんの少し拡大して視認性と幅を確保 */
  transition: color 0.3s, font-size 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  font-family: 'Noto Serif JP', 'Roboto Serif', serif;
  padding: 0.5vh clamp(0.3vw, 0.8vw, 1.2vw); /* 少し広げて横幅を活かす */
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  text-align: center;
}

nav ul li a:hover {
  color: #00ccff;
}

/* ナビゲーションの十分なスペース確保 */
nav {
  flex: 1; /* 利用可能なスペースを最大限使用 */
  overflow: visible;
}

/* タイトル左・メニュー右を確実に成立させる */
header .container > nav {
  margin-left: auto; /* navブロックを右端へ押し出す（デスクトップ） */
  flex: 0 1 auto;    /* コンテンツ幅で保持しつつ右寄せ */
}

.nav-ja {
  font-size: clamp(0.75rem, 1.2vw, 1.5rem); /* 少し拡大 */
  font-weight: 400;
}

.nav-en {
  font-size: clamp(0.55rem, 0.85vw, 1rem); /* 少し拡大 */
  color: #ccc;
  margin-top: 0.1em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Noto Serif JP', 'Roboto Serif', serif;
  font-weight: 300;
}

/* ========================================
   デスクトップ快適化（通常PC表示の縦幅を少し拡大）
   ======================================== */
@media screen and (min-width: 1024px) {
  header {
    padding: 2.0vh 0;       /* ベースより少し厚めに */
    min-height: 11vh;       /* 視覚的なボリュームを追加 */
  }

  nav ul li a {
    padding: 0.8vh clamp(0.4vw, 0.9vw, 1.4vw); /* 縦の余白を増やす */
    line-height: 1.2;                              /* 行間をわずかに広げる */
  }
}

/* ========================================
   メニュー切り替えボタン（モバイル用）
   ======================================== */

/* ハンバーガーメニュー用の初期設定 */
.menu-toggle {
  display: none; /* デスクトップでは非表示 */
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 11;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background: rgba(0, 0, 0, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 3px !important;
}

.menu-toggle span {
  width: clamp(18px, 5vw, 28px);
  height: clamp(2px, 0.4vh, 3px);
  background-color: #fff;
  margin: 4px 0;
  transition: all 0.3s ease;
  display: block;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ナビゲーションメニュー（通常） */
.nav-menu {
  display: flex;
  width: auto;
}

/* 古いナビゲーション設定は削除済み */

.menu-close {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 12;
}

.menu-close:hover {
  color: #00ccff;
}


.hero {
  background: linear-gradient(rgba(0, 76, 153, 0.8), rgba(0, 76, 153, 0.8)), url('https://via.placeholder.com/1920x500');
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 3rem 20px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
}

section {
  padding: 2rem 0;
}

.about, .services, .greeting {
  margin-bottom: 1rem;
  padding: 1.5rem;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.about h3, .services h3, .greeting h3 {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 1rem 0;
  text-align: center;

  position: fixed; /* ← ここを absolute → fixed に */
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}



.logo-text {
  color: white;
  font-size: 2rem;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 2s ease-in-out forwards;
  animation-delay: 0.5s;
}



main {
  padding-top: 0px;  /* ヘッダーの高さに応じて調整 */
  padding-bottom: 60px; /* フッターの高さに応じて調整 */
}

main::after {
  content: "";
  display: block;
}

/* ========================================
   レスポンシブ対応（スマホ/タブレット）
   ======================================== */

/* 大型タブレット（1024px以下） */
@media (max-width: 1024px) {
  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .about h3, .services h3, .greeting h3 {
    font-size: 1.6rem;
  }

  main {
    padding-bottom: 80px;
  }
}

/* モバイル・タブレット対応：流動的なサイズ調整 */
@media (max-width: 768px) {
  /* タイトルは縮小を許可（省略記号）し、ハンバーガーの領域を確保 */
  header h1 {
    max-width: 70vw;
    white-space: normal;       /* モバイルは改行を許可 */
    word-break: keep-all;      /* 日本語の恣意的分割を避ける */
    overflow: visible;
    text-overflow: clip;       /* 省略記号は解除 */
    line-height: 1.2;
  }

  /* ハンバーガーを右端に固定配置しやすくする */
  .menu-toggle { margin-left: auto; z-index: 102 !important; }

  /* nav 要素はレイアウト幅を占有しない（オフキャンバス用の器に限る） */
  header .container > nav { margin-left: 0; flex: 0 0 auto; }
  /* ヘッダーの厚みはベース値を維持（薄くしない） */
  /* タイトルやコンテナの特別な縮小も行わない */

  /* メニューボタンを表示（視認性向上） */
  .menu-toggle {
    display: flex !important;
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 3px !important;
    padding: 1vh 1.5vw !important; /* 相対サイズ */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    width: auto !important;
    height: auto !important;
  }

  .menu-toggle span {
    background-color: #fff !important;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.4) !important;
  }

  /* ナビゲーションをオフスクリーン化 */
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 11;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu ul {
    flex-direction: column;
    width: 100%;
    margin-right: 0;
    gap: 0;
    padding-bottom: 80px;
  }

  .nav-menu ul li {
    margin-left: 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu ul li a {
    font-size: 0.95rem;
    flex-direction: row;
    gap: 0.5rem;
    padding: 1.5rem 20px;
    display: flex;
  }

  .nav-en {
    font-size: 0.65rem;
    margin-top: 0;
  }

  /* クローズボタンはハンバーガー（X化）に一本化して非表示 */
  .menu-close {
    display: none !important;
  }

  .content-layer {
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .hero {
    padding: 2rem 1.5rem;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .about, .services, .greeting {
    padding: 1.5rem;
  }

  .about h3, .services h3, .greeting h3 {
    font-size: 1.4rem;
  }

  .footer {
    padding: 1rem 0;
  }

  main {
    padding-bottom: 70px;
  }

  main::after {
    height: auto;
  }

  /* タブレット以下でのサブヘッダー余白最適化 */
  .luxury-band, #sub-header {
    margin-top: var(--header-height) !important;
    padding: 40px 16px !important;
    display: block;
    position: relative;
    transform: none;
  }

  /* ヘッダー下部の余白を抑制（タブレット） */
  header { margin-bottom: 0 !important; padding-bottom: 0 !important; }
}

/* スマートフォン（480px以下） */
@media (max-width: 480px) {
  /* ヘッダーの厚みは変更しない（薄くしない） */
  /* ナビや本文の微調整のみ行う */
  .nav-menu ul li a {
    padding: 1.2rem 18px;
  }

  .menu-close { font-size: 1.8rem; padding: 0.5rem 0.8rem; }

  /* スマホでのサブヘッダー余白最適化（維持） */
  .luxury-band, #sub-header {
    margin-top: var(--header-height) !important;
    padding: 20px 12px !important;
  }
}
  .luxury-band h1 {
    font-size: 1.4rem !important;
    line-height: 1.2 !important;
    letter-spacing: 0.06em !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    max-width: 100% !important;
    padding: 0 4px !important; /* 端末幅いっぱいでの食い込み防止 */
  }


/* 超小型デバイス（320px以下） */
@media (max-width: 320px) {
  header h1 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  nav ul {
    gap: 0.8rem;
  }

  nav ul li a {
    font-size: 0.75rem;
  }

  .nav-ja {
    font-size: 0.75rem;
  }

  .nav-en {
    font-size: 0.5rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  .hero p {
    font-size: 0.85rem;
    padding: 0 0.5rem;
  }

  .about h3, .services h3, .greeting h3 {
    font-size: 1rem;
  }

  .logo-text {
    font-size: 1.1rem;
  }
}

.luxury-band {
  background-color:rgba(1, 1, 1, 0.9);
  color: #fff;
  border-radius: 8px;
  background-image: 
      linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%),
      linear-gradient(-45deg, rgba(255,255,255,0.05) 25%, transparent 25%),
      linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.05) 75%),
      linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.05) 75%);
  background-size: 40px 40px;
  background-attachment: fixed;
  padding: clamp(48px, 10vh, 120px) 0;
  text-align: center;
  letter-spacing: 0.15em;
  user-select: none;
  margin-bottom: 0; /* 下部余白を削除 */
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.1);
  font-family: 'Noto Serif JP', serif;
}

/* 初期表示でヘッダー直下にぴったり揃える（全ページ対応） */
.content-layer > .luxury-band,
#header + .luxury-band {
  margin-top: var(--header-height);
}

.luxury-band h1 {
  font-weight: 400;
  font-size: var(--fs-h1);
  color: #f5f5f7; /* 薄いグレー寄りの白 */
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  display: inline-block;
  padding-bottom: 8px;
  margin: 0 auto;
  max-width: max-content;
  letter-spacing: 0.2em;
}

  /* ========================================
     強制：フッターを全画面で細くする（ユーザー指定）
     - 全てのメディアクエリより優先されるように末尾で上書き
     ======================================== */
  .footer {
    padding: 0.25rem 0 !important; /* とても薄め */
    font-size: 0.75rem !important; /* 文字も小さくして統一 */
    line-height: 1 !important;
    height: auto !important;
  }

  /* メインの下部余白をフッター高さに合わせて小さくする */
  main {
    padding-bottom: 48px !important;
  }

  /* 小型画面ではさらに詰める */
  @media (max-width: 480px) {
    .footer { padding: 0.2rem 0 !important; font-size: 0.72rem !important; }
    main { padding-bottom: 44px !important; }
  }

  /* デスクトップ（PC）ではフッターを元の大きさに戻す */
  @media (min-width: 1025px) {
    .footer {
      padding: 1rem 0 !important; /* 元のサイズに復帰 */
      font-size: 1rem !important;
    }
    main {
      padding-bottom: 80px !important; /* デスクトップ用に余白復帰 */
    }
  }

/* ========================================
   タブレット・デスクトップ用レスポンシブ調整
   ======================================== */

/* ========================================
   ヘッダー基本設定（デスクトップ用）
   ======================================== */

/* デスクトップ（769px以上）でのみ標準サイズヘッダーを適用 */
@media (min-width: 769px) {
  header {
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    color: #fff;
    font-family: 'Noto Serif JP', 'Roboto Serif', serif;
    font-weight: 200;
    /* paddingや他のサイズ設定はグローバル設定を使用 */
  }
}

/* ========================================
   スマートフォン横画面対応（最優先）
   ======================================== */

/* 横画面の極端な薄型化は廃止（フレキシブル維持） */


