/* 全ページ共通の基本（詳細度0の :where で書き、各部品の指定を邪魔しない） */
/* 文字組み：見出しは語の途中で折り返さず行の長さをそろえる。本文は最後の行に1文字だけ残さない */
:where(h1, h2, h3, h4) {
  word-break: auto-phrase;
  text-wrap: balance;
}

:where(p, li, dd, figcaption) {
  text-wrap: pretty;
}

/* ページ内リンクで移動したとき、見出しがヘッダーに隠れない */
:where([id]) {
  scroll-margin-top: 110px;
}

/* キーボード操作の現在地をはっきり見せる（マウス操作では出ない） */
:where(a, button, summary, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* 文字を選んだときの色もブランドに合わせる */
::selection {
  background: var(--red);
  color: #fff;
}

/* 動きを減らす設定の人には、アニメーションと滑らかなスクロールを止める */
@media (prefers-reduced-motion: reduce) {
  :where(html) {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* =========================================================
   ボタンのホバーを統一（2026-10）：形は動かさず、色だけがシュッと切り替わる。矢印は使わない
   ========================================================= */
body :is(.pill, .ct__btn, .win__cta, .bg__btn, .mnav__cta, .ar__all, .nf__a, .cf__btn, .others a, .ar__svc) {
  transition: background-color .25s ease-out, color .25s ease-out, box-shadow .25s ease-out !important;
}

/* ボタンの中の文字や札も、同じ速さで切り替える（中だけ先に変わって速く見えるのを防ぐ） */
body :is(.pill, .ct__btn, .win__cta, .bg__btn, .mnav__cta, .ar__all, .nf__a, .cf__btn, .others a, .ar__svc) * {
  transition: background-color .25s ease-out, color .25s ease-out !important;
}

@media (hover:hover) {
  body :is(.pill, .ct__btn, .win__cta, .bg__btn, .mnav__cta, .ar__all, .nf__a, .cf__btn, .others a, .ar__svc):hover {
    transform: none !important;
  }
  /* 白いボタン（赤い文字）→ 墨 */
  body :is(.ct__btn, .win__cta, .mnav__cta):hover {
    background: var(--ink);
    color: #fff;
  }
  /* 赤いボタン → 墨 */
  body :is(.cf__btn, .nf__a:first-child):hover {
    background: var(--ink);
    color: #fff;
  }
  /* 墨のボタン → 赤 */
  body :is(.bg__btn, .ar__svc):hover {
    background: var(--red);
    color: #fff;
  }
  /* 線のボタン → 墨で塗る */
  body :is(.ar__all, .nf__a:not(:first-child)):hover {
    background: var(--ink);
    color: #fff;
    box-shadow: none;
  }
  /* ほかの支援（ローカルリンク）：白地のまま。縁の線だけが墨に切り替わる */
  body .others a:hover {
    background: #fff;
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--ink);
  }
}

/* スマホ（タッチ）：指で押している間だけ、PCのホバーと同じ色に切り替える。離すと元に戻る。形は動かさない */
@media (hover:none) {
  body :is(.pill, .ct__btn, .win__cta, .bg__btn, .mnav__cta, .ar__all, .nf__a, .cf__btn, .others a, .ar__svc):active {
    transform: none !important;
  }
  body :is(.ct__btn, .win__cta, .mnav__cta, .pill):active {
    background: var(--ink);
    color: #fff;
  }
  body :is(.cf__btn, .nf__a:first-child):active {
    background: var(--ink);
    color: #fff;
  }
  body :is(.bg__btn, .ar__svc):active {
    background: var(--red);
    color: #fff;
  }
  body :is(.ar__all, .nf__a:not(:first-child)):active {
    background: var(--ink);
    color: #fff;
    box-shadow: none;
  }
  body .others a:active {
    background: #fff;
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--ink);
  }
}

/* =========================================================
   共通の部品（2026-10）：影は使わない／灰色は --card の1色
   ========================================================= */
body .ct__btn,
body .ct__btn:hover,
body .win__cta,
body .win__cta:hover {
  box-shadow: none;
}

body .dd__m {
  box-shadow: 0 0 0 1px var(--line-l);
}

/* SP：フッターのリンクは押せる高さを44pxに */
@media (max-width:768px) {
  body .ft__nav a,
  body .ft__nav .soon {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
  }
}

/* デザイントークン（色・余白・角丸・書体・イージング） */
:root {
  --red: #E40019;
  --ink: #0B0B0B;
  --paper: #FFFFFF;
  --sub: #6A6A6A;
  --line: #E2E2E2;
  --soft: #F6F6F6;
  --pad: clamp(20px,3.4vw,52px);
  --r: 24px;
  --max: 1180px;
  --jp: "Helvetica Neue",Arial,"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif;
  --en: "Helvetica Neue","Inter",Arial,sans-serif;
  --min: "Zen Old Mincho","Hiragino Mincho ProN","Yu Mincho","Noto Serif JP",serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --ease: cubic-bezier(.2,.7,.1,1);
  --ac: #C2A266;
  --ac-soft: #F8F4EA;
  --ac-ink: #3B2E14;
  --ac-grad: linear-gradient(135deg,#E2CB97 0%,#C2A266 45%,#9E7E45 100%);
}

/* 共通の部品（2026-10）：外のカード・中のカード・入力欄。影は使わない */
:root {
  --card: #F5F5F5;
  --card-r: 20px;
  --inner-r: 12px;
  --line-l: #E0E0E0;
}

/* ヘッダー（ロゴ・グローバルナビ・ドロップダウン・相談ボタン・背景の切り替え） */
.logo {
  position: fixed;
  z-index: 60;
  top: 27px;
}

@media (max-width:768px) {
  .logo {
    top: 20px;
  }
}

.logo img {
  height: 32px;
  width: auto;
}

@media (max-width:768px) {
  .logo img {
    height: 22px;
  }
}

.logo .k {
  display: none;
}

.gnav {
  position: fixed;
  z-index: 60;
  top: 22px;
  display: flex;
  align-items: center;
  gap: 30px;
  color: #fff;
  font-family: var(--min);
  font-size: 13.5px;
  letter-spacing: .08em;
  transition: color .35s;
}

.gnav a:not(.pill) {
  padding: 6px 0;
  opacity: .88;
  background: linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat;
  transition: background-size .35s,opacity .2s;
}

@media (max-width:1100px) {
  .gnav a:not(.pill) {
    display: none;
  }
}

.gnav a:not(.pill):hover,
.gnav a[aria-current] {
  background-size: 100% 1px;
  opacity: 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 22px;
  border-radius: var(--r);
  background: var(--red);
  color: #fff;
  font-family: var(--jp);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  gap: 0;
  overflow: hidden;
  transition: background .35s var(--ease),color .35s,padding .45s var(--ease);
}

body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 86px;
  z-index: 55;
  pointer-events: none;
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity .35s,background .45s;
}

@media (max-width:768px) {
  body::after {
    height: 64px;
  }
}

body.past::after {
  opacity: 1;
}

body.past .logo .w {
  display: none;
}

body.past .logo .k {
  display: block;
}

body.past .gnav {
  color: var(--ink);
}

body.past.dk::after {
  background: rgba(11,11,11,.55);
}

body.past.rd::after {
  background: rgba(190,0,22,.55);
}

body.past.dk .logo .w,
body.past.rd .logo .w {
  display: block;
}

body.past.dk .logo .k,
body.past.rd .logo .k {
  display: none;
}

body.past.dk .gnav,
body.past.rd .gnav {
  color: #fff;
}

body.past.rd .gnav .pill {
  background: #fff;
  color: var(--red);
}

.mbtn {
  display: none;
}

@media (max-width:768px) {
  .mbtn {
    display: grid;
    place-items: center;
    position: fixed;
    z-index: 80;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
  }
  .gnav .pill {
    padding: 0 16px;
  }
  body.past .mbtn {
    background: #111;
  }
  body.past.dk .mbtn,
  body.past.rd .mbtn {
    background: rgba(255,255,255,.14);
  }
  .mbtn i {
    display: block;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    position: relative;
    transition: transform .45s var(--ease),top .45s;
    top: 3px;
  }
  .mbtn i::before {
    display: block;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    transition: transform .45s var(--ease),top .45s;
    content: "";
    position: absolute;
    left: 0;
    top: -6px;
  }
  body.menu .mbtn {
    background: #fff;
    color: var(--ink);
  }
  body.menu .mbtn i {
    transform: rotate(45deg);
    top: 0;
  }
  body.menu .mbtn i::before {
    transform: rotate(-90deg);
    top: 0;
  }
  body.menu .logo {
    z-index: 80;
  }
}

body.menu .logo .w {
  display: block;
}

@media (max-width:768px) {
  body.menu .logo .w {
    display: block !important;
  }
}

body.menu .logo .k {
  display: none;
}

@media (max-width:768px) {
  body.menu .logo .k {
    display: none !important;
  }
  body.menu::after {
    opacity: 0;
  }
  body.menu .gnav {
    opacity: 0;
    pointer-events: none;
  }
}

.pill__t {
  display: block;
}

@media (max-width:768px) {
  .pill__t {
    height: 38px;
    line-height: 38px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .pill__t {
    transition: none;
  }
}

.pill__t {
  height: auto;
}

.pill__t::after {
  position: absolute;
  left: 0;
  top: 100%;
  content: none;
}

.pill:hover .pill__t,
.pill:focus-visible .pill__t {
  transform: none;
  letter-spacing: .24em;
}

.pill:hover,
.pill:focus-visible,
body.past.rd .gnav .pill:hover {
  background: var(--ink);
  color: #fff;
}

body:not(.past) .pill:hover,
body:not(.past) .pill:focus-visible,
body.past.dk .gnav .pill:hover,
body.past.dk .gnav .pill:focus-visible {
  background: #fff;
  color: var(--red);
}

.dd {
  position: relative;
  display: flex;
  align-items: center;
}

.dd__t {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  opacity: .88;
}

.dd__t i {
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .35s var(--ease),margin .35s;
}

.dd.open .dd__t {
  opacity: 1;
}

.dd.open .dd__t i {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.dd__m {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  display: grid;
  gap: 4px;
  min-width: 240px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 48px -20px rgba(0,0,0,.35),0 0 0 1px rgba(0,0,0,.05);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%,-6px);
  transition: opacity .3s,transform .35s var(--ease),visibility 0s .35s;
}

.dd__m::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.dd.open .dd__m {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%,0);
  transition: opacity .3s,transform .35s var(--ease);
}

.dd__m a {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: var(--min);
  font-size: 15px;
  letter-spacing: .06em;
  opacity: 1 !important;
  background: none !important;
  transition: background .25s !important;
}

.dd__m a:hover,
.dd__m a[aria-current] {
  background: #F3F3F3 !important;
}

.dd__m small {
  display: block;
  margin-bottom: 4px;
  font-family: var(--en);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--red);
}

@media (max-width:1100px) {
  .gnav .dd {
    display: none;
  }
}

/* 無料相談：文字をボタンの天地左右の中央に（字間の分だけ右に余る空きを打ち消す） */
.pill {
  justify-content: center;
}

.pill__t {
  line-height: 1;
  margin-right: -.12em;
  transition: letter-spacing .45s var(--ease), margin-right .45s var(--ease);
}

.pill:hover .pill__t,
.pill:focus-visible .pill__t {
  margin-right: -.24em;
}

/* 和文フォント（ヒラギノ等）は字面が文字の箱の中でやや下に来るため、目で見た中央に合わせて少し持ち上げる */
.pill__t {
  position: relative;
  top: -.08em;
}

/* iPhone の画面端（ノッチ・横向き） */
.logo {
  left: max(var(--pad), env(safe-area-inset-left));
}

.gnav {
  right: max(var(--pad), env(safe-area-inset-right));
}

@media (max-width:768px) {
  .gnav {
    right: calc(68px + env(safe-area-inset-right));
  }
  .mbtn {
    right: max(12px, env(safe-area-inset-right));
  }
}

/* SP：無料相談とメニューボタンの高さ・位置をそろえる（どちらも40px、上から12px） */
@media (max-width:768px) {
  .gnav {
    top: 12px;
  }
  .gnav .pill {
    height: 40px;
  }
  .mbtn {
    top: 12px;
    width: 40px;
    height: 40px;
  }
}

/* 無料相談：ホバーで字間を広げる動きはやめ、ほかのボタンと同じく色だけを切り替える（2026-10） */
.pill .pill__t,
.pill:hover .pill__t,
.pill:focus-visible .pill__t {
  letter-spacing: inherit;
  margin-right: -.12em;
  transition: none;
}

body .dd__m a[aria-current] {
  background: var(--card) !important;
}

/* ヘッダーの帯：黒・赤の面の上では、帯が出てくる時点で最初からその色にしておく（白い帯が一瞬見えないように） */
body.dk::after {
  background: rgba(11,11,11,.55);
}

body.rd::after {
  background: rgba(190,0,22,.55);
}

/* SPの全画面メニュー */
.mnav {
  display: none;
}

@media (max-width:768px) {
  .mnav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: fixed;
    inset: 0;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 75;
    padding: 90px 28px 120px;
    color: #fff;
    background: radial-gradient(120% 80% at 80% 20%,#C40018 0%,#5C000B 45%,#0B0B0B 85%);
    clip-path: circle(0 at calc(100% - 34px) 34px);
    transition: clip-path .85s cubic-bezier(.45,0,.25,1), visibility 0s .85s;
    visibility: hidden;
  }
  body.menu .mnav {
    clip-path: circle(150% at calc(100% - 34px) 34px);
    visibility: visible;
    transition: clip-path .85s cubic-bezier(.45,0,.25,1), visibility 0s;
  }
  .mnav nav {
    display: flex;
    flex-direction: column;
  }
  .mnav nav a {
    font-family: var(--min);
    font-weight: 600;
    font-size: 26px;
    letter-spacing: .08em;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.16);
  }
  .mnav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    padding: 18px 22px 18px 16px;
    border-radius: var(--r);
    background: #fff;
    color: var(--red);
    font-weight: 800;
    font-size: 14px;
  }
  .mnav__cta span {
    background: var(--red);
    color: #fff;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11.5px;
  }
  html.lock,
  html.lock body {
    overflow: hidden;
  }
  body.menu {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
  }
}

/* SPメニュー：いまのページに小さな印 */
@media (max-width:768px) {
  .mnav nav a[aria-current] {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .mnav nav a[aria-current]::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,255,255,.18);
  }
}

/* フッター */
.ft {
  background: #0B0B0B;
  color: #fff;
  padding: clamp(70px,7vw,110px) var(--pad) 40px;
}

.ft__in {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.ft__logo img {
  height: 40px;
  width: auto;
}

.ft__nav {
  display: grid;
  grid-template-columns: repeat(4,auto);
  justify-content: end;
  gap: 16px 44px;
  font-family: var(--min);
  font-size: 13.5px;
  letter-spacing: .12em;
  color: rgba(255,255,255,.82);
}

@media (max-width:768px) {
  .ft__nav {
    grid-template-columns: repeat(2,auto);
    gap: 14px 30px;
  }
}

.ft__nav a {
  width: fit-content;
  padding: 2px 0;
  background: linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat;
  transition: background-size .35s;
}

.ft__nav a:hover {
  background-size: 100% 1px;
}

.ft__bt {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

@media (max-width:768px) {
  .ft__bt {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}

.ft__bt {
  justify-content: flex-start;
}

.ft__copy {
  margin: 0;
  font: 400 11px/1 var(--en);
  letter-spacing: .2em;
  color: rgba(255,255,255,.5);
}

.ft__sns {
  display: flex;
  gap: 10px;
}

.ft__sns a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
  transition: background .3s;
}

.ft__sns a:hover {
  background: rgba(255,255,255,.12);
}

.ft__sns svg {
  width: 15px;
  height: 15px;
  fill: #fff;
}

.ft__nav--g {
  display: grid !important;
  grid-template-columns: repeat(3,auto);
  gap: 12px clamp(32px,5vw,80px);
  align-items: start;
}

@media (max-width:768px) {
  .ft__nav--g {
    grid-template-columns: 1fr 1fr;
    row-gap: 28px;
  }
}

.ft__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ft__col p {
  margin: 0 0 4px;
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: .2em;
  color: rgba(255,255,255,.45);
}

.ft__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

/* SP：お問い合わせの列を「Service」の下へ。About と並べて高さを抑える */
@media (max-width:768px) {
  .ft__nav--g .ft__col:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }
  .ft__nav--g .ft__col:nth-child(2) {
    grid-column: 2;
    grid-row: 1 / 3;
  }
  .ft__nav--g .ft__col:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
  }
}

/* ページの先頭へ */
.ft__top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 6px 0;
  border: 0;
  background: none;
  color: rgba(255,255,255,.62);
  font: 500 12px/1 var(--jp);
  letter-spacing: .1em;
  cursor: pointer;
  transition: color .3s;
}

.ft__top i {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
  transition: background .3s, box-shadow .3s;
}

.ft__top i::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-left: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: translate(-50%, -25%) rotate(45deg);
}

.ft__top:hover {
  color: #fff;
}

.ft__top:hover i {
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
}

@media (max-width:768px) {
  .ft__top {
    margin-left: 0;
  }
}

/* iPhone のホームバーにかからないように */
.ft {
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
}

/* 「準備中」の項目（ヘッダー・SPメニュー・フッター共通。リンクにはしない） */
.soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: .5;
  cursor: default;
}

.soon small {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px currentColor;
  font-family: var(--jp);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
}

.gnav .soon {
  padding: 6px 0;
}

@media (max-width:1100px) {
  .gnav .soon {
    display: none;
  }
}

.ft__nav .soon {
  opacity: .45;
}

/* SPメニューでは、ほかの項目と同じ大きさ・同じ区切り線で並べる */
.mnav nav .soon {
  gap: 12px;
  opacity: .42;
  font-family: var(--min);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: .08em;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.mnav nav .soon small {
  height: 22px;
  padding: 0 9px;
  font-size: 11px;
}

/* =========================================================
   ローディング画面（boot.js が html に付けるクラスで出し分ける）
   - .ld-first：TOP を初めて開いたとき。墨の画面に、ロゴが左から右へ描かれるように現れ、
                少し止まってから、その場でふわっと消えて TOP が現れる（画面は動かさない）
   - .ld-wait ：それ以外。読み込みが 0.6 秒を超えたときだけ、赤い点が静かに明滅して待ちを伝える
   - .ld-out  ：閉じる（site.js が付ける）
   ========================================================= */
.ld {
  display: none;
}

html.ld-first .ld,
html.ld-wait .ld {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 300;
  overflow: hidden;
  background: #0B0B0B;
  pointer-events: none;
}

.ld__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--red);
}

.ld__logo {
  display: none;
}

/* 初めての TOP：ロゴが描かれるように現れる */
html.ld-first .ld__dot {
  display: none;
}

html.ld-first .ld__logo {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(56vw, 420px);
  height: auto;
  transform: translate(-50%, -50%);
  -webkit-mask: linear-gradient(90deg, #000 45%, transparent 55%) 100% 0 / 220% 100% no-repeat;
  mask: linear-gradient(90deg, #000 45%, transparent 55%) 100% 0 / 220% 100% no-repeat;
  animation: ldDraw 1.1s .2s cubic-bezier(.45, 0, .25, 1) forwards;
}

html.ld-first .ld {
  animation: ldGiveUp .5s 6s forwards;
}

/* そのほか：0.6秒たってもまだ読み込み中のときだけ見える */
html.ld-wait .ld {
  animation-name: ldShow, ldGiveUp;
  animation-duration: .3s, .5s;
  animation-delay: .6s, 6s;
  animation-fill-mode: both, forwards;
}

html.ld-wait .ld__dot {
  animation: ldBreath 1.4s ease-in-out .6s infinite;
}

/* 閉じる：その場でふわっと消える */
html.ld-out .ld {
  opacity: 0 !important;
  visibility: hidden;
  transition: opacity .6s ease-out, visibility 0s .6s;
}

/* TOP の見出しなどの登場の動きは、ローディングが開いてから始める */
html.ld-first:not(.ld-out) body *:not(.ld):not(.ld *) {
  animation-play-state: paused !important;
}

@keyframes ldDraw { to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}

@keyframes ldShow { from { opacity: 0; } to { opacity: 1; }
}

@keyframes ldBreath { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); }
}

@keyframes ldGiveUp { to { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .ld {
    display: none !important;
  }
}
