/* ========================================
   競走馬出資 分析・運用・収益管理事業
   Stylesheet
======================================== */

/* ----------------------------------------
   Variables
---------------------------------------- */
:root {
  --color-navy: #1a2744;
  --color-blue: #3b82f6;
  --color-lightblue: #60a5fa;
  --color-paleblue: #dbeafe;
  --color-white: #ffffff;
  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-400: #94a3b8;
  --color-gray-500: #64748b;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-yellow-bg: #fef3c7;
  --color-yellow-border: #f59e0b;
  --color-yellow-text: #92400e;
  --color-red-bg: #fee2e2;
  --color-red-text: #dc2626;
  --color-green-bg: #dcfce7;
  --color-green-text: #16a34a;
  
  --font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --radius-lg: 12px;
  --radius-xl: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-gray-700);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ----------------------------------------
   Layout
---------------------------------------- */
.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-small {
  padding: 32px 0;
}

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

.section-dark {
  background: var(--color-navy);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-gray {
  color: var(--color-gray-500);
}

.text-bold {
  font-weight: 700;
}

.small {
  font-size: 14px;
}

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

.mb-8 {
  margin-bottom: 32px;
}

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

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--color-blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  color: var(--color-white);
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray-300);
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-lightblue);
}

.nav-contact {
  font-size: 14px;
  color: var(--color-gray-400);
  border: 1px solid var(--color-gray-600);
  padding: 4px 12px;
  border-radius: 4px;
}

.mobile-menu-btn {
  display: flex;
  color: var(--color-white);
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: none;
  }
}

/* ----------------------------------------
   Mobile Navigation
---------------------------------------- */
.nav-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-navy);
  border-top: 1px solid var(--color-gray-700);
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  z-index: 1000;
}

.nav-mobile-link {
  font-size: 12px;
  color: var(--color-gray-400);
  transition: color 0.2s;
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
  color: var(--color-lightblue);
}

@media (min-width: 768px) {
  .nav-mobile {
    display: none;
  }
}

/* ----------------------------------------
   Main Content
---------------------------------------- */
main {
  padding-top: 72px;
  padding-bottom: 60px;
}

@media (min-width: 768px) {
  main {
    padding-bottom: 0;
  }
}

/* ----------------------------------------
   Hero Section
---------------------------------------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 39, 68, 0.8);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--color-white);
  padding: 24px;
  max-width: 800px;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.3;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--color-gray-300);
  margin-bottom: 16px;
}

.hero-disclaimer {
  font-size: 14px;
  color: var(--color-gray-400);
  background: rgba(26, 39, 68, 0.6);
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 48px;
  }
  
  .hero-subtitle {
    font-size: 24px;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 56px;
  }
}

/* ----------------------------------------
   Page Hero
---------------------------------------- */
.page-hero {
  position: relative;
  padding: 96px 24px;
  background: var(--color-navy);
  overflow: hidden;
}

.page-hero-solid {
  background: var(--color-navy);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
}

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

.page-hero-content {
  position: relative;
  z-index: 10;
  max-width: 768px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-white);
}

.page-hero-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px;
}

.page-hero-subtitle {
  font-size: 20px;
  color: var(--color-gray-300);
}

@media (min-width: 768px) {
  .page-hero-title {
    font-size: 48px;
  }
}

/* ----------------------------------------
   Section Title
---------------------------------------- */
.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-navy);
  text-align: center;
  margin-bottom: 48px;
}

.section-title-white {
  color: var(--color-white);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 32px;
  }
}

/* ----------------------------------------
   Intro Box
---------------------------------------- */
.intro-box {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-100);
  padding: 32px;
}

.intro-text {
  font-size: 18px;
  color: var(--color-gray-700);
  line-height: 1.8;
}

.intro-text + .intro-text {
  margin-top: 24px;
}

@media (min-width: 768px) {
  .intro-box {
    padding: 48px;
  }
}

/* ----------------------------------------
   Cards
---------------------------------------- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-100);
}

.card-grid-2 {
  display: grid;
  gap: 32px;
}

.card-grid-3 {
  display: grid;
  gap: 32px;
}

@media (min-width: 768px) {
  .card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-icon-blue {
  background: var(--color-paleblue);
  color: var(--color-blue);
}

.card-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.card-text {
  font-size: 15px;
  color: var(--color-gray-600);
  line-height: 1.7;
}

.card-text.small {
  font-size: 14px;
}

/* ----------------------------------------
   Tables
---------------------------------------- */
.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-table thead tr {
  background: var(--color-navy);
  color: var(--color-white);
}

.data-table th {
  padding: 16px 24px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
}

.data-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-gray-200);
  font-size: 15px;
  color: var(--color-gray-700);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table .table-label {
  font-weight: 500;
  color: var(--color-navy);
  background: var(--color-gray-50);
}

.data-table .table-label-bold {
  font-weight: 700;
  color: var(--color-navy);
}

.data-table .row-alt {
  background: var(--color-gray-50);
}

.table-note {
  font-size: 14px;
  color: var(--color-gray-500);
  text-align: center;
  margin-top: 16px;
}

/* ----------------------------------------
   Process Steps
---------------------------------------- */
.process-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.process-item {
  position: relative;
}

.process-card {
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 24px;
  height: 100%;
}

.process-number {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-lightblue);
  opacity: 0.5;
}

.process-title {
  font-size: 18px;
  font-weight: 700;
  margin-top: 16px;
  margin-bottom: 8px;
}

.process-desc {
  font-size: 14px;
  color: var(--color-gray-300);
}

.process-arrow {
  display: none;
}

@media (min-width: 768px) {
  .process-arrow {
    display: block;
    position: absolute;
    top: 50%;
    right: -12px;
    transform: translateY(-50%);
    color: var(--color-blue);
    z-index: 10;
  }
  
  .process-item:last-child .process-arrow {
    display: none;
  }
}

/* ----------------------------------------
   Checklist
---------------------------------------- */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.checklist-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.checklist-icon-blue {
  background: var(--color-paleblue);
  color: var(--color-blue);
}

.checklist-icon-gray {
  background: var(--color-gray-200);
  color: var(--color-gray-500);
}

/* ----------------------------------------
   Alerts
---------------------------------------- */
.alert {
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  padding: 32px;
  border-left-width: 4px;
  border-left-style: solid;
}

.alert-blue {
  background: var(--color-gray-50);
  border-left-color: var(--color-blue);
}

.alert-blue p {
  color: var(--color-gray-700);
  line-height: 1.8;
}

.alert-yellow {
  background: var(--color-yellow-bg);
  border-left-color: var(--color-yellow-border);
}

.alert-yellow .alert-title {
  font-weight: 700;
  color: var(--color-yellow-text);
  margin-bottom: 16px;
}

.alert-yellow p {
  color: var(--color-yellow-text);
  line-height: 1.7;
}

/* ----------------------------------------
   Buttons
---------------------------------------- */
.btn-disabled {
  display: inline-block;
  background: var(--color-gray-200);
  color: var(--color-gray-500);
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 15px;
  cursor: not-allowed;
}

/* ----------------------------------------
   Tracking Cards
---------------------------------------- */
.tracking-card {
  background: var(--color-gray-50);
  border-radius: var(--radius-xl);
  padding: 24px;
  border: 1px solid var(--color-gray-200);
}

.tracking-title {
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tracking-number {
  width: 32px;
  height: 32px;
  background: var(--color-blue);
  color: var(--color-white);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.tracking-text {
  font-size: 14px;
  color: var(--color-gray-600);
}

/* ----------------------------------------
   Cycle Flow
---------------------------------------- */
.cycle-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .cycle-flow {
    flex-direction: row;
    justify-content: center;
    gap: 32px;
  }
}

.cycle-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cycle-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
  min-width: 140px;
}

.cycle-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy);
}

.cycle-desc {
  font-size: 14px;
  color: var(--color-gray-500);
  margin-top: 8px;
}

.cycle-arrow {
  color: var(--color-lightblue);
  display: none;
}

@media (min-width: 768px) {
  .cycle-arrow {
    display: block;
  }
  
  .cycle-item:last-child .cycle-arrow {
    display: none;
  }
}

/* ----------------------------------------
   Metrics
---------------------------------------- */
.metric-value {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.metric-blue {
  color: var(--color-blue);
}

.metric-navy {
  color: var(--color-navy);
}

.metric-lightblue {
  color: var(--color-lightblue);
}

/* ----------------------------------------
   Record Lists
---------------------------------------- */
.record-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.record-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.record-icon-red {
  background: var(--color-red-bg);
  color: var(--color-red-text);
}

.record-icon-green {
  background: var(--color-green-bg);
  color: var(--color-green-text);
}

.record-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.record-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-gray-600);
}

.record-dot {
  width: 8px;
  height: 8px;
  background: var(--color-gray-400);
  border-radius: 50%;
}

/* ----------------------------------------
   Chart
---------------------------------------- */
.chart-container {
  height: 256px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
}

.chart-bar {
  flex: 1;
  background: var(--color-blue);
  border-radius: 4px 4px 0 0;
  transition: height 0.3s;
}

.chart-bar-light {
  background: var(--color-paleblue);
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 4px;
}

.chart-labels span {
  font-size: 12px;
  color: var(--color-gray-500);
  flex: 1;
  text-align: center;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-gray-100);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-gray-600);
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.legend-color-blue {
  background: var(--color-blue);
}

.legend-color-lightblue {
  background: var(--color-paleblue);
}

/* ----------------------------------------
   Notice Bar
---------------------------------------- */
.notice-bar {
  background: var(--color-yellow-bg);
  padding: 16px 24px;
}

.notice-bar p {
  color: var(--color-yellow-text);
  font-size: 14px;
  text-align: center;
}

/* ----------------------------------------
   Logs Layout
---------------------------------------- */
.logs-layout {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

@media (min-width: 768px) {
  .logs-layout {
    flex-direction: row;
  }
}

.logs-sidebar {
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .logs-sidebar {
    width: 256px;
  }
}

.sidebar-box {
  background: var(--color-gray-50);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 32px;
}

.sidebar-title {
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-list li {
  font-size: 14px;
  color: var(--color-gray-600);
}

.sidebar-link {
  font-size: 14px;
  color: var(--color-gray-600);
  transition: color 0.2s;
}

.sidebar-link:hover {
  color: var(--color-blue);
}

.logs-main {
  flex: 1;
}

.logs-section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 32px;
}

/* ----------------------------------------
   Article Cards
---------------------------------------- */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 24px;
  border: 1px solid var(--color-gray-200);
  transition: box-shadow 0.2s;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.article-category {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-white);
  background: var(--color-navy);
  padding: 4px 12px;
  border-radius: 4px;
}

.article-date {
  font-size: 14px;
  color: var(--color-gray-500);
}

.article-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.article-excerpt {
  font-size: 14px;
  color: var(--color-gray-600);
}

.article-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-blue);
  margin-top: 16px;
  transition: text-decoration 0.2s;
}

.article-link:hover {
  text-decoration: underline;
}

/* ----------------------------------------
   Timeline
---------------------------------------- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-gray-300);
}

@media (min-width: 768px) {
  .timeline-line {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  padding-left: 48px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .timeline-item {
    padding-left: 0;
    width: 50%;
  }
  
  .timeline-item-left {
    padding-right: 48px;
    text-align: right;
  }
  
  .timeline-item-right {
    margin-left: 50%;
    padding-left: 48px;
    text-align: left;
  }
}

.timeline-dot {
  position: absolute;
  left: 8px;
  top: 24px;
  width: 16px;
  height: 16px;
  background: var(--color-blue);
  border-radius: 50%;
  z-index: 10;
}

@media (min-width: 768px) {
  .timeline-item-left .timeline-dot {
    left: auto;
    right: -8px;
  }
  
  .timeline-item-right .timeline-dot {
    left: -8px;
  }
}

.timeline-content {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-200);
}

.timeline-quarter {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-list li {
  font-size: 14px;
  color: var(--color-gray-600);
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 768px) {
  .timeline-item-left .timeline-list li {
    justify-content: flex-end;
  }
}

.timeline-bullet {
  width: 6px;
  height: 6px;
  background: var(--color-gray-400);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ----------------------------------------
   Footer
---------------------------------------- */
.footer {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 48px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--color-gray-700);
  padding-top: 32px;
}

.footer-text {
  font-size: 14px;
  color: var(--color-gray-400);
  text-align: center;
  line-height: 1.8;
  max-width: 768px;
  margin: 0 auto;
}

.footer-copyright {
  font-size: 12px;
  color: var(--color-gray-500);
  text-align: center;
  margin-top: 16px;
}
