/* ============================================================
   泳ぐ人 (oyoguhito.net) - Stylesheet
   ============================================================ */

:root {
  --primary: #1e40af;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #0284c7;
  --success: #059669;
  --success-light: #ecfdf5;
  --success-border: #10b981;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --max-width: 960px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  color: #ffffff;
  background: var(--primary);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
}

.skip-link:focus {
  color: #ffffff;
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* サイト全体ラッパー */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-main);
}

.site-brand:hover {
  text-decoration: none;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.site-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s, color 0.15s;
}

.nav-link:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}

/* ============================================================
   メインコンテナ
   ============================================================ */
.page-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--primary);
}

/* ============================================================
   再開業バナー
   ============================================================ */
.reopen-banner {
  background: var(--success-light);
  border: 2px solid var(--success-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12);
}

.reopen-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #065f46;
  background-color: #d1fae5;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
}

.reopen-headline {
  font-size: 1.15rem;
  color: #064e3b;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.highlight-reopen-date {
  font-weight: 800;
  color: #047857;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reopen-text {
  font-size: 0.95rem;
  color: #065f46;
  line-height: 1.7;
}

/* ============================================================
   ボタン
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  text-decoration: none;
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  text-decoration: none;
}

/* ============================================================
   ヒーローセクション
   ============================================================ */
.hero-section {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #0369a1 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
  box-shadow: var(--shadow-md);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: 0.08em;
}

.hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.hero-description {
  max-width: 680px;
  margin: 0 auto;
  font-size: 0.98rem;
  line-height: 1.8;
  opacity: 0.9;
}

/* ============================================================
   サービス一覧
   ============================================================ */
.services-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-main);
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background-color: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

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

.service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   インフォメーションカード
   ============================================================ */
.info-section {
  margin-bottom: 2rem;
}

.info-card {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.info-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.info-card p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* ============================================================
   コンテンツカード (About)
   ============================================================ */
.content-card {
  background-color: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.content-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
}

.about-logo-wrapper {
  margin-bottom: 1.5rem;
}

.about-logo-img {
  max-width: 140px;
  height: auto;
}

/* ============================================================
   About テーブル
   ============================================================ */
.about-table-container {
  margin-bottom: 2.5rem;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.profile-table th,
.profile-table td {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  vertical-align: top;
}

.profile-table th {
  width: 25%;
  font-weight: 700;
  color: var(--text-main);
  background-color: #f8fafc;
}

.profile-table td {
  color: var(--text-main);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.detail-row {
  display: flex;
  gap: 0.75rem;
}

.detail-row dt {
  font-weight: 600;
  color: var(--text-muted);
  min-width: 140px;
}

.detail-row dd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.table-subnote {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.note-pre {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.business-list,
.client-list {
  list-style: disc;
  padding-left: 1.25rem;
}

.business-list li,
.client-list li {
  margin-bottom: 0.35rem;
}

.about-action {
  margin-top: 2rem;
}

/* ============================================================
   404
   ============================================================ */
.text-center {
  text-align: center;
}

.not-found-page {
  padding-top: 4rem;
}

.error-code {
  font-size: 5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.error-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
  background-color: #1e293b;
  color: #cbd5e1;
  margin-top: auto;
  border-top: 1px solid #334155;
  font-size: 0.9rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 2rem;
}

.footer-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.footer-subheading {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: #94a3b8;
}

.footer-nav-list,
.footer-contact-list {
  list-style: none;
}

.footer-nav-list li,
.footer-contact-list li {
  margin-bottom: 0.5rem;
}

.footer-nav-list a {
  color: #94a3b8;
}

.footer-nav-list a:hover {
  color: #ffffff;
}

.footer-contact-list a {
  color: #38bdf8;
}

.footer-contact-list a:hover {
  color: #7dd3fc;
}

.footer-contact-list code {
  background-color: #0f172a;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.contact-label {
  color: #94a3b8;
}

.email-note {
  font-size: 0.75rem;
  color: #94a3b8;
  display: block;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

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

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

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .profile-table th,
  .profile-table td {
    display: block;
    width: 100%;
  }

  .profile-table th {
    border-bottom: none;
    padding-bottom: 0.4rem;
  }

  .content-card {
    padding: 1.5rem;
  }

  .detail-row {
    flex-direction: column;
    gap: 0.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .service-card:hover {
    transform: none;
  }
}
