/* テーマ (oltana-002) への上書き */

/* ヘッダーのロゴ (assets/logo-v2.svg: 添え書き「in JAPAN」あり)。添え書きが読めるよう、テーマの既定より大きくする */
.ol-header__title-anchor.ol-logo-large .ol-header__title-logo {
  width: clamp(230px, 24vw, 340px);
}

@media (min-width: 1728px) {
  .ol-header__title-anchor.ol-logo-large .ol-header__title-logo {
    width: clamp(340px, 20vw, 480px);
  }
}

/* トップページはさらに約20%大きく */
.home .ol-header__title-anchor.ol-logo-large .ol-header__title-logo {
  width: clamp(276px, 28.8vw, 408px);
}

@media (min-width: 1728px) {
  .home .ol-header__title-anchor.ol-logo-large .ol-header__title-logo {
    width: clamp(408px, 24vw, 576px);
  }
}

.ol-header__title-logo img.wl-logo {
  display: block;
  width: 100%;
  height: auto;
}

/* NEWS: 見出しは置かず、お知らせ本文を全幅にして、左端に見出しと同じ黄色のバーを付ける */
.ol-news__inner > .ol-news__body {
  position: relative;
  width: 100%;
  margin-left: 0;
  padding-left: 20px;
}

.ol-news__inner > .ol-news__body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 100%;
  background-color: #f9bc60;
}

/* テーマの見出しバーと同じく、スマホ (540px 以下) では細くする */
@media (max-width: 540px) {
  .ol-news__inner > .ol-news__body {
    padding-left: 7px;
  }

  .ol-news__inner > .ol-news__body::before {
    width: 7px;
  }
}

/* トップ: メイン画像上の文字とボタン (ビジネスの最適化〜お問い合わせ) を少し右へ */
.ol-firstview__inner {
  padding-left: clamp(64px, 1.5rem + 5vw, 120px);
}

@media (max-width: 540px) {
  .ol-firstview__inner {
    padding-left: clamp(36px, 1rem + 5vw, 48px);
  }
}

/* トップ: メイン画像の上に重ねる動く波 (assets/hero.js)。描画が始まるまでは静止画が見える */
.ol-firstview__image-inner {
  position: relative;
}

.wl-hero-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

.wl-hero-canvas.is-ready {
  opacity: 1;
}

/* トップ: サービス説明の下の「詳しく見る」リンク */
.wl-service-more {
  margin-top: 20px;
}

/* デザイン思考ページ: 5つのステップ */
.wl-dt-steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin: 32px 0 16px;
  padding: 0;
}

/* 1ステップ = 横長の1行 (左: 番号と名前 / 中央: 問いと内容 / 右: AI・DXの使いどころ) */
.wl-dt-step {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 210px;
  grid-template-areas:
    "head q    ai"
    "head body ai";
  grid-template-rows: auto 1fr;
  column-gap: 24px;
  margin: 0;
  padding: 20px 24px;
  border: 1px solid rgba(239, 243, 244, 0.15);
  border-left: 4px solid #f9bc60;
  border-radius: 6px;
  background-color: rgba(239, 243, 244, 0.03);
}

.wl-dt-step::before {
  content: none !important;  /* テーマのリスト装飾を打ち消す */
}

/* ステップ間の下向き矢印 */
.wl-dt-step:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: -17px;
  left: 64px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #f9bc60;
  border-bottom: 2px solid #f9bc60;
  transform: rotate(45deg);
}

.wl-dt-step__head {
  grid-area: head;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.ol-article__content .wl-dt-step .wl-dt-step__q { grid-area: q; }
.ol-article__content .wl-dt-step .wl-dt-step__body { grid-area: body; }
.ol-article__content .wl-dt-step .wl-dt-step__ai { grid-area: ai; }

.wl-dt-step__num {
  color: #f9bc60;
  font-size: 28px;
  line-height: 1;
}

.wl-dt-step__name {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.wl-dt-step__ja {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.wl-dt-step__en {
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.ol-article__content .wl-dt-step p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.05em;
}

.ol-article__content .wl-dt-step .wl-dt-step__q {
  color: #f9bc60;
  font-weight: 700;
}

.ol-article__content .wl-dt-step .wl-dt-step__ai {
  margin: 0;
  padding-left: 20px;
  border-left: 1px dashed rgba(239, 243, 244, 0.25);
  font-size: 13px;
}

.wl-dt-step__ai-label {
  display: block;
  margin-bottom: 2px;
  color: #f9bc60;
  font-size: 12px;
  font-weight: 700;
}

.ol-article__content .wl-dt-loop {
  font-size: 14px;
  opacity: 0.85;
}

.wl-dt-cta {
  margin-top: 32px;
  text-align: center;
}

/* 狭い画面: 上から順に「番号と名前 → 問い → 内容 → AI・DXの使いどころ」 */
@media (max-width: 820px) {
  .wl-dt-step {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "q"
      "body"
      "ai";
    grid-template-rows: none;
    padding: 18px 18px;
  }

  .wl-dt-step__head {
    margin-bottom: 10px;
  }

  .ol-article__content .wl-dt-step .wl-dt-step__ai {
    padding: 10px 0 0;
    border-left: none;
    border-top: 1px dashed rgba(239, 243, 244, 0.25);
  }
}

/* 理念ページ (隠しページ): 風神雷神図屏風をページ全体の背景に固定し、紺で透かす。
   横長の画面は 左半分=雷神 / 右半分=風神、縦長の画面は 上半分=雷神 / 下半分=風神 */
.wl-philo-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: flex;
  pointer-events: none;
  background-color: rgb(20, 30, 42);
}

.wl-philo-bg__raijin,
.wl-philo-bg__fujin {
  flex: 1 1 50%;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.34;
}

.wl-philo-bg__raijin {
  background-image: url("https://windlights.jp/wp-content/uploads/2026/10/raijin.webp");
  background-position: left top;
}

.wl-philo-bg__fujin {
  background-image: url("https://windlights.jp/wp-content/uploads/2026/10/fujin.webp");
  background-position: right top;
}

@media (orientation: portrait) {
  .wl-philo-bg {
    flex-direction: column;
  }
}

/* 背景の層より手前に、ページの中身を出す */
.wl-philo-page .ol-wrapper {
  z-index: 1;
}

.wl-philo {
  margin: 0 calc(-1 * clamp(16px, 4vw, 64px));
  padding: clamp(40px, 6vw, 96px) clamp(24px, 6vw, 96px);
  border-radius: 8px;
  background-color: rgba(20, 30, 42, 0.55);
  text-align: center;
}

.ol-article__content .wl-philo p {
  margin: 0 0 1.6em !important;
  font-size: clamp(15px, 0.9rem + 0.25vw, 17px);
  line-height: 2.3;
  letter-spacing: 0.12em;
}

.ol-article__content .wl-philo .wl-philo__lead {
  margin-bottom: clamp(48px, 6vw, 80px) !important;
  color: #f9bc60;
  font-size: clamp(14px, 0.85rem + 0.2vw, 16px);
  letter-spacing: 0.3em;
}

.wl-philo__section + .wl-philo__section {
  margin-top: clamp(56px, 7vw, 104px);
}

.wl-philo__heading {
  margin: 0 0 clamp(24px, 3vw, 40px);
  font-size: clamp(20px, 1rem + 1vw, 28px);
  font-weight: 500;
  letter-spacing: 0.2em;
}

.wl-philo__heading::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin: 18px auto 0;
  background-color: #f9bc60;
}

.ol-article__content .wl-philo-credit {
  margin: 20px 0 0 !important;
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  text-align: right;
  opacity: 0.7;
}

/* 方針ページの保存版 (<slug>/<日付>/) の案内 */
.ol-article__content .wl-version-note {
  margin: 0 0 32px !important;
  padding: 14px 20px;
  border-left: 4px solid #f9bc60;
  border-radius: 4px;
  background-color: rgba(249, 188, 96, 0.08);
  font-size: 14px;
  line-height: 1.9;
}

/* 記事ページ共通の部品 */
.ol-article__content .wl-article-dates {
  font-size: 13px;
  opacity: 0.8;
}

.wl-summary {
  margin: 24px 0 32px;
  padding: 20px 24px;
  border: 1px solid rgba(249, 188, 96, 0.5);
  border-left: 4px solid #f9bc60;
  border-radius: 6px;
  background-color: rgba(249, 188, 96, 0.06);
}

.ol-article__content .wl-summary .wl-summary__title {
  margin: 0 0 8px !important;  /* テーマの段落余白を打ち消す */
  color: #f9bc60;
  font-weight: 700;
}

.wl-summary ul {
  margin: 0;
  padding-left: 1.2em;
}

.wl-summary li {
  margin: 4px 0;
  line-height: 1.8;
  list-style: disc;
}

.wl-h4 {
  margin: 28px 0 8px;
  padding-left: 12px;
  border-left: 3px solid #f9bc60;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.wl-ol {
  margin: 8px 0 16px;
  padding-left: 1.6em;
}

.wl-ol li {
  margin: 6px 0;
  line-height: 1.9;
  list-style: decimal;  /* テーマのリセットで消える番号を戻す */
}

.wl-ol li::marker {
  color: #f9bc60;
  font-weight: 700;
}

.wl-table {
  width: 100%;
  margin: 8px 0 16px;
  border-collapse: collapse;
  font-size: 14px;
}

.wl-table th,
.wl-table td {
  padding: 10px 12px;
  border: 1px solid rgba(239, 243, 244, 0.2);
  text-align: left;
}

.wl-table th {
  background-color: rgba(249, 188, 96, 0.12);
  font-weight: 700;
}

.ol-article__content code {
  padding: 1px 6px;
  border-radius: 3px;
  background-color: rgba(239, 243, 244, 0.1);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
}

.wl-faq {
  margin: 16px 0;
}

.wl-faq dt {
  margin-top: 20px;
  color: #f9bc60;
  font-weight: 700;
  line-height: 1.8;
}

.wl-faq dd {
  margin: 6px 0 0;
  padding-left: 1.4em;
  line-height: 1.9;
}

/* 脆弱性対応サービスページ */
.ol-article__content .wl-sec-note {
  font-size: 12px;
  line-height: 1.8;
  opacity: 0.75;
}

.wl-sec-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
}

.wl-sec-step {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 20px 18px;
  border: 1px solid rgba(239, 243, 244, 0.15);
  border-radius: 6px;
  background-color: rgba(239, 243, 244, 0.03);
  list-style: none;
}

.wl-sec-step::before {
  content: none !important;
}

.wl-sec-step__icon svg {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  fill: none;
  stroke: #f9bc60;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wl-sec-step__icon svg .wl-fill {
  fill: #f9bc60;
}

.wl-sec-step__num {
  color: #f9bc60;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.wl-sec-step__title {
  margin: 2px 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.wl-sec-step__body {
  font-size: 13px;
  line-height: 1.8;
  opacity: 0.85;
}

@media (max-width: 820px) {
  .wl-sec-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .wl-sec-steps {
    grid-template-columns: 1fr;
  }
}

/* NEWS: 「発生から○日　緊急対応○社」 */
.wl-news-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 1.2em;
  margin: 8px 0 4px;
  color: #f9bc60;
  font-size: clamp(18px, 1rem + 1vw, 34px);
  line-height: 1.3;
  letter-spacing: 0.05em;
}

.wl-news-stats__num {
  margin: 0 0.08em;
  font-family: "Oswald", sans-serif;
  font-size: 1.6em;
  font-weight: 400;
  line-height: 1;
}

/* 広い画面では右上に配置 (日付の行と並べる) */
@media (min-width: 1024px) {
  .ol-news__item-item {
    position: relative;
  }

  .wl-news-stats {
    position: absolute;
    top: clamp(16px, 1.5vw, 28px);
    right: clamp(24px, 3vw, 48px);
    margin: 0;
  }
}
