@charset "UTF-8";

/* ==========================================
   COMPANY・テキストページ共通スタイル
========================================== */

/* スムーズスクロールの有効化 */
html {
  scroll-behavior: smooth;
}

/* ページ全体の基本設定（白ベース） */
.company-page {
  background-color: #ffffff;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text-color, #333333);
}

/* ==========================================
   1. ページヒーローヘッダー
========================================== */
.company-page-hero {
  background-color: var(--primary-color, #3aa088);
  color: #ffffff;
  padding: 120px 20px 50px 20px;
  position: relative;
}

.company-hero-subtitle {
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.25em;
  font-size: 0.9rem;
  display: block;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.company-hero-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: 0.08em;
  margin: 0;
}

/* ==========================================
   2. パンくずリストエリア（白背景・共通仕様）
========================================== */
.company-breadcrumb-area {
  background-color: #ffffff;
  padding-top: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eeeeee;
}

.company-breadcrumb-area .breadcrumb {
  margin: 0 !important;
  padding: 0;
  font-size: 12px;
  font-family: "Noto Sans JP", sans-serif;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1;
}

.company-breadcrumb-area .breadcrumb-item + .breadcrumb-item::before {
  display: none;
}

.company-breadcrumb-area .breadcrumb-item {
  padding: 0;
}

.company-breadcrumb-area .breadcrumb-item a {
  color: #555555;
  text-decoration: none;
  transition: color 0.2s ease;
}

.company-breadcrumb-area .breadcrumb-item a:hover {
  color: var(--primary-color, #3aa088);
}

.company-breadcrumb-area .flaticon-icon {
  font-size: 11px;
  color: #999999;
  display: block;
  margin-top: 1px;
}

.company-breadcrumb-area .breadcrumb-item.text-muted {
  color: #888888 !important;
}

/* ==========================================
   3. アンカーリンク用スクロール位置オフセット調整
========================================== */
#message,
#profile,
#faq,
#brandIdentity,
.company-section-heading {
  scroll-margin-top: 100px;
}

/* ==========================================
   4. リード文エリア
========================================== */
.company-lead-text {
  font-size: 1.05rem;
  line-height: 2.1;
  color: #444444;
  letter-spacing: 0.04em;
}

/* ==========================================
   5. COMPANY インデックスカード
========================================== */
.company-index-card {
  background-color: #ffffff;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  height: 100%;
}

.company-index-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(58, 160, 136, 0.5);
}

.index-card-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 100%;
}

.index-card-thumb-wrap {
  width: 100px;
  min-width: 100px;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f3f4f6;
  position: relative;
}

@media (min-width: 768px) {
  .index-card-thumb-wrap {
    width: 120px;
    min-width: 120px;
  }
}

.index-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.company-index-card:hover .index-card-thumb-wrap img {
  transform: scale(1.06);
}

.thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 1.8rem;
  background-color: #f8fafc;
}

.index-card-body {
  flex-grow: 1;
  min-width: 0;
}

.index-card-header {
  margin-bottom: 0.3rem;
}

.index-card-en {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-color, #3aa088);
  letter-spacing: 0.08em;
}

.index-card-icon {
  font-size: 1.2rem;
  color: #cccccc;
  transition: color 0.25s ease, transform 0.25s ease;
}

.company-index-card:hover .index-card-icon {
  color: var(--primary-color, #3aa088);
  transform: translateX(3px);
}

.index-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #222222;
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.index-card-desc {
  font-size: 0.82rem;
  line-height: 1.65;
  color: #666666;
  margin-bottom: 0;
  text-align: justify;
}

/* ==========================================
   6. 会社概要・代表挨拶セクション
========================================== */
.company-section-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark, #2f6f62);
  border-bottom: 2px solid var(--primary-color, #3aa088);
  padding-bottom: 0.8rem;
  letter-spacing: 0.05em;
}

.company-sub-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #222222;
  position: relative;
  padding-left: 12px;
  border-left: 4px solid var(--primary-color, #3aa088);
}

.company-message-card {
  background-color: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: 8px;
  border: 1px solid #ebebeb;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

@media (min-width: 992px) {
  .company-message-card {
    padding: 3.5rem;
  }
}

.company-leader-photo-wrap {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
}

.photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: #f3f4f6;
  border: 2px dashed #d1d5db;
}

.company-leader-text p {
  font-size: 0.95rem;
  color: #444444;
  text-align: justify;
}

/* ==========================================
   7. よくある質問 (FAQ Accordion)
========================================== */
.company-accordion .accordion-item {
  border: 1px solid #ebebeb;
  margin-bottom: 0.75rem;
  border-radius: 6px !important;
  overflow: hidden;
}

.company-accordion .accordion-button {
  font-size: 0.95rem;
  font-weight: 700;
  color: #333333;
  background-color: #fafafa;
  padding: 1.2rem 1.4rem;
  box-shadow: none;
}

.company-accordion .accordion-button:not(.collapsed) {
  color: var(--primary-dark, #2f6f62);
  background-color: #f6faf9;
  border-bottom: 1px solid #e5edea;
}

.company-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: rgba(58, 160, 136, 0.25);
}

.company-accordion .accordion-body {
  padding: 1.4rem;
  font-size: 0.92rem;
  line-height: 1.85;
  color: #555555;
  background-color: #ffffff;
}

.faq-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
}

.q-badge {
  background-color: var(--primary-color, #3aa088);
  color: #ffffff;
}

.a-badge {
  background-color: #f59e0b;
  color: #ffffff;
}

/* ==========================================
   8. 会社沿革 (TIMELINE)
========================================== */
.history-timeline {
  position: relative;
  margin: 2rem 0;
  padding-left: 20px;
}

@media (min-width: 768px) {
  .history-timeline {
    padding-left: 0;
  }
}

.timeline-item {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 3rem;
  border-left: 2px solid #e5e7eb;
  padding-left: 25px;
  margin-left: 10px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary-color, #3aa088);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px var(--primary-color, #3aa088);
}

@media (min-width: 768px) {
  .timeline-item {
    flex-direction: row;
    margin-left: 210px;
    padding-left: 40px;
    padding-bottom: 3.5rem;
  }

  .timeline-item::before {
    left: -7px;
    top: 6px;
  }
}

.timeline-year {
  font-family: "Noto Serif JP", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color, #3aa088);
  margin-bottom: 0.5rem;
}

.timeline-year span {
  font-size: 0.9rem;
  font-family: "Noto Sans JP", sans-serif;
  color: #666666;
  margin-left: 4px;
}

@media (min-width: 768px) {
  .timeline-year {
    position: absolute;
    left: -210px;
    width: 180px;
    text-align: right;
    margin-bottom: 0;
    line-height: 1.4;
  }
}

.timeline-content {
  background-color: #ffffff;
  padding: 1.8rem 2rem;
  border-radius: 8px;
  border: 1px solid #ebebeb;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  width: 100%;
}

.timeline-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #222222;
  margin-bottom: 0.8rem;
  letter-spacing: 0.03em;
}

.timeline-desc {
  font-size: 0.92rem;
  line-height: 1.9;
  color: #555555;
  margin-bottom: 0;
}

.timeline-item .highlight-year {
  color: var(--primary-dark, #2f6f62);
}

.timeline-item .highlight-content {
  border: 1px solid rgba(58, 160, 136, 0.4);
  background-color: #f8fcfb;
}


/* ==========================================
   タイムライン商品サムネイル（正方形画像）
========================================== */
.timeline-thumb-link {
  display: block;
  text-decoration: none;
  flex-shrink: 0;
  margin-bottom: 1rem;
}

.timeline-thumb-wrap {
  width: 100px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f8fafc;
  border: 1px solid #ebebeb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.timeline-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

/* ホバー演出 */
.timeline-thumb-link:hover .timeline-thumb-wrap {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: rgba(58, 160, 136, 0.5);
}

.timeline-thumb-link:hover .timeline-thumb-img {
  transform: scale(1.06);
}

/* PC表示（横並びレイアウトの調整） */
@media (min-width: 768px) {
  .timeline-thumb-link {
    margin-bottom: 0;
    margin-right: 1.5rem;
  }
  
  .timeline-thumb-wrap {
    width: 110px;
  }
}

/* 見出し内の商品名リンク */
.timeline-heading-link {
  color: #222222;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.timeline-heading-link:hover {
  color: var(--primary-color, #3aa088);
  text-decoration: underline;
}

/* ==========================================
   コンセプトボックス（画像＋見出し・説明文）
========================================== */
.concept-thumb-link {
  display: block;
  text-decoration: none;
}

.concept-thumb-wrap {
  /* スマホ縦並び時のサイズ */
  width: 90px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid #ebebeb;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* PC・タブレット表示時（横並び）のサイズ */
@media (min-width: 768px) {
  .concept-thumb-wrap {
    width: 105px;
  }
}

.concept-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

/* ホバー演出 */
.concept-thumb-link:hover .concept-thumb-wrap {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: rgba(58, 160, 136, 0.5);
}

.concept-thumb-link:hover .concept-thumb-img {
  transform: scale(1.06);
}

/* 見出し内テキストリンク */
.concept-heading-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, text-decoration 0.2s ease;
}

.concept-heading-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ==========================================
   9. ご利用案内 (GUIDE)
========================================== */
.guide-block {
  background-color: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: 8px;
  border: 1px solid #ebebeb;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

@media (min-width: 992px) {
  .guide-block {
    padding: 3rem 3.5rem;
  }
}

.guide-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark, #2f6f62);
  border-bottom: 2px solid var(--primary-color, #3aa088);
  padding-bottom: 0.8rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.guide-subheading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 0.6rem;
}

.guide-step-card {
  background-color: #fafafa;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  padding: 1.5rem 1.2rem;
}

.step-num {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary-color, #3aa088);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.step-desc {
  font-size: 0.85rem;
  color: #666666;
  line-height: 1.65;
  margin-bottom: 0;
  text-align: justify;
}

.contact-support-box {
  background-color: #f8fcfb;
  border: 1px solid rgba(58, 160, 136, 0.3);
}

/* ==========================================
   10. 特定商取引法 (LEGAL TABLE)
========================================== */
.law-table-wrap {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #ebebeb;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

@media (min-width: 992px) {
  .law-table-wrap {
    padding: 3rem;
  }
}

.law-table {
  margin-bottom: 0;
}

.law-table th {
  width: 28%;
  background-color: #f9f9f9;
  color: #444444;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 1.2rem 1.4rem;
  border-color: #eaeaea;
  vertical-align: top;
  letter-spacing: 0.04em;
}

.law-table td {
  font-size: 0.92rem;
  line-height: 1.85;
  color: #444444;
  padding: 1.2rem 1.4rem;
  border-color: #eaeaea;
  vertical-align: top;
}

@media (max-width: 767.98px) {
  .law-table, .law-table tbody, .law-table tr, .law-table th, .law-table td {
    display: block;
    width: 100%;
  }

  .law-table th {
    border-bottom: none;
    padding-bottom: 0.4rem;
    background-color: #f5f5f5;
  }

  .law-table td {
    padding-top: 0.4rem;
    padding-bottom: 1.2rem;
  }
}

/* ==========================================================================
   11. CI / VI フルスクリーン・横スライダースタイル
========================================================================== */
.company-civi-fullwidth-section {
  position: relative;
  width: 100%;
  padding-top: 3.5rem;
  margin-bottom: 80px; /* 次のAbout usとの十分な間隔 */
  background-color: #ffffff;
}

@media (min-width: 768px) {
  .company-civi-fullwidth-section {
    margin-bottom: 120px;
  }
}

.civi-stack-slider-container {
  position: relative;
  width: 100%;
  height: 580vh;
}

.civi-stack-sticky {
  position: sticky;
  top: 80px;
  height: calc(100vh - 90px);
  min-height: 600px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
}

.civi-stack-stage {
  position: relative;
  width: min(580px, 88vw);
  height: 100%;
  max-height: 820px;
  margin: 0 auto;
}

.civi-stack-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  will-change: transform, opacity;
  transition: transform 0.08s linear, opacity 0.08s linear;
}

/* 01〜04 実背景画像の指定 */
.theme-card-01 { background-image: url('../img/company/01bg.jpg'); }
.theme-card-02 { background-image: url('../img/company/02bg.jpg'); }
.theme-card-03 { background-image: url('../img/company/03bg.jpg'); }
.theme-card-04 { background-image: url('../img/company/04bg.jpg'); }
.theme-card-05 { background-color: #ffffff; }

.civi-card-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 45px 35px 35px 35px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .civi-card-inner {
    padding: 55px 45px 40px 45px;
  }
}

/* 上部ヘッダー */
.civi-card-header {
  text-align: center;
  margin-bottom: auto;
}

.civi-en-title {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #222222;
}

.civi-ja-title {
  display: block;
  font-size: 0.85rem;
  color: #555555;
  margin-top: 4px;
  letter-spacing: 0.1em;
}

.civi-header-line {
  width: 100%;
  max-width: 320px;
  height: 1px;
  background-color: #333333;
  margin: 12px auto 0 auto;
  opacity: 0.6;
}

/* メイン見出し */
.civi-main-copy-wrap {
  text-align: left;
  margin: auto 0;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.civi-main-heading {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.45rem, 3.2vw, 1.95rem);
  line-height: 1.75;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #222222;
  margin: 0;
  text-align: left;
}

.civi-main-heading.fs-large {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.6;
}

/* 本文 */
.civi-body-copy-wrap {
  text-align: left;
  margin-bottom: auto;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.civi-body-copy-wrap p {
  font-size: clamp(0.78rem, 1.5vw, 0.88rem);
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: #444444;
  margin-bottom: 0.35rem;
  text-align: left;
}

.civi-body-copy-wrap p:last-child {
  margin-bottom: 0;
}

/* 下部ロゴ */
.civi-card-footer {
  text-align: center;
  margin-top: auto;
}

.civi-footer-logo-svg {
  width: 95px;
  height: auto;
  fill: #222222;
  display: inline-block;
}

/* ==========================================
   Slide 05: 05bg.jpg 実画像背景 & SVGロゴ・SVG文字
========================================== */
.card-inner-corevalues {
  padding-top: clamp(135px, 19vh, 175px);
  padding-bottom: 35px;
  padding-left: 30px;
  padding-right: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .card-inner-corevalues {
    padding-top: clamp(150px, 21vh, 185px);
    padding-left: 45px;
    padding-right: 45px;
    padding-bottom: 40px;
  }
}

/* 05bg.jpg 背景レイヤー */
.civi-card-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/company/05bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 中央の大きなロゴ・社名エリア */
.core-brand-head {
  opacity: 0;
  transition: opacity 0.6s ease;
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}

.core-logo-large-wrap {
  margin-bottom: 0.7rem;
}

.core-logo-large-svg {
  width: clamp(130px, 26vw, 165px);
  height: auto;
  fill: #222222;
}

.core-company-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.core-company-name {
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  color: #333333;
}

.core-company-logo-mini {
  width: 65px;
  height: auto;
  fill: #222222;
}

.core-lead-text {
  font-size: 0.82rem;
  line-height: 1.85;
  color: #555555;
  margin-bottom: 0;
}

/* コアバリューリスト */
.core-values-list {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.core-value-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 6px 8px 6px;
  border-bottom: 1px solid #333333;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* SVG頭文字（均等プロポーション） */
.core-char-svg-wrap {
  width: 32px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-right: 12px;
  flex-shrink: 0;
}

.civi-letter-svg {
  height: 100%;
  width: auto;
  fill: #43a4be; /* ターコイズブルー */
  display: block;
}

.core-en {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #222222;
  width: 120px;
  text-align: left;
}

.core-ja {
  font-size: 0.86rem;
  font-weight: 500;
  color: #333333;
  text-align: left;
  flex-grow: 1;
}

@media (max-width: 575.98px) {
  .core-char-svg-wrap { width: 24px; height: 20px; margin-right: 8px; }
  .core-en { width: 90px; font-size: 0.86rem; }
  .core-ja { font-size: 0.76rem; }
}

/* 表示切り替えクラス */
.is-visible {
  opacity: 1 !important;
}

.is-row-visible {
  opacity: 1 !important;
}


/* --------------------------------------------------
   ご注文の流れ 画像実装用CSS
-------------------------------------------------- */

/* カード自体の調整：上部のパディングをなくす（画像が上端に来るように） */
.guide-step-card {
  overflow: hidden; /* 画像の角丸をカードに合わせるため */
}

/* 画像コンテナ：1:1の正方形を維持する魔法 */
.step-img-wrap {
  position: relative;
  width: 100%;
  /* padding-topで縦横比を決定。100%で1:1、75%で4:3 */
  padding-top: 100%; 
  overflow: hidden;
  background-color: #f0f0f0; /* 画像がない場合の仮背景色 */
  margin-bottom: 1.5rem; /* STEP数との間隔 */
}

/* 画像自体のスタイル：コンテナいっぱいに広げ、アスペクト比を保ってトリミング */
.step-img-wrap .step-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* ここが重要：画像を中央配置し、はみ出し分をカット */
  object-fit: cover; 
  object-position: center;
  
  /* 既存のcommon.css等でimgにtransitionがかかっている場合を想定し、
     カードホバー時の動きなどを制御したい場合はここに記述 */
  transition: transform 0.6s ease;
}

/* （オプション）カードホバー時に画像を少しズームさせる演出 */
.guide-step-card:hover .step-img {
  transform: scale(1.05);
}

/* 既存要素の調整：画像の下にくる要素（STEP数）の余白調整 */
.guide-step-card .step-num {
  /* margin-top: 0; など、既存のCSSに合わせて調整してください */
}

/* CI/VI アニメーションロゴのスタイリング */
.civi-logo-intro {
  display: flex;
  justify-content: center;
  align-items: center;
  /* PC閲覧時の上下余白を大きく確保（画面高に応じた最適な広がり） */
  padding: clamp(14rem, 28vh, 22rem) 1.25rem;
  margin-bottom: 2rem;
}

.civi-logo-wrap {
  /* PC時は最大420px、スライド前のアイキャッチとして堂々と配置 */
  width: min(420px, 65vw);
}

.civi-animated-logo .civi-logo-char {
  fill: #3aa088;
  opacity: 0;
  transform: translateY(20px);
  /* 画面外へ消えるときはスムーズに戻す */
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* 表示時のトランジション（イージングを効かせてふわっと表示） */
.civi-animated-logo.is-visible .civi-logo-char {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 順次ふわっと出現させるためのディレイ設定（表示時のみ有効） */
.civi-animated-logo.is-visible .char-1 { transition-delay: 0.1s; }
.civi-animated-logo.is-visible .char-2 { transition-delay: 0.25s; }
.civi-animated-logo.is-visible .char-3 { transition-delay: 0.4s; }
.civi-animated-logo.is-visible .char-4 { transition-delay: 0.55s; }
.civi-animated-logo.is-visible .char-5 { transition-delay: 0.7s; }

/* スマホ表示用の微調整（スマホ時は間延びしないサイズ・余白を維持） */
@media (max-width: 767.98px) {
  .civi-logo-intro {
    padding: 6rem 1rem 5rem 1rem;
    margin-bottom: 1rem;
  }
  
  .civi-logo-wrap {
    width: 180px; /* フッターロゴのサイズ感に合わせた幅 */
    max-width: 60%;
  }

  .civi-animated-logo .civi-logo-char {
    transform: translateY(12px); /* 移動距離を控えめにしてより自然な出現に */
  }
}