/* =========================
   about.css
========================= */
.page-content {
    padding-top: 80px;
}
.section-header {
    text-align: left;
    margin-left: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #000;
    margin-bottom: 20px;
}
.full-width-image {
    width: 100%;
    display: block;
    margin-bottom: 20px;
}
.full-width-image2 {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}
.full-width-image img {
    width: 100%;
    height: auto;
    display: block;
}
.page-content > *:not(:first-child) .full-width-image img {
    margin-top: 40px;
}
.overlap-content {
    position: relative;
    background-color: #fff;
    padding: 20px;
    margin-top: -100px;
    z-index: 10;
    text-align: center;
    margin-bottom: 20px;
}
.overlap-content h2 {
    font-size: 30px;
    font-weight: bold;
    color: #000;
    margin-bottom: 20px;
}
.orange-box {
    background-color: #FFE9D3;
    border-radius: 10px;
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.orange-box p, .orange-box ul {
    font-size: 20px;
    line-height: 1.8;
    color: #000;
    margin: 0;
    padding: 0;
}
.orange-box p.bold {
    font-weight: bold;
    margin-top: 10px;
}
.orange-box ul {
    display: inline-block;
    text-align: left;
    padding-left: 0;
    margin: 0;
}
.orange-box li {
    list-style: none;
    margin-bottom: 10px;
    font-weight: bold;
}
.orange-box li::before {
    content: attr(data-number);
    color: orange;
    font-weight: bold;
    margin-right: 5px;
    font-size: 24px;
}
.orange-box .guideline-container {
    display: inline-block;
    text-align: left;
    margin: 0;
}
.orange-box .guideline-item {
    margin-bottom: 20px;
}
.orange-box .guideline-number {
    font-weight: bold;
    color: orange;
    font-size: 24px;
}
.orange-box .guideline-text {
    font-weight: bold;
    color: #000;
}
.orange-box .guideline-description {
    font-weight: normal;
    color: #000;
    margin-bottom: 20px;
}
.normal-text {
    max-width: 800px;
    margin: 30px auto 50px auto;
    text-align: left;
    font-size: 16px;
    line-height: 1.8;
    color: #000;
    padding: 0 20px;
    margin-bottom: 50px;
}
.action-button-container {
    margin: 60px auto;
    text-align: center;
}
.bold-text {
    font-weight: bold;
}

/* 追加メッセージレイアウト */
.message-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    margin: 50px auto;
    max-width: 1000px;
    gap: 30px;
    padding: 0 20px;
}
.message-section.reverse-order {
    flex-direction: row-reverse;
    align-items: flex-start; /* テキストと画像を上端で揃える */
}
.message-section .message-content {
    flex: 1 1 60%; /* テキストの幅を少し広げる */
    font-size: 16px;
    line-height: 1.8;
    color: #000;
    position: relative; /* サイン画像の絶対配置の基準 */
}
.message-section .message-image {
    flex: 1 1 30%; /* 画像の幅を調整 */
    text-align: center;
}
.message-section .message-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.message-content .signature-image {
    position: absolute;
    bottom: -60px; /* さらに下に調整 */
    right: 0;
    max-width: 300px;
}

/* カウンター付き画像セクション */
.counter-images-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* ここで折り返しを有効にします */
    gap: 20px;
    margin-bottom: 40px;
    padding: 0 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.counter-image-item {
    text-align: center;
    /* カウンターを3列にするための幅設定 */
    flex-basis: calc(33.333% - 20px); 
    max-width: calc(33.333% - 20px);
}
.counter-image-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}
/* 親コンテナのスタイル */
.counter {
    font-weight: bold;
}
/* カウンターの数字部分のスタイル */
.counter span:first-child {
    font-size: 48px;
    color: #ff5722;
}
/* カウンターの単位部分のスタイル */
.counter .counter-unit {
    font-size: 24px;
    color: #000000;
    margin-left: 5px;
}

/* =========================
   部門別仕事紹介ボタンセクション
========================= */
.bumon-section {
    text-align: center;
    margin: 60px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.bumon-section h3 {
    font-size: 28px;
    font-weight: bold;
    color: #003300;
    margin-bottom: 30px;
}

.bumon-buttons {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 15px;
}

.bumon-button {
    display: inline-block;
    padding: 14px 28px;
    background-color: #FFE9D3;
    color: #003300;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.bumon-button:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
    background-color: #FFD6B3;
}

.bumon-intro {
  margin: 10px 0 20px;
  padding: 20px;
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 8px;
  display: flex;            /* 横並びにする */
  align-items: center;      /* 中央揃え */
  gap: 20px;                /* 画像とテキストの間隔 */
}

.bumon-intro img {
  width: 120px;             /* 画像サイズ */
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.bumon-intro-text {
  flex: 1;
}

.bumon-intro-text h4 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #003300;
}

.bumon-intro-text p {
  margin: 0;
  line-height: 1.6;
}

#bumon-intro-container {
  margin-top: 20px;
}

/* 画像+テキストのレイアウト */
.bumon-intro {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.bumon-intro img {
  width: 500px;
  height: 400px;
  border-radius: 8px;
  object-fit: cover;
}

.bumon-intro-text h4 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #003300;
}

.bumon-intro-text p {
  margin: 0;
  line-height: 1.6;
}
        
/* Responsive adjustments */
@media (max-width: 768px) {
    .page-content {
        padding-top: 100px;
    }
    .section-header {
        margin-left: 10px;
        font-size: 24px;
        margin-bottom: 15px;
    }
    .full-width-image {
        margin-bottom: 15px;
    }
    .overlap-content {
        margin-top: -50px;
        padding: 10px;
        margin-bottom: 10px;
    }
    .overlap-content h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    .orange-box {
        padding: 20px 15px;
    }
    .orange-box p, .orange-box ul {
        font-size: 16px;
    }
    .orange-box li::before,
    .orange-box .guideline-number {
        font-size: 20px;
    }
    .normal-text {
        font-size: 14px;
        margin-bottom: 30px;
    }
    .page-content > *:not(:first-child) .full-width-image img {
        margin-top: 20px;
    }
    .action-button-container {
        margin: 40px auto;
    }
    .message-section {
        flex-direction: column;
        align-items: center;
    }
    .message-section.reverse-order {
        flex-direction: column;
        align-items: center;
    }
    .message-section .message-content {
        flex: 1 1 100%;
        text-align: left;
        position: static;
    }
    .message-section .message-image {
        flex: 1 1 100%;
        text-align: center;
    }
    .message-content .signature-image {
        position: static;
        max-width: 200px;
        display: block;
        margin: 20px auto 0;
    }
        .bumon-button {
        width: 100%;
        text-align: center;
    }
    .bumon-intro {
        flex-direction: column;
        text-align: center;
    }
    .bumon-intro img {
        width: 80%;
    }
    /* レスポンシブ対応 */
    .counter-images-container {
        flex-direction: column;
        align-items: center;
    }
    .counter-image-item {
        width: 80%;
        margin-bottom: 30px;
    }
}