/* About ページ専用 CSS をここに記述します */

/* =======================================
   ヒーローセクション調整（769px-1400px）
========================================== */
@media screen and (min-width: 769px) and (max-width: 1400px) {
  .page-hero .hero-content {
    bottom: 10%;
    left: 13%;
    align-items: flex-end;
  }
  
  .page-hero h1 {
    font-size: 4.5rem;
  }
  
  .page-hero .subtitle {
    font-size: 1.8rem;
    padding-left: 0 !important;
  }
}

/* =======================================
   ポリシーセクション
========================================== */
.policy-section {
  padding: 0 0 60px;
  position: relative;
  overflow: visible;
  margin-bottom: 0;
}

.policy-bg {
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 150%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0.7;
  transform: translateY(-4.2%);
}


.policy-section .breadcrumb {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  padding-top: 10px;
}

.policy-section .container {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1200px;
  padding-top: 5%;
  padding-bottom: 5%;
  margin: 0 auto;
}

.policy-flex {
  display: flex;
  align-items: center;
  gap: 50px;
}

.policy-image-col {
  display: flex;
  width: 45%;
  justify-content: center;
}

.policy-content-col {
  width: 55%;
}

.policy-image {
  max-width: 100%;
  height: auto;
  width: 450px;
}

.policy-section h2 {
  font-family: 'Anton', sans-serif;
  font-size: 3.5rem;
  color: #595757;
  margin-bottom: 10px;
  line-height: 1;
  letter-spacing: 0.05em;
}

.policy-subtitle {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 24px;
  color: #9C1E23;
  margin-bottom: 30px;
}

.policy-content {
  text-align: left;
}

.policy-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 1.1rem;
}

/* =======================================
   会社概要セクション
========================================== */
.company-info-section {
  padding: 0 0 80px;
  background-color: transparent;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

/* 背景画像 */
.company-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.7;
  z-index: 0;
}

/* 装飾用の円形背景 */
.circle-left-bg {
  position: absolute;
  bottom: -10%;
  left: -7%;
  width: 20%;
  opacity: 0.7;
  z-index: -1;
}

.circle-right-bg {
  position: absolute;
  top: -10%;
  right: -7%;
  width: 20%;
  opacity: 0.7;
  z-index: -1;
}

.company-info-section .container {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 40px 0;
}

/* プロフィールカード */
.profile-card {
  background-color: #DCDDDD;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin: 40px 0;
  position: relative;
  overflow: visible;
  padding: 20px;
}

.profile-title {
  color: #9C1E23;
  font-family: 'Noto Serif JP', serif;
  font-size: 2.8rem;
  margin-bottom: 20px;
  padding-left: 20px;
  font-weight: 700;
}

.profile-content {
  display: flex;
  flex-direction: column;
}

.profile-row {
  display: flex;
  padding: 10px 0;
  border-bottom: none;
}

.profile-label {
  width: 30%;
  font-weight: 700;
  color: #333;
  padding-left: 20px;
  font-family: 'Noto Sans JP', sans-serif;
}

.profile-value {
  flex: 1;
  width: 70%;
  color: #333;
  font-family: 'Noto Sans JP', sans-serif;
}

/* オフィス情報 */
.office-title {
  font-size: 2rem;
  color: #333;
  margin: 30px 0 15px;
  font-family: 'Noto Sans JP', sans-serif;
  position: relative;
  padding-left: 10px;
}

.office-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
  background-color: #9C1E23;
}

.map-container {
  border: 1px solid #ddd;
  margin-bottom: 30px;
  width: 100%;
}

.map-container iframe {
  display: block;
}

/* =======================================
   再利用可能なセクションタイトル
========================================== */
.section-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  color: #9C1E23;
  margin-bottom: 2rem;
  text-align: left;
}

@media screen and (min-width: 1330px) {
  .title-text {
    padding-left: 10%;
  }
}

/* =======================================
   代表挨拶セクション
========================================== */
.message-section {
  position: relative;
  padding: 0;
  overflow: hidden;
  margin-top: -20px;
  margin-bottom: 0;
}

.message-section .container {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 60px 0;
}

.message-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.7;
  z-index: 0;
}

.message-circle {
  position: absolute;
  top: 0;
  right: 0%;
  width: 40%;
  height: auto;
  z-index: 0;
  opacity: 0.7;
}

.message-content {
  padding: 0;
}

.message-content p {
  margin-bottom: 25px;
  line-height: 1.7;
  font-size: 1.3rem;
  color: #595757;
}

.signature {
  text-align: right;
  margin-top: 40px;
  margin-right: 20px;
}

.signature p {
  margin-bottom: 0;
  font-size: 1.8rem;
  font-weight: 500;
  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.president-name {
  font-size: 3rem;
  font-weight: 700;
  margin-left: 10px;
  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-style: normal;
}

/* =======================================
   弊社の歩みセクション
========================================== */
.history-section {
  position: relative;
  padding: 0 0 80px;
  background-color: #fff;
}

.history-section .container {
  position: relative;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* タイムライン */
.timeline {
  position: relative;
  padding: 40px 0;
  padding-left: 100px;
}

/* 縦線 */
.timeline::before {
  content: '';
  position: absolute;
  left: 100px;
  transform: translateX(-50%);
  width: 2px;
  height: 95%;
  background-color: #9C1E23;
  z-index: 1;
}

.timeline-item {
  position: relative;
  margin-bottom: 10%;
  width: 100%;
  display: flex;
  align-items: flex-start;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* 丸いドット */
.timeline-dot {
  position: absolute;
  left: 0;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.timeline-circle {
  width: 50px;
  height: 50px;
  display: block;
}

/* コンテンツ */
.timeline-content {
  padding: 0 0 0 50px;
  position: relative;
}

.timeline-year {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 0;
  line-height: 1.8;
}

.timeline-content p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  margin: 0;
}

/* =======================================
   レスポンシブデザイン
========================================== */
@media screen and (max-width: 768px) {
  /* ヒーローセクション赤背景上の文字の合わせ */
  .page-hero .hero-content {
    bottom: 10%;
    left: 20%;
    align-items: flex-end;
  }

  /* ポリシーセクション */
  .policy-section {
    padding: 50px 0;
  }

  .policy-section h2 {
    font-size: 36px;
  }

  .policy-subtitle {
    font-size: 20px;
  }

  .policy-content p {
    font-size: 1rem;
  }

  .policy-flex {
    flex-direction: column;
  }

  .policy-image-col,
  .policy-content-col {
    width: 100%;
  }

  .policy-bg {
    transform: translateY(-2.8%);
  }

  /* 会社概要セクション */
  .company-info-section {
    padding: 0 0 50px;
  }

  .circle-left-bg {
    width: 20%;
    opacity: 0.5;
  }

  .circle-right-bg {
    width: 120px;
    opacity: 0.5;
  }

  .profile-title {
    font-size: 2.2rem;
    padding-left: 10px;
  }

  .profile-content {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .profile-row {
    flex-direction: column;
    padding: 15px 0;
    border-bottom: 1px solid #962C29;
  }

  .profile-label {
    width: 100%;
    padding-left: 10px;
    margin-bottom: 5px;
  }

  .profile-value {
    width: 100%;
    padding-left: 10px;
  }

  .office-title {
    font-size: 1.8rem;
    margin: 25px 0 10px;
  }

  /* 代表挨拶セクション */
  .message-section {
    padding: 40px 0;
  }

  .message-circle {
    width: 80%;
    opacity: 0.5;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .message-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .signature {
    margin-top: 30px;
  }

  .president-name {
    font-size: 1.3rem;
  }

  .history-section {
    padding: 0 0 50px;
  }

  .timeline {
    padding-left: 50px;
  }

  .timeline::before {
    left: 50px;
  }

  .timeline-item {
    margin-bottom: 40px;
  }


  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 50px;
    padding-left: 30px;
  }

  .timeline-year {
    font-size: 1.1rem;
  }

  .timeline-content p {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 576px) {

  /* 会社概要セクション */
  .company-info-section {
    padding: 0 0 30px;
  }

  .circle-left-bg {
    width: 100px;
    bottom: -8%;
    left: -8%;
  }

  .circle-right-bg {
    width: 100px;
    top: -3%;
    right: -3%;
  }

  .profile-card {
    padding: 15px 10px;
    margin: 30px 0;
  }

  .profile-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .office-title {
    font-size: 1.5rem;
  }

  .map-container iframe {
    height: 200px;
  }

  /* 代表挨拶セクション */
  .message-section {
    padding: 30px 0;
  }

  .message-circle {
    width: 100%;
    opacity: 0.4;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
  }

  .message-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .signature {
    margin-top: 20px;
  }

  .president-name {
    font-size: 1.2rem;
  }

  .profile-row {
    text-align: center;
  }

  .profile-label {
    font-size: 0.9rem;
  }

  .profile-value {
    font-size: 0.9rem;
  }

  .history-section {
    padding: 0 0 30px;
  }

  .timeline {
    padding-left: 30px;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    margin-bottom: 40px;
  }

  .timeline-dot {
    left: 0;
    width: 20px;
    height: 20px;
  }

  .timeline-circle {
    width: 40px;
    height: 40px;
  }

  .timeline-content {
    width: calc(100% - 50px);
    margin-left: 30px;
    padding-left: 20px;
  }

  .timeline-year {
    font-size: 1rem;
  }

  .timeline-content p {
    font-size: 0.9rem;
  }
}
