/*
Theme Name: waio
Theme URI: https://waio.site
Author: waio
Description: waioポータルサイト用カスタムテーマ
Version: 1.0.0
Text Domain: waio
*/

:root {
  --color-black: #1a1a1a;
  --color-white: #ffffff;
  --color-gray: #666666;
  --color-light-gray: #f5f5f5;
  --font-sans: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--color-black);
  line-height: 1.8;
  background-color: var(--color-white);
}

a {
  color: var(--color-black);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

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

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-white);
  z-index: 1000;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 28px;
  width: auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

.main-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.main-nav .nav-contact a {
  background: var(--color-black);
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: 4px;
}

.main-nav .nav-contact a:hover {
  opacity: 0.8;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-black);
  margin: 6px 0;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    border-top: 1px solid #eee;
    display: none;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
  }

  .main-nav li {
    width: 100%;
    text-align: center;
  }

  .main-nav a {
    display: block;
    padding: 16px 24px;
  }

  .main-nav .nav-contact a {
    margin: 16px 24px;
    display: block;
  }
}

/* Main Content */
.site-main {
  margin-top: var(--header-height);
}

/* Hero Section */
.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 24px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
}

/* Service Banners */
.service-banners {
  display: flex;
  gap: 24px;
  margin-top: auto;
  padding-bottom: 60px;
}

.service-banner {
  background: var(--color-black);
  color: var(--color-white);
  padding: 40px 60px;
  border-radius: 8px;
  text-align: center;
  min-width: 240px;
  transition: transform 0.2s ease;
}

.service-banner:hover {
  transform: translateY(-4px);
  color: var(--color-white);
  opacity: 1;
}

.service-banner span {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .service-banners {
    flex-direction: column;
    width: 100%;
    padding: 0 24px 40px;
  }

  .service-banner {
    padding: 32px 40px;
    min-width: auto;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9rem;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: var(--color-black);
  color: var(--color-white);
}

.btn-primary:hover {
  opacity: 0.8;
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-black);
  color: var(--color-black);
}

.btn-outline:hover {
  background: var(--color-black);
  color: var(--color-white);
}

/* Section */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--color-light-gray);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: 0.05em;
}

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--color-white);
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 48px;
  transition: box-shadow 0.2s ease;
}

.service-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.service-card p {
  color: var(--color-gray);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* About Section */
.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--color-gray);
}

/* Footer */
.site-footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.footer-logo img {
  height: 24px;
  filter: brightness(0) invert(1);
}

.footer-section h4 {
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 12px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: var(--color-white);
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Page Styles */
.page-header {
  padding: 80px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  letter-spacing: 0.05em;
}

/* Service Page */
.service-hero {
  padding: 100px 0 80px;
  text-align: center;
  background: var(--color-light-gray);
}

.service-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.service-hero p {
  font-size: 1.2rem;
  color: var(--color-gray);
}

.problems-list {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
}

.problems-list li {
  padding: 20px 0;
  padding-left: 32px;
  position: relative;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
}

.problems-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-black);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-item {
  text-align: center;
  padding: 40px 24px;
}

.feature-item h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.feature-item p {
  font-size: 0.95rem;
  color: var(--color-gray);
}

.steps-list {
  counter-reset: step;
  max-width: 700px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid #eee;
  align-items: flex-start;
}

.step-item::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-black);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
}

.step-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 0.95rem;
  color: var(--color-gray);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  background: var(--color-white);
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--color-black);
}

.pricing-card h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.pricing-price {
  font-size: 2rem;
  font-weight: 700;
  margin: 16px 0 24px;
}

.pricing-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-gray);
}

.pricing-features {
  list-style: none;
  margin: 24px 0;
  text-align: left;
}

.pricing-features li {
  padding: 10px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.9rem;
  color: var(--color-gray);
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-black);
}

/* FAQ */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #eee;
}

.faq-question {
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-black);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
}

.faq-item.active .faq-question::after {
  content: "−";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding-bottom: 24px;
  color: var(--color-gray);
  font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
  background: var(--color-black);
  color: var(--color-white);
  text-align: center;
  padding: 100px 24px;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.cta-section p {
  opacity: 0.7;
  margin-bottom: 40px;
}

.cta-section .btn {
  background: var(--color-white);
  color: var(--color-black);
}

/* Legal Pages */
.legal-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 80px 24px;
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 48px;
  letter-spacing: 0.05em;
}

.legal-content h2 {
  font-size: 1.1rem;
  margin: 40px 0 16px;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  margin-bottom: 16px;
  color: var(--color-gray);
  font-size: 0.95rem;
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
}

/* Contact */
.contact-content {
  max-width: 500px;
  margin: 0 auto;
  padding: 80px 24px;
}

.contact-content h1 {
  font-size: 2rem;
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: 0.05em;
}

.contact-content > p {
  text-align: center;
  color: var(--color-gray);
  margin-bottom: 48px;
}

.contact-form {
  text-align: left;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-white);
}

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

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

/* Blog */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

.post-card {
  background: var(--color-white);
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.post-card-image {
  aspect-ratio: 16 / 9;
  background: var(--color-light-gray);
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-content {
  padding: 24px;
}

.post-card-category {
  font-size: 0.75rem;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.post-card h3 {
  font-size: 1rem;
  margin: 12px 0;
}

.post-card-date {
  font-size: 0.85rem;
  color: var(--color-gray);
}

/* 404 */
.error-page {
  min-height: calc(100vh - var(--header-height) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}

.error-page h1 {
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page p {
  color: var(--color-gray);
  margin-bottom: 40px;
}

/* Utility */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 40px;
}

.mb-4 {
  margin-bottom: 40px;
}
