/* ===== SpaceFit Demo Home - CSS ===== */

/* Variables */
:root {
  --bg: #F5F2EC;
  --bg-white: #FAFAF7;
  --text: #20231F;
  --text-sec: #666860;
  --dark: #252923;
  --wood: #746351;
  --border: #D8D1C5;
  --cta: #2C2820;
  --cta-hover: #3a352c;
  --serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.8;
  font-size: 17px;
}

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

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

/* ===== Header ===== */
.demo-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.demo-header-logo {
  font-family: var(--serif);
  font-size: 1.5em;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 2px;
  flex-shrink: 0;
}

.demo-header-nav {
  display: none;
  align-items: center;
  gap: 28px;
}

.demo-header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sec);
  transition: color 0.2s;
}

.demo-header-nav a:hover {
  color: var(--dark);
}

.demo-header-nav .demo-nav-cta {
  background: var(--cta);
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}

.demo-header-nav .demo-nav-cta:hover {
  background: var(--cta-hover);
  color: #fff;
}

.demo-header-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 2px solid var(--dark);
  border-radius: 10px;
  padding: 0 16px;
  min-width: 96px;
  height: 48px;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.2s;
  flex-shrink: 0;
}

/* Mobile Menu */
.demo-mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: var(--bg);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.demo-mobile-menu.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.demo-mobile-menu-list {
  list-style: none;
  padding: 24px 20px 120px;
}

.demo-mobile-menu-list li {
  border-bottom: 1px solid var(--border);
}

.demo-mobile-menu-list li:first-child {
  border-top: 1px solid var(--border);
}

.demo-mobile-menu-list a {
  display: block;
  padding: 18px 4px;
  min-height: 56px;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--dark);
}

/* ===== Hero ===== */
.demo-hero {
  margin-top: 72px;
  padding: 1.5em 1.5em 2em;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.demo-hero-img {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--border);
  margin-bottom: 1.5em;
}

.demo-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-hero h1 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--dark);
  margin-bottom: 1em;
}

.demo-hero-sub {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-sec);
  margin-bottom: 1.5em;
  max-width: 600px;
}

.demo-hero-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
}

.demo-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 2em;
  background: var(--cta);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.demo-btn-primary:hover {
  background: var(--cta-hover);
}

.demo-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 2em;
  background: transparent;
  color: var(--wood);
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.demo-btn-secondary:hover {
  background: var(--bg-white);
  border-color: var(--wood);
}

/* ===== Section Common ===== */
.demo-section {
  padding: 3em 1.5em;
  max-width: 1200px;
  margin: 0 auto;
}

.demo-section-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: var(--dark);
  line-height: 1.45;
  margin-bottom: 0.5em;
}

.demo-section-sub {
  font-size: 16px;
  text-align: center;
  color: var(--text-sec);
  margin-bottom: 2em;
  line-height: 1.8;
}

/* ===== Six Services Quick Entry ===== */
.demo-six-services {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.demo-six-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.demo-six-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.demo-six-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.demo-six-card-img {
  width: 100%;
  height: 0;
  padding-bottom: 60%;
  position: relative;
  background: var(--border);
  overflow: hidden;
}

.demo-six-card-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-six-card-body {
  padding: 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.demo-six-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.45;
  flex: 1;
}

.demo-six-card-arrow {
  font-size: 20px;
  color: var(--wood);
  flex-shrink: 0;
}

/* ===== Five Core Services ===== */
.demo-core-services {
  background: var(--bg);
}

.demo-core-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.demo-core-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

.demo-core-card-img {
  width: 100%;
  height: 0;
  padding-bottom: 65%;
  position: relative;
  background: var(--border);
  overflow: hidden;
}

.demo-core-card-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-core-card-body {
  padding: 24px 20px;
}

.demo-core-card-label {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--wood);
  font-weight: 600;
  margin-bottom: 0.6em;
}

.demo-core-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.45;
  margin-bottom: 0.8em;
}

.demo-core-card-desc {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-sec);
  margin-bottom: 1.2em;
}

.demo-core-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5em;
}

.demo-core-tags span {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  background: var(--bg);
  color: var(--text-sec);
  font-weight: 500;
}

.demo-core-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: var(--cta);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s;
}

.demo-core-btn:hover {
  background: var(--cta-hover);
}

/* ===== Delivery Capability ===== */
.demo-delivery {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.demo-delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.demo-delivery-item {
  background: #fff;
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  border: 1px solid var(--border);
}

.demo-delivery-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--cta);
  color: #fff;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.demo-delivery-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.55;
}

/* ===== Cases ===== */
.demo-cases {
  background: var(--bg);
}

.demo-cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.demo-case-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.demo-case-card-img {
  width: 100%;
  height: 0;
  padding-bottom: 60%;
  position: relative;
  background: var(--border);
  overflow: hidden;
}

.demo-case-card-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-case-card-body {
  padding: 20px 18px;
}

.demo-case-card h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
}

.demo-case-meta {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.75;
  margin-bottom: 8px;
}

.demo-case-meta strong {
  color: var(--dark);
  font-weight: 600;
}

/* ===== Why SpaceFit ===== */
.demo-why {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.demo-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.demo-why-item {
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px;
  border: 1px solid var(--border);
}

.demo-why-num {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--wood);
  margin-bottom: 12px;
}

.demo-why-text {
  font-size: 18px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.55;
}

/* ===== Process ===== */
.demo-process {
  background: var(--bg);
}

.demo-process-timeline {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.demo-process-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.demo-process-step {
  position: relative;
  padding-left: 60px;
  padding-bottom: 28px;
}

.demo-process-step:last-child {
  padding-bottom: 0;
}

.demo-process-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  background: var(--cta);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  z-index: 1;
}

.demo-process-text {
  font-size: 18px;
  font-weight: 500;
  color: var(--dark);
  padding-top: 12px;
  line-height: 1.55;
}

.demo-process-note {
  font-size: 13px;
  color: var(--text-sec);
  margin-top: 4px;
}

/* ===== Areas ===== */
.demo-areas {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.demo-areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto 1.5em;
}

.demo-area-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid var(--border);
  text-align: center;
}

.demo-area-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.demo-area-card p {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.65;
}

.demo-areas-note {
  text-align: center;
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.75;
}

/* ===== Overseas ===== */
.demo-overseas {
  background: var(--dark);
  color: #fff;
  padding: 3em 1.5em;
  text-align: center;
}

.demo-overseas-inner {
  max-width: 800px;
  margin: 0 auto;
}

.demo-overseas h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 1em;
}

.demo-overseas-desc {
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 2em;
  opacity: 0.9;
}

.demo-overseas-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  background: #fff;
  color: var(--dark);
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s;
}

.demo-overseas-btn:hover {
  background: var(--bg);
  transform: translateY(-2px);
}

/* ===== Contact Form ===== */
.demo-contact {
  background: var(--bg);
}

.demo-form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  padding: 32px 24px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

.demo-form-group {
  margin-bottom: 24px;
}

.demo-form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.demo-form-label .demo-form-required {
  color: #c53030;
  margin-left: 4px;
  font-size: 12px;
}

.demo-form-input,
.demo-form-select,
.demo-form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-family: var(--sans);
  transition: border-color 0.2s;
}

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

.demo-form-textarea {
  min-height: 120px;
  resize: vertical;
}

.demo-form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.5;
}

.demo-form-checkbox input {
  margin-top: 4px;
  flex-shrink: 0;
}

.demo-form-submit {
  width: 100%;
  min-height: 52px;
  padding: 0 2em;
  background: var(--cta);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.demo-form-submit:hover {
  background: var(--cta-hover);
}

.demo-form-success {
  display: none;
  text-align: center;
  padding: 24px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  color: #166534;
  font-weight: 500;
}

.demo-form-error {
  color: #c53030;
  font-size: 13px;
  margin-top: 6px;
  display: none;
}

/* ===== Footer ===== */
.demo-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 2.5em 1.5em;
  font-size: 13px;
  line-height: 1.8;
}

.demo-footer a {
  color: rgba(255,255,255,0.8);
}

.demo-footer a:hover {
  color: #fff;
}

/* ===== Tablet (768px+) ===== */
@media (min-width: 768px) {
  .demo-hero {
    padding: 2em 2em 3em;
  }

  .demo-hero-img {
    height: 280px;
  }

  .demo-hero h1 {
    font-size: 36px;
  }

  .demo-hero-sub {
    font-size: 16px;
  }

  .demo-six-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .demo-core-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .demo-delivery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .demo-areas-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .demo-section-title {
    font-size: 28px;
  }
}

/* ===== Desktop (1024px+) ===== */
@media (min-width: 1024px) {
  .demo-header {
    height: 80px;
    padding: 0 40px;
  }

  .demo-header-menu-btn {
    display: none;
  }

  .demo-header-nav {
    display: flex;
  }

  .demo-mobile-menu {
    display: none;
  }

  .demo-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 3em 2em 4em;
  }

  .demo-hero-img {
    height: 400px;
    margin-bottom: 0;
  }

  .demo-hero h1 {
    font-size: 40px;
  }

  .demo-hero-btns {
    flex-direction: row;
    max-width: 500px;
  }

  .demo-six-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }

  .demo-six-card-title {
    font-size: 13px;
  }

  .demo-core-list {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .demo-core-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .demo-core-card:nth-child(even) {
    direction: rtl;
  }

  .demo-core-card:nth-child(even) > * {
    direction: ltr;
  }

  .demo-core-card-img {
    padding-bottom: 0;
    height: 100%;
    min-height: 320px;
  }

  .demo-core-card-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .demo-delivery-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .demo-cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .demo-why-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .demo-process-timeline {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
    max-width: 1000px;
  }

  .demo-process-timeline::before {
    display: none;
  }

  .demo-process-step {
    padding-left: 0;
    padding-bottom: 0;
    text-align: center;
  }

  .demo-process-num {
    position: static;
    margin: 0 auto 12px;
  }

  .demo-process-text {
    padding-top: 0;
    font-size: 14px;
  }

  .demo-form {
    padding: 40px;
  }
}

/* ===== Large Desktop (1200px+) ===== */
@media (min-width: 1200px) {
  .demo-header {
    padding: 0 60px;
  }
}

/* ===== Focus States ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--wood);
  outline-offset: 3px;
}

.demo-btn-disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Mobile Fixed CTA ===== */
.sf-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  z-index: 999;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

.sf-mobile-cta-phone {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: var(--cta);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s;
}

.sf-mobile-cta-phone:hover {
  background: var(--cta-hover);
}

.sf-mobile-cta-services {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: var(--bg-white);
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-left: 1px solid var(--border);
  transition: background 0.2s;
}

.sf-mobile-cta-services:hover {
  background: var(--border);
}

/* ===== 4 Contact Buttons Grid ===== */
.demo-redirect-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.demo-redirect-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
}

.demo-redirect-btn:hover {
  border-color: var(--cta);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.demo-redirect-icon {
  font-size: 24px;
  margin-right: 12px;
}

.demo-redirect-text {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
}

/* ===== 6 Business Grid (Coming Soon) ===== */
.demo-six-card--coming {
  opacity: 0.6;
  pointer-events: none;
}

.demo-six-card-coming-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
