/* ===== Base ===== */
* { box-sizing: border-box; }
html, body { margin: 0; }

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  color: #000;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; image-rendering: pixelated; }

/* ===== Header ===== */
:root{
  --header-h: 72px;       /* SPヘッダー高さ */
  --container-px: 20px;   /* 左右余白 */
}

.header{
  position: sticky;       /* スクロールしてもトップに留まる */
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #000;
  min-height: var(--header-h);
  display: grid;
  align-content: center;
}

.header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--container-px);
  gap: 12px;
}

/* ロゴ（縦組み画像を想定） */
.logo img{
  height: 44px;          /* カンプ相当の見え感 */
  width: auto;
}

/* 右上の三つの四角（ケバブ風） */
.menu-btn{
  appearance: none;
  border: none;
  background: transparent;
  padding: 6px;
  margin: -6px;          /* クリック範囲を増やして視覚位置は維持 */
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  column-gap: 8px;
  cursor: pointer;
}
.menu-btn:focus-visible{ outline: 2px solid #000; outline-offset: 2px; }

.menu-btn__dot{
  width: 12px;
  height: 12px;
  background: #000;
  display: block;
}
.menu-btn:hover .menu-btn__dot{ transform: translateY(-1px); }

/* ===== Global nav（SP：初期は非表示、後でJSで開閉） ===== */
.nav[hidden]{ display: none; }
.nav{
  background: #fff;
  border-top: 1px solid #000;
  padding: 12px var(--container-px) 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nav a{
  color: #000; text-decoration: none;
}
.nav a:hover{ text-decoration: underline; }

/* ===== Hero（動画プレースホルダー想定） ===== */
/* 非表示見出し（アクセシビリティ用） */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* まずはヒーロー全体の器を縦いっぱいに */
.hero{
  min-height: 100dvh;                  /* iOS/Androidのアドレスバー対策 */
  display: grid;
  place-items: center;
}

/* 器（以前 16:9 を付けていた場合は上書きで無効化） */
.hero__media{
  position: relative;
  width: 100%;
  height: 100dvh;                      /* ← 高さで合わせる（vhでOKなら100vhでも可） */
  aspect-ratio: auto !important;       /* ← もし16:9を指定していたら潰す */
  overflow: hidden;                    /* 念のため */
}

/* 共通：動画を器にフィットさせる */
.hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;                    /* PC/タブレットは全面カバー */
}

@media (max-width: 768px){
  .hero__media{
    height: 100dvh;
    background: transparent;        /* 念のため */
  }
  .hero-video{
    object-fit: cover;               /* ← 余白なし。はみ出しOK */
    object-position: center center;  /* 上側を優先なら 'center top' などに */
    background: transparent;         /* 以前の #000 を消す */
  }
}


/* ===== 動画下横スクロール部分 =================================== */

/* セクション全体（高さはJSが自動設定） */
.features { position: relative; margin: 0; }

/* 画面に張り付く横トラック。ユーザーの手動横スクは基本させない */
.features__track{
  position: sticky; top: 0;
  height: 100svh;
  display: flex;
  overflow: hidden;                 /* ← 横バー出さない */
  -webkit-overflow-scrolling: touch;
}

/* ========= 共通（フォント・カード基礎） ========= */
.features .panel,
.features .panel *{
  font-family: ab-megadot9, sans-serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
}

.features .panel{
  /* 1枚＝画面幅 */
  flex: 0 0 100vw;
  height: 100%;
  /* レイアウト */
  display: grid;
  justify-items: center;
  align-items: center;          /* 各アイテムの縦位置 */
  align-content: center;        /* 行を“束ねて”中央に */
  justify-content: center;
  text-align: center;
  /* ここが「アイコン↔見出し」「見出し↔価格」などの基本間隔 */
  row-gap: var(--row-gap, clamp(8px, 2vh, 14px));
  /* 余白・見た目 */
  padding: 0;
  background: transparent;
  border: none;
}

/* ========= アイコン（figure & img） ========= */
.features .panel__icon{        /* figure の素の余白を消し、中央寄せ */
  margin: 0;
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
}

/* アイコン画像（ドットくっきり & サイズは変数で統一） */
.features .panel__icon img{
  display: block;
  width: var(--icon-size, min(40vw, 220px));
  height: auto;
  image-rendering: pixelated;
  opacity: 1; filter: none;
  translate: var(--icon-nudge-x, 0) 0;  /* アイコンの左右微調整 */
}

/* ========= 見出し・価格 ========= */
.features .panel__title{       /* 不要な外側余白を消すだけ */
  margin: 0;
  line-height: 1.22;
}

/* 「月額 7,700 円 から」行 */
.features .panel--cost .panel__lead{
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(6px, 1.6vw, 10px);
  line-height: 1;
  /* ここが「見出し ↔ 価格」の微調整ノブ */
  transform: translateY(var(--lead-shift, -6px));
  white-space: nowrap;
}

/* 数字をドン！ */
.features .panel__price{
  font-size: clamp(56px, 13vw, 96px);
  line-height: .9;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: .02em;
}

/* 「月額」「円 から」を少し下げる（ドット書体の見た目合わせ） */
.features .panel--cost .panel__lead > :not(.panel__price){
  position: relative;
  top: .06em;
}

/* ========= cost パネルのデフォルト値（SP基準） ========= */
.features .panel--cost{
  --row-gap: clamp(35px, 4vh, 18px);  /* アイコン↔見出し・見出し↔価格の基本間隔 */
  --icon-size: min(40vw, 220px);        /* アイコンサイズ */
  --icon-nudge-x: 0px;                  /* アイコンの左右ズレ補正（±で調整） */
  --lead-shift: -15px;                   /* 見出し↔価格の距離（-で近づく / +で離れる） */
}

/* ========= PC調整 ========= */
@media (min-width: 1024px){
  .features .panel--cost{
    --row-gap: 18px;
    --icon-size: min(26vw, 260px);
    --lead-shift: -4px;
  }
  .features .panel__price{
    font-size: clamp(72px, 9vw, 112px);
  }
}

/* ===== panel--ops（あなたのWeb担当者）専用 ===== */
.panel--ops {
  text-align: center;
  display: grid;
  justify-items: center;
  align-content: center;
  row-gap: clamp(10px, 3vh, 20px);
}

/* アイコンサイズ（中央揃え＆同じピクセル風処理） */
.panel--ops .panel__icon img {
  width: min(42vw, 240px);
  height: auto;
  image-rendering: pixelated;
  display: block;
  margin: 0 auto;
}

/* 「作って終わりじゃない、」 */
.panel--ops .panel__title {
  font-size: clamp(20px, 4.6vw, 28px);
  line-height: 1.3;
  margin: 0;
}

/* 「あなたのウェブ担当者に」 */
.panel--ops .panel__lead {
  font-size: clamp(16px, 4vw, 22px);
  line-height: 1.4;
  margin: 0;
}

/* 「ウェブ担当者」だけ強調して大きく */
.panel--ops .panel__lead strong {
  display: inline-block;
  font-size: clamp(32px, 9vw, 64px);
  line-height: 1.1;
}
/* 「作って終わりじゃない、」を左揃えに */
.panel--ops .panel__title {
  text-align: left;
  width: fit-content;          /* テキスト幅だけ */
  margin: 0 auto 0 0;          /* 左寄せ（右に余白なし） */
}

/* 「あなたのウェブ担当者に」も同じ位置からスタート */
.panel--ops .panel__lead {
  text-align: left;
  width: fit-content;
  margin: 0 auto 0 0;
}



/* 3枚目のアイコンだけ大きくする */
.features .panel--design .panel__icon img {
  width: min(42vw, 240px); /* ← お好みで。数値を上げるほど大きくなる */
  height: auto;
}

/* 「テンプレートじゃない、」と「オリジナルデザインで」を左揃えに */
/* 「テンプレートじゃない、」を少し小さく */

.panel--design .panel__title {
  font-size: clamp(20px, 3.8vw, 22px);  /* ←ここがポイント */
  line-height: 1.3;
  margin: 0 auto 0 0;
  width: fit-content;
}

.panel--design .panel__lead strong {
  display: inline-block;
  font-size: clamp(32px, 9vw, 64px);
  line-height: 1.1;
}

.panel--design .panel__title,
.panel--design .panel__lead {
  width: fit-content;
  margin: 0 auto 0 0;      /* 左に寄せる */
  text-align: left;
}

/* 念のため行頭がきっちり揃うように */
.panel--design {
  justify-items: start;
}

/* 共通：アイコンとタイトルの間隔を統一 */
.panel--ops .panel__icon,
.panel--design .panel__icon {
  margin-bottom: clamp(12px, 3vh, 20px); /* ← 最初のカードと同じ間隔に */
}

/* 2枚目 */
.features .panel--ops{
  --row-gap: 5px;        /* ←自由にpxで */
  --title-bottom: 10px;    /* ←ここを上げ下げ */
}

/* 3枚目 */
.features .panel--design{
  --row-gap: 5px;
  --title-bottom: 6px;
}
.features .panel--design .panel__icon {
  margin-bottom: 30px; /* ← この数値をお好みで調整（例：16〜28px） */
}

/* ========== PC調整（必要なら上書き） ========== */
@media (min-width: 1024px){
  .features .panel--ops{
    --row-gap: 18px;
    --icon-size: min(26vw, 260px);
    --lead-strong-size: clamp(40px, 7vw, 72px);
  }
  .features .panel--design{
    --row-gap: 18px;
    --icon-size: min(26vw, 260px);
    --title-size: clamp(16px, 3vw, 24px);       /* PCでタイトル少し戻す */
    --lead-strong-size: clamp(40px, 7vw, 72px);
  }
}

/* ===============================
   About CTA セクション（見えないミリョクを見える化）
=============================== */
.about-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(40px, 12vh, 120px) 20px;
  background-color: #fff;
  font-family: ab-megadot9, sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #000;
}

/* ロゴマーク */
.about-cta__logo img {
  width: min(48vw, 240px);
  height: auto;
  image-rendering: pixelated;
  margin-bottom: clamp(24px, 5vh, 40px);
}

/* キャッチコピー */
.about-cta__catch {
  font-size: clamp(16px, 4.4vw, 22px);
  line-height: 1.8;
  margin: 0 0 clamp(32px, 6vh, 60px);
  text-align: left;
  max-width: 24em;
}

/* ピクセルボタン本体 */
.cta-pixel{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: clamp(14px, 4vw, 18px);
  padding: 12px 24px;
  text-decoration: none;
  color: #000;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  isolation: isolate;
  width: 65%;          /* ← 他のボタンと同じくらい広げたい場合 */
  max-width: 340px;    /* ← 広がりすぎ防止（調整可） */
  margin: 0 auto;      /* ← 中央寄せ */
  box-sizing: border-box;
}

/* 影：右下で固定 */
.cta-pixel__shadow{
  position: absolute;
  inset: 0;
  border: 2px solid #000;
  transform: translate(4px, 4px);
  z-index: 1;
}

/* 枠：初期は左上にズレ → hoverで右下へ（影に重なる） */
.cta-pixel__frame{
  position: absolute;
  inset: 0;
  border: 2px solid #000;
  transform: translate(-1px, -1px);
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

/* ラベル＆アイコン：枠と同じ軌跡で動く（初期は左上 → hoverで右下） */
.cta-pixel__label,
.cta-pixel__icon{
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-1px, -1px);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

/* hover：frameと文字が影の位置へ追いつく */
.cta-pixel:hover .cta-pixel__frame,
.cta-pixel:hover .cta-pixel__label,
.cta-pixel:hover .cta-pixel__icon{
  transform: translate(4px, 4px);
}

/* active：少し押し込む */
.cta-pixel:active .cta-pixel__frame,
.cta-pixel:active .cta-pixel__label,
.cta-pixel:active .cta-pixel__icon{
  transform: translate(6px, 6px);
  transition-duration: 0.1s;
}

/* ご指定どおり：ピクセルアイコンのサイズ */
.cta-pixel__icon img {
  width: 20px;
  height: 20px;
  image-rendering: pixelated;
}



/* =========================
   Services セクション
========================= */
.services{
  padding: clamp(32px, 7vh, 72px) 20px;
  background: #fff;
  color: #000;
  font-family: ab-megadot9, sans-serif;
  font-weight: 400;
  font-style: normal;
}

.services__header{
  text-align: center;
  margin-bottom: clamp(24px, 6vh, 56px);
}
.services__title{
  font-size: clamp(18px, 5vw, 28px);
  letter-spacing: 0;
}
.services__square{ margin: 0 .4em; }

/* = Article（1カード） = */
.service{
  max-width: 720px;
  margin: 0 auto clamp(72px, 16vh, 128px);
  text-align: center;
}

/* 見出し */
/* 各サービス見出し */
.service__name {
  font-family: ab-megadot9, sans-serif;
  font-weight: 400;
  font-style: normal;
  text-align: center;
  font-size: clamp(22px, 4.2vw, 26px);  /* ← ここを少し小さめに調整 */
  line-height: 1.3;
  margin-bottom: clamp(10px, 2vh, 16px);
}   

/* --- アイコン中央揃え --- */
.service__icon {
  margin: 0 auto clamp(24px, 6vh, 40px);
  display: flex;
  justify-content: center;
  align-items: center;
}
.service__icon img {
  width: min(48vw, 220px);
  height: auto;
  image-rendering: pixelated;
  display: block;
}

/* サービス説明文 */
.service__desc {
  font-family: sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: clamp(14px, 3.6vw, 18px);
  line-height: 1.8;
  text-align: left;
  max-width: 85%;        /* ← 横幅を少し狭く（全体の85%） */
  margin: 0 auto clamp(24px, 5vh, 40px);
}

strong {
  font-weight: 700;
}


/* 「詳しく」ボタンは既存の .cta-pixel をそのまま利用 */

/* =========================
   Slide-in アニメーション
========================= */
:root {
  --slide-d: 28px;              /* スライド距離 */
  --slide-t: 1.4s;              /* ← 前回の0.6sより長め */
  --slide-e: cubic-bezier(.19,1,.22,1);
}

/* 初期：見出し＆アイコンは左、説明は右から */
.service .service__name,
.service .service__icon{
  opacity: 0;
  transform: translateX(calc(var(--slide-d) * -1));
  will-change: transform, opacity;
}
.service .service__desc{
  opacity: 0;
  transform: translateX(var(--slide-d));
  will-change: transform, opacity;
}

/* 画面に入ったらフェード＋スライド */
.service.is-in .service__name,
.service.is-in .service__icon,
.service.is-in .service__desc{
  opacity: 1;
  transform: translateX(0);
  transition: transform var(--slide-t) var(--slide-e), opacity var(--slide-t) ease-out;
}

/* ステップ的な“段階表示”のためのディレイ */
.service.is-in .service__name{ transition-delay: 0ms; }
.service.is-in .service__icon{ transition-delay: 90ms; }
.service.is-in .service__desc{ transition-delay: 160ms; }

/* アニメーションを好まない環境 */
@media (prefers-reduced-motion: reduce){
  .service .service__name,
  .service .service__icon,
  .service .service__desc{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --- 「詳しく」ボタン専用フォント変更 --- */
.cta-pixel__label {
  font-family: "kozuka-gothic-pro", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: clamp(14px, 3.6vw, 16px);
  letter-spacing: 0.04em;
}

/* =============== WORKS =============== */
/* --- ベース（白背景を明示） --- */
:root{
  /* サイズ・間隔・速度はここでまとめて調整できます */
  --works-item-size: clamp(80px, 10vw, 200px); /* モックアップを大きめに */
  --works-gap: clamp(16px, 4vw, 48px);
  --works-speed: 35s; /* 1周にかかる時間。大きいほどゆっくり */
}

.works{
  background:#fff;            /* 両サイドの灰色は使わない */
  color:#000;
  overflow:hidden;
  padding: min(10vw, 96px) 0;
  position:relative;
}

.works__title {
  font-family: ab-megadot9, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  letter-spacing: 0.05em;
}

/* 下部のボタン中央寄せ */
.works__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 5vw, 4rem);
}

/* 以前 .works::before / ::after でグレー帯を出していた場合は無効化 */
.works::before,
.works::after{ content:none !important; display:none !important; }

.works__header{
  display:flex;
  justify-content:center;
  gap:1rem;
  align-items:baseline;
  margin-bottom: min(6vw, 56px);
}
/* マスク＆枠 */
.marquee{
  overflow: hidden;
  width: 100%;
  /* 端のフェードは任意。不要なら下2行を消してOK */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
}

/* トラック（JSでtransformを当てるだけ。アニメ関連は一切入れない） */
.marquee__row{
  display: flex;
  flex-wrap: nowrap;                   /* 折り返し禁止：縦積み防止 */
  gap: var(--works-gap, 32px);
  will-change: transform;
}

/* 直下の LI / .marquee__item は固定幅扱い */
.marquee__row > li,
.marquee__row > .marquee__item{
  flex: 0 0 auto;
}

/* カード（必要なら既存のサイズ指定は維持でOK） */
.marquee__item{
  /* ここはお好みで。既存指定を使うなら残す */
  /* height: var(--works-item-height);  ← 未定義なら消す */
  width: 250px;
  display: grid;
  place-items: center;
  background: transparent;
  padding: clamp(8px, 1vw, 12px);
  border-radius: 12px;
  box-shadow: none;
  overflow: visible;
}

/* 画像の表示調整（任意） */
.marquee__item > img{
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.08));
  background: transparent;
}

/* ホバー時の持ち上げ効果（PCのみ） */
@media (hover:hover){
  .work:hover img { transform: translateY(-6px); transition: transform .25s ease; }
}



/* ========= こんな人にオススメセクション ==================================== */
/* ========= 基本レイアウトと変数 ========= */
:root{
  --dot-size: 14px;                 /* 黒い四角のサイズ */
  --dot-gap: 12px;                  /* 四角の間隔 */
  --dot-delay: 0.12s;               /* 1コずつの遅延 */
  --dot-in-duration: .28s;          /* 1コの出現時間 */
}

.recommend{
  background:#fff;
  padding: clamp(56px, 9vw, 120px) 0;
}

.recommend__header{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: clamp(8px, 2vw, 24px);
  margin-bottom: clamp(40px, 7vw, 80px);
  padding: 0 clamp(12px, 2vw, 24px);
}

/* タイトル：ドット絵フォントで */
.recommend__title{
  font-family: ab-megadot9, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.4rem, 3.6vw, 2.2rem);
  letter-spacing: .05em;
  text-align:center;
  white-space: nowrap;
}

/* ========= 左右の黒い四角（順次出現） ========= */
.recommend__dots{
  display:flex;
  align-items:center;
  gap: var(--dot-gap);
  min-width: calc(var(--dot-size) * 2 + var(--dot-gap) * 1); /* ほんの少しの幅確保 */
}

.recommend__dots .dot{
  display: block;               /* ← これが無いと width/height が効かない */
  width: var(--dot-size);
  height: var(--dot-size);
  background:#000;
  opacity:0;
  transform: scale(0.6);
  animation: none;
}

/* 画面に入ったら、左→右へ 1個ずつポツポツ出現 */
.recommend__dots.is-inview .dot{
  animation: dot-pop var(--dot-in-duration) steps(1, end) forwards;
  animation-delay: calc(var(--i) * var(--dot-delay));
}

@keyframes dot-pop{
  to{
    opacity:1;
    transform: scale(1);
  }
}

/* ========= コンテンツのグリッド ========= */
.recommend__list{
  display:grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 6vw, 56px);
  max-width: min(960px, 92vw);
  margin-inline: auto;
}

.rec{
  text-align:center;
  opacity:0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.rec.is-show{
  opacity:1;
  transform: translateY(0);
}

.rec__title{
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: clamp(10px, 2vw, 14px);
}

.rec__divider{
  display:grid;
  place-items:center;
  margin: clamp(8px, 2vw, 14px) 0 clamp(12px, 2.6vw, 18px);
}
.rec__divider img{
  width: clamp(18px, 3vw, 28px);
  height: auto;
}

.rec__text{
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  line-height: 1.9;
  text-align: left;
  max-width: 52ch;
  margin: 0 auto;
}

/* ========= Recommend セクション：統合・最小CSS ========= */
:root{
  --rec-dot-size: 14px;        /* ドットの一辺 */
  --rec-dot-gap: 12px;         /* ドット間隔 */
  --rec-dot-delay: .12s;       /* 1個ずつの遅延 */
  --rec-dot-duration: .28s;    /* 1個の出現時間 */
}

section#recommend{
  background:#fff;
  padding: clamp(56px, 9vw, 120px) 0;
}

/* 見出し行：左ドット | タイトル | 右ドット の3カラム */
section#recommend .recommend__header{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
  position: relative;
}

/* タイトル（フォント統一） */
section#recommend .recommend__title{
  font-family: ab-megadot9, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.4rem, 3.6vw, 2.2rem);
  letter-spacing: .05em;
  text-align: center;
  position: relative; /* 念のため重なり保険 */
  z-index: 1;
}

/* ドット列（左右） */
section#recommend .recommend__dots{
  display: flex;
  align-items: center;
  gap: var(--rec-dot-gap);
  overflow: hidden;                   /* タイトル側へはみ出さない */
}
section#recommend .recommend__dots--left{  justify-content: flex-end; }
section#recommend .recommend__dots--right{ justify-content: flex-start; }

/* ドット本体（正方形・伸縮しない） */
section#recommend .recommend__dots > .rec-dot{
  display: block;
  width: var(--rec-dot-size);
  height: var(--rec-dot-size);
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;                     /* flexの伸縮を止める */
  background: #000;
  opacity: 0;                          /* 初期は非表示（演出用） */
  transform: scale(.6);
}

/* 画面に入ったら、左→右へ1つずつポツポツ出現 */
section#recommend .recommend__dots.is-inview > .rec-dot{
  animation: recDotPop var(--rec-dot-duration) steps(1,end) forwards;
  animation-delay: calc(var(--i, 0) * var(--rec-dot-delay));
}
@keyframes recDotPop{ to{ opacity:1; transform:scale(1); } }

/* コンテンツのカード群 */
section#recommend .recommend__list{
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 6vw, 56px);
  max-width: min(960px, 92vw);
  margin-inline: auto;
}
@media (min-width: 960px){
  section#recommend .recommend__list{
    grid-template-columns: repeat(3, 1fr);
    column-gap: clamp(28px, 3vw, 40px);
    row-gap: clamp(28px, 3vw, 40px);
  }
}

/* 各カードのフェードアップ（IOで .is-show を付与） */
section#recommend .rec{
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
section#recommend .rec.is-show{
  opacity: 1;
  transform: translateY(0);
}
section#recommend .rec__title{
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: clamp(10px, 2vw, 14px);
}
section#recommend .rec__divider{
  display: grid;
  place-items: center;
  margin: clamp(8px, 2vw, 14px) 0 clamp(12px, 2.6vw, 18px);
}
section#recommend .rec__divider img{
  width: clamp(18px, 3vw, 28px);
  height: auto;
}
section#recommend .rec__text{
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  line-height: 1.9;
  text-align: left;
  max-width: 52ch;
  margin: 0 auto;
}
/* === グローバル：ページ配色を変数化して滑らかに反転 === */
:root{
  --page-bg: #fff;
  --page-fg: #000;
  --invert-transition: 420ms cubic-bezier(.2,.9,.2,1);
}

body{
  background: var(--page-bg);
  color: var(--page-fg);
  transition: background-color var(--invert-transition),
             color var(--invert-transition);
}

/* セクション表示中は“反転テーマ” */
body.theme-invert{
  --page-bg: #000;
  --page-fg: #fff;
}

/* recommend配下の装飾は currentColor で反転に追従させる */
#recommend { color: var(--page-fg); }

/* 見出しドット（黒四角）は currentColor を使う */
.recommend__dots .rec-dot{
  width: var(--dot-size, 14px);
  height: var(--dot-size, 14px);
  background: currentColor;           /* ← 黒⇄白に自動追従 */
  image-rendering: pixelated;
  opacity: 0;
  transform: translateY(6px) scale(.8);
}

/* ▼ 既存の順次表示アニメはそのまま使ってOK（例） */
.recommend__dots.is-inview .rec-dot{
  animation: dotPop var(--note-dur, .5s) steps(1,end) forwards;
  animation-delay: calc(var(--i, 0) * var(--note-stagger, .04s));
}

/* 仕切りのピクセル三角など画像は filter で反転させる */
#recommend .rec__divider img{
  display:block;
  width: 22px;
  height: auto;
  image-rendering: pixelated;
  transition: filter var(--invert-transition);
}
/* 反転テーマ中だけ反転 */
body.theme-invert #recommend .rec__divider img{
  filter: invert(1);
}

/* 必要ならボーダー系も currentColor にしておく（任意） */
#recommend .rec{
  border-color: currentColor;
}


html,
body,
.site,
.page-wrap,
main {
  background: var(--page-bg) !important;
  color: var(--page-fg) !important;
  transition: background-color 420ms cubic-bezier(.2,.9,.2,1),
              color 420ms cubic-bezier(.2,.9,.2,1);
}

body:not(.theme-invert) #recommend,
body:not(.theme-invert) .recommend{ background:#fff; color:#000; }

body.theme-invert #recommend,
body.theme-invert .recommend{ background:#000; color:#fff; }

:root {
  --invert-ease: 800ms cubic-bezier(0.16, 1, 0.3, 1); /* ← ゆっくり自然に */
}

/* 反転時 */
body.theme-invert #recommend,
body.theme-invert .recommend {
  background: #000000;
  color: #fff;
  transition: background-color var(--invert-ease),
              color var(--invert-ease);
}

/* 通常時 */
body:not(.theme-invert) #recommend,
body:not(.theme-invert) .recommend {
  background: #fff;
  color: #000;
  transition: background-color var(--invert-ease),
              color var(--invert-ease);
}

/* ドットの基本スタイル（今まで通り） */
.recommend__dots .rec-dot {
  width: var(--dot-size, 14px);
  height: var(--dot-size, 14px);
  background: #000; /* 通常は黒 */
  image-rendering: pixelated;
  opacity: 0;
  transform: translateY(6px) scale(.8);
  /* ←アニメーション設定（既存のdotPopなど）はそのままでOK！ */
}

/* ページが反転したときだけ白に切り替え */
body.theme-invert .recommend__dots .rec-dot {
  background: #fff;
}

body.theme-invert section#recommend .recommend__dots .rec-dot {
  background: #fff;
}



/* ========== Testimonials / お客様の声 ========== */
:root{
  --t-gap: clamp(16px, 3vw, 28px);
  --t-card-w: min(560px, 90vw);
  --t-radius: 14px;
  --t-mask-edge: 8%;
  --t-dot-size: 14px;
  --t-dot-gap: 12px;
  --t-dot-delay: .12s;
  --t-dot-duration: .28s;
}

/* セクション全体 */
.testimonials{
  padding: clamp(56px, 9vw, 120px) 0;
  background: #fff;
}

/* 見出し（左右のドットとタイトル） */
.testimonials__header{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
  margin-bottom: clamp(28px, 6vw, 56px);
  position: relative;
}

/* タイトル */
.testimonials__title{
  font-family: ab-megadot9, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.4rem, 3.6vw, 2.2rem);
  letter-spacing: .05em;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ドット列（左右） */
.testimonials__header::before,
.testimonials__header::after{
  content:"";
  display:block;
}
.testimonials__header::before{ grid-column:1; }
.testimonials__header::after { grid-column:3; }

/* 実ドット（spanで作る版。あなたのHTMLに合わせる） */
.t-dots{                 /* もし使うなら：<div class="t-dots t-dots--left">… */
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: var(--t-dot-gap);
  overflow:hidden;
}
.t-dots--right{ justify-content:flex-start; }
.t-dots .rec-dot{
  display:block;
  width: var(--t-dot-size);
  height: var(--t-dot-size);
  aspect-ratio: 1/1;
  background:#000;
  opacity:0;
  transform: scale(.6);
  flex:0 0 auto;
}
.t-dots.is-inview .rec-dot{
  animation: tDotPop var(--t-dot-duration) steps(1,end) forwards;
  animation-delay: calc(var(--i, 0) * var(--t-dot-delay));
}
@keyframes tDotPop{ to{ opacity:1; transform:scale(1);} }

/* ビューポート（横スライダーの窓） */
.testimonials__viewport{
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 calc(var(--t-gap) + 4px);
  margin-inline: auto;
  max-width: min(960px, 96vw);
  /* 両端フェード（はみ出し感を柔らかく） */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--t-mask-edge), #000 calc(100% - var(--t-mask-edge)), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--t-mask-edge), #000 calc(100% - var(--t-mask-edge)), transparent 100%);
}

/* 右矢印のデコ（必要なければ消してOK） */
.testimonials__viewport::after{
  content: "→";
  position: absolute;
  right: clamp(6px, 1.5vw, 12px);
  top: 50%;
  translate: 0 -50%;
  font-size: clamp(20px, 4vw, 40px);
  line-height: 1;
  opacity: .4;
  pointer-events: none;
}

/* トラック */
.testimonials__track{
  display: flex;
  gap: var(--t-gap);
  width: max-content;
}

/* スライド */
.testimonials__slide{
  flex: 0 0 var(--t-card-w);
  scroll-snap-align: center;
  list-style: none;
}

/* カード */
.tcard{
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(12px, 2.2vw, 16px);
  background: #fff;
  border-radius: var(--t-radius);
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

/* 画像 */
.tcard__media{
  margin: 0;
  overflow: hidden;
  aspect-ratio: 14/9;               /* 560x360 */
  background: #f6f6f6;
}
.tcard__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;                 /* 全体を見せたいなら contain に変更 */
  display: block;
}

/* 本文 */
.tcard__body{
  padding: clamp(14px, 3vw, 20px);
}
.tcard__title{
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  font-weight: 700;
  margin: 0 0 .4em;
}
.tcard__text{
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.85;
}

/* 下の2ボタン */
.testimonials__actions{
  margin-top: clamp(28px, 6vw, 56px);
  display: grid;
  gap: clamp(12px, 2.4vw, 18px);
  justify-content: center;
}
.testimonials__actions .cta-pixel{
  /* ↓ 約20％狭くする（もとの480px→384px相当） */
  min-width: min(340px, 64vw);
  justify-content: center;
}
/* ドラッグ中の演出（任意） */
.testimonials__viewport.is-dragging{
  cursor: grabbing;
  scroll-behavior: auto;
}

/* ========== Blog / めがねBlog ========== */
:root{
  --blog-max: min(960px, 92vw);   /* セクションの最大幅 */
  --blog-gap: clamp(18px, 3vw, 28px);
}

.blog{
  background:#fff;
  padding: clamp(56px, 9vw, 120px) 0;
}

/* 見出し */
.blog__header{
  display:flex;
  justify-content:center;
  margin-bottom: clamp(24px, 6vw, 40px);
}
.blog__title{
  font-family: ab-megadot9, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.4rem, 3.6vw, 2.2rem);
  letter-spacing: .04em;
  text-align:center;
}

/* 記事1件 */
.blog__item{
  font-family: sans-serif;
  max-width: var(--blog-max);
  margin: 0 auto;
}

/* 記事リンク全体をクリック可能に */
.blog__link{
  display: grid;
  gap: var(--blog-gap);
  color: inherit;
  text-decoration: none;
}

/* サムネイル：黒ベース＋16:9で大きめ */
.blog__thumb{
  margin: 0;
  background:#000;                 /* 画像未ロード時も黒い板に */
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.blog__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;               /* 全画面感。全体を見せたいなら contain に */
  display: block;
}

/* 抜粋テキスト */
.blog__excerpt{
  font-family: sans-serif;
  width: 100%;
  margin: 0 auto;                  /* 中央寄せ（左揃えのまま） */
  text-align: left;
  font-size: clamp(1rem, 2.3vw, 1.125rem);
  line-height: 1.9;
  color: #000;
}

/* 一覧ボタン（中央） */
.blog__more{
  margin-top: clamp(28px, 7vw, 56px);
  display: flex;
  justify-content: center;
}
.blog__more .cta-pixel{
  min-width: min(300px, 56vw);     /* 少しコンパクト（必要なら調整） */
  justify-content: center;
}

/* ほんの少しだけのホバー演出（不要なら削除） */
@media (hover:hover){
  .blog__thumb img{ transition: transform .4s ease; }
  .blog__link:hover .blog__thumb img{ transform: scale(1.02); }
}

/* ========== News / お知らせ ========== */
:root{
  --news-max: min(960px, 92vw);
  --news-gap: clamp(16px, 3vw, 28px);
}

.news{
  background:#fff;
  padding: clamp(56px, 9vw, 120px) 0;
}

/* 見出し */
.news__header{
  display:flex;
  justify-content:center;
  margin-bottom: clamp(24px, 6vw, 40px);
}
.news__title{
  font-family: ab-megadot9, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.4rem, 3.6vw, 2.2rem);
  letter-spacing: .04em;
  text-align:center;
}

/* 記事 */
.news__item{
  max-width: var(--news-max);
  margin: 0 auto;
}
.news__link{
  display: grid;
  gap: var(--news-gap);
  color: inherit;
  text-decoration: none;
}

.news__list{
  list-style: none;
  margin: 0;
  padding: 0;
}

/* サムネイル */
/* 16:9枠でトリミング（拡大はする） */
.news__thumb{
  margin:0;
  aspect-ratio:16/9;
  background:#fff;                /* 帯の色 */
  display:grid;
  place-items:center;
  overflow:hidden;
}
.news__thumb img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;             /* ← ここがポイント */
  object-position:center;
  display:block;
}

/* 画像全体を見せたい“記事だけ”は contain にしたい場合（任意で使い分け） */
.news__thumb--contain img{
  object-fit: contain;
  background:#fff; /* 好みで */
}
/* 日付・タイトル部分 */
.news__meta{
  display: grid;
  gap: .4em;
  text-align: left;
  max-width: 58ch;
  margin: 0 auto;
}
.news__date{
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  letter-spacing: .02em;
}
.news__title-sub{
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  font-weight: 700;
  line-height: 1.6;
}

/* 一覧ボタン */
.news__more{
  margin-top: clamp(28px, 7vw, 56px);
  display: flex;
  justify-content: center;
}
.news__more .cta-pixel{
  min-width: min(300px, 56vw);  /* blogと同サイズ */
  justify-content: center;
}

/* ほんのりホバー */
@media (hover:hover){
  .news__thumb img{ transition: transform .4s ease; }
  .news__link:hover .news__thumb img{ transform: scale(1.02); }
}

/* ========== Contact / お問い合わせ ========== */
:root{
  --contact-gap: clamp(16px, 3vw, 28px);
  --contact-btn-w: min(360px, 80vw);
  --contact-radius: 2px;
}

/* セクション全体 */
.contact{
  background:#fff;
  padding: clamp(56px, 9vw, 120px) 0;
  text-align:center;
}

/* 見出し */
.contact__header{
  margin-bottom: clamp(24px, 6vw, 40px);
}
.contact__title{
  font-family: ab-megadot9, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.4rem, 3.6vw, 2.2rem);
  letter-spacing: .05em;
  text-align:center;
}

/* ボタンコンテナ */
.contact__buttons{
  display:grid;
  gap: var(--contact-gap);
  justify-content:center;
  margin-top: clamp(16px, 3vw, 32px);
}

/* ボタン共通 */
.contact__btn{
  display:flex;
  justify-content:center;
  align-items:center;
  width: var(--contact-btn-w);
  height: clamp(56px, 8vw, 68px);
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  font-family: ab-megadot9, sans-serif;
  text-decoration:none;
  color:#fff;
  border-radius: var(--contact-radius);
  transition: transform .15s ease, filter .25s ease;
}

/* LINEボタン */
.contact__btn--line{
  background:#4CAF50;
}
.contact__btn--line:hover{
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* お問い合わせフォームボタン */
.contact__btn--form{
  background:#000;
}
.contact__btn--form:hover{
  filter: brightness(1.2);
  transform: translateY(-2px);
}

/* スマホでのタップ強調 */
@media (hover:none){
  .contact__btn:active{
    transform:scale(0.97);
  }
}

/* ========== Footer / デジタルめがね ========== */
/* フッター全体は中央配置、テキストは左揃え */
.footer{
  background:#fff;
  padding: clamp(56px, 9vw, 100px) 0 0;
  border-top: 1px solid #e5e5e5;
  font-family: ab-megadot9, sans-serif;
  font-weight: 400;
  letter-spacing: .03em;
  font-size: clamp(0.9rem, 1.9vw, 1.05rem);
}

/* ★ ここがポイント：幅を制限して margin:auto で中央に */
.footer__inner{
  max-width: min(960px, 94vw);
  width: auto;                 /* ← 100% をやめる */
  margin-inline: auto;         /* ← コンテナ自体を中央に */
  padding-inline: clamp(12px, 2vw, 24px);
  display: grid;
  gap: clamp(28px, 5vw, 50px);
  justify-items: start;        /* ← テキストは左揃えのまま */
  text-align: left;
}

/* ロゴ部分：左寄せ */
.footer__brand{
  display: flex;
  align-items: center;
  justify-content: flex-start; /* ← 中央→左 */
  gap: clamp(12px, 2vw, 20px);
}
.footer__brand img{
  display: block;
  margin: 0 auto;
  width: 60%;
  height: auto;
  image-rendering: pixelated;
}

/* ナビゲーション */
.footer__nav{
  width: 100%;
}
.footer__list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  justify-items: start; /* ← 左揃え */
  row-gap: clamp(8px, 1.6vw, 14px);
  column-gap: clamp(40px, 6vw, 60px);
}
.footer__list a{
  color: #000;
  text-decoration: none;
  transition: opacity .2s ease;
  font-size: clamp(0.85rem, 2vw, 1rem); /* ← 小さめ */
  letter-spacing: 0.04em;
}
.footer__list a:hover{
  opacity: .6;
}

/* ========= コピーライト部分 ========= */
.footer__bottom {
  border-top: 1px solid #e5e5e5;
  margin-top: clamp(40px, 6vw, 80px);
  padding: clamp(20px, 3vw, 32px) 0;
  text-align: center;
}

.footer__copy {
  display: block;
  font-size: clamp(0.75rem, 1.6vw, 0.9rem);
  color: #777;
  letter-spacing: 0.05em;
}


/* スマホ（2列→1列） */
@media (max-width: 520px){
  .footer__list{
    grid-template-columns: 1fr 1fr;
  }
}

/* さらに小さい端末で縦並び */
@media (max-width: 360px){
  .footer__list{
    grid-template-columns: 1fr;
  }
}



/* ========== About / デジタルめがねとは ========== */
:root{
  --mx: min(760px, 92vw);
  --space1: clamp(10px, 2.4vw, 16px);
  --space2: clamp(18px, 4vw, 28px);
  --space3: clamp(28px, 8vw, 56px);
  --pix: 14px;                 /* ピクセル装飾の基本サイズ */
}

/* レイアウト共通 */
.about{
  background:#fff;
  color:#000;
  padding: var(--space2) 0 var(--space3);
  font-feature-settings: "palt";
}
.about * { box-sizing: border-box; }

.about__mast{
  max-width: var(--mx);
  margin: 0 auto;
  position: relative;
  min-height: 44px;
}
.about__brand{
  margin: 0;
  font-size: clamp(.78rem, 2.4vw, .92rem);
  letter-spacing: .02em;
  line-height: 1;
  padding-left: calc(var(--pix) * 6 + 10px);
  padding-top: 4px;
}

/* 左上のチェック模様 */
.about__deco{
  position: absolute;
  top: 0;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.about__deco--left{ left: 0; }
.about__deco--right{ right: 0; }
.about__deco .sq,
.about__deco .dot{
  width: var(--pix);
  height: var(--pix);
  background:#000;
  image-rendering: pixelated;
}
.about__deco--left .sq:nth-child(2),
.about__deco--left .sq:nth-child(5){ transform: translateY(-6px); }
.about__deco--left .sq:nth-child(3),
.about__deco--left .sq:nth-child(6){ transform: translateY(-12px); }

/* タイトル */
.about__lead{
  max-width: var(--mx);
  margin: var(--space3) auto var(--space2);
  text-align: center;
}
.about__title{
  font-family: ab-megadot9, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.2rem, 4.4vw, 1.8rem);
  letter-spacing: .04em;
  margin: 0 0 .4em;
}
.about__subtitle{
  font-family: ab-megadot9, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(.9rem, 3.4vw, 1.1rem);
  margin: 0;
  opacity: .9;
}

/* 斜めのビジュアル */
.about__visual{
  max-width: var(--mx);
  margin: var(--space3) auto;
  margin-top: 50px;
}
.about-tilt{
  width: min(360px, 74vw);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: clamp(12px, 3vw, 16px);
  transform: rotate(-12deg);
}
.about-tilt__word{
  font-family: ab-megadot9, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.8rem, 10vw, 2.6rem);
  letter-spacing: .08em;
  display: block;
}
.about-tilt__glasses{
  width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
}

/* 本文テキスト */
.about__body{
  max-width: var(--mx);
  margin: var(--space3) auto 0;
  padding-inline: clamp(12px, 4vw, 20px);
}
.about__body p{
  margin: 0 0 var(--space2);
  font-size: clamp(1rem, 3.6vw, 1.125rem);
  line-height: 2.0;
}

/* ちょい大きめ画面で余白調整 */
@media (min-width: 960px){
  .about__visual{ margin: calc(var(--space3) * 1.2) auto; }
  .about-tilt{ transform: rotate(-10deg); }
}

/* ========== Owner / 代表めがね ========== */
:root{
  --owner-max: min(720px, 92vw);
  --owner-gap: clamp(16px, 4vw, 28px);
}

.owner{
  background:#fff;
  padding: clamp(48px, 9vw, 96px) 0;
  color:#000;
}

/* 見出し */
.owner__header{
  display:flex;
  justify-content:center;
  margin-bottom: clamp(16px, 4vw, 24px);
}
.owner__title{
  font-family: ab-megadot9, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.2rem, 3.8vw, 1.6rem);
  letter-spacing: .04em;
}

/* 写真 */
.owner__figure{
  max-width: var(--owner-max);
  margin: 0 auto;
  display: grid;
  place-items: center;
}
.owner__figure img{
  width: min(250px, 52vw);
  height: auto;
  display:block;
  object-fit: cover;
  background:#eaeef2;               /* 画像未ロードの下地 */
}


/* 名前 */
.owner__name{
  font-family: ab-megadot9, sans-serif;
  font-weight: 400;
  font-style: normal;
  text-align:center;
  font-size: clamp(1.1rem, 3.6vw, 1.4rem);
  letter-spacing: .06em;
  margin: 0 0 var(--owner-gap);
}

/* 略歴 */
.owner__bio{
  max-width: var(--owner-max);
  margin: 0 auto var(--owner-gap);
  padding-inline: clamp(10px, 3vw, 16px);
  text-align: left;
  margin-bottom: 50px;
}
.owner__bio p{
  margin: 0 0 clamp(14px, 3.2vw, 18px);
  font-size: clamp(1rem, 3.6vw, 1.125rem);
  line-height: 2.0;
}

/* CTA */
.owner__cta{
  display:flex;
  justify-content:center;
  margin-top: clamp(20px, 5vw, 32px);
}
.owner__cta .cta-pixel{
  min-width: min(380px, 76vw);
  justify-content: center;
}

/* アクセシビリティ用（隠しテキスト） */
.visually-hidden{
  position:absolute !important;
  width:1px;height:1px;overflow:hidden;
  clip:rect(1px,1px,1px,1px);white-space:nowrap;
}

/* ========== Services / WEB 制作サービス ========== */
:root{
  --services-max: min(920px, 92vw);      /* 本文幅 */
  --services-gap: clamp(18px, 4vw, 28px);
  --services-block: clamp(48px, 10vw, 120px);
}

.services{
  background:#fff;
  color:#000;
  padding: var(--services-block) 0;
}

/* タイトル */
.services__title{
  font-family: ab-megadot9, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.4rem, 4.6vw, 2rem);
  letter-spacing: .04em;
  text-align:center;
  margin: 0 0 clamp(16px, 4vw, 24px);
}

/* ビジュアル */
.services__visual {
  margin: 0;
  display: grid;
  place-items: center;
  margin-inline: auto;
  width: min(360px, 50vw);
}

.services__visual img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
}

/* Gridで伸びないようにする（幅指定が効くように） */
.services__visual {
  justify-self: center;  /* 重要 */
  align-self: center;    /* 任意：縦もセンターに */
}

/* PCのときだけ約30%小さくする */
@media (min-width: 1024px) {
  .services .services__visual {
    width: clamp(220px, 28vw, 360px); /* 目安：従来比 ~70% */
    margin-inline: auto;
  }
  .services .services__visual img {
    width: 100%;
    height: auto;
  }
}




/* テキスト */
.services__intro{
  max-width: var(--services-max);
  margin: clamp(28px, 6vw, 48px) auto 0;
  padding-inline: clamp(12px, 3vw, 16px);
  font-family: sans-serif;
  font-weight: 300;
  font-style: normal;
}
.services__intro p{
  margin: 0 0 var(--services-gap);
  font-size: clamp(1rem, 3.6vw, 1.125rem);
  line-height: 2.05;
  text-align: left;
}

/* ちょい大きめ画面で余白を広げるだけ */
@media (min-width: 960px){
  .services{ padding: clamp(72px, 10vh, 140px) 0; }
  .services__visual{ width: min(640px, 64vw); }
}

/* ===== Services note ===== */
:root{
  --dot-size: 14px;
  --dot-gap: 10px;
  --note-max: min(920px, 92vw);
  --note-dur: .38s;
  --note-stagger: 90ms;
}

.svc-note{
  background:#fff;
  color:#000;
  padding: clamp(40px, 9vw, 96px) 0;
}

/* ドット行 */
.svc-note__dots{
  max-width: var(--note-max);
  margin: 0 auto clamp(32px, 7vw, 56px);
  display: flex;
  gap: var(--dot-gap);
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  min-height: var(--dot-size);
}
.svc-note__dots .dot{
  display: block;                   /* ← inline をやめる */
  width: var(--dot-size);
  height: var(--dot-size);
  aspect-ratio: 1 / 1;              /* 念のため正方形を保証 */
  flex: 0 0 auto;                   /* flex で伸びないよう固定 */
  line-height: 0;                   /* 行の高さの影響を遮断 */
  background:#000;
  image-rendering: pixelated;
  opacity: 0;
  transform: translateY(6px) scale(.8);
}

/* 画面に入ったら左→右にポップ */
.svc-note__dots.is-inview .dot{
  animation: dotPop var(--note-dur) steps(1,end) forwards;
  animation-delay: calc(var(--i, 0) * var(--note-stagger));
}
@keyframes dotPop{
  to { opacity:1; transform: translateY(0) scale(1); }
}

/* 本文 */
.svc-note__body{
  max-width: var(--note-max);
  margin: 0 auto;
  padding-inline: clamp(12px, 3vw, 16px);
}
.svc-note__body p{
  font-family: sans-serif;
  margin: 0 0 clamp(18px, 4vw, 28px);
  font-size: clamp(1rem, 3.6vw, 1.125rem);
  line-height: 2.05;
  opacity: 0;
  transform: translateY(16px);
  will-change: transform, opacity;
}

/* 本文もディレイで順次フェードアップ */
.svc-note__body.is-inview p{
  animation: noteFade .8s cubic-bezier(.2,.7,.2,1) forwards;
}
.svc-note__body.is-inview p:nth-child(1){ animation-delay: .05s; }
.svc-note__body.is-inview p:nth-child(2){ animation-delay: .25s; }
.svc-note__body.is-inview p:nth-child(3){ animation-delay: .45s; }

@keyframes noteFade{
  to{ opacity:1; transform: translateY(0); }
}

/* モーション配慮 */
@media (prefers-reduced-motion: reduce){
  .svc-note__dots .dot,
  .svc-note__body p{
    opacity:1 !important;
    transform:none !important;
    animation:none !important;
  }
}

/* アクセシビリティ用 */
.visually-hidden{
  position:absolute !important; width:1px; height:1px; overflow:hidden;
  clip:rect(1px,1px,1px,1px); white-space:nowrap;
}

/* ===== CTA Buttons (Digital Megane style) ============================== */
:root{
  --cta-font: clamp(18px, 2.2vw, 28px);
  --cta-pad-y: clamp(14px, 2vw, 20px);
  --cta-pad-x: clamp(20px, 4vw, 40px);
  --cta-border: 3px;
  --cta-offset: 10px; /* 外枠のズラし量 */
  --cta-square: 14px; /* 右上の“ドット”サイズ */
  --cta-square-gap: 6px;
}

.sr-only{
  position:absolute; inline-size:1px; block-size:1px;
  margin:-1px; padding:0; border:0; overflow:hidden; clip:rect(0 0 0 0);
}

.cta-list{
  list-style:none; padding:0; margin:0;
  display:grid; gap: clamp(18px, 3.2vw, 28px);
  max-inline-size: min(940px, 88vw);
}

.cta-btn{
  position:relative;
  display:flex; align-items:center; gap:1rem;
  padding: var(--cta-pad-y) var(--cta-pad-x);
  font-size: var(--cta-font);
  line-height:1.3;
  background:#fff; color:#000; text-decoration:none;
  border: var(--cta-border) solid #000;
  image-rendering: pixelated; /* ドット表現を保つ */
  transition: transform .08s steps(1,end);
}

/* ずらした外枠（背面の黒枠） */
.cta-btn::after{
  content:"";
  position:absolute; inset:0;
  border: var(--cta-border) solid #000;
  background:#fff;
  transform: translate(var(--cta-offset), var(--cta-offset));
  z-index:-1;
}

/* ラベルと右側の“ドット” */
.cta-btn__label{ flex:1; }

.cta-btn__icon{
  display:inline-grid;
  grid-auto-flow:column;
  gap: var(--cta-square-gap);
  align-items:center;
}

.cta-btn__icon i{
  display:block;
  inline-size: var(--cta-square);
  block-size: var(--cta-square);
  background:#000;
  image-rendering: pixelated;
}

/* ホバー／フォーカス：少し持ち上げる感じ */
.cta-btn:hover,
.cta-btn:focus-visible{
  transform: translate(-2px, -2px);
}
.cta-btn:hover::after,
.cta-btn:focus-visible::after{
  transform: translate(calc(var(--cta-offset) + 2px), calc(var(--cta-offset) + 2px));
  /* 影のズレ量を保つ */
}

/* アクセシビリティ：フォーカスリング */
.cta-btn:focus-visible{
  outline: 3px dashed #000;
  outline-offset: 4px;
}

/* レイアウト余白（親セクション内で調整） */
.cta-links{ margin-inline:auto; }

/* ---------------------------------------------------
   ピクセルボタン配置用：全体レイアウト
--------------------------------------------------- */
.cta-section {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
  justify-content: center;
  margin-block: clamp(32px, 6vw, 56px);
}

.cta-section .cta-pixel {
  width: clamp(260px, 80vw, 380px); /* 画面サイズに応じて可変、最大380px程度 */
}

/* テキスト中央寄せをしっかり確保 */
.cta-pixel__label {
  flex: 1;
  text-align: center;
}
/* 既存の .cta-pixel 〜 .cta-pixel__icon img はあなたのCSSを使用 */

/* ========== Graphics / グラフィックデザイン ========== */
:root{
  --graphics-max: min(920px, 92vw);      /* 本文幅 */
  --graphics-gap: clamp(18px, 4vw, 28px);
  --graphics-block: clamp(48px, 10vw, 120px);
}

.graphics{
  background:#fff;
  color:#000;
  padding: var(--graphics-block) 0;
}

/* タイトル */
.graphics__title{
  font-family: ab-megadot9, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.4rem, 4.6vw, 2rem);
  letter-spacing: .04em;
  text-align:center;
  margin: 0 0 clamp(18px, 4vw, 26px);
}

/* ビジュアル（スクショのサイズ感に寄せる） */
.graphics__visual{
  margin: 0;
  display: grid;
  place-items: center;
  margin-inline: auto;
  width: min(420px, 58vw); /* 少し大きめ表示 */
}

.graphics__visual img{
  width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
}

/* Grid伸び対策＋中央寄せ（container側） */
.graphics__visual {
  justify-self: center;   /* ← グリッドの伸び(stretch)をやめて中央配置 */
  align-self: center;     /* 任意 */
  display: grid;          /* 既に付いていればOK */
  place-items: center;    /* 中身を中央に */
}

/* PCだけ小さくする（containerの幅を絞る） */
@media (min-width: 1024px) {
  .graphics__visual {
    width: clamp(220px, 28vw, 360px); /* 約30%縮小 */
    margin-inline: auto;
  }
  .graphics__visual img {
    width: 70%;   /* ← “コンテナ幅にフィット” させる */
    height: auto;
    display: block;
    image-rendering: pixelated;
  }
}



/* テキスト */
.graphics__intro{
  max-width: var(--graphics-max);
  margin: clamp(56px, 10vw, 96px) auto 0; /* アイコンとの間を広めに */
  padding-inline: clamp(12px, 3vw, 16px);
  font-family: sans-serif;
  font-weight: 300;
  font-style: normal;
}

.graphics__intro p{
  margin: 0 0 var(--graphics-gap);
  font-size: clamp(1rem, 3.6vw, 1.125rem);
  line-height: 2.05;
  text-align: left;
}

/* ちょい大きめ画面で余白とビジュアル拡大 */
@media (min-width: 960px){
  .graphics{ padding: clamp(72px, 10vh, 140px) 0; }
  .graphics__visual{ width: min(560px, 50vw); }
}

/*-----------ここから料金プラン--------------*/

.dm-plan {
  font-family: ab-megadot9, sans-serif;
  font-weight: 400;
  font-style: normal;
  background: #fff;
  color: #000;
  text-align: center;
  padding: 2em 1em;
  line-height: 1.8;
}

.dm-plan__title {
  font-size: 1.5em;
  margin-bottom: 1em;
}

.dm-plan__lead {
  font-family: sans-serif;
  font-size: clamp(1.1rem, 2.8vw, 1.4rem);
  font-weight: bold;
}

.dm-plan__desc {
  font-family: sans-serif;
  font-size: clamp(0.95rem, 2.4vw, 1.2rem);
  margin: 2em auto;
  max-width: 500px;
  text-align: left; /* ←ここを追加 */
}

.dm-plan__desc strong {
  font-weight: bold;
}

.dm-plan__icon {
  margin: 3em auto;
  width: 24px;
  height: 24px;
  display: grid;
  grid-template-columns: repeat(3, 8px);
  grid-template-rows: repeat(3, 8px);
  gap: 0;
}

.dm-plan__icon span {
  width: 8px;
  height: 8px;
  background: #000;
}

.dm-plan__icon span.hide {
  background: transparent;
}

.dm-plan__list {
  list-style: none;
  padding: 0;
  margin-top: 2em;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  align-items: center; 
}

.dm-plan__item {
  display: flex;
  align-items: center;
  font-size: 1.1em;
}

.dm-plan__dot {
  width: 12px;
  height: 12px;
  background: #000;
  margin-right: 0.75em;
}

.dm-plan__link {
  color: inherit;
  text-decoration: none;
  position: relative;
}

.dm-plan__link:hover {
  text-decoration: underline;
}

.dm-plan-entry {
  font-family: sans-serif;
  font-weight: 400;
  font-style: normal;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 4em auto;
  padding: 0 1em;
  max-width: 480px;
}

.dm-plan-entry__bubble {
  border: 2px dotted #000;
  padding: 1.8em 2em;
  text-align: center;
  margin-bottom: -1.2em;
  background: #fff;
  position: relative;
  z-index: 2;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.dm-plan-entry__bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(315deg); /* ← ここを変更！ */
  width: 16px;
  height: 16px;
  background: #fff;
  border-left: 2px dotted #000;  /* 左辺 */
  border-bottom: 2px dotted #000; /* 下辺 */
}


.dm-plan-entry__box {
  border: 1px solid #000;
  padding: 3em 2em;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.dm-plan-entry__title {
  font-family: ab-megadot9, sans-serif;
  text-align: center;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin-bottom: 1.2em;
}

.dm-plan-entry__price {
  text-align: center;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  margin-bottom: 1.2em;
}

.dm-plan-entry__yen strong {
  font-size: 1.6em;
}

.dm-plan-entry__tax {
  font-size: 0.9em;
  color: #333;
}

.dm-plan-entry__pages {
  text-align: center;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: bold;
  margin-bottom: 0.5em;
}

.dm-plan-entry__page-num {
  font-size: 1.4em;
}

.dm-plan-entry__structure {
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 2em;
}

.dm-plan-entry__divider {
  border: none;
  border-top: 1px dashed #000;
  margin: 2em 0;
}

.dm-plan-entry__features {
  font-size: 0.95rem;
  line-height: 2;
  padding-left: 1em;
  text-align: left;
}

.dm-plan-pro {
  font-family: sans-serif;
  font-weight: 400;
  font-style: normal;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 4em auto;
  padding: 0 1em;
  max-width: 480px;
}

.dm-plan-pro__bubble {
  border: 2px dotted #000;
  padding: 1.8em 2em;
  text-align: center;
  margin-bottom: -1.2em;
  background: #fff;
  position: relative;
  z-index: 2;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.dm-plan-pro__bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(315deg); /* ← 修正済み：下向きドット吹き出し */
  width: 16px;
  height: 16px;
  background: #fff;
  border-left: 2px dotted #000;
  border-bottom: 2px dotted #000;
}

.dm-plan-pro__box {
  border: 1px solid #000;
  padding: 3em 2em;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.dm-plan-pro__title {
  font-family: ab-megadot9, sans-serif;
  text-align: center;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin-bottom: 1.2em;
}

.dm-plan-pro__price {
  text-align: center;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  margin-bottom: 1.2em;
}

.dm-plan-pro__yen strong {
  font-size: 1.6em;
}

.dm-plan-pro__tax {
  font-size: 0.9em;
  color: #333;
}

.dm-plan-pro__pages {
  text-align: center;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: bold;
  margin-bottom: 0.5em;
}

.dm-plan-pro__page-num {
  font-size: 1.4em;
}

.dm-plan-pro__structure {
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 2em;
}

.dm-plan-pro__divider {
  border: none;
  border-top: 1px dotted #000;
  margin: 2em 0;
}

.dm-plan-pro__features {
  font-size: 0.95rem;
  line-height: 2;
  padding-left: 1em;
  text-align: left;
}

.dm-plan-premium {
  font-family: sans-serif;
  font-weight: 400;
  font-style: normal;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 4em auto;
  padding: 0 1em;
  max-width: 480px;
}

.dm-plan-premium__bubble {
  border: 2px dotted #000;
  padding: 1.8em 2em;
  text-align: center;
  margin-bottom: -1.2em;
  background: #fff;
  position: relative;
  z-index: 2;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.dm-plan-premium__bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(315deg); /* ← 下向きのドット矢印 */
  width: 16px;
  height: 16px;
  background: #fff;
  border-left: 2px dotted #000;
  border-bottom: 2px dotted #000;
}

.dm-plan-premium__box {
  border: 1px solid #000;
  padding: 3em 2em;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.dm-plan-premium__title {
  font-family: ab-megadot9, sans-serif;
  text-align: center;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin-bottom: 1.2em;
}

.dm-plan-premium__price {
  text-align: center;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  margin-bottom: 1.2em;
}

.dm-plan-premium__yen strong {
  font-size: 1.6em;
}

.dm-plan-premium__tax {
  font-size: 0.9em;
  color: #333;
}

.dm-plan-premium__pages {
  text-align: center;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: bold;
  margin-bottom: 0.5em;
}

.dm-plan-premium__page-num {
  font-size: 1.4em;
}

.dm-plan-premium__structure {
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 2em;
}

.dm-plan-premium__divider {
  border: none;
  border-top: 1px dotted #000;
  margin: 2em 0;
}

.dm-plan-premium__features {
  font-size: 0.95rem;
  line-height: 2;
  padding-left: 1em;
  text-align: left;
}

.dm-plan-notes {
  font-family: sans-serif;
  font-weight: 400;
  font-style: normal;
  padding: 3em 1em;
  max-width: 700px;
  margin: 4em auto;
  border-top: 2px solid #000;
}

.dm-plan-notes__title {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: bold;
  text-align: left;
  margin-bottom: 2em;
}

.dm-plan-notes__block {
  margin-bottom: 2em;
}

.dm-plan-notes__heading {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: bold;
  margin-bottom: 0.8em;
  border-left: 4px solid #000;
  padding-left: 0.5em;
}

.dm-plan-notes__block ul {
  padding-left: 1.5em;
  margin: 0;
}

.dm-plan-notes__block li {
  font-size: clamp(0.95rem, 2.3vw, 1.1rem);
  margin-bottom: 0.6em;
  line-height: 1.7;
}

.dm-payment {
  text-align: center;
  padding: 0em 1em 4em 1em;
  font-family: sans-serif;
}

.dm-payment__text {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: bold;
  margin-bottom: 1.5em;
}

.dm-payment__logo {
  display: flex;
  justify-content: center; /* ← 中央配置 */
  margin-bottom: 2em;
}

.dm-payment__logo img {
  width: clamp(120px, 30vw, 220px);
  height: auto;
}

/* カードロゴ部分 */
.dm-payment__cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1em;
  max-width: 600px;
  margin: 0 auto;
}

/* 各カードロゴ */
.dm-payment__cards img {
  height: 36px;
  max-width: 70px;
  object-fit: contain;
}

/* ---------------------------
   レスポンシブ設定
--------------------------- */

/* スマホ（〜768px）：2段に分かれるように設定 */
@media (max-width: 768px) {
  .dm-payment__cards {
    flex-wrap: wrap;
    justify-content: center;
  }

  .dm-payment__cards img {
    flex: 1 1 calc(33.333% - 1em); /* 3枚×2段に並ぶように */
    max-width: 80px;
  }
}

/* PC（769px〜）：1行で並ぶ */
@media (min-width: 769px) {
  .dm-payment__cards {
    flex-wrap: nowrap;
    justify-content: center;
  }
}

/* ----- 制作フロー -----------------------*/

.dm-flow {
  text-align: center;
  padding: 4em 1em;
  background: #fff;
}

.dm-flow__inner {
  max-width: 800px;
  margin: 0 auto;
}

.dm-flow__title {
  font-family: ab-megadot9, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 2em;
}

.dm-flow__text {
  font-size: clamp(1rem, 3vw, 1.25rem);
  line-height: 1.8;
  font-weight: 500;
}

.dm-step {
  max-width: 860px;
  margin: 0 auto;
  padding: 2em 1em;
  background: #fff;
}

.dm-step__header {
  display: flex;
  align-items: center;
  background: #eee;
  padding: 1em;
  font-size: 1.4rem;
  gap: 1em;
}

.dm-step__number {
  font-size: 2rem;
  font-weight: bold;
  display: inline-block;
  font-family: 'Courier New', monospace;
}

.dm-step__heading {
  font-weight: bold;
}

/* ステップ内容配置 */
.dm-step__body {
  display: flex;
  padding-top: 2em;
  gap: 2em;
  align-items: flex-start;
}

/* 左側ドット列（縦） */
.dm-step__dots {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  padding-top: 0.5em;
}

.dm-step__dots .dot {
  width: 12px;
  height: 12px;
  background: #000;
  opacity: 0;
  animation: dotFadeDown 1s ease-out forwards;
  animation-delay: calc(var(--i) * 0.2s);
}

/* アニメーション：上から下へ順次表示 */
@keyframes dotFadeDown {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dm-step__content {
  flex: 1;
}

.dm-step__content p {
  font-size: 1rem;
  line-height: 2;
  margin-bottom: 2em;
}

.dm-step__buttons {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.btn {
  text-align: center;
  padding: 1em 2em;
  font-size: 1.2rem;
  font-family: 'PixelMplus10', sans-serif;
  border: none;
  text-decoration: none;
  display: inline-block;
}

.btn--line {
  background-color: #4caf50;
  color: #fff;
}

.btn--form {
  background-color: #000;
  color: #fff;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .dm-step__body {
    flex-direction: column;
    align-items: center;
  }

  .dm-step__dots {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.section-bar {
  display: flex;
  align-items: center;
  background-color: #ccc;
  padding: 12px 16px;
  font-family: 'ab-megadot9', sans-serif;
  margin-bottom: 24px;
}

.section-bar__num {
  font-size: 2rem;
  font-weight: bold;
  margin-right: 12px;
}

.section-bar__title {
  font-family: sans-serif;
  font-size: 1.5rem;
  margin: 0;
}


:root {
  --dot-size: 16px;
  --dot-gap: 12px;
  --dot-dur: 0.6s;
  --dot-stagger: 0.1s;
}

/* セクション全体 */
.contact-section {
  padding: 10px 20px;
  background-color: #fff;
}

.contact__inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

/* ドット縦 */
.dot {
  width: var(--dot-size);
  height: var(--dot-size);
  background: #000;
  opacity: 0;
  transform: translateY(8px) scale(0.8);
}

/* 表示されたときだけ発火 */
.dot-column.is-inview .dot {
  animation: dotFadeUp var(--dot-dur) ease-out forwards;
  animation-delay: calc(var(--i) * var(--dot-stagger));
}

@keyframes dotFadeUp {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* テキストとボタン */
.contact__content {
  flex: 1;
}

.contact__text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.contact__buttons_flow {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start; /* 左寄せにして幅指定が効くように */
}

.btn {
  display: inline-block;
  text-align: center;
  padding: 12px;
  font-weight: bold;
  text-decoration: none;
  width: 80%; /* ← ここで幅を80%に設定（20%狭め） */
  max-width: 400px; /* 任意。広がりすぎ防止 */
  font-size: 1.1rem;
}

/* ボタン個別設定 */
.btn--line {
  font-family: ab-megadot9, sans-serif;
  background-color: #4caf50;
  color: #fff;
  display: block;
  text-align: center;
  padding: 1rem;
  margin: 0rem auto;
  text-decoration: none;
}

.btn--form {
  font-family: ab-megadot9, sans-serif;
  background-color: #000;
  color: #fff;
  display: block;
  text-align: center;
  padding: 1rem;
  margin: 0rem auto;
  text-decoration: none;
}

.hearing-section {
  padding: 10px 20px;
  background-color: #fff;
}

.hearing__inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.hearing__content {
  flex: 1;
}

.hearing__text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.hearing__list {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
  font-size: 1.1rem;
  line-height: 1.8;
}

@media screen and (max-width: 600px) {
  :root {
    --dot-size: 10px; /* 元の16pxの90%に */
  }
}

.section-bar {
  width: 100vw; /* 画面幅いっぱいに広げる */
  position: relative;
  margin-left: calc(-50vw + 50%); /* 親の中央寄せ（max-widthなど）を打ち消す */
  background: #ccc; /* ←必要に応じて背景色 */
  padding: 0.5em 1em;
}

:root {
  --dot-size: 16px;
  --dot-gap: 12px;
  --dot-dur: 0.6s;
  --dot-stagger: 0.1s;
}

/* セクション全体 */
.rough-section {
  padding: 10px 20px;
  background-color: #fff;
}

.rough__inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

/* ドット縦 */
.dot-column {
  display: flex;
  flex-direction: column;
  gap: var(--dot-gap);
  align-items: center;
  justify-content: flex-start;
  width: var(--dot-size);
}

/* 初期：動かさない */
.dot-column .dot{
  opacity: 0;
  transform: translateY(8px) scale(.8);
  animation: none;
}

/* 見えた列だけ発火（delayはCSSで） */
.dot-column.is-inview .dot{
  animation-name: dotFadeUp;
  animation-duration: var(--dot-dur, .6s);
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  animation-delay: calc(var(--i, 0) * var(--dot-stagger, .1s)); /* ← これが“ポツポツ” */
}

@keyframes dotFadeUp{
  from { opacity: 0; transform: translateY(8px) scale(.8); }
  to   { opacity: 1; transform: translateY(0)  scale(1); }
}



/* コンテンツ */
.rough__content {
  flex: 1;
}

.rough__text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.rough__text strong {
  font-weight: bold;
}

/* スマホ対応 */
@media screen and (max-width: 600px) {
  :root {
    --dot-size: 10px; /* 元の16pxの90%に */
  }
}

/* タイトルバー（共通） */
.section-bar {
  width: 100vw;
  position: relative;
  margin-left: calc(-50vw + 50%);
  background: #ccc;
  padding: 0.5em 1em;
}

.section-bar__num {
  font-family: ab-megadot9, sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  margin-right: 0.5em;
}

.section-bar__title {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: bold;
}

/* 04 ご契約・ご発注（ラフ案と同デザイン） */
.contract-section {
  padding: 10px 20px;
  background-color: #fff;
}

.contract__inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.contract__content {
  flex: 1;
}

.contract__text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* 05 写真など素材のご共有（ラフ案と同デザイン） */
.assets-section {
  padding: 10px 20px;
  background-color: #fff;
}

.assets__inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.assets__content { flex: 1; }

.assets__text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* 06 デザイン制作（ラフ案と同デザイン） */
.design-section {
  padding: 10px 20px;
  background-color: #fff;
}

.design__inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.design__content { flex: 1; }

.design__text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* 07 デザイン確認・承認（ラフ案と同デザイン） */
.check-section {
  padding: 10px 20px;
  background-color: #fff;
}

.check__inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.check__content { flex: 1; }

.check__text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* 08 サイト制作（ラフ案と同デザイン） */
.site-section {
  padding: 10px 20px;
  background-color: #fff;
}

.site__inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.site__content { flex: 1; }

.site__text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* 09 サイト公開（ラフ案と同デザイン） */
.release-section {
  padding: 10px 20px;
  background-color: #fff;
}

.release__inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.release__content { flex: 1; }

.release__text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* 10 サイト運営サポート（ラフ案と同デザイン） */
.support-section {
  padding: 10px 20px 50px;
  background-color: #fff;
}

.support__inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.support__content { flex: 1; }

.support__text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

:root{
  --content-max: 800px;     /* .rough__inner 等の max-width に合わせる */
  --dot-size: 16px;
  --dot-gap: 12px;
}

/* フルブリードのバー */
.section-bar{
  width: 100vw;
  position: relative;
  margin-left: calc(-50vw + 50%);
  background: #ccc;
  padding-block: .5em;            /* 上下 */
  padding-inline: 1em;            /* モバイルの既存余白を維持 */
}

/* PCのときだけ、本文左端（中央寄せ領域の左）+ ドット幅ぶん押し込む */
@media (min-width: 960px){
  .section-bar{
    padding-left: calc(
      (100vw - min(var(--content-max), 100%)) / 2
      /* ← もともとは「ドットの右端」基準なので… */
      + (var(--dot-size) / 2) /* ここを左端基準にする */
    );
  }
}

@media (min-width: 960px){
  .dot-column--pc-5 .dot:nth-child(n+6){ display:none; }
  .dot-column--pc-6 .dot:nth-child(n+7){ display:none; }
  .dot-column--pc-7 .dot:nth-child(n+8){ display:none; }
  .dot-column--pc-8 .dot:nth-child(n+13){ display:none; }
  .dot-column--pc-16 .dot:nth-child(n+17){ display:none; }
  .dot-column--pc-12 .dot:nth-child(n+13){ display:none; }
}

.section-bar {
  width: 100vw;
  position: relative;
  margin-left: calc(-50vw + 50%);
  background: #ccc;
  display: flex;
  align-items: center; /* 縦中央 */
  padding-block: 0.5em; /* ← モバイル高さ */
  padding-inline: 1em;
}

/* PC専用 */
@media (min-width: 960px) {
  .section-bar {
    /* 高さを大きく */
    padding-block: 1.5em;

    /* 左寄せを維持（ドット左端に合わせる） */
    padding-left: calc(
      (100vw - min(var(--content-max), 100%)) / 2
      + (var(--dot-size) / 2)
    );
    padding-right: calc(
      (100vw - min(var(--content-max), 100%)) / 2 + 1em
    );
  }
}

:root{
  --faq-max: var(--content-max, 800px);
  --faq-gap: 16px;
}

/* セクション見出し（既存の .section-bar を利用） */

/* カテゴリ見出し */
.faq__category{
  max-width: var(--faq-max);
  margin: 32px auto 12px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .02em;
}

/* リスト */
.faq__list{
  max-width: var(--faq-max);
  margin: 0 auto 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--faq-gap);
}

/* 質問（黒帯） */
.faq-q{
  width: 100%;
  background: #000;
  color: #fff;
  font: inherit;
  text-align: left;
  border: 1px solid #000;
  padding: 16px 56px 16px 20px;
  position: relative;
  cursor: pointer;
  transition: filter .2s ease;
}
.faq-q:hover,
.faq-q:focus-visible{
  filter: brightness(1.1);
  outline: none;
}

/* 右端の＋ボタン */
.faq-q__icon{
  position: absolute;
  inset: 0 14px 0 auto;
  width: 28px;
  height: 28px;
  margin: auto 0;
}
.faq-q__icon::before,
.faq-q__icon::after{
  content: "";
  position: absolute;
  inset: 50% 0 0 50%;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: transform .2s ease, opacity .2s ease;
}
.faq-q__icon::after{
  transform: translate(-50%, -50%) rotate(90deg); /* 縦棒で＋ */
}

/* 回答（白カード） */
.faq-a{
  background: #fff;
  border: 1px solid #ddd;
  padding: 18px 20px;
  line-height: 1.8;
  display: grid;
  grid-template-rows: 0fr;        /* アコーディオン閉 */
  transition: grid-template-rows .25s ease;
  overflow: hidden;
}
.faq-a > *{ min-height: 0; }      /* grid折りたたみ対策 */

/* 開いた状態（.is-open はJSで付与） */
.faq-item.is-open .faq-a{
  grid-template-rows: 1fr;        /* 開く */
}
.faq-item.is-open .faq-q__icon::after{
  transform: translate(-50%, -50%) rotate(0deg); /* 90→0 で × に */
  opacity: .0; /* 横棒だけ残してマイナス表示に近い見た目でもOK */
}

/* 余白調整（小画面） */
@media (max-width: 600px){
  .faq-q{ padding: 14px 48px 14px 16px; }
  .faq-a{ padding: 14px 16px; }
}

/* （既存のFAQ CSSはそのままでOK） */

/* ↓このブロックを一番下に追記！ */
.faq-a{
  background:#fff;
  border:1px solid #ddd;
  overflow:hidden;
  transition: grid-template-rows .25s ease, padding .25s ease, border-color .25s ease;
  display:grid;
  grid-template-rows: 0fr;     /* 初期は閉じる */
  padding: 0 20px;
  border-color: transparent;
}
.faq-a > *{ min-height:0; }

/* 開いたとき（ボタンの状態で判定） */
.faq-q[aria-expanded="true"] + .faq-a{
  grid-template-rows: 1fr;
  padding: 18px 20px;
  border-color: #ddd;
}

/* アイコンの変化 */
.faq-q[aria-expanded="true"] .faq-q__icon::after{
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

/* 基本：質問ボタンはそのまま */

/* 回答ベース（閉） */
.faq-a{
  background:#fff;
  border:1px solid transparent;        /* 閉じているときは枠を消す */
  overflow:hidden;
  max-height: 0;                        /* ← コレで完全に閉じる */
  padding: 0 20px;                      /* 上下0でにじみ防止 */
  transition: max-height .3s ease, padding .2s ease, border-color .2s ease;
}

/* 開いたとき（ボタンの状態で判定） */
.faq-q[aria-expanded="true"] + .faq-a{
  max-height: 1000px;                   /* 十分大きい値（必要なら調整） */
  padding: 18px 20px;                   /* 上下の余白を復活 */
  border-color:#ddd;
}

/* 子要素の余白にじみ対策（閉じている時だけ段落の margin を0に） */
.faq-q[aria-expanded="false"] + .faq-a > *{
  margin-top:0 !important;
  margin-bottom:0 !important;
}

/* ＋ → −風のアイコン変化（任意、以前のままでOK） */
.faq-q[aria-expanded="true"] .faq-q__icon::after{
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

@media (max-width: 600px) {
  /* スマホ時に左右に余白をつける */
  .faq__list {
    padding-inline: 16px; /* ← 左右16pxの白余白 */
  }

}

@media (max-width: 600px) {
  /* スマホ時：黒帯に余白をつける */
  .faq__list {
    padding-inline: 16px;
  }

  /* カテゴリ見出しを質問の左端と揃える */
  .faq__category {
    margin-left: 16px; /* ＝.faq__listのpaddingと同じ値 */
  }
}

.faq__list--domain {
  margin-bottom: 50px;
}

:root{
  /* 既に --content-max があるならそちらが優先されます */
  --content-max: var(--content-max, 960px);
}

/* セクション全体 */
.faq-hero{
  background:#fff;
  padding: clamp(48px, 10vw, 96px) 20px 0;
}

/* 中央寄せコンテナ */
.faq-hero__inner{
  max-width: var(--content-max);
  margin: 0 auto;
}

/* 上の小見出し “FAQ” はドット風フォントに合わせる */
.faq-hero__eyebrow{
  margin: 0 0 .25em;
  text-align:center;
  font-family: ab-megadot9, sans-serif; /* 既存の数字フォントを流用 */
  font-weight: 700;
  letter-spacing: .06em;
  font-size: clamp(28px, 6vw, 56px);
}

/* 大見出し “よくある質問” */
.faq-hero__title{
  margin: 0;
  text-align:center;
  font-family: ab-megadot9, sans-serif; /* 既存の数字フォントを流用 */
  font-weight: 800;
  letter-spacing: .02em;
  font-size: clamp(28px, 6vw, 48px);
}

/* 前置きテキスト（大きめ・左揃え） */
.faq-hero__lead{
  margin: clamp(32px, 7vw, 80px) auto 0; /* 上にゆとり、左右は中央に配置 */
  max-width: 720px;                      /* 行幅を抑えて読みやすく */
  font-size: clamp(16px, 4.5vw, 34px);   /* スマホで大きめ、PCで程よく */
  line-height: 1.8;
}

/* PCでは前置きの行幅を少し広げても◎（任意） */
@media (min-width: 960px){
  .faq-hero__lead{ max-width: 760px; }
}

/* 次のセクションとの間隔（任意で調整） */
.faq-hero + *{
  margin-top: clamp(32px, 6vw, 72px);
}

/* ====== 変数 ====== */
:root{
  --content-max: 800px;             /* 既存の値に合わせてOK */
  --dot-size: 16px;
  --dot-gap: 12px;
  --dot-dur: .6s;
  --dot-stagger: .1s;
}

/* ====== 共通のバー（既存の .section-bar と整合） ====== */
.section-bar{
  width: 100vw;
  position: relative;
  margin-left: calc(-50vw + 50%);
  background: #ccc;
  display: flex; align-items: center;
  padding-block: .8em;
  padding-inline: 1em;
}
@media (min-width: 960px){
  .section-bar{
    /* PC時：見出しをドット左端に合わせる */
    padding-left: calc(
      (100vw - min(var(--content-max),100%))/2 + (var(--dot-size)/2)
    );
    padding-right: calc((100vw - min(var(--content-max),100%))/2 + 1em);
    padding-block: 1.4em;
  }
}
.section-bar__num{
  font-family: ab-megadot9, sans-serif;
  font-weight: 700; font-size: 1.6rem; margin-right: .5em;
}
.section-bar__title{ font-size: 1.4rem; font-weight: 700; }

/* ====== セクションレイアウト ====== */
.contact-section,
.contact-form-section,
.contact-info-section{
  background:#fff; padding: 48px 20px;
}
.contact__inner,
.contact-info__inner{
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex; align-items: flex-start; gap: 24px;
}

/* ====== ドット列（見えたら発火） ====== */
.dot-column{
  display:flex; flex-direction: column; gap: var(--dot-gap);
  width: var(--dot-size); align-items:center;
}
.dot-column .dot{
  width: var(--dot-size); height: var(--dot-size);
  background:#000; opacity:0; transform: translateY(8px) scale(.8);
  animation: none;
}
.dot-column.is-inview .dot{
  animation: dotFadeUp var(--dot-dur) ease-out forwards;
  animation-delay: calc(var(--i) * var(--dot-stagger));
}
@keyframes dotFadeUp{
  from{ opacity:0; transform: translateY(8px) scale(.8); }
  to  { opacity:1; transform: translateY(0)  scale(1); }
}
/* PCはドット数を控えめに（12個表示） */
@media (min-width: 960px){
  .dot-column--pc-12 .dot:nth-child(n+13){ display:none; }
}

/* ====== 導入テキスト & CTA ====== */
.contact__content{ flex:1; }
.contact__lead{ font-size:1.1rem; line-height:1.8; margin: 0 0 20px; }
.contact__cta{ display:grid; gap:16px; max-width:520px; }
.btn{
  display:grid; place-items:center;
  height:64px; border-radius:2px; font-weight:700; letter-spacing:.08em;
  text-decoration:none; color:#fff; border:1px solid transparent;
}
.btn--line{ background:#42a048; }
.btn--form{ background:#000; }
.btn:hover{ filter: brightness(1.05); }

/* ====== フォーム ====== */
.c-form{ max-width: var(--content-max); margin: 24px auto 0; }
.c-form__grid{
  display:grid; gap:16px;
  grid-template-columns: 1fr 1fr;
}
.c-field{ display:flex; flex-direction: column; gap:8px; }
.c-field--full{ grid-column: 1 / -1; }
.c-field label{ font-weight:700; }
.c-field .req{
  display:inline-block; font-size:.8em; margin-left:.5em;
  background:#000; color:#fff; padding:.2em .5em; border-radius:2px;
}
.c-field input,
.c-field textarea{
  width:100%; border:1px solid #ccc; border-radius:4px;
  padding:12px 14px; font-size:1rem;
}
.c-field input:focus, .c-field textarea:focus{
  outline:2px solid #0000; border-color:#000;
}
.c-check{ display:flex; align-items:center; gap:.5em; }
.c-submit{ margin-top:8px; }
.btn--submit{ background:#000; color:#fff; height:56px; width:100%; }

/* ====== 連絡先 ====== */
.contact-info{
  display:grid; gap:10px; max-width:520px;
}
.contact-info dt{ font-weight:700; width:7em; }
.contact-info > div{ display:flex; gap:12px; align-items:baseline; }

/* ====== スマホ調整 ====== */
@media (max-width: 600px){
  :root{ --dot-size: 12px; }
  .contact__inner, .contact-info__inner{ gap:16px; }
  .c-form__grid{ grid-template-columns: 1fr; }
  .contact__cta{ padding-inline: 4px; }
}

/* ===== Header base ===== */
.header { position: relative; z-index: 30; }
.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 16px;
}
.logo { display:inline-block; }
.logo img { display:block; inline-size:auto; block-size:40px; }

/* ===== Toggle (checkbox hack) ===== */
.nav-toggle{ position:absolute; inline-size:1px; block-size:1px; opacity:0; pointer-events:none; }

/* ===== Hamburger button (pixel-ish dots → X) ===== */
.menu-btn{
  --btn: 42px;
  inline-size: var(--btn); block-size: var(--btn);
  display:grid; place-content:center; gap:6px;
  border:0; background:transparent; cursor:pointer;
}
.menu-btn__dot {
  inline-size: 6px;          /* 横幅を小さく */
  block-size: 6px;           /* 高さも同じにして正方形 */
  background: #111;          /* 色はそのまま */
  display: block;
  transition: transform .28s ease, opacity .22s ease, background .2s ease;
}

.nav-toggle:checked + .menu-btn .menu-btn__dot:nth-child(1){
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle:checked + .menu-btn .menu-btn__dot:nth-child(2){
  opacity: 0;
}
.nav-toggle:checked + .menu-btn .menu-btn__dot:nth-child(3){
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== Offcanvas base ===== */
.offcanvas{
  position: fixed; inset: 0; z-index: 20;
  pointer-events: none; /* 初期は触れない */
}
.offcanvas__overlay{
  position:absolute; inset:0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
  opacity:0; transition: opacity .28s ease;
  pointer-events:none;
}

/* Panel (right drawer) */
.offcanvas__panel{
  position:absolute; top:0; right:0;
  inline-size: min(92vw, 420px); block-size:100%;
  background:#fff;
  display:grid; grid-template-rows:auto 1fr auto;
  padding:16px;
  transform: translateX(100%);
  transition: transform .34s cubic-bezier(.2,.8,.2,1);
  box-shadow: -12px 0 28px rgba(0,0,0,.16);
}

/* Open states (checkbox → siblings) */
.nav-toggle:checked ~ .offcanvas{ pointer-events:auto; }
.nav-toggle:checked ~ .offcanvas .offcanvas__overlay{
  opacity:1; pointer-events:auto;
}
.nav-toggle:checked ~ .offcanvas .offcanvas__panel{
  transform: translateX(0);
}

/* Panel header */
.offcanvas__header{
  display:flex; align-items:center; justify-content:space-between;
  padding-block: 4px 12px; border-bottom:1px solid #eee;
}
.offcanvas__title{ font-size:1rem; margin:0; letter-spacing:.02em; }
.offcanvas__close{
  cursor:pointer; font-size:24px; line-height:1; user-select:none;
}

/* Nav list */
.nav{
  display:grid; gap:4px;
  padding: 16px 0;
}
.nav a{
  display:block; padding:12px 10px;
  color:#111; text-decoration:none; border-radius:12px;
  position:relative; isolation:isolate;
  transition: background .2s ease, transform .2s ease;
}
.nav a::after{
  content:""; position:absolute; inset:auto 10px 10px 10px; height:2px;
  background:#111; transform: scaleX(0); transform-origin:left;
  transition: transform .28s ease;
}
.nav a:hover{ background:#f7f7f7; transform: translateX(2px); }
.nav a:hover::after{ transform: scaleX(1); }



/* Call-to-action */
.offcanvas__cta { 
  display: grid; 
  gap: 10px; 
  padding-top: 12px; 
  border-top: 1px solid #eee; 
  justify-items: center; /* ← 中央寄せOK */
}

/* ボタン */
.btn_nav {
  display: block;               /* ← inline-block → block に変更して幅を持たせる */
  width: 90%;                   /* ← 親幅の90%まで広げる */
  max-width: 340px;             /* ← 広すぎ防止（調整可） */
  text-align: center;
  padding: 14px 0;              /* ← 縦余白を少し増やすと見栄え◎ */
  border: 1px solid #111; 
  color: #111; 
  text-decoration: none;
  font-size: 0.95rem;
  transition: background .2s ease, color .2s ease;
}

/* 黒反転のボタン */
.btn--primary { 
  background: #111; 
  color: #fff; 
}

.btn_nav:hover {
  background: #bebebe;
  color: #fff;
}
.btn--primary:hover {
  background: #333;
}


/* Scroll lock (supported browsers) */
@supports selector(body:has(#nav-toggle:checked)){
  body:has(#nav-toggle:checked){ overflow:hidden; }
}

/* Motion preference */
@media (prefers-reduced-motion: reduce){
  .menu-btn__dot,
  .offcanvas__overlay,
  .offcanvas__panel,
  .nav a,
  .nav a::after { transition:none; }
}

/* 閉じてる時の状態を明示 */
.nav-toggle:not(:checked) ~ .offcanvas .offcanvas__panel{
  transform: translateX(calc(100% + 24px)); /* 100%より少し多めに逃がす */
  box-shadow: none;                          /* 影を消す */
}

/* 開いたときだけ影を付ける（既存のopenルールのすぐ下でもOK） */
.nav-toggle:checked ~ .offcanvas .offcanvas__panel{
  transform: translateX(0);
  box-shadow: -12px 0 28px rgba(0,0,0,.16);
}


/* お知らせ一覧 */
.post-list { display:grid; gap:10px; }
.post-item { border-bottom:1px solid #e5e5e5; padding:10px 0; }
.post-link { display:flex; gap:12px; align-items:baseline; text-decoration:none; }
.post-date { font-variant-numeric: tabular-nums; color:#666; width:7em; }
.post-title { color:inherit; }

/* ブログカード */
.card-list { display:grid; gap:16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px){ .card-list{ grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 600px){ .card-list{ grid-template-columns: 1fr; } }
.card-item { background:#fff; border:1px solid #eee; overflow:hidden; }
.card-link { display:grid; grid-template-rows: auto 1fr; text-decoration:none; color:inherit; }
.card-thumb img{ width:100%; height:auto; display:block; }
.card-body { padding:14px; display:grid; gap:6px; }
.card-date { font-size:.9rem; color:#666; font-variant-numeric: tabular-nums; }
.card-title { font-weight:700; line-height:1.4; }
.card-excerpt { color:#444; }

/* シングル */
.single__header{ display:grid; gap:6px; margin-bottom:20px; }
.single__title{ font-size:clamp(20px, 3vw, 28px); font-weight:800; }
.single__meta{ color:#666; display:flex; gap:12px; font-variant-numeric: tabular-nums; }
.single__content{ line-height:1.9;}
.single__pager{ display:flex; justify-content:space-between; gap:10px; margin-top:24px; }


/* === Editorial === */
.single{
  max-width: 880px;
  letter-spacing: .01em;
}
.single__title{
  font-family: sans-serif;
  font-weight: 700;
  letter-spacing: .02em;
}
.single__meta{ font-family: sans-serif; }

.single__content{
  font-family: sans-serif;
  font-size: 1.06rem;
  line-height: 2.0;
  hanging-punctuation: first last;
}

/* ドロップキャップ：本文先頭段落に .has-dropcap を付与 */
.single__content p.has-dropcap:first-letter{
  float: left; font-size: 3.4em; line-height: .9;
  padding: .05em .14em 0 0; font-weight: 700; color: var(--ink);
}

/* 引用は太罫と細罫の2本線 */
.single__content blockquote{
  background: none; border-radius: 0;
  border: 0; border-left: 6px solid var(--ink);
  box-shadow: inset 0 -1px 0 var(--line);
}

/* 画像は枠なし・余白広め */
.single__content img{ box-shadow: none; border-radius: 0; margin: 2.2em auto; }

/* キャプションは小さく上品に */
.single__content figcaption{ font-size: .85rem; font-style: italic; }

/* 小見出しに小さなスモールキャップ風 */
.single__content h3{ letter-spacing: .06em; text-transform: none; }

/* ========== ブログ記事ページ ========== */
.single {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 80px) 20px;
  font-family:  sans-serif;
  line-height: 1.8;
  color: #222;
}

/* タイトル */
.single__title {
  font-family: sans-serif; /* デジタルめがね風ピクセルフォント */
  font-size: clamp(28px, 5vw, 40px);
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

/* 投稿日 */
.single__meta {
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 40px;
}

/* 本文全体 */
.single__content {
  font-size: 1rem;
  line-height: 1.9;
}

/* 見出し */
.single__content h2 {
  font-size: 1.4rem;
  border-left: 4px solid #000;
  padding-left: 12px;
  margin: 2.4em 0 1em;
}

.single__content h3 {
  font-size: 1.2rem;
  border-bottom: 2px dotted #aaa;
  padding-bottom: 6px;
  margin: 2em 0 0.8em;
}

/* 段落 */
.single__content p {
  margin: 1.2em 0;
}

/* 引用 */
/* 引用部分のスタイル調整 */
blockquote {
  background: #f9f9f9;
  border-left: 4px solid #ccc;
  margin: 1.5em auto;
  padding: 1em 1.2em;
  font-style: italic;
  line-height: 1.8;
  max-width: 680px; /* スマホでも読みやすい幅に */
  width: 90%;       /* 横幅を画面幅に応じて柔軟に */
  box-sizing: border-box;
}

/* スマホ時の改善（狭くなりすぎ防止） */
@media (max-width: 600px) {
  blockquote {
    margin-inline: auto;     /* 左右中央に */
    padding: 1.2em 1.4em;    /* 内側の余白を少し広く */
    width: 94%;              /* スマホ時は画面幅のほぼ全体に */
    font-size: 1rem;         /* 読みやすい文字サイズ */
  }
}


/* 画像 */
.single__content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2em auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* リスト */
.single__content ul, 
.single__content ol {
  padding-left: 1.5em;
  margin: 1em 0;
}

/* 強調テキスト */
.single__content strong {
  background: linear-gradient(transparent 60%, #ffec6a 60%);
  font-weight: 700;
}

/* ページ下部の余白 */
.single {
  padding-bottom: 100px;
}

/* メディアクエリ */
@media (max-width: 600px) {
  .single {
    padding: 60px 16px;
  }
  .single__title {
    font-size: 1.8rem;
  }
}

/* ===== News Section ===== */
:root{
  --ink:#1a1a1a; --muted:#7b7b7b; --line:#e7e7e7; --chip:#f5f7fa; --shadow:0 8px 24px rgba(0,0,0,.06);
}
@media (prefers-color-scheme: dark){
  :root{ --ink:#313131; --muted:#a9a9a9; --line:#2a2a2a; --chip:#121417; --shadow:0 14px 32px rgba(0,0,0,.35); }
}

.news{
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) 20px;
}
.news__title{
  font-family: "ab-megadot9", ui-monospace, monospace;
  font-size: clamp(24px, 4vw, 32px);
  text-align: center;
  margin-bottom: clamp(20px, 3vw, 32px);
  letter-spacing: .02em;
}

.news__list{
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
}

.news__item{
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  transition: opacity .2s ease, transform .2s ease;
}
.news__item:hover{ opacity: .85; transform: translateY(-2px); }

.news__link{
  display: flex;
  gap: 16px;
  align-items: flex-start;
  color: var(--ink);
  text-decoration: none;
}

.news__thumb{
  flex-shrink: 0;
  width: 160px; height: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--chip);
}
.news__img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.news__item:hover .news__img{ transform: scale(1.05); }

.news__meta{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.news__date{
  font-size: .88rem;
  color: var(--muted);
}
.news__title-sub{
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
}

.news__more{
  margin-top: clamp(20px, 3vw, 32px);
  display: flex;
  justify-content: center;
}

.news__empty{
  text-align: center;
  color: var(--muted);
  padding: 24px 0;
}

@media (max-width: 600px){
  .news__link{ flex-direction: column; }
  .news__thumb{ width: 100%; height: auto; aspect-ratio: 16 / 9; }
}

/* ========== Coming Soon ========== */
.coming{
  background:#fff;
  padding: clamp(56px, 8vw, 120px) 0;
}
.coming__section{
  max-width: min(880px, 92vw);
  margin-inline: auto;
  text-align: center;
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}
.coming__title{
  font-family: ab-megadot9, sans-serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: .04em;
  margin: 0;
}
.coming__lead{
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.9;
  margin: 0;
}
.coming__actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.coming__btn{
  min-width: min(260px, 70vw);
  justify-content: center;
}
.coming__btn--secondary .cta-pixel__frame{ outline-offset: -1px; }
.coming__note{
  font-size: .95rem;
  color: #555;
}

.coming__visual {
  margin: 0 auto;
  max-width: min(640px, 90vw);
  display: flex;
  justify-content: center;
}

.coming__video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ===========================
   Blog Archive Page
   =========================== */

.archive-blog {
  background: #fff;
  padding: clamp(64px, 10vw, 120px) 0;
  font-family: 'kozuka-gothic-pro', sans-serif;
  color: #000;
}

/* ヘッダー */
.arc-header {
  text-align: center;
  margin-bottom: clamp(40px, 8vw, 80px);
}

.arc-header h1 {
  font-family: ab-megadot9, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: .04em;
  position: relative;
  display: inline-block;
}

.arc-header h1::after {
  content: "";
  display: block;
  width: 60%;
  height: 2px;
  background: #000;
  margin: 8px auto 0;
}

/* カードリスト */
.card-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 48px);
  max-width: min(1100px, 94vw);
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

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

/* カード */
.card-item {
  border: 1px solid #000;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* サムネイル */
.card-thumb {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* カード本文 */
.card-body {
  padding: 1.2em 1.4em 2em;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.card-date {
  font-size: 0.9rem;
  color: #333;
}

.card-title {
  font-size: clamp(1rem, 2.3vw, 1.25rem);
  font-weight: 700;
  line-height: 1.6;
}

.card-excerpt {
  font-size: 0.95rem;
  color: #222;
  line-height: 1.8;
  margin-top: auto;
}

/* ホバー効果 */
@media (hover: hover) {
  .card-item:hover {
    transform: translateY(-4px);
    box-shadow: 4px 4px 0 #000;
  }
  .card-item:hover .card-thumb img {
    transform: scale(1.05);
  }
}

/* ページネーション */
.pagination {
  margin-top: clamp(48px, 8vw, 96px);
  text-align: center;
}

.pagination .page-numbers {
  display: inline-block;
  margin: 0 6px;
  padding: 6px 12px;
  border: 1px solid #000;
  text-decoration: none;
  color: #000;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.pagination .page-numbers:hover,
.pagination .current {
  background: #000;
  color: #fff;
}


/* ===========================
   News Archive Page
   =========================== */

.archive-news {
  background: #fff;
  padding: clamp(64px, 10vw, 120px) 0;
  color: #000;
}

/* 見出し（ブログと統一） */
.archive-news .arc-header {
  text-align: center;
  margin-bottom: clamp(40px, 8vw, 80px);
}
.archive-news .arc-header h1 {
  font-family: ab-megadot9, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: .04em;
  position: relative;
  display: inline-block;
}
.archive-news .arc-header h1::after {
  content: "";
  display: block;
  width: 60%;
  height: 2px;
  background: #000;
  margin: 8px auto 0;
}

/* 一覧本体 */
.post-list {
  max-width: min(980px, 94vw);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0; /* 罫線で区切るのでギャップは0 */
  border-top: 1px solid #000;
}

/* 1行 */
.post-item {
  border-bottom: 1px solid #000;
  background: #fff;
}

/* 行の中身：スマホは縦、PCは横2カラム */
.post-link {
  display: grid;
  grid-template-columns: 1fr;     /* sp: 縦積み */
  row-gap: 6px;
  column-gap: 24px;
  padding: clamp(14px, 3.2vw, 18px) clamp(8px, 2.4vw, 10px);
  text-decoration: none;
  color: inherit;
}

@media (min-width: 640px) {
  .post-link {
    grid-template-columns: 12ch 1fr; /* date | title */
    align-items: baseline;
  }
}

/* 日付・タイトル */
.post-date {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  font-size: clamp(.95rem, 2.2vw, 1rem);
  color: #333;
  white-space: nowrap;
}

.post-title {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.6;
  text-decoration-thickness: 2px;
  text-underline-offset: .15em;
}

/* ホバー/フォーカス */
@media (hover:hover) {
  .post-item:hover {
    background: #fafafa;
  }
  .post-item:hover .post-title {
    text-decoration: underline;
  }
}
.post-link:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* ページネーション（ブログと統一） */
.pagination {
  margin-top: clamp(40px, 8vw, 80px);
  text-align: center;
}
.pagination .page-numbers {
  display: inline-block;
  margin: 0 6px;
  padding: 6px 12px;
  border: 1px solid #000;
  text-decoration: none;
  color: #000;
  font-weight: 500;
  transition: background .2s, color .2s;
}
.pagination .page-numbers:hover,
.pagination .current {
  background: #000;
  color: #fff;
}

