/* =========================
   AppsTools 共通LPスタイル
========================= */

:root{
  --main-color:#9f8530;
  --text-color:#333;
  --bg-light:#f9f9f9;
}

/* 共通 */
.product-page{
  font-family: sans-serif;
  color: var(--text-color);
  line-height: 1.8;
}

.container{
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* =========================
   Hero
========================= */
.product-hero{
  padding:80px 0;
  text-align:center;
}

.product-hero h1{
  font-size:32px;
  margin-bottom:20px;
}

.product-hero p{
  font-size:16px;
  margin-bottom:30px;
}

.product-hero img{
  max-width:100%;
  height:auto;
  margin-top:20px;
}

/* =========================
   Intro（概要）
========================= */

.product-intro {
  padding: 40px 0;
  text-align: left;
}

.intro-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

/* ========================
   h1タイトル装飾Line（🔥 強制居中版・FlexSupport上書き）
========================= */

.page-template-page-Appstools .product-hero .h1-line {
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 12px;
}

.page-template-page-Appstools .product-hero .h1-line::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #9f8530 0%, #d1b24d 100%);
  position: absolute;

  /* 🔥 关键修复 */
  left: 50% !important;
  bottom: 0;
  transform: translateX(-50%) !important;
}

/* =========================
   共通：交互レイアウト
========================= */

.feature-item,
.function-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

/* 画像 */
.feature-image,
.function-image {
  flex: 1;
}

.feature-image img,
.function-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* テキスト */
.feature-text,
.function-text,
.benefit-text {
  flex: 1;
  text-align: left;
}

/* ===== 偶数だけ反転 ===== */
.feature-item:nth-child(even),
.function-item:nth-child(even) {
  flex-direction: row-reverse;
}

/* =========================
   Benefit（縦リスト）
========================= */

.product-benefit {
  padding: 80px 0;
  background: var(--bg-light);
}

.benefit-item {
  margin-bottom: 40px;
  padding: 30px;
  background: #fff;
  border-radius: 10px;
}

/* タイトル */
.benefit-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--main-color);
}

/* テキスト */
.benefit-item p {
  font-size: 14px;
}

/* =========================
   CTA
========================= */
.product-cta{
  padding:80px 0;
  text-align:center;
}

.cta-button{
  display:inline-block;
  background:var(--main-color);
  color:#fff;
  padding:15px 40px;
  border-radius:50px;
  text-decoration:none;
  font-size:16px;
  transition:0.3s;
}

.cta-button:hover{
  opacity:0.8;
}

/* =========================
   レスポンシブ
========================= */
@media (max-width:768px){

  .feature-grid{
    grid-template-columns:1fr;
  }

  .feature-text {
    text-align: center;
  }

  .benefit-grid{
    grid-template-columns:1fr;
  }

  .feature-item,
  .function-item,
  .benefit-item {
    flex-direction: column !important;
    text-align: center;
  }

  .product-hero h1{
    font-size:24px;
  }

}

/* =========================
   CTA（DX風に寄せる上書き）
   ※ 既存ロジックはそのまま
========================= */

.product-cta{
  padding: 80px 0;
  text-align: left;
  border-top: none;
}

/* CTA全体 */
.product-cta .cta-button{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;

  background: transparent;
  color: #0f2d57;
  border-radius: 0;
  padding: 0 0 18px;
  text-decoration: none;

  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  transition: 0.3s;
  border-bottom: 1px solid #333;
}

/* 右側の矢印 */
.product-cta .cta-button::after{
  content: "→";
  display: inline-block;
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  color: #000;
  margin-left: 24px;
  flex-shrink: 0;
}

/* hover */
.product-cta .cta-button:hover{
  opacity: 0.8;
}

/* 手機版 */
@media (max-width: 768px){
  .product-cta{
    padding: 56px 0;
  }

  .product-cta .cta-button{
    font-size: 14px;
    padding: 0 0 14px;
  }

  .product-cta .cta-button::after{
    font-size: 40px;
    margin-left: 16px;
  }
}


/* =========================
   CTA：FlexSupport風に寄せる追加上書き
   ※ 只做加法，不改PHP
========================= */

/* 整个CTA区块 */
.product-cta {
  padding: 100px 0 80px;
  text-align: left;
}

/* 整个可点击区域改成左右布局 */
.product-cta .cta-button.cta-button-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;

  background: transparent;
  border-radius: 0;
  padding: 0 0 17px;
  border-bottom: 1px solid #000;
  text-decoration: none;
  color: inherit;
}

/* 左边文案区 */
.product-cta .cta-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* 第一行标题：对齐 Flex 的 consultationmargin */
.product-cta .cta-title {
  display: block;
  font-size: 35px;
  font-weight: bold;
  line-height: 1.3;
  margin: 0 0 6px 0;
  color: #0f2d57;
}

/* 第二行说明文：对齐 Flex 的 company-details-p */
.product-cta .cta-desc {
  display: block;
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
  color: #000;
}

/* 去掉文字后面那个小箭头（你说不需要） */
.product-cta .cta-button::after {
  display: none !important;
  content: none !important;
}

/* 保留右侧大箭头 */
.product-cta .cta-arrow {
  display: inline-block;
  font-size: 80px;
  line-height: 1;
  font-weight: 400;
  color: #000;
  flex-shrink: 0;
  margin-left: 32px;
}

/* hover */
.product-cta .cta-button.cta-button-banner:hover {
  opacity: 0.8;
}

/* =========================
   手机版
========================= */
@media (max-width: 768px) {
  .product-cta {
    padding: 30px 0 60px;
  }

  .product-cta .cta-button.cta-button-banner {
    padding: 0 0 14px;
    align-items: center;
  }

  .product-cta .cta-title {
    font-size: 26px;
    margin: 0 0 10px 0;
    width: 120%;
    max-width: none;
  }

  .product-cta .cta-desc {
    font-size: 14px;
    margin: 0;
    width: 115%;
    max-width: none;
  }

  .product-cta .cta-arrow {
    font-size: 45px;
    margin-left: 16px;
  }
}