/* ========================================
   RINA NAIL LINKS
   AMATERASU Web Studio Sample
   ======================================== */

:root {
  --stone: #2a2421;
  --stone-2: #5c524c;
  --stone-3: #8a7f77;
  --line: #e6ddd6;
  --paper: #f7f1ec;
  --paper-2: #fff9f5;
  --blush: #d9b5a8;
  --blush-2: #c89a8b;
  --nude: #e8d2c6;
  --milk: #f3e6dc;
  --champagne: #b9a08a;
  --font-display: "Bodoni Moda", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.8;
  color: var(--stone);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  animation: page-in 0.9s ease both;
}

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

ul {
  list-style: none;
}

/* ---------- Layout ---------- */

.layout {
  width: 100%;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
}

/* ---------- Identity（写真は左／上部のビジュアルとして使用） ---------- */

.identity {
  position: relative;
  padding: 0 0 28px;
  background: var(--paper);
  overflow: hidden;
}

/* スマホ：写真エリア〜Links の境目を縦グラデで溶かす */
.identity::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 249, 245, 0) 0%,
    rgba(255, 249, 245, 0.4) 42%,
    var(--paper-2) 100%
  );
}

.identity__media {
  position: relative;
  height: clamp(220px, 58vw, 300px);
  margin: 0;
  overflow: hidden;
}

.identity__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(247, 241, 236, 0.05) 40%,
    rgba(247, 241, 236, 0.72) 78%,
    var(--paper) 100%
  );
  pointer-events: none;
}

.identity__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  transform: scale(1.06);
}

.identity__body {
  position: relative;
  z-index: 3;
  padding: 8px 24px 0;
  text-align: center;
}

.identity__brand {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: var(--champagne);
  margin-bottom: 14px;
}

.identity__name {
  font-family: var(--font-display);
  font-size: clamp(56px, 16vw, 72px);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  line-height: 0.95;
  margin-bottom: 10px;
}

.identity__role {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: var(--stone-3);
  margin-bottom: 22px;
}

.identity__catch {
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.identity__lead {
  max-width: 28em;
  margin: 0 auto;
  font-size: 13px;
  color: var(--stone-2);
  letter-spacing: 0.04em;
  line-height: 1.9;
}

/* ---------- Panel（リンク側） ---------- */

.panel {
  position: relative;
  padding: 20px 20px 40px;
  background: var(--paper-2);
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 249, 245, 0.95) 0%,
    rgba(255, 249, 245, 0) 100%
  );
}

.nav,
.about,
.foot {
  position: relative;
  z-index: 1;
}

.nav__label,
.about__heading {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--champagne);
  margin-bottom: 8px;
}

.nav__list {
  border-top: 1px solid var(--line);
}

.nav__item {
  display: grid;
  grid-template-columns: 28px 1fr 18px;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease, padding-left 0.25s ease;
}

.nav__item--accent .nav__title {
  color: var(--stone);
  font-weight: 500;
}

.nav__item--accent .nav__note {
  color: var(--stone-2);
}

.nav__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--champagne);
  transition: color 0.25s ease;
}

.nav__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav__icon--line {
  width: 24px;
  height: 24px;
}

.nav__item:hover .nav__icon,
.nav__item:focus-visible .nav__icon {
  color: var(--stone-2);
}

.nav__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.nav__title {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.nav__note {
  font-size: 11px;
  color: var(--stone-3);
  letter-spacing: 0.04em;
}

.nav__chev {
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--stone-3);
  border-right: 1px solid var(--stone-3);
  transform: rotate(45deg);
  justify-self: end;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.nav__item:hover,
.nav__item:focus-visible {
  background: rgba(232, 210, 198, 0.28);
  padding-left: 8px;
  outline: none;
}

.nav__item:hover .nav__chev,
.nav__item:focus-visible .nav__chev {
  transform: rotate(45deg) translate(2px, -2px);
  border-color: var(--blush-2);
}

.nav__item:active {
  background: rgba(232, 210, 198, 0.4);
}

/* ---------- About / Footer ---------- */

.about {
  margin-top: 40px;
  padding-top: 4px;
}

.about__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.about__list li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: var(--stone-2);
  letter-spacing: 0.03em;
  line-height: 1.75;
}

.about__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 1px;
  background: var(--blush);
}

.foot {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.foot__notice {
  font-size: 11px;
  color: var(--stone-3);
  letter-spacing: 0.02em;
  line-height: 1.7;
}

/* ---------- Animations ---------- */

@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes kenburns {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.14) translate3d(0, -2.5%, 0);
  }
}

@keyframes line-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.js-ready .identity__media.is-in .identity__img {
  animation: kenburns 18s ease-out forwards;
}

.js-ready .reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}

.js-ready .reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.js-ready .reveal--fade {
  transform: none;
}

.js-ready .nav__list > li.reveal.is-in .nav__item {
  transition:
    background 0.25s ease,
    padding-left 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s ease;
}

.js-ready .about__list > li.reveal.is-in::before {
  animation: line-grow 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: left center;
}

/* ---------- 375 / 390 / 430 ---------- */

@media (min-width: 375px) {
  .identity__media {
    height: clamp(240px, 56vw, 320px);
  }

  .identity__body,
  .panel {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 390px) {
  .identity__media {
    height: clamp(250px, 55vw, 340px);
  }

  .nav__item {
    min-height: 68px;
  }
}

@media (min-width: 430px) {
  .identity__media {
    height: 320px;
  }

  .identity__body {
    padding-top: 4px;
  }
}

/* ---------- Tablet ---------- */

@media (min-width: 768px) {
  .identity__media {
    max-width: 520px;
    height: 380px;
    margin: 0 auto;
    border-radius: 0 0 24px 24px;
  }

  .identity__body {
    max-width: 480px;
    margin: 0 auto;
  }

  .panel {
    max-width: 560px;
    margin: 0 auto;
    padding: 12px 32px 56px;
  }
}

/* ---------- Desktop：左右分割の本格レイアウト ---------- */

@media (min-width: 1024px) {
  body {
    background: var(--paper-2);
  }

  .layout {
    grid-template-columns: minmax(400px, 46vw) 1fr;
    min-height: 100dvh;
  }

  .identity {
    position: sticky;
    top: 0;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
    border-right: none;
    background: #ead9ce;
  }

  .identity::after {
    display: none;
  }

  /* 左右の境目をグラデーションで滑らかに繋ぐ */
  .identity::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(140px, 22%);
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
      90deg,
      rgba(255, 249, 245, 0) 0%,
      rgba(255, 249, 245, 0.35) 40%,
      rgba(255, 249, 245, 0.78) 72%,
      var(--paper-2) 100%
    );
  }

  .identity__media {
    position: absolute;
    inset: 0;
    max-width: none;
    height: auto;
    margin: 0;
    border-radius: 0;
  }

  .identity__media::after {
    background: linear-gradient(
      180deg,
      rgba(42, 36, 33, 0.08) 0%,
      rgba(42, 36, 33, 0.02) 28%,
      rgba(247, 241, 236, 0.2) 48%,
      rgba(247, 241, 236, 0.82) 72%,
      rgba(247, 241, 236, 0.96) 100%
    );
  }

  .identity__img {
    object-position: center 22%;
  }

  .identity__body {
    position: relative;
    z-index: 3;
    text-align: left;
    max-width: none;
    margin: 0;
    padding: 48px 56px 52px 48px;
  }

  .identity__brand {
    font-size: 12px;
    margin-bottom: 18px;
  }

  .identity__name {
    font-size: clamp(72px, 7vw, 96px);
    margin-bottom: 14px;
  }

  .identity__role {
    margin-bottom: 28px;
  }

  .identity__catch {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .identity__lead {
    margin: 0;
    max-width: 34em;
    font-size: 13.5px;
  }

  .panel {
    position: relative;
    max-width: none;
    margin: 0;
    padding: 72px clamp(48px, 6vw, 96px) 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100dvh;
    background: var(--paper-2);
  }

  .panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    width: 48px;
    height: auto;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
      90deg,
      rgba(255, 249, 245, 0.5) 0%,
      rgba(255, 249, 245, 0) 100%
    );
  }

  .nav,
  .about,
  .foot {
    position: relative;
    z-index: 1;
  }

  .nav {
    max-width: 560px;
  }

  .nav__label {
    margin-bottom: 12px;
  }

  .nav__item {
    min-height: 76px;
    grid-template-columns: 32px 1fr 24px;
    padding: 18px 8px;
  }

  .nav__title {
    font-size: 15.5px;
  }

  .nav__item:hover,
  .nav__item:focus-visible {
    padding-left: 16px;
  }

  .about {
    max-width: 520px;
    margin-top: 48px;
  }

  .about__list li {
    font-size: 13.5px;
  }

  .foot {
    max-width: 520px;
    margin-top: 48px;
  }
}

@media (min-width: 1280px) {
  .layout {
    grid-template-columns: minmax(460px, 44vw) 1fr;
  }

  .identity__body {
    padding: 56px 64px 60px;
  }

  .panel {
    padding-left: clamp(64px, 8vw, 120px);
  }

  .nav {
    max-width: 600px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  body {
    opacity: 1;
  }

  .js-ready .reveal,
  .js-ready .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  .js-ready .identity__media.is-in .identity__img {
    transform: scale(1.06);
  }
}
