/* =====================================================================
  0) Reset / Normalize
===================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block-end: 0;
  margin: 0;
}
ul[role='list'],
ol[role='list'] {
  list-style: none;
}
body {
  min-height: 100vh;
  line-height: 1.5;
}
h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.1;
}
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}
img,
picture {
  max-width: 100%;
  display: block;
}
input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}
textarea:not([rows]) {
  min-height: 10em;
}
:target {
  scroll-margin-block: 5ex;
}

/* =====================================================================
  1) CSS Variables (tokens)
===================================================================== */
:root {
  /* brand/base */
  --brand-blue: #010e21;
  --brand-accent: #c29700;
  --tile-odd: #fef6d8;
  --tile-even: #f7e59f;
  --contact: #b78f02;
  --gap: 16px;

  /* layout */
  --maxw: 1200px;

  /* menu (hamburger / panel) */
  --btn-size: 50px;
  --line-color: #b78f02;
  --line-thick: 1px;
  --line-gap: 4px;
  --shadow: 0 0 15px 0 rgba(183,143,2,.3);
  --panel-bg: #b78f02;

  /* scroll hint */
  --scroll-rail-color: #ffffff;

  /* works */
  --works-brandbar-h: 84px;
}

/* =====================================================================
  2) Base Typography / Utils
===================================================================== */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: #3d3d3d;
  background: #fff;
  line-height: 2.5;
  font-family: "Zen Old Mincho", serif;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-family: "Cormorant", serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}
.sp-only {
  display: none;
}

/* =====================================================================
  3) Loader
===================================================================== */
.loader {
  position: fixed;
  inset: 0;
  background: #010e21;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 1;
  visibility: visible;
  transition: opacity .6s ease, visibility .6s ease;
}
.loader-inner {
  text-align: center;
}
.loader-logo {
  width: 260px;
  height: auto;
  opacity: 0;
  animation: logoFadeIn 1.4s ease forwards;
}
@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: scale(.95);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: none;
  }
}
.loader.hide {
  opacity: 0;
  visibility: hidden;
}

/* =====================================================================
  4) Hero（3パネル＋タイトル）
===================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}
.hero-split {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
}
.panel {
  margin: 0;
}
.panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero .panel.center {
  box-shadow: 0 0 10px rgba(0,0,0,.7);
  z-index: 1;
}

/* タイトル（スプリット表示用） */
.hero-title {
  display: block;
  position: absolute;
  z-index: 2;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(24px, 4vw, 45px);
  color: #ffda59;
  font-weight: 100;
  letter-spacing: .02em;
  background: rgba(0,0,0,.5);
  padding: .1em .6em;
  width: auto;
  will-change: transform;
}
.hero-title span {
  display: inline-block;
}
.hero-title.left {
  left: 0;
  top: 20%;
}
.hero-title.right {
  right: 0;
  bottom: 20%;
}

/* 文字出現アニメ（charIn） */
.hero-title span.char {
  opacity: 0;
  transform: translateY(8px);
  animation: charIn .48s ease forwards;
  animation-delay: calc(var(--i) * 28ms);
  animation-play-state: paused;
}
.hero-title-ready .hero-title span.char {
  animation-play-state: running;
}
@keyframes charIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 3パネルの入場アニメ（ローダー後） */
@keyframes heroPanelIn {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(1.02);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
.hero .panel {
  opacity: 0;
  animation-duration: 900ms;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  animation-name: none;
  will-change: opacity, transform, filter;
}
.hero-anim-ready .hero .panel {
  animation-name: heroPanelIn;
}
.hero .panel.left {
  animation-delay: 0ms;
}
.hero .panel.center {
  animation-delay: 250ms;
}
.hero .panel.right {
  animation-delay: 500ms;
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  .hero .panel,
  .hero .hero-title {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* =====================================================================
  5) Global Menu（ハンバーガー＋ナビ＋バックドロップ）
===================================================================== */
.btn-menu {
  position: fixed;
  top: 20px;
  right: 20px;
  inline-size: var(--btn-size);
  block-size: var(--btn-size);
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  z-index: 1400;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-menu::before,
.btn-menu::after {
  content: "";
  position: absolute;
  left: 50%;
  translate: -50% 0;
  inline-size: 52%;
  block-size: var(--line-thick);
  background: var(--line-color);
  border-radius: 999px;
}
.btn-menu::before {
  top: calc(50% - var(--line-gap));
}
.btn-menu::after {
  top: calc(50% + var(--line-gap));
}
.btn-menu:hover {
  transform: translateY(-1px);
  --shadow: 0 0 15px rgba(183,143,2,.3);
}
.btn-menu:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--line-color) 50%, #fff);
  outline-offset: 3px;
}
/* to X */
.nav-open .btn-menu {
  z-index: 1401;
}
.nav-open .btn-menu::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.nav-open .btn-menu::after {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* スライドナビ */
.nav-panel {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(520px, 86vw);
  background: var(--panel-bg);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  z-index: 1100;
  box-shadow: -8px 0 24px rgba(0,0,0,.18);
}
.nav-open .nav-panel {
  transform: translateX(0);
}

/* メニューリスト */
.nav-list {
  list-style: none;
  margin: 120px 0 0;
  padding: 0 10vw 0 12vw;
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: right;
}
.nav-list a {
  color: #fff;
  text-decoration: none;
  font-family: "Cormorant", serif;
  font-weight: 100;
  font-size: clamp(18px, 2.2vw, 24px);
  letter-spacing: .02em;
  position: relative;
  display: inline-block;
}
.nav-list a::after {
  content: "|";
  opacity: .7;
  margin-left: 10px;
}

/* スタッガー */
.nav-list li {
  opacity: 0;
  transform: translateX(12px);
}
.nav-open .nav-list li {
  animation: navIn .45s ease-out forwards;
}
.nav-open .nav-list li:nth-child(1) {
  animation-delay: .08s;
}
.nav-open .nav-list li:nth-child(2) {
  animation-delay: .16s;
}
.nav-open .nav-list li:nth-child(3) {
  animation-delay: .24s;
}
.nav-open .nav-list li:nth-child(4) {
  animation-delay: .32s;
}
@keyframes navIn {
  to {
    opacity: 1;
    transform: none;
  }
}

/* バックドロップ */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
  z-index: 900;
}
.nav-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  .btn-menu,
  .btn-menu::before,
  .btn-menu::after,
  .nav-panel,
  .nav-list li {
    transition: none !important;
    animation: none !important;
  }
  .nav-list li {
    opacity: 1;
    transform: none;
  }
}

/* =====================================================================
  6) Common Section / Brandbar（TOP）
===================================================================== */
.brandbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--brand-blue);
  color: #fff;
  z-index: 2;
}
.brand {
  margin: 0 auto;
  padding: 14px 24px;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 220px;
  margin: 0 auto;
  z-index: 100;
}
.brand-name {
  font-weight: 700;
  letter-spacing: .05em;
}
.brand-role {
  font-size: 12px;
  opacity: .9;
}

.section {
  padding: 100px 20px;
}
.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-title {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 100;
  margin-bottom: 28px;
  position: relative;
  padding-left: 15px;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background-image: url("../images/icon-section-title.svg");
}

/* =====================================================================
  7) Tiles（works一覧：グリッド／hover／出現）
===================================================================== */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .tiles {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

.tile {
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
  height: 100%;
}
a.tile {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
a.tile,
a.tile:hover,
a.tile:focus,
a.tile:active,
a.tile:visited {
  text-decoration: none !important;
}
a.tile h3,
a.tile p {
  text-decoration: none !important;
}

.tile-media {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 10px;
  overflow: hidden;
  position: relative;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
  z-index: 0;
}
@media (hover: hover) {
  .tile:hover .tile-media {
    transform: scale(1.06);
    box-shadow: 0 12px 28px rgba(0,0,0,.15);
    z-index: 10;
  }
}
.tile:focus-within .tile-media {
  transform: scale(1.06);
  box-shadow: 0 12px 28px rgba(0,0,0,.15);
  z-index: 10;
}
@media (prefers-reduced-motion: reduce) {
  .tile-media {
    transition: none !important;
  }
  .tile:hover .tile-media,
  .tile:focus-within .tile-media {
    transform: none !important;
    box-shadow: none !important;
  }
}
.tile:nth-child(odd) .tile-media {
  background: var(--tile-odd);
}
.tile:nth-child(even) .tile-media {
  background: var(--tile-even);
}
.tile-media img {
  width: 100%;
  height: auto;
  display: block;
}

.tile-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 20px 0 40px;
  background: #fff;
  border-right: none;
  border-left: 1px solid var(--brand-accent);
}
.info-block {
  padding: .25rem 2.2rem .25rem .75rem;
}
.info-block h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 .2rem;
}
.info-block p {
  font-size: 13px;
  line-height: 1.6;
}
.info-block::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("../images/tile-arrow.svg");
  transition: transform .25s ease;
}
.tile:hover .info-block::after {
  transform: translateY(-50%) translateX(4px);
}
.tiles > .tile:last-child .tile-content {
  padding-right: .75rem;
}

/* 出現アニメ（.has-js .tile → .is-visible） */
@keyframes tileParallaxIn {
  0% {
    opacity: 0;
    transform: translateY(42px) scale(1.04);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: none;
  }
}
.has-js .tile {
  opacity: 0;
  transform: translateY(42px) scale(1.04);
  filter: blur(5px);
  will-change: opacity, transform, filter;
}
.has-js .tile.is-visible {
  animation: tileParallaxIn 900ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
  animation-delay: var(--delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .has-js .tile {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .has-js .tile.is-visible {
    animation: none !important;
  }
}

/* ====================== tiles 右端ヘアライン（iOSの1px太り対策） ====================== */
.tiles .tile-content {
  position: relative;
}
.tiles .tile-content::after {
  content: none;
}
.tiles .tile-content.is-edge::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;                /* CSS上は1px */
  background: #d4a018;       /* 線色 */
  transform-origin: right center;
  transform: translateZ(0);  /* レンダリング安定化 */
  backface-visibility: hidden;
}

/* =====================================================================
  8) About（本文のみフェードイン）
===================================================================== */
.about {
  background: #fffcf0;
}
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 900px) {
  .about-wrap {
    grid-template-columns: 1fr;
  }
}
.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.about-role {
  color: #c29700;
  margin: 0 0 4px;
}
.about-name {
  font-size: 22px;
  margin: 0 0 10px;
}
.about-desc {
  font-size: 14px;
}

/* 本文だけフェードイン（背景除外） */
@keyframes aboutItemIn {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: none;
  }
}
.has-js .about .about-photo,
.has-js .about .about-text {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(4px);
  will-change: opacity, transform, filter;
}
.has-js .about .about-photo.is-visible,
.has-js .about .about-text.is-visible {
  animation: aboutItemIn 800ms ease-out forwards;
  animation-delay: var(--delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .has-js .about .about-photo,
  .has-js .about .about-text {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
}

/* =====================================================================
  9) Contact（上向き弧＋メールボタン）
===================================================================== */
.contact {
  --arc-h: 160px;
  --arc-color: #010e21;
  background:
    url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 160' preserveAspectRatio='none'>\
<path d='M1440,216.7H0v-103.3S404.2,0,720,0s720,113.4,720,113.4v103.3Z' fill='%23010e21'/>\
</svg>") top / 100% var(--arc-h) no-repeat,
    linear-gradient(var(--arc-color), var(--arc-color)) 0 var(--arc-h) / 100% calc(100% - var(--arc-h)) no-repeat;
  background-color: #fefbf4;
  padding: 110px 16px 48px;
  text-align: center;
  color: #fff;
}
.contact-lead {
  opacity: .9;
  margin: 0 0 0;
  font-size: 14px;
}
.contact-title {
  font-size: clamp(38px, 8vw, 100px);
  margin: -20px 0 0;
  font-weight: 700;
}
.contact-sub {
  margin: 0 0 20px;
  font-size: 14px;
}

/* メールボタン */
.contact-btn {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 15px 56px;
  margin: 0 auto;
  border: none;
  border-radius: 30px;
  background: #b78f02;
  color: #fff;
  font-family: "Zen Old Mincho", serif;
  cursor: pointer;
  position: relative;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
  width: min(720px, 50%);
  box-shadow: 0 0 15px rgba(161,43,6,.3);
}
a.contact-btn {
  text-decoration: none;
  color: inherit;
  display: grid;
  place-items: center;
  font-size: 10px;
}
a.contact-btn,
a.contact-btn:hover,
a.contact-btn:focus,
a.contact-btn:active,
a.contact-btn:visited {
  text-decoration: none !important;
}

/* デスクトップのhover */
@media (hover: hover) and (pointer: fine) {
  .contact-btn:hover {
    background: #fff;
    color: #b78f02;
    box-shadow: 0 0 20px rgba(0,0,0,.5);
  }
}
/* タッチ端末：静的＋軽い押下 */
@media (hover: none), (pointer: coarse) {
  .contact-btn .contact-btn-arrow-line {
    transform: scaleX(1);
  }
  .contact-btn:hover {
    background: #b78f02;
    color: #fff;
    box-shadow: 0 0 15px rgba(161,43,6,.3);
  }
  .contact-btn:active {
    transform: scale(.99);
  }
}
.contact-btn:focus-visible {
  outline: none;
  background: #010e21;
  color: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,.5);
}
.contact-btn-inner {
  justify-self: center;
  font-size: 12px;
}

/* 矢印 */
.contact-btn-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 100px;
  height: 12px;
}
.contact-btn-arrow-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1px;
  stroke-miterlimit: 10;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: left center;
  transform: scaleX(1);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
@media (hover: hover) and (pointer: fine) {
  .contact-btn:hover .contact-btn-arrow-line,
  .contact-btn:focus-visible .contact-btn-arrow-line {
    transform: scaleX(1.15);
  }
}

/* =====================================================================
 10) Scroll Hint（左レール）＋To Top
===================================================================== */
.scroll-hint {
  position: fixed;
  left: 20px;
  bottom: 14vh;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--scroll-rail-color);
  transition: opacity .25s ease, transform .25s ease;
}
.nav-open .scroll-hint {
  opacity: 0;
  pointer-events: none;
}
.scroll-hint .label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: .12em;
  font-size: 12px;
  opacity: .9;
}
.scroll-hint .arrow {
  display: inline-flex;
  color: var(--scroll-rail-color);
  text-decoration: none;
}
.scroll-hint .arrow-svg {
  display: block;
}
.shaft line {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  animation: shaftGrow 1.6s ease-in-out infinite alternate;
}
.chevron {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: chevronBob 1.6s ease-in-out infinite alternate;
}
@keyframes shaftGrow {
  0% {
    transform: scaleY(.7);
  }
  100% {
    transform: scaleY(1);
  }
}
@keyframes chevronBob {
  0% {
    transform: translateY(-2px);
  }
  100% {
    transform: translateY(3px);
  }
}
.scroll-hint.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

/* To Top */
.to-top {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.6);
  color: var(--line-color, #b78f02);
  z-index: 1200;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: opacity .25s ease, transform .25s ease, box-shadow .2s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}
.to-top::before {
  content: "";
  width: 16px;
  height: 16px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(-45deg);
}
.to-top:hover {
  transform: translateY(-1px);
  --shadow: 0 0 15px rgba(183,143,2,.3);
}
.to-top:focus-visible {
  outline: 3px solid color-mix(in srgb, currentColor 55%, #fff);
  outline-offset: 3px;
}
.to-top:hover,
.to-top:focus-visible {
  background: rgba(255,255,255,.6);
  box-shadow: var(--shadow);
}
.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-open .to-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* =========================================================
   iOS Safari: hero-title 高さブレ対策 v2
========================================================= */
.hero-title {
  display: flex;
  align-items: flex-start;
  white-space: nowrap;
  overflow: hidden;
  contain: layout paint;
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.hero-title span.char {
  display: block;
  vertical-align: top;
  will-change: transform, opacity;
  transform: translate3d(0, 8px, 0);
  backface-visibility: hidden;
}
@keyframes charIn {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@supports (-webkit-hyphens: none) {
  .hero-title {
    contain: layout paint;
  }
}

/* =========================================================
   Hero Title 演出：順番出現 + ちょいポップ
========================================================= */
.hero-title.left  { --title-delay: 0ms; }
.hero-title.right { --title-delay: 600ms; }

.hero-title span.char {
  transform: translate3d(0, 10px, 0) scale(.96);
  backface-visibility: hidden;
  will-change: transform, opacity;
  animation-name: charIn;
  animation-duration: .62s;
  animation-timing-function: cubic-bezier(.2,.8,.2,1);
  animation-fill-mode: forwards;
  animation-delay: calc(var(--title-delay, 0ms) + var(--i) * 28ms);
}
@keyframes charIn {
  0%   { opacity: 0; transform: translate3d(0, 10px, 0) scale(.96); }
  60%  { opacity: 1; transform: translate3d(0, 0, 0)  scale(1.06); }
  100% { opacity: 1; transform: translate3d(0, 0, 0)  scale(1); }
}

/* =====================================================================
 11) Works Page（detail / prefix: works-）
===================================================================== */
.works-hero {
  position: relative;
  min-height: min(172vh, 800px);
  overflow: hidden;
  background: #fffbf0;
}
.works-hero__bg {
  position: absolute;
  inset: var(--works-brandbar-h) 0 0 0;
  background: var(--brand-blue);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 100%);
  z-index: 0;
}
.works-brandbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  z-index: 3;
  background: var(--brand-blue);
  min-height: var(--works-brandbar-h);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 20px;
}
.works-brand {
  max-width: none;
  padding: 0;
  display: flex;
  align-items: center;
}
.works-brand__logo {
  margin: 0;
}
.works-brand__logo img {
  display: block;
  width: auto;
  height: auto;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.25));
}
.works-hero-section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.works-hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  margin-inline: auto;
  display: grid;
  align-items: center;
  justify-items: end;
  padding: var(--works-brandbar-h) 20px;
}
.works-hero__title {
  font-family: "Cormorant", serif;
  font-weight: 100;
  font-size: clamp(45px, 8vw, 180px);
  line-height: 1;
  color: #fff;
  letter-spacing: .02em;
  margin-top: clamp(70px, 12vw, 300px);
}
.works-hero__visual {
  position: absolute;
  left: -100px;
  top: clamp(100px, 12vw, 300px);
  z-index: 1000;
}
.works-hero__visual img {
  width: min(980px, 88vw);
  height: auto;
  display: block;
}

.works-detail {
  max-width: none;
  width: 100%;
  padding: 0;
}
.works-detail__intro {
  padding: 20px;
  margin: 0 auto clamp(44px, 6vw, 64px);
  background: #fffcf0;
}
.works-detail__role {
  margin: 0 0 20px;
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--brand-accent);
  font-weight: 200;
}
.works-detail__name {
  margin: 0 0 20px;
  font-size: clamp(24px, 2.4vw, 50px);
  font-weight: 700;
  line-height: 1;
}
.works-detail__tags {
  display: flex;
  gap: 10px;
  margin: 0 0 60px;
  padding: 0;
  line-height: 1;
  list-style: none;
  font-size: 12px;
}
.works-detail__tags li {
  background: var(--brand-accent);
  font-family: "Cormorant", serif;
  font-weight: 200;
  color: #fff;
  padding: .3em .7em;
  border-radius: 999px;
}
.works-detail__desc {
  font-size: 16px;
  line-height: 2;
  margin: 0 0 20px;
}
.works-detail__link {
  font-size: 20px;
  line-height: 1;
}
.works-detail__link a {
  color: var(--brand-accent);
  position: relative;
  padding-right: 40px;
}
.works-detail__link a,
.works-detail__link a:hover,
.works-detail__link a:focus,
.works-detail__link a:active,
.works-detail__link a:visited {
  text-decoration: none !important;
}
.works-detail__link a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("../images/icon_blank.svg");
  transition: transform .25s ease;
}
.works-detail__link a:hover {
  opacity: .7;
}
.works-detail__link-arrow {
  color: var(--brand-accent);
  margin-left: .25em;
}

.works-designs {
  margin: 60px auto;
}
.works-designs__title {
  font-size: clamp(20px, 2.2vw, 25px);
  font-family: "Cormorant", serif;
  font-weight: 100;
  margin-bottom: 60px;
}
.works-designs__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 100px;
}
.works-designs__item {
  margin: 0;
  box-shadow: 35px 35px 20px 0 rgba(0, 0, 0, 0.3);
}
.works-designs__item img {
  height: auto;
  display: block;
  border-radius: 4px;
}

.works-other {
  padding-top: 0;
}
.works-contact {
  background-color: #fff;
}

/* ===== Works Hero：ロード時フェードイン ===== */
@keyframes worksFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(1.02);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
/* 初期は非表示（JSで .works-ready が付いたら再生） */
.works-hero__visual,
.works-hero__title {
  opacity: 0;
  transform: translateY(16px) scale(1.02);
  filter: blur(6px);
  will-change: opacity, transform, filter;
}
/* 再生：ビジュアル→タイトル */
.works-ready .works-hero__visual {
  animation: worksFadeInUp 1.5s cubic-bezier(.2,.8,.2,1) .25s forwards;
}
.works-ready .works-hero__title {
  animation: worksFadeInUp 1.5s cubic-bezier(.2,.8,.2,1) .5s forwards;
}
@media (prefers-reduced-motion: reduce) {
  .works-hero__visual,
  .works-hero__title {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
}

/* =====================================================================
 12) Footer（コピーライト）
===================================================================== */
.copy {
  margin-top: 24px;
  font-size: 10px;
  line-height: 1.6;
  opacity: .9;
}

/* =====================================================================
 13) Media Queries（全体の微調整＋スマホ復帰）
===================================================================== */
@media (max-width: 600px) {
  .btn-menu {
    top: 10px;
    right: 10px;
  }
  .nav-list a {
    font-size: 24px;
  }
  .to-top {
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .hero-title {
    font-weight: 200;
  }
  .section {
    padding: 50px 10px;
  }
  .section-title {
    font-size: 35px;
  }
  .tile-content {
    margin: 10px 0 20px;
  }
  .info-block {
    padding-right: 1rem;
  }
  .info-block::after {
    width: 4px;
    height: 4px;
  }
  .about-role {
    font-size: 12px;
  }
  .about-name {
    font-size: 16px;
  }
  .about-desc {
    font-size: 12px;
  }
  .contact-title {
    font-size: clamp(38px, 18vw, 100px);
    margin: -10px 0 0;
  }
  .contact-btn {
    width: min(520px, 92vw);
    padding: 14px 48px;
    border-radius: 22px;
  }
  .contact-btn-inner {
    font-size: clamp(12px, 4.2vw, 16px);
    line-height: 1.3;
    text-align: center;
    word-break: break-all;
  }
  .contact-btn-arrow {
    right: 16px;
    width: 64px;
    height: 10px;
  }
  .contact-lead,
  .contact-sub {
    font-size: 12px;
  }
  .sp-only {
    display: block;
  }
  .pc-only {
    display: none;
  }
  .works-brandbar {
    padding: 10px;
  }
  .works-hero {
    min-height: min(172vh, 320px);
  }
  .works-hero__visual {
    left: -50px;
  }
  .works-detail__tags {
    margin: 0 0 30px;
    font-size: 10px;
  }
  .works-detail__desc {
    margin: 0 0 10px;
    font-size: 12px;
  }
  .works-detail__link {
    font-size: 14px;
    margin: 0 0 30px;
  }
  .works-designs__title {
    margin: 0 0 20px;
  }
  .works-designs__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
  }
  .works-designs__item:nth-child(1) {
    grid-column: 1 / -1;
  }
  .works-designs__item {
    box-shadow: 10px 10px 10px rgba(0,0,0,.30);
    border-radius: 4px;
    overflow: hidden;
  }
  .works-designs__item img {
    width: 100%;
    height: auto;
    display: block;
  }
}
@media (max-width: 360px) {
  .contact-btn {
    padding: 12px 40px;
  }
  .contact-btn-arrow {
    width: 56px;
  }
}
@media (max-width: 768px) {
  .scroll-hint {
    left: 10px;
    bottom: 12vh;
  }
  .scroll-hint .label {
    font-size: 11px;
    letter-spacing: .1em;
  }
  .arrow-svg {
    height: 120px;
  }
}
/* ★ SmartPhone Fixes（<=560px：以前の挙動に戻す） */
@media (max-width: 560px) {
  .info-block h3 {
    font-size: 12px;
    line-height: 1.4;
  }
  .info-block p {
    font-size: 10px;
  }
  .hero-title {
    font-size: clamp(16px, 8vw, 28px);
    line-height: 1.3;
  }
  .hero-title.left {
    top: 10%;
  }
  .hero-title.right {
    bottom: 20%;
  }
  .contact {
    --arc-h: 60px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .contact-btn-arrow-line {
    transition: none;
    transform: none;
  }
  .to-top {
    transition: none;
  }
  .shaft line,
  .chevron {
    animation: none !important;
  }
}

/* =====================================================================
  Tablet-only (601–1024px) 追加調整
  - 既存の SP/PC ルールはそのまま、タブレット時のみ上書き
===================================================================== */
@media (600px < width <= 1024px)  {
  .works-hero { min-height: min(60vh, 600px); }
  .works-hero__visual { left: -72px; top: clamp(120px, 10vw, 240px); }
  .works-hero__visual img { width: min(820px, 86vw); }
  .works-hero__title { font-size: clamp(42px, 7vw, 120px); margin-top: clamp(60px, 10vw, 240px); }
  .contact-btn { width: min(640px, 70vw); }
}