/* ==========================================
   ユナイテッドバイオ株式会社 (United Bio Inc.)
   全共通スタイルシート (style.css)
   ========================================== */

/* ------------------------------------------
   1. 基本設定・カラー定義
   ------------------------------------------ */
:root {
  --primary-color: rgb(0, 0, 110);      /* ダークブルー (#00006E) */
  --primary-light: #1a1a8c;
  --accent-color: #00a8e8;               /* アクセントライトブルー */
  --text-color: #2b2b2b;
  --bg-light: #f8fafd;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", MeiYo, sans-serif;
  color: var(--text-color);
  line-height: 1.7;
  background-color: var(--bg-white);
}

/* ------------------------------------------
   2. レイアウト・共通パーツ
   ------------------------------------------ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.bg-dark {
  background-color: var(--primary-color);
  color: #ffffff;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  color: var(--primary-color);
  letter-spacing: 2px;
}

.section-title.light {
  color: #ffffff;
}

.section-lead {
  text-align: center;
  font-size: 1rem;
  color: #666;
  margin-bottom: 50px;
}

.section-lead.light {
  color: #cbd5e1;
}

/* ボタン共通 */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #0086ba;
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-secondary:hover {
  background-color: #ffffff;
  color: var(--primary-color);
}

/* ------------------------------------------
   3. ヘッダー
   ------------------------------------------ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

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

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 25px;
}

.nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--accent-color);
}

.nav .btn-nav {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 4px;
}

.nav .btn-nav:hover {
  background-color: var(--primary-light);
}

/* ------------------------------------------
   4. メインビジュアル（背景画像: UB_TOKYO.jpeg）
   ------------------------------------------ */
.hero {
  padding: 180px 20px 120px;
  background: linear-gradient(
                135deg, 
                rgba(0, 0, 110, 0.75) 0%, 
                rgba(13, 27, 42, 0.65) 100%
              ), 
              url('UB_TOKYO.jpeg') no-repeat center center / cover;
  color: #ffffff;
  text-align: center;
  position: relative;
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.35;
  margin-bottom: 25px;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #f1f5f9;
  margin-bottom: 40px;
  font-weight: 500;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ------------------------------------------
   5. コンテンツ・カード・カテゴリーリスト
   ------------------------------------------ */
.features-grid, .cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: start;
}

.feature-card {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.feature-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.card {
  background: #ffffff;
  padding: 35px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--accent-color);
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* カード内の挿絵画像スタイル */
.card-illustration {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  display: block;
  margin: 18px 0;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

/* 準備中表示ボックス & カテゴリー体系 */
.product-status-box {
  margin-top: 20px;
  padding: 18px;
  background-color: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.status-note {
  font-size: 0.85rem;
  color: #d97706;
  font-weight: bold;
  margin-bottom: 10px;
}

.category-lead {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.product-category-list {
  list-style: none;
  padding-left: 0;
}

.product-category-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.88rem;
  color: #475569;
  margin-bottom: 6px;
  line-height: 1.5;
}

.product-category-list li::before {
  content: "•";
  color: var(--accent-color);
  font-weight: bold;
  position: absolute;
  left: 5px;
}

.product-category-list strong {
  color: var(--primary-color);
}

/* アコーディオン設定（MetaSystems用） */
.accordion-item {
  margin-top: 20px;
  border-top: 1px dashed var(--border-color);
  padding-top: 15px;
  position: relative;
  z-index: 10;
}

.accordion-toggle {
  width: 100%;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: bold;
  color: var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 0.95rem;
}

.accordion-toggle:hover {
  background: #e2e8f0;
}

.accordion-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.accordion-toggle.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background: #fafafa;
  border-radius: 0 0 6px 6px;
}

.accordion-inner {
  padding: 15px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #475569;
}

.accordion-inner p {
  margin-bottom: 10px;
}

.highlight-text {
  background-color: #e0f2fe;
  padding: 8px 10px;
  border-left: 3px solid var(--accent-color);
  border-radius: 2px;
  color: #0369a1;
}

.external-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent-color);
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
  position: relative;
  z-index: 20;
}

.external-link:hover {
  color: #0086ba;
}

/* ------------------------------------------
   6. 受託サービスカード
   ------------------------------------------ */
.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background: #ffffff;
  padding: 35px;
  border-radius: 8px;
  border-top: 4px solid var(--accent-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.service-tag {
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--accent-color);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.service-card h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.service-item-list {
  list-style: none;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #e2e8f0;
}

.service-item-list li {
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 8px;
  position: relative;
  padding-left: 18px;
}

.service-item-list li::before {
  content: "✓";
  color: var(--accent-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* ------------------------------------------
   7. 会社概要テーブル
   ------------------------------------------ */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.company-table th, .company-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.company-table th {
  width: 25%;
  background-color: var(--bg-light);
  color: var(--primary-color);
  font-weight: bold;
}

/* ------------------------------------------
   8. お問い合わせフォーム
   ------------------------------------------ */
.contact-desc {
  text-align: center;
  margin-bottom: 40px;
  color: #e2e8f0;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.required {
  color: #ff6b6b;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid #ffffff33;
  background-color: #ffffff;
  color: var(--text-color);
  font-size: 1rem;
}

.btn-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  margin-top: 10px;
}

/* ------------------------------------------
   9. フッター
   ------------------------------------------ */
.footer {
  background-color: #080838;
  color: #888;
  text-align: center;
  padding: 25px 0;
  font-size: 0.85rem;
}

/* ------------------------------------------
   10. レスポンシブ対応
   ------------------------------------------ */
@media (max-width: 768px) {
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1rem; }
  .nav ul { display: none; }
  .company-table th, .company-table td { display: block; width: 100%; }
}