@charset "utf-8";
/* Foundation：基本設定 */
:root {
  --motion-duration: 150ms;
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-40: 40px;
  --sp-60: 60px;
  --sp-88: 88px;

  --fz-xs: 12px;
  --fz-s: 14px;
  --fz-m: 16px;
  --fz-l: 20px;
  --fz-h3: 20px;
  --fz-h2: 25px;
  --fz-xl: 25px;
  --fz-num: 29px;

  --gutter: 22px;
  --section-gap: var(--sp-60);
  --block-gap: var(--sp-60);
}

@media (min-width: 768px) {
  :root {
    --gutter: 28px;
  }
}

@media (min-width: 1024px) {
  :root {
    --fz-h3: 25px;
    --fz-h2: 29px;
    --fz-xl: 38px;
    --fz-num: 38px;
    --section-gap: var(--sp-88);
    --block-gap: var(--sp-88);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--sp-24);
}

body {
  margin: 0;
  background: var(--hm-bg);
  color: var(--hm-text);
  font-family: var(--hm-font-sans);
  font-size: var(--fz-m);
  line-height: 1.85;
  line-break: strict;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

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

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

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
}

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

strong {
  font-weight: 700;
}

h1,
h2,
h3 {
  text-spacing-trim: trim-start;
}

:focus-visible {
  outline: 2px solid var(--hm-text);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  :root { --motion-duration: 0s; }
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0s;
    animation: none;
  }
}

small { font-size: inherit; }
html [hidden] { display: none; }

/* Layout：ページの骨格 */
.l-inner {
  width: 100%;
  max-width: calc(1200px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.l-header {
  border-bottom: 1px solid var(--hm-line);
}

.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-16);
  min-height: 64px;
}

.l-footer {
  padding-block: var(--sp-32);
}

.l-footer--rule {
  margin-top: var(--section-gap);
  border-top: 1px solid var(--hm-line);
}

/* スマホは名前・標語・著作権表示を中央で縦に並べ、768px以上は標語を中央、名前を左、著作権表示を右に置く */
.l-footer__inner {
  display: grid;
  justify-items: center;
  gap: var(--sp-8);
}

@media (min-width: 768px) {
  .l-footer__inner {
    grid-template-columns: 1fr auto 1fr;
    align-items: baseline;
    justify-items: start;
    gap: var(--sp-24);
  }

  .l-footer__inner > .c-copyright {
    justify-self: end;
  }
}

.l-header__inner { flex-wrap: wrap; }

/* Component：共通部品 */
.c-skip-link {
  position: absolute;
  top: -200px;
  left: var(--sp-16);
  z-index: 10;
  padding: var(--sp-8) var(--sp-16);
  background: var(--hm-text);
  color: var(--hm-surface);
  border-radius: var(--hm-radius);
}

.c-skip-link:focus {
  top: var(--sp-8);
}

.c-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
}

.c-nav__list {
  display: flex;
  gap: var(--sp-4);
}

.c-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: var(--sp-8);
  font-size: var(--fz-s);
  text-decoration: none;
  white-space: nowrap;
}

.c-nav__link:hover {
  text-decoration: underline;
}

.c-nav__link[aria-current] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .55em;
}

@media (min-width: 768px) {
  .c-nav__list {
    gap: var(--sp-16);
  }
}

/* 名前と標語をフッターの格子に直接並べるため、自身の枠は作らない */
.c-signature {
  display: contents;
  font-size: var(--fz-s);
  white-space: nowrap;
}

.c-signature__name {
  font-weight: 600;
  letter-spacing: .06em;
}

.c-copyright {
  font-size: var(--fz-xs);
  color: var(--hm-muted);
}

.c-link-more {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  min-height: 44px;
  font-size: var(--fz-s);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .45em;
  white-space: nowrap;
}

.c-link-more:hover {
  text-decoration-thickness: 2px;
}

.c-link-more__arrow {
  transition: transform var(--motion-duration);
}

.c-link-more:hover .c-link-more__arrow {
  transform: translateX(3px);
}

.c-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--hm-text);
  border-radius: var(--hm-radius);
  font-size: var(--fz-s);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--motion-duration), border-color var(--motion-duration);
}

.c-button--primary {
  background: var(--hm-text);
  color: var(--hm-surface);
}

.c-button--primary:hover {
  background: var(--hm-muted);
}

.c-button--secondary {
  background: var(--hm-surface);
  border-color: var(--hm-control-line);
  color: var(--hm-text);
}

.c-button--secondary:hover {
  border-color: var(--hm-text);
}

.c-button:active {
  transform: translateY(1px);
}

.c-button[data-state="done"] {
  border-color: var(--hm-text);
}

.c-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 var(--sp-8);
  border: 1px solid var(--hm-control-line);
  border-radius: var(--hm-radius-sm);
  font-size: var(--fz-xs);
  line-height: 1;
  letter-spacing: .08em;
}

.c-content-image {
  width: 100%;
  border-radius: var(--hm-radius);
}

.c-placeholder {
  position: relative;
  display: grid;
  place-content: center;
  gap: var(--sp-8);
  padding: var(--sp-32) var(--sp-24);
  background: var(--hm-panel);
  border-radius: var(--hm-radius);
  color: var(--hm-muted);
  text-align: center;
}

.c-placeholder::before {
  content: "";
  position: absolute;
  inset: var(--sp-12);
  border: 1px dashed var(--hm-control-line);
  border-radius: var(--hm-radius-sm);
  pointer-events: none;
}

.c-placeholder__title {
  font-size: var(--fz-s);
  font-weight: 600;
  color: var(--hm-text);
}

.c-placeholder__spec {
  font-family: var(--hm-font-mono);
  font-size: var(--fz-xs);
}

.c-placeholder__use {
  max-width: 30em;
  margin-inline: auto;
  font-size: var(--fz-xs);
  line-height: 1.7;
}

.c-placeholder--16x9 {
  aspect-ratio: 16 / 9;
}

.c-placeholder--16x10 {
  aspect-ratio: 16 / 10;
}

.c-placeholder--5x3 {
  aspect-ratio: 5 / 3;
}

.c-placeholder--13x9 {
  aspect-ratio: 13 / 9;
}

@media (max-width: 767px) {
  .c-placeholder--diagram {
    aspect-ratio: 4 / 5;
  }
}

.c-stage {
  padding: var(--sp-16);
  background: var(--hm-panel);
  border-radius: var(--hm-radius);
}

@media (min-width: 768px) {
  .c-stage {
    padding: var(--sp-24);
  }
}

.c-shots {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
  "pc pc"
  "sp cap";
  gap: var(--sp-16);
  align-items: start;
}

.c-shots img {
  width: 100%;
  background: var(--hm-surface);
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-sm);
}

.c-shots__pc {
  grid-area: pc;
}

.c-shots__sp {
  grid-area: sp;
}

.c-shots__cap {
  grid-area: cap;
  align-self: end;
  font-size: var(--fz-s);
  line-height: 1.7;
}

.c-shots--3 {
  grid-template-areas:
  "top top"
  "game game"
  "sp cap";
}

.c-shots__top {
  grid-area: top;
}

.c-shots__game {
  grid-area: game;
}

@media (min-width: 768px) {
  .c-shots {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, .462fr);
    grid-template-areas:
    "pc sp"
    "cap cap";
    align-items: end;
  }
  .c-shots--3 {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.6fr) minmax(0, .462fr);
    grid-template-areas:
    "top game sp"
    "cap cap cap";
  }
  .c-shots__cap {
    max-width: 52em;
  }
}

.c-section {
  margin-top: var(--section-gap);
}

.c-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-8) var(--sp-24);
  margin-bottom: var(--sp-32);
  padding-top: var(--sp-24);
  border-top: 1px solid var(--hm-text);
}

.c-section-title {
  font-size: var(--fz-h2);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .06em;
}

.c-section-title__en {
  margin-left: var(--sp-12);
  font-size: var(--fz-s);
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--hm-muted);
}

.c-section-note {
  margin-top: var(--sp-4);
  font-size: var(--fz-s);
  line-height: 1.7;
  color: var(--hm-muted);
}

.c-section-foot {
  margin-top: var(--sp-40);
}

@media (min-width: 1024px) {
  .c-section--side .c-section-body {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    column-gap: var(--sp-40);
    padding-top: var(--sp-24);
    border-top: 1px solid var(--hm-text);
  }
  .c-section--side .c-section-head {
    display: block;
    align-self: start;
    margin-bottom: 0;
    padding-top: 0;
    border-top: 0;
  }
  .c-section--side .c-section-head .c-link-more {
    margin-top: var(--sp-12);
  }
}

.c-page-head {
  padding-top: var(--sp-8);
}

.c-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: var(--fz-xs);
  color: var(--hm-muted);
}

.c-breadcrumb__item + .c-breadcrumb__item::before {
  content: "／";
  margin-inline: var(--sp-4);
}

.c-breadcrumb__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.c-page-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: var(--sp-16);
  margin-top: var(--sp-16);
  font-size: var(--fz-xl);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .06em;
}

.c-page-title__en {
  font-size: var(--fz-s);
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--hm-muted);
}

.c-page-lead {
  max-width: 34em;
  margin-top: var(--sp-24);
  font-size: var(--fz-l);
  line-height: 1.7;
  word-break: auto-phrase;
}

.c-toc {
  margin-top: var(--sp-24);
}

.c-toc__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--sp-24);
}

.c-toc__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-size: var(--fz-s);
  text-decoration: underline;
  text-underline-offset: .45em;
}

.c-field__label {
  display: block;
  margin-bottom: var(--sp-8);
  font-size: var(--fz-s);
  font-weight: 600;
}

.c-field__control {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.c-input {
  width: 100%;
  height: 48px;
  padding: 0 var(--sp-12);
  background: var(--hm-surface);
  border: 1px solid var(--hm-control-line);
  border-radius: var(--hm-radius-sm);
  font-size: var(--fz-m);
  font-variant-numeric: tabular-nums;
}

.c-input--num {
  max-width: 12em;
}

.c-input:hover {
  border-color: var(--hm-text);
}

.c-input:focus-visible {
  outline-offset: 2px;
}

.c-field__unit {
  font-size: var(--fz-s);
  color: var(--hm-muted);
  white-space: nowrap;
}

.c-field__help {
  margin-top: var(--sp-8);
  font-size: var(--fz-xs);
  line-height: 1.7;
  color: var(--hm-muted);
}

.c-copy-status { min-height: 1.85em; margin-top: var(--sp-12); font-size: var(--fz-s); }
.c-placeholder__title { font-size: var(--fz-s); font-weight: 400; }
.c-button:disabled { color: var(--hm-muted); cursor: default; }
.c-input[aria-invalid="true"] { border-width: 2px; }
.c-input-error { margin-top: var(--sp-12); font-size: var(--fz-s); }
.c-nav { min-width: 0; }
.c-button, .c-link-more { min-width: 44px; }


/* Project：各画面の構成 */
.p-hero__role,
.p-hero__sub,
.p-stat__desc,
.c-shots__cap,
.c-placeholder__use,
.p-split__title,
.p-strength__title,
.p-tool-row__name,
.p-tool-row__desc,
.p-career-lead,
.p-contact__lead,
.c-page-lead,
.p-tools-lead,
.p-case-detail__title,
.p-case-item__text,
.c-section-note,
.p-work__title,
.p-timeline__role,
.c-field__help {
  word-break: auto-phrase;
}

.p-split__text strong,
.p-step dd strong {
  white-space: nowrap;
}

.p-hero {
  padding-block: var(--sp-60) var(--sp-40);
}

.p-hero__role {
  font-size: var(--fz-s);
  line-height: 1.7;
  color: var(--hm-muted);
}

.p-hero__name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: var(--sp-16);
  margin-top: var(--sp-8);
  font-size: var(--fz-h2);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .06em;
}

.p-hero__name-en {
  font-size: var(--fz-s);
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--hm-muted);
}

.p-hero__lead {
  max-width: 26em;
  margin-top: var(--sp-32);
  font-size: var(--fz-xl);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: .02em;
  word-break: auto-phrase;
  text-wrap: balance;
}

.p-hero__sub {
  max-width: 35em;
  margin-top: var(--sp-24);
}

@media (min-width: 1024px) {
  .p-hero {
    padding-block: var(--sp-88) var(--sp-60);
  }
}

.p-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-32);
}

.p-stat {
  padding-top: var(--sp-16);
  border-top: 1px solid var(--hm-text);
}

.p-stat__value {
  font-size: var(--fz-num);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.p-stat__unit {
  margin-left: .08em;
  font-size: var(--fz-l);
  font-weight: 600;
  letter-spacing: .04em;
}

.p-stat__arrow {
  margin-inline: .15em;
  font-size: var(--fz-l);
  color: var(--hm-muted);
  vertical-align: .12em;
}

.p-stat__tag {
  margin-top: var(--sp-12);
}

.p-stat__desc {
  margin-top: var(--sp-8);
  font-size: var(--fz-s);
  line-height: 1.7;
  color: var(--hm-muted);
}

@media (min-width: 768px) {
  .p-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.p-split-list {
  display: grid;
  gap: var(--block-gap);
}

.p-split {
  display: grid;
  gap: var(--sp-24);
  align-items: center;
}

.p-split__label {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-16);
  font-size: var(--fz-s);
  color: var(--hm-muted);
}

.p-split__title {
  margin-top: var(--sp-8);
  font-size: var(--fz-h3);
  font-weight: 600;
  line-height: 1.5;
  word-break: auto-phrase;
}

.p-split__en {
  display: block;
  font-size: var(--fz-xs);
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--hm-muted);
}

.p-split__text {
  margin-top: var(--sp-16);
}

.p-split__more {
  margin-top: var(--sp-16);
}

@media (min-width: 1024px) {
  .p-split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: var(--sp-40);
  }
  .p-split--reverse {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .p-split--reverse .p-split__media {
    order: 2;
  }
}

.p-strengths {
  border-bottom: 1px solid var(--hm-line);
}

.p-strength {
  display: grid;
  grid-template-columns: 2em minmax(0, 1fr);
  column-gap: var(--sp-8);
  padding-block: var(--sp-32);
  border-top: 1px solid var(--hm-line);
}

.p-strength:first-child {
  padding-top: 0;
  border-top: 0;
}

.p-strength__no {
  font-size: var(--fz-s);
  line-height: 2.2;
  color: var(--hm-muted);
  font-variant-numeric: tabular-nums;
}

.p-strength__title {
  font-size: var(--fz-h3);
  font-weight: 600;
  line-height: 1.5;
}

.p-strength__text {
  max-width: 40em;
  margin-top: var(--sp-12);
}

.p-tools-lead {
  max-width: 34em;
  margin-bottom: var(--sp-24);
  font-size: var(--fz-l);
  line-height: 1.7;
  word-break: auto-phrase;
}

.p-tool-list {
  border-bottom: 1px solid var(--hm-line);
}

.p-tool-row {
  display: grid;
  gap: var(--sp-8) var(--sp-32);
  padding-block: var(--sp-24);
  border-top: 1px solid var(--hm-line);
}

.p-tool-row__name {
  font-size: var(--fz-l);
  font-weight: 600;
  line-height: 1.5;
}

.p-tool-row__en {
  display: block;
  font-size: var(--fz-xs);
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--hm-muted);
}

@media (min-width: 1024px) {
  .p-tool-row {
    grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr);
    align-items: start;
  }
  .p-tool-row__link {
    justify-self: end;
    margin-top: -6px;
  }
}

.p-skill-group {
  display: grid;
  gap: var(--sp-8) var(--sp-32);
  padding-block: var(--sp-24);
  border-top: 1px solid var(--hm-line);
}

.p-skill-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.p-skill-group__title {
  font-size: var(--fz-m);
  font-weight: 600;
}

.p-skill-list {
  display: grid;
  gap: var(--sp-12);
}

.p-skill {
  display: grid;
  gap: 0 var(--sp-24);
}

.p-skill dd {
  color: var(--hm-muted);
}

@media (min-width: 768px) {
  .p-skill-group {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  }
  .p-skill {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--sp-24);
  }
}

.p-career-lead {
  max-width: 30em;
  font-size: var(--fz-l);
  font-weight: 600;
  line-height: 1.7;
  word-break: auto-phrase;
}

.p-timeline {
  margin-top: var(--sp-32);
  border-bottom: 1px solid var(--hm-line);
}

.p-timeline__item {
  display: grid;
  gap: var(--sp-4) var(--sp-32);
  padding-block: var(--sp-16);
  border-top: 1px solid var(--hm-line);
}

.p-timeline__period {
  font-size: var(--fz-s);
  line-height: 1.85;
  color: var(--hm-muted);
  font-variant-numeric: tabular-nums;
}

.p-timeline__org {
  font-weight: 600;
}

@media (min-width: 768px) {
  .p-timeline__item {
    grid-template-columns: 13em minmax(0, 1fr);
  }
  .p-timeline__period {
    padding-top: 1px;
  }
}

.p-contact {
  margin-top: var(--section-gap);
  padding-block: var(--sp-60);
  background: var(--hm-panel);
}

.p-contact__lead {
  font-size: var(--fz-l);
  line-height: 1.7;
}

.p-mail {
  margin-top: var(--sp-24);
  font-size: var(--fz-l);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .p-mail {
    font-size: var(--fz-h2);
  }
}

.p-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-12);
  margin-top: var(--sp-24);
}

@media (min-width: 1024px) {
  .p-contact {
    padding-block: var(--sp-88);
  }
}

.p-case-detail + .p-case-detail {
  margin-top: var(--block-gap);
  padding-top: var(--block-gap);
  border-top: 1px solid var(--hm-line);
}

.p-case-detail__title {
  margin-top: var(--sp-8);
  font-size: var(--fz-h2);
  font-weight: 600;
  line-height: 1.5;
  word-break: auto-phrase;
}

.p-case-detail__media {
  margin-top: var(--sp-24);
}

.p-steps {
  max-width: 980px;
  margin-top: var(--sp-40);
  border-bottom: 1px solid var(--hm-line);
}

.p-step {
  display: grid;
  gap: var(--sp-4) var(--sp-32);
  padding-block: var(--sp-24);
  border-top: 1px solid var(--hm-line);
}

.p-step dt {
  display: flex;
  align-items: baseline;
  gap: var(--sp-12);
  font-weight: 600;
}

.p-step__no {
  font-size: var(--fz-xs);
  font-weight: 400;
  color: var(--hm-muted);
  font-variant-numeric: tabular-nums;
}

.p-step dd {
  max-width: 40em;
}

@media (min-width: 768px) {
  .p-step {
    grid-template-columns: 10em minmax(0, 1fr);
  }
}

.p-work-list {
  border-bottom: 1px solid var(--hm-line);
}

.p-work {
  border-top: 1px solid var(--hm-line);
}

.p-work__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  column-gap: var(--sp-16);
  min-height: 44px;
  padding-block: var(--sp-16);
  cursor: pointer;
  list-style: none;
}

.p-work__summary::-webkit-details-marker {
  display: none;
}

.p-work__summary::marker {
  content: "";
}

.p-work__heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--sp-16);
}

.p-work__title {
  flex-basis: 100%;
  font-weight: 600;
}

.p-work__role,
.p-work__year {
  font-size: var(--fz-s);
  color: var(--hm-muted);
}

.p-work__year {
  font-variant-numeric: tabular-nums;
}

.p-work__summary:hover .p-work__title {
  text-decoration: underline;
  text-underline-offset: .3em;
}

.p-work__icon {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius);
}

.p-work__icon::before,
.p-work__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--motion-duration);
}

.p-work__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.p-work__details[open] .p-work__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.p-work__summary:hover .p-work__icon {
  border-color: var(--hm-text);
}

.p-work__body {
  padding-bottom: var(--sp-24);
}

.p-work__body p {
  max-width: 40em;
}

@media (min-width: 1024px) {
  .p-work__heading {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 2fr);
    align-items: baseline;
    column-gap: var(--sp-32);
  }
  .p-work__year {
    text-align: right;
  }
}

.p-work--thumb {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  column-gap: var(--sp-16);
  padding-top: var(--sp-16);
}

.p-work--thumb .p-work__summary {
  padding-top: 0;
}

.p-work__thumb {
  display: grid;
  gap: var(--sp-8);
  align-self: start;
}

.p-work__thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  background: var(--hm-panel);
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-sm);
}

@media (min-width: 768px) {
  .p-work--thumb {
    grid-template-columns: 240px minmax(0, 1fr);
    column-gap: var(--sp-32);
    padding-block: var(--sp-24);
  }
  .p-work__thumb--2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (min-width: 1024px) {
  .p-work--thumb .p-work__heading {
    grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 2fr);
  }
}

.p-gallery-group + .p-gallery-group {
  margin-top: var(--sp-32);
}

.p-gallery-group__title {
  margin-bottom: var(--sp-12);
  font-size: var(--fz-s);
  font-weight: 600;
}

.p-case-list {
  display: grid;
  gap: var(--sp-40);
}

.p-case-item__title {
  margin-top: var(--sp-16);
  font-size: var(--fz-l);
  font-weight: 600;
  line-height: 1.5;
}

.p-case-item__text {
  margin-top: var(--sp-8);
  max-width: 34em;
}

@media (min-width: 768px) {
  .p-case-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-40);
  }
}

.p-calc {
  display: grid;
  gap: var(--sp-24);
  margin-top: var(--sp-40);
}

.p-calc__fields {
  display: grid;
  gap: var(--sp-24);
}

.p-calc__result {
  padding: var(--sp-24);
  background: var(--hm-surface);
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius);
}

.p-calc__label {
  font-size: var(--fz-s);
  font-weight: 600;
}

.p-calc__value {
  margin-top: var(--sp-8);
  font-size: var(--fz-num);
  font-weight: 500;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.p-calc__actions {
  margin-top: var(--sp-16);
}

@media (min-width: 1024px) {
  .p-calc {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--sp-40);
    align-items: start;
  }
}

.p-gallery { display: grid; gap: var(--sp-24); }
.p-gallery--banners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.p-gallery--dm { grid-template-columns: minmax(0, 1fr); }
.p-gallery img { width: 100%; border-radius: var(--hm-radius-sm); }
@media (min-width: 768px) {
  .p-gallery--banners { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .p-gallery--dm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Utility：補助 */
.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* コピー後にフォーカスと選択範囲を戻すための一時領域 */
.u-copy-buffer { position: fixed; inset: 0 auto auto -9999px; width: 1px; height: 1px; }
