@charset "UTF-8";
/* ==========================================================================
   HOUSE GUARD（中村美装）
   common.css - リセット / デザイントークン / 共通パーツ
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. デザイントークン
   -------------------------------------------------------------------------- */
:root {
  /* ブランドカラー（ロゴから採色） */
  --c-navy:        #0B2450;
  --c-navy-2:      #16386B;
  --c-blue:        #2C6FBF;
  --c-blue-mid:    #3F8AD8;
  --c-blue-lt:     #8FBCE8;
  --c-blue-pale:   #E8F1FA;
  --c-blue-pale-2: #F4F9FD;
  --c-gold:        #B98F44;
  --c-gold-lt:     #DCC28B;
  --c-line:        #06C755;
  --c-line-dark:   #04A445;

  /* テキスト */
  --c-ink:    #17222F;
  --c-ink-2:  #4C5A6B;
  --c-ink-3:  #8593A4;

  /* ベース */
  --c-bg:     #FFFFFF;
  --c-border: #DFE8F2;

  /* フォント */
  --ff-ja: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --ff-en: "Jost", "Noto Sans JP", sans-serif;

  /* 角丸 */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 44px;

  /* 影 */
  --sh-sm: 0 4px 14px -8px rgba(11, 36, 80, .30);
  --sh-md: 0 18px 40px -26px rgba(11, 36, 80, .38);
  --sh-lg: 0 34px 70px -40px rgba(11, 36, 80, .42);

  /* レイアウト */
  --container: 1160px;
  --container-narrow: 880px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 88px;

  /* イージング */
  --e-out: cubic-bezier(.22, .68, .25, 1);
}

@media (max-width: 767px) {
  :root {
    --header-h: 62px;
    --r-xl: 28px;
    --r-lg: 20px;
  }
}

/* --------------------------------------------------------------------------
   2. リセット
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--ff-ja);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--c-ink);
  background: var(--c-bg);
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p, figure, dl, dd, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; border: 0; }
table { border-collapse: collapse; border-spacing: 0; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .3s var(--e-out), opacity .3s var(--e-out);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

address { font-style: normal; }
b, strong { font-weight: 700; }
small { font-size: inherit; }

:focus-visible {
  outline: 3px solid var(--c-blue-mid);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. ユーティリティ
   -------------------------------------------------------------------------- */
.u-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 1000;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--c-navy);
  box-shadow: var(--sh-md);
  transform: translate(-50%, -160%);
  transition: transform .3s var(--e-out);
}
.skip-link:focus { transform: translate(-50%, 0); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.section {
  position: relative;
  padding-block: clamp(72px, 10vw, 132px);
}

@media (min-width: 768px) {
  .u-sp { display: none !important; }
}
@media (max-width: 767px) {
  .u-pc { display: none !important; }
}

/* --------------------------------------------------------------------------
   4. セクション見出し
   -------------------------------------------------------------------------- */
.sec-head {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.sec-head__en {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .26em;
  color: var(--c-blue);
  margin-bottom: 14px;
}
.sec-head__en::before,
.sec-head__en::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--c-gold);
  opacity: .8;
}
.sec-head__en--light { color: rgba(255, 255, 255, .92); }
.sec-head__en--light::before,
.sec-head__en--light::after { background: rgba(255, 255, 255, .6); }

.sec-head__ja {
  font-size: clamp(25px, 4.2vw, 43px);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: .045em;
  color: var(--c-navy);
  text-wrap: balance;
}
.sec-head__ja em {
  position: relative;
  font-style: normal;
  color: var(--c-blue);
}
.sec-head__ja em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .06em;
  height: .18em;
  background: var(--c-gold-lt);
  opacity: .45;
  border-radius: 2px;
  z-index: -1;
}

.sec-head__lead {
  max-width: 46em;
  margin: 20px auto 0;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 2.05;
  color: var(--c-ink-2);
  text-wrap: balance;
}

.sec-head--light .sec-head__en { color: rgba(255, 255, 255, .92); }
.sec-head--light .sec-head__en::before,
.sec-head--light .sec-head__en::after { background: rgba(255, 255, 255, .55); }
.sec-head--light .sec-head__ja { color: #fff; }
.sec-head--light .sec-head__lead { color: rgba(255, 255, 255, .88); }

/* --------------------------------------------------------------------------
   5. ボタン
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.4;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--e-out), box-shadow .35s var(--e-out),
              background-color .3s var(--e-out), color .3s var(--e-out);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .32) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--e-out);
}
.btn:hover::after { transform: translateX(120%); }

.btn__ico {
  flex: none;
  width: 22px;
  height: 22px;
  transition: transform .35s var(--e-out);
}
.btn__ico--r { width: 18px; height: 18px; }
.btn:hover .btn__ico--r { transform: translateX(4px); }

.btn--line {
  color: #fff;
  background: linear-gradient(135deg, var(--c-line) 0%, var(--c-line-dark) 100%);
  box-shadow: 0 14px 28px -16px rgba(6, 199, 87, .85);
}
.btn--line:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 34px -16px rgba(6, 199, 87, .9);
}

.btn--ghost {
  color: var(--c-navy);
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--c-navy);
}
.btn--ghost:hover {
  color: #fff;
  background: var(--c-navy);
  transform: translateY(-3px);
}

.btn--lg { padding: 20px 40px; font-size: 16px; }
.btn--xl { padding: 24px 52px; font-size: clamp(16px, 2vw, 19px); }
.btn--xl .btn__ico { width: 28px; height: 28px; }
.btn--block { display: flex; width: 100%; }

@media (max-width: 767px) {
  .btn { padding: 15px 24px; font-size: 14px; }
  .btn--lg { padding: 17px 26px; font-size: 15px; width: 100%; }
  .btn--xl { padding: 20px 26px; width: 100%; }
}

/* --------------------------------------------------------------------------
   6. ローダー
   -------------------------------------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: linear-gradient(165deg, #ffffff 0%, #F1F7FD 55%, #E4EEF9 100%);
  transition: opacity .7s var(--e-out), visibility .7s var(--e-out);
}
.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__inner {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding-inline: 24px;
  text-align: center;
}

.loader__logo {
  width: min(280px, 62vw);
  opacity: 0;
  transform: translateY(14px) scale(.97);
  animation: loaderLogo 1.1s var(--e-out) .1s forwards;
}

.loader__tag {
  font-family: var(--ff-en);
  font-size: clamp(9px, 1.6vw, 11px);
  font-weight: 500;
  letter-spacing: .42em;
  color: var(--c-blue);
  opacity: 0;
  animation: loaderFade .9s var(--e-out) .5s forwards;
}

.loader__bar {
  width: min(220px, 50vw);
  height: 2px;
  border-radius: 2px;
  background: rgba(11, 36, 80, .12);
  overflow: hidden;
}
.loader__bar-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--c-blue), var(--c-gold));
  transform: scaleX(0);
  transform-origin: left;
  animation: loaderBar 1.5s var(--e-out) .2s forwards;
}

@keyframes loaderLogo { to { opacity: 1; transform: none; } }
@keyframes loaderFade { to { opacity: 1; } }
@keyframes loaderBar {
  0%   { transform: scaleX(0); }
  70%  { transform: scaleX(.85); }
  100% { transform: scaleX(1); }
}

/* --------------------------------------------------------------------------
   7. ヘッダー
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--e-out), box-shadow .4s var(--e-out);
}
/* 背景のぼかしは擬似要素に持たせる。
   .header 自体に backdrop-filter を指定すると position:fixed の子孫
   （ドロワーメニュー）の包含ブロックになってしまうため。 */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  transition: background-color .4s var(--e-out);
}
.header.is-scrolled { box-shadow: 0 10px 30px -26px rgba(11, 36, 80, .55); }
.header.is-scrolled::before { background: rgba(255, 255, 255, .94); }

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  height: var(--header-h);
  max-width: 1480px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  transition: height .4s var(--e-out);
}

.header__logo { flex: none; }
.header__logo a {
  display: block;
  transition: transform .4s var(--e-out);
}
.header__logo img {
  width: auto;
  height: 54px;
  transition: height .4s var(--e-out);
}
.header__logo a:hover { transform: translateY(-1px); }

.header.is-scrolled .header__inner { height: 72px; }
.header.is-scrolled .header__logo img { height: 44px; }

/* グローバルナビ */
.gnav { margin-left: auto; }
.gnav__list {
  display: flex;
  align-items: center;
  gap: clamp(13px, 1.5vw, 24px);
}
.gnav__list a {
  position: relative;
  display: block;
  padding-block: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--c-navy);
  white-space: nowrap;
}
.gnav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--c-blue);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--e-out);
}
.gnav__list a:hover,
.gnav__list a.is-current { color: var(--c-blue); }
.gnav__list a:hover::after,
.gnav__list a.is-current::after { transform: scaleX(1); transform-origin: left; }

.gnav__foot { display: none; }
.gnav__note {
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.8;
  text-align: center;
  color: var(--c-ink-3);
}

/* ヘッダー右側 */
.header__side {
  flex: none;
  display: flex;
  align-items: center;
  gap: 16px;
}
.header__note {
  padding-left: clamp(16px, 2vw, 26px);
  border-left: 1px solid var(--c-border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.5;
  color: var(--c-ink-3);
  white-space: nowrap;
}
.header__note span { color: var(--c-navy); }

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--c-line) 0%, var(--c-line-dark) 100%);
  box-shadow: 0 12px 24px -16px rgba(6, 199, 87, .9);
  transition: transform .35s var(--e-out), box-shadow .35s var(--e-out);
}
.header__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -16px rgba(6, 199, 87, .95);
}
.header__cta-ico { flex: none; width: 24px; height: 24px; }
.header__cta-txt { display: grid; line-height: 1.35; }
.header__cta-txt strong { font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.header__cta-txt small { font-size: 10px; opacity: .88; letter-spacing: .02em; }

/* ハンバーガー */
.burger {
  display: none;
  position: relative;
  z-index: 896; /* ドロワーより前面に出して開閉できるようにする */
  flex: none;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border-radius: 50%;
}
.burger span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-navy);
  transition: transform .4s var(--e-out), opacity .3s var(--e-out), width .4s var(--e-out);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; width: 16px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; width: 22px; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.drawer-veil {
  position: fixed;
  inset: 0;
  z-index: 890;
  background: rgba(11, 36, 80, .42);
  opacity: 0;
  transition: opacity .4s var(--e-out);
}
.drawer-veil.is-open { opacity: 1; }

/* --- タブレット以下 --- */
@media (max-width: 1240px) {
  .header__note { display: none; }
  .gnav__list { gap: 13px; }
  .gnav__list a { font-size: 13px; }
}

@media (max-width: 1080px) {
  .burger { display: block; }
  .header__side { margin-left: auto; }

  .gnav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 895;
    width: min(400px, 86vw);
    margin: 0;
    padding: calc(var(--header-h) + 28px) 28px 40px;
    background: #fff;
    box-shadow: -30px 0 60px -40px rgba(11, 36, 80, .6);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .5s var(--e-out), visibility .5s var(--e-out);
  }
  .gnav.is-open { transform: none; visibility: visible; }

  .gnav__list {
    display: block;
    border-top: 1px solid var(--c-border);
  }
  .gnav__list li { border-bottom: 1px solid var(--c-border); }
  .gnav__list a { padding: 17px 8px; font-size: 15px; }
  .gnav__list a::after { display: none; }
  .gnav__list a::before {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--c-blue);
    border-bottom: 2px solid var(--c-blue);
    transform: translateY(-50%) rotate(-45deg);
  }

  .gnav__foot { display: block; margin-top: 28px; }
}

@media (max-width: 767px) {
  .header__cta { padding: 9px 14px; }
  .header__cta-txt strong { font-size: 12px; }
  .header__cta-txt small { display: none; }
  .header__cta-ico { width: 20px; height: 20px; }
  .header__logo img { height: 38px; }
  .header.is-scrolled .header__inner { height: 58px; }
  .header.is-scrolled .header__logo img { height: 34px; }
}

@media (max-width: 380px) {
  .header__cta-txt strong { font-size: 0; }
  .header__cta-txt strong::after { content: "LINE相談"; font-size: 12px; }
}

/* --------------------------------------------------------------------------
   8. フッター
   -------------------------------------------------------------------------- */
.footer {
  padding-block: clamp(48px, 7vw, 80px) 0;
  background: var(--c-blue-pale-2);
  border-top: 1px solid var(--c-border);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(36px, 5vw, 80px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.footer__logo a { display: inline-block; }
.footer__logo img { width: auto; height: 62px; }

.footer__addr {
  margin: 20px 0 24px;
  font-size: 13px;
  line-height: 2;
  color: var(--c-ink-2);
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, auto));
  gap: 0 clamp(24px, 3vw, 56px);
}
.footer__nav li + li { margin-top: 4px; }
.footer__nav a {
  display: inline-block;
  padding-block: 6px;
  font-size: 13px;
  color: var(--c-ink-2);
}
.footer__nav a:hover { color: var(--c-blue); }

.footer__copy {
  padding-block: 22px;
  border-top: 1px solid var(--c-border);
  text-align: center;
  font-family: var(--ff-en);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--c-ink-3);
}

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .footer { padding-bottom: 76px; }
  .footer__logo img { height: 48px; }
  /* 3つの ul を解体し、リンクを2列へ均等に流し込む */
  .footer__nav { grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
  .footer__nav ul { display: contents; }
  .footer__nav li + li { margin-top: 0; }
  .footer__copy { padding-right: 56px; font-size: 11px; letter-spacing: .02em; }
}

/* --------------------------------------------------------------------------
   9. 固定CTA（SP） / ページトップ
   -------------------------------------------------------------------------- */
.fixed-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 880;
  display: none;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--c-border);
  transform: translateY(110%);
  transition: transform .5s var(--e-out);
}
.fixed-cta.is-visible { transform: none; }

.fixed-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--c-line) 0%, var(--c-line-dark) 100%);
  box-shadow: 0 12px 24px -14px rgba(6, 199, 87, .9);
}
.fixed-cta__btn svg { flex: none; width: 24px; height: 24px; }
.fixed-cta__btn span {
  display: grid;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .04em;
}
.fixed-cta__btn small { font-size: 10px; font-weight: 400; opacity: .9; }

@media (max-width: 767px) {
  .fixed-cta { display: block; }
}

.pagetop {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 870;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: var(--c-navy);
  background: #fff;
  box-shadow: var(--sh-md), 0 0 0 1px var(--c-border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .4s var(--e-out), visibility .4s var(--e-out),
              transform .4s var(--e-out), background-color .3s var(--e-out),
              color .3s var(--e-out);
}
.pagetop.is-visible { opacity: 1; visibility: visible; transform: none; }
.pagetop:hover { color: #fff; background: var(--c-navy); }
.pagetop svg { width: 22px; height: 22px; transform: rotate(180deg); }

@media (max-width: 767px) {
  .pagetop { width: 44px; height: 44px; bottom: 84px; }
}

/* --------------------------------------------------------------------------
   10. スクロールリビール
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .95s var(--e-out), transform .95s var(--e-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   11. 印刷
   -------------------------------------------------------------------------- */
@media print {
  .header, .fixed-cta, .pagetop, .loader, .fv__scroll, .drawer-veil { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  body { color: #000; }
}
