@charset "UTF-8";

/* ==========================================
   MESSAGE (代表取締役メッセージ) ページ専用スタイル
========================================== */

/* ページ全体の基本設定 */
.message-page {
  /* ヒストリーページ同様、上品なベージュ系の背景 */
  background-color: #faf7f2;
  font-family: "Noto Serif JP", "Shippori Mincho", "Yu Mincho", "游明朝", serif;
  color: #333333;
}

/* ヘッダーによる上部余白の調整 */
.main-content.message-page {
  padding-top: 0;
  margin-top: 0;
}

/* ==========================================
   1. ヒーローセクション (ファーストビュー)
========================================== */
.message-hero {
  position: relative;
  height: 60vh;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
  background-color: #2f6f62;
}

.message-hero .hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  /* background-image: url('../img/message/head.jpg'); */
  background-size: cover;
  background-position: center;
  /* メッセージページはクリアなトーンを少し残す */
  filter: brightness(0.8);
  z-index: 1;
}

.message-hero .hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  /* background: rgba(47, 111, 98, 0.5); ブランドカラーの深い緑でオーバーレイ */
  background-color: #3aa088;
  z-index: 2;
}

.message-hero .hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  padding: 0 20px;
}

.message-subtitle {
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.25em;
  font-size: 1rem;
  display: block;
  opacity: 0.9;
}

.message-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* パンくずリストエリア */
.message-breadcrumb-area {
  background-color: #faf7f2;
  padding-top: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eaeaea;
}

.message-breadcrumb-area .breadcrumb {
  margin-top: 0;
  font-family: "Noto Sans JP", sans-serif;
}

/* ==========================================
   2. リード文セクション
========================================== */
.message-lead {
  background-color: #faf7f2;
}

.lead-heading {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--primary-color, #3aa088);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.lead-text {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 2.2;
  letter-spacing: 0.05em;
  color: #444444;
  text-align: center;
}

@media (max-width: 767.98px) {
  .lead-text {
    text-align: justify;
  }
}

/* ==========================================
   3. メッセージ本文
========================================== */
.message-content {
  background-color: #faf7f2;
}

/* プロフィール写真エリア */
.profile-img-wrap {
  position: relative;
}

.profile-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.profile-caption {
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
}

.profile-caption .fs-5 {
  letter-spacing: 0.1em;
}

/* 各メッセージブロック */
.message-block {
  background-color: #ffffff;
  padding: 3rem 2.5rem;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border-top: 4px solid var(--primary-color, #3aa088);
}

@media (min-width: 992px) {
  .message-block {
    padding: 4rem 5rem;
  }
}

.message-heading {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  color: var(--primary-color, #3aa088);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-align: center;
  position: relative;
  padding-bottom: 1.5rem;
}

.message-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--primary-color, #3aa088);
}

.message-text p {
  font-size: 0.95rem;
  line-height: 2.3;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  color: #333333;
  text-align: justify;
}

.message-text p:last-child {
  margin-bottom: 0;
}

/* ==========================================
   4. アニメーション（フェードアップ）
========================================== */
.js-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), 
              transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.js-fade-up.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.message-img-wrap {
  width: 100%;
  margin-bottom: 2rem;
}

.message-img-wrap img {
  width: 100%;
  height: auto;
  border-radius: 4px; /* お好みに応じて角丸を調整 */
  object-fit: cover;
}

/* ==========================================
   メッセージ本文間の画像エリア
========================================== */
.message-img-wrap {
  position: relative;
}

.message-sub-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}