/* =========================================================
   index.css
   トップページ（index.html）専用スタイル。
   横はみ出し防止 + ヒーロー / セクション群の装飾。
   ========================================================= */

/* ---------- ページ全体の横はみ出し防止（防波堤） ----------
   子要素の transform / nowrap / marquee track 等が親の overflow を
   突き抜けて横スクロールを発生させるのを root で止める。
   clip は sticky を壊さず Safari 16+ 対応。fallback に hidden。 */
body {
  overflow-x: hidden;
  overflow-x: clip;
}

/* ---------- ボタンの統一（グラデ基調） ---------- */

/* Primary = 青グラデ + 白文字 + 矢印（明色背景で使用） */
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  background: var(--gradient--accent);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
  position: relative;
  overflow: hidden;
}

.button-primary .button-primary__text {
  position: relative;
  z-index: 1;
}

.button-primary .button-primary__icon {
  display: inline-block;
  transition: transform 0.35s ease;
  position: relative;
  z-index: 1;
}

/* White 修飾子 = 暗色背景用：透明 + 白枠（ヒーロー・フッター） */
.button-primary--white {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.85);
}

/* ホバーは PC のみ */
@media (hover: hover) and (pointer: fine) {
  .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(27, 110, 188, 0.28);
  }
  .button-primary:hover .button-primary__icon {
    transform: translateX(4px);
  }
  .button-primary--white:hover {
    background: #ffffff;
    color: var(--color--ink);
    border-color: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  }
}

/* SP はタップ時だけ一瞬沈む */
.button-primary:active {
  transform: translateY(1px);
}

/* ---------- Hero Section (M-50 準拠：明るいベース × 青のワンポイント × 本マーク) ---------- */
.hero-section {
  position: relative;
  width: 100%;
  /* SP: 画面幅ベースで段階的に px を切替（URL バー連動を完全排除） */
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 7rem 0 6rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
  color: #1a1a1a;
}
/* 標準 SP（iPhone 13/14 など 390px〜） */
@media (min-width: 390px) {
  .hero-section { min-height: 650px; }
}
/* 大型 SP（iPhone Pro Max 系 430px〜） */
@media (min-width: 430px) {
  .hero-section { min-height: 750px; }
}
/* タブレット・PC は従来通り viewport 単位 */
@media (min-width: 768px) {
  .hero-section { min-height: 100svh; }
}
@media (min-width: 1024px) {
  .hero-section {
    padding: 9rem 0 8rem;
  }
}

/* 装飾レイヤー */
.hero-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* 左上の青グラデグロウ */
.hero-section__glow--top {
  position: absolute;
  top: 8%;
  left: -7%;
  width: 37vmin;
  height: 35vmin;
  background: radial-gradient(ellipse at center,
    rgba(27, 110, 188, 0.28) 0%,
    rgba(68, 182, 215, 0.15) 40%,
    transparent 72%);
  filter: blur(28px);
  animation: v2HeroGlowBreathe 12s ease-in-out infinite;
}
@media (min-width: 1024px) {
  .hero-section__glow--top { top: -5%; }
}
/* 1300px 以上では「1300px 幅時の位置（-91px）」から相対固定。画面幅が増えても位置がさらに左に流れない */
@media (min-width: 1300px) {
  .hero-section__glow--top {
    left: calc((100vw - 1300px) / 2 - 91px);
  }
}
@keyframes v2HeroGlowBreathe {
  0%, 100% { transform: scale(1);    opacity: 0.85; }
  50%      { transform: scale(1.08); opacity: 1; }
}

/* 中央下の青グラデグロウ */
.hero-section__glow--bottom {
  position: absolute;
  bottom: 2%;
  left: 52%;
  width: 20%;
  height: 20%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
    rgba(27, 110, 188, 0.28) 0%,
    rgba(68, 182, 215, 0.15) 40%,
    transparent 72%);
  filter: blur(28px);
  animation: v2HeroGlowBreatheBottom 12s ease-in-out -6s infinite;
}
@media (min-width: 1024px) {
  .hero-section__glow--bottom {
    bottom: 1%;
    width: 25vmin;
    height: 25vmin;
  }
}
@keyframes v2HeroGlowBreatheBottom {
  0%, 100% { transform: translateX(-50%) scale(1);    opacity: 0.85; }
  50%      { transform: translateX(-50%) scale(1.08); opacity: 1; }
}

/* 中央の呼吸する円 */
.hero-section__center {
  position: absolute;
  top: 50%; left: 50%;
  width: 18vmin; height: 18vmin;
  border: 1px solid rgba(68, 182, 215, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: v2HeroCenterPulse 6s ease-in-out infinite;
  opacity: 0;
}
@keyframes v2HeroCenterPulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

/* 左側の上昇粒子 */
.hero-section__particle {
  position: absolute;
  width: 3px; height: 3px;
  background: #44B6D7;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(68, 182, 215, 0.65), 0 0 16px rgba(27, 110, 188, 0.35);
  opacity: 0;
  animation: v2HeroParticleRise 14s linear infinite;
}
.hero-section__particle:nth-child(4)  { left:  3%; bottom: -2svh; animation-delay: 0s;   animation-duration: 14s; }
.hero-section__particle:nth-child(5)  { left:  7%; bottom: -4svh; animation-delay: 1.2s; animation-duration: 18s; width: 2px; height: 2px; }
.hero-section__particle:nth-child(6)  { left: 11%; bottom: -1svh; animation-delay: 3.5s; animation-duration: 11s; width: 4px; height: 4px; }
.hero-section__particle:nth-child(7)  { left: 15%; bottom: -5svh; animation-delay: 0.6s; animation-duration: 17s; }
.hero-section__particle:nth-child(8)  { left: 19%; bottom: -3svh; animation-delay: 4.2s; animation-duration: 13s; width: 2px; height: 2px; }
.hero-section__particle:nth-child(9)  { left: 23%; bottom: 0;    animation-delay: 2.1s; animation-duration: 16s; }
.hero-section__particle:nth-child(10) { left:  5%; bottom: -6svh; animation-delay: 5.8s; animation-duration: 12s; width: 4px; height: 4px; }
.hero-section__particle:nth-child(11) { left: 13%; bottom: -1svh; animation-delay: 7.3s; animation-duration: 19s; }
.hero-section__particle:nth-child(12) { left: 21%; bottom: -7svh; animation-delay: 3.9s; animation-duration: 15s; }
.hero-section__particle:nth-child(13) { left:  9%; bottom: -2svh; animation-delay: 6.5s; animation-duration: 18s; width: 2px; height: 2px; }
@keyframes v2HeroParticleRise {
  0%   { transform: translateY(0);       opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-110svh);  opacity: 0; }
}

/* 右側の垂直光線 */
.hero-section__beam {
  position: absolute;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent 0%, #44B6D7 80%, transparent 100%);
  box-shadow: 0 0 8px rgba(68, 182, 215, 0.55);
  animation: v2HeroBeamRise 6s ease-in-out infinite;
  opacity: 0;
}
.hero-section__beam--1 { left: 68%; height: 60svh; animation-delay: 3s; animation-duration: 7s; }
.hero-section__beam--2 { left: 88%; height: 45svh; animation-delay: 4.5s; }
@keyframes v2HeroBeamRise {
  0%   { transform: translateY(0);     opacity: 0; }
  15%  { opacity: 0.8; }
  85%  { opacity: 0.8; }
  100% { transform: translateY(-110svh); opacity: 0; }
}

/* SP: 粒子・ビームのサイズ／位置／アニメ移動量を px ベースで固定。
   ヒーロー本体が clamp(580〜950px) で px 化されたのと整合させる。
   キーフレーム名も SP 専用に切り替えて translateY 量を px で上書き。 */
@media (max-width: 767px) {
  .hero-section__particle:nth-child(4)  { bottom: -16px; }
  .hero-section__particle:nth-child(5)  { bottom: -32px; }
  .hero-section__particle:nth-child(6)  { bottom:  -8px; }
  .hero-section__particle:nth-child(7)  { bottom: -40px; }
  .hero-section__particle:nth-child(8)  { bottom: -24px; }
  .hero-section__particle:nth-child(10) { bottom: -48px; }
  .hero-section__particle:nth-child(11) { bottom:  -8px; }
  .hero-section__particle:nth-child(12) { bottom: -56px; }
  .hero-section__particle:nth-child(13) { bottom: -16px; }
  .hero-section__particle { animation-name: v2HeroParticleRiseSP; }

  .hero-section__beam--1 { height: 500px; }
  .hero-section__beam--2 { height: 380px; }
  .hero-section__beam { animation-name: v2HeroBeamRiseSP; }
}

@keyframes v2HeroParticleRiseSP {
  0%   { transform: translateY(0);      opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-1100px); opacity: 0; }
}

@keyframes v2HeroBeamRiseSP {
  0%   { transform: translateY(0);     opacity: 0; }
  15%  { opacity: 0.8; }
  85%  { opacity: 0.8; }
  100% { transform: translateY(-1100px); opacity: 0; }
}

/* 周辺の四角（散らし） */
.hero-section__sq {
  position: absolute;
  border-radius: 2px;
}
.hero-section__sq--1 { top: 17%; right: 10%; width: 5vmin; height: 5vmin;
  border: 1px solid rgba(27, 110, 188, 0.4); animation: v2HeroSqSpin 22s linear infinite; }
.hero-section__sq--2 { bottom: 14%; right: 12%; width: 6vmin; height: 6vmin;
  border: 1px solid rgba(27, 110, 188, 0.5); background: rgba(68, 182, 215, 0.1);
  animation: v2HeroSqSpin 16s linear infinite reverse; }
.hero-section__sq--3 { top: 46%; right: 15%; width: 9vmin; height: 9vmin;
  border: 1px dashed rgba(27, 110, 188, 0.28); animation: v2HeroSqSpin 32s linear infinite; }
@media (min-width: 1024px) {
  .hero-section__sq--3 { top: 66%; right: 28%; }
}
.hero-section__sq--4 { top: 26%; right: 36%; width: 4vmin; height: 4vmin;
  background: rgba(27, 110, 188, 0.22); animation: v2HeroSqSpin 18s linear infinite; }
@keyframes v2HeroSqSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* 本マーク
   SP 標準（iPhone Pro Max クラス）: 画面中央やや下（top 66%）
   SP 縦短（iPhone SE クラス、max-height 700）: 画面下から固定距離
   PC: 中央やや上（top 45%） */
.hero-section__book {
  position: absolute;
  top: 66%;
  right: 4%;
  transform: translateY(-50%);
  width: 32vmin; height: 32vmin;
  filter: drop-shadow(0 0 10px rgba(68, 182, 215, 0.2));
  animation: v2HeroBookBreathe 9s ease-in-out infinite;
}
/* 縦が短い端末（iPhone SE 667px など）: コンテンツと被らないよう下寄せ固定 */
@media (max-height: 700px) {
  .hero-section__book {
    top: auto;
    bottom: 20%;
    right: 2%;
    transform: none;
    width: 26vmin;
    height: 26vmin;
    animation-name: v2HeroBookBreatheShort;
  }
}
/* Galaxy S8+ / S9 / S10 など（幅 360px・高さ 740px 前後の Android 縦長端末） */
@media (min-width: 355px) and (max-width: 370px) and (min-height: 701px) and (max-height: 780px) {
  .hero-section__book {
    top: auto;
    bottom: 23%;
    right: 1%;
    transform: none;
    width: 28vmin;
    height: 28vmin;
    animation-name: v2HeroBookBreatheShort;
  }
}
@keyframes v2HeroBookBreatheShort {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.025); }
}
@media (min-width: 1024px) {
  .hero-section__book {
    top: 45%;
    bottom: auto;
    right: 8%;
    width: 32vmin; height: 32vmin;
    transform: translateY(-50%);
    animation-name: v2HeroBookBreathe;
  }
}
/* 1280px 以上：コンテンツ max-width(1280px) の右端から一定距離で固定 */
@media (min-width: 1280px) {
  .hero-section__book {
    right: calc((100vw - 1280px) / 2 + 102px);
  }
}
@keyframes v2HeroBookBreathe {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50%      { transform: translateY(-50%) scale(1.025); }
}

/* ---------- コンテンツ ---------- */
.hero-section__inner {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-section__content {
  max-width: 820px;
  color: #1a1a1a;
}

.hero-section__kicker {
  margin: 0 0 1.25rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: #1B6EBC;
}
@media (min-width: 1024px) {
  .hero-section__kicker { font-size: 1.1875rem; }
}

.hero-section__title {
  font-family: 'YakuHanMP', 'Noto Serif JP', serif;
  font-size: clamp(1.52rem, 5.5vw, 3.75rem);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin: 0 0 1.75rem;
  color: #1a1a1a;
}
/* iPhone XR / Plus（414px〜）: 中間 tier */
@media (min-width: 414px) {
  .hero-section__title {
    font-size: clamp(1.7rem, 5.5vw, 3.75rem);
  }
}
/* iPhone Pro Max 系（430px〜）: 最大 tier */
@media (min-width: 430px) {
  .hero-section__title {
    font-size: clamp(1.75rem, 5.5vw, 3.75rem);
  }
}
.hero-section__title-line {
  display: block;
}

.hero-section__title-accent {
  position: relative;
  background: linear-gradient(135deg, #1B6EBC 0%, #44B6D7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 0.1em;
  font-weight: 500;
}
.hero-section__title-accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -0.1em;
  height: 2px;
  background: linear-gradient(90deg, #1B6EBC 0%, #44B6D7 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1);
}
.hero-section__title-accent.is-underline-on::after {
  transform: scaleX(1);
}

.hero-section__desc {
  margin: 0 0 2.5rem;
  font-size: clamp(0.875rem, 1.6vw, 1rem);
  line-height: 2;
  letter-spacing: 0.08em;
  color: #4a4a4a;
  max-width: 620px;
}

/* 右端の縦書きアクセント（PC のみ表示） */
.hero-section__accent {
  display: none;
}
@media (min-width: 1024px) {
  .hero-section__accent {
    position: absolute;
    right: 2rem;
    top: 59%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-family: 'YakuHanMP', 'Noto Serif JP', serif;
    font-size: 0.9375rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: #4a4a4a;
    z-index: 10;
    height: 60vh;
    display: flex;
    align-items: center;
    opacity: 0;
    animation: v2HeroFadeIn 0.9s ease 1.5s forwards;
  }
}
/* 1280px 以上：コンテンツ max-width(1280px) の右端から 2rem で固定 */
@media (min-width: 1280px) {
  .hero-section__accent {
    right: calc((100vw - 1280px) / 2 + 2rem);
  }
}
@keyframes v2HeroFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Scroll インジケーター */
.hero-section__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: #6a6a6a;
  z-index: 10;
  opacity: 0;
  animation: v2HeroFadeUp 0.9s ease 1.8s forwards;
}
@media (min-width: 1024px) {
  .hero-section__scroll { bottom: 2rem; }
}
.hero-section__scroll-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero-section__scroll-line {
  display: block;
  width: 1px; height: 50px;
  background: rgba(26, 26, 26, 0.22);
  position: relative;
  overflow: hidden;
}
.hero-section__scroll-line::after {
  content: '';
  position: absolute;
  top: -25px; left: 0;
  width: 100%; height: 25px;
  background: #1B6EBC;
  animation: v2HeroScrollIndicator 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes v2HeroScrollIndicator {
  0%   { top: -25px; }
  100% { top: 50px; }
}

/* ---------- News Section ---------- */
.news-section {
  padding: 6rem 0 3rem;
}

@media (min-width: 1024px) {
  .news-section { padding: 9rem 0 5rem; }
}

.news-section__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .news-section__inner {
    flex-direction: row;
    gap: 4rem;
  }
}

.news-section__header { width: 100%; }
@media (min-width: 768px) {
  .news-section__header { width: 25%; }
}

.news-section__content { width: 100%; display: flex; flex-direction: column; }
@media (min-width: 768px) {
  .news-section__content { width: 75%; }
}

.news-section__title {
  font-size: 1.75rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.news-section__subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.news-section__list { width: 100%; }

/* Query Loop が <ul.wp-block-post-template><li.wp-block-post> を生成するので
   その WP デフォルトを完全にリセットしてから、内側の .news-section__item に
   レイアウトを当てる。静的モックアップ（.news-section__list 直下に
   .news-section__item）と Query Loop の両方に同じ見た目で当たる。 */
.news-section__list .wp-block-post-template {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}
.news-section__list .wp-block-post {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}

.news-section__footer {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .news-section__footer { justify-content: flex-end; }
}

.news-section__item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(42, 42, 42, 0.1);
}

@media (min-width: 768px) {
  .news-section__item {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
}

/* first/last は静的 (.news-section__list 直下) と Query Loop (.wp-block-post) 両対応 */
.news-section__list > .news-section__item:first-child,
.news-section__list .wp-block-post:first-child .news-section__item {
  padding-top: 0;
}
.news-section__list > .news-section__item:last-child,
.news-section__list .wp-block-post:last-child .news-section__item {
  padding-bottom: 0;
  border-bottom: none;
}

.news-section__link-title a {
  color: inherit;
  transition: color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .news-section__item:hover .news-section__link-title a {
    color: var(--color--accent);
  }
}

.news-section__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .news-section__meta { width: 12rem; }
}

.news-section__date {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-family: var(--font--mono);
}

.news-section__category {
  font-size: 0.75rem;
  background: var(--gradient--accent);
  color: #ffffff;
  padding: 0.3rem 0.75rem;
  letter-spacing: 0.1em;
  border-radius: 100px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
  line-height: 1.2;
}

.news-section__category a {
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .news-section__category:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(27, 110, 188, 0.3);
  }
}

.news-section__link-title {
  font-size: 0.875rem;
  line-height: 2;
  transition: color 0.3s ease;
}

/* ---------- Concept Section ---------- */
.concept-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .concept-section { padding: 10rem 0; }
}

.concept-section__watermark {
  position: absolute;
  top: 6rem;
  right: 0.5rem;
  left: auto;
  width: auto;
  overflow: hidden;
  z-index: -10;
  pointer-events: none;
}

@media (min-width: 768px) {
  .concept-section__watermark {
    top: 10rem;
    right: 1.5rem;
  }
}

.concept-section__watermark-text {
  font-feature-settings: "palt";
  font-size: clamp(3.5rem, 14vw, 6rem);
  letter-spacing: 0.2em;
  opacity: 0.14;
  line-height: 1;
  color: var(--color--ink);
}

@media (min-width: 768px) {
  .concept-section__watermark-text {
    font-size: clamp(5rem, 9vw, 9rem);
  }
}

/* Mobile: __content は通常のブロックフロー。
   HTML 並び順 (title → subtitle → image → text → button) = 表示順。 */
.concept-section__content {
  display: block;
}

/* PC: 元の "text 50% 左 / image 50% 右、両方縦中央揃え" を Grid で再現。
   - 2 カラム grid + column-gap 6rem
   - 画像は col 2 を縦に span
   - min-height で grid container を画像の正方形高さ以上に確保
     (text が画像より低いとき align-content: center が text を縦中央に並べる)
   - cqw を使うので __inner を container query context にする */
@media (min-width: 768px) {
  .concept-section__inner {
    container-type: inline-size;
  }
  .concept-section__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 6rem;
    min-height: calc(50cqw - 3rem);
    align-content: center;
    align-items: center;
  }
  /* 元の flex-direction: row-reverse を再現：画像が左、text が右 */
  .concept-section__title,
  .concept-section__subtitle,
  .concept-section__text,
  .concept-section__button {
    grid-column: 2;
  }
  .concept-section__image-wrapper {
    grid-column: 1;
    grid-row: 1 / span 4;  /* col 2 の 4 行を縦に span */
    min-height: 0;         /* 画像の自然高さで text 行を inflate させない */
  }
}

.concept-section__title {
  font-size: 1.875rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .concept-section__title { font-size: 2.5rem; }
}

.concept-section__subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 2rem;
  text-align: left;
}

@media (min-width: 768px) {
  .concept-section__subtitle { font-size: 1.5rem; }
}

.concept-section__text {
  line-height: 2;
  font-size: 0.875rem;
  text-align: left;
}

@media (min-width: 768px) {
  .concept-section__text { font-size: 1rem; }
}

.concept-section__button {
  margin-top: 2.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .concept-section__button { text-align: left; }
}

.concept-section__image-wrapper {
  margin-bottom: 2rem;  /* Mobile: subtitle と text の間に置かれる画像と text の間隔 */
}
@media (min-width: 768px) {
  .concept-section__image-wrapper { margin-bottom: 0; }
}

.concept-section__image-container {
  aspect-ratio: 1/1;
  overflow: hidden;
  background-color: var(--color--surface);
}

.concept-section__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 1.2s ease, opacity 0.6s ease;
}

@media (hover: hover) and (pointer: fine) {
  .concept-section__image-container:hover .concept-section__image {
    transform: scale(1.04);
    opacity: 1;
  }
}

/* ---------- Concerns Section（AI 感のあった青ラインを撤廃） ---------- */
.concerns-section {
  padding: 6rem 0;
  position: relative;
}

@media (min-width: 768px) {
  .concerns-section { padding: 10rem 0; }
}

.concerns-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .concerns-section__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.concerns-card {
  position: relative;
  background-color: #FAF9F6;
  padding: 3rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

@media (min-width: 768px) {
  .concerns-card {
    padding: 3rem 1.75rem 2.5rem;
  }
}

/* タイトル上のラベル枠（記号 + 英語ワード）。
   記号は動きの主役、テキストは意味の主役。
   SP では静止でも「タグ」と分かるよう通常フローで隣接配置。 */
.concerns-card__label {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.concerns-card__label-text {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--color--ink--light);
  text-transform: uppercase;
  line-height: 1;
  transition: color 0.35s ease;
}

/* 幾何学記号（カードごとに形を変える） */
.concerns-card__deco {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.concerns-card__deco--circle {
  border: 1.5px solid var(--color--accent);
  border-radius: 50%;
}

.concerns-card__deco--triangle {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><polygon points='10,2 1.5,17.5 18.5,17.5' fill='none' stroke='%231B6EBC' stroke-width='2' stroke-linejoin='miter'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.concerns-card__deco--diamond {
  border: 1.5px solid var(--color--accent);
  transform: rotate(45deg);
}

/* 旧 border 要素は非表示に */
.concerns-card__border {
  display: none !important;
}

.concerns-card__image-wrapper {
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}

.concerns-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease, filter 0.6s ease;
  filter: grayscale(35%);
}

.concerns-card__title {
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  word-break: auto;
  overflow-wrap: anywhere;
}

.concerns-card__title-line { display: block; }

.concerns-card__desc {
  font-size: 0.875rem;
  line-height: 2;
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .concerns-card:hover {
    background-color: var(--color--bg);
    border-color: rgba(27, 110, 188, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  }
  .concerns-card:hover .concerns-card__deco {
    transform: rotate(180deg);
  }
  .concerns-card:hover .concerns-card__deco--diamond {
    transform: rotate(225deg);
  }
  .concerns-card:hover .concerns-card__label-text {
    color: var(--color--accent);
  }
  .concerns-card:hover .concerns-card__image {
    transform: scale(1.04);
    filter: grayscale(0%);
  }
}

/* ---------- Marquee Band（遊び／技術感。2 group 複製で無限ループ） ---------- */
.marquee-band {
  overflow: hidden;
  background-color: var(--color--ink-dark);
  color: var(--color--bg);
  padding: 1rem 0;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.marquee-band__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: v2Marquee 28s linear infinite;
}

.marquee-band__group {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .marquee-band__group {
    gap: 3rem;
    padding-right: 3rem;
  }
}

.marquee-band__item {
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  font-style: italic;
  font-weight: 500;
}

@media (min-width: 768px) {
  .marquee-band__item { font-size: 2rem; }
}

.marquee-band__sep {
  opacity: 0.45;
  font-size: 1.125rem;
  letter-spacing: 0.2em;
}

@keyframes v2Marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.3333%); }
}

/* ---------- Bridge Section ---------- */
.bridge-section {
  position: relative;
  width: 100%;
  padding: 6rem 0;
  background-color: var(--color--surface);
  /* 縦方向の矢印はみ出しを許可、水平のラベル装飾だけ contain */
  overflow-x: clip;
}

/* 上から下に差し込む三角矢印（Concerns→Bridge の導線） */
.bridge-section__arrow-wrapper {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translate(-50%, -100%);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 768px) {
  .bridge-section__arrow-wrapper {
    top: -36px;
  }
}

.bridge-section__arrow {
  width: 150px;
  height: 40px;
  background: var(--gradient--accent);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  opacity: 0.8;
}

@media (min-width: 768px) {
  .bridge-section__arrow {
    width: 300px;
    height: 80px;
  }
}

.bridge-section__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background-image: url('https://var-lit.com/wp-content/uploads/2026/04/ourapproach.jpg');
  background-size: cover;
  background-position: center;
}

.bridge-section__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), var(--color--surface));
}

.bridge-section__card {
  position: relative;
  z-index: 2;
  background-color: var(--color--bg);
  padding: 4rem 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 3rem;
  text-align: center;
  align-items: center;
}

@media (min-width: 1024px) {
  .bridge-section__card {
    padding: 5rem 6rem;
    gap: 4rem;
  }
}

.bridge-section__header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 両端に青グラデーションの短線 */
.bridge-section__label {
  display: inline-block;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color--ink);
  opacity: 0.5;
  margin-bottom: 2rem;
  position: relative;
}

.bridge-section__label::before,
.bridge-section__label::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2px;
  background: var(--gradient--accent);
  opacity: 0.8;
}

.bridge-section__label::before { left: -3rem; }
.bridge-section__label::after  { right: -3rem; }

.bridge-section__title {
  font-size: 1.25rem;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: var(--color--ink);
}

@media (min-width: 768px) {
  .bridge-section__title { font-size: 2.25rem; }
}

.bridge-section__title-line { display: block; }

.bridge-section__content {
  width: 100%;
  max-width: 800px;
}

/* 行ごとの折り返しは左揃え、ブロックとしては中央寄せ */
.bridge-section__text {
  font-size: 0.9375rem;
  line-height: 2;
  color: var(--color--ink);
  opacity: 0.8;
  margin-bottom: 2rem;
  text-align: left;
  width: fit-content;
  margin-inline: auto;
  max-width: 100%;
}

@media (min-width: 768px) {
  .bridge-section__text { font-size: 1rem; }
}

.bridge-section__text:last-child { margin-bottom: 0; }

/* ---------- Solutions Section ---------- */
.solutions-section {
  padding: 6rem 0;
  background-color: var(--color--surface);
  position: relative;
}

@media (min-width: 768px) {
  .solutions-section { padding: 10rem 0; }
}

.solutions-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .solutions-section__grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 3rem;
    row-gap: 4rem;
  }
}

.solutions-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--color--bg);
  padding: 2rem 1.25rem 2.5rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

@media (min-width: 768px) {
  .solutions-card {
    padding: 2.5rem;
  }
}

.solutions-card__image-link {
  display: block;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background-color: var(--color--surface);
  aspect-ratio: 16/9;
  border-radius: 8px;
}

.solutions-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  filter: grayscale(30%);
  transition: transform 0.9s ease, opacity 0.5s ease, filter 0.5s ease;
}

.solutions-card__header {
  position: relative;
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
}

/* 英字の透かしアクセントはより控えめに（単調防止として残すが、ホバー動作を変化） */
.solutions-card__accent {
  position: absolute;
  top: -0.5rem;
  left: -0.25rem;
  font-size: 4.5rem;
  font-weight: 600;
  font-style: italic;
  background: none;
  -webkit-text-fill-color: initial;
  color: var(--color--ink);
  opacity: 0.08;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  letter-spacing: 0.02em;
  line-height: 0.85;
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.4s ease;
}

@media (min-width: 768px) {
  .solutions-card__accent { left: -1.5rem; }
}

.solutions-card__accent--long {
  font-size: clamp(3.5rem, 14vw, 4.5rem);
  letter-spacing: 0.04em;
}

.solutions-card__title {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  margin: 0;
  letter-spacing: 0.1em;
}

.solutions-card__desc {
  font-size: 0.9375rem;
  line-height: 2;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.solutions-card__footer {
  margin-top: auto;
  text-align: center;
}

/* 下層リンクもグラデで統一 */
.solutions-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  padding: 1rem 2rem;
  border: none;
  border-radius: 4px;
  background: var(--gradient--accent);
  color: #ffffff;
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
}

.solutions-card__link-icon {
  transition: transform 0.35s ease;
  display: inline-block;
}

@media (hover: hover) and (pointer: fine) {
  .solutions-card:hover {
    transform: translateY(-4px);
    border-color: rgba(27, 110, 188, 0.35);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  }
  .solutions-card:hover .solutions-card__image {
    transform: scale(1.05);
    opacity: 1;
    filter: grayscale(0%);
  }
  .solutions-card:hover .solutions-card__accent {
    color: var(--color--accent);
    opacity: 0.18;
    transform: translateX(10px);
  }
  .solutions-card__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(27, 110, 188, 0.28);
  }
  .solutions-card__link:hover .solutions-card__link-icon {
    transform: translateX(4px);
  }
}

/* Food special（Special / Genka+） */
.solutions-food-special {
  position: relative;
  margin-top: 4rem;
  background-color: var(--color--bg);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

@media (min-width: 1024px) {
  .solutions-food-special {
    flex-direction: row;
    align-items: stretch;
  }
}

.solutions-food-special__content {
  padding: 2rem 1.25rem 2.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .solutions-food-special__content { padding: 3rem 4rem; }
}

.solutions-food-special__header {
  position: relative;
  margin-bottom: 2rem;
  padding-top: 1.5rem;
}

.solutions-food-special__accent {
  position: absolute;
  top: -0.5rem;
  left: -0.25rem;
  font-size: clamp(3rem, 12vw, 4.5rem);
  font-weight: 600;
  font-style: italic;
  background: none;
  -webkit-text-fill-color: initial;
  color: var(--color--ink);
  opacity: 0.08;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.04em;
  line-height: 0.85;
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.4s ease;
}

@media (min-width: 768px) {
  .solutions-food-special__accent { left: -1.5rem; }
}

.solutions-food-special__title {
  font-size: 1.5rem;
  color: var(--color--ink);
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .solutions-food-special__title { font-size: 2rem; }
}

.solutions-food-special__desc {
  font-size: 0.9375rem;
  line-height: 2;
  color: var(--color--ink);
  opacity: 0.8;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .solutions-food-special__desc { font-size: 1rem; }
}

.solutions-food-special__image-wrapper {
  flex: 1;
  height: 300px;
  overflow: hidden;
  position: relative;
}

.solutions-food-special__image-wrapper--mobile {
  display: block;
  margin-bottom: 2rem;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 0;
}

.solutions-food-special__image-wrapper--desktop {
  display: none;
}

@media (min-width: 1024px) {
  .solutions-food-special__image-wrapper {
    height: auto;
    min-height: 700px;
  }
  .solutions-food-special__image-wrapper--mobile { display: none; }
  .solutions-food-special__image-wrapper--desktop { display: block; }
}

.solutions-food-special__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  filter: grayscale(30%);
  transition: transform 0.9s ease, opacity 0.5s ease, filter 0.5s ease;
}

.solutions-food-special .button-primary {
  display: inline-flex;
  width: fit-content;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .solutions-food-special .button-primary { margin: 0; }
}

@media (hover: hover) and (pointer: fine) {
  .solutions-food-special:hover {
    transform: translateY(-4px);
    border-color: rgba(27, 110, 188, 0.35);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  }
  .solutions-food-special:hover .solutions-food-special__image {
    transform: scale(1.04);
    opacity: 1;
    filter: grayscale(0%);
  }
  .solutions-food-special:hover .solutions-food-special__accent {
    color: var(--color--accent);
    opacity: 0.18;
    transform: translateX(10px);
  }
}

/* ---------- Topics Section ---------- */
.topics-section {
  padding: 6rem 0;
  position: relative;
}

@media (min-width: 768px) {
  .topics-section { padding: 10rem 0; }
}

.topics-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .topics-section__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* WP Query Loop 版：<div.wp-block-query.topics-section__grid> > <ul.wp-block-post-template> > <li.wp-block-post>。
   wp-block-query 側の grid を解除し、実グリッドを ul に移す。
   静的 mockup（.topics-section__grid 直下に .topics-card）は上の従来 grid のまま。 */
.wp-block-query.topics-section__grid {
  display: block;
}
.topics-section__grid .wp-block-post-template {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  .topics-section__grid .wp-block-post-template {
    grid-template-columns: repeat(3, 1fr);
  }
}
.topics-section__grid .wp-block-post {
  list-style: none;
  margin: 0;
  padding: 0;
}

.topics-card {
  cursor: pointer;
  display: block;
}

.topics-card__image-wrapper {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background-color: var(--color--surface);
  border-radius: 8px;
}

/* WP の wp:post-featured-image は figure > a > img を出力するので img へ直接 fill 指定。
   BEM の .topics-card__image は静的 mockup 用。 */
.topics-card__image,
.topics-card__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  filter: grayscale(20%);
  transition: transform 0.7s ease, filter 0.5s ease, opacity 0.5s ease;
  display: block;
}

.topics-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.topics-card__date {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-family: var(--font--mono);
}

.topics-card__category {
  font-size: 0.75rem;
  background: var(--gradient--accent);
  color: #ffffff;
  padding: 0.3rem 0.75rem;
  letter-spacing: 0.1em;
  border-radius: 100px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
  line-height: 1.2;
}

.topics-card__category a {
  color: inherit;
  text-decoration: none;
}

.topics-card__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  transition: color 0.3s ease;
}

/* WP の wp:post-title は <h3 class="topics-card__title"><a>…</a></h3> を出力 */
.topics-card__title a {
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .topics-card:hover .topics-card__image,
  .topics-card:hover .topics-card__image-wrapper img:not(.topics-image-placeholder__logo) {
    transform: scale(1.05);
    filter: grayscale(0%);
    opacity: 1;
  }
  .topics-card:hover .topics-card__title {
    color: var(--color--accent);
  }
  .topics-card__category:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(27, 110, 188, 0.3);
  }
}

/* SP: TOP の Topics セクションをトピックス一覧と同じコンパクト横並びに統一。
   .topics-card は 3 直下子（image-wrapper / meta / title）を持つ。
   Grid で「画像（2行ぶち抜き） / 右に meta → title」を組み、
   下に区切り線を引いて margin-bottom 1.7rem で間隔。PC は据え置き。 */
@media (max-width: 767px) {
  .topics-section__grid {
    gap: 0;
  }
  .topics-section__grid .wp-block-post-template {
    gap: 0;
  }
  .topics-section__grid .topics-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    column-gap: 0.875rem;
    row-gap: 0.375rem;
    align-items: start;
    margin-bottom: 1.7rem;
    border-bottom: 1px solid rgba(42, 42, 42, 0.1);
  }
  /* 下線は全カードに引く。最後だけ下の余白を消す（静的 mockup / WP の wp-block-post 両対応） */
  .topics-section__grid > .topics-card:last-child,
  .topics-section__grid .wp-block-post:last-child .topics-card {
    margin-bottom: 0;
  }
  .topics-section__grid .topics-card__image-wrapper {
    grid-column: 1;
    grid-row: span 2;
    width: 120px;
    aspect-ratio: 4/3;
    margin-bottom: 0;
    border-radius: 0;
  }
  .topics-section__grid .topics-card__meta {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
    gap: 0.5rem;
  }
  .topics-section__grid .topics-card__title {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.8125rem;
    line-height: 1.5;
    letter-spacing: 0.05em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .topics-section__grid .topics-card__date {
    font-size: 0.6875rem;
  }
  .topics-section__grid .topics-card__category {
    font-size: 0.625rem;
    letter-spacing: 0.08em;
    padding: 0.15rem 0.5rem;
  }
}

.topics-section__footer {
  text-align: center;
  margin-top: 4rem;
}

/* Hero catchphrase scramble: filled shape (青グラデ) → 元文字 */
.morph-a {
  display: inline-block;
}

/* スクランブル中の幾何学記号は全 span に青グラデ。
   加えて「最適解」部分（.hero-section__title-accent 配下）の span は
   最終状態でも青グラデを保持する（実機 iOS Safari で親の
   background-clip:text が inline-block 子要素に伝搬せず、
   文字が透明になる現象を防ぐため）。 */
.morph-a.is-shape,
.hero-section__title-accent .morph-a {
  background: linear-gradient(135deg, #1B6EBC 0%, #44B6D7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Profile Section ---------- */
