/*
Theme Name: TD Industrial Art
Theme URI: https://td-1945.com/
Author: Studio Triangle
Description: TDテーマ。
Version: 0.1.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: td-industrial-art
*/

@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@500&display=swap");

/* 基本設定 */
:root {
  --td-black: #070709;
  --td-black-soft: #0c0c10;
  --td-white: #f2f2f3;
  --td-gray: #9b9ba5;
  --td-titanium-dark: #666673;
  --td-titanium-mid: #a7a7b1;
  --td-titanium-light: #eeeef2;
  --td-texture-opacity: 0.02;
  --td-header-height: 72px;
  --td-content-width: 1440px;
  --td-side-padding: clamp(22px, 4vw, 72px);
  --td-section-head-height: clamp(300px, 34vh, 420px);
  --td-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --td-heading-color: #d6d6dc;
  --td-copy-color: #c2c2ca;
  --td-heading-surface:
    linear-gradient(90deg, rgba(115, 112, 135, 0.035), transparent 34%, rgba(255, 255, 255, 0.012) 68%, transparent),
    repeating-linear-gradient(90deg, transparent 0 3px, rgba(255, 255, 255, 0.008) 3px 4px),
    #08080b;
  --td-body-surface:
    radial-gradient(circle at 50% 10%, rgba(112, 108, 135, 0.026), transparent 42%),
    repeating-linear-gradient(90deg, transparent 0 4px, rgba(255, 255, 255, 0.005) 4px 5px),
    #060608;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--td-header-height);
}

body {
  margin: 0;
  color: var(--td-white);
  background: var(--td-black);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  -webkit-font-smoothing: antialiased;
}

body.td-menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

::selection {
  color: #08080b;
  background: #c9c9d2;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 10000;
  width: auto;
  height: auto;
  padding: 12px;
  clip: auto;
  color: #000;
  background: #fff;
}

.td-main {
  overflow: clip;
}

.td-section,
[data-section][id] {
  scroll-margin-top: 0;
}

/* 背景質感 */
.td-surface {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 12% 5%, rgba(112, 108, 138, 0.08), transparent 42%),
    linear-gradient(112deg, rgba(255, 255, 255, 0.018), transparent 38%, rgba(125, 120, 145, 0.035) 63%, transparent),
    var(--td-black);
}

.td-surface::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: var(--td-texture-opacity);
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.42) 0, rgba(255, 255, 255, 0.42) 1px, transparent 1px, transparent 5px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.td-html-section,
.td-inquiry,
.td-objects__grid {
  background: var(--td-body-surface);
}

/* ヘッダー */
.td-site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--td-header-height);
  padding-inline: var(--td-side-padding);
  border-bottom: 1px solid transparent;
  transition: background-color 0.45s ease, backdrop-filter 0.45s ease, border-color 0.45s ease;
}

.td-site-header.is-scrolled {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(7, 7, 9, 0.72);
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
}

.td-logo {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  width: auto;
  height: auto;
  line-height: 0;
}

.td-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 24px;
  object-fit: contain;
}

.td-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 42px);
}

.td-nav a {
  position: relative;
  padding-block: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  transition: color 0.3s ease;
}

.td-nav a::after {
  content: "";
  position: absolute;
  right: 0.24em;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(215, 215, 222, 0.48) 30%, rgba(145, 145, 157, 0.27) 75%, transparent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.55s var(--td-ease);
}

.td-nav a:hover,
.td-nav a.is-current {
  color: #fff;
}

.td-nav a:hover::after,
.td-nav a.is-current::after {
  transform: scaleX(1);
  transform-origin: left;
}

.td-menu-button {
  display: none;
  padding: 10px 0 10px 10px;
  color: #fff;
  border: 0;
  background: none;
}

.td-menu-button span:not(.screen-reader-text) {
  display: block;
  width: 24px;
  height: 1px;
  margin: 6px 0;
  background: currentColor;
  transition: transform 0.35s var(--td-ease), opacity 0.25s ease;
}

/* 見出し */
.td-section-title {
  margin: 0;
  color: transparent;
  background-image: linear-gradient(105deg, #b8b8be, #c3c3c8 28%, #bcbcc2 52%, #c5c5ca 72%, #b9b9bf);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(18px, 2vw, 31px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.32em;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.025);
  text-transform: uppercase;
}

.is-visible .td-section-title {
  animation: none;
}

.td-section-head,
.td-objects__intro,
.td-inquiry__head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--td-section-head-height);
  margin: 0;
  padding: 0 var(--td-side-padding);
  border: 0;
  background: var(--td-heading-surface);
  box-shadow: none;
  text-align: center;
}

.td-section-head::after,
.td-objects__intro::after,
.td-inquiry__head::after {
  content: none;
  display: none;
}

.td-section-head::before,
.td-objects__intro::before,
.td-inquiry__head::before {
  content: "";
  position: absolute;
  top: clamp(42px, 5.5vh, 72px);
  left: 50%;
  display: block;
  width: 1px;
  height: clamp(30px, 4vh, 48px);
  pointer-events: none;
  opacity: 0.7;
  background: linear-gradient(180deg, transparent, rgba(190, 190, 200, 0.12) 18%, rgba(215, 215, 222, 0.42) 50%, rgba(190, 190, 200, 0.12) 82%, transparent);
  transform: translateX(-50%) scaleY(0);
  transform-origin: center top;
  transition: transform 1s var(--td-ease);
}

.td-html-section.td-reveal,
.td-html-section.td-reveal.is-visible,
.td-objects__intro.td-reveal,
.td-objects__intro.td-reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: none;
}

.td-section-head .td-section-title,
.td-objects__intro .td-section-title,
.td-inquiry__head .td-section-title {
  opacity: 0;
  transform: none;
  transition: opacity 1.1s ease;
}

.td-html-section.is-head-visible .td-section-title,
.td-html-section.td-reveal.is-visible .td-section-title,
.td-objects__intro.td-reveal.is-visible .td-section-title {
  opacity: 1;
}

.td-html-section.is-head-visible .td-section-head::before,
.td-html-section.is-head-visible .td-inquiry__head::before,
.td-html-section.td-reveal.is-visible .td-section-head::before,
.td-html-section.td-reveal.is-visible .td-inquiry__head::before,
.td-objects__intro.td-reveal.is-visible::before {
  transform: translateX(-50%) scaleY(1);
}

/* ファーストビュー */
.td-hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
  background: #08080b;
}

.td-hero__media,
.td-hero__media picture,
.td-hero__media img,
.td-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.td-hero__media img {
  object-fit: cover;
  object-position: center;
}

.td-hero__shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(2, 2, 4, 0.08) 45%, rgba(2, 2, 5, 0.5));
}

.td-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  align-items: center;
  width: min(100% - (var(--td-side-padding) * 2), var(--td-content-width));
  min-height: 100svh;
  padding-block: calc(var(--td-header-height) + 9vh) 8vh;
  text-align: center;
}

.td-hero__title {
  align-self: end;
  margin: 0;
  font-size: clamp(28px, 4.4vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.29em;
  text-indent: 0.29em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
  text-transform: uppercase;
}

.td-hero__lead {
  align-self: end;
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(12px, 1.15vw, 17px);
  line-height: 1.75;
  letter-spacing: 0.13em;
}

.td-hero--empty::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, #1b1a23, transparent 35%), linear-gradient(160deg, #08080b, #171621 65%, #08080b);
}

/* PHILOSOPHY */
.td-html-section {
  min-height: 75vh;
}

.td-html-section > .td-section-empty {
  max-width: var(--td-content-width);
  margin: 0 auto;
  padding: clamp(140px, 18vh, 240px) var(--td-side-padding);
  text-align: center;
}

.td-section-empty p {
  margin: 28px 0 0;
  color: var(--td-gray);
  font-size: 12px;
}

.td-philosophy__statement {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #050507;
}

.td-philosophy__statement .td-philosophy__media {
  position: relative;
  display: block;
  width: 100%;
  height: min(100vh, 58vw);
  margin: 0;
  overflow: hidden;
}

.td-philosophy__statement .td-picture,
.td-philosophy__statement img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  object-fit: cover;
  object-position: center;
}

.td-philosophy__statement::after {
  content: none;
  display: none;
}

.td-philosophy__statement .td-philosophy__copy {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  min-height: clamp(150px, 15vw, 220px);
  margin: 0;
  padding: 38px var(--td-side-padding);
  place-content: center;
  text-align: center;
  background: #050507;
}

.td-philosophy__statement .td-philosophy__copy p {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  color: var(--td-copy-color);
  font-size: clamp(15px, 1.4vw, 22px);
  line-height: 1.8;
  letter-spacing: 0.07em;
  text-align: center;
  text-shadow: none;
}

.td-philosophy__statement:nth-of-type(2) .td-philosophy__copy::before {
  content: none;
  display: none;
}

.td-philosophy__statement .td-philosophy__copy strong {
  display: block;
  width: 100%;
  margin: 0 auto;
  color: var(--td-heading-color);
  font-family: "Archivo", sans-serif;
  font-size: clamp(21px, 1.75vw, 32px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.2em;
  text-align: center;
  text-indent: 0.2em;
  text-shadow: none;
}

.td-philosophy__statement .td-philosophy__copy strong + p {
  margin-top: 20px;
}

.td-philosophy__statement.td-reveal {
  opacity: 1;
  transform: none;
}

.td-philosophy__statement.td-reveal img {
  filter: brightness(0.38) saturate(0.72) contrast(1.06);
  transform: scale(1.025);
  transition: filter 2.2s var(--td-ease), transform 3.2s var(--td-ease);
}

.td-philosophy__statement.td-reveal.is-visible img {
  filter: brightness(1) saturate(1) contrast(1);
  transform: scale(1);
}

.td-philosophy__statement.td-reveal .td-philosophy__copy {
  opacity: 0.08;
  transition: opacity 1.8s ease 0.45s;
}

.td-philosophy__statement.td-reveal.is-visible .td-philosophy__copy {
  opacity: 1;
}

.td-philosophy__statement:last-of-type.td-reveal img {
  opacity: 0.22;
  filter: grayscale(0.82) saturate(0.42) brightness(0.88) contrast(1.03);
  transition: opacity 2.4s var(--td-ease), filter 2.8s var(--td-ease), transform 3.2s var(--td-ease);
}

.td-philosophy__statement:last-of-type.td-reveal.is-visible img {
  opacity: 1;
  filter: grayscale(0) saturate(1) brightness(1) contrast(1);
}

/* OBJECTS */
.td-objects {
  padding: 0 0 clamp(120px, 15vh, 200px);
}

.td-objects__lead {
  margin: 24px 0 0;
  color: var(--td-copy-color);
  opacity: 0;
  font-size: clamp(15px, 1.4vw, 22px);
  line-height: 1.8;
  letter-spacing: 0.13em;
  transition: opacity 1.25s ease 0.65s;
}

.td-objects__intro.td-reveal.is-visible .td-objects__lead {
  opacity: 1;
}

.td-objects__grid {
  display: grid;
}

.td-object {
  position: relative;
  padding-bottom: clamp(26px, 3.2vw, 54px);
}

.td-object:last-child {
  padding-bottom: 0;
}

.td-object__media {
  overflow: hidden;
  background: #101014;
}

.td-object__media img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  transition: transform 1.4s var(--td-ease), filter 1.1s ease;
}

.td-object:hover .td-object__media img {
  filter: brightness(1.04);
  transform: scale(1.018);
}

.td-object__meta {
  position: relative;
  display: grid;
  align-content: center;
  gap: 1px;
  min-height: 126px;
  margin-top: -1px;
  padding: 22px var(--td-side-padding) 24px;
  background: linear-gradient(180deg, rgba(18, 18, 23, 0.98), rgba(6, 6, 8, 0.98) 42%), #060608;
  text-transform: uppercase;
}

.td-object__meta::before {
  content: "";
  position: absolute;
  top: 0;
  right: var(--td-side-padding);
  left: var(--td-side-padding);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(205, 205, 214, 0.14), transparent);
}

.td-object__code,
.td-object__title,
.td-object__material {
  margin: 0;
  line-height: 1.35;
}

.td-object__code,
.td-object__material {
  font-size: clamp(14px, 1.1vw, 18px);
  line-height: 1.45;
}

.td-object__code {
  color: #c1c1c7;
}

.td-object__title {
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 500;
  letter-spacing: 0.14em;
}

.td-object__material {
  color: #aaaab2;
  text-transform: none;
}

.td-object__link {
  display: block;
}

.td-object--empty {
  padding: 60px var(--td-side-padding);
  color: var(--td-gray);
  text-align: center;
}

/* RECOGNITION */
.td-recognition {
  background: #08080a;
}

.td-recognition__award {
  padding: clamp(65px, 9vw, 120px) var(--td-side-padding);
  color: #111;
  background: #efefef;
  text-align: center;
}

.td-recognition__award-name {
  margin: 0;
  font-size: clamp(16px, 2vw, 29px);
  font-weight: 500;
  letter-spacing: 0.23em;
}

.td-recognition__logo {
  width: min(220px, 45vw);
  margin: 42px auto 28px;
}

.td-recognition__series {
  margin: 0;
  font-size: clamp(14px, 1.15vw, 18px);
}

.td-recognition__visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
}

.td-recognition__details {
  display: grid;
  min-height: 360px;
  padding: 70px var(--td-side-padding);
  place-items: center;
  text-align: center;
}

.td-recognition__details p {
  margin: 0;
  font-size: clamp(14px, 1.12vw, 18px);
  line-height: 1.72;
}

/* INQUIRY */
.td-inquiry {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: max(720px, 100svh);
  padding: 0;
  text-align: center;
}

.td-inquiry__head {
  align-self: start;
}

.td-inquiry__body {
  align-self: center;
  width: 100%;
  padding-right: var(--td-side-padding);
  padding-left: var(--td-side-padding);
}

.td-inquiry__lead {
  max-width: 620px;
  margin: 0 auto clamp(80px, 14vh, 150px);
  font-size: clamp(12px, 1.2vw, 17px);
}

.td-inquiry__links {
  display: grid;
  justify-items: center;
  gap: 16px;
  font-size: clamp(12px, 1.15vw, 16px);
}

.td-inquiry__links a {
  position: relative;
  padding-bottom: 4px;
}

.td-inquiry__links a::after {
  content: "";
  position: absolute;
  right: 0.08em;
  bottom: 0;
  left: 0;
  height: 1px;
  background: #aaaab4;
  transform: scaleX(0);
  transition: transform 0.5s var(--td-ease);
}

.td-inquiry__links a:hover::after {
  transform: scaleX(1);
}

.td-inquiry__instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
}

.td-inquiry__instagram svg {
  display: block;
  width: 1.15em;
  height: 1.15em;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* フッター */
.td-site-footer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: clamp(230px, 32vh, 360px);
  padding: clamp(80px, 11vh, 130px) var(--td-side-padding);
  color: rgba(188, 188, 197, 0.68);
  background:
    radial-gradient(circle at 50% 0%, rgba(120, 116, 140, 0.055), transparent 42%),
    repeating-linear-gradient(90deg, transparent 0 4px, rgba(255, 255, 255, 0.006) 4px 5px),
    #050507;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.2em;
  text-align: center;
}

.td-site-footer::before {
  content: "";
  position: absolute;
  top: clamp(42px, 6vh, 68px);
  left: 50%;
  width: 1px;
  height: clamp(28px, 3.5vh, 42px);
  background: linear-gradient(180deg, transparent, rgba(210, 210, 220, 0.3), transparent);
  transform: translateX(-50%);
}

.td-site-footer span {
  display: block;
}

.td-site-footer span:last-child {
  margin-top: 14px;
  color: rgba(188, 188, 197, 0.5);
}

/* 表示アニメーション */
.td-picture {
  display: block;
}

.td-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s ease, transform 1.15s var(--td-ease);
}

.td-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes td-hero-photo-settle {
  from { transform: scale(1.012); }
  to { transform: scale(1); }
}

@keyframes td-hero-light-rise {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-32%); }
}

@keyframes td-hero-title-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* PC */
@media (min-width: 768px) {
  .td-hero {
    width: 100%;
    height: 150vw;
    min-height: 150vw;
    background: #070709;
  }

  .td-hero::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: -20%;
    display: block;
    pointer-events: none;
    background: rgba(2, 2, 5, 0.42);
    -webkit-mask-image: linear-gradient(to bottom, #000 0 58%, rgba(0, 0, 0, 0.8) 70%, transparent 88%);
    mask-image: linear-gradient(to bottom, #000 0 58%, rgba(0, 0, 0, 0.8) 70%, transparent 88%);
    animation: td-hero-light-rise 3.4s var(--td-ease) 0.15s forwards;
  }

  .td-hero__media {
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: #070709;
  }

  .td-hero__media picture {
    position: relative;
    max-width: none;
    margin: 0 auto;
  }

  .td-hero__media img {
    position: static;
    min-height: 0;
    object-fit: contain;
    object-position: center top;
    transform-origin: center top;
    animation: td-hero-photo-settle 3.8s var(--td-ease) both;
  }

  .td-hero__shade {
    display: none;
  }

  .td-hero__content {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 100%;
    margin: 0 auto;
    padding: 0;
  }

  .td-hero__title,
  .td-hero__title.td-reveal,
  .td-hero__title.td-reveal.is-visible {
    position: absolute;
    top: 29vh;
    left: 50%;
    width: 100%;
    margin: 0;
    color: transparent;
    opacity: 0;
    background-image: linear-gradient(105deg, #b8b8c0, #f0f0f2 42%, #c5c5cb 70%, #ededf0);
    background-clip: text;
    -webkit-background-clip: text;
    font-family: "Archivo", sans-serif;
    font-size: clamp(42px, 4vw, 76px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.2em;
    text-align: center;
    text-indent: 0.2em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 32px rgba(0, 0, 0, 0.48);
    white-space: nowrap;
    transform: translateX(-50%);
    animation: td-hero-title-fade 1.8s ease 0.55s forwards;
  }

  .td-hero__lead,
  .td-hero__lead.td-reveal,
  .td-hero__lead.td-reveal.is-visible {
    position: absolute;
    top: clamp(900px, calc(100vw - 600px), 1050px);
    left: 50%;
    width: min(520px, 78%);
    margin: 0;
    color: var(--td-copy-color);
    opacity: 0;
    font-size: clamp(15px, 1.4vw, 22px);
    line-height: 1.8;
    letter-spacing: 0.13em;
    text-align: center;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 0, 0, 0.6);
    transform: translateX(-50%);
    transition: opacity 1.5s ease, transform 1.8s var(--td-ease);
  }

  .td-site-header.is-scrolled ~ .td-main .td-hero__lead {
    opacity: 1;
    transform: translate(-50%, -8px);
  }
}

/* スマートフォン */
@media (max-width: 767px) {
  :root {
    --td-header-height: 62px;
    --td-side-padding: 20px;
  }

  body {
    font-size: 14px;
  }

  .td-site-header {
    padding-inline: 20px;
  }

  .td-logo img {
    height: 19px;
  }

  .td-menu-button {
    position: relative;
    z-index: 2;
    display: block;
  }

  .td-menu-button[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(3.5px) rotate(45deg);
  }

  .td-menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .td-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    visibility: hidden;
    opacity: 0;
    background: rgba(6, 6, 8, 0.96);
    backdrop-filter: blur(16px);
    transition: opacity 0.4s ease, visibility 0.4s;
  }

  .td-nav.is-open {
    visibility: visible;
    opacity: 1;
  }

  .td-nav a {
    font-size: 12px;
    letter-spacing: 0.28em;
  }

  body.td-menu-open .td-site-header,
  body.td-menu-open .td-site-header.is-scrolled {
    background: #060608;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: none;
  }

  body.td-menu-open .td-nav {
    position: fixed;
    z-index: 1;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    min-height: 100svh;
  }

  body.td-menu-open .td-logo,
  body.td-menu-open .td-menu-button {
    position: relative;
    z-index: 2;
  }

  body:not(.td-menu-open) .td-nav {
    visibility: hidden;
    opacity: 0;
    transition: none;
  }

  .td-hero {
    width: 100%;
    height: var(--td-hero-sp-height, 100svh);
    min-height: var(--td-hero-sp-height, 100svh);
    max-height: var(--td-hero-sp-height, 100svh);
  }

  .td-hero__media,
  .td-hero__media .td-picture,
  .td-hero__media picture,
  .td-hero__media img,
  .td-hero__shade {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
  }

  .td-hero__media img {
    object-fit: cover;
    object-position: center top;
    transform: none;
    animation: none;
    transition: none;
  }

  .td-hero__content {
    height: 100%;
    min-height: 0;
    padding-block: calc(var(--td-header-height) + 13vh) 10vh;
    transform: translateY(-4svh);
  }

  .td-hero__title {
    font-size: clamp(24px, 7.5vw, 34px);
    letter-spacing: 0.22em;
    text-indent: 0.22em;
  }

  .td-hero__lead {
    max-width: min(330px, 84vw);
    font-size: 13px;
    line-height: 1.85;
    letter-spacing: 0.1em;
    text-align: center;
  }

  .td-section-title {
    font-size: 18px;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
  }

  .td-section-head,
  .td-objects__intro,
  .td-inquiry__head {
    min-height: 250px;
    padding: 0 20px;
  }

  .td-section-head::before,
  .td-objects__intro::before,
  .td-inquiry__head::before {
    top: 38px;
    height: 34px;
    background: linear-gradient(180deg, transparent, rgba(215, 215, 222, 0.42), transparent);
  }

  .td-section-head .td-section-title,
  .td-objects__intro .td-section-title,
  .td-inquiry__head .td-section-title {
    transition: opacity 1.1s ease 0.1s;
  }

  .td-html-section.is-head-visible .td-section-title,
  .td-html-section.td-reveal.is-visible .td-section-title,
  .td-objects__intro.td-reveal.is-visible .td-section-title {
    visibility: visible;
    opacity: 1;
  }

  .td-html-section.is-head-visible .td-section-head::before,
  .td-html-section.is-head-visible .td-inquiry__head::before,
  .td-html-section.td-reveal.is-visible .td-section-head::before,
  .td-html-section.td-reveal.is-visible .td-inquiry__head::before,
  .td-objects__intro.td-reveal.is-visible::before {
    opacity: 0.7;
    transform: translateX(-50%) scaleY(1);
  }

  .td-philosophy__statement .td-philosophy__media {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 4;
  }

  .td-philosophy__statement .td-philosophy__media .td-picture,
  .td-philosophy__statement .td-philosophy__media img {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    object-fit: cover;
    object-position: center;
  }

  .td-philosophy__statement:nth-of-type(3) .td-philosophy__media img {
    object-position: right center;
  }

  .td-philosophy__statement:nth-of-type(4) .td-philosophy__media img {
    object-position: left center;
  }

  .td-philosophy__statement .td-philosophy__copy {
    min-height: 128px;
    padding: 28px 22px;
  }

  .td-philosophy__statement .td-philosophy__copy p {
    font-size: 12px;
    line-height: 1.8;
    letter-spacing: 0.1em;
  }

  .td-philosophy__statement .td-philosophy__copy strong {
    font-size: 19px;
    letter-spacing: 0.18em;
    text-indent: 0.18em;
  }

  .td-philosophy__statement .td-philosophy__copy strong + p {
    margin-top: 13px;
  }

  .td-objects__lead {
    margin-top: 20px;
    font-size: 13px;
    line-height: 1.75;
    letter-spacing: 0.08em;
  }

  .td-object__media {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .td-object__media .td-picture,
  .td-object__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
  }

  .td-object__meta {
    min-height: 105px;
    padding: 18px 20px 20px;
  }

  .td-recognition__award {
    padding-block: 68px;
  }

  .td-recognition__series {
    font-size: 13px;
    line-height: 1.6;
  }

  .td-recognition__visual {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }

  .td-recognition__visual .td-picture,
  .td-recognition__visual img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
    object-position: center;
  }

  .td-recognition__details p {
    font-size: 13px;
    line-height: 1.75;
    letter-spacing: 0.06em;
  }

  .td-inquiry {
    min-height: 100svh;
    padding-bottom: max(26px, env(safe-area-inset-bottom));
  }

  .td-inquiry__body {
    padding-right: 20px;
    padding-left: 20px;
  }

  .td-inquiry__lead {
    max-width: 310px;
    margin-bottom: 95px;
  }

  .td-inquiry__lead,
  .td-inquiry__links {
    font-size: 13px;
    line-height: 1.8;
    letter-spacing: 0.06em;
  }

  .td-site-footer {
    min-height: 260px;
    padding: 86px 20px 70px;
    letter-spacing: 0.16em;
  }

  .td-site-footer::before {
    top: 40px;
    height: 32px;
  }
}

/* 動きを抑える設定 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .td-reveal {
    opacity: 1;
    transform: none;
  }

  .td-hero::before {
    display: none;
    animation: none;
  }

  .td-hero__title,
  .td-hero__title.td-reveal,
  .td-hero__title.td-reveal.is-visible {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .td-hero__media img,
  .td-philosophy__statement.td-reveal img,
  .td-philosophy__statement:last-of-type.td-reveal img {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .td-philosophy__statement .td-philosophy__media {
    transform: none !important;
  }

  .td-philosophy__statement .td-philosophy__copy,
  .td-objects__lead,
  .td-section-title {
    opacity: 1 !important;
    transition: none !important;
  }

  .td-section-head::before,
  .td-objects__intro::before,
  .td-inquiry__head::before {
    opacity: 0.7;
    transform: translateX(-50%) scaleY(1);
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) and (min-width: 768px) {
  .td-hero__title,
  .td-hero__title.td-reveal,
  .td-hero__title.td-reveal.is-visible {
    transform: translateX(-50%);
  }
}
