/* =========================================================
   KAMIYA LAW OFFICE
   ========================================================= */

:root {
  --c-black: #202020;
  --c-black-2: #2a2a29;
  --c-ivory: #f2f0eb;
  --c-ivory-2: #ebe8e1;
  --c-greige: #a29a8b;
  --c-greige-pale: #e2ddd4;
  --c-gray: #777777;
  --c-line-dark: rgba(32, 32, 32, .16);
  --c-line-light: rgba(242, 240, 235, .18);

  --f-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-en: "Cormorant Garamond", "Times New Roman", serif;
  --f-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --side: clamp(24px, 6.4vw, 112px);
  --sec-y: clamp(104px, 12vw, 200px);
  --header-h: 72px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--c-ivory);
  color: var(--c-black);
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 2;
  letter-spacing: .06em;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--c-greige); outline-offset: 4px; }
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--c-black); color: var(--c-ivory); padding: 8px 16px; font-size: 13px;
}
.skip-link:focus { top: 16px; }
.pc-only { display: inline; }
@media (max-width: 768px) { .pc-only { display: none; } }

/* ---------- brand ---------- */
.brand-ja {
  display: block;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: .24em;
  line-height: 1.4;
}
.brand-en {
  display: block;
  margin-top: 8px;
  font-family: var(--f-en);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: .34em;
  line-height: 1;
  color: var(--c-greige);
}

/* ---------- arrow (thin line arrow) ---------- */
.arrow {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  transition: transform .6s var(--ease-out), width .6s var(--ease-out);
}
.arrow::after {
  content: "";
  position: absolute;
  right: 0; top: 0;
  width: 7px; height: 1px;
  background: currentColor;
  transform-origin: right center;
  transform: rotate(35deg);
}
.arrow--up { transform: rotate(-90deg); width: 20px; }

/* ---------- underline link ---------- */
.u-line {
  position: relative;
  display: inline-block;
}
.u-line::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .6s var(--ease-out);
}
@media (hover: hover) {
  .u-line:hover::after { transform: scaleX(1); transform-origin: left center; }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-line-dark);
  font-family: var(--f-serif);
  font-size: 14px;
  letter-spacing: .16em;
  position: relative;
}
.text-link::after {
  content: "";
  position: absolute; left: 0; bottom: -1px;
  width: 100%; height: 1px; background: var(--c-black);
  transform: scaleX(0); transform-origin: right center;
  transition: transform .7s var(--ease-out);
}
@media (hover: hover) {
  .text-link:hover::after { transform: scaleX(1); transform-origin: left center; }
  .text-link:hover .arrow { transform: translateX(6px); }
}
.text-link.is-disabled { color: var(--c-gray); cursor: default; pointer-events: none; }

.note {
  margin-top: 28px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--c-gray);
  letter-spacing: .06em;
}

/* ---------- section heading ---------- */
.sec-head__en {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-en);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .32em;
  line-height: 1;
  color: var(--c-greige);
}
.sec-head__no {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  letter-spacing: .1em;
}
.sec-head__no::after {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: .7;
}
.sec-head__ja {
  margin-top: 18px;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: .22em;
  line-height: 1.6;
}
.sec-head--light .sec-head__ja { color: var(--c-ivory); }
.sec-head--center { text-align: center; }
.sec-head--center .sec-head__en { justify-content: center; }

/* =========================================================
   GLOBAL HEADER
   ========================================================= */
.gheader {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--side);
  background: rgba(242, 240, 235, .97);
  border-bottom: 1px solid var(--c-line-dark);
  transform: translateY(-101%);
  transition: transform .7s var(--ease-out), background-color .5s var(--ease), border-color .5s var(--ease);
}
.gheader.is-visible { transform: translateY(0); }
.gheader__brand .brand-ja { font-size: 16px; }
.gheader__brand .brand-en { margin-top: 6px; font-size: 9px; }
.gheader__nav ul { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); }
.gheader__nav a {
  font-family: var(--f-serif);
  font-size: 13px;
  letter-spacing: .16em;
}
.gheader__contact {
  display: inline-block;
  padding: 9px 22px;
  border: 1px solid var(--c-black);
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
@media (hover: hover) {
  .gheader__contact:hover { background: var(--c-black); color: var(--c-ivory); }
}

.menu-btn { display: none; }

/* =========================================================
   01 FIRST VIEW
   ========================================================= */
.fv {
  position: relative;
  display: grid;
  grid-template-columns: 37% 63%;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  background: var(--c-black);
  color: var(--c-ivory);
  overflow: hidden;
}
.fv__panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: clamp(40px, 5.6vh, 60px) clamp(32px, 4.6vw, 80px) clamp(40px, 6.4vh, 68px);
}
.fv__brand .brand-ja { font-size: clamp(17px, 1.39vw, 21px); }
.fv__brand .brand-en { margin-top: 10px; font-size: clamp(10px, .76vw, 11.5px); }

.fv__copy {
  margin-top: auto;
  margin-bottom: auto;
  padding-top: 4vh;
}
.fv__catch {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(30px, 3.06vw, 50px);
  line-height: 1.78;
  letter-spacing: .14em;
  white-space: nowrap;
}
.fv__line { display: block; overflow: hidden; }
.fv__line > span { display: inline-block; }
.fv__sub {
  margin-top: clamp(28px, 4.4vh, 44px);
  font-family: var(--f-serif);
  font-weight: 300;
  font-size: clamp(13px, .97vw, 15px);
  line-height: 2.3;
  letter-spacing: .16em;
  color: rgba(242, 240, 235, .78);
}

.fv__contact {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  column-gap: 18px;
  row-gap: 14px;
  width: min(100%, 280px);
}
.fv__contact-en {
  font-family: var(--f-en);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .32em;
  color: var(--c-greige);
  line-height: 1;
}
.fv__contact-ja {
  font-family: var(--f-serif);
  font-size: 14px;
  letter-spacing: .18em;
  line-height: 1;
}
.fv__contact-rule {
  grid-column: 1 / -1;
  position: relative;
  display: block;
  height: 1px;
  background: rgba(242, 240, 235, .3);
}
.fv__contact-rule::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--c-ivory);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .8s var(--ease-out);
}
.fv__contact-rule .arrow {
  position: absolute;
  right: 0; top: -12px;
  width: 22px;
  color: var(--c-ivory);
  background: transparent;
}
.fv__contact-rule .arrow::after { width: 9px; }
.fv__contact-rule .arrow { height: 12px; }
.fv__contact-rule .arrow::after { top: 11px; }
@media (hover: hover) {
  .fv__contact:hover .fv__contact-rule::before { transform: scaleX(1); }
  .fv__contact:hover .fv__contact-rule .arrow { transform: translateX(6px); }
}

.fv__visual {
  position: relative;
  overflow: hidden;
}
.fv__visual picture, .fv__visual img {
  width: 100%;
  height: 100%;
}
.fv__visual img {
  object-fit: cover;
  object-position: 46% 50%;
}
.fv__visual::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 160px;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(20, 20, 20, .32), rgba(20, 20, 20, 0));
  pointer-events: none;
}
.fv__nav {
  position: absolute;
  top: clamp(44px, 6.2vh, 64px);
  right: clamp(32px, 4.2vw, 72px);
  z-index: 2;
}
.fv__nav ul { display: flex; gap: clamp(28px, 3.3vw, 56px); }
.fv__nav a {
  font-family: var(--f-serif);
  font-size: clamp(12.5px, .9vw, 14px);
  letter-spacing: .2em;
  color: #fff;
  text-shadow: 0 0 18px rgba(0, 0, 0, .25);
}
.fv__scroll {
  position: absolute;
  right: clamp(32px, 4.2vw, 72px);
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: .3em;
  color: #fff;
  writing-mode: vertical-rl;
}
.fv__scroll::after {
  content: "";
  width: 1px; height: 72px;
  background: linear-gradient(to bottom, rgba(255,255,255,.9) 50%, rgba(255,255,255,.25) 50%);
  background-size: 1px 200%;
  animation: scrollLine 2.6s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { background-position: 0 100%; }
  100% { background-position: 0 -100%; }
}

/* FV intro animation */
.fv__visual img { transform: scale(1.06); transition: transform 2.8s var(--ease-out); }
.fv__line > span { transform: translateY(105%); transition: transform 1.3s var(--ease-out); }
.fv__line:nth-child(2) > span { transition-delay: .14s; }
.fv__brand, .fv__sub, .fv__contact, .fv__nav, .fv__scroll { opacity: 0; transition: opacity 1.4s var(--ease); }
.is-loaded .fv__visual img { transform: scale(1); }
.is-loaded .fv__line > span { transform: translateY(0); }
.is-loaded .fv__brand { opacity: 1; transition-delay: .2s; }
.is-loaded .fv__sub { opacity: 1; transition-delay: .7s; }
.is-loaded .fv__contact, .is-loaded .fv__nav, .is-loaded .fv__scroll { opacity: 1; transition-delay: 1s; }

/* =========================================================
   02 PHILOSOPHY
   ========================================================= */
.philosophy {
  padding: var(--sec-y) 0 calc(var(--sec-y) * 1.05);
  background: var(--c-ivory);
}
.philosophy__inner {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  align-items: start;
  padding-right: var(--side);
}
.philosophy__visual {
  position: relative;
  padding-bottom: 120px;
}
.philosophy__main {
  width: 82%;
  aspect-ratio: 4 / 5;
}
.philosophy__sub {
  position: absolute;
  right: -2%;
  bottom: 0;
  width: 42%;
  aspect-ratio: 4 / 3;
  outline: 14px solid var(--c-ivory);
}
.philosophy__main img, .philosophy__sub img { width: 100%; height: 100%; object-fit: cover; }
.philosophy__vertical {
  position: absolute;
  left: calc(82% + 22px);
  top: 0;
  writing-mode: vertical-rl;
  font-family: var(--f-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--c-greige);
}
.philosophy__body {
  padding-left: clamp(48px, 9vw, 160px);
  padding-top: clamp(24px, 6vw, 96px);
  max-width: calc(560px + clamp(48px, 9vw, 160px));
}
.philosophy__catch {
  margin-top: clamp(48px, 5.4vw, 80px);
  padding-top: clamp(36px, 3.6vw, 52px);
  border-top: 1px solid var(--c-line-dark);
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(26px, 2.5vw, 38px);
  line-height: 1.85;
  letter-spacing: .14em;
}
.philosophy__text {
  margin-top: clamp(32px, 3.2vw, 48px);
  color: #3a3a39;
  font-size: 14.5px;
  line-height: 2.3;
}
.philosophy__text p + p { margin-top: 1.2em; }
.philosophy__body .text-link { margin-top: clamp(40px, 4vw, 56px); }

/* =========================================================
   03 PRACTICE AREAS
   ========================================================= */
.practice {
  padding: var(--sec-y) var(--side);
  background: var(--c-black);
  color: var(--c-ivory);
}
.practice__inner { max-width: 1280px; margin: 0 auto; }
.practice__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding-bottom: clamp(56px, 6vw, 88px);
}
.practice__lead {
  font-family: var(--f-serif);
  font-weight: 300;
  font-size: 14px;
  line-height: 2.3;
  letter-spacing: .12em;
  color: rgba(242, 240, 235, .72);
}
.practice__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(40px, 6vw, 104px);
  counter-reset: none;
  border-top: 1px solid var(--c-line-light);
}
.practice__item { border-bottom: 1px solid var(--c-line-light); }
.practice__link {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr 40px;
  align-items: start;
  padding: clamp(36px, 3.4vw, 52px) 0 clamp(40px, 3.6vw, 56px);
}
.practice__link::after {
  content: "";
  position: absolute; left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--c-greige);
  transform: scaleX(0); transform-origin: right center;
  transition: transform .9s var(--ease-out);
}
.practice__num {
  font-family: var(--f-en);
  font-size: 15px;
  letter-spacing: .14em;
  line-height: 1.6;
  color: var(--c-greige);
  padding-top: 6px;
}
.practice__title {
  display: block;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(19px, 1.6vw, 23px);
  letter-spacing: .16em;
  line-height: 1.6;
}
.practice__en {
  display: block;
  margin-top: 6px;
  font-family: var(--f-en);
  font-style: italic;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--c-greige);
  line-height: 1.4;
}
.practice__desc {
  display: block;
  margin-top: 22px;
  font-size: 13.5px;
  line-height: 2.1;
  letter-spacing: .06em;
  color: rgba(242, 240, 235, .66);
  max-width: 30em;
}
.practice__arrow {
  justify-self: end;
  margin-top: 18px;
  width: 26px;
  color: rgba(242, 240, 235, .6);
  transition: transform .7s var(--ease-out), color .5s var(--ease);
}
@media (hover: hover) {
  .practice__link:hover::after { transform: scaleX(1); transform-origin: left center; }
  .practice__link:hover .practice__arrow { transform: translateX(8px); color: var(--c-ivory); }
}

/* =========================================================
   04 LAWYER
   ========================================================= */
.lawyer {
  padding: var(--sec-y) var(--side);
  background: var(--c-ivory);
}
.lawyer__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(56px, 8vw, 144px);
  max-width: 1280px;
  margin: 0 auto;
  align-items: start;
}
.lawyer__visual {
  position: sticky;
  top: calc(var(--header-h) + 48px);
}
.lawyer__photo { aspect-ratio: 3 / 4; position: relative; }
.lawyer__photo img { width: 100%; height: 100%; object-fit: cover; }
.lawyer__caption {
  margin-top: 14px;
  font-family: var(--f-en);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--c-gray);
}
.lawyer__body { padding-top: clamp(0px, 2vw, 32px); }
.lawyer__catch {
  margin-top: clamp(48px, 5vw, 72px);
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(26px, 2.5vw, 38px);
  line-height: 1.85;
  letter-spacing: .14em;
}
.lawyer__profile {
  margin-top: clamp(48px, 5vw, 72px);
  padding: 32px 0;
  border-top: 1px solid var(--c-black);
  border-bottom: 1px solid var(--c-line-dark);
}
.lawyer__role {
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--c-gray);
}
.lawyer__name {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 10px;
}
.lawyer__name-ja {
  font-family: var(--f-serif);
  font-size: clamp(22px, 1.9vw, 28px);
  letter-spacing: .22em;
  line-height: 1.5;
}
.lawyer__name-en {
  font-family: var(--f-en);
  font-style: italic;
  font-size: 16px;
  letter-spacing: .08em;
  color: var(--c-greige);
}
.lawyer__assoc { margin-top: 10px; font-size: 12.5px; color: var(--c-gray); letter-spacing: .1em; }
.lawyer__message {
  position: relative;
  margin-top: 48px;
  padding-left: clamp(0px, 3vw, 48px);
  font-family: var(--f-serif);
  font-weight: 300;
  font-size: 15px;
  line-height: 2.35;
  letter-spacing: .1em;
  color: #2f2f2e;
}
.lawyer__message p + p { margin-top: 1.2em; }
.lawyer__q {
  position: absolute;
  left: -6px; top: -26px;
  font-family: var(--f-en);
  font-size: 64px;
  line-height: 1;
  color: var(--c-greige);
  opacity: .7;
}
.lawyer__career {
  margin-top: 56px;
  border-top: 1px solid var(--c-line-dark);
}
.lawyer__career-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-line-dark);
  font-size: 13.5px;
  line-height: 2;
}
.lawyer__career dt {
  font-family: var(--f-serif);
  letter-spacing: .18em;
  color: var(--c-gray);
}

/* =========================================================
   05 FLOW
   ========================================================= */
.flow {
  padding: var(--sec-y) var(--side);
  background: var(--c-greige-pale);
}
.flow__inner { max-width: 1280px; margin: 0 auto; }
.flow__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(64px, 6.4vw, 104px);
  border-top: 1px solid rgba(32, 32, 32, .3);
}
.flow__step {
  position: relative;
  padding: 40px clamp(20px, 2.4vw, 40px) 8px;
}
.flow__step + .flow__step { border-left: 1px solid var(--c-line-dark); }
.flow__step::before {
  content: "";
  position: absolute;
  left: -3px; top: -3.5px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-black);
}
.flow__step:first-child::before { left: 0; }
.flow__label {
  font-family: var(--f-en);
  font-size: 12px;
  letter-spacing: .3em;
  color: #6e675b;
  line-height: 1;
}
.flow__num {
  margin-top: 10px;
  font-family: var(--f-en);
  font-weight: 400;
  font-size: clamp(56px, 5vw, 80px);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--c-black);
}
.flow__title {
  margin-top: 28px;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: .16em;
  line-height: 1.6;
}
.flow__desc {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 2.05;
  color: #4a4844;
}

/* =========================================================
   06 NEWS
   ========================================================= */
.news {
  padding: var(--sec-y) var(--side);
  background: var(--c-ivory);
}
.news__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 48px;
}
.news__list { border-top: 1px solid var(--c-black); }
.news__item { border-bottom: 1px solid var(--c-line-dark); }
.news__link, .news__item--empty {
  display: grid;
  grid-template-columns: 120px 140px 1fr 40px;
  align-items: center;
  gap: 16px;
  padding: 30px 0;
  font-size: 14px;
}
.news__item--empty { grid-template-columns: 120px 140px 1fr; }
.news__date {
  font-family: var(--f-en);
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--c-gray);
}
.news__cat {
  justify-self: start;
  font-family: var(--f-en);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--c-greige);
  text-transform: uppercase;
}
.news__title { font-family: var(--f-serif); letter-spacing: .1em; }
.news__item--empty .news__title { color: var(--c-gray); }
.news__arrow { justify-self: end; width: 26px; }
@media (hover: hover) {
  .news__link:hover .news__arrow { transform: translateX(6px); }
}

/* =========================================================
   07 ACCESS
   ========================================================= */
.access {
  padding: 0 0 var(--sec-y);
  background: var(--c-ivory);
}
.access__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 44%);
  gap: clamp(48px, 7vw, 120px);
  padding-left: var(--side);
  align-items: center;
  border-top: 1px solid var(--c-line-dark);
  padding-top: var(--sec-y);
  margin: 0 0 0 var(--side);
  padding-left: 0;
}
.access__body { max-width: 640px; }
.access__info {
  margin-top: clamp(48px, 5vw, 72px);
  border-top: 1px solid var(--c-black);
}
.access__row {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--c-line-dark);
  font-size: 14px;
  line-height: 2;
}
.access__row dt {
  font-family: var(--f-serif);
  letter-spacing: .2em;
  color: var(--c-gray);
}
.access__row dd { letter-spacing: .08em; }
.access__en {
  display: block;
  font-family: var(--f-en);
  font-size: 12px;
  letter-spacing: .26em;
  color: var(--c-greige);
}
.access__map { margin-top: 44px; }
.access__visual { position: relative; }
.access__visual img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.access__caption {
  margin-top: 14px;
  font-family: var(--f-en);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--c-gray);
}

/* =========================================================
   08 CONTACT
   ========================================================= */
.contact {
  position: relative;
  padding: calc(var(--sec-y) * 1.15) var(--side);
  background: var(--c-black);
  color: var(--c-ivory);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.contact__bg {
  position: absolute; inset: 0; z-index: -1;
  opacity: .08;
}
.contact__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.contact__inner { max-width: 960px; margin: 0 auto; }
.contact__catch {
  margin-top: clamp(48px, 5vw, 72px);
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 50px);
  line-height: 1.85;
  letter-spacing: .14em;
}
.contact__text {
  margin-top: 32px;
  font-size: 14px;
  line-height: 2.2;
  letter-spacing: .12em;
  color: rgba(242, 240, 235, .72);
}
.contact__actions { margin-top: clamp(48px, 5vw, 72px); display: flex; justify-content: center; }

.btn-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-width: 340px;
  padding: 24px 32px 24px 36px;
  border: 1px solid rgba(242, 240, 235, .5);
  font-family: var(--f-serif);
  font-size: 14px;
  letter-spacing: .2em;
  overflow: hidden;
  isolation: isolate;
  transition: color .6s var(--ease), border-color .6s var(--ease);
}
.btn-line::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--c-ivory);
  transform: scaleX(0); transform-origin: right center;
  transition: transform .7s var(--ease-out);
}
@media (hover: hover) {
  .btn-line:hover { color: var(--c-black); border-color: var(--c-ivory); }
  .btn-line:hover::before { transform: scaleX(1); transform-origin: left center; }
  .btn-line:hover .arrow { transform: translateX(6px); }
}
.btn-line--dark { border-color: var(--c-black); color: var(--c-black); }
.btn-line--dark::before { background: var(--c-black); }
@media (hover: hover) {
  .btn-line--dark:hover { color: var(--c-ivory); border-color: var(--c-black); }
}

/* =========================================================
   09 FOOTER
   ========================================================= */
.footer {
  background: var(--c-black);
  color: var(--c-ivory);
  border-top: 1px solid var(--c-line-light);
}
.footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px 40px;
  padding: clamp(72px, 7vw, 112px) var(--side) 40px;
  max-width: calc(1280px + var(--side) * 2);
  margin: 0 auto;
}
.footer__nav ul {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 16px 56px;
}
.footer__nav a { font-family: var(--f-serif); font-size: 13px; letter-spacing: .16em; color: rgba(242,240,235,.85); }
.footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--c-line-light);
  font-size: 12px;
  color: rgba(242, 240, 235, .55);
}
.footer__privacy { letter-spacing: .12em; }
.footer__copy { font-family: var(--f-en); letter-spacing: .2em; }
.footer__copy small { font-size: 12px; }
.footer__top {
  position: absolute;
  right: var(--side);
  top: clamp(72px, 7vw, 112px);
  display: none;
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.js .js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s var(--ease), transform 1.4s var(--ease-out);
}
.js .js-reveal.is-in { opacity: 1; transform: none; }
.js .js-reveal-img { overflow: hidden; }
.js .js-reveal-img img {
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s var(--ease), transform 2.6s var(--ease-out);
}
.js .js-reveal-img.is-in img { opacity: 1; transform: scale(1); }
.js .practice__item.js-reveal:nth-child(2n) { transition-delay: .12s; }
.js .flow__step.js-reveal:nth-child(2) { transition-delay: .1s; }
.js .flow__step.js-reveal:nth-child(3) { transition-delay: .2s; }
.js .flow__step.js-reveal:nth-child(4) { transition-delay: .3s; }

/* =========================================================
   DRAWER (SP)
   ========================================================= */
.drawer { display: none; }

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 1100px) {
  .fv { grid-template-columns: 40% 60%; }
  .fv__nav ul { gap: 24px; }
  .gheader__nav ul { gap: 22px; }
  .gheader__nav a { font-size: 12px; letter-spacing: .1em; }
  .philosophy__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .philosophy__body { padding-left: 56px; }
  .news__inner { grid-template-columns: 1fr; gap: 48px; }
  .access__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 40%); }
}

@media (max-width: 960px) and (min-width: 769px) {
  .gheader__nav ul { gap: 18px; }
  .gheader__contact { padding: 8px 14px; }
  .fv__nav { right: 28px; }
  .fv__nav ul { gap: 18px; }
  .fv__nav a { font-size: 12px; letter-spacing: .12em; }
  .fv__catch { font-size: 28px; }
  .practice__head { flex-direction: column; align-items: flex-start; }
  .lawyer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; }
  .flow__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow__step:nth-child(3) { border-left: 0; }
  .flow__step:nth-child(n+3) { border-top: 1px solid var(--c-line-dark); margin-top: 32px; }
  .flow__step:nth-child(3)::before, .flow__step:nth-child(4)::before { display: none; }
}

/* =========================================================
   SMARTPHONE
   ========================================================= */
@media (max-width: 768px) {
  :root { --header-h: 64px; --side: 24px; --sec-y: 104px; }
  body { font-size: 14px; }

  /* header (always visible on SP) */
  .gheader {
    transform: none;
    height: var(--header-h);
    padding: 0 20px 0 24px;
    background: transparent;
    border-bottom-color: transparent;
    color: var(--c-ivory);
  }
  .gheader.is-solid {
    background: rgba(32, 32, 32, .96);
    border-bottom-color: var(--c-line-light);
  }
  .gheader__nav { display: none; }
  .gheader__brand .brand-ja { font-size: 15px; letter-spacing: .2em; }
  .gheader__brand .brand-en { font-size: 8.5px; margin-top: 6px; letter-spacing: .3em; }
  .gheader__brand { opacity: 0; transition: opacity 1.4s var(--ease) .2s; }
  .is-loaded .gheader__brand { opacity: 1; }

  .menu-btn {
    display: block;
    position: relative;
    width: 44px; height: 44px;
    margin-right: -8px;
    z-index: 60;
  }
  .menu-btn__line {
    position: absolute;
    left: 10px;
    width: 24px; height: 1px;
    background: currentColor;
    transition: transform .6s var(--ease-out), top .6s var(--ease-out), width .6s var(--ease-out);
  }
  .menu-btn__line:nth-child(1) { top: 18px; }
  .menu-btn__line:nth-child(2) { top: 26px; width: 16px; left: 18px; }
  .is-menu-open .menu-btn__line:nth-child(1) { top: 22px; transform: rotate(25deg); }
  .is-menu-open .menu-btn__line:nth-child(2) { top: 22px; left: 10px; width: 24px; transform: rotate(-25deg); }
  .is-menu-open .gheader { background: transparent; border-bottom-color: transparent; }

  .drawer {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-h) + 40px) 24px 32px;
    background: var(--c-black);
    color: var(--c-ivory);
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s var(--ease), visibility 0s linear .6s;
    overflow-y: auto;
  }
  .is-menu-open .drawer { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
  .drawer__nav ol { border-top: 1px solid var(--c-line-light); }
  .drawer__nav li {
    border-bottom: 1px solid var(--c-line-light);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .7s var(--ease), transform .9s var(--ease-out);
  }
  .is-menu-open .drawer__nav li { opacity: 1; transform: none; }
  .is-menu-open .drawer__nav li:nth-child(1) { transition-delay: .12s; }
  .is-menu-open .drawer__nav li:nth-child(2) { transition-delay: .18s; }
  .is-menu-open .drawer__nav li:nth-child(3) { transition-delay: .24s; }
  .is-menu-open .drawer__nav li:nth-child(4) { transition-delay: .30s; }
  .is-menu-open .drawer__nav li:nth-child(5) { transition-delay: .36s; }
  .drawer__nav a {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: baseline;
    padding: 20px 0;
  }
  .drawer__num { font-family: var(--f-en); font-size: 13px; color: var(--c-greige); letter-spacing: .1em; }
  .drawer__ja { font-family: var(--f-serif); font-size: 17px; letter-spacing: .18em; }
  .drawer__en { font-family: var(--f-en); font-style: italic; font-size: 13px; color: var(--c-greige); letter-spacing: .04em; }
  .drawer__contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding: 22px 24px;
    border: 1px solid rgba(242, 240, 235, .5);
    font-family: var(--f-serif);
    font-size: 14px;
    letter-spacing: .2em;
    opacity: 0;
    transition: opacity .8s var(--ease) .4s;
  }
  .is-menu-open .drawer__contact { opacity: 1; }
  .drawer__brand { margin-top: auto; padding-top: 48px; }
  .drawer__brand .brand-ja { font-size: 14px; }
  .drawer__brand .brand-en { font-size: 9px; }
  .is-menu-open { overflow: hidden; }

  /* FV */
  .fv {
    display: block;
    height: 100vh;
    height: 100svh;
    min-height: 600px;
  }
  .fv__visual {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  .fv__visual img { object-position: 50% 50%; }
  .fv__visual::before {
    height: auto;
    inset: 0;
    background:
      linear-gradient(to bottom, rgba(18,18,18,.55) 0%, rgba(18,18,18,.36) 30%, rgba(18,18,18,.3) 55%, rgba(18,18,18,.62) 100%);
  }
  .fv__nav, .fv__scroll { display: none; }
  .fv__panel {
    height: 100%;
    padding: calc(var(--header-h) + 8px) 24px max(36px, env(safe-area-inset-bottom));
    background: transparent;
  }
  .fv__brand { display: none; }
  .fv__copy {
    margin-top: 13vh;
    margin-bottom: auto;
    padding-top: 0;
  }
  .fv__catch {
    font-size: clamp(27px, 8.2vw, 36px);
    line-height: 1.75;
    letter-spacing: .12em;
    text-shadow: 0 0 24px rgba(0, 0, 0, .25);
  }
  .fv__sub {
    text-shadow: 0 0 16px rgba(0, 0, 0, .35);
    margin-top: 24px;
    font-size: 13px;
    line-height: 2.2;
    color: rgba(255, 255, 255, .88);
  }
  .fv__contact { width: 100%; }
  .fv__contact-rule { background: rgba(255, 255, 255, .45); }

  /* Philosophy */
  .philosophy { padding-top: 96px; }
  .philosophy__inner { grid-template-columns: 1fr; padding-right: 0; }
  .philosophy__visual { padding-bottom: 72px; margin-right: 24px; }
  .philosophy__main { width: 86%; }
  .philosophy__sub { width: 46%; right: 0; outline-width: 10px; }
  .philosophy__vertical { left: calc(86% + 10px); font-size: 12px; }
  .philosophy__body { padding: 64px 24px 0; max-width: none; }
  .philosophy__catch { font-size: 25px; }
  .philosophy__text { font-size: 14px; line-height: 2.2; }

  /* Practice */
  .practice__head { flex-direction: column; align-items: flex-start; gap: 32px; padding-bottom: 48px; }
  .practice__lead { font-size: 13px; }
  .practice__list { grid-template-columns: 1fr; }
  .practice__link { grid-template-columns: 44px 1fr 28px; padding: 32px 0 34px; }
  .practice__num { font-size: 14px; padding-top: 4px; }
  .practice__title { font-size: 18px; }
  .practice__desc { margin-top: 16px; font-size: 13px; }
  .practice__arrow { width: 20px; margin-top: 16px; }

  /* Lawyer */
  .lawyer__inner { grid-template-columns: 1fr; gap: 0; }
  .lawyer__visual { position: static; width: 82%; order: 2; margin-top: 56px; }
  .lawyer__body { display: contents; }
  .lawyer__body > .sec-head { order: 0; }
  .lawyer__catch { order: 1; font-size: 25px; margin-top: 40px; }
  .lawyer__profile { order: 3; margin-top: 48px; }
  .lawyer__message { order: 4; padding-left: 0; margin-top: 56px; font-size: 14px; line-height: 2.2; }
  .lawyer__q { top: -34px; left: -4px; }
  .lawyer__career { order: 5; margin-top: 48px; }
  .lawyer__career-row { grid-template-columns: 80px 1fr; gap: 16px; font-size: 13px; }
  .lawyer .note { order: 6; }

  /* Flow */
  .flow__list {
    grid-template-columns: 1fr;
    margin-top: 56px;
    border-top: 0;
    border-left: 1px solid rgba(32, 32, 32, .3);
    margin-left: 4px;
  }
  .flow__step {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 20px;
    padding: 0 0 48px 28px;
  }
  .flow__step:last-child { padding-bottom: 8px; }
  .flow__step + .flow__step { border-left: 0; }
  .flow__step::before { left: -3.5px; top: 4px; }
  .flow__step:first-child::before { left: -3.5px; }
  .flow__label { grid-column: 1 / -1; }
  .flow__num { font-size: 52px; margin-top: 8px; grid-row: 2 / 4; }
  .flow__title { margin-top: 8px; font-size: 17px; align-self: center; }
  .flow__desc { grid-column: 1 / -1; margin-top: 14px; font-size: 13px; }

  /* News */
  .news__link, .news__item--empty {
    grid-template-columns: auto 1fr 24px;
    gap: 6px 20px;
    padding: 24px 0;
  }
  .news__item--empty { grid-template-columns: auto 1fr; }
  .news__title { grid-column: 1 / 3; font-size: 14px; line-height: 1.9; }
  .news__arrow { grid-row: 1 / 3; grid-column: 3; width: 18px; }
  .news__date { font-size: 14px; }

  /* Access */
  .access__inner { grid-template-columns: 1fr; margin: 0 24px; gap: 56px; }
  .access__row { grid-template-columns: 88px 1fr; gap: 16px; padding: 20px 0; font-size: 13.5px; }
  .access__visual { margin-right: -24px; }
  .access__visual img { aspect-ratio: 4 / 4.4; }

  /* Contact */
  .contact { padding: 120px 24px; }
  .contact__catch { font-size: 25px; line-height: 1.9; }
  .contact__text { font-size: 13px; letter-spacing: .08em; }
  .btn-line { min-width: 0; width: 100%; padding: 22px 24px; }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr; padding: 72px 24px 32px; gap: 48px; }
  .footer__nav ul { grid-template-columns: repeat(2, auto); gap: 18px 24px; justify-content: start; }
  .footer__bottom { flex-direction: column-reverse; align-items: flex-start; gap: 16px; }
  .footer__top { display: inline-flex; align-items: center; gap: 10px; top: 72px; right: 24px; font-family: var(--f-en); font-size: 11px; letter-spacing: .24em; color: var(--c-greige); }
}

@media (max-width: 374px) {
  .fv__catch { font-size: 25px; letter-spacing: .1em; }
  .drawer__en { display: none; }
}

/* =========================================================
   SUB PAGES (contact / privacy)
   ========================================================= */
.subpage .gheader { transform: none; }
.page-head {
  padding: calc(var(--header-h) + clamp(80px, 10vw, 160px)) var(--side) clamp(64px, 6vw, 96px);
  background: var(--c-black);
  color: var(--c-ivory);
}
.page-head__inner { max-width: 960px; margin: 0 auto; }
.page-head__title {
  margin-top: 24px;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 38px);
  letter-spacing: .16em;
  line-height: 1.7;
}
.page-head__lead { margin-top: 24px; font-size: 14px; line-height: 2.2; color: rgba(242,240,235,.72); }
.page-body { padding: clamp(72px, 8vw, 128px) var(--side) var(--sec-y); }
.page-body__inner { max-width: 960px; margin: 0 auto; }
.breadcrumb { font-family: var(--f-en); font-size: 12px; letter-spacing: .2em; color: var(--c-greige); }
.breadcrumb a { color: inherit; }

.form-notice {
  padding: 24px 28px;
  border: 1px solid var(--c-greige);
  font-size: 13.5px;
  line-height: 2;
  color: #4a4844;
}
.form { margin-top: 56px; border-top: 1px solid var(--c-black); }
.form__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--c-line-dark);
  align-items: start;
}
.form__label { font-family: var(--f-serif); font-size: 14px; letter-spacing: .14em; padding-top: 12px; }
.form__req { margin-left: 12px; font-family: var(--f-sans); font-size: 11px; letter-spacing: .1em; color: var(--c-greige); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(32,32,32,.3);
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  letter-spacing: .06em;
  color: var(--c-black);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .4s var(--ease);
}
.form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--c-black) 50%), linear-gradient(135deg, var(--c-black) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.form textarea { min-height: 200px; resize: vertical; line-height: 1.9; border: 1px solid rgba(32,32,32,.3); padding: 14px 16px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--c-black); }
.form__check { display: flex; gap: 12px; align-items: center; font-size: 13.5px; }
.form__check input { width: 16px; height: 16px; accent-color: var(--c-black); }
.form__check a { text-decoration: underline; text-underline-offset: 4px; }
.form__submit { margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.form__status { min-height: 1em; font-size: 13.5px; line-height: 2; color: #7a3b2e; text-align: center; }
.btn-line[disabled] { opacity: .5; cursor: not-allowed; }

.prose h2 {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--c-line-dark);
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: .14em;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: 20px; font-size: 14px; line-height: 2.2; color: #3a3a39; }
.prose ul { padding-left: 1.2em; list-style: disc; }

@media (max-width: 768px) {
  .subpage .gheader { background: rgba(32,32,32,.96); }
  .form__row { grid-template-columns: 1fr; gap: 4px; padding: 24px 0; }
  .form__label { padding-top: 0; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .js-reveal, .js .js-reveal-img img,
  .fv__line > span, .fv__visual img,
  .fv__brand, .fv__sub, .fv__contact, .fv__nav, .fv__scroll { opacity: 1 !important; transform: none !important; }
}
