* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Serif JP', serif;
  background-color: #000;
  color: #fff;
}

.main-content {
  padding-top: 70px; /* ヘッダーの高さを確保 */
}

.br-pc { display: block; }
.br-sp { display: none; }
.br-480 { display: none; }

/* ===================================
   アニメーション用パーツ
=================================== */
.animated-text {
  opacity: 0;
  transform: matrix(0.92, 0, 0, 0.92, 0, 50);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.animated-text.is-in-view {
  opacity: 1;
  transform: matrix(1, 0, 0, 1, 0, 0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade-in-up.is-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* 共通ボタン */
.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 65px;
  background: linear-gradient(-180deg, #b01e0a 0%, #ce210a 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 15px rgba(176, 30, 10, 0.3);
  transition: all 0.3s ease;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(176, 30, 10, 0.45);
  opacity: 0.92;
  color: #ffffff;
}

.btn-container {
  margin-top: 30px;
}

/* ===================================
   固定ヘッダー (最初から常時表示)
=================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 12px 50px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  z-index: 100;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo img {
  height: 45px;
  width: auto;
  display: block;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  padding-bottom: 5px;
  transition: color 0.3s ease;
  font-weight: bold;
  font-family: "Libre Baskerville", serif;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background-color: #b01e0a;
  transition: width 0.3s ease;
}

.nav a:hover { color: #b01e0a; }
.nav a:hover::after { width: 100%; }

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 101;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger-btn span:nth-child(1) { top: 0; }
.hamburger-btn span:nth-child(2) { top: 11px; }
.hamburger-btn span:nth-child(3) { top: 22px; }

.hamburger-btn.is-active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger-btn.is-active span:nth-child(2) { opacity: 0; }
.hamburger-btn.is-active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* ==========================================
   オープニング・ローディングアニメーション
========================================== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000; 
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), 
              visibility 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.loading-overlay.is-loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo img {
  width: 160px;
  height: auto;
  opacity: 0;
  filter: blur(10px);
  transform: scale(0.92);
  animation: logoSlowFade 2.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes logoSlowFade {
  0% { opacity: 0; filter: blur(10px); transform: scale(0.92); }
  60% { opacity: 1; filter: blur(0px); }
  100% { opacity: 1; filter: blur(0px); transform: scale(1); }
}

/* ===================================
   1. 事業案内セクション (縦並び＆全表示)
=================================== */
.business-section {
  position: relative;
  z-index: 10;
  background-color: #ffffff;
  color: #111111;
  padding: 100px 0 120px;
}

.business-inner {
  position: relative;
  width: 90vw;
  max-width: 900px; /* 見やすい縦長幅に調整 */
  margin: 0 auto;
}

.business-header {
  text-align: center;
  margin-bottom: 50px;
}

.business-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  color: #000;
}

.business-lead {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #111;
}

/* 不要になったタブボタンは非表示 */
.business-tabs {
  display: none !important;
}

.business-content-display {
  display: flex;
  flex-direction: column;
  gap: 80px; /* レストラン事業とコンサルティング事業の間隔 */
}

.business-item {
  display: flex;
  flex-direction: column; /* 画像と文章を縦並び化 */
  align-items: center;
  gap: 30px;
}

.business-section-label {
  text-align: center;
  margin-bottom: 10px;
  width: 100%;
}

.business-section-label .tab-jp {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ce210a;
}

.business-section-label .tab-en {
  display: block;
  font-size: 0.9rem;
  font-family: "Libre Baskerville", serif;
  color: #888;
}

/* 画像コンテナ (縦並び用サイズ) */
.display-image-container {
  width: 100%;
  max-width: 800px;
  height: 400px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.business-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* コンサルティング事業の画像のみ下部を見切れさせない指定 */
.item-consulting .business-img {
  object-position: center bottom;
}

/* 文章コンテナ */
.display-text-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* ===================================
見出し付き枠 (Labeled Box)
=================================== */
.labeled-box {
  position: relative;
  border: 1px solid #ce210a; /* 枠線カラー */
  border-radius: 2px;
  padding: 35px 30px 30px;
  margin-top: 15px;
  background-color: #fff;
}

.labeled-box-title {
  position: absolute;
  top: -14px;
  left: 20px;
  background-color: #ce210a; /* ラベル背景色 */
  color: #ffffff;
  padding: 10px 25px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.labeled-box-content {
  font-size: 1rem;
  line-height: 1.85;
  color: #333333;
  text-align: justify;
}

.labeled-box-content .card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  color: #000;
  margin-bottom: 12px;
}

.btn-container.center {
  text-align: center;
  margin-top: 10px;
}

/* ===================================
   2. 会社沿革セクション (最新版)
=================================== */
.history-section {
  position: relative;
  z-index: 10;
  background-color: #000000; /* 黒背景 */
  color: #ffffff;
  padding: 100px 0 120px;
}

.history-inner {
  width: 90vw;
  max-width: 820px; /* テキスト可読性を考慮した幅 */
  margin: 0 auto;
}

.history-header {
  text-align: center;
  margin-bottom: 45px;
}

.history-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #ffffff;
}

.history-single-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* メイン画像 */
.history-single-img {
  width: 100%;
  max-width: 520px;
  margin-bottom: 20px;
}

.history-single-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

/* 画像下キャプション (中央揃え・シンプルグレー) */
.history-caption {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.7;
  color: #888888; /* シンプルな灰色 */
  text-align: center;
  margin-bottom: 45px;
  letter-spacing: 0.04em;
}

/* 本文エリア (br改行用) */
.history-body {
  width: 100%;
}

.history-body p {
  font-size: 1.02rem;
  line-height: 2.0; /* br改行時に読みやすいよう行間をゆったり確保 */
  color: #e5e5e5;
  text-align: justify;
  letter-spacing: 0.03em;
  margin: 0;
}


/* ===================================
   3. 代表挨拶セクション
=================================== */
.greeting-section {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 120px 0;
  background-color: #000000;
  min-height: 90vh; /* PC表示：90vh維持 */
  display: flex;
  align-items: center;
}

.greeting-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/message.jpg');
  background-size: cover;
  background-position: right center;
  z-index: 1;
}

.greeting-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.0) 0%,
    rgba(0, 0, 0, 0.7) 80%,
    rgba(0, 0, 0, 0.95) 100%
  );
  z-index: 2;
}

.greeting-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 6%;
}

.greeting-content {
  width: 70%;
  max-width: 800px;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #ffffff;
  margin-bottom: 30px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.greeting-text p {
  font-size: 1.1rem;
  line-height: 1.85;
  font-weight: 500;
  color: #eee;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}
/* ===================================
   4. 会社概要セクション 
=================================== */
.company-section {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 100px 0 120px;
  color: #111111;
  background-color: #ffffff;
}

.company-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 6%;
}

.company-header {
  text-align: center;
  margin-bottom: 50px;
}

.company-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #000000;
}

.company-table { width: 100%; }

.company-row {
  display: flex;
  padding: 24px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  line-height: 1.8;
}

.company-row dt {
  width: 25%;
  min-width: 140px;
  font-weight: 700;
  font-size: 1.09rem;
  color: #000000;
  letter-spacing: 0.05em;
}

.company-row dd {
  width: 75%;
  font-size: 1rem;
  color: #333333;
  font-weight: 500;
}

.company-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #333333;
  text-decoration: none !important;
  transition: color 0.3s ease;
}

.external-link-icon {
  width: 14px;
  height: 14px;
  stroke: #ce210a;
  transition: transform 0.3s ease, stroke 0.3s ease;
  flex-shrink: 0;
}

.company-link:hover { color: #ce210a; }
.company-link:hover .external-link-icon { transform: translate(2px, -2px); }

/* ===================================
   フッター
=================================== */
.site-footer {
  background-color: #000000;
  color: #ffffff;
  padding: 20px;
  text-align: center;
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  font-family: "Libre Baskerville", serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #888888;
}

/* ===================================
   ページトップへ戻るボタン
=================================== */
.page-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: linear-gradient(-180deg, #b01e0a 0%, #ce210a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.page-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-top-btn:hover {
  background: linear-gradient(-180deg, #000000 0%, #454444 100%);
  transform: translateY(-3px);
}

.page-top-btn .arrow {
  width: 10px;
  height: 10px;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  transform: rotate(45deg);
  margin-top: 4px;
}


/* ===================================
   404 エラーページ専用スタイル
=================================== */
.page-404 {
  padding-top: 80px; /* 固定ヘッダーとの重なり調整 */
  padding-bottom: 100px;
  min-height: calc(100vh - 60px);
  background-color: #ffffff; /* 白背景 */
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* コンテンツ全体を中央揃え */
.error-404 {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center; /* テキスト全体を中央揃え */
}

.error-404__hero {
  margin-bottom: 40px;
}

/* 白ロゴ画像をCSSで「黒色」に変換＆中央配置 */
.error-404__hero img {
  width: 250px;
  height: auto;
  margin: 0 auto 60px;
  display: block;
  filter: brightness(0); /* 画像の色を完全な黒に変換 */
}

/* NOT FOUND 見出し */
.error-404__code {
  font-family: 'Noto Serif JP', serif;
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #000000;
  line-height: 1;
  margin-bottom: 15px;
}

/* サブタイトル */
.error-404__sub {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111111;
  letter-spacing: 0.05em;
}

/* 本文テキスト */
.error-404__text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333333;
  margin-bottom: 40px;
  font-weight: 500;
}

/* TOPへ戻るボタンのスタイル */
.error-404__btn {
  display: inline-block;
  padding: 14px 40px;
  background-color: #ce210a;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.error-404__btn:hover {
  background-color: #000; /* ホバー時にブランドカラーの赤へ */
  color: #ffffff !important;
}
/* ===================================
   レスポンシブ (1000px以下 / タブレット・スマホ)
=================================== */
@media (max-width: 1000px) {
  .business-section { padding: 60px 0; }
  .business-tabs { display: none !important; }

  .sp-tab-label {
    display: block;
    width: 100%;
    text-align: center;
    padding-bottom: 8px;
    margin-bottom: 15px;
    position: relative;
  }

  .sp-tab-label .tab-jp {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ce210a;
  }

  .sp-tab-label .tab-en {
    display: block;
    font-size: 0.8rem;
    font-family: "Libre Baskerville", serif;
    color: #ce210a;
  }

  .sp-tab-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 2px;
    background-color: #ce210a;
  }

  .business-content-display {
    display: flex !important;
    flex-direction: column !important;
    gap: 50px !important;
  }

  .business-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
  }

  .display-image-container {
    width: 100% !important;
    height: 280px !important;
  }

  .display-text-container { width: 100% !important; }

  .history-section { padding: 60px 0; }
  .history-swiper .swiper-wrapper {
    display: flex !important;
    flex-direction: column !important;
    transform: none !important;
    gap: 30px !important;
  }

  .history-card {
    width: 100% !important;
    min-height: auto !important;
    background: #282828 !important;
  }

  .history-pagination { display: none !important; }

.greeting-section {
    padding: 100px 0 60px 0 !important;
    min-height: 100vh !important;
    display: block !important;
    background-color: #000000 !important;
    position: relative !important;
  }

  /* 背景画像：セクション全体の高さに合わせて全面表示 */
  .greeting-bg {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important; /* 固定高さをやめ、セクション全体に適用 */
    background-image: url('../img/message_sp_2.png') !important;
    background-position: top 15% !important; /* 人物の顔が上部に綺麗に見える位置 */
    background-size: cover !important;
  }

  /* グラデーション：上部は透明で空間を見せ、画面中央（35%〜）から自然に暗く落とす */
  .greeting-overlay {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.0) 0%,
      rgba(0, 0, 0, 0.95) 90%,
      rgba(0, 0, 0, 1.0) 100%
    ) !important;
  }

  .greeting-inner {
    padding: 0 6% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* 「代表挨拶」タイトル：左上に配置 */
  .section-title {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    font-size: 1.6rem !important;
    margin-bottom: 0 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9) !important;
  }

  /* 本文コンテンツ：人物の胸下（中央下寄り）からスタートさせるマージン */
  .greeting-content {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 250px !important; /* 顔〜上半身を見せるためのスペース */
    position: relative !important;
    z-index: 4 !important;
  }

  /* 本文テキスト：黒グラデーションの上に重ねて視認性を確保 */
  .greeting-text p {
    font-size: 0.95rem !important;
    line-height: 1.85 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9) !important;
    text-align: justify !important;
  }

}

/* ===================================
   レスポンシブ (768px以下 / スマホ)
=================================== */
@media (max-width: 768px) {
  .br-pc { display: none !important; }
  .br-sp { display: block !important; }

  .site-header { padding: 10px 20px !important; }
  .logo img { height: 38px !important; }

  .hamburger-btn {
    display: block;
    width: 26px !important;
    height: 20px !important;
  }

  .hamburger-btn span:nth-child(1) { top: 0; }
  .hamburger-btn span:nth-child(2) { top: 9px; }
  .hamburger-btn span:nth-child(3) { top: 18px; }

  .hamburger-btn.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .hamburger-btn.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav.is-open { opacity: 1; visibility: visible; }

  .nav ul {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .nav a { font-size: 1.2rem; }

  .section-title { font-size: 1.8rem !important; }
  .section-sub-title { font-size: 1.4rem !important; }


  .business-title {
      font-size: 1.8rem;
  }

  .business-lead {
      font-size: 1.2rem;
  }

  .business-section {
    padding: 60px 0;
  }
  
  .display-image-container {
    height: 250px;
  }
  
  .labeled-box {
    padding: 30px 20px 25px;
  }
  
  .labeled-box-title {
    font-size: 0.9rem;
    padding: 10px 15px;
    top: -12px;
    left: 12px;
  }

  .labeled-box-content {
    font-size: 0.92rem;
    line-height: 1.75;
  }



  .history-section {
    padding: 60px 0 80px;
  }

  .history-title {
    font-size: 1.8rem;
  }

  .history-single-img {
    margin-bottom: 15px;
  }

  .history-caption {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 35px;
    padding: 0 10px;
  }

  .history-body p {
    font-size: 0.95rem;
    line-height: 1.85;
  }

  .company-title {
    font-size: 1.8rem;
  }
  .company-row {
    flex-direction: column;
    padding: 18px 5px;
  }

  .company-row dt {
    width: 100%;
    margin-bottom: 6px;
  }

  .company-row dd { width: 100%; }


  .page-404 {
    padding-top: 100px;
    padding-bottom: 80px;
  }

  .error-404 {
    padding: 20px;
  }

  .error-404__code {
    font-size: 3.8rem;
  }

  .error-404__sub {
    font-size: 0.95rem;
  }

  .error-404__text {
    font-size: 0.95rem;
    margin-bottom: 40px;
  }

  .error-404__search-box {
    max-width: 100%;
  }


}

@media (max-width: 480px) {
  .br-480 { display: block !important; }
  .btn-gradient { padding: 12px 35px !important; font-size: 0.9rem !important; }


  .history-caption {
    font-size: 0.7rem;
    line-height: 1.6;
    margin-bottom: 35px;
    padding: 0px 10px;
  }

  .greeting-bg {
    height: 380px;
    background-image: url('../img/message_sp_480.png') !important;
  }

  .greeting-overlay {
    height: 380px;
  }

  .greeting-content {
    margin-top: 200px !important; /* 480px以下での画像比率に合わせた位置調整 */
  }

  .greeting-text p {
    font-size: 0.95rem !important;
    line-height: 1.8 !important;
  }

}