@charset "UTF-8";

/* =========================================================
   1. メインコンテンツラッパー
========================================================= */
.content-wrapper {
  padding: 60px 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left; /* 基本を左揃えに */
}

.info-section {
  margin-bottom: 80px;
  scroll-margin-top: 50px; /* スマホや固定ヘッダーでの被り防止 */
}

.info-section h1 {
  font-size: 2.2rem;
  color: #2c3e50;
  border-bottom: 2px solid #eeeeee;
  padding-bottom: 15px;
  margin-bottom: 30px;
  position: relative;
  text-align: left;
}

.info-section h1::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: #4a7bd1;
}

/* =========================================================
   2. 各種コンテンツモジュール
========================================================= */
/* テーブル */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.5rem;
}
.info-table th, .info-table td {
  border: 1px solid #e0e0e0;
  padding: 16px;
  text-align: left;
}
.info-table th {
  background-color: #f8f9fa;
  width: 25%;
  font-weight: bold;
  color: #333333;
}

/* 経営理念・代表挨拶 */
.main-copy {
  background-color: #f4f8fc;
  padding: 24px;
  border-radius: 8px;
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
  color: #2c3e50;
  margin-bottom: 30px;
  border-left: 4px solid #4a7bd1;
}
.philosophy-content h3 {
  font-size: 1.6rem;
  color: #4a7bd1;
  margin: 25px 0 10px;
}
.philosophy-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
}
.message-box {
  line-height: 2;
  font-size: 1.5rem;
  color: #444444;
}
.message-box p {
  margin-bottom: 1.5em;
  text-align: justify;
}
.signature {
  text-align: right;
  margin-top: 30px;
  font-size: 1.6rem;
}

/* 取り組みリンクグリッド */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 15px;
  margin-bottom: 10px;
}
.effort-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  color: #333333;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.4rem;
  transition: all 0.3s ease;
}
.effort-card:hover {
  border-color: #4a7bd1;
  color: #4a7bd1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transform: translateY(-3px);
}
#efforts p {
  text-align: right;
  font-size: 1.2rem;
  color: #666;
}

/* タイムライン（沿革） */
.timeline {
  position: relative;
  padding-left: 140px;
  margin-top: 20px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 110px;
  top: 0;
  width: 2px;
  height: 100%;
  background-color: #e0e0e0;
}
.timeline-year-group {
  margin-bottom: 50px;
  position: relative;
}
.era-label {
  position: absolute;
  left: -140px;
  top: -10px;
  background-color: #4a7bd1;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 1.4rem;
  z-index: 2;
}
.timeline-item {
  display: flex;
  margin-bottom: 25px;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 6px;
  width: 12px;
  height: 12px;
  background-color: #ffffff;
  border: 3px solid #4a7bd1;
  border-radius: 50%;
  z-index: 1;
}
.timeline-item dt {
  position: absolute;
  left: -140px;
  width: 100px;
  text-align: right;
  font-weight: bold;
  color: #2c3e50;
  font-size: 1.4rem;
  top: 2px;
}
.timeline-item dd {
  margin: 0;
  font-size: 1.5rem;
  color: #444444;
  line-height: 1.6;
}

/* アクセスマップ */
.map-container {
  text-align: left;
}
.map-container iframe {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
}
.map-container h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 10px;
}
.map-container p {
  font-size: 1.5rem;
}

/* =========================================================
   3. スマホ・タブレット向けレスポンシブ (1000px以下)
========================================================= */
@media screen and (max-width: 1000px) {
  .content-wrapper {
    padding: 40px 20px;
  }
  
  .info-table th, .info-table td {
    display: block;
    width: 100%;
  }
  .info-table th {
    border-bottom: none;
    background-color: #f0f4f8;
  }
  
  .timeline {
    padding-left: 30px;
  }
  .timeline::before {
    left: 15px;
  }
  .era-label {
    left: 0;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
  }
  .timeline-item {
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 30px;
  }
  .timeline-item::before {
    left: -20px;
    top: 5px;
  }
  .timeline-item dt {
    position: relative;
    left: 0;
    text-align: left;
    width: auto;
    margin-bottom: 5px;
    color: #4a7bd1;
  }
}