/* ===== Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --color-navy: #173D80;
  --color-blue: #07284F;
  --color-white: #fff;
  --color-text: #333;
  --color-bg: #f8f9fc;
  --font-base: 'Zen Kaku Gothic New', sans-serif;
  --container-max: 1200px;
}
html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}
body {
  font-family: var(--font-base);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================== common ============================== */
/*************レスポンシブ改行*********/
.br-mobile {
  display: none;
}

@media (max-width: 600px) {
  .br-mobile {
    display: inline-block;
    line-height: 0;
  }
}
.brake:after {
  content: "\A";
  white-space: pre;
}
@media (min-width: 960px) {
  .brake:after {
    content: "";
  }
}
/*************ホバー画像アクション*********/
.clickable-zoom {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.clickable-zoom:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 26px rgba(23, 61, 128, 0.16);
}
.clickable-zoom:active {
  transform: scale(1.01);
}
/*************ホバー文字アクション*********/
.clickable-underline {
  cursor: pointer;
  position: relative;
  text-decoration: none;
}
.clickable-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.clickable-underline:hover::after {
  transform: scaleX(1);
}
/*************表示*********/
@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*************スクロール表示*********/
.js .reveal {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 2s cubic-bezier(0.22, 1, 0.36, 1),
              transform 2s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* ============================== Header ============================== */
.ph-logo {
  width: 120px;
  aspect-ratio: 195 / 50;
  background: url('../image/common/logo.png') center / contain no-repeat;
}
.ph-icon {
  width: 19px;
  height: 19px;
  background: url('../image/common/tel.svg') center / contain no-repeat;
  border-radius: 1px;
  flex-shrink: 0;
}
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  padding: 7px 0;
}
.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 40px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav {
  flex: 1;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav > ul {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav > ul > li {
  display: flex;
  align-items: center;
  height: 100%;
}
.nav a {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #173D80;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav a:hover {
  opacity: 0.6;
}
.sep {
  color: #173D80;
  opacity: 0.3;
  font-size: 12px;
  user-select: none;
}
.has-drop {
  position: relative;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: -40px;
  list-style: none;
  margin: 0;
  padding: 2px 0;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 0 0 2px 2px;
  width: max-content;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
}
.has-drop:hover .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.dropdown li {
  height: auto;
}
.dropdown a {
  display: block;
  padding: 5px 20px 5px 40px;
  font-size: 1rem;
  font-weight: 500;
  color: #1B3A6B;
  text-decoration: none;
  transition: background 0.15s;
}
.dropdown a:hover {
  background: #173D80;
  color: #fff;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 30px;
  border-radius: 2px;
  font-size: 1.1rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn:hover {
  opacity: 0.75;
}
.btn--tel {
  border: 1.5px solid #1B3A6B;
  color: #1B3A6B;
  font-weight: 800;
  font-size: 1.4rem;
}
.btn--mail {
  background: linear-gradient(to right, #295BB6, #173D80);
  color: #fff;
}
.btn--mail .ph-icon {
  background: url('../image/common/mail.svg') center / contain no-repeat;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #1B3A6B;
  border-radius: 2px;
  transition: 0.3s;
}
.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== SP メニュー ===== */
/* 背景（スクリーン全体）：フェードのみ。スライドはしない */
.sp-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.35s;
}
.sp-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s 0s;
}
/* パネル本体：自分の高さ分だけ上から下りてくる（ドロワー） */
.sp-menu__panel {
  background: #fff;
  border-radius: 0 0 4px 4px; /* 上は角なし */
  padding: 0 20px 28px;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.sp-menu.is-open .sp-menu__panel {
  transform: translateY(0);
}
.sp-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 8px;
}
.sp-menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  position: relative;
}
.sp-menu__close span {
  display: block;
  width: 100%;
  height: 2px;
  background: #1B3A6B;
  border-radius: 2px;
  position: absolute;
}
.sp-menu__close span:nth-child(1) {
  transform: rotate(45deg);
}
.sp-menu__close span:nth-child(2) {
  transform: rotate(-45deg);
}
.sp-menu__nav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sp-menu__nav li a {
  display: block;
  padding: 16px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #1B3A6B;
  text-align: center;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.sp-menu__nav .sub a {
  font-weight: 600;
  opacity: 0.7;
}
.sp-menu__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
@media (max-width: 800px) {
  .nav,
  .actions {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .sp-menu {
    display: block;
  }
}

/* ============================== Footer ============================== */
.site-footer {
  background: var(--color-navy);
  color: #fff;
  padding: 60px 40px 40px;
  position: relative;
}

/* PC: SP専用を非表示 */
.footer__sp-nav,
.footer__sp-actions,
.footer__sp-social,
.footer__sp-brand,
.footer__pagetop {
  display: none;
}

/* PC メイン行 */
.footer__pc-main {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 48px;
}
.footer__brand {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  flex: 1;
}
.footer__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: center;
}
.footer__nav a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.footer__nav a:hover {
  opacity: 1;
}
.footer__nav span {
  opacity: 0.4;
}
.footer__social {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: flex-end;
  flex: 1;
}
.footer__social a {
  display: flex;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.footer__social a:hover {
  opacity: 1;
}
.footer__copy {
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.5;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* ===== Footer SP ===== */
@media (max-width: 800px) {
  .site-footer {
    padding: 0 0 30px;
  }
  .footer__pc-main {
    display: none;
  }

  /* SP nav */
  .footer__sp-nav {
    display: block;
  }
  .footer__sp-nav ul {
    list-style: none;
    margin: 0;
    padding: 30px 40px 0;
  }
  .footer__sp-nav li a {
    display: block;
    padding: 12px 10px;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.2s;
  }
  .footer__sp-nav li:last-child a {
    border-bottom: none;
  }
  .footer__sp-nav li a:hover {
    opacity: 0.7;
  }
  .footer__sub a {
    font-weight: 600;
    opacity: 0.6;
  }

  /* SP CTA */
  .footer__sp-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 25px 40px;
  }
  .footer__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    border-radius: 2px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
    margin-bottom: 5px;
  }
  .footer__btn:hover {
    opacity: 0.8;
  }
  .footer__btn--tel {
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    color: #fff;
  }
  .footer__btn--mail {
    background: #fff;
    color: var(--color-navy);
  }

  /* SP social */
  .footer__sp-social {
    display: flex;
    justify-content: center;
    gap: 28px;
    padding: 0 20px 28px;
  }
  .footer__sp-social a {
    display: flex;
    opacity: 0.8;
    transition: opacity 0.2s;
  }
  .footer__sp-social a:hover {
    opacity: 1;
  }

  /* SP brand */
  .footer__sp-brand {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
  }

  /* SP copyright */
  .footer__copy {
    border-top: none;
    padding-top: 0;
    font-size: 0.7rem;
  }

  /* PAGE TOP */
  .footer__pagetop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: absolute;
    bottom: 24px;
    right: 20px;
    text-decoration: none;
    transition: opacity 0.2s;
  }
  .footer__pagetop:hover {
    opacity: 1;
  }
  .footer__pagetop-label {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    font-weight: 600;
  }
}