@charset "UTF-8";
#company{
/* ===================================
   企業情報 / INFO
   =================================== */
.section-info {
  padding-top: 0;
  background: var(--color-white);
  /*border-top: 1px solid var(--color-gray-light);*/
}
.info-table {
  width: 100%;
  border-collapse: collapse;
}
.info-table tr {
  border-bottom: 1px solid var(--color-gray-light);
}
.info-table th,
.info-table td {
  padding: 24px 20px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text);
  text-align: left;
  vertical-align: top;
}
.info-table th {
  width: 160px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-text);
}
.office-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.office-gallery-item {
  margin: 0;
}
.office-gallery-frame {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-offwhite);
  border: 1px solid var(--color-gray-light);
}
.office-gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.office-gallery-credit {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--color-text-light);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ===================================
   アクセス / ACCESS
   =================================== */
.section-access {
  background: var(--color-white);
}
.access-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.access-map {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.access-map iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}
.access-info {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.access-info h3 {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.7;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.access-info p {
  font-size: 15px;
  line-height: 2;
  color: var(--color-text-light);
  letter-spacing: 0.04em;
}

/* ===================================
   スタッフ紹介 / STAFF
   =================================== */
.section-staff {
  background: var(--color-white);
  /*border-top: 1px solid var(--color-gray-light);*/
}
.staff-grid {
  display: grid;
  grid-template-columns: calc(35% * 3 / 4) 1fr;
  gap: 48px;
  align-items: start;
}
.staff-left {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.staff-photo {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}
.staff-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
.staff-meta {
  padding: 0 4px;
  text-align: left;
}
.staff-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.staff-name-en {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-gray);
  letter-spacing: 0.06em;
}
.staff-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}
.staff-position {
  font-size: 13px;
  color: var(--color-text-light);
}
.staff-right {
  display: flex;
  flex-direction: column;
}
.staff-meta-right {
  margin-bottom: 24px;
  text-align: left;
}
.staff-role-line {
  font-size: 14px;
  color: var(--color-text-light);
  letter-spacing: 0.04em;
}
.staff-catchphrase {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.8;
  letter-spacing: 0.06em;
  margin-bottom: 32px;
  text-align: left;
}
.staff-message {
  margin-bottom: 32px;
}
.staff-message-body {
  text-align: left;
}
.staff-message-body p {
  font-size: 14.5px;
  line-height: 2.1;
  color: var(--color-text);
  letter-spacing: 0.03em;
}
.staff-message-body p + p {
  margin-top: 16px;
}
.staff-detail-toggle {
  margin-top: auto;
  text-align: left;
}
/* ===================================
   4つのメリット / MERIT
   =================================== */
.section-merit {
  background: var(--color-offwhite);
}
.merit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 24px;
  row-gap: 60px;
  padding-top: 28px;
}
.merit-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 40px 24px 32px;
  text-align: center;
  position: relative;
  overflow: visible;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.merit-badge {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    #053351 0%,
    var(--color-navy) 38%,
    var(--color-navy-light) 78%,
    #1ca3ea 100%
  );
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -43px;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1.2;
  z-index: 2;
}
.merit-badge-num {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.8;
}
.merit-badge-label {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.merit-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.6;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  text-align: left;
}
.merit-illust {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 8px;
  margin-bottom: 16px;
  background: var(--color-offwhite);
  border-radius: 8px;
  overflow: hidden;
}
.merit-illust img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.merit-card ul {
  font-size: 14px;
  color: var(--color-text-light);
  letter-spacing: 0.03em;
  text-align: left;
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.merit-card ul li {
  position: relative;
  padding-left: 1.5em;
  line-height: 1.6;
}
.merit-card ul li::before {
  content: "◼";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1em;
  color: var(--color-navy);
  line-height: 1.6;
}
.merit-card ul li + li {
  margin-top: 0.4em;
}

/* ===================================
   MODAL
   =================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.modal-overlay.is-open {
  display: flex;
}
.modal-panel {
  position: relative;
  background: var(--color-white);
  border-radius: 20px;
  width: 90%;
  max-width: 780px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 48px 48px 40px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.15) transparent;
}
.modal-content::-webkit-scrollbar {
  width: 6px;
}
.modal-content::-webkit-scrollbar-track {
  background: transparent;
}
.modal-content::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
  border-radius: 3px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.25);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  background: var(--color-white);
  border: none;
  border-radius: 4px;
  font-size: 28px;
  color: var(--color-gray);
  cursor: pointer;
  line-height: 1;
  z-index: 10;
  transition: color 0.2s;
}
.modal-close:hover {
  color: var(--color-text);
}
.modal-header {
  margin-bottom: 32px;
  padding-right: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-gray-light);
  text-align: left;
}
.modal-name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.modal-name-en {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-gray);
  letter-spacing: 0.06em;
}
.modal-role {
  font-size: 14px;
  color: var(--color-text-light);
}
.modal-section {
  margin-bottom: 28px;
}
.modal-section:last-child {
  margin-bottom: 0;
}
.modal-section-title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
  text-align: left;
}
.modal-summary {
  font-size: 14px;
  line-height: 2;
  color: var(--color-text);
  letter-spacing: 0.03em;
  text-align: left;
}
.modal-career {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-gray-light);
}
.modal-career:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.modal-career-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
}
.modal-career-period {
  font-size: 13px;
  color: var(--color-accent);
  font-weight: 500;
  white-space: nowrap;
}
.modal-career-org {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.06em;
}
.modal-career-dept {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  margin-top: 16px;
}
.modal-career-dept:first-of-type {
  margin-top: 0;
}
.modal-career-list {
  list-style: none;
  padding: 0;
  margin: 0 0 4px;
}
.modal-career-list li {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--color-text-light);
  padding-left: 16px;
  position: relative;
}
.modal-career-list li::before {
  content: "・";
  position: absolute;
  left: 0;
}
.modal-career-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 12px;
  margin-bottom: 6px;
}
.modal-qualification {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.8;
  text-align: left;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media only screen and (max-width: 1024px) {
  .section-staff .section-inner,
  .section-info .section-inner,
  .section-intro .section-inner,
  .section-merit .section-inner,
  .section-access .section-inner {
    width: 90%;
  }
  .access-map iframe { height: 360px; }
  .access-body { gap: 32px; }
  .staff-grid { gap: 32px; }
  .office-gallery { gap: 20px; margin-top: 40px; }
}

@media only screen and (max-width: 768px) {
  .staff-grid { grid-template-columns: 1fr; }
  .merit-grid {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }
  .info-table th {
    width: 120px;
    font-size: 14px;
  }
  .info-table td { font-size: 14px; }
  .access-map iframe { height: 320px; }
  .access-info { text-align: left; }
}

@media only screen and (max-width: 600px) {
  .parent-company-card { padding: 32px 24px; }
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
    padding: 12px 0;
  }
  .info-table th {
    padding-bottom: 0;
    border-bottom: none;
  }
  .info-table td {
    padding-top: 4px;
  }
  .staff-photo img { aspect-ratio: 1 / 1; }
  .office-gallery {
    gap: 16px;
    margin-top: 32px;
  }
  .merit-grid { grid-template-columns: 1fr; }
  .merit-card { padding: 48px 20px 24px; }
  .modal-panel { width: 92%; max-height: 85vh; border-radius: 16px; }
  .modal-content { padding: 32px 20px; }
  .modal-close { top: 8px; right: 8px; width: 32px; height: 32px; font-size: 24px; }
  .modal-career-header { flex-direction: column; gap: 2px; }
  .access-map iframe { height: 280px; }
  .access-body { gap: 24px; }
  .access-info p { font-size: 14px; }
}
}