/* ==========================================================================
   sections/05-strategy.css
   04. 成長戦略 (Strategy)
   - C-05 Section Heading (成長戦略) → components.css
   - C-06 Green Pill Tag → components.css
   - C-17 Twin Customer Strategy Diagram (twin-customer.png + 右テキスト)
   - C-18 貯まるワーク Highlight Block (左テキスト + tamaruwork.png)
   - C-19 Strategy Flow (strategy-flow.png — 全要素を画像内に含む)
   ========================================================================== */


.s-strategy {
  width: 100%;
  background-color: var(--c-white);
  padding-bottom: var(--space-80);
}


/* =================================================================
   C-17 Twin Customer Strategy
   - 左: 説明文
   - 右: ツインカスタマー戦略図（510×400）
   ================================================================= */
.s-strategy__twin {
  display: grid;
  grid-template-columns: minmax(0, 590fr) minmax(0, 510fr);
  align-items: center;
  gap: var(--space-48);
  margin-bottom: var(--space-80);
}

.s-strategy__twin-figure {
  width: 100%;
  max-width: 510px;
  justify-self: end;
}

.s-strategy__twin-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.s-strategy__twin-text {
  font-size: var(--fs-body);
  line-height: 1.95;
  color: var(--c-text);
}

.s-strategy__twin-text strong {
  font-weight: 700;
}

@media (max-width: 767px) {
  .s-strategy__twin {
    grid-template-columns: 1fr;
    gap: var(--space-24);
    margin-bottom: var(--space-48);
  }
  .s-strategy__twin-figure {
    justify-self: center;
  }
}


/* =================================================================
   C-18 貯まるワーク Highlight Block
   - 左: 説明文
   - 右: ロゴ + 人物イラスト + ベネフィット（tamaruwork.png 545×480）
   ================================================================= */
.s-strategy__tamaru {
  display: grid;
  grid-template-columns: minmax(0, 555fr) minmax(0, 545fr);
  align-items: center;
  gap: var(--space-48);
  margin-bottom: var(--space-80);
}

.s-strategy__tamaru-text {
  font-size: var(--fs-body);
  line-height: 1.95;
  color: var(--c-text);
}

.s-strategy__tamaru-text strong {
  font-weight: 700;
}

.s-strategy__tamaru-figure {
  width: 100%;
  max-width: 545px;
  justify-self: end;
}

.s-strategy__tamaru-figure img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .s-strategy__tamaru {
    grid-template-columns: 1fr;
    gap: var(--space-24);
    margin-bottom: var(--space-48);
  }
  .s-strategy__tamaru-figure {
    justify-self: center;
  }
}


/* =================================================================
   中期経営計画 リード文
   ================================================================= */
.s-strategy__plan-lead {
  font-size: var(--fs-body);
  line-height: 1.95;
  color: var(--c-text);
  margin-bottom: var(--space-48);
}

.s-strategy__plan-lead strong {
  font-weight: 700;
}

@media (max-width: 767px) {
  .s-strategy br {
    display: none;
  }
}


/* =================================================================
   C-19 Strategy Flow
   画像解析に基づく正確なテキストコーディング版
   1120×635px構成を忠実に再現
   ================================================================= */
.s-strategy__flow {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  background-color: var(--c-white);
}

/* ----- 上段：2つの戦略ボックス ----- */
.c-strategy-boxes {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-16);
  align-items: center;
  margin-bottom: 0;
  background-color: #f3f3f3;
  padding: var(--space-20);
}

.c-strategy-box {
  background: #fff;
  padding: var(--space-40) var(--space-32);
  text-align: center;
  border: 1px solid #E8E8E8;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.c-strategy-box__title {
  font-size: 18px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

/* タイトルとサブテキストの区切り線 */
.c-strategy-box__divider {
  width: 100%;
  max-width: 200px;
  height: 1px;
  background-color: #D8D8D8;
  margin: var(--space-24) auto ;
}

.c-strategy-box__text {
  font-size: 14px;
  font-weight: 400;
  color: #666;
  line-height: 1.7;
}

/* ----- 中央の＋記号 ----- */
.c-strategy-plus {
  width: 90px;
  height: 90px;
  background-color: var(--c-green-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  font-weight: 300;
  color: var(--c-white);
  flex-shrink: 0;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(128, 206, 68, 0.3);
}

/* ----- 中段：下向き矢印エリア ----- */
.c-strategy-arrow-area {
  position: relative;
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.c-strategy-arrow {
  width: 30px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 縦棒部分（グラデーション：グレー→黄緑） */
.c-strategy-arrow::before {
  content: '';
  width: 50px;
  height: 70px;
  background: linear-gradient(to bottom, #F3F3F3 0%, var(--c-green-primary) 100%);
}

/* 下向き三角形（黄緑） */
.c-strategy-arrow::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 35px solid transparent;
  border-right: 35px solid transparent;
  border-top: 40px solid var(--c-green-primary);
}

/* ----- 下段：株主還元バンド ----- */
.c-strategy-result {
  position: relative;
}

.c-strategy-result__main {
  position: relative;  /* 追加 */
  background-color: var(--c-green-primary);
  padding: var(--space-40) var(--space-32);
  text-align: center;
}

/* 緑バンドの下に黄緑色の下向き三角形 */
.c-strategy-result__main::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);  /* 隙間なく下にはみ出す */
  width: 0;
  height: 0;
  border-left: 15px solid transparent;   /* 横幅30px = 15px × 2 */
  border-right: 15px solid transparent;
  border-top: 20px solid var(--c-green-primary);  /* 高さ20px */
}

.c-strategy-result__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.3;
  letter-spacing: 0.1em;
  padding: var(--space-12) 0;
}

.c-strategy-result__sub-wrapper {
  position: relative;
  padding: var(--space-32) var(--space-32);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  border: 5px solid var(--c-green-primary);
}

.c-strategy-result__sub {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-green-primary);
  line-height: 1.5;
  text-align: center;
  max-width: 70%;
  letter-spacing: 0.1em;
}

.c-strategy-result__mascot {
  position: absolute;
  right: 60px;
  bottom: -20px;
  width: 120px;
  height: auto;
  transform-origin: bottom center;  /* 起点：下部中央 */
  animation: swing-mascot 3s infinite;
}

@keyframes swing-mascot {
  0% {
    transform: rotate(8deg);      /* 中央 */
  }
  25% {
    transform: rotate(-8deg);     /* 左に8度 */
  }
  50% {
    transform: rotate(8deg);      /* 右に8度 */
  }
  75% {
    transform: rotate(-8deg);      /* 左に8度 */
  }
  100% {
    transform: rotate(8deg);      /* 右に8度 */
  }
}


/* ===== SP ===== */
@media (max-width: 767px) {
  .c-strategy-boxes {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }
  
  .c-strategy-box {
    padding: var(--space-24) var(--space-24);
    min-height: auto;
  }
  
  .c-strategy-box__title {
    font-size: 18px;
  }
  
  .c-strategy-box__divider {
    max-width: 180px;
    margin: var(--space-20) auto;
  }
  
  .c-strategy-box__text {
    font-size: 13px;
  }
  
  .c-strategy-plus {
    width: 70px;
    height: 70px;
    font-size: 44px;
    margin: 0 auto;
  }
  
  .c-strategy-result__main {
    padding: var(--space-16) var(--space-16);
  }
  
  .c-strategy-result__title {
    font-size: 26px;
  }
  
  .c-strategy-result__sub-wrapper {
    padding: var(--space-24) var(--space-20);
    min-height: 60px;
  }
  
  .c-strategy-result__sub {
    font-size: 15px;
    max-width: 60%;
    padding-right: var(--space-16);
  }
  
  .c-strategy-result__mascot {
    right: 10px;
    bottom: -10px;
    width: 80px;
  }
}

/* =================================================================
   リンク
   ================================================================= */
.c-cta {
  margin-top: 64px;
}
.c-cta__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
}
 
.c-cta__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  color: var(--c-white);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing:.1em;
  transition: opacity var(--t-fast);
  background: #222;
  border-radius: 10px;
  line-height: 1;
  padding: 10px 30px;
}
 
.c-cta__link::after {
  content: '›';
  font-size: 30px;
  position: relative;
  bottom: 2px;
  color: #fff;
  font-weight: 700;
  margin-left: 5px;
}
 
.c-cta__link:hover {
  opacity: 0.7;
}
 
.c-cta__link:focus-visible {
  outline: 3px solid var(--c-yellow-accent);
  outline-offset: 4px;
  border-radius: 2px;
}
 
 
/* ===== SP ===== */
@media (max-width: 767px) {
  .c-cta__link {
    font-size: 14px;
  }
}