html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;  /* ← 横スクロールを防止 */
}

#resize-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white; /* ← ここは好みで black / rgba でも */
  z-index: 9999;
  pointer-events: none;  /* クリックなどの操作は透過 */
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* --- 全ページ共通のbodyスタイル --- */

body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #ffffff;
  color: #333333;
  line-height: 1.6;
  text-align: center;
  padding-top: 100px; /* デフォルト：通常ページ用 */
}

/* ===== 見出し・英字小見出し 共通スタイル ===== */
/* 英字小見出し（オレンジ・小文字・太字・英字フォント） */
.section-en, .philosophy-en, .guidelines-title {
  color: #ef7a00;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  letter-spacing: 1.5px;
  font-weight: bold;
  text-transform: lowercase;
  margin-bottom: 0.5em;
  display: block;
}

/* メイン見出し */
h1, .philosophy-main {
  font-size: 2rem;
  color: #222;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

/* サブ見出し */
h2, .orange-left {
  font-size: 1.5rem;
  color: #ef7a00;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.3;
  text-align: left;
}

/* サブサブ見出し */
h3, .guidelines-ja {
  font-size: 1.2rem;
  color: #333;
  font-weight: bold;
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 900;
  display: none;
}
.menu-overlay.active {
  display: block;
}


/* トップページ用：透過ヘッダー */
.overlay-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0); /* ← 透過 */
  color: white;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* 通常表示用：白背景ヘッダー（初期は非表示） */
.default-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  color: #333;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0.85rem 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}



/* ヘッダーの中身 */
.header-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 14px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

/* ロゴは左、ナビは右に寄せる */
.header-inner nav {
  margin-left: auto;
}

/* ロゴのサイズ */
.logo img {
  width: auto;
  height: 62px;
  max-width: min(34vw, 340px);
  display: block;
}

/* ナビゲーション */
.nav-menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 18px;
  position: relative;
  align-items: center;
}

.nav-menu li {
  position: relative;
}


/* 共通ナビゲーションリンク */
.nav-menu li a {
  text-decoration: none;
  font-weight: 500;
  display: block;
  padding: 1rem 0.35rem;
  transition: color 0.3s ease;
  color: white;
  white-space: nowrap;
}
.nav-menu li a:hover { color: #f57c00; }
/* default-header用（黒文字） */
.default-header .nav-menu li a { color: #333; }
.default-header .nav-menu li a:hover { color: #f57c00; }

.nav-menu .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ef7d00;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 220px;
  z-index: 1001;
}

.nav-menu li:hover > .submenu {
  display: block;
}
/* ハンバーガーのバー色 */
.default-header .menu-toggle .bar { background-color: #333; }


/* サブメニュー共通 */
.submenu li a,
.submenu-right li a {
  color: white;
  padding: 0.75rem 1rem;
  white-space: nowrap;
}
.submenu li a:hover,
.submenu-right li a:hover {
  background-color: #ff9f40;
}
.submenu .submenu-right {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background-color: #ef7d00;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 220px;
}
.submenu li:hover > .submenu-right {
  display: block;
}

/* PC時の横幅圧迫を抑えて1行維持しやすくする */
@media screen and (min-width: 981px) {
  .header-inner {
    padding: 0 10px;
  }

  .logo img {
    width: auto;
    height: 58px;
    max-width: min(32vw, 320px);
  }

  .nav-menu {
    gap: clamp(6px, 0.7vw, 12px);
  }

  .nav-menu li a {
    font-size: clamp(0.84rem, 0.92vw, 1rem);
    padding: 0.95rem 0.22rem;
    letter-spacing: 0.03em;
  }
}

/* ハンバーガーメニューの見た目 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  z-index: 1400;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
}

/* モバイル対応（768px以下） */

@media screen and (max-width: 980px) {
  /* モバイルではヘッダーを小さく */
  .default-header,
  .overlay-header {
    padding: 0.6rem 0;
  }

  .logo img {
    width: auto;
    height: 46px;
    max-width: min(68vw, 270px);
  }

  body {
    padding-top: 60px;
  }

  /* オーバーレイ：半透明背景（nav-menuより下） */
  .menu-overlay.active {
    display: block;
    background: transparent;
  }

  .overlay-header {
    background-color: #fff !important;
    color: #333 !important;
  }

  .overlay-header .nav-menu li a {
    color: #333 !important;
  }

  .overlay-header .menu-toggle .bar {
    background-color: #333 !important;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: fixed; 
    top: 0;
    right: 0;
    height: 100%;
    width: 260px;
    max-width: 75%;
    padding: 4.5rem 0 1.5rem;
    text-align: left;
    z-index: 1001;
    box-shadow: -3px 0 12px rgba(0,0,0,0.15);
    overflow-y: auto;
    gap: 0;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-menu.active li {
    border-bottom: 1px solid #eee;
  }
  .nav-menu.active li:last-child {
    border-bottom: none;
  }
  .nav-menu.active li a {
    color: #333 !important;
    font-size: 0.98rem;
    padding: 0.7rem 1.25rem;
    line-height: 1.4;
  }
  .nav-menu li a:hover {
    color: #f57c00 !important;
    background-color: #fef5ec;
  }
  .menu-toggle {
    display: flex;
  }

  /* サブメニュー：モバイルレイアウト */
  .nav-menu .submenu,
  .submenu .submenu-right {
    position: static;
    min-width: 0;
    background-color: #f7f7f7;
    box-shadow: none;
    padding-left: 0;
    border-left: 3px solid #f57c00;
    margin-left: 1rem;
  }
  .nav-menu li:hover > .submenu,
  .submenu li:hover > .submenu-right {
    display: none; /* ホバー表示を無効化、JSで制御 */
  }
  .submenu li a,
  .submenu-right li a {
    color: #555 !important;
    font-size: 0.85rem;
    padding: 0.55rem 1rem;
  }
  .submenu li a:hover,
  .submenu-right li a:hover {
    color: #f57c00 !important;
    background-color: #fef5ec;
  }

}

/*　フッター　*/

footer {
  background: #ffffff;
  padding: 2rem;
  text-align: center;
}

.footer-inner nav a {
  margin: 0 0.5rem;
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
}

.contact-buttons {
  margin-top: 1rem;
}

.contact-buttons .btn {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #f57c00;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

/* フッターバナー */
.footer-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1rem;
  background: #fafafa;
}

.footer-banner .item {
  position: relative;
  flex: 1 1 190px;
  max-width: 100%;
  min-height: 118px;
  overflow: visible;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.footer-banner .item > a {
  display: block;
  height: 100%;
  text-decoration: none;
}

.footer-banner .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.footer-banner .item:hover img {
  transform: scale(1.05);
}

/* グラデーションを重ねる擬似要素 */
.footer-banner .item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;  /* ← 左側 40%にグラデーションを敷く */
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0));
  z-index: 1;
  pointer-events: none;
}

/* ラベルの白抜き文字 */
.footer-banner .label {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  z-index: 2;  /* グラデーションの上に文字を出す */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

@media screen and (max-width: 980px) {
  .footer-banner .item {
    flex: 1 1 48%;
    max-width: 48%;
    min-height: 110px;
  }
}

@media screen and (max-width: 600px) {
  .footer-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
  }

  .footer-banner .item {
    flex: unset;
    max-width: 100%;
    min-height: 96px;
  }

  .footer-banner .label {
    font-size: 0.85rem;
    left: 0.5rem;
  }
}

/* コンタクトセクション背景ぼかし */
.contact-cta {
  position: relative;
  overflow: hidden;
  padding: 0.5rem 1rem;
  background: url("../img/gazo69.jpg") no-repeat center center;
  background-size: cover;
}

.contact-overlay {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.5rem;
}

.contact-block {
  background: white;
  display: flex;
  flex-direction: column;  /* 縦並び */
  align-items: center;     /* ← ここが中央揃えのポイント！ */
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  text-align: center;      /* 中の文字も中央揃えに */
}

.contact-block .label {
  font-weight: bold;
  font-size: 1.1rem;
  margin-right: 1rem;
  white-space: nowrap;
}

.contact-block .content {
  flex: 1;
}

.tel-large {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #f57c00;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #e65100;
}

.tel-icon {
  font-size: 1.4rem;
  margin-right: 0.5rem;
}

/* フッターのロゴサイズ調整 */
.footer-inner img {
  height: 80px;
  width: auto;
  margin-bottom: 1rem;
}
/* ナビ部分をオレンジに */
.footer-inner .footer-nav {
  background-color: #ffa345; /* 明るめオレンジ */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 0.9rem;
  padding: 1rem 0;
  margin-top: 1rem;
}

.footer-inner .footer-nav a {
  display: inline-block;
  color: #000;
  margin: 0;
  text-decoration: none;
  font-weight: nomal;
  line-height: 1.5;
}

.footer-inner .footer-nav a:hover {
  color: #ffd7b6;
}

/* コピーライトだけ濃いオレンジに */
.footer-inner small {
  display: block;
  background-color: #ec7700; /* 濃いオレンジ */
  color: white;
  padding: 0.5rem 0;
  font-size: 0.8rem;
  margin-top: 0;
}
.footer-bottom {
  display: block;
  width: 100%;
  background-color: #ec7700;  /* 濃いオレンジ */
  color: white;
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.8rem;
}

/* フッター・コンタクト スマホ対応 */
@media screen and (max-width: 600px) {
  footer {
    padding: 1rem 0.5rem;
  }

  .contact-overlay {
    max-width: 100%;
  }

  .contact-block .label {
    font-size: 0.95rem;
    margin-right: 0;
  }

  .tel-large {
    font-size: 1.2rem;
  }

  .footer-inner .footer-nav {
    gap: 0.3rem 0.8rem;
  }

  .footer-inner .footer-nav a {
    font-size: 0.8rem;
  }

  .footer-inner .footer-nav a.footer-facebook-link::before {
    width: 0.85rem;
    height: 0.85rem;
    flex-basis: 0.85rem;
  }

  .footer-inner img {
    height: 60px;
  }
}

/* オレンジボタン　*/
.orange-btn {
  display: inline-block;
  background: #ec7700;
  color: #fff;
  padding: 12px 32px;
  border-radius: 0;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s;
}
.orange-btn:hover {
  background: #ff9900;
}

/* 表の横スクロール共通ラッパー */
.table-scroll {
  width: 100%;
}

@media screen and (max-width: 768px) {
  .table-scroll,
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    background: #fff;
    box-shadow: inset -12px 0 10px -10px rgba(0, 0, 0, 0.14);
  }

  .table-scroll > table,
  .table-wrap > table {
    min-width: 640px;
    margin: 0;
  }

  .table-scroll th,
  .table-scroll td,
  .table-wrap th,
  .table-wrap td {
    font-size: 0.92rem;
    line-height: 1.5;
    padding: 0.55rem 0.5rem;
    white-space: nowrap;
  }
}

/* スマートフォン用 固定主要導線バー */
.mobile-fixed-cta {
  display: none;
}

@media screen and (max-width: 768px) {
  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }

  footer {
    padding-bottom: calc(1rem + 74px + env(safe-area-inset-bottom));
  }

  .mobile-fixed-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 800;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid #e7dfd2;
    background: #fff;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  }

  .mobile-fixed-cta a {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    text-decoration: none;
    color: #5a4738;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    border-right: 1px solid #efe7dc;
    background: #fff;
  }

  .mobile-fixed-cta a:last-child {
    border-right: none;
  }

  .mobile-fixed-cta a:hover,
  .mobile-fixed-cta a:active {
    background: #fff6eb;
    color: #e87300;
  }
}


