/* ==========================================================================
   合同会社SKY コーポレートサイト — Cinematic Stack design system
   (concept-d を正式採用。ネイビー×ティール、明朝体の見出し、
   シーンスタッキングのスクロール、カーソル追従の光、静かで上品な動き)
   ========================================================================== */

:root {
  --ink: #0e1a2c;
  --ink-2: #0b1420;
  --ink-3: #0a1f1c;
  --paper: #f6f4ef;
  --paper-line: rgba(14, 26, 44, 0.12);
  --teal: #3fa88f;
  --teal-dark: #2f8a74;
  --teal-soft: rgba(63, 168, 143, 0.35);
  --teal-tint: #e7f2ef;
  --line: rgba(255, 255, 255, 0.14);
  --ink-soft: rgba(246, 244, 239, 0.65);
  --font-display: "Zen Old Mincho", serif;
  --font-body: "Zen Old Mincho", serif;
  --font-label: "Zen Old Mincho", serif;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--paper);
  background: var(--ink);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}

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

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 6vw;
}

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

/* ---------- Cursor-follow ambient blob ---------- */

.blob {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 168, 143, 0.2), transparent 70%);
  pointer-events: none;
  z-index: 5;
  filter: blur(18px);
  transform: translate(-50%, -50%);
}

/* ---------- Header ---------- */

header.site {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 6vw;
  background: rgba(14, 26, 44, 0.85);
  backdrop-filter: blur(8px);
}

header.site .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--paper);
}

header.site .brand img {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 0 14px rgba(63, 168, 143, 0.35));
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-label);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle .bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle .bars span {
  width: 18px;
  height: 1.5px;
  background: currentColor;
  display: block;
}

/* nav overlay */

.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  display: flex;
  align-items: center;
}

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

.nav-panel .container {
  width: 100%;
}

.nav-panel ol {
  border-top: 1px solid var(--line);
}

.nav-panel li {
  border-bottom: 1px solid var(--line);
}

.nav-panel a {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  color: var(--paper);
  transition: color 0.2s ease;
}

.nav-panel a:hover,
.nav-panel a.is-active {
  color: var(--teal);
}

.nav-panel .wp {
  font-family: var(--font-label);
  font-size: 0.8rem;
  color: var(--teal);
  flex-shrink: 0;
}

.nav-panel .cta-row {
  margin-top: 36px;
}

/* ---------- Scene stacking (index / business) ---------- */

.progress {
  position: fixed;
  right: 5vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.progress .tick {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid rgba(246, 244, 239, 0.4);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.progress .tick.active {
  background: var(--teal);
  border-color: var(--teal);
}

.scene {
  position: sticky;
  top: 0;
  min-height: 100vh;
  background: var(--ink);
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  padding: 0 6vw;
}

.scene.center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}

.scene:nth-of-type(even) {
  background: var(--ink-2);
}

.scene .text {
  padding: 8vh 4vw 8vh 0;
}

.scene.center .text {
  padding: 8vh 0;
}

.scene .visual {
  position: relative;
  height: 68vh;
  overflow: hidden;
}

.scene .visual canvas,
.scene .visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene .visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.35), transparent 55%);
}

.scene .visual .hero-logo {
  position: absolute;
  inset: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 46%;
  height: auto;
  max-width: 260px;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(63, 168, 143, 0.3));
}

.art-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 28% 22%, rgba(63, 168, 143, 0.16), transparent 60%),
    var(--ink-2);
}

.art-panel .art-graphic {
  width: 58%;
  max-width: 300px;
  overflow: visible;
}

/* ---------- Typography ---------- */

.kicker,
.eyebrow {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
}

.kicker::before,
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--teal);
  margin-right: 14px;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.55;
  margin: 0 0 32px;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 20ch;
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  max-width: 22ch;
}

.lead {
  font-size: 0.98rem;
  line-height: 2.05;
  color: var(--ink-soft);
  max-width: 40ch;
  margin: 0 0 44px;
}

.points {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-label);
}

.points li {
  display: flex;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--paper);
}

.points li::before {
  content: "—";
  color: var(--teal);
  flex-shrink: 0;
}

.note {
  font-size: 0.85rem;
  color: rgba(246, 244, 239, 0.5);
  margin: -24px 0 32px;
}

.points + .note {
  margin-top: 8px;
}

/* ---------- Buttons ---------- */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--paper);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--teal-soft);
  transition: border-color 0.4s ease, gap 0.4s ease;
}

.cta:hover {
  border-color: var(--teal);
  gap: 24px;
}

.cta .arrow {
  color: var(--teal);
}

.btn-solid {
  display: inline-block;
  padding: 16px 34px;
  background: var(--teal);
  color: #08150f;
  text-decoration: none;
  font-family: var(--font-label);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-solid:hover {
  background: var(--teal-dark);
}

/* ---------- Light "editorial" sections (for content-heavy pages) ---------- */

.editorial {
  position: relative;
  background: var(--paper);
  color: var(--ink);
}

.editorial .container {
  padding: 14vh 6vw;
}

.editorial .section-head {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}

.editorial .section-head .kicker,
.editorial .section-head .eyebrow {
  color: var(--teal-dark);
}

.editorial .section-head .kicker::before,
.editorial .section-head .eyebrow::before {
  background: var(--teal-dark);
}

.editorial h2 {
  color: var(--ink);
}

.editorial .lead {
  color: #4a4a46;
}

.page-hero {
  padding: 22vh 6vw 12vh;
  text-align: center;
}

.page-hero h1 {
  margin: 0 auto;
}

/* ---------- Representative message (会社概要) ---------- */

.message-section .container {
  max-width: 740px;
}

.rep-message {
  position: relative;
}

.rep-message .rep-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 4.2rem;
  line-height: 1;
  color: var(--teal-dark);
  margin-bottom: -10px;
}

.rep-message h2 {
  color: var(--ink);
  margin-bottom: 36px;
}

.rep-message p {
  font-size: 0.98rem;
  line-height: 2.05;
  color: #4a4a46;
  margin: 0 0 28px;
}

.rep-message .rep-sign {
  margin-top: 8px;
  font-family: var(--font-label);
  font-size: 0.85rem;
  color: var(--ink);
  text-align: right;
}

/* ---------- Info table (会社概要) ---------- */

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--paper-line);
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 22px 26px;
  border-bottom: 1px solid var(--paper-line);
  vertical-align: top;
}

.info-table th {
  width: 200px;
  background: var(--teal-tint);
  color: var(--ink);
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.9rem;
}

.info-table td {
  color: #333;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

.placeholder {
  color: #a3a39a;
}

.info-table a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-table a:hover {
  color: var(--ink);
}

/* ---------- News list ---------- */

.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  display: flex;
  gap: 28px;
  align-items: baseline;
  padding: 26px 4px;
  border-bottom: 1px solid var(--paper-line);
}

.news-item:first-child {
  border-top: 1px solid var(--paper-line);
}

.news-item time {
  flex-shrink: 0;
  width: 120px;
  font-family: var(--font-label);
  color: #7a7a72;
  font-size: 0.88rem;
}

.news-item .tag {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.72rem;
  color: var(--teal-dark);
  border: 1px solid var(--teal-dark);
  padding: 3px 12px;
  margin-right: 14px;
}

.news-item .title {
  font-weight: 700;
  color: var(--ink);
}

/* ---------- Form ---------- */

.form-grid {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-field label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.form-field .required {
  color: var(--teal-dark);
  font-size: 0.7rem;
  margin-left: 6px;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--paper-line);
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s ease;
}

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

.form-field textarea {
  resize: vertical;
  min-height: 160px;
}

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

.form-note {
  background: #fff;
  border: 1px dashed var(--paper-line);
  padding: 18px 22px;
  color: #6a6a62;
  font-size: 0.9rem;
  margin-bottom: 36px;
}

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

.site-footer {
  position: relative;
  z-index: 4;
  background: var(--ink-2);
  color: rgba(246, 244, 239, 0.65);
  padding: 64px 0 30px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.footer-brand img {
  height: 30px;
}

.footer-nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  font-family: var(--font-label);
}

.footer-nav a {
  font-size: 0.85rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  font-family: var(--font-label);
  font-size: 0.72rem;
  text-align: center;
  color: rgba(246, 244, 239, 0.4);
}

/* ---------- Service list (homepage business teaser scene) ---------- */

.service-list {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.service-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease;
}

.service-list a:hover {
  color: var(--teal);
}

.service-list a:last-child {
  border-bottom: none;
}

.service-list .name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.service-list .desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 34ch;
  text-align: right;
}

/* ---------- Scroll reveal (progressive enhancement) ---------- */

.reveal-init {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  html {
    scroll-snap-type: none;
  }

  .scene,
  .scene.center {
    position: static;
    min-height: 0;
    grid-template-columns: 1fr;
    padding-top: 14vh;
    padding-bottom: 8vh;
    scroll-snap-align: none;
  }

  .scene .visual {
    height: 36vh;
    order: -1;
  }

  .scene .text {
    padding: 4vh 0;
  }

  .progress {
    display: none;
  }

  .editorial .container {
    padding: 10vh 6vw;
  }

  .page-hero {
    padding: 16vh 6vw 8vh;
  }
}

@media (max-width: 640px) {
  .info-table th {
    width: 130px;
    padding: 16px;
  }

  .info-table td {
    padding: 16px;
  }

  .news-item {
    flex-direction: column;
    gap: 8px;
  }

  .footer-top {
    flex-direction: column;
  }
}

/* focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
