/* ================================================
   Helix Home Matrix - Japanese Cleaning Website
   Main Stylesheet
   ================================================ */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', 'Meiryo', sans-serif;
  background-color: #faf9f6;
  color: #1a1a1a;
  line-height: 1.8;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.4;
  color: #1a1a1a;
}

h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.7rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  color: #2a2a2a;
}

a {
  color: #4a7c8e;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #5a8a6a;
  text-decoration: underline;
}

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

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ================================================
   HEADER & NAVIGATION
   ================================================ */

.site-header {
  background-color: #ffffff;
  border-bottom: 2px solid #e8e4dd;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.site-logo .logo-main {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: 0.02em;
}

.site-logo .logo-sub {
  font-size: 0.65rem;
  color: #4a7c8e;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Primary Navigation */
.primary-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.2rem;
}

.nav-list li a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2a2a2a;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list li a:hover,
.nav-list li a.active {
  background-color: #4a7c8e;
  color: #ffffff;
  text-decoration: none;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #1a1a1a;
  transition: all 0.3s ease;
}

/* ================================================
   BREADCRUMB
   ================================================ */

.breadcrumb {
  background-color: #f0ede8;
  border-bottom: 1px solid #e0dbd4;
  padding: 0.6rem 0;
}

.breadcrumb-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumb-inner a {
  font-size: 0.8rem;
  color: #4a7c8e;
}

.breadcrumb-inner span {
  font-size: 0.8rem;
  color: #888;
}

.breadcrumb-inner .current {
  font-size: 0.8rem;
  color: #555;
}

/* ================================================
   HERO SECTIONS
   ================================================ */

.hero {
  background: linear-gradient(135deg, #edf4f7 0%, #f5f0e8 100%);
  padding: 4rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid #e0dbd4;
}

.hero-home {
  background: linear-gradient(135deg, #e8f4f8 0%, #f0ede8 50%, #e8f0ec 100%);
  padding: 5rem 1.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  color: #1a1a1a;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.hero .hero-subtitle {
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero .hero-tag {
  display: inline-block;
  background-color: #4a7c8e;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

/* ================================================
   MAIN CONTENT AREA
   ================================================ */

.page-content {
  padding: 3rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.main-article {
  min-width: 0;
}

.sidebar {
  min-width: 0;
}

/* Article Images */
.article-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 2rem;
  aspect-ratio: 16/9;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.article-image-caption {
  font-size: 0.8rem;
  color: #888;
  text-align: center;
  margin-top: -1.5rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

/* Article Sections */
.article-section {
  margin-bottom: 2.5rem;
}

.article-section h2 {
  font-size: 1.5rem;
  border-left: 4px solid #4a7c8e;
  padding-left: 0.8rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.article-section h3 {
  font-size: 1.15rem;
  color: #4a7c8e;
  margin-bottom: 0.7rem;
  margin-top: 1.5rem;
}

/* Steps/Tips Lists */
.steps-list {
  list-style: none;
  padding: 0;
  counter-reset: steps;
}

.steps-list li {
  counter-increment: steps;
  padding: 1rem 1rem 1rem 3.5rem;
  margin-bottom: 0.8rem;
  background-color: #fff;
  border: 1px solid #e8e4dd;
  border-radius: 6px;
  position: relative;
}

.steps-list li::before {
  content: counter(steps);
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  background-color: #4a7c8e;
  color: #fff;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.tips-box {
  background-color: #e8f4f0;
  border-left: 4px solid #5a8a6a;
  border-radius: 0 6px 6px 0;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
}

.tips-box h4 {
  color: #3a6a4a;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.tips-box ul {
  margin-bottom: 0;
}

.tips-box li {
  font-size: 0.95rem;
}

.warning-box {
  background-color: #fef9e7;
  border-left: 4px solid #8b6914;
  border-radius: 0 6px 6px 0;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
}

.warning-box h4 {
  color: #7a5a10;
  margin-bottom: 0.5rem;
}

.info-box {
  background-color: #edf4f7;
  border-left: 4px solid #4a7c8e;
  border-radius: 0 6px 6px 0;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
}

/* ================================================
   AD / SPONSOR BOX
   ================================================ */

.sponsor-box {
  border: 2px dashed #c5bdb5;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2.5rem 0;
  text-align: center;
  background-color: #f5f2ed;
}

.sponsor-label {
  display: inline-block;
  font-size: 0.7rem;
  color: #888;
  letter-spacing: 0.1em;
  border: 1px solid #c5bdb5;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.sponsor-box .ad-area {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ede9e3;
  border-radius: 4px;
  color: #aaa;
  font-size: 0.85rem;
}

/* Sidebar Ad */
.sidebar-sponsor {
  border: 2px dashed #c5bdb5;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  background-color: #f5f2ed;
  margin-bottom: 2rem;
}

.sidebar-sponsor .ad-area {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ede9e3;
  border-radius: 4px;
  color: #aaa;
  font-size: 0.85rem;
}

/* ================================================
   HOME PAGE - FEATURED GRID
   ================================================ */

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.card {
  background-color: #fff;
  border: 1px solid #e8e4dd;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  display: block;
  color: inherit;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  text-decoration: none;
}

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

.card-body {
  padding: 1rem 1.2rem 1.3rem;
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: #4a7c8e;
  background-color: #edf4f7;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.card-excerpt {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
}

/* ================================================
   ABOUT SECTION (HOME)
   ================================================ */

.about-section {
  background-color: #ffffff;
  border: 1px solid #e8e4dd;
  border-radius: 10px;
  padding: 2.5rem;
  margin: 3rem 0;
}

.about-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

/* ================================================
   SECTION DIVIDERS
   ================================================ */

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 2.5rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e8e4dd;
}

.section-title span {
  color: #4a7c8e;
}

/* ================================================
   CONTACT FORM
   ================================================ */

.contact-form {
  background-color: #ffffff;
  border: 1px solid #e8e4dd;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.4rem;
}

.form-group label .required {
  color: #c0392b;
  margin-left: 0.3rem;
  font-size: 0.75rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid #d0ccc5;
  border-radius: 6px;
  background-color: #faf9f6;
  color: #1a1a1a;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4a7c8e;
  background-color: #fff;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.btn-submit {
  background-color: #4a7c8e;
  color: #fff;
  border: none;
  padding: 0.8rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-submit:hover {
  background-color: #3a6a7c;
}

/* ================================================
   POLICY PAGES
   ================================================ */

.policy-content h2 {
  font-size: 1.3rem;
  border-bottom: 1px solid #e8e4dd;
  padding-bottom: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.policy-content h3 {
  font-size: 1.05rem;
  color: #4a7c8e;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
}

.policy-date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 2rem;
}

/* ================================================
   FOOTER
   ================================================ */

.site-footer {
  background-color: #1a1a1a;
  color: #cccccc;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: #aaa;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.footer-nav h4 {
  font-size: 0.85rem;
  color: #ffffff;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

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

.footer-nav ul li {
  margin-bottom: 0.4rem;
}

.footer-nav ul li a {
  font-size: 0.85rem;
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav ul li a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-divider {
  border: none;
  border-top: 1px solid #333;
  margin-bottom: 1.5rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom .copyright {
  font-size: 0.8rem;
  color: #888;
}

.footer-bottom .footer-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer-bottom .footer-links a {
  font-size: 0.8rem;
  color: #888;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom .footer-links a:hover {
  color: #ffffff;
}

/* ================================================
   UTILITY CLASSES
   ================================================ */

.text-center { text-align: center; }
.text-small { font-size: 0.85rem; }
.text-muted { color: #888; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.highlight-box {
  background-color: #fff;
  border: 1px solid #e0dbd4;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

th {
  background-color: #4a7c8e;
  color: #fff;
  padding: 0.7rem 1rem;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #e8e4dd;
  color: #2a2a2a;
}

tr:nth-child(even) td {
  background-color: #f5f2ed;
}

/* ================================================
   RESPONSIVE - TABLET
   ================================================ */

@media (max-width: 900px) {
  html { font-size: 17px; }

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

  .sidebar {
    display: none;
  }

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top > *:first-child {
    grid-column: 1 / -1;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

/* ================================================
   RESPONSIVE - MOBILE
   ================================================ */

@media (max-width: 640px) {
  html { font-size: 16px; }

  .header-inner {
    padding: 0.7rem 1rem;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top: 1px solid #e8e4dd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1rem;
  }

  .primary-nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list li a {
    padding: 0.7rem 1rem;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid #f0ede8;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header {
    position: relative;
  }

  .hero h1 { font-size: 1.8rem; }
  .hero-home { padding: 3rem 1rem; }

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

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }

  .container, .container-narrow {
    padding: 0 1rem;
  }

  .about-section {
    padding: 1.5rem;
  }
}

/* ================================================
   PRINT STYLES
   ================================================ */

@media print {
  .site-header, .site-footer, .sidebar, .sponsor-box, .sidebar-sponsor {
    display: none;
  }

  body { font-size: 12pt; }
  a { color: #000; }
}
