/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
  interpolate-size: allow-keywords;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-jp);
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  line-height: var(--text-body-line);
  /* Japanese line breaking: kinsoku rules for body text */
  line-break: strict;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

/* Headings break between phrases (bunsetsu) instead of mid-word */
h1,
h2,
h3,
.section-title__lead {
  word-break: auto-phrase;
  text-wrap: balance;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--color-black);
  color: var(--color-white);
}

.skip-link:focus {
  top: 8px;
}

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

.section {
  padding-block: var(--section-pad);
}

/* ==========================================================================
   Components
   ========================================================================== */

/* Logo ---------------------------------------------------------------- */
.logo {
  font-family: var(--font-logo);
  font-size: 40px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0;
  color: var(--color-text);
  word-break: normal;
}

/* Section title --------------------------------------------------------- */
.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-title__en {
  font-family: var(--font-en);
  font-size: var(--text-en-size);
  font-weight: 400;
  line-height: var(--text-en-line);
  letter-spacing: var(--text-en-tracking);
  color: var(--color-gray);
}

.section-title__ja {
  margin-top: 10px;
  font-size: var(--text-h2-size);
  font-weight: 500;
  line-height: var(--text-h2-line);
  letter-spacing: var(--text-h2-tracking);
  color: var(--color-heading);
}

/* Section headings fade in where they are, once, when scrolled into view
   (js/main.js adds .is-visible). Only hidden when JS is running, so they never
   stay invisible. */
/* The English labels above them (Works, Flow…) fade in the same way, as do
   the page headings (h1) of the Works and privacy policy pages */
.js .section-title__ja,
.js .section-title__en {
  opacity: 0;
  transition: opacity 1.5s ease;
}

.js .section-title__ja.is-visible,
.js .section-title__en.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .js .section-title__ja,
  .js .section-title__en {
    opacity: 1;
    transition: none;
  }
}

.section-title__lead {
  margin-top: 50px;
  color: var(--color-text);
}

.section-title--left {
  align-items: flex-start;
  text-align: left;
}

/* Buttons --------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  padding: 0 42px;
  border: 1px solid var(--color-black);
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 500;
  line-height: 30px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.button--primary {
  background: var(--color-black);
  color: var(--color-white);
}

.button--primary:hover {
  background: var(--color-text);
  border-color: var(--color-text);
}

.button--outline {
  background: var(--color-white);
  color: var(--color-text);
}

/* Light gray fill on hover, keeping the dark text (no black hover on this
   site). Seen on トップに戻る / 実績一覧に戻る; the other outline buttons
   add .button--soft-hover, which gives the same colors with a slower fade. */
.button--outline:hover {
  background: var(--color-hover-soft);
  color: var(--color-text);
}

/* 実績を見る / お問い合わせ: a light gray fill on hover that fades in softly,
   keeping the dark text */
.button--soft-hover {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.button--soft-hover:hover {
  background: var(--color-hover-soft);
  color: var(--color-text);
}

.button--small {
  width: 190px;
  height: 44px;
  padding: 0 24px;
  border-color: var(--color-text);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}

/* Tags & pills ---------------------------------------------------------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tag {
  padding: 1px 14px;
  border-radius: 999px;
  background: var(--color-tag);
  color: var(--color-white);
  font-size: 14px;
  line-height: 30px;
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 126px;
  height: 42px;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-text);
  white-space: nowrap;
}

.text-link {
  color: var(--color-link);
  transition: opacity 0.25s;
}

.text-link:hover {
  opacity: 0.6;
  text-decoration: underline;
}

/* Nav list (header + footer) ------------------------------------------- */
.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  white-space: nowrap;
}

.nav-list a {
  transition: opacity 0.25s;
}

.nav-list a:hover {
  opacity: 0.6;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  transition: box-shadow 0.25s;
}

.header.is-scrolled {
  box-shadow: 0 1px 0 rgba(61, 61, 61, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  margin-bottom: 8px;
  padding-inline: 40px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 39px;
  color: var(--color-header-text);
}

/* Header text in Medium (500) and near-black so it doesn't read as thin.
   Scoped to the header: .nav-list and the button classes are shared with
   the footer and the rest of the page. Weight and color only. */
.header__nav .nav-list,
.header__nav .button {
  font-weight: 500;
}

.header__nav .button,
.header__nav .button:hover {
  color: var(--color-header-text);
}

.header__toggle {
  display: none;
}

@media (max-width: 1100px) {
  .header__inner {
    height: var(--header-height);
    margin-bottom: 0;
    padding-inline: var(--gutter);
  }

  .header__inner > .logo {
    position: relative;
    z-index: 2;
  }

  .header__toggle {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 44px;
    height: 44px;
    padding: 0 9px;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .header__toggle-bar {
    display: block;
    height: 1.5px;
    background: var(--color-text);
    transition: transform 0.3s, opacity 0.3s;
  }

  .header.is-open .header__toggle-bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }
  .header.is-open .header__toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .header.is-open .header__toggle-bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }

  .header__nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    justify-content: center;
    gap: 48px;
    background: var(--color-white);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .header.is-open .header__nav {
    opacity: 1;
    visibility: visible;
  }

  .header__nav .nav-list {
    flex-direction: column;
    gap: 28px;
  }
}

@media (max-width: 767px) {
  .logo {
    font-size: 32px;
  }
}

/* ==========================================================================
   MV
   ========================================================================== */
.mv {
  position: relative;
  z-index: 1; /* lets the scroll-down line overlap the top of Problems */
  overflow-x: clip;
}

.mv__inner {
  display: grid;
  grid-template-columns: 578px 1fr;
  gap: 34px;
  align-items: center;
  max-width: 1440px;
  margin-inline: auto;
  padding-left: var(--gutter);
}

.mv__text {
  display: flex;
  flex-direction: column;
  gap: 72px;
  padding-block: 40px;
}

.mv__title {
  font-size: 48px;
  font-weight: 500;
  line-height: 80px;
  color: var(--color-black);
  word-break: keep-all;
  /* Kept from when this was the h1 (headings get balanced lines) */
  text-wrap: balance;
}

/* The page's h1: the lead sentence, styled like the body text around it
   (no heading size, weight or phrase-based line breaking) */
.mv__lead-text {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  word-break: normal;
  text-wrap: wrap;
}

/* Main copy: each line fades in where it is on page load, 0.5s apart */
.mv__title-line {
  display: block;
  animation: fade-in 1.5s ease both;
}

.mv__title-line:nth-child(2) {
  animation-delay: 0.5s;
}

.mv__title-line:nth-child(3) {
  animation-delay: 1s;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Must come after the .mv__title-line rules above to win */
@media (prefers-reduced-motion: reduce) {
  .mv__title-line {
    animation: none;
  }
}

.mv__lower {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Full-bleed gray band behind the lead and buttons */
.mv__lower::before {
  content: "";
  position: absolute;
  top: -40px;
  left: -100vw;
  right: -100vw;
  height: 276px;
  background: var(--color-bg-soft);
  z-index: -1;
}

.mv__text,
.mv__lower {
  isolation: auto;
}

.mv__lead {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--color-black);
}

.mv__keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.75em;
}

.mv__keywords li::before {
  content: "( ";
}

.mv__keywords li::after {
  content: " )";
}

.mv__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 27px;
}

.mv__buttons .button--primary {
  width: 260px;
}

.mv__buttons .button--outline {
  width: 230px;
}

/* Fixed height: when the column gets narrower, the photo zooms in from
   the center (sides are cropped) instead of shrinking. */
.mv__visual {
  --mv-visual-height: 582px;
  position: relative;
  z-index: 1;
  height: var(--mv-visual-height);
  overflow: hidden;
}

.mv__visual img {
  position: absolute;
  top: 0;
  left: 50%;
  width: auto;
  min-width: 100%;
  max-width: none;
  height: 105.59%; /* Figma crop: slightly larger than the frame, anchored to the top */
  object-fit: cover;
  transform: translateX(-50%);
}

/* Slideshow: the incoming slide fades in on top while the outgoing one
   (.is-prev) stays underneath until it has finished, so there is no flash. */
.mv__slide {
  opacity: 0;
  transition: opacity 1s ease;
}

.mv__slide.is-active {
  z-index: 2;
  opacity: 1;
}

.mv__slide.is-prev {
  z-index: 1;
  opacity: 1;
  transition: none;
}

/* Slow zoom-in from the center over the 6s a slide is visible (5s shown + 1s
   fading out). Both states use the same animation so it keeps going smoothly
   when a slide hands over from .is-active to .is-prev. */
.mv__slide.is-active,
.mv__slide.is-prev {
  animation: mv-zoom 6s linear forwards;
}

@keyframes mv-zoom {
  from {
    transform: translateX(-50%) scale(1);
  }
  to {
    transform: translateX(-50%) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mv__slide.is-active,
  .mv__slide.is-prev {
    animation: none;
  }
}

.mv__scroll {
  position: absolute;
  left: 53px;
  /* Text starts 61px above the MV's bottom edge; the line runs on into Problems */
  top: calc(100% - 61px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  color: var(--color-text);
  pointer-events: none;
}

.mv__scroll-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.1em;
  line-height: 18px;
  white-space: nowrap;
}

/* Vertical line under the label, drawn top to bottom on a loop */
.mv__scroll-line {
  width: 1px;
  height: 120px;
  background: currentColor;
  animation: scroll-line 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scroll-line {
  0% {
    clip-path: inset(0 0 100% 0);
  }
  55% {
    clip-path: inset(0 0 0 0);
  }
  100% {
    clip-path: inset(100% 0 0 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mv__scroll-line {
    animation: none;
  }
}

/* Main section stacking: band must sit under the MV text but above the page */
.mv__inner {
  position: relative;
  z-index: 0;
}

/* Tablet and phone: one column, ordered copy → photo → gray band.
   .mv__text steps aside (display: contents) so the copy, the photo and the
   gray band can be ordered without changing the HTML.
   Tablet: the photo is half the screen height and the three lines of copy
   fill the rest of the first screen above it (font size 0.6× the line, as
   on PC). The copy never gets smaller than on phones, nor so large that
   「喜びにつながる」 runs past the screen width. svh keeps the size steady
   when the browser bar hides or shows (vh is the fallback). */
@media (max-width: 1100px) {
  .mv {
    --mv-copy-top: 40px;
    --mv-copy-bottom: 40px;
    --mv-copy-line: clamp(54px, calc((50vh - var(--header-height) - 80px) / 3), calc((100vw - var(--gutter) * 2) / 4.5));
    --mv-copy-line: clamp(54px, calc((50svh - var(--header-height) - 80px) / 3), calc((100vw - var(--gutter) * 2) / 4.5));
  }

  .mv__inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding-right: var(--gutter);
  }

  .mv__text {
    display: contents;
  }

  .mv__title {
    order: 1;
    padding-top: var(--mv-copy-top);
    margin-bottom: var(--mv-copy-bottom);
    font-size: calc(var(--mv-copy-line) * 0.6);
    line-height: var(--mv-copy-line);
  }

  .mv__visual {
    order: 2;
    --mv-visual-height: 50vh;
    --mv-visual-height: 50svh;
    margin-inline: calc(var(--gutter) * -1);
  }

  .mv__lower {
    order: 3;
    padding-block: 40px 56px;
  }

  .mv__lower::before {
    top: 0;
    height: auto;
    bottom: 0;
  }

  .mv__scroll {
    display: none;
  }
}

/* Phone: the first screen shows only the main copy and the photo, sized to
   fit exactly under the header; the gray band follows when scrolling. */
@media (max-width: 767px) {
  .mv {
    --mv-copy-top: 32px;
    --mv-copy-line: 54px;
    --mv-copy-bottom: 30px; /* space under 「デザインを」 */
  }

  .mv__title {
    padding-top: var(--mv-copy-top);
    margin-bottom: var(--mv-copy-bottom);
    font-size: 32px;
    line-height: var(--mv-copy-line);
  }

  .mv__visual {
    /* Screen height minus the header and the three lines of copy. svh is the
       height with the browser's address bar showing, so it doesn't change
       when the bar hides or shows on scroll (vh is the fallback for old browsers). */
    --mv-copy-height: calc(var(--mv-copy-top) + var(--mv-copy-line) * 3 + var(--mv-copy-bottom));
    --mv-visual-height: max(200px, calc(100vh - var(--header-height) - var(--mv-copy-height)));
    --mv-visual-height: max(200px, calc(100svh - var(--header-height) - var(--mv-copy-height)));
  }

  .mv__buttons {
    flex-direction: column;
    gap: 16px;
  }

  .mv__buttons .button {
    width: 100%;
    height: 60px;
  }
}

/* ==========================================================================
   Problems
   ========================================================================== */
.problems {
  padding-top: 120px;
  background: var(--color-bg-soft);
}

.problems__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 55px;
}

.problem-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.problem-card__bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 201px;
  margin-bottom: -60px;
  padding: 20px 30px 70px;
  border: 1px solid var(--color-black);
  color: var(--color-black);
  font-weight: 400;
  text-align: justify;
}

.problem-card__text {
  max-width: 198px;
}

.problem-card:first-child .problem-card__text {
  max-width: 179px;
}

.problem-card__avatar {
  position: relative;
}

@media (max-width: 1100px) {
  .problems__list {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }
}

@media (max-width: 767px) {
  .problems {
    padding-top: var(--section-pad);
  }

  .problems__list {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-inline: auto;
    margin-top: 40px;
  }

  .problem-card__bubble {
    min-height: 170px;
  }
}

/* ==========================================================================
   Solutions
   ========================================================================== */
.solutions {
  position: relative;
}

/* Vertical line across the Problems / Solutions boundary.
   Drawn top to bottom once, when it scrolls into view (js/main.js adds .is-drawn). */
.section-divider {
  position: absolute;
  top: -85px;
  left: 50%;
  width: 1px;
  height: 170px;
  background: var(--color-line);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.section-divider.is-drawn {
  clip-path: inset(0 0 0 0);
}

@media (max-width: 767px) {
  .section-divider {
    top: -55px;
    height: 110px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-divider {
    clip-path: none;
  }
}

.solutions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 27px;
  margin-top: 80px;
}

.solution-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 447px;
  padding: 50px 45px 29px;
  /* The background image scales with the card's width. 113.45% of the
     full-size 382px card = 433px, which is the same size "cover" gave at
     full size; it never grows beyond that. */
  background: var(--color-bg-soft) center / min(113.45%, 433px) auto no-repeat;
  overflow: hidden;
}

.solution-card--1 { background-image: url("../assets/solution-01.jpg"); }
.solution-card--2 { background-image: url("../assets/solution-02.jpg"); }
.solution-card--3 { background-image: url("../assets/solution-03.jpg"); }

.solution-card--wide {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 50px 30px 63px;
  background-image: url("../assets/solution-04.jpg");
  background-size: auto 100%;
}

.solution-card__num {
  font-family: var(--font-en);
  font-size: 70px;
  font-weight: 500;
  line-height: 88px;
  color: var(--color-text);
}

.solution-card__en {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 100;
  line-height: 45px;
  letter-spacing: 0.1em;
  color: var(--color-text);
}

.solution-card__title {
  margin-top: 35px;
  margin-inline: -30px;
  font-size: var(--text-h3-size);
  font-weight: 700;
  line-height: var(--text-h3-line);
  letter-spacing: var(--text-h3-tracking);
  color: var(--color-heading);
  text-align: center;
}

.solution-card--wide .solution-card__title {
  color: var(--color-black);
}

.solution-card__text {
  margin-top: 35px;
  max-width: 401px;
  text-align: justify;
}

@media (max-width: 1100px) {
  .solutions__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }

  .solution-card {
    min-height: 0;
  }

  .solution-card__title {
    margin-inline: 0;
  }
}

@media (max-width: 767px) {
  .solutions__grid {
    gap: 20px;
    margin-top: 48px;
  }

  .solution-card,
  .solution-card--wide {
    padding: 40px 24px;
  }

  .solution-card__num {
    font-size: 56px;
    line-height: 70px;
  }

  .solution-card__en {
    font-size: 18px;
    line-height: 36px;
  }

  .solution-card__title,
  .solution-card__text {
    margin-top: 24px;
  }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services {
  background: var(--color-bg-soft);
}

.services__list {
  display: flex;
  flex-direction: column;
  gap: 75px;
  margin-top: 100px;
}

.service-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
  padding: 80px 40px;
  background: var(--color-white);
}

.service-card__icon {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
}

/* Same text width on every card (wide enough for the longest title,
   英会話教室サイトの作成・リニューアル, on one line), so the centered cards
   line up: icons in one column, text in another. */
.service-card__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 480px;
}

.service-card__title {
  font-size: var(--text-h3-size);
  font-weight: 700;
  line-height: var(--text-h3-line);
  letter-spacing: var(--text-h3-tracking);
  color: var(--color-heading);
}

@media (max-width: 1100px) {
  .service-card {
    gap: 48px;
  }
}

@media (max-width: 767px) {
  .services__list {
    gap: 24px;
    margin-top: 48px;
  }

  .service-card {
    flex-direction: column;
    gap: 24px;
    padding: 40px 24px;
  }

  .service-card__icon {
    width: 96px;
    height: 96px;
  }

  .service-card__body {
    width: 100%;
    gap: 12px;
  }

  .service-card__title {
    text-align: center;
  }
}

/* ==========================================================================
   Works
   ========================================================================== */
.works__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 100px;
}

.work-card {
  display: flex;
  flex-direction: column;
  border: 0.5px solid var(--color-black);
  overflow: hidden;
}

/* Image links to the work on foriio; zooms in slowly inside its frame on hover */
.work-card__media {
  display: block;
  overflow: hidden;
  container-type: inline-size;
}

.work-card__image {
  width: 100%;
  aspect-ratio: 588 / 331;
  /* Round the height to a whole pixel so every card edge lands on a pixel
     boundary; otherwise the 0.5px border blurs on some edges. */
  height: round(down, calc(100cqw * 331 / 588), 1px);
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.6, 0.3, 1);
}

.work-card__media:hover .work-card__image,
.work-card__media:focus-visible .work-card__image {
  transform: scale(1.06);
}

.work-card__media:focus-visible {
  outline-offset: -3px;
}

.work-card__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px 30px 47px;
}

.work-card__title {
  margin-right: -10px;
  text-wrap: wrap;
  font-size: 16px;
  font-weight: 500;
  line-height: 25px;
  color: var(--color-heading);
}

/* Set by js/works.js on titles with a hand-picked break point */
.title-fixed-break {
  word-break: keep-all;
}

.work-card__client {
  margin-top: -4px;
  line-height: 21px;
}

@media (max-width: 767px) {
  .works__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 48px;
  }

  .work-card__body {
    padding: 20px 20px 28px;
    gap: 14px;
  }
}

/* "View all works" button under the top page's Works grid */
.works__more {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.works__more .button {
  width: 260px;
}

/* Top page Works slider ------------------------------------------------- */
/* Cards in one row across the full screen width, cut off at both edges.
   js/main.js moves the track one card at a time and loops it. Without JS
   the row simply scrolls sideways. */
.works-slider {
  --works-card-w: 384px;
  --works-gap: 25px;
  margin-top: 100px;
}

.works-slider__viewport {
  overflow-x: auto;
  touch-action: pan-y pinch-zoom;
}

.js .works-slider__viewport {
  overflow: hidden;
}

.works-slider__track {
  display: flex;
  gap: var(--works-gap);
  margin: 0;
  padding-inline: var(--gutter);
}

.js .works-slider__track {
  padding-inline: 0;
  will-change: transform;
}

.works-slider__track.is-animating {
  transition: transform 0.7s cubic-bezier(0.45, 0, 0.55, 1);
}

.works-slider__slide {
  flex: 0 0 var(--works-card-w);
}

.works-slider .work-card__body {
  flex: 1;
}

.works-slider .work-card__meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 0.5px solid var(--color-black);
}

.works-slider__nav {
  display: none;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 40px;
}

.js .works-slider__nav {
  display: flex;
}

.works-slider__arrow {
  width: 56px;
  height: 56px;
  padding: 0;
}

@media (max-width: 1100px) {
  .works-slider {
    --works-card-w: 340px;
  }
}

@media (max-width: 767px) {
  .works-slider {
    --works-card-w: calc(100vw - var(--gutter) * 2 - 40px);
    --works-gap: 16px;
    margin-top: 48px;
  }

  .works-slider .work-card__meta {
    gap: 14px;
    padding-top: 14px;
  }

  .works-slider__nav {
    margin-top: 28px;
  }

  .works-slider__arrow {
    width: 48px;
    height: 48px;
  }
}

/* ==========================================================================
   Works list page (works.html) and work detail page (work.html)
   ========================================================================== */
.subpage {
  padding-top: 120px;
}

/* Works page tag filter: "All" + one button per microCMS tag. The buttons
   reuse .button--outline (same border, pill corners, colors and #ededed
   hover as トップに戻る), sized down to the page's 16px text. */
.works-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  min-height: 38px; /* one row of buttons, kept while they load */
  margin-top: 60px;
}

.works-filter + .works__grid,
.works-filter ~ .works-message {
  margin-top: 60px;
}

.works-filter[hidden],
.works__grid[hidden] {
  display: none;
}

.button--filter {
  height: auto;
  padding: 5px 20px;
  line-height: 26px;
}

.button--filter[aria-pressed="true"] {
  background: var(--color-hover-soft);
}

/* Whole card is one link to the detail page */
.works__grid > li:not(.work-card) {
  display: flex;
}

.work-card--link {
  flex: 1;
  color: inherit;
}

.work-card--link:hover .work-card__image,
.work-card--link:focus-visible .work-card__image {
  transform: scale(1.06);
}

.work-card--link:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 3px;
}

/* Summary: at most 2 lines, then "…" */
.work-card__title--clamp {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* Loading placeholders (same size as the real content, so nothing jumps) */
.skeleton {
  border-radius: 4px;
  background: linear-gradient(90deg, #eeeeee 0%, #f6f6f6 50%, #eeeeee 100%) 0 0 / 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.work-card__image.skeleton {
  display: block;
  border-radius: 0;
  aspect-ratio: 588 / 331;
}

.skeleton--tags {
  width: 160px;
  height: 32px;
  border-radius: 999px;
}

.skeleton--line {
  height: 20px;
}

.skeleton--short {
  width: 45%;
}

.skeleton--title {
  width: 60%;
  height: 40px;
}

.skeleton--image {
  aspect-ratio: 588 / 331;
  border-radius: 0;
}

@keyframes skeleton-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
  }
}

.works-message {
  margin-top: 100px;
  padding: 48px 24px;
  border: 0.5px solid var(--color-black);
  text-align: center;
  color: var(--color-text);
}

.works-message--error {
  color: var(--color-heading);
}

/* Breadcrumb */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--color-gray);
}

.breadcrumb li + li::before {
  content: "/";
  margin: 0 10px;
}

.breadcrumb a {
  font-family: var(--font-en);
  letter-spacing: 0.1em;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.25s;
}

.breadcrumb a:hover {
  opacity: 0.6;
}

.breadcrumb [aria-current="page"] {
  color: var(--color-text);
}

/* Detail page */
.work-detail__inner {
  max-width: calc(880px + var(--gutter) * 2);
}

.work-detail__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.work-detail__image {
  margin: 0 0 8px;
  border: 0.5px solid var(--color-black);
  overflow: hidden;
}

.work-detail__image img {
  width: 100%;
  height: auto;
}

.work-detail__image.skeleton {
  border-color: transparent;
}

.work-detail__title {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--color-heading);
}

.work-detail__lead {
  margin-top: -8px;
  font-size: 18px;
  line-height: 34px;
  color: var(--color-heading);
}

/* "Back" buttons at the bottom of the works pages (トップに戻る / 実績一覧に戻る) */
.page-back {
  display: flex;
  justify-content: center;
  margin-top: 80px;
}

.page-back .button {
  width: 260px;
}

/* Two back buttons side by side (404 page: トップに戻る / 実績一覧を見る),
   stacking when the screen is too narrow for both */
.page-back--pair {
  flex-wrap: wrap;
  gap: 20px;
}

/* Rich-editor content (microCMS description) */
.rich-text {
  margin-top: 24px;
  padding-top: 40px;
  border-top: 0.5px solid var(--color-line);
  text-align: justify;
}

.rich-text > :first-child {
  margin-top: 0;
}

/* No underline here: the heading's size and weight set it apart on their own */
.rich-text h2 {
  margin-top: 56px;
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--color-heading);
  text-align: left;
}

.rich-text h3 {
  margin-top: 40px;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--color-heading);
  text-align: left;
}

.rich-text h4 {
  margin-top: 32px;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-heading);
}

.rich-text p {
  margin-top: 16px;
}

.rich-text strong,
.rich-text b {
  font-weight: 700;
  color: var(--color-heading);
}

.rich-text a {
  color: var(--color-heading);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  transition: opacity 0.25s;
}

.rich-text a:hover {
  opacity: 0.6;
}

.rich-text ul,
.rich-text ol {
  margin-top: 16px;
  padding-left: 1.5em;
}

.rich-text ul {
  list-style: disc;
}

.rich-text ol {
  list-style: decimal;
}

.rich-text li + li {
  margin-top: 6px;
}

.rich-text li::marker {
  color: var(--color-gray);
}

.rich-text figure {
  margin: 40px 0;
}

/* Images fill the text width at most, but are never shown larger than their
   original size; narrower images are centered */
.rich-text img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 40px auto;
}

.rich-text figure img {
  margin: 0 auto;
}

.rich-text figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 20px;
  color: var(--color-gray);
  text-align: center;
}

.rich-text blockquote {
  margin: 32px 0;
  padding: 16px 24px;
  border-left: 2px solid var(--color-gray);
  background: var(--color-bg-soft);
}

.rich-text hr {
  margin: 40px 0;
  border: 0;
  border-top: 0.5px solid var(--color-line);
}

.rich-text table {
  width: 100%;
  margin-top: 24px;
  border-collapse: collapse;
  font-size: 15px;
}

.rich-text th,
.rich-text td {
  padding: 10px 12px;
  border: 0.5px solid var(--color-line);
  text-align: left;
}

.rich-text th {
  background: var(--color-bg-soft);
  font-weight: 700;
}

.rich-text iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 40px 0;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}

@media (max-width: 767px) {
  .subpage {
    padding-top: 64px;
  }

  .works-message {
    margin-top: 48px;
  }

  .works-filter {
    gap: 10px;
    margin-top: 40px;
  }

  .works-filter + .works__grid,
  .works-filter ~ .works-message {
    margin-top: 40px;
  }

  .work-detail__title {
    font-size: 24px;
  }

  .work-detail__lead {
    font-size: 16px;
    line-height: 30px;
  }

  .rich-text h2 {
    margin-top: 40px;
    font-size: 19px;
  }

  .rich-text h3 {
    font-size: 17px;
  }

  .rich-text figure,
  .rich-text img,
  .rich-text iframe {
    margin-block: 28px;
  }

  .rich-text figure img {
    margin-block: 0;
  }

  .page-back {
    margin-top: 56px;
  }
}

/* ==========================================================================
   Flow
   ========================================================================== */
.flow {
  background: var(--color-bg-soft);
}

.flow__list {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 81px;
}

.flow-step {
  --step-pad: 50px;
  padding: var(--step-pad) 100px;
  background: var(--color-white);
}

.flow-step__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 962px;
  margin-inline: auto;
}

/* Connector line between the STEP circles */
.flow-step__row::before,
.flow-step__row::after {
  content: "";
  position: absolute;
  left: 89px;
  width: 1px;
  background: var(--color-line);
}

.flow-step__row::before {
  top: calc((var(--step-pad) + 25px) * -1);
  bottom: 50%;
}

.flow-step__row::after {
  top: 50%;
  bottom: calc((var(--step-pad) + 25px) * -1);
}

.flow-step:first-child .flow-step__row::before,
.flow-step:last-child .flow-step__row::after {
  display: none;
}

/* Each connector is the lower half of one step (::after) plus the upper half
   of the next (::before). When it scrolls into view, js/main.js adds
   .is-line-out / .is-line-in so the two halves draw top to bottom in sequence. */
.flow-step__row::before,
.flow-step__row::after {
  clip-path: inset(0 0 100% 0);
}

.flow-step.is-line-out .flow-step__row::after {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.45s cubic-bezier(0.45, 0, 1, 1);
}

.flow-step.is-line-in .flow-step__row::before {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.45s cubic-bezier(0, 0, 0.55, 1) 0.45s;
}

@media (prefers-reduced-motion: reduce) {
  .flow-step__row::before,
  .flow-step__row::after {
    clip-path: none;
  }
}

.flow-step__badge {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 179px;
  height: 179px;
  border: 1px solid var(--color-white);
  border-radius: 50%;
  background: var(--color-bg-soft);
  font-family: var(--font-en);
  font-weight: 600;
  line-height: 45px;
  letter-spacing: 12px;
  color: var(--color-text);
  text-align: center;
}

.flow-step__label {
  font-size: 24px;
  margin-right: -12px;
}

.flow-step__num {
  font-size: 30px;
  margin-right: -12px;
}

.flow-step__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.flow-step__body p + p {
  margin-top: 20px;
}

.flow-step__title {
  margin-bottom: 0;
  font-size: var(--text-h3-size);
  font-weight: 700;
  line-height: var(--text-h3-line);
  letter-spacing: var(--text-h3-tracking);
  color: var(--color-heading);
}

@media (max-width: 1100px) {
  .flow-step {
    padding-inline: 48px;
  }

  .flow-step__row {
    gap: 40px;
  }
}

@media (max-width: 767px) {
  .flow__list {
    gap: 24px;
    margin-top: 48px;
  }

  /* Phone: each step is a card with the STEP circle centred on top,
     then the centred heading, then the left-aligned text */
  .flow-step {
    padding: 40px 20px;
  }

  .flow-step__row {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .flow-step__row::before,
  .flow-step__row::after {
    display: none;
  }

  .flow-step__badge {
    align-self: center;
    width: 160px;
    height: 160px;
    line-height: 40px;
    letter-spacing: 10px;
  }

  .flow-step__label {
    font-size: 20px;
    margin-right: -10px;
  }

  .flow-step__num {
    font-size: 28px;
    margin-right: -10px;
  }

  .flow-step__body {
    gap: 8px;
  }

  .flow-step__title {
    text-align: center;
  }
}

/* ==========================================================================
   About Me
   ========================================================================== */
.about__profile {
  display: flex;
  align-items: flex-start;
  gap: 50px;
  padding: 71px 30px 30px;
  border-top: 1px solid var(--color-line-soft);
}

.about__photo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 423px;
  min-height: 466px;
}

.about__photo img {
  width: 426px;
  max-width: none;
  aspect-ratio: 426 / 322;
  object-fit: cover;
}

.about__text {
  flex: 1;
  min-width: 0;
}

.about__name {
  margin-top: 30px;
  font-size: var(--text-h3-size);
  font-weight: 700;
  line-height: var(--text-h3-line);
  letter-spacing: var(--text-h3-tracking);
  color: var(--color-heading);
}

.about__bio {
  margin-top: 16px;
  line-height: 35px;
  text-align: justify;
}

.skills {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--color-line-soft);
}

.skills__title {
  font-size: var(--text-h3-size);
  font-weight: 700;
  line-height: var(--text-h3-line);
  letter-spacing: var(--text-h3-tracking);
  color: var(--color-heading);
  text-align: center;
}

.skills__columns {
  display: grid;
  /* 523px and 582px at full width; narrower, both shrink in proportion so
     the skills always stay between the lines above and below */
  grid-template-columns: minmax(0, 523fr) minmax(0, 582fr);
  justify-content: center;
  gap: 40px;
  max-width: 1145px;
  width: 100%;
}

.skills__list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.skills__list + .skills__list {
  gap: 20px;
}

.skill {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.skill__tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.skill__desc {
  flex: 1;
  padding-top: 6px;
}

/* The skills change layout with the width of their own area (between the
   lines), so they never spill past the lines:
   - 1000px and wider: two columns, tool pills to the left of the text
   - 760–999px: two columns, pills in a row above the text
   - below 760px: one column, pills in a row above the text */
.skills {
  container-type: inline-size;
}

@container (max-width: 999px) {
  .skills__list,
  .skills__list + .skills__list {
    gap: 30px;
  }

  .skill {
    flex-direction: column;
    gap: 16px;
  }

  .skill__tools {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .skill__desc {
    padding-top: 0;
  }
}

@container (max-width: 759px) {
  .skills__columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 1100px) {
  .about__profile {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding-inline: 0;
  }

  .about__photo {
    width: 100%;
    max-width: 426px;
    min-height: 0;
  }

  .about__photo img {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .about__profile {
    padding-top: 48px;
  }

  .about__name {
    margin-top: 20px;
  }

  .about__bio {
    line-height: 30px;
  }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  background: var(--color-bg-faq);
}

.faq__panel {
  margin-top: 76px;
  padding: 50px 70px 100px 80px;
  background: var(--color-white);
}

.faq-item {
  border-bottom: 1px solid var(--color-line-soft);
}

.faq-item::details-content {
  height: 0;
  overflow: clip;
  transition: height 0.3s ease, content-visibility 0.3s allow-discrete;
}

.faq-item[open]::details-content {
  height: auto;
}

.faq-item__q,
.faq-item__a {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.faq-item__q {
  position: relative;
  padding: 50px 56px 10px 14px;
  color: var(--color-heading);
  cursor: pointer;
  list-style: none;
  transition: opacity 0.25s;
}

.faq-item:not([open]) .faq-item__q {
  padding-bottom: 50px;
}

.faq-item__q::-webkit-details-marker {
  display: none;
}

.faq-item__q:hover {
  opacity: 0.7;
}

/* + / − toggle indicator */
.faq-item__q::before,
.faq-item__q::after {
  content: "";
  position: absolute;
  top: 65px;
  right: 20px;
  width: 16px;
  height: 1px;
  background: var(--color-text);
  transition: transform 0.3s;
}

.faq-item__q::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-item__q::after {
  transform: rotate(0deg);
}

.faq-item__a {
  padding: 0 14px 50px;
  color: var(--color-text);
}

.faq-item__mark {
  flex-shrink: 0;
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  color: var(--color-text);
}

@media (max-width: 1100px) {
  .faq__panel {
    padding: 30px 40px 60px;
  }
}

@media (max-width: 767px) {
  .faq__panel {
    margin-top: 40px;
    padding: 8px 16px 32px;
  }

  .faq-item__q {
    padding: 24px 40px 8px 0;
  }

  .faq-item:not([open]) .faq-item__q {
    padding-bottom: 24px;
  }

  .faq-item__q::before,
  .faq-item__q::after {
    top: 38px;
    right: 8px;
  }

  .faq-item__a {
    padding: 0 0 24px;
  }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  background: var(--color-bg-dark);
}

.contact__panel {
  padding: 47px 24px;
  background: var(--color-white);
}

.contact__lead {
  margin-top: 58px;
  color: var(--color-black);
}

.contact-form,
.contact-success {
  width: 100%;
  max-width: 577px;
  margin: 57px auto 0;
}

.field + .field {
  margin-top: 16px;
}

.field--textarea {
  margin-top: 22px !important;
}

.field__label {
  display: inline-flex;
  padding-bottom: 0;
  margin-bottom: -1px;
  color: var(--color-black);
  line-height: 30px;
}

.field__required {
  margin-left: 5px;
  color: var(--color-required);
  font-size: 15px;
  font-weight: 700;
  line-height: 21px;
}

.field__input {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 0;
  padding: 0 11px;
  border: 1px solid var(--color-line-soft);
  border-radius: 0;
  background: var(--color-white);
  color: var(--color-black);
  line-height: 30px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field__input::placeholder {
  color: var(--color-placeholder);
}

.field__input:focus {
  outline: none;
  border-color: var(--color-black);
  box-shadow: 0 0 0 2px rgba(61, 61, 61, 0.2);
}

.field__input[aria-invalid="true"] {
  border-color: var(--color-required);
}

.field__select-wrap {
  position: relative;
  max-width: 472px;
}

.field__select {
  height: 55px;
  padding-right: 44px;
  appearance: none;
  cursor: pointer;
}

.field__select:invalid {
  color: var(--color-placeholder);
}

.field__select option {
  color: var(--color-black);
}

.field__select-icon {
  position: absolute;
  top: 50%;
  right: 11px;
  transform: translateY(-50%);
  color: #bdbdbd;
  pointer-events: none;
}

.field__textarea {
  height: 200px;
  padding: 11px;
  resize: vertical;
}

.field__error {
  min-height: 0;
  margin-top: 4px;
  color: var(--color-required);
  font-size: 14px;
  line-height: 20px;
}

.field__error:empty {
  display: none;
}

.field--check {
  margin-top: 19px !important;
}

/* Custom checkbox using the Figma check-square icon for the checked state */
.check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #333333;
  cursor: pointer;
}

.check__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.check__box {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: no-repeat center / 24px 24px;
  /* Unchecked: the icon's square outline without the tick */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' stroke='%235F5E5A' stroke-width='2'/%3E%3C/svg%3E");
}

.check__input:checked + .check__box {
  background-image: url("../assets/check-square.svg");
}

.check__input:focus-visible + .check__box {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}

.check__input[aria-invalid="true"] + .check__box {
  filter: drop-shadow(0 0 0 var(--color-required));
  outline: 1px solid var(--color-required);
  outline-offset: 1px;
}

.check__link {
  text-decoration: underline;
  text-decoration-color: var(--color-line-soft);
  text-underline-offset: 3px;
  transition: opacity 0.25s;
}

.check__link:hover {
  opacity: 0.6;
}

.contact-form__submit {
  display: flex;
  justify-content: center;
  margin-top: 53px;
}

.button--submit {
  width: 200px;
  font-weight: 700;
}

.contact-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-form__error {
  margin-top: 16px;
  color: var(--color-required);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.button--submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.contact-success {
  padding: 48px 24px;
  border: 1px solid var(--color-line-soft);
  text-align: center;
  color: var(--color-black);
}

.contact-success:focus {
  outline: none;
}

.contact-success__title {
  margin-bottom: 12px;
  font-size: var(--text-h3-size);
  font-weight: 700;
  line-height: var(--text-h3-line);
  letter-spacing: var(--text-h3-tracking);
  color: var(--color-heading);
}

@media (max-width: 767px) {
  .contact__panel {
    padding: 40px 16px;
  }

  .contact__lead {
    margin-top: 32px;
  }

  .contact-form,
  .contact-success {
    margin-top: 40px;
  }

  .contact-form__submit {
    margin-top: 40px;
  }

  .button--submit {
    width: 100%;
    height: 60px;
  }
}

/* ==========================================================================
   Privacy policy page
   ========================================================================== */
.policy {
  padding-top: 120px;
}

.policy__body {
  max-width: 800px;
  margin: 80px auto 0;
  text-align: justify;
}

.policy__intro {
  margin-bottom: 64px;
}

.policy__section + .policy__section {
  margin-top: 56px;
}

.policy__heading {
  display: flex;
  gap: 0.5em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 0.5px solid var(--color-line);
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 0.06em;
  color: var(--color-heading);
  text-align: left;
}

.policy__num {
  flex-shrink: 0;
  font-family: var(--font-en);
  font-weight: 600;
}

.policy__section p + p,
.policy__section p + .policy__list,
.policy__section p + .policy__contact {
  margin-top: 12px;
}

.policy__list {
  padding-left: 1.5em;
  list-style: disc;
}

.policy__list li + li {
  margin-top: 4px;
}

.policy__contact {
  padding: 20px 24px;
  background: var(--color-bg-soft);
}

.policy__contact-row {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 16px;
}

.policy__contact-row + .policy__contact-row {
  margin-top: 8px;
}

.policy__contact dt {
  font-weight: 700;
  color: var(--color-heading);
}

.policy__contact a {
  color: var(--color-heading);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  transition: opacity 0.25s;
}

.policy__contact a:hover {
  opacity: 0.6;
}

@media (max-width: 767px) {
  .policy {
    padding-top: 64px;
  }

  .policy__body {
    margin-top: 48px;
  }

  .policy__intro {
    margin-bottom: 40px;
  }

  .policy__section + .policy__section {
    margin-top: 40px;
  }

  .policy__heading {
    font-size: 18px;
    line-height: 28px;
  }

  .policy__contact {
    padding: 16px;
  }

  .policy__contact-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-white);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 50px 34px 0 49px;
}

.logo--footer {
  display: inline-block;
  margin-top: 4px;
  margin-left: 2px;
  line-height: 20px;
  color: var(--color-white);
}

.footer__tagline {
  margin-top: 35px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24.5px;
}

/* Instagram icon under the tagline: white line icon, fading like the other footer links */
.footer__sns {
  display: inline-flex;
  margin-top: 20px;
  color: var(--color-white);
  transition: opacity 0.25s;
}

.footer__sns:hover {
  opacity: 0.6;
}

.footer__sns svg {
  display: block;
}

.footer__legal {
  margin-top: 32px;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}

.footer__legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.25s;
}

.footer__legal a:hover {
  opacity: 0.6;
}

.footer__copy {
  padding: 12px 0 28px;
  font-family: var(--font-en);
  font-size: 12px;
  line-height: 12px;
  letter-spacing: 0.02em;
  text-align: center;
}

.footer__copy small {
  font-size: inherit;
}

@media (max-width: 1100px) {
  .footer__inner {
    flex-direction: column;
    padding: 48px var(--gutter) 0;
  }

  .nav-list--footer {
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .footer__tagline {
    margin-top: 24px;
    font-size: 14px;
  }

  .nav-list--footer {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: start;
    gap: 8px 32px;
  }
}
