/* 1. CSS Custom Properties (color system & spacing) */
:root {
  --font-base: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  --color-bg: #fdfdfd;
  --color-text: #443D3A;
  --color-accent: #00663c;            /* 濃い緑 */
  --color-accent-light: #edf7f1;
  --color-highlight: #DD4A33;         /* One gentle pink for差し色 */
  --color-border: #e5e5e5;
  --radius-base: 6px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 2.5rem;
  --space-exlg: 3.5rem;
}

/* 2. Global reset & base typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  font-family: var(--font-base);
  font-size: 18px;
  line-height: 1.9;
  text-align: left;
  color: var(--color-text);
  background: #fff;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

p {
  line-height: 2;  /* お好みの値に調整 */
}


/* フォントサイズ拡大 */
.fs-md {
  font-size: 105%;
  margin: var(--space-xs) 0;
}
.fs-lg {
  font-size: 110%;
  margin: var(--space-xs) 0;
}
.fs-exlg {
  font-size: 120%;
  margin: var(--space-xs) 0;
}
.fs-md-inline {
  font-size: 105% !important;
}
.fs-lg-inline {
  font-size: 110% !important;
}
.fs-exlg-inline {
  font-size: 120% !important;
}

/* アイキャッチ全画面表示 */
main.container .eyecatch-wrapper {
  width: 100%;
  margin: 0 auto 5rem;
}

main.container .eyecatch-wrapper img,
main.container .eyecatch-wrapper video {
  width: 100vw;
  max-width: 100vw; /* スマホ画面に合わせて全幅に */
  height: auto;
  display: block;
  margin-left: calc(-50vw + 50%); /* 中央補正 */
  border-radius: 0;
}

/* 記事内画像用 */
.image-block {
  text-align: center;
  margin-top: 3.5rem;
  margin-bottom: 3rem;
}

  .image-block img,
  .image-block video {
  max-width: 95%;
  height: auto;
  display: inline-block;
  border-radius: var(--radius-base);
}

/* 記事内全画面表示 */
/* 全端末で左右余白なし＆max-widthリセット */
main.container .edge-full {
  margin: var(--space-exlg) -20px;
}


main.container .edge-full img,
main.container .edge-full video {
  display: block;
  width: 100%;
  max-width: none;   /* 既存の制限を解除 */
  height: auto;
  border-radius: 0;  /* 角丸をリセット */
}

/* 3. Layout utilities */
.container {
  width: 100%;
  max-width: 720px;
  text-align: left;
  margin: 0 auto;
  padding: 0 16px var(--space-sm) 16px;
  background-color: var(--color-bg);
}
.section + .section {
  margin-top: var(--space-lg);
}

/* 4. Text hierarchy */
h1 {
  font-size: 1.20rem;
  font-weight: 700;
  margin-top: -1rem;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}
h2 {
  font-size: 1.35rem;
  color: var(--color-text); /* メイン本文色に合わせる */
  border-left: 5px solid var(--color-highlight);
  background-color: rgba(255, 229, 229, 0.3); /* ほんのり淡いピンク系 */
  padding: var(--space-sm) var(--space-md);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
  border-radius: var(--radius-base);
  line-height: 1.4;
}
h3 {
  font-size: 1.3rem;
  color: var(--color-text);
  font-weight: 700;
  margin-top: 3.0rem;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
  position: relative;
  padding-bottom: 0.6rem; /* 下線用に余白を確保 */
}
/* 上の線 */
h3::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px; /* 下から少し上 */
  width: 100%;
  height: 2px;
  background-color: #737373; /* 濃いグレー */
}
/* 下の線 */
h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0; /* 一番下 */
  width: 100%;
  height: 2px;
  background-color: #737373;
}

p + p {
  margin-top: 1.5rem;
}

.no-margin-bottom {
  margin-bottom: 0 !important;
}

.catch-headline {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-top:  5rem;
  margin-bottom: 5rem;
  line-height: 1.6;
}

.catch-headline-green {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

/* 5. Highlight utilities */
.highlight-strong {
  color: var(--color-accent);
  font-size: 1.3em;
  font-weight: 700;
  margin-top: var(--space-xs);
}

.highlight {
  font-size: 1.1em;
  font-weight: 700;
}

.highlight-black {
  color: var(--color-text);
  font-size: 1.2em;
  font-weight: 700;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

/*— 既存の .highlight-black-underline 定義に追加 —*/
.underline-peach {
  color: var(--color-text);
  margin: var(--space-md) 0;
  display: inline;
  /* 下線のスタイル */
  text-decoration-line: underline;
  text-decoration-color: #f9e7cf;
  text-decoration-thickness: 0.8em;   /* 線の太さ */
  text-underline-offset: -0.3em;     /* マイナスで文字側にずらす */
  text-decoration-skip-ink: none;
}

.phrase-highlight {
  display: inline-block;               /* 行内ブロックにして余白を効かせる */
  background-color: var(--color-accent); /* スプラウトグリーン */
  color: #fff;                         /* 白文字 */
  font-size: 1.2em;
  padding: 0.1em 0.2em 0.2em;                /* 上下0.2em・左右0.5em の余白 */
  font-weight: 700;                    /* 少し太字に */
  line-height: 1.5;                      /* 余白内で縦中央 */
  margin: var(--space-xs) 0.1rem 0.3rem;
}

.callout {
  background: var(--color-accent-light);
  padding: var(--space-sm) var(--space-md);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-base);
  margin-block: var(--space-md);
}

.highlight-soft {
  color: var(--color-highlight);
  font-size: 1em;
  font-weight: 600;
  margin: var(--space-md) 0;
}

/* 6. CTA button */
/* CTAアニメーション共通 */
.cta-animated {
  display: inline-block;
  padding: 16px 24px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  color: #fff;
}

/* A: パルスアニメーション */
.cta-pulse {
  background-color: #4CAF50;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.6); }
  70%  { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* B: ホバー時に光沢 */
.cta-glow {
  background-color: #009688;
}
.cta-glow:hover {
  box-shadow: 0 0 10px 2px #80cbc4;
  transform: scale(1.05);
}

/* C: ゆるく点滅 */
.cta-fade {
  background-color: #f48fb1;
  animation: fadeBlink 2.5s infinite;
}
@keyframes fadeBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

.cta-wrapper a:hover,
.cta-animated:hover,
.cta-button:hover {
  background-color: #e53e3e; /* 赤みがかったピンク系 */
  color: white;
  opacity: 0.9;
  transition: 0.3s ease;
}

/* 追従型のCTA */
.sticky-cta {
  position: relative;
  background: #5fae6e;
  color: #fff;
  font-size: 16px;  
  font-weight: bold;
  text-decoration: none;
  padding: 1em 1.5em;
  border-radius: 2em;
  box-shadow: 0 0.5em 1em rgba(0, 0, 0, 0.3);
  overflow: hidden; /* 光沢がボタン外に漏れないように必須 */
}

.sticky-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shine 2s infinite;
}

.sticky-cta-container {
  position: fixed;
  bottom: 10px;
  left: 0;
  width: 100%;
  display: flex;                   /* いつでも配置 */
  justify-content: center;
  z-index: 1000;
  opacity: 0;                      /* フェードアウト状態 */
  transform: translateY(30px);     /* 下にずらした状態 */
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;            /* 非表示時はクリック無効 */
}

.sticky-cta-container.visible {
  opacity: 1;                      /* フェードイン */
  transform: translateY(0);        /* 元の位置 */
  pointer-events: auto;            /* 表示時にクリック有効 */
}

@keyframes shine {
  0% { left: -75%; }
  100% { left: 125%; }
}

/* ──────────────────────────────── *
   CTAバナー画像をポップにパルスさせる
 * ──────────────────────────────── */

/* パルス用 keyframes */
@keyframes cta-pulse {
  0%   { transform: scale(0.95);   }
  50%  { transform: scale(1.05); }
  100% { transform: scale(0.95);   }
}

.cta-image {
  display: block;      /* ブロック要素にして幅を扱いやすく */
  margin: 0 auto;      /* 横中央に配置 */
  width: 90%;          /* 親（.container）に対して80%幅 */
  max-width: 90%;     /* コンテナ幅を超えない */
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.cta-image img {
  display: block;      /* img をブロック化 */
  max-width: 100%;     /* 親の幅を超えない */
  height: auto;        /* アスペクト比を維持 */
  margin: 0 auto;      /* 万一余白があっても中央に */
  animation: cta-pulse 2s ease-in-out infinite; /* 既存パルス */
}

/* CTAボタン画像用の光沢アニメーション */
main.container .sparkle-only {
  display: block;            /* ブロック化して幅をコントロール */
  width: 100%;                /* 親 .container に対して幅を調整 */
  max-width: 100%;            /* はみ出し防止 */
  margin: var(--space-md) auto; /* 上下余白＋中央寄せ */
  position: relative;        /* ::before 用 */
  overflow: hidden;          /* 擬似要素のはみ出しを隠す */
}

main.container .sparkle-only img {
  display: block;            /* ブロック化して幅100% */
  width: 100%;               
  height: auto;              
}

/* 光るエフェクトはそのまま */
.sparkle-only::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-20deg);
  animation: shine 2s infinite;
}

@keyframes shine {
  0%   { left: -75%; }
  100% { left: 125%; }
}

/* 7. Testimonial block */
.testimonial {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  border: 1px solid CBDCEB;
  padding: 1.5rem 0 0.5rem; 
  margin: 5rem 0 5rem;
  width: 95%;
  margin-left: auto;
  margin-right: auto;
  background: #F3F3E0;
}
.testimonial cite {
  text-align: center;
  display: block;
  margin-top: var(--space-xs);
  font-style: normal;
  color: #555;
}

.testimonial2 {
  border: 1px solid CBDCEB;
  padding: 1rem 1rem 0.5rem; 
  margin: 1.5rem 0 1.5rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  background: #F3F3E0;
}

/* 8. Responsive tweaks */
@media (min-width: 768px) {
.container {
  font-size: 20px;
  padding: 0 24px var(--space-sm) 24px;
  }
/* フォントサイズ拡大 */
.fs-md {
  font-size: 110% !important;
}
.fs-lg {
  font-size: 120% !important;
}
.fs-exlg {
  font-size: 130% !important;
}
.fs-md-inline {
  font-size: 110% !important;
}
.fs-lg-inline {
  font-size: 125% !important;
}
.fs-exlg-inline {
  font-size: 140% !important;
}
    
  h1 { font-size: 2.25rem;  }
  h2 { font-size: 1.95rem; }
  h3 { font-size: 1.75rem;  }

p + p {
  margin: 2.5rem 0;
}
    
  .highlight {
    font-size: 1.1em;
    font-weight: 600;
  }
  .highlight-black {
    font-size: 1.4em;
  }
  .highlight-black-underline {
    font-size: 1.4em;
  }
  .phrase-highlight {
  font-size: 1.2em;
  font-weight: 500;
  padding: 0.1em 0.3em 0.2em;

  }    

  /* コンテナの左右パディングが24pxの場合 */
  main.container .eyecatch-wrapper {
    /* コンテナ幅＋左右パディング合計(24px×2) */
    width: calc(100% + 48px);
    /* 左右パディング分を打ち消す */
    margin-left: -24px;
    margin-right: -24px;
    margin-bottom: 7rem;
  }

  /* 画像／動画をラッパーいっぱいに */
  main.container .eyecatch-wrapper img,
  main.container .eyecatch-wrapper video {
    width: 100%;
    max-width: none;
    margin: 0;
  }
    
  .catch-headline {
    text-align: left;
    font-size: 2.1rem;
    font-weight: 700;
    margin-top: 7rem;
    margin-bottom: 7rem;
    line-height: 1.6;
  }
  .catch-headline-green {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    line-height: 1.6;
  }
    
  .image-block {
  text-align: center;
  margin-top: 5.5rem;
  margin-bottom: 5rem;
}
    
  .image-block img,
  .image-block video {
    max-width: 85%;
    height: auto;
    display: inline-block;
    border-radius: var(--radius-base);
  }
   
.testimonial {
  font-size: 1.4rem;
  text-align: center;
  margin: 7rem 0 7rem;
  width: 85%;
  margin-left: auto;
  margin-right: auto;
}
.testimonial2 {
  padding: 1rem 1.5rem 0.5rem; 
  margin: 2.5rem 0 2.5rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
    
}

/* 9. Author information */
.author-note-style {
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ccc; /* ← 下線に変更 */
}

.author-note-style .author-icon {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 6px;
}

.author-note-style .author-text {
  flex: 1;
  line-height: 1.2;
}

.author-note-style .author-name {
  color: #3b3b3b;
  font-weight: normal;
  font-size: 0.75rem;
  margin-bottom: 1px;
}

.author-note-style .author-date {
  font-size: 0.65rem;
  color: #5c5c5c;
  margin-top: 1px;
}

/* 10. Gray box */
.gray-box {
  background-color: #f0f0f0;   /* 薄いグレー */
  padding: 1.5rem;             /* 内側の余白 */
  border-radius: 8px;          /* 角を少し丸く */
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

/* 11. Reference Note */
.note {
  font-size: 0.8em;
  color: var(--color-muted);
  text-align: right;
  margin-top: var(--space-lg);
}

.sup-note {
  font-size: 0.6em;
  vertical-align: super;
  color: var(--color-muted);
  margin-left: 2px; /* 本文との間に少し隙間 */
}

/* 12. 矢印 */
.scroll-arrow {
  text-align: center;
  font-size: 2em;
  margin: var(--space-sm) 0 var(--space-lg);
  color: var(--color-text);
  animation: bounce 1.5s infinite;
}
/* シンプルな上下アニメーション */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(10px);}
  60% {transform: translateY(5px);}
}

/* 13. 画像スライダー */
.slider-js {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 2.25rem auto 0;
  overflow: hidden;
}

.slider-js::before {
  content: "";
  display: block;
  padding-bottom: 100%; /* 正方形比率を確保 */
}

.slider-js img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  border-radius: var(--radius-base);
}

.slider-js img:first-child {
  display: block;
}
/* スライダー左右に切り替え矢印 */
.slider-arrow {
  position: absolute;
  top: 40%; /* ← 高さを少し上にしたい場合ここを調整（50%基準） */
  transform: translateY(-50%);
  width: 48px;              /* 丸用に固定サイズ */
  height: 48px;             /* 丸用に固定サイズ */
  font-size: 2rem;
  color: white;
  text-shadow: 0 0 5px black;
  background: rgba(0,0,0,0.3);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  user-select: none;
  z-index: 10;
  border-radius: 50%;       /* ← 丸くする */
  display: flex;            /* 中央揃え用 */
  align-items: center;      /* 縦中央 */
  justify-content: center;  /* 横中央 */
}
.slider-arrow-left { left: 10px; }
.slider-arrow-right { right: 10px; }

.slider-arrow span {
  position: relative;
  top: -5px;     /* ここを自由に変えて微調整 */
  left: 0px;    /* 左右も必要なら調整 */
}

/* 14. リスト */
ul.custom-list {
  list-style: none;            /* デフォルトの黒丸を消す */
  padding-left: 1.1em;         /* 左に余白を作ってアイコン用にスペース */
}

ul.custom-list li {
  font-size: 1.1rem;
  font-weight: 700;
  position: relative;          /* 疑似要素でアイコンを配置するため */
  margin-bottom: 0.8em;        /* リスト項目間にスペース */
  line-height: 1.6;
  padding-left: 1.5em;   /* ← 左パディングを増やして文字を右にずらす */
}

ul.custom-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;                /* テキスト中央あたりに揃える */
  width: 0.5em;              /* 丸の大きさ */
  height: 0.5em;
  background-color: var(--color-accent);
  border-radius: 50%;        /* 丸にする */
}

/* ------------------------------
   フッター
------------------------------ */
footer {
  background: #f9f9f9;
  border-top: 1px solid #ddd;
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
}
.footer-inner {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 10px;
  font-size: 13px;
  color: #666;
  text-align: center;
}
.footer-product p {
  margin: 6px 0;
  line-height: 1.8;
}
.footer-company {
  margin: 20px 0;
}
.company-logo img {
  width: 200px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}
.company-links {
  display: flex;
  justify-content: center;
  gap: 2px;
  flex-wrap: wrap;
}
.company-links a {
  color: #666;
  text-decoration: none;
  font-size: 13px;
  margin: 0 5px;
}
.company-links a:hover {
  text-decoration: underline;
}
footer p.copyright {
  margin-top: 0px;
  font-size: 12px;
  color: #999;
}
