@charset "UTF-8";

/* ==========================================
   HISTORY (創業者ヒストリー) ページ専用スタイル
========================================== */

/* ページ全体の基本設定 */
.history-page {
  background-color: #faf7f2;
  font-family: "Noto Serif JP", "Shippori Mincho", "Yu Mincho", "游明朝", serif;
  color: #333333;
}

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

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

.history-hero .hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('../img/history/head.jpg');
  background-size: cover;
  background-position: center;
  filter: grayscale(70%) sepia(30%);
  z-index: 1;
}

.history-hero .hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10, 25, 20, 0.4);
  z-index: 2;
}

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

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

.history-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

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

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

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

.lead-text {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 2.3;
  letter-spacing: 0.05em;
  color: #3f3f3f;
  text-align: justify;
}

/* ==========================================
   3. 創業者プロフィールカード（1枚の写真を活用）
========================================== */
.founder-profile-card {
  background: #ffffff;
  border: 1px solid #eee8df;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  padding: 40px;
  margin-bottom: 5rem;
  border-radius: 4px;
}

.founder-img-wrap {
  position: relative;
  padding: 10px;
  background: #faf7f2;
  border: 1px solid #e8e3d8;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.founder-img-wrap img {
  filter: sepia(15%) contrast(95%);
  transition: filter 0.4s ease;
}

.founder-img-wrap:hover img {
  filter: sepia(0%) contrast(100%);
}

.founder-label {
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.15em;
  color: var(--primary-color, #3aa088);
  font-size: 0.85rem;
}

.founder-name {
  font-size: 1.6rem;
  font-weight: 600;
  color: #2b5e52;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #e0d9cc;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.founder-bio {
  font-size: 0.95rem;
  line-height: 2.1;
  color: #4a4a4a;
  margin-bottom: 0;
}

/* ==========================================
   4. タイムライン / ストーリー本文（写真不要型）
========================================== */
.history-timeline {
  background-color: #faf7f2;
}

.story-timeline-container {
  max-width: 860px;
  margin: 0 auto;
}

.story-block {
  position: relative;
  padding-left: 55px;
  margin-bottom: 5rem;
}

/* 左側の縦ライン */
.story-block::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: -5rem;
  width: 1px;
  background-color: #d8d2c5;
}

.story-block:last-child::before {
  display: none;
}

/* ナンバリングバッジ */
.story-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary-color, #3aa088);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(58, 160, 136, 0.25);
}

.story-heading {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  color: #2b5e52;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  padding-top: 2px;
}

.story-text p {
  font-size: 1rem;
  line-height: 2.3;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  color: #3a3a3a;
  text-align: justify;
}

/* ハイライト・引用ボックス */
.story-highlight-box {
  background-color: #f2eee6;
  border-left: 3px solid var(--primary-color, #3aa088);
  padding: 22px 26px;
  margin: 2rem 0;
  border-radius: 0 4px 4px 0;
}

.story-highlight-box p {
  font-size: 1.05rem;
  font-weight: 500;
  color: #254a40;
  line-height: 1.9;
  margin: 0;
}

@media (max-width: 767.98px) {
  .founder-profile-card {
    padding: 25px 20px;
    margin-bottom: 3.5rem;
  }
  .story-block {
    padding-left: 0;
    margin-bottom: 4rem;
  }
  .story-block::before {
    display: none;
  }
  .story-num {
    position: static;
    margin-bottom: 12px;
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  .story-heading {
    font-size: 1.25rem;
  }
  .story-text p {
    font-size: 0.95rem;
    line-height: 2.0;
  }
  .story-highlight-box {
    padding: 16px 18px;
  }
  .story-highlight-box p {
    font-size: 0.95rem;
  }
}

/* ==========================================
   5. アニメーション（フェードアップ）
========================================== */
.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);
}