:root {
  --navy: #102139;
  --deep: #081425;
  --ink: #1e2732;
  --muted: #69727d;
  --paper: #f7f5ef;
  --white: #ffffff;
  --line: rgba(16, 33, 57, 0.14);
  --coral: #ec7067;
  --mint: #7fb8aa;
  --shadow: 0 22px 55px rgba(8, 20, 37, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.85;
  letter-spacing: 0;
}

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

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

.takumi-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 118px;
  padding: 28px 18px;
  color: var(--white);
  background: linear-gradient(180deg, var(--deep), #132641);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.takumi-brand {
  width: 100%;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
}

.brand-mark {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.11em;
}

.brand-sub {
  display: block;
  margin-top: 8px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.35;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
  width: 100%;
}

.side-nav a {
  position: relative;
  display: grid;
  gap: 2px;
  min-height: 42px;
  padding: 8px 4px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  color: rgba(255, 255, 255, 0.68);
  transition: background 0.25s ease, color 0.25s ease;
}

.side-nav a span {
  font-size: 9px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.46);
}

.side-nav a.is-active,
.side-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.side-nav a.is-active::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 12px;
  width: 3px;
  height: 22px;
  background: var(--coral);
  border-radius: 999px;
}

.side-cta {
  margin-top: auto;
  width: 100%;
  padding: 12px 8px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 12px 24px rgba(236, 112, 103, 0.25);
}

.mobile-header {
  display: none;
}

.takumi-main {
  margin-left: 118px;
  overflow: clip;
}

.takumi-hero {
  position: relative;
  min-height: 100svh;
  padding: 42px;
  display: grid;
  align-items: stretch;
  background: var(--deep);
}

.hero-photo {
  position: absolute;
  inset: 42px;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: var(--shadow);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 20, 37, 0.78), rgba(8, 20, 37, 0.3) 46%, rgba(8, 20, 37, 0.12)),
    linear-gradient(0deg, rgba(8, 20, 37, 0.44), transparent 42%);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 720px;
  padding: clamp(28px, 5vw, 64px);
  color: var(--white);
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero-copy h1,
.intro-grid h2,
.section-heading h2,
.material-copy h2,
.voice h2,
.contact-panel h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(34px, 5vw, 70px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 680px;
  font-size: clamp(34px, 4vw, 52px);
}

.hero-copy p:not(.eyebrow) {
  max-width: 460px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(15px, 1.4vw, 18px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.3;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 14px 30px rgba(236, 112, 103, 0.25);
}

.button-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.1);
}

.button-dark {
  color: var(--white);
  background: var(--navy);
}

.vertical-message {
  position: absolute;
  z-index: 3;
  right: clamp(56px, 7vw, 104px);
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  color: var(--white);
  font-size: clamp(22px, 2.2vw, 33px);
  font-weight: 800;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-shadow: 0 3px 22px rgba(8, 20, 37, 0.44);
  padding: 22px 12px;
  border-radius: 999px;
  background: rgba(8, 20, 37, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  opacity: 0;
  animation: copyIn 1s ease 0.35s forwards;
}

.intro-panel,
.works,
.before-after,
.reason,
.flow,
.voice-faq {
  padding: clamp(72px, 9vw, 130px) clamp(22px, 6vw, 88px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(300px, 1fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: start;
}

.intro-grid h2,
.section-heading h2,
.material-copy h2,
.voice h2 {
  color: var(--navy);
}

.intro-text p {
  margin: 0;
  max-width: 620px;
  color: #45505c;
  font-size: 17px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.stats div {
  padding: 22px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.stats strong {
  display: block;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading p:not(.section-label) {
  margin: 18px 0 0;
  color: #53606e;
}

.works {
  background: #fff;
}

.works-slider {
  position: relative;
}

.works-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(360px, 33vw);
  gap: 22px;
  overflow-x: auto;
  padding: 6px 0 20px;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-color: rgba(16, 33, 57, 0.25) transparent;
}

.slider-button {
  position: absolute;
  top: 42%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: var(--white);
  background: rgba(8, 20, 37, 0.72);
  box-shadow: 0 12px 28px rgba(8, 20, 37, 0.18);
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.slider-button:hover {
  transform: translateY(-2px);
  background: var(--coral);
}

.slider-prev {
  left: -12px;
}

.slider-next {
  right: -12px;
}

.work-card {
  scroll-snap-align: start;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(8, 20, 37, 0.08);
}

.work-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.work-card > div {
  padding: 24px;
}

.work-card span,
.tag {
  display: inline-flex;
  color: var(--mint);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.work-card h3 {
  margin: 10px 0 16px;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.35;
}

.work-card dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.work-card dl div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  color: #53606e;
  font-size: 14px;
}

.work-card dt {
  color: var(--navy);
  font-weight: 800;
}

.work-card dd {
  margin: 0;
}

.before-after {
  background: var(--paper);
}

.compare-wrap {
  display: grid;
  grid-template-columns: minmax(320px, 1.3fr) minmax(260px, 0.7fr);
  gap: 34px;
  align-items: center;
}

.compare {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  background: var(--deep);
}

.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.after-layer {
  position: absolute;
  inset: 0;
  width: var(--split);
  overflow: hidden;
  border-right: 3px solid var(--white);
}

.tag {
  position: absolute;
  top: 18px;
  z-index: 2;
  padding: 7px 12px;
  color: var(--white);
  border-radius: 999px;
  background: rgba(8, 20, 37, 0.68);
}

.tag.before {
  right: 18px;
}

.tag.after {
  left: 18px;
  background: rgba(127, 184, 170, 0.88);
}

.compare-range {
  position: absolute;
  inset: auto 22px 20px;
  z-index: 3;
  width: calc(100% - 44px);
  accent-color: var(--coral);
}

.compare-copy {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.compare-copy h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.35;
}

.compare-copy p {
  margin: 0;
  color: #53606e;
}

.material {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
  padding: clamp(72px, 9vw, 130px) clamp(22px, 6vw, 88px);
  background: #111a26;
  color: var(--white);
}

.material img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.26);
}

.material-copy h2 {
  color: var(--white);
}

.material-copy p:not(.section-label) {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.reason-grid article {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.reason-grid span {
  color: var(--coral);
  font-weight: 900;
}

.reason-grid h3 {
  margin: 12px 0 10px;
  color: var(--navy);
  font-size: 22px;
}

.reason-grid p {
  margin: 0;
  color: #53606e;
  font-size: 14px;
}

.flow {
  background: #fff;
}

.flow-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.flow-list li {
  min-height: 210px;
  padding: 26px 20px;
  background: var(--paper);
}

.flow-list span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--mint);
  font-weight: 900;
}

.flow-list strong {
  display: block;
  color: var(--navy);
  font-size: 19px;
}

.flow-list p {
  margin: 12px 0 0;
  color: #53606e;
  font-size: 14px;
}

.voice-faq {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: 32px;
}

.voice,
.faq-list {
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

blockquote {
  margin: 24px 0 0;
  color: #42505d;
  font-size: 18px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

details:last-child {
  border-bottom: 0;
}

summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 800;
}

details p {
  margin: 12px 0 0;
  color: #53606e;
}

.contact {
  position: relative;
  min-height: 74svh;
  display: grid;
  place-items: center;
  padding: clamp(60px, 8vw, 120px) 22px;
  overflow: hidden;
  background: var(--deep);
}

.contact > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
}

.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 20, 37, 0.86), rgba(8, 20, 37, 0.45));
}

.contact-panel {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  padding: clamp(30px, 5vw, 58px);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  backdrop-filter: blur(12px);
}

.contact-panel p:not(.section-label) {
  color: rgba(255, 255, 255, 0.8);
}

.takumi-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(22px, 6vw, 88px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--deep);
}

.takumi-footer strong {
  color: var(--white);
  letter-spacing: 0.08em;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

@keyframes copyIn {
  from {
    opacity: 0;
    transform: translateY(-45%) translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

@media (max-width: 1080px) {
  .reason-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-list li:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  body {
    line-height: 1.78;
  }

  .takumi-sidebar {
    display: none;
  }

  .mobile-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
    padding: 0 16px;
    color: var(--white);
    background: rgba(8, 20, 37, 0.94);
    backdrop-filter: blur(12px);
  }

  .mobile-brand {
    font-weight: 900;
    letter-spacing: 0.12em;
  }

  .mobile-cta {
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--white);
    background: var(--coral);
    font-size: 13px;
    font-weight: 800;
  }

  .takumi-main {
    margin-left: 0;
  }

  .takumi-hero {
    min-height: auto;
    padding: 86px 14px 18px;
    background: var(--deep);
  }

  .hero-photo {
    position: relative;
    inset: auto;
    min-height: 44svh;
    border-radius: 14px;
  }

  .hero-photo::after {
    background:
      linear-gradient(0deg, rgba(8, 20, 37, 0.78), rgba(8, 20, 37, 0.14) 58%),
      linear-gradient(90deg, rgba(8, 20, 37, 0.34), transparent);
  }

  .hero-copy {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    max-width: none;
    padding: 24px 8px 0;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(29px, 8vw, 32px);
    line-height: 1.34;
  }

  .vertical-message {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    writing-mode: horizontal-tb;
    margin: 18px 4px 0;
    padding: 8px 0 0;
    color: var(--white);
    background: transparent;
    border: 0;
    backdrop-filter: none;
    font-size: 20px;
    line-height: 1.55;
    animation: none;
    opacity: 1;
  }

  .button {
    width: 100%;
    min-height: 52px;
  }

  .intro-panel,
  .works,
  .before-after,
  .reason,
  .flow,
  .voice-faq,
  .material {
    padding: 62px 18px;
  }

  .intro-grid,
  .compare-wrap,
  .material,
  .voice-faq {
    grid-template-columns: 1fr;
  }

  .intro-grid h2,
  .section-heading h2,
  .material-copy h2,
  .voice h2,
  .contact-panel h2 {
    font-size: clamp(29px, 8vw, 40px);
    line-height: 1.32;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .works-track {
    grid-auto-columns: minmax(82vw, 1fr);
    gap: 16px;
  }

  .slider-button {
    top: 38%;
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .slider-prev {
    left: -4px;
  }

  .slider-next {
    right: -4px;
  }

  .work-card h3 {
    font-size: 21px;
  }

  .compare {
    min-height: 260px;
    aspect-ratio: 4 / 3;
  }

  .reason-grid,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .flow-list li:last-child {
    grid-column: auto;
  }

  .voice,
  .faq-list {
    padding: 24px;
  }

  .contact {
    min-height: 68svh;
  }

  .contact-panel {
    padding: 28px 22px;
  }

  .takumi-footer {
    display: grid;
    padding: 28px 18px 90px;
  }
}

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