/* ==========================================================
   KOYO LOGI - Sub Page Stylesheet
   下層ページ共通のレイアウト・装飾
   ========================================================== */

/* ---------- Sub Page Hero ---------- */
.sub-hero {
  position: relative;
  padding: 200px 0 100px;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-soft) 100%);
  color: #fff;
  overflow: hidden;
}
.sub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../images/sub-hero.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: grayscale(60%);
}
.sub-hero .container {
  position: relative;
  z-index: 1;
}
.sub-hero-eyebrow {
  font-family: 'Cormorant Garamond', 'Inter', serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 18px;
  padding-bottom: 18px;
  position: relative;
  display: inline-block;
}
.sub-hero-eyebrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
}
.sub-hero-title {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: 0.06em;
  line-height: 1.3;
}
.sub-hero-desc {
  font-size: 16px;
  line-height: 2;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 24px 0;
  background: var(--bg-light);
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.06em;
}
.breadcrumb-list a {
  color: var(--text-light);
}
.breadcrumb-list a:hover {
  color: var(--accent);
  opacity: 1;
}
.breadcrumb-sep {
  color: var(--line);
}
.breadcrumb-current {
  color: var(--navy-deep);
  font-weight: 500;
}

/* ---------- Sub Section ---------- */
.sub-section {
  padding: 100px 0;
}
.sub-section.bg-soft {
  background: var(--bg-soft);
}
.sub-section.bg-navy {
  background: var(--navy-deep);
  color: #fff;
}
.sub-section.bg-navy .section-jp {
  color: #fff;
}
.sub-section.bg-navy .section-en {
  color: rgba(255, 255, 255, 0.7);
}
.sub-section.bg-navy .section-en::after {
  background: rgba(255, 255, 255, 0.4);
}

/* ---------- Lead Block ---------- */
.lead-block {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.lead-block-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy-deep);
  letter-spacing: 0.06em;
  line-height: 1.6;
  margin: 0 0 32px;
}
.lead-block-text {
  font-size: 15px;
  line-height: 2;
  color: var(--text);
  margin: 0;
}

/* ---------- Feature Grid (3列カード) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
/* 2列バリアント（4項目を2×2で並べる場合に使用） */
.feature-grid.is-2col {
  grid-template-columns: repeat(2, 1fr);
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 40px 32px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(12, 24, 48, 0.18);
  border-color: var(--accent);
}
.feature-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  margin-bottom: 28px;
}
.feature-card-icon i {
  width: 28px;
  height: 28px;
  color: var(--accent);
}
.feature-card-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0 0 16px;
  letter-spacing: 0.04em;
}
.feature-card-text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-light);
  margin: 0;
}

/* ---------- Detail Block (2カラム：テキスト+情報ボックス) ---------- */
.detail-block {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}
.detail-block-body h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy-deep);
  letter-spacing: 0.06em;
  line-height: 1.6;
  margin: 0 0 24px;
}
.detail-block-body p {
  font-size: 15px;
  line-height: 2;
  color: var(--text);
  margin: 0 0 20px;
}
.detail-block-body p:last-child { margin-bottom: 0; }

.info-box {
  background: var(--bg-soft);
  padding: 40px;
  border-top: 2px solid var(--accent);
}
.info-box dl {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
}
.info-box dt {
  font-family: 'Cormorant Garamond', 'Inter', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.info-box dd {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy-deep);
  line-height: 1.7;
}

/* ---------- Process / Flow Stack ---------- */
.process-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 760px;
  margin: 56px auto 0;
}
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: start;
  padding: 32px;
  background: #fff;
  border-left: 3px solid var(--accent);
  box-shadow: 0 4px 16px -8px rgba(12, 24, 48, 0.08);
}
.process-step-num {
  font-family: 'Cormorant Garamond', 'Inter', serif;
  font-size: 40px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  line-height: 1;
}
.process-step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}
.process-step-text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-light);
  margin: 0;
}

/* ---------- Info Table (会社案内・スペック等) ---------- */
.info-table {
  margin: 0;
  border-top: 1px solid var(--line);
}
.info-table-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.info-table-row dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.info-table-row dd {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
}

/* ---------- Timeline (沿革) ---------- */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 56px auto 0;
  padding-left: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 4px;
  width: 1px;
  background: var(--line);
}
.timeline-item {
  position: relative;
  padding: 0 0 40px 56px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  top: 10px;
  left: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-year {
  font-family: 'Cormorant Garamond', 'Inter', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.timeline-text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
  margin: 0;
}

/* ---------- Related Services (関連サービス) ---------- */
.related-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.related-card {
  display: block;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  transition: all 0.4s ease;
}
.related-card:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 40px -20px rgba(12, 24, 48, 0.15);
  opacity: 1;
}
.related-card-en {
  font-family: 'Cormorant Garamond', 'Inter', serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.related-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0 0 16px;
  letter-spacing: 0.04em;
}
.related-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
}

/* ---------- CTA Block (お問合せ誘導) ---------- */
.cta-block {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-soft) 100%);
  color: #fff;
}
.cta-block-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: 0.06em;
}
.cta-block-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 32px;
}
.cta-block-actions {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-tel {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-feature-settings: "tnum" 1;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 6px;
}
.btn-primary,
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: #fff;
  color: var(--navy-deep);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}
.btn-primary:hover,
.btn-cta:hover {
  background: var(--accent);
  color: #fff;
  opacity: 1;
}

/* ---------- Map Frame ---------- */
.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  overflow: hidden;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Prose (利用規約・プライバシー等の本文) ---------- */
.prose {
  max-width: 800px;
  margin: 0 auto;
}
.prose h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.04em;
}
.prose h2:first-child { margin-top: 0; }
.prose p {
  font-size: 15px;
  line-height: 2;
  color: var(--text);
  margin: 0 0 16px;
}

/* ---------- Contact Card / Form ---------- */
.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 980px;
  margin: 0 auto;
}
.contact-info-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 40px;
  text-align: center;
}
.contact-info-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
}
.contact-info-icon i {
  width: 28px;
  height: 28px;
  color: var(--accent);
}
.contact-info-label {
  font-family: 'Cormorant Garamond', 'Inter', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.contact-info-value {
  font-family: 'Inter', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--navy-deep);
  letter-spacing: 0.04em;
  font-feature-settings: "tnum" 1;
  margin: 0 0 12px;
}
.contact-info-note {
  font-size: 12px;
  color: var(--text-light);
  margin: 0;
}

.form-placeholder {
  max-width: 720px;
  margin: 56px auto 0;
  padding: 56px 40px;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  text-align: center;
}
.form-placeholder-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0 0 12px;
}
.form-placeholder-text {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.9;
}

/* ---------- Form Success ---------- */
.form-success {
  max-width: 780px;
  margin: 56px auto 0;
  padding: 56px 40px;
  background: #fff;
  border: 1px solid var(--accent);
  border-top: 4px solid var(--accent);
  text-align: center;
}
.form-success-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0 0 16px;
  letter-spacing: 0.04em;
}
.form-success-text {
  font-size: 14px;
  line-height: 1.95;
  color: var(--text);
  margin: 0;
}
.form-success-text a {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Contact Form ---------- */
.contact-form {
  max-width: 780px;
  margin: 56px auto 0;
  background: #fff;
  padding: 56px;
  border: 1px solid var(--line);
}
.form-notice {
  margin: 0 0 32px;
  padding: 18px 24px;
  background: #fff0f0;
  border: 1px solid #f5b5b5;
  border-left: 4px solid #c92a2a;
  font-size: 14px;
  color: #842029;
  line-height: 1.7;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-weight: 500;
}
.form-notice::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #c92a2a;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}
.form-notice strong { color: #c92a2a; margin-right: 4px; }
.form-row {
  margin-bottom: 28px;
}
.form-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.form-required {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--accent);
  padding: 3px 8px;
  border-radius: 2px;
}
.form-optional {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border: 1px solid var(--line);
  padding: 2px 8px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.8;
}
.form-select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text-light) 50%),
                    linear-gradient(135deg, var(--text-light) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 14px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.form-help {
  font-size: 12px;
  color: var(--text-light);
  margin: 8px 0 0;
  line-height: 1.7;
}
.form-grid-address {
  display: grid;
  grid-template-columns: 160px 1fr 1fr;
  gap: 12px;
}
.form-grid-inline {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
  align-items: center;
}
.form-grid-inline-suffix {
  font-size: 13px;
  color: var(--text-light);
}
.form-turnstile {
  margin: 12px 0 0;
  display: flex;
  justify-content: center;
}
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 32px auto 0;
  padding: 18px 56px;
  background: var(--navy-deep);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  min-width: 280px;
}
.form-submit:hover { background: var(--accent); }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.form-submit-wrap {
  text-align: center;
  margin-top: 32px;
}

@media (max-width: 960px) {
  .contact-form { padding: 32px 24px; }
  .form-grid-address { grid-template-columns: 1fr 1fr; }
  .form-grid-address > :first-child { grid-column: 1 / -1; }
  .form-submit { min-width: 100%; padding: 18px; }
}

/* ---------- FAQ List ---------- */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-question {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy-deep);
  margin: 0 0 16px;
  letter-spacing: 0.04em;
  line-height: 1.7;
}
.faq-marker {
  font-family: 'Cormorant Garamond', 'Inter', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.faq-marker-a { color: var(--navy-soft); }
.faq-answer {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-left: 0;
}
.faq-answer-text {
  font-size: 14px;
  line-height: 1.95;
  color: var(--text);
  margin: 0;
}

/* ---------- Case Study (導入実績) ---------- */
.case-stack {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 56px;
}
.case-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px -8px rgba(12, 24, 48, 0.06);
  overflow: hidden;
}
.case-head {
  background: var(--navy-deep);
  color: #fff;
  padding: 32px 40px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.case-num {
  font-family: 'Cormorant Garamond', 'Inter', serif;
  font-size: 36px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.case-head-body {
  flex: 1;
}
.case-eyebrow {
  font-family: 'Cormorant Garamond', 'Inter', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 10px;
}
.case-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.case-body {
  padding: 40px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
}
.case-req {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  padding: 24px;
}
.case-req-label {
  font-family: 'Cormorant Garamond', 'Inter', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.case-req ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.case-req li {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  padding: 8px 0 8px 18px;
  position: relative;
  border-bottom: 1px dashed var(--line);
}
.case-req li:last-child { border-bottom: none; }
.case-req li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 8px;
  height: 1px;
  background: var(--accent);
}
.case-solution-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.04em;
}
.case-solution-text {
  font-size: 14px;
  line-height: 1.95;
  color: var(--text);
  margin: 0 0 16px;
}
.case-solution-text:last-child { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .sub-hero { padding: 160px 0 80px; }
  .sub-hero-title { font-size: 32px; }
  .sub-section { padding: 64px 0; }
  .lead-block-title { font-size: 22px; }
  .feature-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
  /* is-2col もSPでは1カラムに揃える */
  .feature-grid.is-2col { grid-template-columns: 1fr; }
  .detail-block { grid-template-columns: 1fr; gap: 40px; }
  .related-services { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .info-table-row { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .process-step { grid-template-columns: 64px 1fr; gap: 20px; padding: 24px; }
  .process-step-num { font-size: 32px; }
  .cta-tel { font-size: 22px; }
  .cta-block-actions { flex-direction: column; gap: 20px; }
  .case-body { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .case-head { padding: 24px 28px; }
  .case-num { font-size: 28px; }
  .case-title { font-size: 18px; }
}
