@charset "UTF-8";
/* ============================================================
   つなぐ依頼ページ - スタイルシート
   構成：1.変数  2.ベース  3.共通ボタン  4.ヘッダー  5.ヒーロー
        6.おすすめツール  7.サービスカード  8.相談CTA  9.フッター
        10.出現アニメ  11.レスポンシブ
   ※ 色テーマはカードの data-theme で切替（--c / --c-bg）
   ============================================================ */

/* ---------- 1. 変数 ---------- */
:root {
  --brand:       #1f6fe0;
  --brand-dark:  #0d3fa6;
  --navy:        #11295a;
  --ink:         #233244;
  --muted:       #5d6b7e;
  --line:        #e4eaf2;
  --bg:          #ffffff;
  --bg-soft:     #f3f7fc;

  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 10px 30px rgba(20, 52, 110, 0.08);
  --shadow-card: 0 8px 24px rgba(20, 52, 110, 0.07);

  --container:   1180px;
  --gutter:      24px;

  --font: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans",
          "Yu Gothic UI", "Meiryo", sans-serif;
}

/* ---------- 2. ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 3. 共通ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease,
              color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* テーマ依存（カード内）：--c / --c-bg を利用 */
.btn--outline {
  background: #fff;
  color: var(--c, var(--brand));
  border-color: var(--c, var(--brand));
}
.btn--outline:hover { background: var(--c-bg, #eef4ff); }

.btn--solid {
  background: var(--c, var(--brand));
  color: #fff;
  box-shadow: 0 6px 14px rgba(20, 52, 110, 0.18);
}
.btn--solid:hover { filter: brightness(1.06); }

.btn--white {
  background: #fff;
  color: var(--brand-dark);
}
.btn--white:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }

/* ---------- 4. ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
}
/* ロゴ＋その下の「TOPページへ戻る」テキスト */
.site-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  transition: opacity .15s ease;
}
.site-logo:hover { opacity: .8; }
.site-logo__img { display: block; height: 88px; width: auto; margin-bottom: -4px; }
.site-logo__caption {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .02em;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.site-logo:hover .site-logo__caption { color: var(--brand-dark); }

.header-actions { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
  border: 1.5px solid var(--brand);
  transition: background-color .15s ease, color .15s ease, filter .15s ease, box-shadow .15s ease;
}
.btn-header .icon { width: 16px; height: 16px; }
.btn-header--ghost { color: var(--brand); background: #fff; }
.btn-header--ghost:hover { background: #eaf3ff; }
.btn-header--solid { color: #fff; background: var(--brand); box-shadow: 0 6px 14px rgba(31, 111, 224, .28); }
.btn-header--solid:hover { filter: brightness(1.06); }

/* ハンバーガー（スマホのみ表示） */
.header-toggle { display: none; }
.header-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--brand);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  flex: none;
}
.header-toggle__bar,
.header-toggle__bar::before,
.header-toggle__bar::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transition: transform .2s ease, opacity .2s ease, background-color .2s ease;
}
.header-toggle__bar { top: 50%; transform: translate(-50%, -50%); }
.header-toggle__bar::before { content: ""; top: -6px; transform: translateX(-50%); }
.header-toggle__bar::after  { content: ""; top: 6px;  transform: translateX(-50%); }
.header-toggle.is-open .header-toggle__bar { background: transparent; }
.header-toggle.is-open .header-toggle__bar::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.header-toggle.is-open .header-toggle__bar::after  { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* ---------- 5. ヒーロー ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #eaf3ff 0%, #f4f9ff 55%, #ffffff 100%);
  padding-block: 20px 34px;
}
.hero__skyline {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  aspect-ratio: 2104 / 747;
  background: url("../img/tsungau_back.png") no-repeat bottom center / 100% auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 34%);
  z-index: 0;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: 40px;
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(31, 111, 224, 0.3);
}
.hero__title {
  margin-top: 16px;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: .01em;
  color: var(--navy);
}
.hero__lead {
  margin-top: 14px;
  max-width: 540px;
  font-size: 15px;
  color: var(--muted);
}
.hero__contact {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(20, 52, 110, .08);
  font-size: 14px;
}
.hero__contact-label { color: var(--muted); font-weight: 700; font-size: 12.5px; letter-spacing: .04em; }
.hero__contact-mail {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}
.hero__contact-mail:hover { border-bottom-color: var(--brand); }

/* ご利用について カード */
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px;
}
.info-card__head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}
.info-card__head-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: #eaf3ff;
  color: var(--brand);
}
.info-card__head-icon .icon { width: 24px; height: 24px; }
.info-card__title { font-size: 17px; font-weight: 700; color: var(--navy); }
.info-card__desc { margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.6; }

.info-card__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 18px;
}
.info-item__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 6px 4px;
  border-radius: 12px;
  color: var(--ink);
  transition: background-color .15s ease;
}
.info-item__link:hover { background: var(--bg-soft); }
.info-item__link:hover .info-item__icon { background: var(--brand); color: #fff; }
.info-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--brand);
  transition: background-color .15s ease, color .15s ease;
}
.info-item__icon .icon { width: 26px; height: 26px; }
.info-item__label { font-size: 12.5px; font-weight: 500; color: var(--ink); line-height: 1.4; }

/* ---------- 6. おすすめツール（調速） ---------- */
.hero__promo { position: relative; z-index: 1; }
.featured__box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  background: linear-gradient(150deg, #0a2569 0%, #123a9e 58%, #1c54c8 100%);
  border-radius: 18px;
  padding: 18px 20px 16px;
  box-shadow: 0 16px 36px rgba(10, 37, 105, 0.28);
  overflow: hidden;
}
.featured__box::after { /* 装飾の光彩（プレースホルダー） */
  content: "";
  position: absolute;
  right: -60px; top: -80px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(99, 160, 255, .35), transparent 70%);
  pointer-events: none;
}
.featured__ribbon {
  position: absolute;
  top: -16px;
  left: 22px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #fbe2a0, #e3b25c);
  color: #5a3d08;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 9px 18px 9px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(216, 158, 56, .35),
              0 2px 4px rgba(0, 0, 0, .12);
  transform-origin: center;
  animation: ribbon-float 4.2s ease-in-out infinite;
}
.featured__ribbon::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #fff8e1;
  clip-path: polygon(50% 0, 61% 38%, 100% 38%, 68% 60%, 80% 100%, 50% 76%, 20% 100%, 32% 60%, 0 38%, 39% 38%);
  filter: drop-shadow(0 1px 1px rgba(120, 80, 0, .25));
}
@keyframes ribbon-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-6px) rotate(-3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .featured__ribbon { animation: none; transform: rotate(-3deg); }
}
.featured__brand {
  display: flex;
  align-items: center;
  justify-content: center;
}
.featured__logo {
  display: block;
  height: 96px;
  width: auto;
  background: #fff;
  border-radius: 14px;
  padding: 8px 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.featured__body { color: #eaf1ff; }
.featured__product {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.featured__pill {
  font-size: 11.5px;
  font-weight: 700;
  color: #0d3fa6;
  background: #cfe2ff;
  padding: 3px 10px;
  border-radius: 999px;
}
.featured__text { margin-top: 4px; font-size: 12.5px; color: #c8d8f5; line-height: 1.6; }
.featured__btn { align-self: stretch; justify-content: center; padding: 10px 18px; font-size: 14px; }
.featured__btn .icon { width: 18px; height: 18px; }

/* ---------- 7. サービスカード ---------- */
.services { padding-block: 14px 18px; background: #fff; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service-card {
  --c: var(--brand);
  --c-bg: #eef4ff;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 14px 16px 15px;
}

/* カラーテーマ */
.service-card[data-theme="blue"]   { --c:#2563eb; --c-bg:#e9f1fe; }
.service-card[data-theme="teal"]   { --c:#0d9488; --c-bg:#e0f4f0; }
.service-card[data-theme="green"]  { --c:#1ba24d; --c-bg:#e6f6ea; }
.service-card[data-theme="purple"] { --c:#7c3aed; --c-bg:#f0eafc; }
.service-card[data-theme="orange"] { --c:#ed6a14; --c-bg:#fceede; }
.service-card[data-theme="cyan"]   { --c:#0e93ab; --c-bg:#e1f3f6; }

.service-card__tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: var(--c);
  background: var(--c-bg);
  padding: 5px 12px;
  border-radius: 999px;
}
.service-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  background: var(--c-bg);
  color: var(--c);
}
.service-card__icon .icon { width: 28px; height: 28px; }
.service-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}
.service-card__title small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.service-card__desc {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1 1 auto;
}
.service-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 12px;
}
.service-card__actions .btn { padding: 11px 7px; font-size: 13.5px; }

/* 依頼(大)：詳細(小) = 7:3 のスプリット */
.service-card__actions.actions--split {
  grid-template-columns: 7fr 3fr;
}
/* 大ボタン：直接リンク（a）／ドロップダウンのトリガー（.pdf-trigger）の両対応 */
.actions--split a.actions__primary,
.actions--split .actions__primary .pdf-trigger { font-size: 15px; font-weight: 700; padding: 13px 8px; }
.actions--split .actions__secondary { font-size: 12.5px; padding: 12px 6px; }

/* PDFドロップダウン（左ボタン） */
.pdf-dropdown { position: relative; }
.pdf-trigger { width: 100%; gap: 5px; }
.pdf-caret { width: 12px; height: 12px; transition: transform .15s ease; }
.pdf-dropdown.is-single .pdf-caret { display: none; }
.pdf-trigger[aria-expanded="true"] .pdf-caret { transform: rotate(180deg); }
.pdf-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: 240px;
  margin: 0;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(20, 52, 110, .16);
}
.pdf-menu[hidden] { display: none; }
.pdf-menu__item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  transition: background-color .12s ease, color .12s ease;
}
.pdf-menu__item::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  border-right: 2px solid var(--c, var(--brand));
  border-bottom: 2px solid var(--c, var(--brand));
  transform: rotate(-45deg);
}
.pdf-menu__item:hover { background: var(--c-bg, #eef4ff); color: var(--c, var(--brand)); }

/* ---------- 8. 相談CTA ---------- */
.help-cta {
  background: linear-gradient(120deg, #1857c8 0%, #2070e6 100%);
  color: #fff;
}
.help-cta__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 15px;
}
.help-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  border: 2px solid rgba(255, 255, 255, .4);
  color: #fff;
}
.help-cta__icon .icon { width: 30px; height: 30px; }
.help-cta__text { flex: 1 1 auto; }
.help-cta__title { font-size: clamp(18px, 2.1vw, 23px); font-weight: 700; }
.help-cta__desc { margin-top: 4px; font-size: 13.5px; color: #dceaff; }
.help-cta__btn { white-space: nowrap; padding: 13px 24px; font-size: 15px; }
.help-cta__btn .icon:first-child { width: 20px; height: 20px; }
.help-cta__btn .icon:last-child { width: 18px; height: 18px; }

/* TOPIC（相談CTAの上のお知らせ・マーキー） */
.topics {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 11px 16px;
  background: linear-gradient(120deg, #1857c8 0%, #2070e6 100%);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(20, 52, 110, .14);
}
.topics__label {
  flex: none;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  color: #ffd980;
  background: rgba(8, 28, 70, .28);
  padding: 6px 14px;
  border-radius: 999px;
}
.topics__viewport { flex: 1 1 auto; overflow: hidden; }
.topics__track {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}
.topics__track.is-marquee { width: max-content; animation: topics-marquee 26s linear infinite; }
.topics:hover .topics__track.is-marquee { animation-play-state: paused; }
.topics__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 24px 0 32px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.topics__item::before {
  content: "";
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ffd980;
}
@keyframes topics-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .topics__track.is-marquee { animation: none; }
  .topics__track { white-space: normal; flex-wrap: wrap; }
}

/* ---------- 9. フッター ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); }
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 10px;
  text-align: center;
}
.site-footer__copy { color: var(--muted); font-size: 12.5px; }

/* ---------- モーダル（ポップアップ） ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 31, 64, .55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
  overflow: hidden;
  animation: modal-in .2s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.modal__close:hover { background: #e7edf6; color: var(--ink); }
.modal__title {
  flex: none;
  padding: 28px 60px 14px 32px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--navy);
}
.modal__title:empty { display: none; }
.modal__title:empty + .modal__body { padding-top: 30px; }

/* 本文（ACF WYSIWYG 想定：見出し・リンク・画像などを自由に挿入可能） */
.modal__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 32px 32px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
}
.modal__body > :first-child { margin-top: 0; }
.modal__body > :last-child { margin-bottom: 0; }
.modal__body h2, .modal__body h3, .modal__body h4 {
  margin: 22px 0 10px;
  line-height: 1.5;
  color: var(--navy);
}
.modal__body h2 { font-size: 19px; }
.modal__body h3 { font-size: 17px; }
.modal__body h4 { font-size: 15.5px; }
.modal__body p { margin: 0 0 12px; }
.modal__body ul, .modal__body ol { margin: 0 0 14px; padding-left: 1.4em; }
.modal__body ul { list-style: disc; }
.modal__body ol { list-style: decimal; }
.modal__body li { margin: 4px 0; }
.modal__body a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.modal__body a:hover { color: var(--brand-dark); }
.modal__body img {
  display: block;
  width: 100%;
  height: auto;
  margin: 14px 0;
  border-radius: 12px;
}
.modal__body hr { border: none; border-top: 1px solid var(--line); margin: 18px 0; }
.modal__body strong { font-weight: 700; }
.modal__body .popup-note { font-size: 13px; color: var(--muted); }
.modal__body .popup-pdf {
  display: block;
  width: 100%;
  height: 70vh;
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f6f8fb;
}

body.is-locked { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .modal__dialog { animation: none; }
}

/* ---------- ログアウト（フッター全幅・中央） ---------- */
.site-footer__logout {
  display: flex;
  justify-content: center;
  padding: 20px var(--gutter);
  background: #eef2f8;
  border-bottom: 1px solid var(--line);
}
/* 「利用規約・ダウンロード」と同等の視認性（塗りボタン） */
.logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 300px;
  padding: 15px 34px;
  border-radius: 999px;
  background: var(--brand);
  border: 1.5px solid var(--brand);
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(31, 111, 224, .28);
  transition: filter .15s ease, box-shadow .15s ease, transform .15s ease;
}
.logout-btn .icon { width: 20px; height: 20px; flex: none; }
.logout-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 22px rgba(31, 111, 224, .34);
  transform: translateY(-1px);
}
@media (max-width: 680px) {
  .site-footer__logout { padding: 16px var(--gutter); }
  .logout-btn { min-width: 0; width: 100%; padding: 14px 20px; font-size: 15px; }
}
@media print { .site-footer__logout { display: none; } }

/* ---------- ログインページ ---------- */
.login-page {
  min-height: 100vh;
  display: flex;
  background: linear-gradient(180deg, #eaf3ff 0%, #f4f9ff 55%, #ffffff 100%);
}
.login {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}
.login__skyline {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  aspect-ratio: 2104 / 747;
  background: url("../img/tsungau_back.png") no-repeat bottom center / 100% auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 42%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 42%);
  z-index: 0;
  pointer-events: none;
}
.login__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(20, 52, 110, .14);
  padding: 36px 34px 30px;
}
.login__head { text-align: center; margin-bottom: 22px; }
.login__logo { height: 84px; width: auto; margin: 0 auto 14px; }
.login__title { font-size: 22px; font-weight: 800; color: var(--navy); }
.login__lead { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.login__error {
  margin-bottom: 16px;
  padding: 11px 14px;
  border-radius: 10px;
  background: #fdecec;
  border: 1px solid #f3c0c0;
  color: #c0392b;
  font-size: 13.5px;
  font-weight: 600;
}
.login__error[hidden] { display: none; }
.login__form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 13px; font-weight: 700; color: var(--ink); }
.field input[type="text"],
.field input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: #aab4c2; }
.field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 111, 224, .15);
}
.field__pass { position: relative; }
.field__pass input { padding-right: 46px; }
.pass-toggle {
  position: absolute;
  top: 50%; right: 8px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
}
.pass-toggle:hover { background: var(--bg-soft); color: var(--ink); }
.pass-toggle .icon { width: 20px; height: 20px; }
.pass-toggle .icon-eye-off { display: none; }
.pass-toggle.is-on .icon-eye { display: none; }
.pass-toggle.is-on .icon-eye-off { display: block; }
.login__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}
.checkbox { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; color: var(--ink); }
.checkbox input { width: 16px; height: 16px; accent-color: var(--brand); }
.login__forgot { color: var(--brand); font-weight: 600; }
.login__forgot:hover { text-decoration: underline; }
.login__submit { width: 100%; margin-top: 4px; padding: 14px; font-size: 16px; }
.login__note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.75;
}
@media (max-width: 480px) {
  .login__card { padding: 28px 22px 24px; border-radius: 16px; }
  .login__logo { height: 70px; }
}
@media (max-width: 680px) {
  .modal { padding: 16px; }
  .modal__title { padding: 24px 52px 12px 22px; font-size: 19px; }
  .modal__body { padding: 0 22px 24px; }
}

/* ---------- フォームページ ---------- */
.formpage { background: var(--bg-soft); min-height: 60vh; padding-block: 40px 60px; }
.formpage__inner { max-width: 900px; }
.formpage__title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--navy);
  text-align: center;
}
.formpage__desc {
  margin-top: 12px;
  text-align: center;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* ステップ表示：入力 → 確認 → 送信 */
.formsteps {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.formsteps__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.formsteps__item::after {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--line);
  margin-left: 10px;
}
.formsteps__item:last-child::after { display: none; }
.formsteps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e4eaf2;
  color: var(--muted);
  font-size: 12px;
}
.formsteps__item.is-current { color: var(--brand); }
.formsteps__item.is-current .formsteps__num { background: var(--brand); color: #fff; }
.formsteps__item.is-done { color: var(--brand); }
.formsteps__item.is-done .formsteps__num { background: var(--brand); color: #fff; }
.formsteps__item.is-done::after { background: var(--brand); }

/* 本文に .cf7-steps を置いた場合の簡易スタイル（任意・テーマ標準は .formsteps） */
.cf7-steps { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 22px 0; flex-wrap: wrap; }
.cf7-step { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--muted); }
.cf7-step .num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #e4eaf2; color: var(--muted); font-size: 12px; }
.cf7-step.is-active .num, .cf7-step.is-done .num { background: var(--brand); color: #fff; }
.cf7-step.is-active, .cf7-step.is-done { color: var(--brand); }
.cf7-bar { width: 26px; height: 2px; background: var(--line); }

/* フォーム本体（CF7の出力を整形） */
.formpage__form {
  margin-top: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 30px 30px;
}
.formpage__empty { color: var(--muted); font-size: 14px; text-align: center; }
.formpage__form p { margin: 0 0 16px; font-size: 14px; color: var(--ink); }
.formpage__form label { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.formpage__form input[type="text"],
.formpage__form input[type="email"],
.formpage__form input[type="tel"],
.formpage__form input[type="url"],
.formpage__form input[type="number"],
.formpage__form input[type="date"],
.formpage__form select,
.formpage__form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.formpage__form textarea { min-height: 130px; resize: vertical; }
.formpage__form input:focus,
.formpage__form select:focus,
.formpage__form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 111, 224, .15);
}
.formpage__form input[type="submit"],
.formpage__form button[type="submit"],
.formpage__form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 6px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 14px rgba(31, 111, 224, .28);
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}
.formpage__form input[type="submit"]:hover,
.formpage__form .wpcf7-submit:hover { filter: brightness(1.06); }

/* CF7：入力→確認→送信 の画面切替（JSが is-confirming を付与）
   ※ .cf7c-buttons に display を指定しないこと（.cf7-confirm-screen の非表示と衝突するため） */
.formpage__form .cf7-confirm-screen { display: none; }
.formpage__form form.is-confirming .cf7-input-screen { display: none; }
.formpage__form form.is-confirming .cf7-confirm-screen { display: block; }

.formpage__form .cf7c-buttons { margin-top: 4px; }
/* 「修正する」（戻る）は控えめに（送信するとは縦並び） */
.formpage__form .cf7-back-btn,
.formpage__form .cf7c-back {
  background: #eef1f6;
  color: var(--ink);
  box-shadow: none;
  margin-bottom: 10px;
}
.formpage__form .cf7-back-btn:hover,
.formpage__form .cf7c-back:hover { filter: none; background: #e3e8f0; }
.formpage__form .wpcf7-spinner { margin: 12px auto 0; }

/* 「確認する」ボタン：中央配置で大きく */
.formpage__form .cf7-confirm-btn {
  display: block;
  width: auto;
  min-width: min(340px, 100%);
  margin: 10px auto 0;
  padding: 17px 48px;
  font-size: 17px;
}

/* 必須未入力などのエラー時ハイライト */
.formpage__form .is-invalid {
  border-color: #e04b4b !important;
  box-shadow: 0 0 0 3px rgba(224, 75, 75, .14) !important;
}

/* 確認画面の内容一覧 */
.formpage__form .cf7-confirm-screen h3 { font-size: 17px; color: var(--navy); margin: 0 0 6px; }
.formpage__form .cf7c-list { margin: 8px 0 16px; }
.cf7c-row {
  display: grid;
  grid-template-columns: 34% 1fr;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.cf7c-row:first-child { border-top: 1px solid var(--line); }
.cf7c-label { font-weight: 700; color: var(--navy); }
.cf7c-value { color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.formpage__form .cf7c-files-note { font-size: 13px; color: var(--muted); margin-top: -4px; }
.formpage__form .cf7c-section { font-size: 13.5px; font-weight: 800; color: var(--navy); letter-spacing: .02em; margin: 18px 0 2px; }
.formpage__form .cf7c-list > .cf7c-section:first-child { margin-top: 0; }
.cf7c-value.is-empty { color: #aab4c2; }

/* ===== ファイル添付エリア（CF7 Drag & Drop Multiple File Upload）=====
   「ファイルの参照」を大きな青ボタンにし、枠内どこでもクリックできると分かるUIに */
.formpage__form .codedropz-upload-handler {
  position: relative;
  border: 2px dashed #a9c3e8;
  border-radius: 14px;
  background: #f6faff;
  padding: 22px 16px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.formpage__form .codedropz-upload-handler:hover,
.formpage__form .codedropz-upload-handler.dnd-dragover,
.formpage__form .codedropz-upload-handler.dragover {
  border-color: var(--brand);
  background: #eaf3ff;
  box-shadow: 0 0 0 3px rgba(31, 111, 224, .1);
}
.formpage__form .codedropz-upload-container {
  border: none;
  background: transparent;
  padding: 0;
}
.formpage__form .dnd-upload-text,
.formpage__form .codedropz-upload-inner h3 {
  margin: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--navy);
}
.formpage__form .dnd-upload-text .dnd-text-or {
  display: block;
  margin: 6px 0 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}
/* 参照ボタン本体 */
.formpage__form .cd-upload-btn,
.formpage__form .dnd-upload-text a,
.formpage__form .wpcf7-drag-n-drop-file {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 240px;
  padding: 14px 30px;
  background: var(--brand);
  color: #fff !important;
  font-size: 16.5px;
  font-weight: 700;
  text-decoration: none !important;
  border: none;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(31, 111, 224, .32);
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}
.formpage__form .cd-upload-btn::before,
.formpage__form .dnd-upload-text a::before,
.formpage__form .wpcf7-drag-n-drop-file::before {
  content: "";
  flex: none;
  width: 21px;
  height: 21px;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E") no-repeat center / contain;
}
.formpage__form .cd-upload-btn:hover,
.formpage__form .dnd-upload-text a:hover,
.formpage__form .wpcf7-drag-n-drop-file:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(31, 111, 224, .38);
}
/* 「0 / 10」カウンタ（右下に配置して文言と重ならないように） */
.formpage__form .dnd-upload-counter {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
/* アップロード済みリスト */
.formpage__form .dnd-upload-status { margin-top: 12px; }
@media (max-width: 680px) {
  .formpage__form .dnd-upload-text,
  .formpage__form .codedropz-upload-inner h3 { font-size: 13.5px; }
  .formpage__form .cd-upload-btn,
  .formpage__form .dnd-upload-text a,
  .formpage__form .wpcf7-drag-n-drop-file { min-width: 0; width: 100%; padding: 13px 18px; font-size: 15px; }
}

/* サンクス（送信完了）画面 */
.formpage__thanks {
  margin-top: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 44px 30px 40px;
  text-align: center;
}
.formpage__thanks[hidden] { display: none; }
.formpage__thanks-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #e6f6ea;
  color: #1ba24d;
}
.formpage__thanks-icon svg { width: 34px; height: 34px; }
.formpage__thanks-title { font-size: 22px; font-weight: 800; color: var(--navy); }
.formpage__thanks-text { margin-top: 12px; font-size: 14.5px; line-height: 1.9; color: var(--ink); }
.formpage__thanks-text a { color: var(--brand); font-weight: 600; }
.formpage__thanks-home { display: inline-flex; margin-top: 24px; padding: 12px 32px; }

/* ---------- 10. 出現アニメ ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- 11. レスポンシブ ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 26px; }
  .hero__promo { max-width: 460px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  :root { --gutter: 18px; }

  .site-header__inner { min-height: 60px; }
  .site-logo__img { height: 54px; margin-bottom: -3px; }
  .site-logo__caption { font-size: 10px; }
  .header-toggle { width: 40px; height: 40px; }

  /* ハンバーガー表示 & メニューをパネル化 */
  .header-toggle { display: inline-flex; }
  .header-actions {
    position: absolute;
    top: calc(100% + 8px);
    right: var(--gutter);
    width: min(280px, calc(100vw - 2 * var(--gutter)));
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 16px 34px rgba(20, 52, 110, .18);
    display: none;
  }
  .header-actions.is-open { display: flex; }
  .btn-header { width: 100%; justify-content: center; padding: 12px 16px; font-size: 14px; gap: 8px; }
  .btn-header .icon { display: inline-block; width: 16px; height: 16px; }

  /* TOPIC：1行のスリム帯 */
  .topics { gap: 8px; padding: 7px 10px; margin-bottom: 10px; border-radius: 10px; }
  .topics__label { font-size: 10px; letter-spacing: .08em; padding: 4px 9px; }
  .topics__item { font-size: 12.5px; padding: 0 14px 0 22px; }
  .topics__item::before { width: 5px; height: 5px; left: 9px; }

  /* ヒーロー：初見で依頼カードが見えるよう圧縮 */
  .hero { padding-block: 14px 22px; }
  .hero__inner { gap: 12px; }
  .hero__main { order: 2; }
  .hero__badge { font-size: 11px; padding: 5px 12px; gap: 6px; }
  .hero__badge .icon { width: 1em; height: 1em; }
  .hero__title { margin-top: 8px; font-size: 26px; line-height: 1.2; }
  .hero__contact { margin-top: 8px; padding: 6px 12px; gap: 7px; font-size: 12.5px; }
  .hero__contact-label { font-size: 11px; }
  .hero__skyline { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 55%); mask-image: linear-gradient(to bottom, transparent 0, #000 55%); }

  /* おすすめツール：最上部のスリムな横バーに */
  .hero__promo { order: 1; }
  .featured__ribbon {
    top: -7px; left: 10px;
    font-size: 9.5px; font-weight: 700;
    padding: 3px 8px 3px 7px;
    gap: 4px;
    box-shadow: 0 4px 10px rgba(216, 158, 56, .3);
    animation: none;
    transform: rotate(-2deg);
  }
  .featured__ribbon::before { width: 7px; height: 7px; }
  .featured__box {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    text-align: left;
    border-radius: 12px;
  }
  .featured__brand { flex: none; }
  .featured__logo { height: 34px; padding: 4px 8px; border-radius: 8px; }
  .featured__body { flex: 1 1 auto; min-width: 0; }
  .featured__product { justify-content: flex-start; gap: 6px; font-size: 12.5px; line-height: 1.35; }
  .featured__pill { display: none; }
  .featured__text { display: none; }
  .featured__btn { flex: none; align-self: center; padding: 8px 12px; font-size: 12px; }

  /* サービスカード：コンパクト化して2枚目まで見せる */
  .services { padding-block: 6px 16px; }
  .services__grid { grid-template-columns: 1fr; gap: 8px; }
  .service-card { padding: 11px 13px 11px; border-radius: 12px; }
  /* タグはタイトルと内容が重複するためスマホでは非表示（表示したい場合は下行を削除） */
  .service-card__tag { display: none; }
  .service-card__head { gap: 10px; margin-top: 0; }
  .service-card__icon { width: 38px; height: 38px; }
  .service-card__icon .icon { width: 22px; height: 22px; }
  .service-card__title { font-size: 15px; line-height: 1.28; }
  .service-card__title small { font-size: 10.5px; }
  .service-card__desc {
    margin-top: 6px;
    font-size: 11.5px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .service-card__actions { margin-top: 9px; gap: 7px; }
  .actions--split a.actions__primary,
  .actions--split .actions__primary .pdf-trigger { font-size: 13.5px; padding: 10px 6px; }
  .actions--split .actions__secondary { font-size: 11.5px; padding: 9px 4px; }

  .help-cta__inner { flex-direction: column; text-align: center; gap: 20px; }
  .help-cta__btn { width: 100%; }
  .br-pc { display: none; }
}

@media (max-width: 380px) {
  .service-card__actions { grid-template-columns: 1fr; }
  .info-card__list { gap: 6px; }
}
