/*
Theme Name: Kazane Service
Theme URI: https://kh-p.com/
Author: Codex
Description: Kazane Haru Creative Service landing page theme.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: kazane-service
*/

:root {
  --white: #fff;
  --paper: #f7fafb;
  --ink: #142022;
  --muted: #667276;
  --line: rgba(20, 32, 34, 0.12);
  --teal: #2fa898;
  --aqua: #4ab8e0;
  --lime: #c7ec62;
  --dark: #071013;
  --shadow: 0 18px 55px rgba(12, 27, 31, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img,
video {
  max-width: 100%;
  height: auto;
}

/* Header kept from the original theme direction. */
.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 30;
  width: calc(100% - 3rem);
  max-width: 1100px;
  min-height: 60px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.site-brand img {
  width: auto;
  max-height: 34px;
}

.site-brand span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.site-nav,
.site-nav-list {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.site-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  padding: 0.48rem 0.78rem;
  border-radius: 100px;
  color: #3a3a3a;
  font-family: "Josefin Sans", Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  background: #e0f4f2;
  color: var(--teal);
}

.site-nav .nav-cta {
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--aqua));
}

.admin-hint {
  display: none;
}

.service-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 9rem 1.5rem 5rem;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 16, 19, 0.48), rgba(7, 16, 19, 0.78)),
    rgba(0, 0, 0, 0.32);
}

.hero-center {
  position: relative;
  z-index: 1;
  width: min(100%, 1000px);
  text-align: center;
}

.hero-catch {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.1rem, 6vw, 5.6rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.22;
  text-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}

.hero-title {
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-family: "Josefin Sans", Arial, sans-serif;
  font-size: clamp(1rem, 2.8vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 2.4rem;
  padding: 0.85rem 1.5rem;
  border-radius: 100px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
}

.lp-section {
  padding: 7rem 4rem;
}

.lp-inner {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.section-label {
  margin: 0 0 0.7rem;
  color: var(--teal);
  font-family: "Josefin Sans", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.section-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.4rem;
}

.rich-text {
  color: #334145;
  font-size: 1rem;
}

.rich-text p {
  margin: 0 0 1rem;
}

.about-section,
.service-section,
.works-section {
  background: var(--white);
}

.gear-section,
.flow-section {
  background: #edf6f7;
}

.gear-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gear-card,
.service-item,
.notes-box,
.flow-step,
.work-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.gear-card {
  padding: 1.4rem;
}

.gear-card h3,
.service-item h3,
.flow-step h3 {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-size: 1.05rem;
}

.gear-card p,
.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.service-list {
  display: grid;
  gap: 1rem;
}

.service-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(130px, 0.22fr);
  gap: 1.4rem;
  align-items: start;
  padding: 1.5rem;
}

.service-index {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-family: "Josefin Sans", Arial, sans-serif;
  font-weight: 700;
}

.service-summary {
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-weight: 700;
}

.service-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.service-price {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #ecfbf6;
  color: var(--teal);
  font-weight: 800;
  text-align: center;
}

.notes-section {
  background: linear-gradient(135deg, #081417, #102b30);
}

.notes-section .section-label,
.notes-section .section-title {
  color: var(--white);
}

.notes-box {
  padding: 2rem;
  color: #dbe8eb;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.notes-box p {
  color: #dbe8eb;
}

.flow-chart {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: flow;
}

.flow-step {
  position: relative;
  padding: 1.35rem;
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.1rem;
  right: -0.75rem;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--teal);
  z-index: 1;
}

.flow-step span {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--teal);
  font-family: "Josefin Sans", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.works-head {
  align-items: center;
}

.text-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.work-card {
  display: grid;
  gap: 0.8rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.work-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #d9f5ee, #d9ebfb);
  color: var(--teal);
  font-family: "Josefin Sans", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.work-media img,
.work-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-media.video::before {
  content: "VIDEO";
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(7, 16, 19, 0.72);
  color: var(--white);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.work-meta {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
}

.work-card strong {
  font-size: 1.05rem;
}

.work-modal {
  width: min(92vw, 680px);
  padding: 2rem;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
}

.work-modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.work-modal h3 {
  margin: 0 0 1rem;
  font-size: 1.8rem;
}

.modal-close {
  float: right;
  min-height: 36px;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--white);
  cursor: pointer;
}

.contact-section {
  background: var(--paper);
}

.contact-panel {
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
}

.contact-panel > p {
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  text-align: left;
}

.contact-grid a,
.contact-grid div {
  display: grid;
  gap: 0.25rem;
  min-height: 96px;
  align-content: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbfb;
  text-decoration: none;
}

.contact-grid span {
  color: var(--teal);
  font-family: "Josefin Sans", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-grid strong {
  color: var(--ink);
  word-break: break-word;
}

.works-archive {
  padding-top: 5rem;
}

.archive-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .gear-grid,
  .works-grid,
  .archive-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-chart {
    grid-template-columns: 1fr;
  }

  .flow-step:not(:last-child)::after {
    top: auto;
    right: auto;
    left: 1.5rem;
    bottom: -0.9rem;
    transform: rotate(90deg);
  }
}

@media (max-width: 760px) {
  .site-header {
    width: calc(100% - 1.5rem);
    align-items: flex-start;
    border-radius: 24px;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .site-nav-list {
    min-width: max-content;
  }

  .lp-section {
    padding: 5rem 1.2rem;
  }

  .two-column,
  .service-item,
  .gear-grid,
  .works-grid,
  .archive-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-item {
    gap: 1rem;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}
