/*
Theme Name: CLIP Inc. Corporate
Theme URI: https://example.com/
Author: CLIP Inc.
Author URI: https://example.com/
Description: 制作実績を主役にした、ミニマルで洗練されたクリエイティブエージェンシー向けコーポレートサイトテーマ。白・黒・写真を中心としたデザインで、フルスクリーンのFeatured Projectsセクションと実績グリッドを備える。
Version: 1.11.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clip-inc
*/

/* =========================================================
   0. Reset / Base
========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #111111;
  background: #ffffff;
  /*
   * 英語: Montserrat（シンプルで癖の少ないジオメトリックサンセリフ）。
   * 漢字・かなはNoto Sans JP / Hiragino等にフォールバックする。
   * ※以前指定していたMontserrat Alternatesは字形の癖が強く出すぎたため、
   *   通常のMontserratに変更（"特徴的すぎる"というフィードバックを反映）。
   */
  font-family: 'Montserrat', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans',
    sans-serif;
  font-weight: 600;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* 写真の上でも文字を読みやすくするための薄いテキストシャドウ（画像全体を暗くしない） */
.text-legible {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35), 0 1px 14px rgba(0, 0, 0, 0.22);
}

/* =========================================================
   1. Header
========================================================= */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  width: 100%;
  color: #ffffff;
  transition: color 0.3s ease;
}

.site-header.is-on-light {
  color: #111111;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.site-header__logo {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-header__nav {
  display: none;
}

.site-header__nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-header__nav a {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: opacity 0.2s ease;
}

.site-header__nav a:hover {
  opacity: 0.6;
}

.site-header__toggle {
  position: relative;
  z-index: 60;
  display: flex;
  height: 32px;
  width: 32px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.site-header__toggle span {
  display: block;
  height: 1.5px;
  width: 24px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header__toggle[aria-expanded='true'] .site-header__bar--top {
  transform: translateY(6.5px) rotate(45deg);
}

.site-header__toggle[aria-expanded='true'] .site-header__bar--mid {
  opacity: 0;
}

.site-header__toggle[aria-expanded='true'] .site-header__bar--bottom {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  padding: 0 32px;
  background: #ffffff;
  color: #111111;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (min-width: 768px) {
  .site-header__inner {
    padding: 24px 6vw;
  }

  .site-header__logo {
    font-size: 13px;
  }

  .site-header__nav {
    display: block;
  }

  .site-header__toggle,
  .mobile-nav {
    display: none;
  }
}

/* =========================================================
   2. Featured Projects
========================================================= */
.featured-projects {
  position: relative;
  width: 100%;
}

.featured-projects__sticky {
  position: relative;
  width: 100%;
}

/*
 * 判定用マーカー（非表示）。
 * .featured-projects（300vh等の外枠）に対してabsolute配置し、
 * 各プロジェクトが占めるスクロール範囲（100vhずつ）を表す。
 * IntersectionObserverでこのマーカーが画面中央付近に入ったことを検知し、
 * 対応する画像へ切り替える（スクロールイベントは使用しない）。
 */
.featured-marker {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
}

.featured-slide {
  position: relative;
  height: var(--slide-vh, 100vh);
  width: 100%;
  scroll-snap-align: start;
}

.featured-slide__media {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.featured-slide__media img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: var(--pos-mobile, center center);
}

/* SP用画像を <picture><source> で出し分ける場合の picture 要素自体はレイアウトに影響させない */
.featured-slide__picture {
  display: contents;
}

.featured-slide__placeholder {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  background: #cccccc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-slide__placeholder span {
  font-size: 13px;
  font-weight: 700;
  color: #777777;
  letter-spacing: 0.05em;
}

.featured-slide__text {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 96px;
  max-width: calc(100% - 48px);
  color: #ffffff;
}

.featured-slide__label {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.featured-slide__title {
  font-weight: 700;
}

.featured-slide__title span {
  display: block;
}

.featured-slide__desc {
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

.featured-slide__desc span {
  display: block;
}

.featured-slide__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  padding-bottom: 4px;
  font-size: 14px;
  font-weight: 700;
}

.featured-slide__link-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.featured-slide__link:hover .featured-slide__link-arrow {
  transform: translateX(4px);
}

.featured-progress {
  position: absolute;
  right: 20px;
  bottom: 24px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.featured-progress__number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.featured-progress__dots {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.featured-progress__dot {
  display: block;
  height: 3px;
  width: 12px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.5s ease;
}

.featured-progress__dot.is-active {
  width: 24px;
  background: #ffffff;
}

@media (max-width: 767px) {
  html {
    /*
     * mandatory だと、最後のスライド（3件目）で慣性スクロールが止め切れず、
     * ALL WORKS側へスクロールを継続できなくなる端末があったため proximity に変更。
     * proximity はスクロールが自然に停止した位置が近ければスナップし、
     * スナップ地点を越える通常のスクロールは妨げない。
     */
    scroll-snap-type: y proximity;
  }

  .featured-slide__title {
    font-size: 20px;
  }
}

@media (min-width: 768px) {
  .featured-projects__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
  }

  .featured-slide {
    position: absolute;
    inset: 0;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    will-change: opacity;
    transition: opacity 0.5s ease;
  }

  .featured-slide.is-active {
    opacity: 1;
    pointer-events: auto;
  }

  .featured-slide__media img,
  .featured-slide__placeholder {
    object-position: var(--pos-desktop, center center);
  }

  .featured-slide__media {
    transform: scale(1.02);
    will-change: transform;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .featured-slide.is-active .featured-slide__media {
    transform: scale(1);
  }

  .featured-slide__text {
    left: 5vw;
    right: auto;
    bottom: 12vh;
    max-width: 480px;
    transform: translateY(10px);
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .featured-slide.is-active .featured-slide__text {
    transform: translateY(0);
    opacity: 1;
    /* 画像より少し遅れて表示する */
    transition-delay: 0.12s;
  }

  .featured-slide__desc {
    font-size: 15px;
  }

  .featured-progress {
    right: 32px;
    bottom: 40px;
  }
}

/* 初回描画時（JS未実行/最初のスライド）にレイアウトが崩れないよう既定で表示するフォールバック */
.featured-slide.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .featured-slide,
  .featured-slide__media,
  .featured-slide__text,
  .featured-progress__dot,
  .work-card__media img,
  .work-card__project,
  .featured-slide__link-arrow,
  .contact-link__arrow {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* =========================================================
   3. All Works
========================================================= */
.works-section {
  padding: 96px 24px;
  background: #ffffff;
}

.works-section__head {
  max-width: 560px;
  margin-bottom: 56px;
}

.works-section__heading {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.works-section__lead {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
  color: #595959;
}

.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 32px;
  row-gap: 56px;
}

.work-card {
  display: block;
}

.work-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eeeeee;
}

.work-card__media img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d9d9d9;
}

.work-card__placeholder span {
  font-size: 12px;
  font-weight: 700;
  color: #888888;
}

.work-card:hover .work-card__media img {
  transform: scale(1.02);
}

.work-card__arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  font-size: 18px;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.work-card:hover .work-card__arrow {
  opacity: 1;
}

.work-card__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.work-card__client {
  font-size: 13px;
  font-weight: 700;
  color: #767676;
}

.work-card__project {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  transition: opacity 0.3s ease;
}

.work-card:hover .work-card__project {
  opacity: 0.6;
}

.work-card__meta {
  flex-shrink: 0;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: #767676;
}

.work-card__meta p + p {
  margin-top: 4px;
}

@media (min-width: 640px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .works-section {
    padding: 128px 6vw;
  }

  .works-section__heading {
    font-size: 34px;
  }

  .works-section__lead {
    font-size: 15px;
  }
}

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

/* =========================================================
   4. Service / About / Journal / Contact（簡潔なセクション群）
========================================================= */
.simple-section {
  padding: 80px 24px;
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
}

.simple-section__heading {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.simple-section__text {
  margin-top: 24px;
  max-width: 640px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
  color: #595959;
}

/*
 * 実績詳細ページ（single-work.php）の本文コンテンツ（the_content）用スタイル。
 * グローバルリセットで見出し・pのmarginを0にしているため、
 * ブロックエディタで追加した文章・画像・見出し・埋め込み動画等の余白をここで補う。
 */
.simple-section__text p + p,
.simple-section__text ul,
.simple-section__text ol,
.simple-section__text blockquote,
.simple-section__text figure,
.simple-section__text .wp-block-image,
.simple-section__text .wp-block-gallery,
.simple-section__text .wp-block-embed,
.simple-section__text .wp-block-video {
  margin-top: 24px;
}

.simple-section__text h2,
.simple-section__text h3,
.simple-section__text h4 {
  margin-top: 40px;
  margin-bottom: 16px;
  font-weight: 700;
  color: #111111;
  line-height: 1.5;
}

.simple-section__text img {
  height: auto;
}

.simple-section__text figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: #a3a3a3;
}

.simple-section__text ul,
.simple-section__text ol {
  padding-left: 20px;
  list-style: revert;
}

.simple-section__text li + li {
  margin-top: 8px;
}

.simple-section__text a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.simple-section__text iframe {
  max-width: 100%;
}

/*
 * 固定ページ汎用テンプレート（page.php）の本文。
 * Booking Packageの予約カレンダーなど、幅が必要なショートコードを埋め込むことがあるため、
 * 他のシンプルセクションと共有の .simple-section__text の max-width（640px）を解除する。
 */
.page-content {
  max-width: none;
}

/*
 * 実績詳細ページ（single-work.php）: 本文を左、実績情報を右サイドバーに配置。
 */
.work-detail__hero {
  margin-bottom: 24px;
}

.work-detail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.work-detail__main {
  min-width: 0;
}

/* 実績詳細ページの本文は、他のシンプルセクションと違い画像・SNS埋め込みを含むため、
   .simple-section__text の max-width（640px）を解除してカラム幅いっぱいに使う。 */
.work-detail__main .simple-section__text {
  max-width: none;
}

.work-detail__sidebar {
  min-width: 0;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
}

.work-detail__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.work-detail__title span {
  display: block;
}

.work-detail__subtitle {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #595959;
}

.work-detail__meta {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.work-detail__meta dt {
  font-size: 12px;
  font-weight: 700;
  color: #a3a3a3;
  letter-spacing: 0.04em;
}

.work-detail__meta dd {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
}

.work-detail__meta a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.work-detail__sns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (min-width: 768px) {
  .work-detail__grid {
    grid-template-columns: 1fr 300px;
    gap: 32px;
  }

  .work-detail__sidebar {
    padding-top: 0;
    padding-left: 24px;
    border-top: none;
    border-left: 1px solid #e5e5e5;
    /* 固定ヘッダー分の余白を確保しつつ、スクロール中も追従させる */
    position: sticky;
    top: 120px;
    align-self: start;
  }
}

@media (min-width: 1024px) {
  .work-detail__grid {
    grid-template-columns: 1fr 340px;
  }
}

/* =========================================================
   SERVICE（左：見出し+メッセージ / 右：対応領域3項目の目次のような2カラム）
   .simple-section は他セクション（ABOUT / CONTACT / 実績詳細）と共有のため、
   SERVICEだけ独立した専用クラスにしている（他セクションへの影響を避けるため）。
========================================================= */
.service-section {
  padding: 90px 20px;
  background: #ffffff;
}

.service-section__left {
  margin-bottom: 40px;
}

.service-title {
  font-size: clamp(26px, 7vw, 34px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.service-message {
  margin-top: 16px;
  max-width: 280px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.9;
  color: #595959;
}

.service-items {
  display: flex;
  flex-direction: column;
}

.service-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid #e5e5e5;
}

.service-number {
  flex: 0 0 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #a3a3a3;
}

.service-content {
  min-width: 0;
}

.service-name {
  font-size: clamp(16px, 3.6vw, 18px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.service-description {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.8;
  color: #595959;
}

@media (max-width: 380px) {
  .service-item {
    flex-direction: column;
    gap: 8px;
  }
}

@media (min-width: 768px) {
  .service-section {
    padding: 128px 6vw;
  }

  .service-message {
    max-width: 320px;
  }

  .service-item {
    gap: 24px;
    padding: 28px 0;
  }
}

@media (min-width: 1024px) {
  .service-section__inner {
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) minmax(400px, 1.4fr);
    column-gap: clamp(48px, 6vw, 120px);
  }

  .service-section__left {
    margin-bottom: 0;
  }

  .service-title {
    font-size: clamp(30px, 2.6vw, 40px);
  }

  .service-number {
    flex-basis: 36px;
    font-size: 13px;
  }

  .service-name {
    font-size: clamp(17px, 1.3vw, 20px);
  }
}

/* =========================================================
   ABOUT（左：小さな見出し / 右：メッセージ + 説明文 + 会社情報への導線）
   .simple-section は他セクション（CONTACT / 実績詳細）と共有のため、
   ABOUTだけ独立した専用クラスにしている（他セクションへの影響を避けるため）。
========================================================= */
.about-section {
  padding: 80px 24px;
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
}

.about-section__left {
  margin-bottom: 24px;
}

.about-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #a3a3a3;
}

.about-headline {
  max-width: 480px;
  font-size: clamp(20px, 6vw, 26px);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.about-text {
  margin-top: 24px;
  max-width: 560px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.9;
  color: #595959;
}

.about-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  border-top: 1px solid #e5e5e5;
  padding-top: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #a3a3a3;
}

a.about-profile {
  transition: color 0.2s ease;
}

a.about-profile:hover {
  color: #111111;
}

a.about-profile:hover .about-profile__arrow {
  transform: translateX(4px);
}

.about-profile__arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .about-section {
    padding: 112px 6vw;
  }

  .about-headline {
    font-size: clamp(24px, 3vw, 30px);
  }

  .about-text {
    font-size: 15px;
  }
}

@media (min-width: 1024px) {
  .about-section__inner {
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) minmax(400px, 1.4fr);
    column-gap: clamp(48px, 6vw, 120px);
  }

  .about-section__left {
    margin-bottom: 0;
  }
}

/* =========================================================
   JOURNAL（左：小さな見出し / 右：記事一覧）
   ABOUT/SERVICEと同じ、左ラベル + 右コンテンツの静かな2カラム構成。
   .simple-section は他セクション（実績詳細 / 投稿一覧）と共有のため、
   JOURNALだけ独立した専用クラスにしている（他セクションへの影響を避けるため）。
========================================================= */
.journal-section {
  padding: 80px 24px;
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
}

.journal-section__left {
  margin-bottom: 24px;
}

.journal-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #a3a3a3;
}

@media (min-width: 768px) {
  .journal-section {
    padding: 112px 6vw;
  }
}

@media (min-width: 1024px) {
  .journal-section__inner {
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) minmax(400px, 1.4fr);
    column-gap: clamp(48px, 6vw, 120px);
  }

  .journal-section__left {
    margin-bottom: 0;
  }
}

.journal-list {
  max-width: 640px;
}

.journal-list__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid #e5e5e5;
  padding: 20px 0;
}

.journal-list__item:first-child {
  border-top: none;
}

.journal-list__date {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: #a3a3a3;
}

.journal-list__title {
  font-size: 14px;
  font-weight: 600;
}

/* =========================================================
   CONTACT（左：小さな見出し / 右：案内文 + メールリンク）
   ABOUT/SERVICE/JOURNALと同じ、左ラベル + 右コンテンツの静かな2カラム構成。
   .simple-section は他セクション（実績詳細 / 投稿一覧）と共有のため、
   CONTACTだけ独立した専用クラスにしている（他セクションへの影響を避けるため）。
========================================================= */
.contact-section {
  padding: 80px 24px;
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
}

.contact-section__left {
  margin-bottom: 24px;
}

.contact-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #a3a3a3;
}

.contact-text {
  max-width: 560px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.9;
  color: #595959;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  border-bottom: 1px solid #111111;
  padding-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
}

.contact-link__arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.contact-link:hover .contact-link__arrow {
  transform: translateX(4px);
}

@media (min-width: 768px) {
  .contact-section {
    padding: 112px 6vw;
  }

  .contact-text {
    font-size: 15px;
  }
}

@media (min-width: 1024px) {
  .contact-section__inner {
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) minmax(400px, 1.4fr);
    column-gap: clamp(48px, 6vw, 120px);
  }

  .contact-section__left {
    margin-bottom: 0;
  }
}

@media (min-width: 768px) {
  .simple-section {
    padding: 112px 6vw;
  }

  .simple-section__heading {
    font-size: 26px;
  }

  .simple-section__text {
    font-size: 15px;
  }

  .journal-list__item {
    flex-direction: row;
    align-items: baseline;
    gap: 32px;
  }
}

/* =========================================================
   5. Footer
========================================================= */
.site-footer {
  padding: 40px 24px;
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #a3a3a3;
}

@media (min-width: 768px) {
  .site-footer {
    padding: 48px 6vw;
  }

  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* =========================================================
   6. 大型画面（1440px以上）での余白調整
========================================================= */
@media (min-width: 1440px) {
  .site-header__inner,
  .works-section,
  .simple-section,
  .service-section,
  .about-section,
  .journal-section,
  .contact-section,
  .site-footer {
    padding-left: max(6vw, 108px);
    padding-right: max(6vw, 108px);
  }
}

/* =========================================================
   7. トップページ限定：ヘッダーを独立させ、HEROに白い余白を持たせる

   方針:
   - 固定ヘッダー(.site-header)自体の仕組み(position:fixed / 文字色自動切替JS)は変更しない。
     トップページでは常に白背景・黒文字で見せたいだけなので、背景色と文字色をここで
     上書きし、JSによる is-on-light / is-on-dark の切り替え自体は動いたままにする
     （見た目には何色に切り替わっても同じ黒文字になるだけで、JSを壊すことはない）。
   - HEROのスクロール連動スライダー（sticky固定 + IntersectionObserverでの.is-active切替）は
     そのまま。表示サイズだけを .featured-projects__sticky（PC/タブレット）や
     .featured-slide（スマホ）に対して余白・角丸・上限サイズとして与える。
   - スマホは各スライドが100vh固定の通常スクロールのため、高さを詰めると
     スクロール量とマーカー（.featured-marker）の対応がずれてしまう。
     そのためスライド1件あたりの高さを --slide-vh というCSS変数に変更できるようにし
     （template-parts/featured-projects.php 側もこの変数を参照する2行だけ変更済み）、
     ここでスマホ時の値を上書きすることで、スライドの見た目の高さと
     スクロール判定の範囲を必ず一致させている。
   - 対象はトップページのみ（body.home）。下層ページのヘッダー・他のセクションは
     一切変更していない。
========================================================= */
.home {
  --header-h: 56px;
  --hero-gap: 20px;
}

.home .site-header {
  background: #ffffff;
  color: #111111;
}

.home .site-header.is-on-light,
.home .site-header.is-on-dark {
  color: #111111;
}

.home .site-header__inner {
  min-height: var(--header-h);
  width: calc(100% - 32px);
  margin-inline: auto;
  padding-top: 0;
  padding-bottom: 0;
}

.home .site-header__logo {
  font-size: 12px;
}

.home #main-content {
  padding-top: var(--header-h);
}

.home .featured-projects {
  margin-top: var(--hero-gap);
  margin-bottom: 48px;
}

.home .featured-slide {
  width: calc(100% - 32px);
  margin-inline: auto;
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 767px) {
  .home .featured-projects {
    /* 1件あたりの高さを100vhより詰める。--slide-count はPHP側で件数分そのまま使うため、
       ここを変えるだけで合計スクロール量とマーカー位置が自動的に追従する。 */
    --slide-vh: calc(68svh + 16px);
  }

  .home .featured-slide {
    height: 68svh;
  }

  .home .featured-slide + .featured-slide {
    margin-top: 16px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .home {
    --header-h: 80px;
    --hero-gap: 28px;
  }

  .home .site-header__inner {
    width: calc(100% - 56px);
  }

  .home .site-header__logo {
    font-size: 13px;
  }

  .home .featured-projects__sticky {
    width: calc(100% - 56px);
    margin-inline: auto;
    height: 62vh;
    border-radius: 12px;
    overflow: hidden;
    top: calc(var(--header-h) + var(--hero-gap));
  }
}

@media (min-width: 1024px) {
  .home {
    --header-h: 104px;
    --hero-gap: 40px;
  }

  .home .site-header__inner {
    width: calc(100% - 12vw);
    max-width: 1440px;
  }

  .home .site-header__logo {
    font-size: 14px;
  }

  .home .site-header__nav a {
    font-size: 13px;
  }

  .home .featured-projects__sticky {
    width: calc(100% - 12vw);
    max-width: 1440px;
    margin-inline: auto;
    height: clamp(560px, 70vh, 720px);
    border-radius: 12px;
    overflow: hidden;
    top: calc(var(--header-h) + var(--hero-gap));
  }

  .home .featured-projects {
    margin-bottom: 96px;
  }
}

/* =========================================================
   6. ABOUTページ（固定ページ専用: page-about.php）
   トップページのABOUTセクション（.about-section）とは別の独立クラス。
   COMPANY / OUR AREAS / OUR APPROACH は共通の
   .about-page-block（左：英字+和文の小さな見出し / 右：内容）を使い回す。
========================================================= */
.about-page-hero {
  padding: 80px 24px 64px;
  background: #ffffff;
}

.about-page-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #a3a3a3;
}

.about-page-title {
  margin-top: 16px;
  max-width: 720px;
  font-size: clamp(26px, 7vw, 34px);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.about-page-lead {
  margin-top: 32px;
  max-width: 560px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.9;
  color: #595959;
}

.about-page-lead__divider {
  margin: 20px 0;
  color: #d0d0d0;
  font-weight: 700;
}

.about-page-block {
  padding: 64px 24px;
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
}

.about-page-block__left {
  margin-bottom: 24px;
}

.about-page-block__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #111111;
}

.about-page-block__tick {
  display: block;
  width: 1px;
  height: 16px;
  margin: 8px 0;
  background: #d0d0d0;
}

.about-page-block__jp {
  font-size: 13px;
  font-weight: 600;
  color: #a3a3a3;
}

.about-company-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-company-list__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-company-list__row dt {
  font-size: 13px;
  font-weight: 700;
  color: #a3a3a3;
}

.about-company-list__row dd {
  font-size: 14px;
  font-weight: 600;
  color: #111111;
}

.about-areas {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-areas__number {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #a3a3a3;
}

.about-areas__name {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.about-areas__desc {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.8;
  color: #595959;
}

.about-approach {
  display: flex;
  flex-direction: column;
}

.about-approach__item {
  padding: 20px 0;
  border-top: 1px solid #e5e5e5;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
  color: #111111;
}

.about-approach__item:first-child {
  border-top: none;
  padding-top: 0;
}

.about-page-cta {
  padding: 64px 24px 80px;
  background: #ffffff;
}

.about-page-cta__box {
  padding: 32px 24px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}

.about-page-cta__text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.about-page-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  border-bottom: 1px solid #111111;
  padding-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (min-width: 768px) {
  .about-page-hero {
    padding: 112px 6vw 80px;
  }

  .about-page-title {
    font-size: clamp(30px, 3.6vw, 40px);
  }

  .about-page-lead {
    font-size: 15px;
  }

  .about-page-block {
    padding: 80px 6vw;
  }

  .about-areas {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px 24px;
  }

  .about-areas__item {
    flex: 1 1 calc(50% - 12px);
  }

  .about-page-cta {
    padding: 80px 6vw 112px;
  }

  .about-page-cta__box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 48px;
  }

  .about-page-cta__link {
    margin-top: 0;
  }
}

@media (min-width: 1024px) {
  .about-page-block__inner {
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) minmax(400px, 1.4fr);
    column-gap: clamp(48px, 6vw, 120px);
  }

  .about-page-block__left {
    margin-bottom: 0;
  }

  .about-areas__item {
    flex: 1 1 calc(20% - 19.2px);
  }
}

@media (min-width: 1440px) {
  .about-page-hero,
  .about-page-block,
  .about-page-cta {
    padding-left: max(6vw, 108px);
    padding-right: max(6vw, 108px);
  }
}

/* =========================================================
   7. CONTACTページ（固定ページ専用: page-contact.php）
   プラグイン不使用の自前フォーム。ABOUTページと同じ、
   小さな英字ラベル + 大きめ見出しのヒーローに、フォームを続ける構成。
========================================================= */
.contact-page-hero {
  padding: 80px 24px 48px;
  background: #ffffff;
}

.contact-page-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #a3a3a3;
}

.contact-page-title {
  margin-top: 16px;
  font-size: clamp(26px, 8vw, 34px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.contact-page-lead {
  margin-top: 20px;
  max-width: 480px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.9;
  color: #595959;
}

.contact-page-form-section {
  padding: 0 24px 80px;
  background: #fafafa;
}

.contact-form-card {
  width: 100%;
  padding: 32px 24px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(17, 17, 17, 0.06);
}

.contact-form {
  width: 100%;
}

.contact-form__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.contact-form > .contact-form__row + .contact-form__row,
.contact-form > .contact-form__row + .contact-form__field,
.contact-form > .contact-form__field + .contact-form__field {
  margin-top: 24px;
}

.contact-form__field label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #111111;
}

.contact-form__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.contact-form__badge--required {
  background: #111111;
  color: #ffffff;
}

.contact-form__badge--optional {
  background: #f0f0f0;
  color: #767676;
}

.contact-form__field input[type='text'],
.contact-form__field input[type='email'],
.contact-form__field input[type='tel'],
.contact-form__field select,
.contact-form__field textarea {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 17px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f5f5f5;
  font-family: inherit;
  font-size: 15px;
  color: #111111;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: #a3a3a3;
}

.contact-form__field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23767676' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 44px;
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 180px;
  line-height: 1.8;
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: #111111;
  background: #ffffff;
}

.contact-form__privacy {
  margin-top: 32px;
  max-width: 640px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.9;
  color: #595959;
}

.contact-form__privacy a {
  color: #111111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  width: 100%;
  max-width: 360px;
  padding: 19px 28px;
  border: none;
  border-radius: 8px;
  background: #111111;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form__submit:hover {
  background: #2a2a2a;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.18);
}

.contact-form__notice {
  max-width: 640px;
  margin-bottom: 32px;
  padding: 20px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
}

.contact-form__notice--success {
  background: #f4f7f4;
  color: #2f5d3a;
}

.contact-form__notice--error {
  background: #fbf3f3;
  color: #8c2f2f;
}

.contact-form__notice--error ul {
  margin-top: 8px;
  padding-left: 20px;
  list-style: disc;
}

@media (min-width: 768px) {
  .contact-page-hero {
    padding: 112px 6vw 56px;
  }

  .contact-page-title {
    font-size: clamp(30px, 3.6vw, 40px);
  }

  .contact-page-form-section {
    padding: 0 6vw 112px;
  }

  .contact-form-card {
    padding: 56px 64px;
    border-radius: 20px;
  }

  .contact-form__row {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (min-width: 1440px) {
  .contact-page-hero,
  .contact-page-form-section {
    padding-left: max(6vw, 108px);
    padding-right: max(6vw, 108px);
  }
}

/* =========================================================
   8. JOURNAL一覧ページ（home.php = 投稿ページ / category.php 共通）
========================================================= */
.journal-page-hero {
  padding: 80px 24px 40px;
  background: #ffffff;
}

.journal-page-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #a3a3a3;
}

.journal-page-tick {
  display: block;
  width: 1px;
  height: 16px;
  margin: 8px 0;
  background: #d0d0d0;
}

.journal-page-title {
  font-size: clamp(32px, 11vw, 40px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.journal-page-lead {
  margin-top: 20px;
  max-width: 480px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.9;
  color: #595959;
}

.journal-page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 0 24px 80px;
  background: #ffffff;
}

.journal-page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 16px;
  margin-bottom: 32px;
}

.journal-page-tabs__item {
  position: relative;
  padding-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  color: #a3a3a3;
}

.journal-page-tabs__item.is-active {
  color: #111111;
}

.journal-page-tabs__item.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -17px;
  height: 2px;
  background: #111111;
}

.journal-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.journal-page-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.journal-page-card__media {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: #f0f0f0;
}

.journal-page-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journal-page-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #a3a3a3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.journal-page-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 700;
  color: #a3a3a3;
}

.journal-page-card__cat {
  color: #767676;
}

.journal-page-card__title {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: #111111;
}

.journal-page-card__arrow {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: #111111;
  transition: transform 0.3s ease;
}

.journal-page-card:hover .journal-page-card__arrow {
  transform: translateX(4px);
}

.journal-page-empty {
  padding: 40px 0;
  font-size: 14px;
  font-weight: 600;
  color: #767676;
}

.journal-page-pagination ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 56px;
  font-size: 13px;
  font-weight: 700;
}

.journal-page-pagination .page-numbers {
  color: #a3a3a3;
}

.journal-page-pagination a.page-numbers:hover {
  color: #111111;
}

.journal-page-pagination .page-numbers.current {
  color: #111111;
  padding-bottom: 2px;
  border-bottom: 2px solid #111111;
}

.journal-page-pagination__next {
  margin-left: 8px;
  color: #111111;
}

.journal-page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.journal-page-search {
  display: flex;
  align-items: center;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding-left: 16px;
}

.journal-page-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 12px 0;
  font-family: inherit;
  font-size: 13px;
  color: #111111;
}

.journal-page-search button {
  flex-shrink: 0;
  padding: 12px 16px;
  border: none;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  color: #767676;
}

.journal-page-sidebar__heading {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #111111;
}

.journal-page-sidebar__list {
  display: flex;
  flex-direction: column;
}

.journal-page-sidebar__list li {
  border-top: 1px solid #e5e5e5;
}

.journal-page-sidebar__list li:first-child {
  border-top: none;
}

.journal-page-sidebar__list a,
.journal-page-sidebar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 600;
  color: #595959;
}

.journal-page-sidebar__list a span:last-child,
.journal-page-sidebar__row span:last-child {
  color: #a3a3a3;
}

.journal-page-sidebar__list a.is-active,
.journal-page-sidebar__list a:hover {
  color: #111111;
}

.journal-page-sidebar__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #111111;
  transition: border-color 0.2s ease;
}

.journal-page-sidebar__cta:hover {
  border-color: #111111;
}

.journal-page-sidebar__cta-label {
  line-height: 1.7;
}

@media (min-width: 768px) {
  .journal-page-hero {
    padding: 112px 6vw 48px;
  }

  .journal-page-layout {
    padding: 0 6vw 112px;
  }

  .journal-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .journal-page-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    column-gap: 64px;
  }

  .journal-page-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1440px) {
  .journal-page-hero,
  .journal-page-layout {
    padding-left: max(6vw, 108px);
    padding-right: max(6vw, 108px);
  }
}

/* =========================================================
   9. WORKS一覧ページ（archive-work.php）
   ヒーロー・タブ・ページネーション・サイドバーは
   JOURNAL一覧ページ（.journal-page-*）のクラスをそのまま再利用し、
   カードグリッドだけ専用クラス（.works-page-*）にしている。
========================================================= */
.works-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 24px;
}

.works-page-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.works-page-card__media {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: #f0f0f0;
}

.works-page-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.works-page-card:hover .works-page-card__img {
  transform: scale(1.03);
}

.works-page-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #a3a3a3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.works-page-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 700;
  color: #a3a3a3;
}

.works-page-card__cat {
  color: #767676;
}

.works-page-card__title {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: #111111;
}

.works-page-card__desc {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.8;
  color: #767676;
}

.works-page-card__arrow {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: #111111;
  transition: transform 0.3s ease;
}

.works-page-card:hover .works-page-card__arrow {
  transform: translateX(4px);
}

@media (min-width: 768px) {
  .works-page-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 32px;
  }
}

/* =========================================================
   10. SERVICEページ（固定ページ専用: page-service.php）
   ヒーロー（SERVICE + メッセージ / 会社の説明文）+ サービス詳細3件
   + FLOW（進め方） + LET'S TALK CTA という構成。
========================================================= */
.service-page-hero {
  padding: 80px 24px;
  background: #ffffff;
}

.service-page-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.service-page-title {
  font-size: clamp(36px, 12vw, 48px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.service-page-message {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.9;
  color: #595959;
}

.service-page-lead {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.9;
  color: #595959;
}

.service-page-block {
  padding: 48px 24px;
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
}

.service-page-block__left {
  margin-bottom: 20px;
}

.service-page-block__number {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #a3a3a3;
}

.service-page-block__name {
  margin-top: 8px;
  font-size: clamp(20px, 5vw, 24px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.service-page-block__desc {
  max-width: 640px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.9;
  color: #595959;
}

.service-page-block__deliverables {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
  font-size: 13px;
}

.service-page-block__deliverables-label {
  font-weight: 700;
  color: #111111;
}

.service-page-block__deliverables-value {
  font-weight: 600;
  color: #767676;
}

.service-page-flow {
  padding: 56px 24px;
  background: #f7f7f7;
}

.service-page-flow__left {
  margin-bottom: 24px;
}

.service-page-flow__eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #a3a3a3;
}

.service-page-flow__steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.service-page-flow__step-number {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #a3a3a3;
}

.service-page-flow__step-title {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.service-page-flow__step-desc {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.8;
  color: #767676;
}

.service-page-flow__step.has-arrow {
  position: relative;
}

.service-page-cta {
  padding: 56px 24px 80px;
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
}

.service-page-cta__left {
  margin-bottom: 16px;
}

.service-page-cta__eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #a3a3a3;
}

.service-page-cta__text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.service-page-cta .contact-link {
  margin-top: 20px;
}

@media (min-width: 768px) {
  .service-page-hero {
    padding: 112px 6vw;
  }

  .service-page-hero__inner {
    grid-template-columns: minmax(240px, 0.85fr) minmax(400px, 1.4fr);
    column-gap: clamp(48px, 6vw, 120px);
  }

  .service-page-title {
    font-size: clamp(48px, 6vw, 64px);
  }

  .service-page-lead {
    font-size: 15px;
  }

  .service-page-block {
    padding: 64px 6vw;
  }

  .service-page-block__inner {
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) minmax(400px, 1.4fr);
    column-gap: clamp(48px, 6vw, 120px);
  }

  .service-page-block__left {
    margin-bottom: 0;
  }

  .service-page-block__desc {
    font-size: 15px;
  }

  .service-page-flow {
    padding: 80px 6vw;
  }

  .service-page-flow__inner {
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) minmax(400px, 1.4fr);
    column-gap: clamp(48px, 6vw, 120px);
  }

  .service-page-flow__left {
    margin-bottom: 0;
  }

  .service-page-flow__steps {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
  }

  .service-page-flow__step {
    flex: 1 1 0;
    padding-right: 24px;
  }

  .service-page-flow__step.has-arrow::after {
    content: '\2192';
    position: absolute;
    top: 0;
    right: 0;
    font-size: 14px;
    color: #a3a3a3;
  }

  .service-page-cta {
    padding: 80px 6vw 112px;
  }

  .service-page-cta__inner {
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) minmax(400px, 1.4fr);
    column-gap: clamp(48px, 6vw, 120px);
  }

  .service-page-cta__left {
    margin-bottom: 0;
  }
}

/* =========================================================
   11. 投稿（post）単体ページ（お知らせ・ブログ記事、single.php）
   .simple-section は他セクション（CONTACT / 実績詳細）と共有のため、
   外枠のpadding/背景だけ流用し、内容部分は専用クラスで組む。
   本文（the_content）は work-detail__main と同じ .simple-section__text を再利用する。
========================================================= */
.journal-single__hero {
  max-width: 720px;
}

.journal-single__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #a3a3a3;
}

.journal-single__title {
  margin-top: 12px;
  font-size: clamp(24px, 7vw, 34px);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.journal-single__meta {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: #a3a3a3;
}

.journal-single__media {
  margin-top: 32px;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: #f0f0f0;
}

.journal-single__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journal-single__content {
  margin-top: 40px;
  max-width: 720px;
}

.journal-single__back {
  margin-top: 56px;
}

/*
 * 本文（journal-single__main）とサイドバー（journal-page-sidebar、
 * template-parts/journal-sidebar.php）の2カラムレイアウト。
 * サイドバーが無いと本文の右側が広い画面で不自然に空いてしまうため追加。
 * work-detail__grid（実績詳細ページ）と同じ考え方で、1023px以下は1カラムに積む。
 */
.journal-single__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.journal-single__main {
  min-width: 0;
}

/* サイドバーと並ぶ本文は、他セクションと共有の .simple-section__text（640px）より
   広く使いたいので、実績詳細ページ（.work-detail__main）と同様にmax-widthを解除する。 */
.journal-single__main .simple-section__text {
  max-width: none;
}

@media (min-width: 768px) {
  .journal-single__title {
    font-size: clamp(28px, 3.6vw, 38px);
  }

  .journal-single__media {
    margin-top: 40px;
  }

  .journal-single__content {
    margin-top: 48px;
  }
}

@media (min-width: 1024px) {
  .journal-single__layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    column-gap: 64px;
  }

  .journal-single__sidebar {
    /* 固定ヘッダー分の余白を確保しつつ、スクロール中も追従させる */
    position: sticky;
    top: 120px;
    align-self: start;
  }
}

@media (min-width: 1440px) {
  .service-page-hero,
  .service-page-block,
  .service-page-flow,
  .service-page-cta {
    padding-left: max(6vw, 108px);
    padding-right: max(6vw, 108px);
  }
}
