@charset "UTF-8";
/*! destyle.css v4.0.0 | MIT License | https://github.com/nicolas-cusan/destyle.css */
/* Reset box-model and set borders */
/* ============================================ */
*,
::before,
::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  border-style: solid;
  border-width: 0;
}

/* Document */
/* ============================================ */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 * 3. Remove gray overlay on links for iOS.
 */
html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -webkit-tap-highlight-color: transparent; /* 3*/
}

/* Sections */
/* ============================================ */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/* Vertical rhythm */
/* ============================================ */
p,
table,
blockquote,
address,
pre,
iframe,
form,
figure,
dl {
  margin: 0;
}

/* Headings */
/* ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

/* Lists (enumeration) */
/* ============================================ */
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Lists (definition) */
/* ============================================ */
dt {
  font-weight: bold;
}

dd {
  margin-left: 0;
}

/* Grouping content */
/* ============================================ */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  -webkit-box-sizing: content-box;
          box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
  border-top-width: 1px;
  margin: 0;
  clear: both;
  color: inherit;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace; /* 1 */
  font-size: inherit; /* 2 */
}

address {
  font-style: inherit;
}

/* Text-level semantics */
/* ============================================ */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
  text-decoration: none;
  color: inherit;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: inherit; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Replaced content */
/* ============================================ */
/**
 * Prevent vertical alignment issues.
 */
svg,
img,
embed,
object,
iframe {
  vertical-align: bottom;
}

/* Forms */
/* ============================================ */
/**
 * Reset form fields to make them styleable.
 * 1. Make form elements stylable across systems iOS especially.
 * 2. Inherit text-transform from parent.
 */
button,
input,
optgroup,
select,
textarea {
  -webkit-appearance: none; /* 1 */
  -moz-appearance: none;
       appearance: none;
  vertical-align: middle;
  color: inherit;
  font: inherit;
  background: transparent;
  padding: 0;
  margin: 0;
  border-radius: 0;
  text-align: inherit;
  text-transform: inherit; /* 2 */
}

/**
 * Correct cursors for clickable elements.
 */
button,
[type=button],
[type=reset],
[type=submit] {
  cursor: pointer;
}

button:disabled,
[type=button]:disabled,
[type=reset]:disabled,
[type=submit]:disabled {
  cursor: default;
}

/**
 * Improve outlines for Firefox and unify style with input elements & buttons.
 */
:-moz-focusring {
  outline: auto;
}

select:disabled {
  opacity: inherit;
}

/**
 * Remove padding
 */
option {
  padding: 0;
}

/**
 * Reset to invisible
 */
fieldset {
  margin: 0;
  padding: 0;
  min-width: 0;
}

legend {
  padding: 0;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * Correct the outline style in Safari.
 */
[type=search] {
  outline-offset: -2px; /* 1 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Fix font inheritance.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/**
 * Fix appearance for Firefox
 */
[type=number] {
  -webkit-appearance: textfield;
          appearance: textfield;
  -moz-appearance: textfield;
}

/**
 * Clickable labels
 */
label[for] {
  cursor: pointer;
}

/* Interactive */
/* ============================================ */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/*
 * Remove outline for editable content.
 */
[contenteditable]:focus {
  outline: auto;
}

/* Tables */
/* ============================================ */
/**
1. Correct table border color inheritance in all Chrome and Safari.
*/
table {
  border-color: inherit; /* 1 */
  border-collapse: collapse;
}

caption {
  text-align: left;
}

td,
th {
  vertical-align: top;
  padding: 0;
}

th {
  text-align: left;
  font-weight: bold;
}

:root {
  --color-bg: #f7f7f5;
  --color-text: #1f1f1f;
  --color-selecttext: #6fb92c;
  --color-subtle: #666;
  --color-line: #d9d9d9;
  --color-card: #ffffff;
  --color-overlay: rgba(0, 0, 0, 0.72);
  --color-bg-muted: #e9e9e9;
  --header-max-width: 1200px;
  --content-max-width: 1200px;
  --card-width: 280px;
  --card-height: 440px;
  --card-media-height: 340px;
  --card-gap: 40px;
  --radius-card: 14px;
  --radius-modal: 16px;
  --radius-book-stage: 12px;
  --radius-book-btn: 10px;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-modal: 0 20px 50px rgba(0, 0, 0, 0.18);
  --shadow-book-image: 0 18px 40px rgba(0, 0, 0, 0.22);
  --shadow-book-stage: 0 12px 30px rgba(0, 0, 0, 0.12);
  --font-label: 10px;
  --font-title: 13px;
  --font-client: 11px;
  --font-modal-title: 16px;
  --font-modal-close: 28px;
  --font-book-note: 12px;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
}

html {
  color-scheme: light;
  scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}
body {
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-header__logo-button:focus-visible,
.site-header__filter:focus-visible,
.work-card__button:focus-visible,
.modal__close:focus-visible,
.back-to-top:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 247, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0;
  min-height: 100px;
  -webkit-box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
          box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  isolation: isolate;
}

.site-header__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.site-header__bg-image {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 180px auto;
  opacity: 0;
  -webkit-transition: opacity 2.4s ease-in-out;
  transition: opacity 2.4s ease-in-out;
  will-change: opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  background-clip: padding-box;
  background-origin: padding-box;
  -webkit-backface-visibility: hidden;
}

.site-header__bg-image--a {
  background-image: url("../images/header/header-01.webp");
  opacity: 0.92;
}

.site-header__bg-image--b {
  background-image: url("../images/header/header-02.webp");
}

.site-header__inner {
  position: relative;
  z-index: 1;
  max-width: var(--header-max-width);
  margin: 0 auto;
  padding: 16px;
}

.site-header__logo {
  margin: 0 0 6px;
}

.site-header__logo-button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--color-text);
}

.site-header__logo-image {
  width: 80%;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
}

.site-header__nav-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 8px 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  min-height: 32px;
}

.site-header__filter {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 0;
  background: transparent;
  color: var(--color-subtle);
  cursor: pointer;
  padding: 2px 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header__filter-count {
  font-size: 9px;
  font-weight: 700;
  color: var(--color-selecttext);
}

.site-header__filter.is-active {
  color: var(--color-selecttext);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .site-header__bg-image {
    -webkit-transition: none;
    transition: none;
  }
}
.works {
  padding: 32px 16px 56px;
}

.works__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.works__status {
  margin: 0 0 var(--space-24);
  color: var(--color-subtle);
  font-size: var(--font-label);
  -webkit-transform: translateY(-20px);
          transform: translateY(-20px);
}

.works__grid {
  display: grid;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: var(--card-gap);
  grid-template-columns: repeat(1, var(--card-width));
  opacity: 1;
  -webkit-transform: translateY(0);
          transform: translateY(0);
}

.works__grid--filter-in {
  opacity: 1;
  -webkit-transition: opacity 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  transition: opacity 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card {
  width: var(--card-width);
  min-height: var(--card-height);
  background: var(--color-card);
  border-radius: var(--radius-card);
  -webkit-box-shadow: var(--shadow-card);
          box-shadow: var(--shadow-card);
  overflow: visible;
  position: relative;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-transition: none;
  transition: none;
  background-origin: border-box;
}

.work-card__button {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  width: 100%;
  min-height: var(--card-height);
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.work-card--has-bg .work-card__button {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
}
.work-card--has-bg .work-card__content {
  position: relative;
  z-index: 1;
}

.work-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: inherit;
  -webkit-transform: scale(1.02);
          transform: scale(1.02);
  -webkit-transition: -webkit-transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition: -webkit-transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), -webkit-transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  z-index: 0;
}

.work-card--has-bg .work-card__media--thumb {
  display: none;
}

.work-card__media {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 100%;
  height: var(--card-media-height);
  padding-inline: 20px;
  padding-block: 20px;
}

.work-card__media-image.work-card__media-image--bordered {
  width: auto;
  outline: 1px solid var(--color-line);
}

.work-card__media-image {
  width: 100%;
  max-width: 260px;
  max-height: 100%;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
}

.work-card__content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  padding: 0 var(--space-24) var(--space-24);
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: center;
  width: 100%;
}

.work-card--has-bg .work-card__content {
  width: 100%;
  min-height: calc(var(--card-height) - 300px);
  margin-top: auto;
  padding: var(--card-media-height) 24px 24px;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
}

@media (hover: hover) and (pointer: fine) {
  .work-card--has-bg:hover .work-card__bg {
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .work-card__bg {
    -webkit-transition: none;
    transition: none;
  }
  .work-card__new {
    -webkit-animation: none;
            animation: none;
  }
  .works__grid--filter-in {
    -webkit-transition: none;
    transition: none;
  }
}
.work-card__label {
  position: absolute;
  top: -16px;
  left: 50%;
  z-index: 1;
  margin: 0;
  padding: 4px 10px;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  font-size: var(--font-label);
  letter-spacing: 0.8em;
  text-transform: uppercase;
  color: var(--color-subtle);
}

.work-card__new {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  margin: 0;
  padding: 0;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
  background: transparent;
  display: inline-block;
  -webkit-animation: workCardNewPulse 3.6s ease-in-out infinite;
          animation: workCardNewPulse 3.6s ease-in-out infinite;
}

.work-card__new::before {
  content: "／";
  display: inline-block;
  -webkit-transform: scaleX(-1);
          transform: scaleX(-1);
  margin-right: 0.2em;
}

.work-card__new::after {
  content: "／";
  margin-left: 0.2em;
}

@-webkit-keyframes workCardNewPulse {
  0% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  50% {
    -webkit-transform: scale(0.75);
            transform: scale(0.75);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

@keyframes workCardNewPulse {
  0% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  50% {
    -webkit-transform: scale(0.75);
            transform: scale(0.75);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
.work-card__title {
  margin: 0;
  font-size: var(--font-title);
  font-weight: 500;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 3em;
}

.work-card__client {
  margin: 8px 0 0;
  font-size: var(--font-client);
  line-height: 1.4;
  color: var(--color-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.works__empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 0;
  color: var(--color-subtle);
  font-size: 13px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  width: min(92vw, 1100px);
  height: min(88vh, 900px);
  margin: 6vh auto;
  background: #f0f0f0;
  border-radius: var(--radius-modal);
  -webkit-box-shadow: var(--shadow-modal);
          box-shadow: var(--shadow-modal);
  overflow: hidden;
}

.modal__header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: var(--space-16);
  padding: var(--space-16) var(--space-20);
  border-bottom: 1px solid var(--color-line);
  background: var(--color-card);
}

.modal__title {
  margin: 0;
  font-size: var(--font-modal-title);
  line-height: 1.4;
}

.modal__client {
  margin: 4px 0 0;
  font-size: var(--font-client);
  color: var(--color-subtle);
}

.modal__close {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-modal-close);
  line-height: 1;
}

.modal__body {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow: auto;
  padding: var(--space-20);
  -webkit-overflow-scrolling: touch;
}

.modal__image-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.modal__image {
  width: auto;
  max-width: 100%;
  height: auto;
}

.modal--image .modal__body {
  display: grid;
  place-items: center;
}

.modal--image .modal__image-wrap {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.modal--book-image .modal__image {
  display: block;
  width: min(100%, 760px);
  max-width: 100%;
  max-height: calc(88vh - 120px);
  margin-inline: auto;
  -o-object-fit: contain;
     object-fit: contain;
  -webkit-filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.3));
          filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.3));
}

.modal--book-image .modal__body {
  background: transparent;
}

.modal--book-image .modal__image-wrap {
  padding: var(--space-24);
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.modal__iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 70vh;
}

.modal__iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--color-card);
}

.modal--book-flip .modal__body {
  display: grid;
  place-items: center;
  gap: var(--space-12);
}

.modal__book-flip {
  display: grid;
  gap: var(--space-12);
  width: 100%;
}

.modal__book-shell {
  width: 100%;
  max-width: 100%;
  height: min(70vh, 720px);
  aspect-ratio: 1220/920;
}

.modal__book-stage {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-book-stage);
  background: var(--color-card);
  -webkit-box-shadow: var(--shadow-book-stage);
          box-shadow: var(--shadow-book-stage);
  overflow: hidden;
  -ms-touch-action: none;
      touch-action: none;
  cursor: -webkit-grab;
  cursor: grab;
  -moz-user-select: none;
   -ms-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  -webkit-filter: saturate(1.02) contrast(0.985);
          filter: saturate(1.02) contrast(0.985);
}

.modal__book-stage:active {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

.modal__book-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

.modal__book-note {
  margin: 0;
  text-align: center;
  font-size: var(--font-book-note);
}

.modal__book-controls {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  gap: var(--space-12);
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
}

.modal__book-button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 0;
  background: var(--color-card);
  border-radius: var(--radius-book-btn);
  padding: var(--space-4) 10px;
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
}

.modal__book-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.modal__book-button:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

.modal__book-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: var(--space-24);
  text-align: center;
}

.body--modal-open {
  overflow: hidden;
}

/* ===== Modal motion ===== */
.modal {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  -webkit-transition: opacity 0.28s ease, visibility 0.28s ease;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal__overlay {
  opacity: 0;
  -webkit-transition: opacity 0.28s ease;
  transition: opacity 0.28s ease;
}

.modal.is-open .modal__overlay {
  opacity: 1;
}

.modal__dialog {
  opacity: 0;
  -webkit-transform: translateY(30px) scale(0.9);
          transform: translateY(30px) scale(0.9);
  -webkit-transition: opacity 1.48s ease, -webkit-transform 1.48s cubic-bezier(0.22, 1, 0.36, 1);
  transition: opacity 1.48s ease, -webkit-transform 1.48s cubic-bezier(0.22, 1, 0.36, 1);
  transition: opacity 1.48s ease, transform 1.48s cubic-bezier(0.22, 1, 0.36, 1);
  transition: opacity 1.48s ease, transform 1.48s cubic-bezier(0.22, 1, 0.36, 1), -webkit-transform 1.48s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.modal.is-open .modal__dialog {
  opacity: 1;
  -webkit-transform: translateY(0) scale(1);
          transform: translateY(0) scale(1);
}

@media (max-width: 767px) {
  .modal--image .modal__image {
    width: 100%;
  }
  .modal__book-shell {
    height: min(58vh, 520px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .modal,
  .modal__overlay,
  .modal__dialog {
    -webkit-transition: none;
    transition: none;
  }
  .modal__dialog {
    -webkit-transform: none;
            transform: none;
  }
}
.site-footer {
  margin-top: var(--space-40);
  padding: var(--space-24) var(--space-16);
  border-top: 1px solid var(--color-line);
  background: var(--color-bg);
}

.site-footer__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--space-12);
}

.site-footer__links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--space-20);
}

.site-footer__label {
  font-size: 11px;
  color: var(--color-subtle);
  letter-spacing: 0.1em;
}

.site-footer__mail {
  font-size: 12px;
  color: var(--color-subtle);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.site-footer__mail:hover {
  color: var(--color-text);
}

.site-footer__instagram {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  color: var(--color-subtle);
  -webkit-transition: color 0.2s ease;
  transition: color 0.2s ease;
}
.site-footer__instagram:hover {
  color: var(--color-text);
}
.site-footer__instagram svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer__copy {
  font-size: 11px;
  color: var(--color-subtle);
  letter-spacing: 0.06em;
}

.back-to-top {
  position: fixed;
  bottom: var(--space-32);
  right: var(--space-24);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--color-selecttext);
  -webkit-box-shadow: 0 4px 12px rgba(111, 185, 44, 0.4);
          box-shadow: 0 4px 12px rgba(111, 185, 44, 0.4);
  cursor: pointer;
  opacity: 0;
  -webkit-transform: translateY(10px);
          transform: translateY(10px);
  -webkit-transition: opacity 0.3s ease, background 0.2s ease, -webkit-transform 0.3s ease;
  transition: opacity 0.3s ease, background 0.2s ease, -webkit-transform 0.3s ease;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, -webkit-transform 0.3s ease;
  pointer-events: none;
}
.back-to-top.is-visible {
  opacity: 1;
  -webkit-transform: translateY(0);
          transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: color-mix(in srgb, var(--color-selecttext) 80%, #000);
}

.back-to-top__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    -webkit-transition: none;
    transition: none;
  }
}
.opening {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #e8e8e8;
  overflow: hidden;
  -webkit-transition: opacity 0.8s ease;
  transition: opacity 0.8s ease;
}
.opening.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.opening__covers {
  position: absolute;
  inset: 0;
  -webkit-transition: opacity 0.6s ease;
  transition: opacity 0.6s ease;
}
.opening__covers.is-out {
  opacity: 0;
}

.opening__cover-wrap {
  position: absolute;
  -webkit-transform-origin: center;
          transform-origin: center;
}

.opening__cover {
  display: block;
  width: 360px;
  height: auto;
  border-radius: 4px;
  -webkit-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
          box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  opacity: 0;
  -webkit-transform: translateY(80px);
          transform: translateY(80px);
  -webkit-animation: opening-cover-in 0.7s cubic-bezier(0.34, 1.3, 0.64, 1) forwards;
          animation: opening-cover-in 0.7s cubic-bezier(0.34, 1.3, 0.64, 1) forwards;
}

@-webkit-keyframes opening-cover-in {
  from {
    opacity: 0;
    -webkit-transform: translateY(80px);
            transform: translateY(80px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

@keyframes opening-cover-in {
  from {
    opacity: 0;
    -webkit-transform: translateY(80px);
            transform: translateY(80px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
.opening__logo {
  position: absolute;
  inset: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  z-index: 2;
  opacity: 0;
  -webkit-transform: scale(0.9);
          transform: scale(0.9);
  -webkit-transition: opacity 1s ease, -webkit-transform 1s ease;
  transition: opacity 1s ease, -webkit-transform 1s ease;
  transition: opacity 1s ease, transform 1s ease;
  transition: opacity 1s ease, transform 1s ease, -webkit-transform 1s ease;
}
.opening__logo.is-visible {
  opacity: 1;
  -webkit-transform: scale(1);
          transform: scale(1);
}
.opening__logo img {
  width: 220px;
  max-width: 55vw;
}

@media (min-width: 768px) {
  .site-header__inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    min-height: 110px;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    gap: 24px;
  }
  .site-header__logo {
    margin: 0;
    -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;
  }
  .site-header__nav {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 auto;
            flex: 1 1 auto;
  }
  .works__status {
    width: 260px;
    margin-left: auto;
    text-align: center;
    -webkit-transform: translateY(-25px);
            transform: translateY(-25px);
  }
  .site-header__nav-list {
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
    gap: 12px 20px;
  }
  .works {
    padding-top: 40px;
  }
  .works__grid {
    grid-template-columns: repeat(2, var(--card-width));
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .site-header__nav-list {
    display: grid;
    grid-template-columns: repeat(3, auto);
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: end;
    gap: 4px 12px;
  }
}
@media (min-width: 1024px) {
  .works__grid {
    grid-template-columns: repeat(3, var(--card-width));
  }
}
@media (min-width: 1280px) {
  .works__grid {
    grid-template-columns: repeat(4, var(--card-width));
  }
}
/*
  Safari / iOS メモ
  - position: sticky は親要素に overflow があると効かないことがあります
  - backdrop-filter は古い環境で差が出るため背景色も併用
  - モーダル内スクロールは -webkit-overflow-scrolling: touch を使用
*/
@media (max-width: 767px) {
  .modal__dialog {
    width: min(92vw, 560px);
    height: auto;
    max-height: 88vh;
    margin: 4vh auto;
  }
  .site-header__nav-list {
    display: grid;
    grid-template-columns: repeat(3, auto);
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: start;
    gap: 0 8px;
  }
  .site-header__filter {
    padding: 0;
  }
  .modal__body {
    padding: 16px;
  }
  .modal__iframe-wrap {
    max-height: none;
  }
  .site-header__bg-image {
    background-position: calc(100% - 4px) bottom;
    background-size: 100px auto;
  }
  .site-header__inner {
    padding-bottom: 4px;
  }
  .works__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 12px;
  }
  .work-card {
    width: 100%;
    min-height: auto;
    aspect-ratio: 3/4;
    overflow: visible;
  }
  .work-card__button {
    overflow: hidden;
  }
  .work-card__button {
    height: 100%;
    min-height: unset;
  }
  .work-card__content {
    display: none;
  }
  .work-card__media {
    height: 100%;
    padding: 12px;
  }
  .work-card--has-bg .work-card__bg {
    display: none;
  }
  .work-card--has-bg .work-card__media--thumb {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 100%;
    padding: 0;
  }
  .work-card--has-bg .work-card__media--thumb .work-card__media-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center center;
       object-position: center center;
  }
  .work-card[data-category=book] .work-card__media--thumb .work-card__media-image,
  .work-card[data-category=magazine] .work-card__media--thumb .work-card__media-image {
    -o-object-position: center 0%;
       object-position: center 0%;
  }
}