/* =========================
   Company Page
========================= */
/* ===== PAGE LAYOUT OVERRIDE ===== */
.container { max-width: 1080px; padding: 0 32px; }

/* ===== 1. PAGE HERO ===== */
#company-hero{ position: relative; min-height: 40vh;
  display: flex; align-items: center;
  background: var(--navy2); overflow: hidden;
}
#company-hero::before{ content: ''; position: absolute; inset: 0;
  background: linear-gradient(130deg, rgba(15,30,66,.95) 0%, rgba(27,45,94,.80) 55%, rgba(40,176,210,.15) 100%);
}
#company-hero::after{ content: ''; position: absolute; top: -120px; right: -120px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(40,176,210,.22) 0%, transparent 65%);
  border-radius: 50%;
}
.hero-grid-lines{ position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-grid-lines::before{ content: ''; position: absolute; top: 0; left: 50%; width: 1px; height: 100%; background: linear-gradient(to bottom, transparent, rgba(40,176,210,.12), transparent); }
.hero-grid-lines::after{ content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: linear-gradient(to right, transparent, rgba(40,176,210,.12), transparent); }
.c-hero-content{ position: relative; z-index: 2; width: 100%; padding: 120px 0 72px; }
.c-hero-eyebrow{ display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.c-hero-eyebrow-bar{ width: 40px; height: 2px; background: var(--blue); flex-shrink: 0; }
.c-hero-eyebrow-text{ font-size: 11px; font-weight: 700; letter-spacing: .22em; color: var(--blue); text-transform: uppercase; font-family: 'Helvetica Neue', Arial, sans-serif; }
.c-hero-title{ font-size: clamp(32px, 7vw, 96px); font-weight: 900; color: #fff; line-height: 1.05; letter-spacing: -.03em; margin-bottom: 18px; }
.c-hero-title span{ color: var(--blue); }
.c-hero-sub{ font-size: 14px; color: rgba(255,255,255,.5); letter-spacing: .08em; font-family: 'Helvetica Neue', Arial, sans-serif; text-transform: uppercase; }
/* ===== 2. 会社概要テーブル ===== */
#company-info{ padding: 100px 0; background: #fff; }
.info-table-wrap{ max-width: 800px; margin: 0 auto; }
.info-table{ width: 100%; border-collapse: collapse; }
.info-table tr{ border-bottom: 1px solid var(--gray100); }
.info-table tr:first-child{ border-top: 1px solid var(--gray100); }
.info-table th{ width: 180px; padding: 24px 0; font-size: 13px; font-weight: 700; color: var(--gray500); letter-spacing: .08em; vertical-align: top; text-align: left; }
.info-table td{ padding: 24px 0 24px 24px; font-size: 15px; color: var(--navy); line-height: 1.8; vertical-align: top; font-weight: 700;}
.info-table td span{ font-weight: 500; color: var(--gray700); display: block; margin-top: 4px; font-size: 14px;}
/* ===== 3. 代表メッセージ (TOPデザイン踏襲) ===== */
#company-message{ padding: 100px 0; background: var(--gray50); }
.message-inner{ display: grid; grid-template-columns: 320px 1fr; gap: 80px; align-items: start; max-width: 900px; margin: 0 auto; }
/* 追従しないように修正 */
.message-photo-wrap{ display: flex; flex-direction: column; align-items: center; }
.message-photo{ width: 280px; height: 280px; border-radius: 50%; object-fit: cover; object-position: top center; border: 4px solid #fff; box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.message-name{ margin-top: 24px; text-align: center; }
.message-name-ja{ font-size: 20px; font-weight: 900; color: var(--navy); }
.message-name-en{ font-size: 12px; color: var(--gray500); letter-spacing: .08em; margin-top: 4px; font-family: 'Helvetica Neue', Arial, sans-serif; }
.message-quote{ font-size: clamp(22px, 3vw, 32px); font-weight: 900; color: var(--navy); line-height: 1.5; margin-bottom: 32px; letter-spacing: -.02em;}
.message-quote span{ color: var(--blue); }
.message-body{ font-size: 15px; color: var(--gray700); line-height: 2; margin-bottom: 24px; }
/* ===== 4. メンバー ===== */
#company-team{ padding: 60px 0 100px; background: #fff; text-align: center;}
.team-grid{ display: flex; justify-content: center; gap: 64px; margin-top: 48px; flex-wrap: wrap;}
.team-member{ text-align: center; cursor: pointer; }
.team-photo-wrap{ position: relative; width: 220px; height: 220px; margin: 0 auto 20px; }
.team-photo{ width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 10px 30px rgba(0,0,0,.08); transition: transform .3s, box-shadow .3s;}
.team-member:hover .team-photo{ transform: translateY(-4px); box-shadow: 0 14px 40px rgba(40,176,210,.2); border-color: var(--blue);}
.team-add-btn{ position: absolute; bottom: 8px; right: 16px; width: 44px; height: 44px; background: var(--blue); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 300; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.1); transition: transform .3s;}
.team-member:hover .team-add-btn{ transform: scale(1.1); background: var(--navy);}
.team-name{ font-size: 18px; font-weight: 900; color: var(--navy); }
/* メンバーモーダル */
.modal-overlay{ position: fixed; inset: 0; background: rgba(11,25,58,0.9); backdrop-filter: blur(8px); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.3s; padding: 20px;}
.modal-overlay.active{ opacity: 1; visibility: visible; }
.modal-content{ background: #fff; width: 100%; max-width: 660px; padding: 56px; position: relative; border-radius: 8px; max-height: 90vh; overflow: hidden;}
.modal-close{ position: absolute; top: 20px; right: 24px; z-index: 3; font-size: 40px; line-height: 1; cursor: pointer; color: var(--gray300); background:none; border:none; transition: color .3s;}
.modal-close:hover{ color: var(--navy); }
.modal-profile{ display: flex; gap: 32px; align-items: flex-start; max-height: calc(90vh - 112px); overflow-y: auto; padding-right: 4px; }
.modal-photo{ width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gray100); flex-shrink: 0;}
.modal-info{ flex: 1; text-align: left; }
.modal-name{ font-size: 24px; font-weight: 900; color: var(--navy); margin-bottom: 24px;}
.modal-msg{ font-size: 14.5px; color: var(--gray700); line-height: 1.8; }
.modal-msg strong{ display: block; font-size: 16px; color: var(--navy); margin-bottom: 16px; line-height: 1.5; }
/* ===== 5. アクセス ===== */
#company-access{ padding: 100px 0; background: var(--gray50); }
.map-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; align-items: stretch; }
.map-card{ background: #fff; border: 1px solid var(--gray100); padding: 24px; display: flex; flex-direction: column; }
.map-title{ font-size: 18px; font-weight: 900; color: var(--navy); margin-bottom: 12px; border-left: 4px solid var(--blue); padding-left: 12px;}
.map-addr{ font-size: 13px; color: var(--gray700); line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }
.map-iframe-wrap{ width: 100%; aspect-ratio: 4/3; background: var(--gray300); }
.map-iframe-wrap iframe{ width: 100%; height: 100%; border: none; display: block; }
.company-message-header { text-align: center; margin-bottom: 64px; }
/* ===== RESPONSIVE ===== */
@media (max-width: 1024px){ .message-inner { grid-template-columns: 1fr; gap: 40px; }
.message-photo-wrap { position: static; max-width: 280px; margin: 0 auto; }
.map-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) { .c-hero-content{ padding: 100px 0 60px; }
.info-table th{ width: 100px; font-size: 12px; }
.info-table td{ padding-left: 16px; font-size: 13.5px; }
.modal-content{ padding: 48px 24px 32px; }
.modal-close{ top: 12px; right: 16px; }
.modal-profile{ flex-direction: column; align-items: center; text-align: center; }
.modal-profile{ max-height: calc(90vh - 80px); }
.modal-photo{ width: 120px; height: 120px; }
/* 追加: メンバーのスマホ時2列表示 */
.team-grid{ gap: 32px 16px; }
.team-member{ flex: 0 0 calc(50% - 8px); }
.team-photo-wrap{ width: 140px; height: 140px; margin: 0 auto 12px; }
.team-add-btn{ width: 36px; height: 36px; font-size: 24px; right: 4px; bottom: 4px; border-width: 2px; }
.team-name{ font-size: 15px; }
}
@media (max-width: 768px) { .container { padding: 0 20px; } }
