/* ============================================================
   docs.css — 会社概要・プライバシーポリシー・特定商取引法等
   ============================================================ */

/* ============================================================
   共通
   ============================================================ */
#company-intro,
#president-message,
#company-info,
#company-history,
#company-vision,
#company-contact,
#privacy-content,
#law-content {
  padding: 72px 0;
}
@media (min-width: 768px) {
  #company-intro,
  #president-message,
  #company-info,
  #company-history,
  #company-vision,
  #company-contact,
  #privacy-content,
  #law-content { padding: 88px 0; }
}

/* 背景切り替え */
#company-intro    { background: #ffffff; }
#president-message{ background: #f0f4ff; }
#company-info     { background: #ffffff; }
#company-history  { background: #f0f4ff; }
#company-vision   { background: #ffffff; }
#company-contact  { background: #f0f4ff; }
#privacy-content  { background: #ffffff; }
#law-content      { background: #ffffff; }

/* ============================================================
   Lead box (会社概要ページ上部説明)
   ============================================================ */
.docs-lead-box {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 40px;
  background: #eff6ff;
  border-radius: 12px;
  border-left: 5px solid #1e40af;
}
.docs-lead-box p {
  font-size: 15px;
  color: #1e293b;
  line-height: 1.9;
  margin-bottom: 12px;
}
.docs-lead-box p:last-child { margin-bottom: 0; }

/* ============================================================
   代表挨拶
   ============================================================ */
.message-inner {
  display: flex;
  flex-direction: column-reverse;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .message-inner { flex-direction: row; align-items: flex-start; gap: 56px; }
}

.message-body { flex: 1; }
.message-body p {
  font-size: 15px;
  color: #1e293b;
  line-height: 1.95;
  margin-bottom: 16px;
}
.message-body p:last-child { margin-bottom: 0; }

.message-signature {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  text-align: right;
}
.message-company {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 4px;
}
.message-name {
  font-size: 16px;
  color: #0f172a;
}
.message-name strong { font-weight: 900; }

.message-visual {
  flex: 0 0 180px;
  text-align: center;
}
@media (min-width: 768px) { .message-visual { flex: 0 0 200px; } }

.message-photo-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 28px rgba(30, 64, 175, 0.25);
}
@media (min-width: 768px) {
  .message-photo-placeholder { width: 180px; height: 180px; }
}
.message-photo-placeholder i {
  font-size: 72px;
  color: rgba(255, 255, 255, 0.85);
}
.message-photo-label {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
}
.message-photo-label strong { color: #0f172a; font-weight: 700; }

/* ============================================================
   テーブル（会社情報・特定商取引法）
   ============================================================ */
.docs-table-wrap {
  max-width: 860px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
@media (min-width: 768px) { .docs-table { font-size: 15px; } }

.docs-table th,
.docs-table td {
  padding: 18px 20px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
  line-height: 1.75;
  text-align: left;
}

.docs-table th {
  width: 30%;
  min-width: 120px;
  font-weight: 700;
  color: #0f172a;
  background: #f0f4ff;
  white-space: nowrap;
}
@media (min-width: 768px) { .docs-table th { width: 25%; } }

.docs-table td {
  color: #1e293b;
  background: #ffffff;
}
.docs-table td a {
  color: #1e40af;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.docs-table td a:hover { color: #1e3a8a; }

.docs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.docs-list li {
  padding-left: 14px;
  position: relative;
  font-size: 14px;
  color: #1e293b;
}
.docs-list li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: #1e40af;
}

/* ============================================================
   沿革（センタータイムライン）
   ============================================================ */
.history-list {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}
/* 中央縦線 */
.history-list::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, #1e40af, rgba(30, 64, 175, 0.15));
}

.history-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-bottom: 36px;
  position: relative;
  align-items: flex-start;
}
.history-item:last-child { padding-bottom: 0; }
/* 中央ドット */
.history-item::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1e40af;
  border: 3px solid #f0f4ff;
  box-shadow: 0 0 0 2px #1e40af;
  z-index: 1;
}

.history-date {
  display: flex;
  flex-direction: column;
  text-align: right;
  padding-right: 32px;
}

.history-year {
  font-size: 16px;
  font-weight: 900;
  color: #1e40af;
  line-height: 1.2;
}
.history-month {
  font-size: 13px;
  color: #64748b;
}

.history-content {
  padding-top: 2px;
  padding-left: 32px;
}
.history-content p {
  font-size: 15px;
  color: #1e293b;
  line-height: 1.7;
}

/* モバイル：左寄せシングルカラム */
@media (max-width: 575px) {
  .history-list::before {
    left: 16px;
    transform: none;
  }
  .history-item {
    grid-template-columns: 1fr;
    padding-left: 44px;
    padding-bottom: 28px;
  }
  .history-item::before {
    left: 10px;
    transform: none;
  }
  .history-date {
    text-align: left;
    padding-right: 0;
    margin-bottom: 4px;
  }
  .history-content {
    padding-left: 0;
  }
}

/* ============================================================
   事業への想い
   ============================================================ */
.vision-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .vision-inner { grid-template-columns: 1fr auto; align-items: start; }
}

.vision-body p {
  font-size: 15px;
  color: #1e293b;
  line-height: 1.95;
  margin-bottom: 16px;
}
.vision-body p:last-child { margin-bottom: 0; }

.vision-icons {
  display: flex;
  gap: 24px;
}
@media (min-width: 768px) {
  .vision-icons { flex-direction: column; gap: 20px; }
}

.vision-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100px;
  text-align: center;
}
.vision-icon-item i {
  font-size: 32px;
  color: #1e40af;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vision-icon-item span {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
}

/* ============================================================
   CTA ボックス（会社概要下部）
   ============================================================ */
.docs-cta-box {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 32px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.docs-cta-box h2 {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 14px;
  line-height: 1.4;
}
@media (min-width: 768px) { .docs-cta-box h2 { font-size: 26px; } }
.docs-cta-box p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 28px;
}
.docs-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
@media (min-width: 567px) {
  .docs-cta-actions { flex-direction: row; justify-content: center; }
}
.docs-cta-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 900;
  color: #1e40af;
  padding: 12px 24px;
  border: 2px solid #dbeafe;
  border-radius: 8px;
  transition: background 0.2s;
  text-decoration: none;
}
.docs-cta-tel:hover { background: #eff6ff; }
.docs-cta-tel i { font-size: 16px; }

/* ============================================================
   プライバシーポリシー・特定商取引法 本文
   ============================================================ */
.docs-content {
  max-width: 820px;
  margin: 0 auto;
}

.docs-preface {
  font-size: 15px;
  color: #1e293b;
  line-height: 1.9;
  margin-bottom: 40px;
  padding: 24px 28px;
  background: #f0f4ff;
  border-radius: 8px;
  border-left: 4px solid #1e40af;
}

.docs-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e2e8f0;
}
.docs-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.docs-h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #dbeafe;
}
@media (min-width: 768px) { .docs-h2 { font-size: 20px; } }

.docs-h2-num {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: #1e40af;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.docs-h2-plain {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 4px solid #1e40af;
}
@media (min-width: 768px) { .docs-h2-plain { font-size: 20px; } }

.docs-section p {
  font-size: 14px;
  color: #1e293b;
  line-height: 1.9;
  margin-bottom: 12px;
}
.docs-section p:last-child { margin-bottom: 0; }

.docs-ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.docs-ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #1e293b;
  line-height: 1.7;
}
.docs-ul li::before {
  content: '▸';
  color: #1e40af;
  font-size: 12px;
  margin-top: 3px;
  flex-shrink: 0;
}

.docs-contact-box {
  margin-top: 20px;
  padding: 20px 24px;
  background: #f0f4ff;
  border-radius: 8px;
  border: 1px solid #dbeafe;
}
.docs-contact-box p {
  font-size: 14px !important;
  color: #1e293b !important;
  margin-bottom: 6px !important;
}
.docs-contact-box p:last-child { margin-bottom: 0 !important; }
.docs-contact-box a {
  color: #1e40af;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.docs-contact-box a:hover { color: #1e3a8a; }

.docs-date {
  margin-top: 48px;
  font-size: 13px;
  color: #64748b;
  text-align: right;
}
