/* =========================================================
   about.css
   - 私たちについて（部門紹介）専用スタイル
   - Last Updated: 2025.12 (Final Version with Nav Updates)
========================================================= */

/* --- Utilities --- */
.bg-gray {
  background-color: var(--color-gray-light);
  padding: 6rem 0;
}
.bg-white {
  background-color: #fff;
}

/* 余白調整用クラス */
.pb-0 {
  padding-bottom: 0 !important;
}
.pt-0 {
  padding-top: 0 !important;
}
.mt-5 {
  margin-top: 3rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

/* --- Hero Section Adjustment for About Page --- */
/* ヒーロー画像の下部を伸ばして、重なり部分の文字被りを防ぐ */
.page-hero.hero-level2-auth {
  padding-bottom: 140px !important;
  align-items: flex-start;
  padding-top: 180px;
}

/* =========================================================
   About Page: Vision & Mission Area (Overlap Style)
   - Typography Control with <span>
========================================================= */

.vision-overlap-wrapper {
  background: #fff;
  border-radius: 8px;
  padding: 80px 60px; /* 余白を調整して視認性を向上 */
  margin-top: 60px;
  position: relative;
  z-index: 10;
}

/* --- Header & Title --- */
.vision-header {
  text-align: center;
  margin-bottom: 60px;
}

.en-label {
  display: block;
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.vision-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 30px;
  font-feature-settings: 'palt'; /* 文字詰め */
}

/* PC：指定した箇所で改行 */
.vision-title span,
.vision-desc span {
  display: block;
}

.vision-desc {
  font-size: 1.05rem;
  line-height: 2.2;
  color: #555;
}

/* --- Mission Box --- */
.mission-box {
  background-color: #f0f7ff;
  padding: 60px;
  border-radius: 8px;
  position: relative;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.mission-label {
  background: var(--color-primary);
  color: #fff;
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 700;
  padding: 6px 24px;
  display: inline-block;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 20px;
  font-size: 0.9rem;
}

.mission-text {
  font-size: 1.05rem;
  line-height: 2.2;
  color: var(--text-main);
}

.mission-text strong {
  color: var(--color-primary);
  font-weight: 700;
}

/* --- Mobile Adjustments (max-width: 768px) --- */
@media (max-width: 768px) {
  .vision-overlap-wrapper {
    padding: 50px 20px;
    margin-top: 40px;
  }

  /* スマホ：PCでの強制改行を解除し、自然な文章として流す */
  .vision-title span,
  .vision-desc span,
  .mission-text span {
    display: inline;
  }

  .vision-header {
    text-align: left; /* スマホでは左寄せで可読性を確保 */
    margin-bottom: 40px;
  }

  .vision-title {
    font-size: 1.6rem;
    line-height: 1.4;
  }

  .vision-desc {
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .mission-box {
    padding: 45px 20px 35px;
    text-align: left; /* スマホでは左寄せ */
  }

  .mission-label {
    left: 20px;
    transform: translateY(-50%);
  }

  .mission-text {
    font-size: 1rem;
    line-height: 1.8;
  }
}

/* ---------------------------------------------------------
   Action Grid (2SE)
--------------------------------------------------------- */
.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.action-card {
  background: #fff;
  border: 1px solid var(--color-gray-border);
  border-radius: 8px;
  padding: 30px 15px;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  height: 100%;
}

.action-icon {
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: #fff;
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.action-card h4 {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.action-head {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 15px;
  line-height: 1.5;
  min-height: 3em;
}

.action-keywords {
  list-style: none;
  padding: 0;
  border-top: 1px dashed #ddd;
  padding-top: 15px;
}
.action-keywords li {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 5px;
  background: #f9f9f9;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ---------------------------------------------------------
   About Navigation Grid
   - 第3階層へのリンクカード
--------------------------------------------------------- */
.about-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.about-nav-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.about-nav-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card-image {
  height: 300px;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.about-nav-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 25px;
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
}
.card-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}
.card-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 10px; /* 下にリンクテキストが入るため少し詰める */
  flex-grow: 1;
}

/* 「詳しく見る →」のスタイル */
.card-link-text {
  margin-top: 15px;
  font-weight: 700;
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.95rem;
}
.card-link-text .arrow {
  margin-left: 8px;
  transition: transform 0.3s;
}
.about-nav-card:hover .card-link-text .arrow {
  transform: translateX(5px);
}

/* 従来の絶対配置矢印（シンプルカード用） */
.arrow-icon {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-weight: bold;
  color: var(--color-primary);
  transition: transform 0.3s;
}
.about-nav-card:hover .arrow-icon {
  transform: translateX(5px);
}

/* 画像なしシンプルカード（リンク用） */
.card-content.simple {
  justify-content: center;
  border-top: 4px solid var(--color-primary);
  min-height: 150px;
  background: #f9fbfd;
}

/* ---------------------------------------------------------
   Chief Message
--------------------------------------------------------- */
.message-box {
  display: flex;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.message-img {
  width: 40%;
  min-height: 300px;
}
.message-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.message-content {
  width: 60%;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.message-lead {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 25px;
  line-height: 1.4;
}

.message-text {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 30px;
  text-align: justify;
}

.signer-area {
  text-align: right;
}
.position {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 5px;
}
.name {
  font-size: 1.4rem;
  font-weight: 700;
}

/* ---------------------------------------------------------
   Features (当部署の特徴)
--------------------------------------------------------- */
.feature-row {
  display: flex;
  align-items: center;
  gap: 60px;
}
.feature-row:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
}
.feature-text p {
  font-size: 1rem;
  line-height: 2;
  text-align: justify;
}
.feature-text .section-header {
  text-align: left;
  margin-bottom: 30px;
}

.feature-img {
  flex: 1;
}
.feature-img img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* ---------------------------------------------------------
   Standards (施設基準)
--------------------------------------------------------- */
.standards-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  border: 1px solid #eee;
}

.std-item {
  display: flex;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px dashed #eee;
}
.check-icon {
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 1.2rem;
  margin-right: 10px;
}
.std-name {
  font-weight: 700;
  font-size: 1rem;
}

/* ---------------------------------------------------------
   Environment (施設環境 Grid)
--------------------------------------------------------- */
.env-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.env-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.env-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.env-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.env-item p {
  padding: 15px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
  color: var(--text-main);
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media (max-width: 900px) {
  .action-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Hero Reset */
  .page-hero.hero-level2-auth {
    padding-bottom: 80px !important;
    padding-top: 100px;
  }

  /* Vision */
  .vision-overlap-wrapper {
    margin-top: 0px;
    padding: 30px 20px;
  }
  .vision-title {
    font-size: 1.8rem;
  }
  .vision-desc {
    text-align: left;
  }
  .mission-box {
    padding: 30px;
  }

  /* Action */
  .action-grid {
    grid-template-columns: 1fr;
  }
  .action-head {
    min-height: auto;
  }

  /* Nav Grid */
  .about-nav-grid {
    grid-template-columns: 1fr;
  }

  /* Message */
  .message-box {
    flex-direction: column;
  }
  .message-img {
    width: 100%;
    height: 300px;
    min-height: auto;
  }
  .message-img img {
    /* 画像の上部を基準に表示する（頭が切れないように） */
    object-position: 50% 20%;
  }
  .message-content {
    width: 100%;
    padding: 30px;
  }
  .message-lead {
    font-size: 1.3rem;
  }

  /* Feature */
  .feature-row {
    flex-direction: column-reverse;
    gap: 30px;
  }
  .feature-text .section-header {
    text-align: center;
  }

  /* Standards */
  .standards-list {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  /* Environment */
  .env-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .env-grid {
    grid-template-columns: 1fr;
  }
}
