/*
Theme Name: OnePress Child
Template: onepress
Description: AtoM subpage child theme
Version: 1.0
*/

/* ===========================
   Design Tokens
=========================== */
:root {
  --color-primary:   #022039;
  --color-accent:    #C7AB70;
  --color-text:      #17214C;
  --color-secondary: #595757;
  --color-bg-light:  #F5F5F5;
  --color-bg-mid:    #EEEEEE;
  --color-white:     #FFFFFF;
  --font-en:         'Avenir', 'Raleway', sans-serif;
  --font-ja:         'BIZ UDGothic', 'Open Sans', sans-serif;
  --max-w:           1140px;
  --radius:          4px;
}

/* ===========================
   Reset / Base
=========================== */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: var(--font-ja); color: var(--color-text); margin: 0; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ===========================
   Utility
=========================== */
.sp-container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.sp-section { padding: 80px 0; }
.sp-section--dark { background: var(--color-primary); color: #fff; }
.sp-section--light { background: var(--color-bg-light); }

.sp-label {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 12px;
}
.sp-heading {
  font-family: var(--font-en);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
  color: var(--color-primary);
  margin: 0 0 16px;
}
.sp-heading--white { color: #fff; }
.sp-subheading {
  font-family: var(--font-ja);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 20px;
  line-height: 1.6;
}
.sp-subheading--white { color: #fff; }
.sp-text {
  font-size: 15px;
  line-height: 2;
  letter-spacing: 1px;
  color: var(--color-secondary);
}
.sp-text--white { color: rgba(255,255,255,0.85); }

.sp-divider {
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  margin: 0 0 32px;
}

/* ===========================
   Page Hero
=========================== */
.sp-hero {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  background: var(--color-primary);
  overflow: hidden;
}
.sp-hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}
.sp-hero__content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
}
.sp-hero__en {
  font-family: var(--font-en);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #fff;
  line-height: 1;
  margin: 0 0 12px;
}
.sp-hero__ja {
  font-family: var(--font-ja);
  font-size: 15px;
  color: var(--color-accent);
  letter-spacing: 3px;
}
.sp-breadcrumb {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 2px;
  white-space: nowrap;
}
.sp-breadcrumb a { color: rgba(255,255,255,0.6); }
.sp-breadcrumb span { color: var(--color-accent); }

/* ===========================
   Button
=========================== */
.sp-btn {
  display: inline-block;
  padding: 14px 40px;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
  cursor: pointer;
  transition: all .3s;
}
.sp-btn:hover, .sp-btn:focus {
  background: var(--color-accent);
  color: #fff;
}
.sp-btn--fill {
  background: var(--color-accent);
  color: #fff;
}
.sp-btn--fill:hover {
  background: transparent;
  color: var(--color-accent);
}

/* ===========================
   Cards
=========================== */
.sp-grid { display: grid; gap: 32px; }
.sp-grid--3 { grid-template-columns: repeat(3,1fr); }
.sp-grid--2 { grid-template-columns: repeat(2,1fr); }
.sp-grid--4 { grid-template-columns: repeat(4,1fr); }

.sp-card {
  background: #fff;
  border-top: 4px solid var(--color-accent);
  padding: 36px 28px;
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
}
.sp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
.sp-card__icon {
  width: 56px; height: 56px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.sp-card__icon svg, .sp-card__icon i { color: var(--color-accent); font-size: 22px; }
.sp-card__title {
  font-family: var(--font-ja);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--color-primary);
}
.sp-card__text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-secondary);
}

/* ===========================
   Timeline / Process
=========================== */
.sp-flow { display: flex; gap: 0; counter-reset: step; }
.sp-flow__item {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 28px 16px;
  background: var(--color-primary);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%);
  margin-right: 4px;
}
.sp-flow__item:first-child { clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%); }
.sp-flow__item:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 18px 50%); margin-right: 0; }
.sp-flow__num {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-accent);
  display: block;
  margin-bottom: 6px;
}
.sp-flow__label {
  font-size: 13px;
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
}

/* ===========================
   Table (Company Info)
=========================== */
.sp-table { width: 100%; border-collapse: collapse; }
.sp-table tr { border-bottom: 1px solid var(--color-bg-mid); }
.sp-table th, .sp-table td { padding: 20px 16px; text-align: left; font-size: 15px; }
.sp-table th {
  width: 180px;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-bg-light);
  letter-spacing: 1px;
}
.sp-table td { color: var(--color-secondary); line-height: 1.8; }

/* ===========================
   Network Circle (専門ネットワーク)
=========================== */
.sp-network { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.sp-network__item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 32px 16px;
  border: 2px solid var(--color-bg-mid);
  border-radius: 8px;
  transition: border-color .3s;
}
.sp-network__item:hover { border-color: var(--color-accent); }
.sp-network__icon {
  width: 64px; height: 64px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 26px;
  color: var(--color-accent);
}
.sp-network__name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--color-primary);
}
.sp-network__desc { font-size: 13px; color: var(--color-secondary); line-height: 1.8; }

/* ===========================
   CTA Band
=========================== */
.sp-cta {
  background: var(--color-primary);
  padding: 80px 0;
  text-align: center;
}
.sp-cta__text { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 8px; letter-spacing: 2px; }
.sp-cta__heading {
  font-family: var(--font-ja);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 900px) {
  .sp-grid--3 { grid-template-columns: repeat(2,1fr); }
  .sp-grid--4 { grid-template-columns: repeat(2,1fr); }
  .sp-network { grid-template-columns: repeat(2,1fr); }
  .sp-flow { flex-wrap: wrap; }
  .sp-flow__item { flex: 0 0 calc(50% - 4px); clip-path: none; margin: 2px; }
}
@media (max-width: 600px) {
  .sp-section { padding: 56px 0; }
  .sp-grid--3, .sp-grid--2, .sp-grid--4 { grid-template-columns: 1fr; }
  .sp-network { grid-template-columns: 1fr; }
  .sp-table th { width: 120px; font-size: 13px; }
  .sp-hero { height: 240px; }
}
