:root {
  --primary-color: #2563eb;
  --secondary-color: #f8fafc;
  --text-color: #1e293b;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* インタビュープロフィールセクション */
.interview-profile {
  margin-top: 40px;
  padding: 25px 30px;
  border: 1px solid #D4D4D4;
  border-radius: 10px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.interview-profile-photo {
  flex-shrink: 0;
  width: 300px;
  line-height: 0;
}

.interview-profile-photo img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.interview-profile-info {
  flex: 1;
}

.interview-profile-info h3 {
  font-size: 1.4em;
  font-weight: 600;
  margin: 0 0 15px 0;
  color: #333;
}

.interview-profile-info p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px 0;
  color: #666;
}

.interview-profile-contact {
  margin-top: 15px;
}

.interview-profile-contact p {
  margin: 5px 0;
  font-size: 13px;
  color: #777;
}


.interview-profile-contact .url a {
  color: #0066cc;
  text-decoration: none;
}

.interview-profile-contact .url a:hover {
  text-decoration: underline;
}

/* モーダルヒーローセクション */
.modal-hero {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.modal-hero-image {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.modal-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-hero-content {
  padding: 25px 0;
  text-align: left;
}

/* モーダルタイトルのスタイリング */
#modal-title {
  margin: 0 0 25px 0;
  font-size: 2.5em;
  line-height: 1.4;
  color: #08499F;
  font-weight: 600;
}

.company-name {
  font-size: 1.5em;
  color: #08499F;
  font-weight: 400;
  text-align: right;
}

.company-name {
  display: flex;
  align-items: center;
}

.company-name:before {
  content: "";
  height: 1px;
  flex-grow: 1;
  background-color: #08499F;
}

.company-name:before {
  margin-right: 1rem;
}

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

.interview_list {
  margin-bottom: 100px;
}

.interview-card {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 1080px;
  flex-wrap: wrap;
  align-items: center;
  background: white;
  border-radius: 10px;
  margin: 0 auto 40px;
  padding: 0;
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.interview-card:hover {
  opacity: 0.75;
}

.interview-card img {
  width: 240px;
  height: 240px;
  border-radius: 10px 0 0 10px;
  object-fit: cover;
}

.interview-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.interview-card-photo {
  width: 240px;
  margin: 0 40px 0 0;
  line-height: 0;
}

.interview-card-text {
  width: calc(100% - 280px);
  margin: -20px 0 0;
}

.interview-card-text h3 {
  font-size: 30px;
  color: #08499F;
}

.interview-card-text span {
  display: block;
  margin: 1em 0 0;
  font-size: 18px;
  line-height: 1.5em;
}

.read-more {
  position: absolute;
  bottom: 30px;
  right: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0.5em 1.5em;
  background-color: #345FF7;
  color: #fff;
  border-radius: 24px;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 4px;
  width: 90vw;
  max-width: 1200px;
  max-height: 90vh;
  overflow-y: auto;
  position: absolute;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition);
  padding: 32px;
}

.modal.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  position: relative;
}

.close-btn {
margin-bottom:10px;
  position: sticky;
  top: 0px;
  color:white;
  background: black;
  border: 0;
width: 54px;
height: 54px;
  font-size: 2.4rem;
 // line-height: 1em;
  font-weight: 64;
  cursor: pointer;
 	//padding: 0.5rem;
 	border-radius:50%;
	opacity: 0.64;
	left: calc(100vw - 0px);
	z-index: 10000;
}

.close-btn:hover {
  opacity: 0.5;
}

.modal-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-profile img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.modal-profile-info h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.modal-profile-info .company {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 1.1rem;
}

.modal-body {
  padding: 2rem 0 0;
}

.interview-content {
  line-height: 1.8;
  font-size: 1rem;
}

.interview-content p {
  margin-bottom: 4rem;
  font-size: 1.1rem;
}

.interview-content h3 {
  position: relative;
  display: inline-block;
  padding: 0 0 0 26px;
  color: #08499F;
  margin-bottom: 1rem;
  margin-top: 2rem;
  font-size: 1.2rem;
  line-height: 1.5em;
}

.interview-content h3:before {
  content: '';
  position: absolute;
  top: 12px;
  display: inline-block;
  width: 18px;
  height: 1px;
  background-color: #08499F;
}

.interview-content h3:before {
  left: 0;
}




/* Responsive */
@media (max-width: 768px) {

  /* インタビューカード一覧のレスポンシブ対応 */
  .interview-card {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }

  .interview-card-photo {
    width: 100%;
    margin: 0;
    order: -1;
  }

  .interview-card-photo img,
  .interview-card img {
    width: 100%;
    height: 300px;
    border-radius: 10px 10px 0 0;
    object-fit: cover;
  }

  .interview-card-text {
    width: 100%;
    margin: 0;
    padding: 20px;
    order: 1;
  }

  .interview-card-text h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
  }

  .interview-card-text span {
    font-size: 1em;
    margin: 10px 0 0px 0;
  }

  .read-more {
    position: static;
    display: block;
    width: 80%;
    margin: 0px 10% 20px;
    order: 2;
    text-align: center;
  }

  .modal-content {
    width: 90vw;
    max-height: 82vh;
    margin: 1rem;
    padding: 20px;
  }

  .modal-hero-image {
    height: 200px;
  }

  .modal-hero-content {
    padding: 15px 0;
  }

  #modal-title {
    font-size: 1.5em;
  }

  .company-name {
    font-size: 0.9em;
  }

  .interview-profile {
    flex-direction: column;
    gap: 15px;
  }

  .interview-profile-photo {
    width: 200px;
    height: auto;
    align-self: center;
  }

  .interview-profile-info h3 {
    font-size: 1.2em;
    text-align: center;
  }

  .interview-profile-info p {
    font-size: 13px;
  }

  .close-btn {
    //top: -22px;
    //right: -15px;
   // font-size: 2.5rem;
    //padding: 0.25rem;
    color: #FFF;
    width: 40px;
    height: 40px;
    //display: flex;
    //align-items: center;
    //justify-content: center;
border-radius:50%;
text-align:center;
margin:0 auto;
line-height:40px;
  }

  .modal-header,
  .modal-body {
    padding: 1.5rem 0 0.5rem;
  }

  .interview-content {
    font-size: 0.9rem;
  }

  .interview-content p {
    font-size: 0.9rem;
    margin-bottom: 2rem;
  }

  .interview-content h3 {
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .modal-profile {
    flex-direction: column;
    text-align: center;
  }

  .interviews-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Focus styles for accessibility */
.interview-card:focus,
.close-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
