/* ==========================================================
   DOTO CUBE — Design v2
   Reference layout: proteras.co.jp (light corporate + card grid)
   Point color: red sampled from the DOTO CUBE logo (#E60214)
========================================================== */
:root {
  --accent: #e60214;
  --accent-dark: #b4010f;
  --accent-tint: #fdebec;
  --color-text: #222222;
  --color-sub: #6f6f6f;
  --color-line: #e5e2df;
  --bg-cream: #f7f3ef;
  --font-serif: "Times New Roman", "Georgia", serif;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-en: "Poppins", "Arial", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.v2-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.v2-container--narrow {
  max-width: 820px;
}



/* ==========================================================
   Header — logo fixed top-left; nav starts in place under it
   and only turns "fixed" once you scroll; CTA fixed bottom-left
========================================================== */
.v2-header {
  position: static;
}

.v2-header-inner {
  display: contents;
}

.v2-logo {
  position: fixed;
  top: 32px;
  left: 32px;
  z-index: 300;
  display: inline-flex;
  align-items: center;
}

.v2-logo-mark {
  position: relative;
  display: inline-flex;
}

.v2-logo-img {
  height: 54px;
  width: auto;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.85))
    drop-shadow(0 0 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

.v2-nav {
  position: absolute;
  top: 130px;
  left: 32px;
  z-index: 250;
}

.v2-nav.is-pinned {
  position: fixed;
  top: 130px;
  left: 32px;
}

.v2-nav ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.v2-nav a {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.85), 0 0 8px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: color 0.2s ease;
}

.v2-nav a:hover {
  color: var(--accent);
}

.v2-header-cta {
  position: fixed;
  bottom: 26px;
  left: 26px;
  z-index: 250;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 13px 26px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(230, 2, 20, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.v2-header-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.v2-nav-toggle {
  display: none;
  position: fixed;
  top: 32px;
  right: 32px;
  z-index: 300;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.v2-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 6px rgba(0, 0, 0, 0.5));
}

/* ==========================================================
   Hero
========================================================== */
.v2-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: #111;
}

.v2-hero-slides {
  position: absolute;
  inset: 0;
}

.v2-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease, transform 8s linear;
}

.v2-hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.v2-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(8, 6, 6, 0.8) 0%,
    rgba(8, 6, 6, 0.46) 42%,
    rgba(8, 6, 6, 0.2) 70%
  );
}

.v2-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.v2-hero-kicker {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin: 0 0 18px;
}

.v2-hero-title {
  margin: 0 0 22px;
  font-weight: 700;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.3;
  letter-spacing: 0.03em;
}

.v2-hero-text {
  margin: 0 0 36px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
}

.v2-hero-dots {
  position: absolute;
  right: clamp(20px, 4vw, 48px);
  bottom: clamp(20px, 4vw, 40px);
  z-index: 3;
  display: flex;
  gap: 12px;
}

.v2-hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.v2-hero-dots button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.2);
}

.v2-hero-scroll {
  position: absolute;
  left: clamp(20px, 4vw, 48px);
  bottom: clamp(20px, 4vw, 40px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.v2-hero-scroll span {
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.v2-hero-scroll span::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: v2ScrollLine 2.2s ease-in-out infinite;
}

@keyframes v2ScrollLine {
  0% {
    top: -100%;
  }
  60% {
    top: 100%;
  }
  100% {
    top: 100%;
  }
}

@media (max-width: 720px) {
  .v2-hero-scroll {
    display: none;
  }
}

/* ==========================================================
   Section heads
========================================================== */
.v2-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.v2-kicker {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin: 0 0 12px;
}

.v2-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 34px);
  letter-spacing: 0.04em;
  margin: 0 0 18px;
  color: var(--color-text);
}

.v2-lead {
  font-size: 14px;
  color: var(--color-sub);
  margin: 0;
}

/* ==========================================================
   Works — kept identical to the original design (v1)
========================================================== */
.works {
  padding: 90px 24px 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.works-slider {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

.works-track {
  display: flex;
  width: max-content;
  gap: 28px;
  animation: worksScroll 24s linear infinite;
}

.works-slider:hover .works-track,
.works-track:focus-within {
  animation-play-state: paused;
}

@keyframes worksScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 14px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .works-track {
    animation: none;
  }
}

.work-item {
  position: relative;
  flex: 0 0 320px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.work-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}

.work-thumb--1 {
  background-image: url("../images/work-acros-fukuoka.jpg");
}

.work-thumb--2 {
  background-image: url("../images/work-oine-parking.jpg");
}

.work-thumb--3 {
  background-image: url("../images/work-sinei.jpg");
}

.work-thumb--4 {
  background-image: url("../images/work-fukuoka.jpg");
}

.work-thumb--5 {
  background-image: url("../images/work-ooita.jpg");
}

.work-item-cube {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  perspective: 200px;
}

.work-item:hover .work-item-cube {
  opacity: 1;
  transform: scale(1);
}

.work-item-cube-inner {
  position: relative;
  width: 22px;
  height: 22px;
  transform-style: preserve-3d;
}

.work-item:hover .work-item-cube-inner {
  animation: workCubeSpin 1.1s ease-in-out 1;
}

@keyframes workCubeSpin {
  from {
    transform: rotateX(0deg) rotateY(0deg);
  }
  to {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

.work-cube-face {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.work-cube-face--front,
.work-cube-face--back {
  background: var(--accent);
}

.work-cube-face--right,
.work-cube-face--left {
  background: var(--accent-dark);
}

.work-cube-face--top {
  background: rgba(240, 85, 95, 0.9);
}

.work-cube-face--bottom {
  background: rgba(120, 1, 12, 0.9);
}

.work-cube-face--front {
  transform: translateZ(11px);
}

.work-cube-face--back {
  transform: rotateY(180deg) translateZ(11px);
}

.work-cube-face--right {
  transform: rotateY(90deg) translateZ(11px);
}

.work-cube-face--left {
  transform: rotateY(-90deg) translateZ(11px);
}

.work-cube-face--top {
  transform: rotateX(90deg) translateZ(11px);
}

.work-cube-face--bottom {
  transform: rotateX(-90deg) translateZ(11px);
}

@media (prefers-reduced-motion: reduce) {
  .work-item:hover .work-item-cube-inner {
    animation: none;
  }
}

.work-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  text-align: center;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .work-item {
    flex-basis: 260px;
  }
}

@media (max-width: 720px) {
  .work-item {
    flex-basis: 220px;
  }
}

/* ==========================================================
   About — editorial split: text left, big image right
========================================================== */
.v2-about {
  background: #fff;
}

.v2-about-split {
  display: flex;
  min-height: 100vh;
  background: #15100f;
}

.v2-about-text {
  flex: 0 0 44%;
  min-width: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px clamp(32px, 6vw, 88px);
  color: #fff;
}

.v2-about-text .v2-kicker {
  color: var(--accent);
}

.v2-about-text .v2-title {
  color: #fff;
}

.v2-about-image {
  flex: 1 1 56%;
  background-size: cover;
  background-position: center;
}

.v2-about-copy {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 480px;
  margin-top: 12px;
}

.v2-about-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.56);
}

.v2-about-copy .v2-about-emphasis,
.v2-about-copy .v2-about-statement {
  position: relative;
}

.v2-about-copy .v2-about-emphasis::before,
.v2-about-copy .v2-about-statement::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.v2-about-copy .v2-about-emphasis {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.v2-about-copy .v2-about-statement {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.v2-about-copy .v2-about-signoff {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.4);
}

/* Company profile */
.v2-profile {
  max-width: 900px;
  margin: 0 auto;
  padding: 110px clamp(0px, 6vw, 32px) 110px;
}

.v2-profile-title {
  text-align: center;
  font-size: 20px;
  letter-spacing: 0.2em;
  margin: 0 0 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--accent);
}

.v2-profile-table {
  width: 100%;
  border-collapse: collapse;
}

.v2-profile-table tr {
  border-bottom: 1px solid var(--color-line);
}

.v2-profile-table tr:last-child {
  border-bottom: none;
}

.v2-profile-table th,
.v2-profile-table td {
  text-align: left;
  vertical-align: top;
  padding: 16px 12px;
  font-weight: normal;
  font-size: 14px;
}

.v2-profile-table th {
  width: 220px;
  white-space: nowrap;
  color: var(--color-text);
  font-weight: 600;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

.v2-profile-list li {
  position: relative;
  padding-left: 1em;
}

.v2-profile-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ==========================================================
   CTA
========================================================== */
.v2-cta {
  position: relative;
  padding: 140px clamp(32px, 6vw, 88px);
  background: linear-gradient(0deg, rgba(10, 8, 8, 0.75) 0%, rgba(10, 8, 8, 0.5) 100%), url("../images/cta-bg.jpg");
  background-size: cover;
  background-position: center;
  text-align: center;
}

.v2-cta-inner {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  color: #fff;
}

.v2-cta-kicker {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin: 0 0 18px;
}

.v2-cta-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 480px) {
  .v2-cta-br {
    display: none;
  }
}

/* Reserve room so left-aligned copy never sits under the fixed
   logo / nav rail in the top-left corner */
.v2-hero-content,
.v2-about-text {
  padding-left: clamp(150px, 15vw, 190px);
}

@media (max-width: 720px) {
  .v2-hero-content {
    padding-left: 24px;
  }
}

/* ==========================================================
   Contact
========================================================== */
.v2-contact {
  padding: 110px 0;
  background: #fff;
}

.v2-form {
  margin-top: 8px;
  background: var(--bg-cream);
  border-radius: 12px;
  padding: clamp(24px, 5vw, 48px);
}

.v2-form-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-line);
}

.v2-form-row:last-of-type {
  border-bottom: none;
}

.v2-form-label {
  flex: 0 0 190px;
  padding-top: 10px;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.v2-required {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.v2-form-field {
  flex: 1;
}

.v2-form-field input[type="text"],
.v2-form-field input[type="tel"],
.v2-form-field input[type="email"],
.v2-form-field textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  border-radius: 6px;
  transition: border-color 0.2s ease;
}

.v2-form-field input:focus,
.v2-form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.v2-form-field textarea {
  resize: vertical;
}

.v2-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 28px;
  font-size: 14px;
  padding-top: 10px;
}

.v2-radio-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.v2-address-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v2-postal-input {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 55%;
}

.v2-postal-input span {
  font-size: 14px;
}

.v2-postal-input input {
  flex: 1;
  border: 1px solid var(--color-line);
  padding: 11px 14px;
  font-size: 14px;
  background: #fff;
  border-radius: 6px;
}

.v2-form-submit {
  text-align: center;
  margin-top: 32px;
}

.v2-form-submit button {
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 15px;
  padding: 16px 48px;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.v2-form-submit button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* ==========================================================
   Footer
========================================================== */
.v2-footer {
  background: #1b1b1b;
  color: rgba(255, 255, 255, 0.7);
  border-top: 3px solid var(--accent);
}

.v2-footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.v2-footer-logo-img {
  height: 30px;
  width: auto;
}

.v2-footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.v2-footer-nav a {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.v2-footer-nav a:hover {
  color: var(--accent);
}

.v2-footer-info {
  font-size: 12px;
  line-height: 1.8;
}

.v2-footer-info p {
  margin: 0 0 4px;
}

.v2-footer-copy {
  margin: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 20px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================
   To top
========================================================== */
.v2-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s ease;
  z-index: 90;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.v2-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.v2-to-top:hover {
  background: var(--accent-dark);
}

/* ==========================================================
   Responsive
========================================================== */
@media (max-width: 900px) {
  .v2-about-text {
    flex-basis: 50%;
  }
}

@media (max-width: 720px) {
  .v2-logo {
    top: 20px;
    left: 20px;
  }

  .v2-logo-img {
    height: 34px;
  }

  .v2-header-cta {
    bottom: 18px;
    left: 18px;
    padding: 11px 20px;
    font-size: 12px;
  }

  .v2-nav-toggle {
    display: flex;
    top: 18px;
    right: 18px;
  }

  .v2-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 10, 10, 0.97);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .v2-nav.is-pinned {
    background: rgba(15, 10, 10, 0.97);
    box-shadow: none;
    padding: 0;
  }

  .v2-nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .v2-nav ul {
    align-items: center;
    gap: 28px;
  }

  .v2-nav a,
  .v2-nav.is-pinned a {
    display: block;
    font-size: 20px;
    color: #fff;
  }

  .v2-about-split {
    flex-direction: column;
    min-height: auto;
  }

  .v2-about-text {
    flex: none;
    min-width: 0;
    padding: 64px 24px 48px;
  }

  .v2-about-image {
    flex: none;
    min-height: 280px;
  }

  .v2-profile {
    padding: 64px 20px;
  }

  .v2-profile-table th {
    width: 130px;
  }

  .v2-form-row {
    flex-direction: column;
    gap: 10px;
  }

  .v2-form-label {
    padding-top: 0;
  }

  .v2-postal-input {
    width: 100%;
  }

  .v2-footer-inner {
    flex-direction: column;
  }
}
