/*
Theme Name: NEARY DESIGN
Description: NEARY DESIGNのSEO・グラフィック・映像制作ポートフォリオ。
Version: 1.0.2
Author: NEARY DESIGN
Text Domain: neary-design
Requires at least: 6.0
Requires PHP: 7.4
*/
:root {
  --ink: #16150f;
  --soft-ink: #242628;
  --paper: #f3f1ec;
  --paper-warm: #e9e6df;
  --line: rgba(16, 17, 18, 0.16);
  --silver: #a8adb0;
  --brand-black: #16150f;
  --brand-cream: #f0ebe0;
  --serif: "Times New Roman", "YuMincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: Inter, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::selection {
  color: white;
  background: var(--ink);
}

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

svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 76px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: white;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: block;
  width: 66px;
  height: auto;
  flex: 0 0 auto;
}

.brand-name {
  color: var(--brand-cream);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.25em;
  white-space: nowrap;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.5vw, 54px);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-header nav > a:not(.nav-contact) {
  opacity: 0.72;
  transition: opacity 0.25s ease;
}

.site-header nav > a:hover {
  opacity: 1;
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
}

.nav-contact svg {
  width: 14px;
  height: 14px;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 76% 23%, rgba(154, 160, 166, 0.18), transparent 28%),
    linear-gradient(134deg, #0b0b08 0%, var(--brand-black) 53%, #080805 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.33'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero-grid {
  position: absolute;
  inset: 92px clamp(24px, 5vw, 76px) 0;
  z-index: 1;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, transparent 49.95%, rgba(255, 255, 255, 0.08) 50%, transparent 50.05%);
}

.marble {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.92) 0 6%, transparent 18%),
    radial-gradient(ellipse at 70% 50%, transparent 0 35%, rgba(45,49,52,.7) 36% 38%, transparent 40%),
    repeating-radial-gradient(ellipse at 20% 85%, #d6d6d2 0 8px, #747a7e 10px 14px, #ecebe7 18px 29px, #333638 32px 34px);
  box-shadow: inset -24px -30px 50px rgba(0,0,0,.6), 0 45px 100px rgba(0,0,0,.55);
  opacity: 0.2;
}

.marble-one {
  width: min(34vw, 540px);
  aspect-ratio: 1;
  right: -10vw;
  top: 5vh;
}

.marble-two {
  width: min(18vw, 260px);
  aspect-ratio: 1;
  left: 28vw;
  bottom: -10vw;
  opacity: 0.1;
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 100svh;
  padding: clamp(132px, 15vh, 180px) clamp(24px, 7vw, 108px) 82px;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(280px, .58fr);
  grid-template-rows: auto auto auto;
  column-gap: clamp(42px, 6vw, 96px);
  align-content: center;
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.eyebrow span {
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero-copy > .eyebrow {
  grid-column: 1;
  align-self: end;
}

.hero h1 {
  position: relative;
  grid-column: 1;
  margin: clamp(28px, 5vh, 56px) 0 clamp(42px, 7vh, 72px);
  font-family: var(--serif);
  font-size: clamp(58px, 8.1vw, 124px);
  font-weight: 400;
  line-height: 0.72;
  letter-spacing: -0.055em;
}

.hero-line {
  display: block;
  animation: rise 1s cubic-bezier(.2,.8,.2,1) both;
}

.hero-line-right {
  text-align: right;
  animation-delay: 0.1s;
}

.hero-amp {
  position: absolute;
  z-index: 2;
  top: 49%;
  left: 49%;
  transform: translate(-50%, -50%);
  color: #b7bbbd;
  font-size: 0.46em;
  font-style: italic;
  text-shadow: 0 3px 30px #000;
}

.hero-bottom {
  grid-column: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
}

.hero-intro {
  margin: 0;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.67);
  font-size: clamp(12px, 1.15vw, 15px);
  line-height: 2;
  letter-spacing: 0.05em;
}

.hero-intro strong {
  color: white;
  font-weight: 500;
}

.hero-disc {
  width: clamp(148px, 15vw, 224px);
}

.disc-ring {
  width: 100%;
  display: grid;
  place-items: center;
}

.disc-ring .disc-mark {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.35));
}

.hero-meta {
  grid-column: 1 / -1;
  justify-self: start;
  display: flex;
  gap: 24px;
  color: rgba(255, 255, 255, 0.46);
  text-align: left;
  font-size: 9px;
  letter-spacing: 0.2em;
}

.hero-artwork {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1 / 4;
  justify-self: end;
  width: min(100%, 420px);
  margin: 0;
  animation: fade-artwork 1.25s 160ms ease both;
}

.hero-artwork-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  padding: 10px;
  border: 1px solid rgba(240, 235, 224, .3);
}

.hero-artwork-frame::before,
.hero-artwork-frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  pointer-events: none;
}

.hero-artwork-frame::before {
  top: -7px;
  left: -7px;
  border-top: 1px solid #a9915d;
  border-left: 1px solid #a9915d;
}

.hero-artwork-frame::after {
  right: -7px;
  bottom: -7px;
  border-right: 1px solid #a9915d;
  border-bottom: 1px solid #a9915d;
}

.hero-artwork img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72) contrast(1.08);
}

.hero-artwork figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  color: rgba(240, 235, 224, .4);
  font-size: 10px;
  letter-spacing: .14em;
}

.hero-artwork figcaption span:first-child {
  color: #a9915d;
}

.scroll-cue {
  position: absolute;
  z-index: 5;
  right: clamp(24px, 2.6vw, 40px);
  bottom: 32px;
  display: grid;
  justify-items: center;
  gap: 13px;
  color: rgba(255,255,255,.55);
  font-size: 8px;
  letter-spacing: .22em;
}

.scroll-cue i {
  width: 1px;
  height: 48px;
  background: linear-gradient(white, transparent);
  animation: pulse 1.8s ease-in-out infinite;
}

.section {
  padding: clamp(88px, 12vw, 170px) clamp(24px, 7vw, 108px);
}

.services {
  background:
    linear-gradient(115deg, rgba(255,255,255,.48), transparent 33%),
    var(--paper);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: clamp(60px, 8vw, 110px);
}

.section-kicker {
  color: #727678;
}

.section-kicker::before {
  content: "";
  width: 27px;
  height: 1px;
  background: currentColor;
}

.section-kicker.light {
  color: rgba(255,255,255,.48);
}

.section-head h2 {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 70px);
  font-weight: 400;
  letter-spacing: .03em;
}

.section-lead {
  margin: 0;
  padding-left: 14%;
  color: #55595b;
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 2;
  letter-spacing: .06em;
}

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

.service-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px 120px 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(38px, 5vw, 68px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.35s ease, background .35s ease;
}

.service-card:hover {
  padding-left: 22px;
  padding-right: 22px;
  background: rgba(255,255,255,.42);
}

.service-number {
  padding-top: 4px;
  color: #7a7d7f;
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
}

.service-icon {
  width: 82px;
  height: 82px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #55595b;
}

.service-body {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  column-gap: clamp(30px, 7vw, 110px);
  align-items: start;
}

.service-label {
  grid-column: 1 / -1;
  margin: 0 0 12px;
  color: #7a7d7f;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
}

.service-body h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 400;
  letter-spacing: .04em;
}

.service-description {
  margin: 4px 0 28px;
  color: #5c6062;
  font-size: 13px;
  line-height: 2;
}

.service-body ul {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-body li {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #646769;
  font-size: 9px;
  letter-spacing: .08em;
}

.philosophy {
  position: relative;
  overflow: hidden;
  color: white;
  background: var(--brand-black);
}

.philosophy::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
}

.philosophy-marble {
  position: absolute;
  width: min(52vw, 760px);
  aspect-ratio: 1;
  right: -12vw;
  top: 50%;
  transform: translateY(-50%) rotate(-18deg);
  border-radius: 50%;
  opacity: .42;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.85), transparent 12%),
    repeating-radial-gradient(ellipse at 12% 80%, #d9d9d5 0 12px, #777c7f 14px 22px, #f2f0e9 28px 45px, #3d4144 48px 53px);
  box-shadow: inset -80px -90px 110px rgba(0,0,0,.72), -60px 60px 150px rgba(0,0,0,.8);
}

.philosophy-grid {
  position: relative;
  z-index: 2;
  min-height: 600px;
  display: grid;
  grid-template-columns: 60px minmax(320px, 1fr) minmax(280px, .75fr);
  gap: clamp(30px, 6vw, 100px);
  align-items: center;
}

.vertical-note {
  margin: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: rgba(255,255,255,.28);
  font-size: 8px;
  letter-spacing: .28em;
}

.philosophy-copy h2 {
  margin: 30px 0 40px;
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: .02em;
}

.philosophy-copy h2 em {
  color: #b5b9bb;
  font-weight: 400;
}

.philosophy-copy > p:last-child {
  margin: 0;
  color: rgba(255,255,255,.58);
  font-size: 13px;
  line-height: 2.2;
  letter-spacing: .05em;
}

.philosophy-values {
  align-self: end;
  margin-bottom: 40px;
  border-top: 1px solid rgba(255,255,255,.22);
}

.philosophy-values > div {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.philosophy-values span {
  color: rgba(255,255,255,.34);
  font-family: var(--serif);
  font-size: 11px;
}

.philosophy-values p {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .1em;
}

.philosophy-values small {
  color: rgba(255,255,255,.45);
  font-size: 9px;
  letter-spacing: .08em;
}

.profile {
  display: grid;
  grid-template-columns: .55fr 1.5fr .65fr;
  gap: clamp(30px, 6vw, 100px);
  align-items: center;
  min-height: 620px;
  background:
    linear-gradient(90deg, transparent 0 49.9%, rgba(0,0,0,.035) 50%, transparent 50.1%),
    var(--paper);
}

.profile-label {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #777a7c;
  font-size: 9px;
  letter-spacing: .22em;
}

.profile-label i {
  width: 65px;
  height: 1px;
  background: var(--line);
}

.profile-role {
  margin: 0 0 18px;
  color: #777a7c;
  font-size: 9px;
  letter-spacing: .22em;
}

.profile-main h2 {
  margin: 0 0 32px;
  font-family: var(--serif);
  font-size: clamp(62px, 9vw, 128px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.04em;
}

.profile-main h2 span {
  display: block;
  padding-left: 12%;
  color: #8e9293;
  font-style: italic;
}

.profile-text {
  max-width: 550px;
  margin: 0;
  color: #5d6062;
  font-size: 13px;
  line-height: 2;
  letter-spacing: .04em;
}

.profile-sign {
  justify-self: end;
}

.profile-sign .profile-mark {
  width: min(23vw, 270px);
  height: auto;
  opacity: .88;
}

.contact {
  position: relative;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: white;
  background: var(--brand-black);
}

.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
}

.contact-shine {
  position: absolute;
  z-index: 0;
  width: 60vw;
  height: 60vw;
  right: -15vw;
  top: -30vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185,190,193,.22), transparent 66%);
}

.contact > *:not(.contact-shine) {
  position: relative;
  z-index: 2;
}

.contact h2 {
  margin: 38px 0 42px;
  font-family: var(--serif);
  font-size: clamp(48px, 8.6vw, 132px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.045em;
}

.contact h2 span {
  color: #adb2b4;
  font-style: italic;
}

.contact-ja {
  max-width: 620px;
  margin: 0;
  color: rgba(255,255,255,.56);
  font-size: 13px;
  line-height: 2;
  letter-spacing: .05em;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 72px;
  color: rgba(255,255,255,.36);
  font-size: 9px;
  letter-spacing: .22em;
}

.contact-line i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

footer {
  min-height: 120px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 30px clamp(24px, 5vw, 76px);
  color: rgba(255,255,255,.66);
  background: #0b0b08;
  border-top: 1px solid rgba(255,255,255,.12);
}

.footer-brand {
  justify-self: start;
}

footer p,
.back-top {
  margin: 0;
  font-size: 8px;
  letter-spacing: .18em;
}

.back-top {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

.back-top span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(45px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-artwork {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: .25; transform: scaleY(.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

@media (max-width: 900px) {
  .site-header nav > a:not(.nav-contact) {
    display: none;
  }

  .hero-copy {
    padding-top: 148px;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    align-content: center;
  }

  .hero h1 {
    line-height: .82;
  }

  .hero-bottom {
    grid-template-columns: 1fr auto;
  }

  .hero-disc {
    align-self: end;
    width: clamp(136px, 21vw, 190px);
  }

  .hero-artwork {
    grid-column: 1;
    grid-row: auto;
    justify-self: end;
    width: min(72vw, 430px);
    margin-top: 64px;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .section-lead {
    padding-left: 0;
  }

  .service-card {
    grid-template-columns: 50px 74px 1fr;
  }

  .service-icon {
    width: 64px;
    height: 64px;
    padding: 15px;
  }

  .service-body {
    grid-template-columns: 1fr;
  }

  .service-description,
  .service-body ul {
    grid-column: 1;
  }

  .philosophy-grid {
    grid-template-columns: 36px 1fr;
  }

  .philosophy-values {
    grid-column: 2;
  }

  .profile {
    grid-template-columns: 1fr 2fr;
  }

  .profile-sign {
    display: none;
  }
}

@media (max-width: 620px) {
  .site-header {
    height: 76px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 48px;
  }

  .brand-name {
    font-size: 10px;
    letter-spacing: .19em;
  }

  .nav-contact {
    padding: 10px 12px 10px 15px;
  }

  .hero-grid {
    inset: 76px 24px 0;
  }

  .hero-copy {
    min-height: 100svh;
    padding: 130px 24px 64px;
  }

  .eyebrow {
    font-size: 8px;
  }

  .hero h1 {
    margin: 38px 0 54px;
    font-size: clamp(54px, 17vw, 82px);
    line-height: .82;
  }

  .hero-line-right {
    text-align: left;
    padding-left: 14vw;
  }

  .hero-amp {
    top: 48%;
    left: 44%;
  }

  .hero-bottom {
    display: block;
  }

  .hero-disc {
    width: 148px;
    margin-top: 32px;
  }

  .hero-meta {
    display: none;
  }

  .hero-artwork {
    width: min(100%, 420px);
    margin-top: 54px;
  }

  .hero-artwork figcaption {
    gap: 12px;
    font-size: 9px;
    letter-spacing: .09em;
  }

  .hero-intro {
    font-size: 11px;
  }

  .marble-one {
    width: 72vw;
    right: -34vw;
    top: 16vh;
  }

  .scroll-cue {
    display: none;
  }

  .section-head {
    gap: 28px;
    margin-bottom: 58px;
  }

  .service-card {
    grid-template-columns: 42px 1fr;
    gap: 18px;
  }

  .service-icon {
    display: none;
  }

  .service-body h3 {
    font-size: 29px;
  }

  .service-description {
    margin-top: 22px;
  }

  .service-card:hover {
    padding-left: 0;
    padding-right: 0;
  }

  .philosophy-grid {
    min-height: auto;
    display: block;
  }

  .vertical-note {
    display: none;
  }

  .philosophy-copy h2 {
    font-size: 42px;
  }

  .philosophy-copy > p:last-child {
    font-size: 11px;
  }

  .philosophy-values {
    margin: 72px 0 0;
  }

  .philosophy-marble {
    width: 120vw;
    right: -75vw;
  }

  .profile {
    min-height: auto;
    display: block;
  }

  .profile-label {
    margin-bottom: 52px;
  }

  .profile-main h2 {
    font-size: 72px;
  }

  .contact {
    min-height: 620px;
  }

  .contact h2 {
    line-height: .98;
  }

  .contact-ja {
    font-size: 11px;
  }

  .contact-line {
    gap: 11px;
  }

  footer {
    grid-template-columns: 1fr auto;
    min-height: 100px;
  }

  .footer-brand .brand-name {
    display: none;
  }

  footer p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* WordPress admin toolbar offset. */
body.admin-bar .site-header { top: 32px; }
.neary-content { max-width: 960px; margin: auto; padding: 80px 24px; }
.neary-content img { max-width: 100%; height: auto; }
.neary-content a { text-decoration: underline; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
