/* ========================================
   トーカイパック 採用サイト
   WordPress移行を見据えた静的CSS
   ======================================== */

:root {
  --color-green: #1bc895;
  --color-green-dark: #16b085;
  --color-headline: #00c289;
  --color-blue: #097cd5;
  --color-blue-btn: #1b70c8;
  --color-blue-deep: #005a9f;
  --color-red: #ff004a;
  --color-corp: #fb0146;
  --color-black: #000;
  --color-text: #000;
  --color-muted: #9a9a9a;
  --color-line: #e6e6e6;
  --color-white: #fff;
  --header-h: 100px;
  --inner: 1400px;
  --radius-img: 18px;
  --radius-btn: 999px;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-en: "Zen Kurenaido", "Noto Sans JP", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.8;
  background: var(--color-white);
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

#main {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, p, figure {
  margin: 0;
}

button {
  font-family: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.l-inner {
  width: min(100% - 80px, var(--inner));
  margin-inline: auto;
}

.u-center {
  text-align: center;
}

/* ---- Buttons ---- */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 240px;
  height: 60px;
  padding: 0 28px 0 36px;
  border-radius: var(--radius-btn);
  background: var(--color-green);
  color: var(--color-white);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.c-btn:hover {
  background: var(--color-green-dark);
  transform: translateY(-2px);
}

.c-btn__arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.c-btn--blue {
  background: var(--color-blue-btn);
}

.c-btn--blue:hover {
  background: #155ea8;
}

.c-btn--entry {
  min-width: 200px;
  height: 56px;
  padding: 0 20px;
  letter-spacing: 0.12em;
  font-size: 22px;
  font-weight: 500;
}

.c-btn--corp {
  min-width: 280px;
  background: var(--color-white);
  color: var(--color-corp);
  border: 2px solid #d7d9dc;
  gap: 10px;
}

.c-btn--corp:hover {
  background: #fff5f7;
  transform: translateY(-2px);
}

.c-btn--corp img {
  width: 19px;
  height: 19px;
}

/* ---- Headings ---- */
.c-heading {
  margin-bottom: 28px;
}

.c-heading--center {
  text-align: center;
}

.c-heading__en {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-blue);
  font-family: var(--font-en);
  font-size: clamp(40px, 4.2vw, 72px);
  font-weight: 400;
  line-height: 1.1;
}

.c-heading--center .c-heading__en {
  justify-content: center;
}

.c-heading__leaf {
  width: 47px;
  height: 40px;
  margin-top: 8px;
}

.c-heading__ja {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}

.c-headline {
  color: var(--color-headline);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.7;
}

.c-text {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
}

/* ========================================
   Header
   ======================================== */
.l-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.l-header.is-scrolled {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 30px 0 30px;
  max-width: 1920px;
  margin: 0 auto;
}

.l-header__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.l-header__logo img {
  width: min(389px, 52vw);
  height: auto;
}

.l-header__recruit {
  color: var(--color-red);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.l-header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.l-header__list {
  display: flex;
  align-items: center;
  gap: 22px;
}

.l-header__list a {
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
}

.l-header__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--color-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.l-header__list a:hover::after {
  transform: scaleX(1);
}

.l-header__hamburger {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
}

.l-header__hamburger span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-green);
}

.l-header__hamburger span:nth-child(1) { top: 12px; }
.l-header__hamburger span:nth-child(2) { top: 20px; }
.l-header__hamburger span:nth-child(3) { top: 28px; }

/* SP nav */
.p-spnav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 18px 20px 40px;
  overflow: auto;
}

.p-spnav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

.p-spnav__close {
  width: 44px;
  height: 44px;
  position: relative;
}

.p-spnav__close span {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 2px;
  background: #1a3a5c;
}

.p-spnav__close span:first-child { transform: rotate(45deg); }
.p-spnav__close span:last-child { transform: rotate(-45deg); }

.p-spnav__list {
  margin-top: 28px;
}

.p-spnav__list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--color-line);
  font-size: 15px;
}

.p-spnav__list a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--color-blue);
  border-right: 2px solid var(--color-blue);
  transform: rotate(45deg);
}

.p-spnav__entry {
  width: 100%;
  margin-top: 28px;
}

/* ========================================
   MV
   ======================================== */
.p-mv {
  position: relative;
  min-height: min(996px, calc(100svh - var(--header-h)));
  overflow: hidden;
}

.p-mv__bg {
  position: absolute;
  inset: 0;
  background: #eef6fb url("../img/mv-bg.jpg") no-repeat center / cover;
}

.p-mv__photo {
  position: absolute;
  right: 0;
  top: 0;
  width: min(68%, 1280px);
  height: 100%;
  object-fit: contain;
  object-position: right top;
  pointer-events: none;
}

.p-mv__content {
  position: relative;
  z-index: 2;
  padding: 80px 0 0;
  width: min(100% - 80px, var(--inner));
  margin-inline: auto;
}

.p-mv__title img {
  width: min(690px, 100%);
  max-width: 100%;
  height: auto;
  display: block;
}

.p-mv__lead {
  margin-top: 28px;
  color: var(--color-headline);
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 700;
  line-height: 1.7;
}

.p-mv__text {
  margin-top: 18px;
  font-size: 18px;
  line-height: 2;
}

.p-mv__packages {
  position: absolute;
  z-index: 2;
  left: max(8vw, calc(50% - 700px + 80px));
  bottom: 6%;
  width: min(813px, 52vw);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ========================================
   About
   ======================================== */
.p-about {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.p-about__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #f3f8fc 0%, #fff 42%, #fff 100%),
    url("../img/bg-about.png") center / cover no-repeat;
  opacity: 0.35;
  pointer-events: none;
}

.p-about__stage {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin-inline: auto;
  aspect-ratio: 1024 / 451;
}

.p-about__leaves {
  position: absolute;
  z-index: 1;
  top: 5%;
  left: 61%;
  width: 11.5%;
  max-width: 180px;
  pointer-events: none;
}

.p-about__img {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(20, 40, 60, 0.08);
}

.p-about__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.p-about__img:hover img {
  transform: scale(1.04);
}

/* 実寸はデザインスクショ 1024x451 から計測 */
.p-about__img--1 {
  left: 4.69%;
  top: 12.2%;
  width: 25.2%;
  aspect-ratio: 258 / 171;
}

.p-about__img--2 {
  right: 3.71%;
  top: 10.64%;
  width: 20.02%;
  aspect-ratio: 205 / 173;
}

.p-about__img--3 {
  left: 0.78%;
  top: 59.42%;
  width: 24.02%;
  aspect-ratio: 246 / 168;
}

.p-about__img--4 {
  right: 6.54%;
  top: 55.65%;
  width: 25.2%;
  aspect-ratio: 258 / 165;
}

.p-about__body {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 5.5%;
  transform: translateX(-50%);
  width: 36%;
  max-width: 480px;
}

.p-about__body .c-heading {
  margin-bottom: 22px;
}

.p-about__body .c-headline {
  font-size: clamp(22px, 1.7vw, 30px);
  line-height: 1.75;
}

.p-about__body .c-text {
  margin-top: 22px;
  font-size: 16px;
  line-height: 2;
}

.p-about__body .c-btn {
  margin-top: 36px;
  min-width: 268px;
  justify-content: space-between;
  padding: 0 22px 0 32px;
  background: linear-gradient(90deg, #1bc895 0%, #22c8b4 100%);
  box-shadow: 0 10px 22px rgba(27, 200, 149, 0.22);
}

/* ========================================
   Works
   ======================================== */
.p-works {
  position: relative;
  padding: 80px 0 120px;
}

.p-works__bg {
  position: absolute;
  inset: 0;
  background: url("../img/bg-works.png") center top / cover no-repeat;
  pointer-events: none;
}

.p-works__leaf {
  position: absolute;
  right: 12%;
  top: 80px;
  width: 90px;
  pointer-events: none;
}

.p-works__inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.p-works__head .c-headline {
  margin: 8px 0 36px;
}

.p-works__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  gap: 40px;
}

.c-card {
  overflow: hidden;
  background: var(--color-white);
  border-radius: 30px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

.c-card__img {
  overflow: hidden;
  aspect-ratio: 320 / 326;
}

.c-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.c-card:hover .c-card__img img {
  transform: scale(1.05);
}

.c-card__body {
  padding: 20px 22px 24px;
}

.c-card__title {
  color: var(--color-blue);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.c-card__text {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
}

/* ========================================
   Interview
   ======================================== */
.p-interview {
  padding: 80px 0 110px;
}

.p-interview__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 380px));
  justify-content: center;
  gap: 50px;
  margin: 20px auto 48px;
}

.c-person {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "img img"
    "quote quote"
    "name meta";
  align-items: baseline;
  overflow: hidden;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
  padding-bottom: 18px;
  transition: transform 0.3s var(--ease);
}

.c-person:hover {
  transform: translateY(-6px);
}

.c-person__img {
  grid-area: img;
  overflow: hidden;
  aspect-ratio: 380 / 300;
}

.c-person__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.c-person__quote {
  grid-area: quote;
  margin: 18px 28px 0;
  color: var(--color-blue);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
}

.c-person__name {
  grid-area: name;
  margin: 12px 0 0 28px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.c-person__meta {
  grid-area: meta;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0;
  margin: 12px 28px 0 12px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
}

.c-person__meta span + span::before {
  content: " / ";
}

/* ========================================
   Environment
   ======================================== */
.p-env {
  position: relative;
  padding: 90px 0 110px;
}

.p-env__bg {
  position: absolute;
  inset: 0;
  background: url("../img/bg-env.png") center / cover no-repeat;
  pointer-events: none;
}

.p-env__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.p-env__img {
  overflow: hidden;
  border-radius: var(--radius-img);
}

.p-env__img img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.p-env__body .c-headline {
  margin: 8px 0 36px;
}

/* ========================================
   News
   ======================================== */
.p-news {
  padding: 80px 0 80px;
}

.p-news__inner {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.p-news__list {
  margin: 8px 0 36px;
}

.p-news__list a {
  display: grid;
  grid-template-columns: 110px 1fr 16px;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 16px;
}

.p-news__list a:first-child {
  border-top: 1px solid var(--color-line);
}

.p-news__list time {
  color: var(--color-blue);
  font-weight: 500;
}

.p-news__list a:hover span {
  color: var(--color-blue);
}

.p-news__img {
  mix-blend-mode: multiply;
  min-height: 280px;
}

.p-news__img img {
  width: 100%;
  display: block;
}

.p-gallery {
  overflow: hidden;
}

/* ========================================
   Gallery
   ======================================== */
.p-gallery__viewport {
  overflow: hidden;
}

.p-gallery__list {
  display: flex;
  width: max-content;
  gap: 26px;
  animation: p-gallery-marquee 36s linear infinite;
}

.p-gallery__list li {
  flex: 0 0 auto;
  width: max(240px, 20vw);
}

.p-gallery__list img {
  width: 100%;
  max-width: none;
  height: 280px;
  object-fit: cover;
  display: block;
}

.p-gallery:hover .p-gallery__list {
  animation-play-state: paused;
}

@keyframes p-gallery-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .p-gallery__list {
    animation: none;
  }

  .p-gallery__viewport {
    overflow-x: auto;
  }
}

/* ========================================
   CTA
   ======================================== */
.p-cta {
  background: url("../img/cta-bg.jpg") center / cover no-repeat;
  min-height: 702px;
  display: flex;
  align-items: center;
  text-align: center;
}

.p-cta__title {
  color: var(--color-blue-deep);
  font-family: var(--font-en);
  font-size: clamp(28px, 3.4vw, 50px);
  font-weight: 400;
  line-height: 1.4;
}

.p-cta__text {
  margin: 24px 0 40px;
  font-size: 18px;
  line-height: 2;
}

.p-cta__btns {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* ========================================
   Footer
   ======================================== */
.l-footer {
  position: relative;
  padding: 80px 0 40px;
  background: var(--color-white);
}

.l-footer__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.l-footer__logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.l-footer__logo img {
  width: 312px;
}

.l-footer__brand .c-btn--corp {
  margin-top: 28px;
}

.l-footer__subnav {
  margin-top: 28px;
}

.l-footer__subnav a {
  display: inline-block;
  font-size: 18px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  line-height: 2.4;
}

.l-footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 40px;
  padding-top: 8px;
}

.l-footer__nav a {
  display: flex;
  flex-direction: column;
  padding: 10px 0 10px 18px;
  position: relative;
}

.l-footer__nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--color-blue);
  border-right: 2px solid var(--color-blue);
  transform: rotate(45deg);
}

.l-footer__en {
  color: var(--color-blue);
  font-family: var(--font-en);
  font-size: clamp(28px, 2.6vw, 50px);
  line-height: 1.15;
}

.l-footer__ja {
  font-size: 16px;
  font-weight: 500;
}

.l-footer__copy {
  width: min(100% - 80px, var(--inner));
  margin: 48px auto 0;
  color: var(--color-muted);
  font-size: 14px;
  letter-spacing: 0.1em;
}

.c-pagetop {
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: var(--color-green);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.c-pagetop.is-show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.c-pagetop span {
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--color-white);
  border-right: 2px solid var(--color-white);
  transform: rotate(-45deg);
  margin-top: 6px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1400px) {
  .l-header__list {
    gap: 14px;
  }

  .l-header__list a {
    font-size: 14px;
  }

  .l-header__nav {
    gap: 16px;
  }
}

@media (max-width: 1240px) {
  .l-header__list {
    display: none;
  }

  .l-header__nav .c-btn--entry {
    display: none;
  }

  .l-header__hamburger {
    display: block;
  }

  .p-about__stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 20px 16px;
    aspect-ratio: auto;
    width: min(calc(100% - 48px), 900px);
    padding: 56px 0 80px;
  }

  .p-about__img {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
  }

  .p-about__body {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    grid-column: 1 / -1;
    grid-row: 1;
    width: min(540px, 100%);
    max-width: none;
    margin: 0 auto;
  }

  .p-about__img--1,
  .p-about__img--2,
  .p-about__img--3,
  .p-about__img--4 {
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
  }

  .p-about__img--1 {
    grid-column: 1;
    grid-row: 2;
  }

  .p-about__img--2 {
    grid-column: 2;
    grid-row: 2;
    margin-top: 28px;
  }

  .p-about__img--3 {
    grid-column: 1;
    grid-row: 3;
  }

  .p-about__img--4 {
    grid-column: 2;
    grid-row: 3;
  }

  .p-about__leaves {
    left: auto;
    right: 8%;
    top: 12px;
    width: 120px;
  }

  .p-works__inner,
  .p-env__inner,
  .p-news__inner,
  .l-footer__inner {
    grid-template-columns: 1fr;
  }

  .p-mv {
    min-height: 0;
  }
}

@media (max-width: 1100px) {
  .p-interview__cards,
  .p-archive__cards {
    grid-template-columns: repeat(2, minmax(0, 380px));
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .l-inner {
    width: min(100% - 40px, var(--inner));
  }

  .l-header__inner {
    padding: 0 16px;
    gap: 8px;
    min-width: 0;
  }

  .l-header__nav {
    display: none;
  }

  .l-header__logo {
    gap: 8px;
  }

  .l-header__logo img {
    width: min(168px, 46vw);
  }

  .l-header__recruit {
    font-size: 10px;
  }

  .c-btn {
    min-width: 220px;
    height: 52px;
    font-size: 16px;
  }

  .c-heading__ja {
    font-size: 16px;
  }

  .c-heading__leaf {
    width: 32px;
    height: 27px;
  }

  .p-mv {
    min-height: 0;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
  }

  .p-mv__bg {
    position: absolute;
  }

  .p-mv__content {
    order: 1;
    padding: 28px 0 0;
    width: min(100% - 40px, var(--inner));
  }

  .p-mv__photo {
    order: 2;
    position: relative;
    right: auto;
    top: auto;
    width: 118%;
    max-width: none;
    height: auto;
    margin-left: auto;
    margin-top: -12px;
  }

  .p-mv__packages {
    order: 3;
    position: relative;
    left: auto;
    bottom: auto;
    width: min(100% - 32px, 813px);
    display: block;
    margin: -48px auto 0;
  }

  .p-mv__lead {
    font-size: 26px;
  }

  .p-mv__text {
    font-size: 15px;
  }

  .p-works,
  .p-interview,
  .p-env,
  .p-news {
    padding: 64px 0;
  }

  .p-works__leaf {
    width: 90px;
    right: 4%;
  }

  .p-about__stage {
    padding: 48px 20px 64px;
  }

  .p-about__leaves {
    width: 90px;
    left: auto;
    right: 4%;
    top: 12px;
  }

  .p-works__cards {
    grid-template-columns: minmax(0, 320px);
    justify-content: start;
  }

  .p-interview__cards {
    grid-template-columns: minmax(0, 380px);
    gap: 32px;
  }

  .c-person__quote,
  .c-person__name {
    margin-left: 20px;
    margin-right: 20px;
  }

  .c-person__name {
    margin-right: 0;
  }

  .c-person__meta {
    margin-right: 20px;
  }

  .p-gallery__list li {
    width: min(70vw, 320px);
  }

  .p-gallery__list img {
    height: 180px;
  }

  .p-cta {
    min-height: 0;
    padding: 80px 0;
  }

  .p-cta__btns {
    flex-direction: column;
    align-items: center;
  }

  .p-cta__btns .c-btn {
    width: min(100%, 300px);
  }

  .l-footer {
    padding: 48px 0 32px;
  }

  .l-footer__logo {
    flex-wrap: wrap;
  }

  .l-footer__logo img {
    width: 240px;
  }

  .l-footer__nav {
    grid-template-columns: 1fr;
  }

  .l-footer__copy {
    width: min(100% - 40px, var(--inner));
    letter-spacing: 0.04em;
    font-size: 10px;
  }

  .c-pagetop {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }

  .p-news__list a {
    grid-template-columns: 1fr 16px;
    grid-template-rows: auto auto;
  }

  .p-news__list time {
    grid-column: 1;
  }

  .p-news__list span {
    grid-column: 1;
  }

  .p-news__list .c-btn__arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
