/* ============================================
   三和スポーツ - スタイルシート
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --color-primary: #1a5276;
  --color-primary-dark: #0e3a56;
  --color-primary-light: #2471a3;
  --color-accent: #e67e22;
  --color-accent-dark: #d35400;
  --color-white: #ffffff;
  --color-bg: #f8f9fa;
  --color-bg-alt: #eef2f5;
  --color-text: #2c3e50;
  --color-text-light: #6c757d;
  --color-border: #dee2e6;
  --font-family: 'Noto Sans JP', sans-serif;
  --header-height: 70px;
  --container-max: 1100px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  line-height: 1.8;
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

/* ---------- Utility ---------- */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.sp-only {
  display: none;
}

/* ---------- Section Common ---------- */
.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

.section-lead {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

/* ---------- Button ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition);
}

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

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
}

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--color-primary);
}

.logo-icon {
  font-size: 1.5rem;
  color: var(--color-accent);
}

/* Navigation */
.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 700;
  font-size: 0.9rem;
  position: relative;
  padding: 0.3rem 0;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-link:hover::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}

.hamburger-line {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, #1abc9c 100%);
  margin-top: var(--header-height);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  padding: 3rem 0;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 1.2rem;
  letter-spacing: 0.03em;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.9;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* ============================================
   Services
   ============================================ */
.services {
  padding: 5rem 0;
  background: var(--color-bg);
}

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

.service-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: 50%;
  color: var(--color-white);
  font-size: 1.6rem;
}

.service-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.service-desc {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================
   Business
   ============================================ */
.business {
  padding: 5rem 0;
}

.business-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.business-item {
  display: flex;
  gap: 1.5rem;
  background: var(--color-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.business-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.business-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  border-radius: 50%;
  color: var(--color-white);
  font-size: 1.4rem;
}

.business-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.business-desc {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ============================================
   About
   ============================================ */
.about {
  padding: 5rem 0;
  background: var(--color-bg);
}

.about-table-wrapper {
  overflow-x: auto;
  margin-bottom: 2rem;
}

.about-table {
  width: 100%;
  border-collapse: collapse;
}

.about-table th,
.about-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  font-size: 0.95rem;
}

.about-table th {
  width: 160px;
  background: var(--color-bg-alt);
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.about-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.about-map iframe {
  display: block;
}

/* ============================================
   Contact
   ============================================ */
.contact {
  padding: 5rem 0;
}

.contact-info-centered {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item > i {
  font-size: 1.3rem;
  color: var(--color-accent);
  margin-top: 0.2rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-bottom: 0.15rem;
}

.contact-value {
  font-weight: 700;
  font-size: 0.95rem;
}

.contact-value a {
  color: var(--color-primary);
  transition: color var(--transition);
}

.contact-value a:hover {
  color: var(--color-accent);
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--color-bg-alt);
  border-radius: 12px;
  padding: 1.8rem;
}

.contact-note {
  background: var(--color-white);
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.82rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.contact-note i {
  color: var(--color-primary-light);
  margin-right: 0.3rem;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--color-primary);
}

.required {
  font-size: 0.75rem;
  color: var(--color-white);
  background: #e74c3c;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.3rem;
  font-weight: 700;
}

.optional {
  font-size: 0.75rem;
  color: var(--color-white);
  background: var(--color-text-light);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.3rem;
  font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--color-white);
  color: var(--color-text);
}

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

.form-group textarea {
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%236c757d' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-agreement {
  margin-top: 0.3rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.checkbox-label a {
  color: var(--color-primary-light);
  text-decoration: underline;
}

.checkbox-label a:hover {
  color: var(--color-accent);
}

.btn-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  padding: 1rem 2.5rem;
}

.hidden {
  display: none !important;
}

/* ============================================
   Thanks Page
   ============================================ */
.thanks-page {
  margin-top: var(--header-height);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thanks-content {
  text-align: center;
  padding: 3rem 0;
}

.thanks-icon {
  font-size: 4rem;
  color: #27ae60;
  margin-bottom: 1.5rem;
}

.thanks-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.thanks-message {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.9;
  margin-bottom: 2rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 900;
  font-size: 1.1rem;
}

.footer-logo .logo-icon {
  color: var(--color-accent);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.footer-nav a {
  opacity: 0.8;
  transition: opacity var(--transition);
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
}

.footer-legal a {
  opacity: 0.7;
  transition: opacity var(--transition);
}

.footer-legal a:hover {
  opacity: 1;
}

.copyright {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ============================================
   Legal Pages
   ============================================ */
.legal-page {
  margin-top: var(--header-height);
  padding: 3rem 0 5rem;
}

.legal-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 0.3rem;
}

.legal-updated {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-bg-alt);
}

.legal-content p {
  margin-bottom: 0.8rem;
  font-size: 0.92rem;
  line-height: 1.9;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
}

.legal-content ul {
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 0.3rem;
}

.legal-content li ul {
  margin-top: 0.3rem;
}

.legal-content a {
  color: var(--color-primary-light);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--color-accent);
}

.legal-contact {
  margin-top: 2rem;
  padding: 1.2rem 1.5rem;
  background: var(--color-bg-alt);
  border-radius: 8px;
}

.legal-contact p {
  margin-bottom: 0.2rem;
}

/* 特商法テーブル */
.legal-table-wrapper {
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
}

.legal-table th,
.legal-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  font-size: 0.92rem;
  line-height: 1.7;
}

.legal-table th {
  width: 180px;
  background: var(--color-bg-alt);
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  vertical-align: top;
}

.legal-table td a {
  color: var(--color-primary-light);
  text-decoration: underline;
}

.legal-list {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0;
}

.legal-list li {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0.2rem;
}

/* ============================================
   Responsive
   ============================================ */

/* Tablet */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .contact-sidebar {
    order: -1;
  }

  .hero-title {
    font-size: 2rem;
  }
}

/* Mobile */
@media (max-width: 600px) {
  :root {
    --header-height: 60px;
  }

  .sp-only {
    display: inline;
  }

  /* Hamburger visible */
  .hamburger {
    display: flex;
  }

  /* Mobile Nav */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--color-white);
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
    transition: right var(--transition);
    z-index: 1050;
    padding-top: calc(var(--header-height) + 1rem);
  }

  .nav.open {
    right: 0;
  }

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

  .nav-link {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 1rem;
  }

  /* Overlay */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
  }

  .nav-overlay.visible {
    opacity: 1;
    visibility: visible;
  }

  /* Hero */
  .hero {
    min-height: 70vh;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-card {
    padding: 1.5rem 1.2rem;
  }

  /* Section */
  .section-title {
    font-size: 1.4rem;
  }

  .services,
  .business,
  .about,
  .contact {
    padding: 3.5rem 0;
  }

  /* Business */
  .business-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }

  /* Contact Form */
  .form-row {
    grid-template-columns: 1fr;
  }

  .btn-submit {
    width: 100%;
    justify-content: center;
  }

  /* About Table */
  .about-table th {
    width: 100px;
    font-size: 0.85rem;
  }

  .about-table td {
    font-size: 0.85rem;
  }

  /* Footer */
  .footer-nav,
  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  /* Legal Pages */
  .legal-title {
    font-size: 1.4rem;
  }

  .legal-table th {
    width: 110px;
    font-size: 0.82rem;
  }

  .legal-table td {
    font-size: 0.82rem;
  }
}
