/*
Theme Name: biz-tmp01
Theme URI: https://example.com
Author: 平成ジャパン
Author URI: https://example.com
Description: 平成ジャパン 自作テーマ
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: biz-tmp01
*/

/* =============================================
   リセット
============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =============================================
   CSS変数
============================================= */
:root {
  --color-accent: #c8a84b;
  --color-title: #000;
  --color-text: #333;
  --color-text-sub: #333;
  --color-border: #e0e0e0;
  --color-bg: #fff;
  --color-bg-gray: #f7f7f5;
  --font-base: "Zen Old Mincho", serif;
  --container-max: 1100px;
  --section-max: 1920px;
  --section-py: 120px;
  --section-pt: 32px;
  --section-first-pt: 150px;
  --side-padding-pc: 32px;
  --side-padding-sp: 20px;
}

/* =============================================
   基本
============================================= */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.8;
}

ul {
  list-style: none;
}

/* =============================================
   レイアウト
============================================= */
.container {
  /* width: 90%;
  max-width: var(--container-max);
  margin: 0 auto; */
  width: 100%;
  padding: 0 32px;
}

/* =============================================
   ヘッダー（左固定サイドバー）
============================================= */
:root {
  --sidebar-w: 130px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  z-index: 1000;
  background: #fff;
  /* border-right: 1px solid var(--color-border); */
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.site-header__brand {
  padding: 40px 28px 32px;
  /* border-bottom: 1px solid var(--color-border); */
}

.site-title a {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.06em;
  line-height: 1.5;
  display: block;
}

.site-header__footer {
  /* margin-top: auto; */
  padding: 24px 10px;
  text-align: center;
  color: #fff;
  background: #000;
  /* border-top: 1px solid var(--color-border); */
}

.site-header__footer small {
  font-size: 10px;
}

.site-header__footer span {
  font-size: 15px;
  font-family: "Lora", serif;
}

/* =============================================
   グローバルナビ
============================================= */
.global-nav {
  flex: 1;
  padding: 16px 0;
  width: 250px;
}

.global-nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.global-nav__list a {
  display: block;
  padding: 16px 50px;
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.08em;
  transition:
    color 0.2s,
    background 0.2s;
  line-height: 1.5;
}

.global-nav__list a:hover {
  opacity: 0.8;
}
.global-nav__list .current-menu-item > a,
.global-nav__list .current-page-ancestor > a {
  color: var(--color-accent);
  background: #faf8f2;
}

/* ナビ英語ルビ */
.global-nav__list ruby {
  display: inline-flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  line-height: 1.2;
  vertical-align: top;
}

.global-nav__list rt {
  display: block;
  font-size: 0.45em;
  letter-spacing: 0.06em;
  /* color: var(--color-accent); */
  font-style: normal;
  font-family: "Lora", serif;
  line-height: 1;
  margin-bottom: 3px;
}

/* ハンバーガー（PC非表示） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: 30px;
  height: 56px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--color-text);
  transition:
    transform 0.3s,
    opacity 0.3s;
  transform-origin: center;
}

.nav-toggle::after {
  content: "menu";
  display: block;
  width: 30px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--color-text);
  font-family: "Lora", serif;
  line-height: 1;
}

/* トップページのスクロール前だけ白（ヒーロー画像上） */
.home .mobile-header:not(.is-scrolled) .nav-toggle span {
  background: #fff;
}
.home .mobile-header:not(.is-scrolled) .nav-toggle::after {
  color: #fff;
}

/* モバイル/タブレット用ヘッダーバー */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: transparent;
  z-index: 1100;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.mobile-header__logo {
  display: flex;
  align-items: center;
}

.mobile-header__logo img {
  height: 56px;
  width: auto;
  display: block;
}

body.nav-open .mobile-header__logo {
  visibility: hidden;
}

.mobile-header.is-scrolled .nav-toggle span {
  background: var(--color-text);
}

.mobile-header.is-scrolled .nav-toggle::after {
  color: var(--color-text);
}

.mobile-header.is-scrolled {
  background: rgba(255, 255, 255, 0.78);
}

body.nav-open .mobile-header.is-scrolled {
  background: transparent;
}

/* モバイル用CTAバー */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: #000;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
}

.mobile-cta small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin-bottom: 2px;
}

.mobile-cta span {
  font-size: 1.2rem;
  font-family: "Lora", serif;
  letter-spacing: 0.05em;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* オーバーレイ */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
}

.nav-overlay.is-active {
  display: block;
}

/* =============================================
   サイドバー内ハンバーガー（ロゴ下・PC用）
============================================= */
.sidebar-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: auto;
  padding: 8px;
  margin: auto;
  background: transparent;
  border: none;
  cursor: pointer;
}

.sidebar-toggle span:not(.toggle-label) {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-text);
  transition:
    transform 0.3s,
    opacity 0.3s;
  transform-origin: center;
}

.toggle-label {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--color-text);
  line-height: 1;
  font-family: "Lora", serif;
  padding-top: 10px;
}

.sidebar-toggle.is-active span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}
.sidebar-toggle.is-active span:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

/* =============================================
   ヘッダー固定分の余白
============================================= */
.site-main {
  padding-top: 0;
  padding-left: var(--sidebar-w);
}

/* =============================================
   セクション共通
============================================= */
.section {
  padding: var(--section-pt) 0 var(--section-py);
  width: 100%;
  max-width: calc(var(--section-max) - var(--sidebar-w));
  margin: 0 auto;
}

.section--gray {
  background: var(--color-bg-gray);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.section-title {
  font-size: 1.47rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-title);
  margin-bottom: 64px;
}

.section-more-link {
  color: var(--color-text-sub);
  letter-spacing: 0.06em;
}

.section-more-link:hover {
  opacity: 0.8;
  /* color: var(--color-accent); */
}

.section-more {
  text-align: center;
  margin-top: 48px;
}

/* =============================================
   Googleマップ
============================================= */
.map-wrap {
  overflow: hidden;
  margin-top: 24px;
}

/* =============================================
   CTAエリア
============================================= */
.section-cta {
  text-align: center;
}
.section-cta p {
  margin-bottom: 28px;
  font-size: 1rem;
}

/* =============================================
   ページネーション
============================================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 80px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 0.78rem;
  color: var(--color-text);
  /* border: 1px solid var(--color-border); */
  border-radius: 50%;
  transition:
    background 0.2s,
    color 0.2s;
  text-decoration: none;
}

.pagination .page-numbers:hover {
  background: var(--color-bg-gray);
}

.pagination .page-numbers.current {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}

.pagination .page-numbers.dots {
  border: none;
  width: auto;
}

.pagination .page-numbers.disabled {
  opacity: 0.3;
  pointer-events: none;
  cursor: default;
}

.pagination .page-numbers {
  cursor: pointer;
}

/* =============================================
   フォトストリップ
============================================= */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  overflow: hidden;
}

.photo-strip__item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.photo-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.photo-strip__item:hover img {
  transform: scale(1.05);
}

/* =============================================
   フッター
============================================= */
.site-footer {
  background: var(--color-bg);
  padding: 60px 0 0;
  margin-left: var(--sidebar-w);
}

.site-footer.has-border {
  border-top: 1px solid var(--color-border);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 64px;
}

.footer-brand__logo {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  color: var(--color-text);
}

.footer-brand__address {
  font-size: 0.75rem;
  color: var(--color-text-sub);
  line-height: 1.9;
  font-style: normal;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 24px;
  align-content: start;
  width: fit-content;
  margin-left: auto;
}

.footer-nav a {
  font-size: 0.8125rem;
  color: var(--color-text-sub);
  transition: color 0.2s;
}

.footer-nav a:hover {
  opacity: 0.8;
}

.site-footer__bottom {
  padding: 16px 0 40px;
  margin-top: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--color-text-sub);
}

.footer-privacy a {
  color: var(--color-text-sub);
  text-decoration: underline;
  font-family: "Lora", serif;
}

/* =============================================
   404
============================================= */
.error-404 {
  padding: 100px 0;
  text-align: center;
}

.error-404 h1 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 16px;
}

.error-404 p {
  color: var(--color-text-sub);
  margin-bottom: 40px;
  font-size: 0.875rem;
}

/* =============================================
   アクセスセクション
============================================= */
.access-section {
}

.access-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.access__map {
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.access__map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.access__info {
}

.access__dl {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.access__dd {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--color-text);
}

.access__tel {
  /* color: var(--color-accent); */
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.access__tel:hover {
  opacity: 0.8;
}

/* =============================================
   レスポンシブ
   タブレット: 800px - 1279px
   スマホ:     〜799px
============================================= */
@media (min-width: 901px) {
  /* グローバルナビ PC スライドイン */
  .global-nav {
    position: fixed;
    top: 0;
    left: var(--sidebar-w);
    width: 250px;
    height: 100vh;
    background: #fff;
    z-index: 998;
    overflow-y: auto;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.35s ease,
      visibility 0s linear 0.35s;
  }
  .site-header.is-nav-open .global-nav {
    opacity: 1;
    visibility: visible;
    transition:
      opacity 0.35s ease,
      visibility 0s;
  }
}

@media (max-width: 1279px) {
  /* セクション余白 */
  :root {
    --section-py: 80px;
    --section-pt: 60px;
    --section-first-pt: 120px;
  }

  /* コンテナ幅 */
  .container {
    width: 100%;
  }

  /* アクセス */
  .access-inner {
    gap: 28px;
    grid-template-columns: 3fr 2fr;
  }
}

@media (max-width: 900px) {
  /* ヘッダー・ナビ */
  :root {
    --sidebar-w: 320px;
  }
  .sidebar-toggle {
    display: none;
  }
  .mobile-header {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .site-header {
    transform: translateX(calc(-1 * var(--sidebar-w)));
    transition: transform 0.3s ease;
    box-shadow: none;
  }
  .site-header.is-open {
    transform: translateX(0);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
  }

  /* ナビ上寄せ */
  .global-nav {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 40px;
  }
  .global-nav__list a {
    text-align: left;
    padding: 20px 45px;
    font-size: 1rem;
  }

  /* メインコンテンツ余白 */
  .site-main {
    padding-left: 0;
  }

  /* フッター */
  .site-footer {
    margin-left: 0;
  }

  /* モバイル CTAバー表示・サイドバー内の非表示 */
  .mobile-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    padding: 6px 16px;
  }
  .mobile-cta small {
    display: block;
    font-size: 12px;
    letter-spacing: 0;
    opacity: 1;
    margin-bottom: 0;
  }
  .mobile-cta span {
    font-size: 1rem;
    font-family: "Lora", serif;
    letter-spacing: 0;
    line-height: 1;
  }
  .site-header__footer {
    display: none;
  }
}

@media (max-width: 799px) {
  /* セクション余白 */
  :root {
    --section-py: 50px;
    --section-pt: 50px;
    --section-first-pt: 80px;
  }

  /* モバイルヘッダー */
  .mobile-header {
    height: 72px;
  }
  .mobile-header__logo img {
    height: 40px;
  }

  /* ヘッダーメニュー */
  :root {
    --sidebar-w: 260px;
  }
  .global-nav {
    padding-top: 1px;
    padding-bottom: 100px;
  }
  .global-nav__list a {
    font-size: 1rem;
    padding: 14px 45px;
  }

  /* サイドバーロゴ縮小・CTAバー分の余白 */
  .site-header__brand {
    padding: 24px 20px 40px;
  }
  .site-header__brand svg {
    width: 48px;
    height: auto;
  }
  .site-header {
    padding-bottom: 60px;
  }
  .container {
    padding: 0 20px;
  }

  *, 
  /* 記事グリッド */
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .post-nav {
    grid-template-columns: 1fr;
  }
  .post-nav > * {
    text-align: center !important;
  }

  /* セクションタイトル */
  .section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.35rem;
  }

  /* フッター */
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
  .footer-nav {
    display: none;
  }
  .site-footer__bottom {
    flex-direction: column;
    gap: 8px;
    padding: 16px 0 0;
  }
  .site-footer {
    padding-top: 50px;
    padding-bottom: 70px;
  }
  .footer-brand__logo {
    margin-bottom: 15px;
  }
  .footer-brand__logo img {
    width: 160px;
    height: auto;
  }

  /* アクセス */
  .access-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .access__map {
    height: 280px;
  }
}

@media (max-width: 640px) {
  /* フォトストリップ */
  .photo-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 499px) {
  /* フッター */
  .footer-nav {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   レスポンシブ
   タブレット: 800px - 1279px
   スマホ:     〜799px
============================================= */
@media (min-width: 800px) and (max-width: 1279px) {
  .mobile-header {
    height: 104px;
  }
  .site-footer__bottom {
    padding: 16px 0 80px;
  }
}
