:root {
  --wine: #701f32;
  --wine-dark: #64172f;
  --orange: #cb702b;
  --orange-dark: #a95d22;
  --blue: #1789a8;
  --green: #28a897;
  --ink: #252323;
  --muted: #707070;
  --paper: #f8f9fb;
  --line: #9b9b9b;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin-top: 0; }

.sp-br {
  display: none;
}

.pc-br {
  display: inline;
}

.section-pad { padding-left: 24px; padding-right: 24px; }

/* Header */
.site-header {
  position: absolute;
  z-index: 30;
  top: 22px;
  left: 0;
  width: 100%;
  padding: 0 28px;
}
.header-inner {
  width: min(1400px, 100%);
  min-height: 100px;
  margin: 0 auto;
  background: rgba(255,255,255,.94);
  border-radius: 14px 14px 14px 14px;
  display: grid;
  grid-template-columns: minmax(390px, 1fr) auto 340px;
  align-items: stretch;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.header-brand { display: flex; align-items: center; padding: 12px 22px; }
.header-brand img { max-width: 100%; }
.header-nav { display: flex; align-items: center; gap: 25px; padding: 0 25px; font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif; font-size: 14px; color: #939393; white-space: nowrap; }
.header-nav a::before { content: "▶"; margin-right: 7px; font-size: 9px; }
.header-nav .is-current { color: #3c3c3c; font-weight: 700; }
.header-actions { display: grid; grid-template-columns: repeat(3, 1fr); font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif; }
.action { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; font-size: 15px; line-height: 1.2; background: #aaa; border-left: 1px solid rgba(255,255,255,.8); }
.action-doc { background: var(--orange); }
/* PC右上メニューのSVGアイコン表示 */
.action > img {
  display: block;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .92;
}

.action-mail > img {
  width: 34px;
}
.action-icon { position: relative; width: 25px; height: 25px; opacity: .96; }
.action-doc .action-icon { border: 2px solid currentColor; border-radius: 2px; }
.action-doc .action-icon::after { content: ""; position: absolute; right: -2px; top: -2px; width: 8px; height: 8px; background: inherit; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.action-visit .action-icon { border: 2px solid currentColor; border-radius: 2px; }
.action-visit .action-icon::before { content: ""; position: absolute; left: -2px; right: -2px; top: 5px; border-top: 2px solid currentColor; }
.action-mail .action-icon { border: 2px solid currentColor; border-radius: 2px; }
.action-mail .action-icon::before, .action-mail .action-icon::after { content: ""; position: absolute; top: 3px; width: 15px; border-top: 2px solid currentColor; }
.action-mail .action-icon::before { left: 0; transform: rotate(35deg); transform-origin: left; }
.action-mail .action-icon::after { right: 0; transform: rotate(-35deg); transform-origin: right; }

/* Hero */
.hero {
  position: relative;
  height: 800px;
  min-height: 800px;
  background-image: linear-gradient(to bottom, rgba(255,255,255,.14), rgba(255,255,255,0) 28%), url("../imgs/hero-pc.jpg");
  background-position: center 50%;
  background-size: cover;
  overflow: hidden;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(to bottom, transparent, rgba(0,0,0,.08)); pointer-events: none; }
.hero-copy { position: absolute; z-index: 2; top: 155px; left: 50%; transform: translateX(-50%); width: min(900px, calc(100% - 60px)); text-align: center; font-size: clamp(21px, 1.8vw, 26px); letter-spacing: .5em; white-space: nowrap; text-shadow: 0 1px 5px rgba(255,255,255,.8); font-weight: 600; }
.hero h1 { position: absolute; z-index: 2; left: 50%; bottom: 0; transform: translateX(-50%); margin: 0; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(110px, 13.5vw, 160px); line-height: .82; letter-spacing: 0.08em; font-weight: 300; white-space: nowrap; text-shadow: 0 1px 7px rgba(0,0,0,.22); }
.map-label { position: absolute; z-index: 3; padding: 5px 16px; color: #fff; background: rgba(23,24,25,.88); font-size: 15px; line-height: 1.2; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.label-hospital { top: 270px; left: 48%; }
.label-joystay { top: 465px; left: 31%; }
.label-home { top: 442px; left: 49%; background: rgba(144,116,58,.92); font-size: 19px; padding: 10px 20px; }

/* Opening */
.opening { background: #f7f8fb; padding-top: 74px; padding-bottom: 88px; text-align: center; }
.opening-inner { width: min(790px, 100%); margin: 0 auto; }
.eyebrow { margin-bottom: 15px; font-size: 26px; font-weight: 600; letter-spacing: .05em; }
.opening h2 { margin-bottom: 20px; font-size: 70px; font-weight: 500; line-height: 1.25; }
.opening-date { border-top: 1px solid #777; border-bottom: 1px solid #777; padding: 10px 0 12px; color: var(--wine); font-size: 46px; font-weight: 700; line-height: 1.35; }
.cta { width: 330px; max-width: 100%; min-height: 72px; margin: 36px auto 0; padding: 15px 24px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 60px; background: var(--orange); color: #fff; font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif; font-size: 24px; line-height: 1; letter-spacing: .08em; box-shadow: inset 0 -2px 0 rgba(0,0,0,.04); transition: .25s ease; }
.cta span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: var(--orange); background: #fff; font-size: 20px; }
.cta:hover { background: var(--orange-dark); transform: translateY(-2px); }

/* Intro */
.intro { padding-top: 20px; padding-bottom: 94px; background: #f7f8fb; }
.intro-card { position: relative; width: min(1150px, 100%); margin: 0 auto; padding: 70px 85px 72px; border: 1px solid var(--wine); background: rgba(255,255,255,.28); overflow: hidden; }
.intro-card::before, .intro-card::after { content: ""; position: absolute; width: 0; height: 0; border-style: solid; }
.intro-card::before { top: -1px; left: -1px; border-width: 20px 20px 0 0; border-color: var(--wine) transparent transparent transparent; }
.intro-card::after { right: -1px; bottom: -1px; border-width: 0 0 20px 20px; border-color: transparent transparent var(--wine) transparent; }
.intro-card h2 { position: relative; z-index: 2; margin-bottom: 36px; text-align: center; font-size: clamp(30px, 3.15vw, 46px); line-height: 1.65; font-weight: 500; }
.intro-card > p { position: relative; z-index: 2; margin: 0; font-size: 24px; line-height: 2.15; text-align:justify; }
.brand-watermark { position: absolute; right: -15px; top: 30px; width: 440px; opacity: 200; transform: rotate(4deg); }
.brand-watermark i { display: block; height: 35px; margin: 0 0 10px 35px; background: var(--wine); border-radius: 80% 12% 60% 25%; transform: skewX(-15deg); }
.brand-watermark i:nth-child(2) { margin-left: 15px; }
.brand-watermark i:nth-child(3) { margin-left: 0; }
.transition-title { margin: 46px 0 12px; text-align: center; color: var(--wine); font-size: 21px; font-weight: 700; }
.transition-figure { position: relative; width: min(790px, 100%); margin: 0 auto; padding-bottom: 15px; }
.transition-card { position: relative; min-height: 235px; padding: 17px 14px 18px; border: 2px solid; text-align: center; overflow: hidden; }
.transition-blue { border-color: #1d4e7e; background: #f0f6fd; border-radius: 10px 0 0 10px; clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); padding-right: 32px; }
.transition-red { margin-left: -18px; border-color: var(--wine); background: #fff1ee; border-radius: 0 10px 10px 0; clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%); padding-left: 32px; }
.transition-type { font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif; font-weight: 700; font-size: 19px; line-height: 1.25; }
.transition-blue .transition-type, .transition-blue h3 { color: #244a7b; }
.transition-red .transition-type, .transition-red h3 { color: var(--wine); }
.transition-card h3 { margin: 5px 0 2px; font-size: 27px; line-height: 1.2; font-weight: 500; }
.transition-card img { width: 80%; height: 100px; margin: 3px auto 0; object-fit: contain; }
.care-scale { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 3px 20px 2px; color: #fff; background: linear-gradient(90deg, #0072aa, #4d4e8a 49%, #b61043); font-family: "Yu Gothic", sans-serif; font-weight: 700; line-height: 1.2; clip-path: polygon(0 0, 94% 0, 100% 100%, 0 100%); }

/* Section headings */
.concept-heading, .outline-heading { padding: 115px 20px 56px; text-align: center; color: #fff; background: var(--wine); height: 320px;}
.concept-heading h2, .outline-heading h2 { display: inline-block; margin: 0; padding: 0 15px 5px; border-bottom: 1px solid rgba(255,255,255,.75); font-size: 37px; line-height: 1.2; font-weight: 500; }
.concept-heading span, .outline-heading span { display: block; margin-top: 4px; font-family: Arial, sans-serif; font-size: 14px; letter-spacing: .08em; }

/* Concept */
.concept-visual {
  width: 100%;
  aspect-ratio: 1920 / 1150;
  background: url("../imgs/bk-hands.jpg") center top / cover no-repeat;
}
.concept-body { position: relative; padding-top: 0px; padding-bottom: 80px; background-image: url("../imgs/texture.webp"); background-size: 930px auto; overflow: hidden; }
.concept-body::before { content: ""; position: absolute; z-index: 0; top: 640px; left: 50%; transform: translateX(-50%); width: min(1500px, 120%); height: 900px; background: url("../imgs/sky-brush.webp") center top / contain no-repeat; opacity: .8; pointer-events: none; }
.concept-body > * { position: relative; z-index: 1; }

.concept-lead { width: min(960px, 100%); margin: 0 auto; text-align: center; }

.concept-lead p {
  margin: 0;
  font-size: clamp(22px, calc(17.43px + 0.595vw), 26px);
  line-height: 2.08;
}
.concept-graphic { position: relative; width: 520px; height: 390px; margin: 70px auto 80px; }
.graphic-caption { position: absolute; left: 0; top: 25px; z-index: 5; padding: 12px 26px; color: #fff; background: linear-gradient(90deg, #bd5079, rgba(113,28,55,.5)); font-size: 17px; line-height: 1.35; text-align: center; }
.circle { position: absolute; width: 195px; height: 195px; display: grid; place-items: center; border: 42px solid; border-radius: 50%; background: rgba(255,255,255,.75); font-size: 39px; line-height: 1.1; text-align: center; }
.circle-safe { left: 40px; top: 120px; color: #b15c21; border-color: #df914d; }
.circle-full { right: 30px; top: 20px; color: #168aa1; border-color: #62afba; }
.circle-health { right: 55px; bottom: -15px; color: #118f80; border-color: #49af9f; }
.graphic-brand { position: absolute; z-index: 6; left: 195px; top: 190px; font-family: Georgia, serif; font-size: 28px; }
.building-picture { display: block; width: min(1100px, 100%); margin: -250px auto 100px; }
.building-picture img { width: 100%; object-fit: contain; }
.features { width: min(var(--content), 100%); margin: -10px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 58px; }
.feature h3 { margin-bottom: 18px; font-size: 32px; line-height: 1.4; font-weight: 500; }
.feature-orange h3 { color: var(--orange); }
.feature-blue h3 { color: var(--blue); }
.feature-green h3 { color: var(--green); }
.feature p { margin-bottom: 18px; font-size: 18px; line-height: 1.6; }
.feature ul { margin: 0 0 26px; padding: 0; list-style: none; font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif; font-size: 18px; line-height: 1.7; }
.feature li { position: relative; padding-left: 19px; }
.feature li::before { content: ""; position: absolute; left: 0; top: .73em; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.feature-orange li { color: #9b4c16; }
.feature-blue li { color: #168ba8; }
.feature-green li { color: #159281; }
.feature img { width: 100%; aspect-ratio: 1.58; object-fit: cover; }

/* Outline */
.outline-heading { padding-top: 115px; padding-bottom: 65px; }
.outline { padding-top: 82px; padding-bottom: 60px; background-image: url("../imgs/texture.webp"); background-size: 930px auto; }
.outline-table { width: min(1120px, 100%); margin: 0 auto; border-top: 1px solid #8d8d8d; font-size: 16px; line-height: 1.55; }
.outline-table > div { display: grid; grid-template-columns: 235px 1fr; border-bottom: 1px solid #8d8d8d; }
.outline-table dt { padding: 13px 24px; background: #e5e7e8; }
.outline-table dd { margin: 0; padding: 13px 28px; background: rgba(255,255,255,.5); }
.notes { padding: 32px max(24px, calc((100% - 1120px) / 2)); background: #e6e8e9; font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif; font-size: 13px; line-height: 1.75; }
.notes p { margin: 0; }

/* Footer */
.site-footer { padding: 55px 24px 34px; text-align: center; background: #fff; }
.recruit-banner { display: block; width: min(700px, 100%); margin: 0 auto 70px; }
.recruit-banner img { width: 100%; }
.footer-brand { width: min(700px, 100%); margin: 0 auto 48px; }
.footer-brand img { width: 40%; margin: 0 auto; }
.phone-row { width: min(1030px, 100%); margin: 0 auto; padding-bottom: 25px; border-bottom: 1px solid #777; display: flex; align-items: center; justify-content: center; gap: 14px; line-height: 1.15; }
.phone-row > span:first-child { font-size: 21px; }
.tel-label { padding: 6px 10px; border: 1px solid #777; font-size: 22px; }
.phone-row a { font-family:'Times New Roman', Times, serif; font-size: 58px; letter-spacing: -.03em; }
.phone-row small { text-align: left; font-size: 15px; }
.footer-meta { width: min(1030px, 100%); margin: 28px auto 0; padding-bottom: 20px; border-bottom: 1px solid #777; display: flex; align-items: end; justify-content: space-between; gap: 30px; font-family: "Yu Gothic", sans-serif; font-size: 11px; text-align: left; }
.footer-legal p { margin: 4px 0 0; }
.company { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.company span { margin-top: 35px; }
.company img { width: 405px; max-width: 100%; }
.toyota-note { width: min(1030px, 100%); margin: 12px auto 0; font-family: "Yu Gothic", sans-serif; font-size: 14px; }
.mobile-fixed-nav { display: none; }

@media (max-width: 1100px) {
  .header-inner { grid-template-columns: minmax(360px, 1fr) auto 285px; }
  .header-nav { gap: 12px; padding: 0 14px; font-size: 12px; }
  .action { font-size: 13px; }
  .features { gap: 28px; }
}

@media (max-width: 767px) {
  body { padding-bottom: 64px; }

  .sp-br { display: inline; }

  .pc-br { display: none; }

  .section-pad { padding-left: 22px; padding-right: 22px; }

  .site-header { top: 11px; padding: 0 10px; }
  .header-inner { min-height: 78px; grid-template-columns: 1fr 98px; border-radius: 9px; overflow: visible; }
  .header-brand { padding: 8px 9px; }
  .header-brand img { width: 230px; }
  .header-nav { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; padding: 8px 9px 8px 2px; font-size: 10px; line-height: 1.5; }
  .header-nav a::before { font-size: 7px; margin-right: 4px; }
  .header-actions { display: none; }

  .hero { height: 590px; min-height: 590px; background-image: linear-gradient(to bottom, rgba(255,255,255,.1), transparent 33%), url("../imgs/hero-mobile.jpg"); background-position: center 28%; }
  .hero-copy { top: 142px; width: calc(100% - 44px); white-space: normal; font-size: 17px; line-height: 2.15; letter-spacing: .23em; }
  .hero h1 { bottom: 0px; font-size: 72px; letter-spacing: 0.5px;}
  .map-label { font-size: 10px; padding: 3px 8px; }
  .label-hospital { top: 295px; left: 41%; }
  .label-joystay { top: 390px; left: 20%; }
  .label-home { top: 378px; left: 46%; font-size: 12px; padding: 7px 10px; }

  .opening { padding-top: 52px; padding-bottom: 64px; }
  .eyebrow { font-size: 16px; line-height: 1.7; letter-spacing: -.03em;}
  .opening h2 { margin-bottom: 18px; font-size: 38px; }
  .opening-date { padding: 10px 0; font-size: 28px; }
  .cta { width: 245px; min-height: 58px; margin-top: 28px; gap: 36px; font-size: 19px; }
  .cta span { width: 27px; height: 27px; font-size: 16px; }

  .intro { padding-top: 5px; padding-bottom: 55px; }
  .intro-card { padding: 55px 24px 30px; }
  .intro-card h2 { margin-bottom: 28px; font-size: 26px; line-height: 1.65;  letter-spacing: -.03em;}
  .intro-card > p { font-size: 14px; line-height: 2.15; }
  .brand-watermark { right: -90px; top: 40px; width: 260px; }
  .transition-title { margin-top: 35px; font-size: 16px; }
  .transition-figure { width: 100%; padding-bottom: 29px; }
  .transition-card { min-height: 165px; padding: 12px 7px; }
  .transition-blue { padding-right: 18px; }
  .transition-red { padding-left: 18px; margin-left: -11px; }
  .transition-type { font-size: 11px; }
  .transition-card h3 { font-size: 17px; }
  .transition-card img { width: 95%; height: 70px; }
  .care-scale { padding: 2px 11px; font-size: 12px; }

  .concept-heading, .outline-heading { padding: 52px 20px 0px; height: 160px;}
  .concept-heading h2, .outline-heading h2 { font-size: 24px; }
  .concept-heading span, .outline-heading span { font-size: 10px; }
  .concept-visual { height: 500px; background-position: center 38%; background: url(../imgs/bk-hands-sp.jpg) center top / cover no-repeat;}
  .concept-body { padding-top: 10px; padding-bottom: 54px; }
  .concept-body::before { top: 660px; width: 170%; height: 650px; }
  .concept-lead h2 { margin-bottom: 25px; font-size: 29px; line-height: 1.55; }
  .concept-lead p { font-size: 16px; line-height: 2.08; text-align: justify;}
  .concept-lead br { display: none; }
  .concept-graphic { width: 315px; max-width: 100%; height: 270px; margin-top: 43px; }
  .graphic-caption { left: 0; top: 15px; padding: 8px 13px; font-size: 11px; }
  .circle { width: 125px; height: 125px; border-width: 27px; font-size: 25px; }
  .circle-safe { left: 18px; top: 92px; }
  .circle-full { right: 10px; top: 8px; }
  .circle-health { right: 26px; bottom: 0; }
  .graphic-brand { left: 116px; top: 130px; font-size: 18px; }
  .building-picture { margin: -90px auto 15px; width: 115%; transform: translateX(-6%); }
  .features { width: min(var(--content), 85%); display: block; margin-top: 50px; }
  .feature { margin-bottom: 50px; }
  .feature h3 { margin-bottom: 12px; font-size: 24px; letter-spacing: -1px; }
  .feature p { font-size: 16px; }
  .feature ul { font-size: 16px; }
  .feature img { width: 84%; margin: 18px auto 0; }

  .outline-heading { padding-top: 52px; padding-bottom: 37px; }
  .outline { padding-top: 34px; padding-bottom: 40px; }
  .outline-table { font-size: 13px; border-top: 0; }
  .outline-table > div { display: block; margin-bottom: 6px; border: 0; }
  .outline-table dt { padding: 4px 9px; background: #dfe2e3; border-bottom: 1px solid #b5b5b5; font-family: "Yu Gothic", sans-serif; font-weight: 700; }
  .outline-table dd { padding: 6px 9px 9px; border-bottom: 1px solid #d2d2d2; background: rgba(255,255,255,.72); line-height: 1.55; }
  .notes { padding: 22px 18px; font-size: 9px; line-height: 1.65; }

  .site-footer { padding: 30px 18px 18px; }
  .recruit-banner { margin-bottom: 36px; }
  .footer-brand { margin-bottom: 25px; }
  .footer-brand img { width: 70%; margin: 0 auto 50px auto;}
  .phone-row { padding-bottom: 16px; display: grid; grid-template-columns: auto auto 1fr; gap: 5px 8px; padding-left: 25px; }
  .phone-row > span:first-child { grid-column: 1 / -1; font-size: 16px; text-align: left; }
  .tel-label { padding: 3px 6px; font-size: 20px; }
  .phone-row a { font-size: 42px; }
  .phone-row small { grid-column: 1 / -1; text-align: left; font-size: 14px; }
  .footer-meta { display: block; margin-top: 5px; padding-bottom: 12px; font-size: 10px; text-align: left; }
  .company { margin-top: 20px; justify-content: flex-start; }
  .company span{ margin-top: 15px; }
  .company img { width: 260px; }
  .toyota-note { font-size: 8px; line-height: 1.5; }

  .mobile-fixed-nav { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; height: 64px; display: grid; grid-template-columns: repeat(3, 1fr); font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif; box-shadow: 0 -1px 6px rgba(0,0,0,.16); }
  .mobile-fixed-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #fff; background: var(--orange); font-size: 10px; border-right: 1px solid rgba(255,255,255,.4); }
  .mobile-fixed-nav a:nth-child(2), .mobile-fixed-nav a:nth-child(3) { background: #9da0a2; }
  .mobile-icon { position: relative; width: 20px; height: 18px; }
  .mobile-icon.doc, .mobile-icon.calendar, .mobile-icon.mail { border: 1.5px solid currentColor; border-radius: 1px; }
  .mobile-icon.calendar::before { content: ""; position: absolute; left: -1px; right: -1px; top: 4px; border-top: 1.5px solid currentColor; }
  .mobile-icon.mail::before, .mobile-icon.mail::after { content: ""; position: absolute; top: 2px; width: 12px; border-top: 1.5px solid currentColor; }
  .mobile-icon.mail::before { left: 0; transform: rotate(33deg); transform-origin: left; }
  .mobile-icon.mail::after { right: 0; transform: rotate(-33deg); transform-origin: right; }
}

@media (max-width: 390px) {
  .header-inner { grid-template-columns: 1fr 105px; }
  .header-brand img { width: 235px; }
  .header-nav { font-size: 9px; }
  .hero h1 { font-size: 68px; }
  .opening h2 { font-size: 34px; }
  .opening-date { font-size: 25px; }
  .intro-card h2 { font-size: 26px; }
}

/* スマホ最下部メニューのSVGアイコン表示 */
@media (max-width: 767px) {
  .mobile-fixed-nav img {
    display: block;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .92;
  }

  .mobile-fixed-nav a:last-child img {
    width: 30px;
  }
}

/* ページ上部へ戻るボタン */
.page-top {
  position: fixed;
  z-index: 50;
  top: 50%;
  right: 0;
  width: 80px;
  height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #777;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 13px;
  line-height: 1.15;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%);
  transition: opacity .25s ease, visibility .25s ease, background .25s ease;
}

.page-top span {
  margin-bottom: 2px;
  font-size: 22px;
  line-height: .7;
}

.page-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.page-top:hover {
  background: #555;
}

@media (max-width: 767px) {
  .page-top {
    width: 64px;
    height: 58px;
    font-size: 11px;
  }

  .page-top span {
    font-size: 18px;
  }
}

/* スマホでは最下部メニューの上にフローティング表示 */
@media (max-width: 767px) {
  .page-top {
    position: fixed;
    z-index: 61;
    top: auto;
    right: 0;
    bottom: calc(64px + env(safe-area-inset-bottom));
    display: flex;
    width: 64px;
    height: 58px;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: none;
  }

  .page-top.is-visible {
    opacity: 1;
    visibility: visible;
  }
}

