/* ============================================
   ノードワークス 会社案内ページ専用スタイル
   ============================================ */

/* ===== COMPANY PAGE HERO ===== */
.company-page-hero {
  padding: 140px 0 80px;
  background:
    linear-gradient(
      to bottom,
      rgba(2, 21, 42, 0.78) 0%,
      rgba(4, 36, 77, 0.62) 45%,
      rgba(2, 21, 42, 0.78) 100%
    ),
    url('../images/company_logo_nobg.png') right 85% / 480px auto no-repeat,
    url('../images/company_hero_illust.jpg') center / cover no-repeat;
  background-color: #1a1a1d;
  position: relative;
  overflow: hidden;
}

.company-page-hero::before,
.company-page-hero::after {
  content: none;
}

@media (max-width: 768px) {
  .company-page-hero {
    background:
      linear-gradient(
        to bottom,
        rgba(2, 21, 42, 0.85) 0%,
        rgba(4, 36, 77, 0.72) 50%,
        rgba(2, 21, 42, 0.85) 100%
      ),
      url('../images/company_logo_nobg.png') right 92% / 260px auto no-repeat,
      url('../images/company_hero_illust.jpg') center / cover no-repeat;
    padding: 110px 0 60px;
  }
}

/* ===== COMPANY SUB NAV ===== */
.company-subnav {
  background: var(--primary-dark);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky;
  top: 72px;
  z-index: 800;
}

.company-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.company-tabs::-webkit-scrollbar { display: none; }

.ctab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: var(--transition);
  border-right: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
  position: relative;
}

.ctab::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.ctab:hover,
.ctab.active {
  color: var(--white);
  background: rgba(255,255,255,0.05);
}

.ctab:hover::after,
.ctab.active::after {
  transform: scaleX(1);
}

.ctab i {
  color: var(--accent);
  font-size: 15px;
}

/* ===== SLOGAN BLOCK ===== */
.slogan-block {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto 72px;
  padding: 64px 72px;
  background:
    /* 光の筋：左上から右下へ斜め */
    repeating-linear-gradient(
      -55deg,
      transparent,
      transparent 38px,
      rgba(232,130,58,0.04) 38px,
      rgba(232,130,58,0.04) 40px
    ),
    /* 中央の光源 */
    radial-gradient(ellipse at 50% 40%, rgba(232,130,58,0.18) 0%, transparent 60%),
    /* ベース：ダークチャコール */
    linear-gradient(160deg, #1a1a1d 0%, #2a2a2d 50%, #1a1a1d 100%);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 12px 48px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 0 1px rgba(232,130,58,0.25);
}

.slogan-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(232,130,58,0.7) 30%, rgba(240,160,96,1) 50%, rgba(232,130,58,0.7) 70%, transparent 100%);
  pointer-events: none;
}

.slogan-block::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(232,130,58,0.3) 50%, transparent 100%);
  pointer-events: none;
}

.slogan-text {
  position: relative;
  z-index: 1;
  text-align: left;
}

.slogan-label {
  display: none;
}

.slogan-main {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.4;
  letter-spacing: 4px;
  font-family: 'Noto Serif JP', 'Yu Mincho', 'YuMincho', '游明朝', 'Hiragino Mincho ProN', 'HGS明朝E', serif;
}

.slogan-accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.slogan-deco-line {
  display: none;
}

/* ===== PHILOSOPHY GRID ===== */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.ph-card {
  padding: 36px 28px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}

.ph-card-1 { background: url('../images/company_trust.jpg')     center center / cover no-repeat; }
.ph-card-2 { background: url('../images/company_tech.jpg')       center center / cover no-repeat; }
.ph-card-3 { background: url('../images/company_community.jpg')  center center / cover no-repeat; }

.ph-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.55) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.ph-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 48px;
  font-weight: 900;
  color: rgba(255,255,255,0.2);
  font-family: 'Inter', sans-serif;
  line-height: 1;
  z-index: 1;
}

.ph-icon {
  width: 68px;
  height: 68px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(255,255,255,0.95);
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.ph-card h3 {
  font-size: 20px;
  margin-bottom: 14px;
  letter-spacing: 1px;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.ph-card p {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255,255,255,0.9);
  position: relative;
  z-index: 1;
}

/* ===== MESSAGE BLOCK ===== */
.message-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 64px;
}

.mb-header {
  padding: 24px 40px;
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
}

.mb-header h3 {
  font-size: 20px;
  color: var(--text-dark);
}

.mb-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
}

.mb-content {
  padding: 40px;
}

.mb-content p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 2;
  margin-bottom: 20px;
}

.mb-content p:last-of-type {
  margin-bottom: 28px;
}

.mb-sig {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.sig-title {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 1px;
}

.sig-name {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 2px;
}

.mb-visual {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

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

.mbv-icon {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: rgba(255,255,255,0.8);
  margin: 0 auto 20px;
  border: 2px solid rgba(255,255,255,0.2);
}

.mbv-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.mbv-lines span {
  display: block;
  height: 2px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
}

.mbv-lines span:nth-child(1) { width: 80px; }
.mbv-lines span:nth-child(2) { width: 60px; }
.mbv-lines span:nth-child(3) { width: 40px; }

/* ===== VALUES ROW ===== */
.values-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}

.val-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.val-item:hover {
  background: var(--white);
}

.val-item i {
  font-size: 28px;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

.val-item strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Inter', sans-serif;
  letter-spacing: 1px;
}

.val-item span {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.val-sep {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
}

/* ===== OVERVIEW TABLE ===== */
.overview-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.overview-table-wrap {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.overview-table tr {
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.overview-table tr:last-child {
  border-bottom: none;
}

.overview-table tr:hover {
  background: rgba(232,130,58,0.03);
}

.overview-table th {
  width: 200px;
  padding: 18px 24px;
  background: rgba(42,42,45,0.05);
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  border-right: 1px solid var(--border);
  vertical-align: top;
}

.overview-table th i {
  color: var(--accent-dark);
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

.overview-table td {
  padding: 18px 24px;
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.8;
  vertical-align: top;
}

.td-slogan {
  font-style: italic;
  font-weight: 700;
  color: var(--primary) !important;
  font-size: 16px !important;
}

.ov-tel {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  font-family: 'Inter', sans-serif;
  letter-spacing: 1px;
  transition: var(--transition);
}
.ov-tel:hover { color: var(--accent-dark); }

.ov-mail {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
  margin-top: 4px;
  transition: var(--transition);
}
.ov-mail:hover { color: var(--accent-dark); }

.permit-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(42,42,45,0.08);
  border: 1px solid rgba(42,42,45,0.2);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  margin: 3px 4px 3px 0;
  white-space: nowrap;
}

/* 許可申請バッジを複数並べる場合の折り返し対応 */
.permit-badges-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

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

.bank-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.bank-list i {
  color: var(--accent-dark);
  font-size: 13px;
}

/* Side cards */
.overview-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ov-map-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.ovm-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ovm-header i {
  color: var(--accent-dark);
  font-size: 18px;
}

.ovm-header h4 {
  font-size: 16px;
  color: var(--text-dark);
}

.ovm-address {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 14px;
  padding: 12px;
  background: var(--secondary);
  border-radius: var(--radius-sm);
}

.ovm-mapframe {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.ov-permit-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
}

.ov-permit-card > i {
  font-size: 36px;
  color: #ffd700;
  margin-bottom: 12px;
  display: block;
}

.ov-permit-card h4 {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.ov-permit-card > p {
  font-size: 16px;
  color: var(--white);
  font-weight: 700;
}

.permit-num {
  font-size: 24px !important;
  font-weight: 900 !important;
  font-family: 'Inter', sans-serif;
  color: var(--accent-light) !important;
  letter-spacing: 2px;
  margin-top: 4px;
}

.ov-permit-divider {
  width: 60%;
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 20px auto;
}

/* ===== HISTORY & STRENGTHS ===== */

/* セクション全体背景：ダークチャコールグレーイメージ */
.history-section {
  background:
    radial-gradient(ellipse at 20% 0%,   rgba(232,130,58,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(200,104,32,0.08) 0%, transparent 50%),
    linear-gradient(175deg,
      #1a1a1d 0%,
      #2a2a2d 30%,
      #222224 60%,
      #1a1a1d 100%);
  position: relative;
  overflow: hidden;
}

/* 星のテクスチャ */
.history-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 15%  12%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 42%  8%,  rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 68%  18%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 88%  5%,  rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 25%  35%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 75%  40%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 55%  55%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 10%  70%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 90%  75%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 35%  85%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 60%  90%, rgba(255,255,255,0.3) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* 斜めの光の筋 */
.history-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -60deg,
    transparent,
    transparent 80px,
    rgba(232,130,58,0.025) 80px,
    rgba(232,130,58,0.025) 82px
  );
  pointer-events: none;
  z-index: 0;
}

.history-section .container {
  position: relative;
  z-index: 1;
}

/* セクションタイトル色調整 */
.history-section .section-title {
  color: #fff;
}
.history-section .section-title span {
  color: #f0a060;
}
.history-section .section-badge {
  background: rgba(232,130,58,0.15);
  border-color: rgba(232,130,58,0.35);
  color: #f0a060;
}
.history-section .divider {
  background: linear-gradient(90deg, transparent, rgba(232,130,58,0.6), transparent);
}

/* 左右カラムタイトル */
.history-section .col-subtitle {
  color: #f5d9bc;
  border-bottom-color: rgba(232,130,58,0.25);
}
.history-section .col-subtitle i {
  color: #f0a060;
}

.history-strengths-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 36px;
}

/* 幹：年輪を連想するグラデーションライン */
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(240,160,96,0.9)  0%,
    rgba(232,130,58,0.7)  30%,
    rgba(200,104,32,0.5)  60%,
    rgba(180,88,20,0.3)  85%,
    rgba(180,88,20,0.1) 100%
  );
}

.tl-item {
  position: relative;
  margin-bottom: 36px;
  padding: 20px 20px 20px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  transition: background 0.3s, border-color 0.3s;
}

.tl-item:hover {
  background: rgba(232,130,58,0.08);
  border-color: rgba(232,130,58,0.25);
}

.tl-item:last-child {
  margin-bottom: 0;
}

/* ドット：年輪の節 */
.tl-dot {
  position: absolute;
  left: -31px;
  top: 24px;
  width: 16px;
  height: 16px;
  background: #1a1a1d;
  border: 2.5px solid #e8823a;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 6px rgba(232,130,58,0.4);
}

.tl-dot-now {
  background: #e8823a;
  border-color: #f0a060;
  box-shadow: 0 0 0 4px rgba(232,130,58,0.2), 0 0 12px rgba(232,130,58,0.5);
}

.tl-year {
  font-size: 11px;
  font-weight: 700;
  color: #f0a060;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
}

.tl-event {
  font-size: 15px;
  font-weight: 700;
  color: #f5d9bc;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.tl-content p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.9;
}

.tl-now .tl-event {
  color: #f0a060;
}

/* タイムライン写真 */
.tl-photo-wrap {
  margin-top: 14px;
  display: inline-block;
  position: relative;
}

.tl-photo {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 6px;
  opacity: 0.82;
  filter: sepia(30%) contrast(0.95) brightness(0.92);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 4px 20px rgba(0,0,0,0.5),
    0 0 0 1px rgba(232,130,58,0.20);
  transition: opacity 0.3s, filter 0.3s;
}

.tl-photo:hover {
  opacity: 1;
  filter: sepia(10%) contrast(1) brightness(1);
}

.tl-photo-caption {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 1px;
  font-family: 'Inter', sans-serif;
}

/* ===== STRENGTHS LIST ===== */
.strengths-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.str-item {
  display: flex;
  gap: 20px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.str-item:hover {
  background: rgba(232,130,58,0.08);
  border-color: rgba(232,130,58,0.25);
  transform: translateX(4px);
}

.str-num {
  font-size: 28px;
  font-weight: 900;
  color: rgba(232,130,58,0.18);
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 2px;
}

.str-body h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #f5d9bc;
  margin-bottom: 8px;
}

.str-body h4 i {
  color: #f0a060;
  font-size: 14px;
}

.str-body p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.9;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .overview-layout {
    grid-template-columns: 1fr;
  }
  .overview-side {
    flex-direction: row;
  }
  .ov-map-card, .ov-permit-card {
    flex: 1;
  }
}

@media (max-width: 1024px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .mb-body {
    grid-template-columns: 1fr;
  }

  .mb-visual {
    display: none;
  }

  .history-strengths-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .slogan-block {
    padding: 40px 40px;
  }
}

@media (max-width: 768px) {
  .slogan-block {
    padding: 48px 28px;
    min-height: 200px;
    align-items: center;
    justify-content: center;
  }

  .slogan-text {
    text-align: center;
    width: 100%;
  }

  .slogan-deco-line {
    display: none;
  }

  .values-row {
    flex-wrap: wrap;
  }

  .val-sep {
    display: none;
  }

  .val-item {
    min-width: 50%;
  }

  .overview-side {
    flex-direction: column;
  }

  .overview-table th {
    width: 140px;
    font-size: 13px;
    padding: 14px 16px;
  }

  .overview-table td {
    padding: 14px 16px;
    font-size: 13px;
  }

  .mb-header {
    padding: 20px 24px;
  }

  .mb-content {
    padding: 24px;
  }

  .ov-tel {
    font-size: 16px;
    letter-spacing: 0.5px;
  }
}
