/* ==========================================================================
   サイト全体共通スタイル（ヘッダー・フッター）
   Horse Design 二級建築士事務所
   ========================================================================== */

:root {
  --hd-main: #1B435D;
  --hd-main-dark: #143246;
  --hd-main-light: #2A5979;
  --hd-accent: #78BBE6;
  --hd-warm: #F99F48;
  --hd-warm-dark: #E88B35;
  --hd-bg: #F8F3EC;
  --hd-text: #2E3842;
  --hd-white: #FFFFFF;
  --hd-border: rgba(27, 67, 93, 0.18);
  --hd-text-on-dark: rgba(255, 255, 255, 0.9);
  --hd-text-on-dark-muted: rgba(255, 255, 255, 0.74);
}


/* ==========================================================================
   固定ヘッダー offset
   ========================================================================== */
body {
  padding-top: 64px;
  background: var(--hd-bg);
  color: var(--hd-text);
  font-family: 'Noto Sans JP', sans-serif;
}

.admin-bar .hd-site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .hd-site-header {
    top: 46px;
  }
}


/* ==========================================================================
   ヘッダー
   ========================================================================== */
.hd-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--hd-main, #5A7288);
  height: 64px;
}

.hd-site-header__inner {
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* ---- ロゴ ---- */
.hd-site-header__logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1;
  flex-shrink: 0;
}

/* カスタマイザーで画像ロゴを設定した場合 */
.hd-site-header__logo--image {
  display: inline-flex;
  align-items: center;
}

.hd-site-header__logo-img {
  display: block;
  height: auto;
  max-height: 48px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .hd-site-header__logo-img {
    max-height: 56px;
  }
}

.hd-site-header__logo-main {
  font-family: 'Cormorant Garamond', 'Garamond', Georgia, serif;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--hd-white);
  letter-spacing: 0.12em;
}

.hd-site-header__logo-sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.52rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 4px;
  text-transform: uppercase;
}


/* ---- PC ナビゲーション ---- */
.hd-site-header__nav-wrap {
  display: none;
}

@media (min-width: 768px) {
  .hd-site-header__nav-wrap {
    display: block;
  }
}

.hd-site-header__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.hd-site-header__nav li a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  transition: color 0.3s;
}

.hd-site-header__nav li a:hover {
  color: var(--hd-white);
}

.hd-site-header__nav-cta {
  background: var(--hd-warm);
  color: #28323D !important;
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
  font-weight: 500 !important;
  border: 1px solid var(--hd-warm);
  transition: background 0.3s, color 0.3s, border-color 0.3s !important;
}

.hd-site-header__nav-cta:hover {
  background: var(--hd-white) !important;
  border-color: var(--hd-white) !important;
  color: var(--hd-main) !important;
}


/* ---- ハンバーガーボタン ---- */
.hd-site-header__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .hd-site-header__hamburger {
    display: none;
  }
}

.hd-site-header__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.hd-site-header__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hd-site-header__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hd-site-header__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}


/* ---- モバイルメニュー ---- */
.hd-site-header__mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--hd-main, #5A7288);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s, visibility 0.35s;
}

.hd-site-header__mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.admin-bar .hd-site-header__mobile-menu {
  top: calc(64px + 32px);
}

.hd-site-header__mobile-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.hd-site-header__mobile-nav a {
  text-decoration: none;
  color: #FFFFFF;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  transition: color 0.3s;
}

.hd-site-header__mobile-nav a:hover {
  color: #F2D6A7;
}

.hd-site-header__mobile-menu .hd-site-header__nav-cta {
  margin-top: 0.5rem;
  display: inline-block;
  padding: 0.85rem 2.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  font-weight: 500;
}


/* ==========================================================================
   フッター
   ========================================================================== */
.hd-site-footer {
  background: var(--hd-main, #5A7288);
  color: rgba(255, 255, 255, 0.78);
  position: relative;

  /* フルワイド */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* CTAバナーとフッターの境界線 */
.hd-site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hd-warm) 0%, var(--hd-accent) 60%, transparent 100%);
}

.hd-site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3rem);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}

/* ---- ロゴ・コピーライト ---- */
.hd-site-footer__brand {
  flex: 1;
  min-width: 200px;
}

.hd-site-footer__logo-main {
  display: block;
  font-family: 'Cormorant Garamond', 'Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--hd-white);
  letter-spacing: 0.12em;
  text-decoration: none;
}

.hd-site-footer__logo-sub {
  display: block;
  font-size: 0.52rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  color: var(--hd-white);
  margin-top: 4px;
  text-transform: uppercase;
}

/* カスタマイザーで画像ロゴを設定した場合 */
.hd-site-footer__logo--image {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.hd-site-footer__logo-img {
  display: block;
  height: auto;
  max-height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.hd-site-footer__copy {
  font-size: 0.68rem;
  color: var(--hd-white);
  letter-spacing: 0.08em;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.8;
}

/* ---- ナビゲーション ---- */
.hd-site-footer__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
}

.hd-site-footer__nav a {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  transition: color 0.3s;
}

.hd-site-footer__nav a:hover {
  color: #F2D6A7;
}


/* ==========================================================================
   CTAバナー（TOP・全下層ページ共通）
   ========================================================================== */
.hd-cta-banner {
  background-color: var(--hd-main);
  color: var(--hd-white);
  padding-block: clamp(3.5rem, 8vw, 5.5rem);

  /* フルワイド */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.hd-cta-banner .hd-container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.hd-cta-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  position: relative;
  padding-left: 2rem;
}

.hd-cta-banner__line-motif {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--hd-warm);
}

.hd-cta-banner__en {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.65rem, 1.2vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--hd-warm);
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.hd-cta-banner__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--hd-white);
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.hd-cta-banner__desc {
  font-size: clamp(0.82rem, 1.4vw, 0.9rem);
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.9;
  margin: 0;
}

.hd-cta-banner__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.hd-cta-banner__btn {
  display: inline-block;
  background: var(--hd-warm);
  color: var(--hd-main);
  padding: 0.9em 2.4em;
  border: 2px solid var(--hd-warm);
  text-decoration: none;
  font-size: clamp(0.82rem, 1.4vw, 0.9rem);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  letter-spacing: 0.1em;
  white-space: nowrap;
  border-radius: 2px;
  transition: background 0.4s, color 0.4s;
}
.hd-cta-banner__btn:hover {
  background: var(--hd-white);
  border-color: var(--hd-white);
  color: var(--hd-main);
}

.hd-cta-banner__note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

@media (min-width: 768px) {
  .hd-cta-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .hd-cta-banner__body { flex: 1; }
  .hd-cta-banner__actions {
    flex-shrink: 0;
    align-items: center;
  }
}
