/* ================================
   全体設定
================================ */
body {
  margin: 0;
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: #333;
  background: #fff;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* 初期：非表示（PC） */
.sp-only {
  display: none;
}

/* SPだけ表示 */
@media (max-width: 767px) {
  .sp-only {
    display: inline;
  }
}

/* PCでは改行しない */
.sp-br {
  display: none;
}

/* SPのみ改行 */
@media (max-width: 768px) {
  .sp-br {
    display: inline;
  }
}

/* PCでは改行しない */
.sp-br {
  display: none;
}

/* SPのみ改行 */
@media (max-width: 768px) {
  .sp-br {
    display: inline;
  }
}

/* ================================
   ヘッダー（共通）
================================ */
.header-on-image {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
}

.header-on-image h1 {
  margin: 0;
}

/* 共通header */
header{
  width:100%;
}

/* TOPページ */
.top header{
  position:absolute;
  background:transparent;
}

/* 下層ページ */
.sub header{
  background:#2c3e50;
}

.site-logo {
  width: 20vw;
  max-width: 220px;
  height: auto;
  display: block;
}

.tel a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

/* ================================
   下層ページヘッダー
================================ */
.business-header {
  background-color: #484858;
  padding: 30px 0;
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-left: 25px;
  position: relative;
}

.logo {
  margin: 0;
}

.tel a {
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

/* ================================
   ハンバーガーメニュー
================================ */
.hamburger {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 28px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1000;
}

.hamburger span {
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ================================
   グローバルナビ
================================ */
.global-nav {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(72, 72, 88, 0.95);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
  z-index: 999;
}

.global-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
}

.global-nav.active {
  display: flex;
}


/* ================================
   カード（共通）
================================ */
.card {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.card.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   フッター（共通）
================================ */
.footer {
  background-color: rgba(72, 72, 88, 0.09);
  color: #484858;
  font-size: 14px;
  font-weight: bold;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.footer-nav-area {
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(72, 72, 88, 0.2);
}

.footer-nav a {
  color: #484858;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
}

.footer-company-area {
  display: flex;
  justify-content: flex-end;
  background:rgba(72, 72, 88, 0.09);
  padding: 20px 40px;
}

.company-info {
  text-align: right;
  font-size: 12px;
  line-height: 1.6;
}

.company-name {
  margin-top: 8px;
  font-weight: bold;
}

/* ================================
   共通スマホ対応
================================ */
@media (max-width: 768px) {
  .hamburger {
    top: 22px;
    right: 20px;
  }

  .business-header {
    padding: 10px 0 15px;
  }

  .header-inner {
    padding-left: 10px;
    gap: 10px;
    position: relative;
  }

  .site-logo {
    width: 150px;
  }

  .tel a {
    font-size: 14px;
  }

  .footer {
    min-height: 260px;
  }

  .footer-company-area {
    flex-direction: column;
    align-items: right;
    text-align: right;
  }

  .company-info {
    text-align: right;
  }

  .footer-nav a {
    display: block;
    margin: 8px 0;
  }
}


/* ======================
   見出しテキストの設定
====================== */

/*ページタイトルエリア, タイトルの位置 */
.page-title {
  padding: 20px 0 20px;
}

.page-title .title {
  text-align: center;
}

/* 見出しサイズ */
.title-xl {
  font-size: 26px;
  font-weight: bold;
}

.title-lg {
  font-size: 22px;
  font-weight: bold;
}

.title-md {
  font-size: 18px;
  font-weight: bold;
}

/*共通スタイル */
.title {
  line-height: 1.4;
  margin-bottom: 15px;
  text-align: center;
  color: #484858; /* メインカラー */
}

/*装飾（必要な時だけ） */
.title-center {
  text-align: center;
}

.title-line {
  border-bottom: 2px solid #b29263;
  padding-bottom: 5px;
}

/*レスポンシブ */
@media (min-width: 768px) {
  .title-xl { font-size: 32px; }
  .title-lg { font-size: 26px; }
  .title-md { font-size: 20px; }
}