/*
 * Theme Name: Revit
 * Theme URI: https://revit-works.com/
 * Description: Revit WEB・PCサポート テーマ
 * Version: 1.0.0
 * Author: Revit
 * Author URI: https://revit-works.com/
 * Text Domain: revit
 */

/* ============================================================
   TABLE OF CONTENTS
   01. Base / Variables
   02. Header
   03. Hero
   04. Section Base
   05. Pain Section
   06. Services
   07. Achievements
   08. Reasons
   09. Pricing
   10. FAQ
   11. LINE CTA
   12. Profile
   13. Footer
   14. Animations
   15. Single / Page（投稿・固定ページ）
   16. 404
   17. Responsive
============================================================ */
  :root {
    --navy: #0d1f3c;
    --navy-mid: #152d52;
    --navy-light: #1e3d6e;
    --teal: #0891b2;
    --teal-bright: #06b6d4;
    --green: #16a34a;
    --green-bright: #22c55e;
    --white: #ffffff;
    --off-white: #f0f4f8;
    --gray-light: #e2e8f0;
    --gray: #94a3b8;
    --text: #1e293b;
    --text-light: #475569;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
  }

  /* ===== HEADER ===== */
  header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(13, 31, 60, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo svg {
    height: 28px;
    width: auto;
    display: block;
  }
  .logo svg .st14,
  .footer-logo svg .fl14 {
    fill: #ffffff !important;
  }

  .header-cta {
    background: var(--green);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
  }
  .header-cta:hover { background: var(--green-bright); }

  /* ===== HERO ===== */
  /*
   * 背景写真の差し替え方法:
   * WordPress管理画面 → 外観 → カスタマイズ → 追加CSS に以下を追加:
   * .hero { background-image: url('画像URL'); }
   * または front-page.php の .hero に style="background-image:url('...')" を直接記述
   */
  .hero {
    min-height: 100vh;
    background-color: var(--navy);
    background-image: url('/wp-content/themes/revit/assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    padding: 100px 24px 80px;
    overflow: hidden;
  }

  /* オーバーレイ: 左暗め→右に写真が見えるグラデーション（A案） */
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      105deg,
      rgba(8, 18, 40, 0.88) 0%,
      rgba(8, 18, 40, 0.75) 45%,
      rgba(8, 18, 40, 0.30) 75%,
      rgba(8, 18, 40, 0.10) 100%
    );
    z-index: 1;
  }

  /* 写真がない場合のフォールバック背景 */
  .hero.no-image::before {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #0f2847 100%);
  }

  /* グリッドは削除（写真背景と競合するため） */
  .hero-grid { display: none; }

  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
  }

  /* 地域バッジ */
  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--white);
    padding: 7px 16px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 32px;
    animation: fadeUp 0.7s ease both;
  }
  .hero-badge .badge-dot {
    width: 6px; height: 6px;
    background: var(--teal-bright);
    border-radius: 50%;
    flex-shrink: 0;
    animation: badgePulse 2s ease-in-out infinite;
  }
  @keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.5); }
  }

  /* メインタイトル: 大きく・シンプル */
  .hero-title {
    font-size: clamp(36px, 7vw, 64px);
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
    animation: fadeUp 0.7s 0.12s ease both;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  }
  .hero-title .accent       { color: var(--teal-bright); }
  .hero-title .accent-green { color: var(--green-bright); }

  /* サブコピー */
  .hero-sub {
    font-size: 16px;
    color: rgba(255,255,255,0.82);
    line-height: 1.9;
    margin-bottom: 40px;
    animation: fadeUp 0.7s 0.22s ease both;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  }

  /* 信頼バッジ */
  .trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    animation: fadeUp 0.7s 0.32s ease both;
  }
  .trust-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.9);
    padding: 8px 16px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(4px);
  }
  .trust-badge .dot {
    width: 7px; height: 7px;
    background: var(--green-bright);
    border-radius: 50%;
    flex-shrink: 0;
  }

  /* CTAグループ */
  .hero-cta-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    animation: fadeUp 0.7s 0.42s ease both;
  }

  /* スクロール案内 */
  .hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.4);
    font-size: 10px;
    letter-spacing: 0.15em;
    animation: fadeUp 0.7s 0.8s ease both;
  }
  .hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollLine 1.8s ease-in-out infinite;
  }
  @keyframes scrollLine {
    0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
    100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
  }

  .btn-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(22,163,74,0.4);
  }
  .btn-line:hover {
    background: var(--green-bright);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(22,163,74,0.5);
  }

  .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--white);
    padding: 14px 28px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
  }
  .btn-outline:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.6);
  }

  /* ===== SECTION BASE ===== */
  section { padding: 80px 24px; }

  .container {
    max-width: 960px;
    margin: 0 auto;
  }

  .section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--teal);
    text-transform: uppercase;
    margin-bottom: 10px;
  }

  .section-title {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 900;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 12px;
  }

  .section-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 48px;
  }

  /* ===== PAIN SECTION ===== */
  .pain { background: var(--off-white); }

  .pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin-bottom: 40px;
  }

  .pain-item {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-left: 3px solid var(--teal);
    padding: 16px 18px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .pain-item::before {
    content: '✓';
    color: var(--teal);
    font-weight: 700;
    flex-shrink: 0;
  }

  .pain-resolve {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    color: var(--white);
    padding: 28px 32px;
    border-radius: 0;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
  }
  .pain-resolve span { color: var(--teal-bright); }

  /* ===== SERVICES ===== */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }

  .service-card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 0;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
  }
  .service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--teal-bright));
    transform: scaleX(0);
    transition: transform 0.3s;
  }
  .service-card:hover::before { transform: scaleX(1); }
  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    border-color: var(--teal-bright);
  }

  .service-icon {
    width: 80px; height: 80px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
  }
  .service-icon svg {
    width: 56px;
    height: 56px;
    stroke: var(--navy);
  }

  .service-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
  }

  .service-list {
    list-style: none;
    text-align: left;
  }
  .service-list li {
    font-size: 12px;
    color: var(--text-light);
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .service-list li::before {
    content: '›';
    color: var(--teal);
    font-weight: 700;
  }

  /* ===== ACHIEVEMENTS ===== */
  .achievements { background: var(--navy); }
  .achievements .section-title { color: var(--white); }
  .achievements .section-label { color: var(--teal-bright); }
  .achievements .section-desc { color: rgba(255,255,255,0.6); }

  .achieve-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }

  .achieve-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0;
    padding: 24px 20px;
  }

  .achieve-tag {
    display: inline-block;
    background: rgba(8,145,178,0.2);
    color: var(--teal-bright);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
  }

  .achieve-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.4;
  }

  .achieve-result {
    font-size: 12px;
    color: var(--green-bright);
    font-weight: 700;
  }

  /* ===== REASONS ===== */
  .reasons { background: var(--off-white); }

  .reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
  }

  .reason-card {
    background: var(--white);
    border-radius: 12px;
    padding: 28px 24px;
    border: 1px solid var(--gray-light);
    position: relative;
  }

  .reason-num {
    font-family: 'Syne', sans-serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: -8px;
    background: linear-gradient(135deg, #2CA6E0 0%, #0B57A6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.35;
  }

  .reason-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .reason-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
  }

  /* ===== PRICING ===== */
  .pricing-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    margin-bottom: 20px;
  }

  .pricing-table thead {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--white);
  }

  .pricing-table thead th {
    padding: 16px 20px;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
  }

  .pricing-table tbody tr {
    border-bottom: 1px solid var(--gray-light);
    transition: background 0.2s;
  }
  .pricing-table tbody tr:hover { background: var(--off-white); }

  .pricing-table tbody td {
    padding: 14px 20px;
    font-size: 14px;
  }

  .pricing-table .price {
    font-weight: 700;
    color: var(--teal);
  }

  .pricing-note {
    font-size: 12px;
    color: var(--text-light);
    background: var(--off-white);
    padding: 14px 18px;
    border-radius: 8px;
    border-left: 3px solid var(--teal);
  }

  .anchor-tag {
    display: inline-block;
    font-size: 10px;
    color: var(--gray);
    margin-left: 8px;
    text-decoration: line-through;
  }

  /* ===== FAQ ===== */
  .faq { background: var(--off-white); }

  .faq-list { display: flex; flex-direction: column; gap: 12px; }

  .faq-item {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 10px;
    overflow: hidden;
  }

  /* ===== FAQ ACCORDION ===== */
  .faq-item { cursor: pointer; }

  .faq-q {
    padding: 18px 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    user-select: none;
  }
  .faq-q .q-left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }
  .faq-q .q-mark {
    background: var(--teal);
    color: var(--white);
    width: 22px; height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
  }
  .faq-chevron {
    flex-shrink: 0;
    width: 18px; height: 18px;
    color: var(--gray);
    transition: transform 0.3s;
    margin-top: 2px;
  }
  .faq-item.open .faq-chevron { transform: rotate(180deg); }

  .faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }
  .faq-item.open .faq-body { max-height: 200px; }

  .faq-a {
    padding: 0 20px 18px 52px;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
  }

  /* ===== LINE CTA ===== */
  .line-cta {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    text-align: center;
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
  }
  .line-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(8,145,178,0.15) 0%, transparent 70%);
  }
  .line-cta > * { position: relative; z-index: 1; }

  .line-cta .section-title { color: var(--white); margin-bottom: 8px; }

  .line-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 24px 0 32px;
  }

  .line-menu-item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
  }

  .btn-line-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--green);
    color: var(--white);
    padding: 18px 40px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 28px rgba(22,163,74,0.45);
    transition: all 0.2s;
  }
  .btn-line-large:hover {
    background: var(--green-bright);
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(22,163,74,0.55);
  }

  .line-hours {
    margin-top: 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
  }

  /* ===== PROFILE ===== */
  .profile { background: var(--white); }

  .profile-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    align-items: start;
  }

  .profile-avatar {
    border-radius: 50%;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--off-white);
    border: 4px solid var(--gray-light);
    max-width: 200px;
    width: 100%;
  }
  .profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
  }

  .profile-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
  }

  .profile-role {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 18px;
  }

  .profile-desc {
    font-size: 14px;
    color: var(--text);
    line-height: 1.9;
    margin-bottom: 20px;
  }

  .skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .skill-tag {
    background: var(--off-white);
    border: 1px solid var(--gray-light);
    color: var(--navy);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
  }

  /* ===== FOOTER ===== */
  footer {
    background: var(--navy);
    padding: 40px 24px 24px;
    color: rgba(255,255,255,0.7);
  }

  .footer-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: space-between;
    margin-bottom: 32px;
  }

  .footer-logo svg {
    height: 24px;
    width: auto;
    display: block;
    margin-bottom: 8px;
  }

  .footer-tagline { font-size: 12px; color: rgba(255,255,255,0.5); }

  .footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }

  .footer-nav a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
  }
  .footer-nav a:hover { color: var(--teal-bright); }

  .footer-bottom {
    max-width: 960px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* ===== ANIMATIONS ===== */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* ===== MOBILE ANIMATIONS ===== */
  @media (max-width: 768px) {
    .service-card, .achieve-card, .reason-card, .faq-item, .pain-item {
      transition: opacity 0.5s ease, transform 0.5s ease;
    }
    .pain-item.reveal-item { opacity: 0; transform: translateX(-20px); }
    .pain-item.reveal-item.visible { opacity: 1; transform: translateX(0); }
    .service-card.reveal-item { opacity: 0; transform: translateY(30px); }
    .service-card.reveal-item.visible { opacity: 1; transform: translateY(0); }
    .achieve-card.reveal-item { opacity: 0; transform: scale(0.95); }
    .achieve-card.reveal-item.visible { opacity: 1; transform: scale(1); }
    .reason-card.reveal-item { opacity: 0; transform: translateY(24px); }
    .reason-card.reveal-item.visible { opacity: 1; transform: translateY(0); }
    .faq-item.reveal-item { opacity: 0; transform: translateX(16px); }
    .faq-item.reveal-item.visible { opacity: 1; transform: translateX(0); }
    .column-single-main{padding: 0!Important;}
  }
  @media (max-width: 600px) {
    .profile-inner { grid-template-columns: 1fr; }
    .profile-avatar { max-width: 160px; }
    .hero-cta-group { flex-direction: column; }
    .btn-line, .btn-outline { justify-content: center; }
    .column-single-main{padding: 0!Important;}

    /* Hero スマホ調整 */
    .hero {
      padding: 72px 20px 60px;
      align-items: flex-start;
      /* flexをcolumnに変えてscrollを自然なフローで下に置く */
      flex-direction: column;
      justify-content: space-between;
      background-image: url('/wp-content/themes/revit/assets/images/hero-bg_sp.jpg');
    }
    .hero-title {
      font-size: clamp(32px, 9vw, 42px);
    }
    /* SCROLLの絶対配置を解除・幅100%でセンタリング */
    .hero-scroll {
      position: relative;
      bottom: auto;
      left: auto;
      transform: none;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-top: 32px;
      padding-bottom: 8px;
    }
  }

/* ===== 15. SINGLE / PAGE ===== */
.single-main {
  padding: 100px 24px 80px;
  background: #f0f4f8;
  min-height: 100vh;
}
.single-container {
  max-width: 760px;
  margin: 0 auto;
}

/* パンくず */
.breadcrumb {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumb a {
  color: #0891b2;
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: #cbd5e1; }
.breadcrumb-current { color: #64748b; }

/* 記事ヘッダー */
.article-header { margin-bottom: 32px; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.article-date {
  font-size: 13px;
  color: #94a3b8;
}
.article-cat {
  font-size: 11px;
  font-weight: 700;
  background: rgba(8,145,178,0.1);
  color: #0891b2;
  padding: 3px 10px;
  border-radius: 3px;
  text-decoration: none;
  letter-spacing: 0.05em;
}
.article-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  color: #0d1f3c;
  line-height: 1.5;
}

/* アイキャッチ */
.article-thumb {
  margin-bottom: 40px;
  border-radius: 0;
  overflow: hidden;
}
.article-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* 本文 */
.article-content {
  background: #fff;
  padding: 48px 40px;
  font-size: 15px;
  line-height: 2;
  color: #1e293b;
}
.article-content h2 {
  font-size: 20px;
  font-weight: 900;
  color: #0d1f3c;
  border-left: 4px solid #0891b2;
  padding-left: 14px;
  margin: 40px 0 18px;
}
.article-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0d1f3c;
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}
.article-content p { margin-bottom: 1.6em; }
.article-content a { color: #0891b2; }
.article-content a:hover { text-decoration: underline; }
.article-content ul, .article-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.6em;
}
.article-content li { margin-bottom: 0.5em; }
.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 24px auto;
}
.article-content blockquote {
  border-left: 3px solid #0891b2;
  margin: 24px 0;
  padding: 12px 20px;
  background: #f0f4f8;
  color: #475569;
  font-style: italic;
}
.article-content code {
  background: #1e293b;
  color: #06b6d4;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 13px;
  font-family: monospace;
}
.article-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 13px;
  line-height: 1.7;
}

/* 前後の記事 */
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.article-nav a {
  font-size: 13px;
  color: #0891b2;
  text-decoration: none;
  font-weight: 500;
}
.article-nav a:hover { text-decoration: underline; }
.article-nav-next { text-align: right; }

@media (max-width: 600px) {
  .article-content { padding: 28px 20px; }
}

/* ===== page.php 固有スタイル ===== */
.page-main {
  padding: 100px 24px 80px;
  background: #f0f4f8;
  min-height: 100vh;
}
.page-container {
  max-width: 760px;
  margin: 0 auto;
}

/* パンくず（single.phpと共通） */
.breadcrumb {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumb a {
  color: #0891b2;
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: #cbd5e1; }
.breadcrumb-current { color: #64748b; }

/* ページヘッダー */
.page-header { margin-bottom: 32px; }
.page-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  color: #0d1f3c;
  line-height: 1.5;
  border-left: 4px solid #0891b2;
  padding-left: 16px;
}

/* アイキャッチ */
.page-thumb {
  margin-bottom: 40px;
  overflow: hidden;
}
.page-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* 本文（single.phpと同じスタイル） */
.page-content {
  background: #fff;
  padding: 48px 40px;
  font-size: 15px;
  line-height: 2;
  color: #1e293b;
}
.page-content h2 {
  font-size: 20px;
  font-weight: 900;
  color: #0d1f3c;
  border-left: 4px solid #0891b2;
  padding-left: 14px;
  margin: 40px 0 18px;
}
.page-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0d1f3c;
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}
.page-content p { margin-bottom: 1.6em; }
.page-content a { color: #0891b2; }
.page-content a:hover { text-decoration: underline; }
.page-content ul, .page-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.6em;
}
.page-content li { margin-bottom: 0.5em; }
.page-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 24px auto;
}
.page-content blockquote {
  border-left: 3px solid #0891b2;
  margin: 24px 0;
  padding: 12px 20px;
  background: #f0f4f8;
  color: #475569;
  font-style: italic;
}
.page-content code {
  background: #1e293b;
  color: #06b6d4;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 13px;
  font-family: monospace;
}
.page-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .page-content { padding: 28px 20px; }
}

/* ===== 16. 404 ===== */
/* 404ページはnoindexをwp_headフックで追加 */
.notfound-main {
  padding: 120px 24px 80px;
  background: #f0f4f8;
  min-height: 100vh;
}
.notfound-container {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* メッセージ */
.notfound-body {
  text-align: center;
  padding: 56px 40px;
  background: #fff;
  border-top: 3px solid #0891b2;
}
.notfound-code {
  font-family: 'Syne', sans-serif;
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #2CA6E0, #0B57A6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  opacity: 0.3;
}
.notfound-title {
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 900;
  color: #0d1f3c;
  margin-bottom: 16px;
}
.notfound-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.9;
  margin-bottom: 32px;
}
.notfound-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #16a34a;
  color: #fff;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 20px rgba(22,163,74,0.35);
}
.notfound-btn:hover {
  background: #22c55e;
  transform: translateY(-2px);
}

/* リンク・検索 */
.notfound-links,
.notfound-search,
.notfound-recent {
  background: #fff;
  padding: 32px 36px;
  border-left: 3px solid #0891b2;
}
.notfound-links-title {
  font-size: 15px;
  font-weight: 700;
  color: #0d1f3c;
  margin-bottom: 18px;
}
.notfound-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.notfound-link-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}
.notfound-link-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.notfound-link-list a {
  font-size: 14px;
  color: #0891b2;
  text-decoration: none;
  font-weight: 500;
}
.notfound-link-list a:hover { text-decoration: underline; }
.notfound-post-date {
  font-size: 12px;
  color: #94a3b8;
  flex-shrink: 0;
}

/* 検索フォーム */
.notfound-search .search-form {
  display: flex;
  gap: 8px;
}
.notfound-search .search-field {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  outline: none;
  border-radius: 0;
  font-family: inherit;
  color: #1e293b;
}
.notfound-search .search-field:focus {
  border-color: #0891b2;
}
.notfound-search .search-submit {
  background: #0d1f3c;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0;
  font-family: inherit;
  transition: background 0.2s;
}
.notfound-search .search-submit:hover {
  background: #152d52;
}

@media (max-width: 600px) {
  .notfound-body { padding: 36px 20px; }
  .notfound-links,
  .notfound-search,
  .notfound-recent { padding: 24px 20px; }
  .notfound-code { font-size: 72px; }
}

/* ===== CONTACT FORM SECTION ===== */
.contact-form-section {
  background: var(--off-white);
}
.contact-form-wrap {
  background: var(--white);
  padding: 40px;
  border-top: 3px solid var(--teal);
  max-width: 640px;
  margin: 0 auto;
}

/* CF7スタイル上書き */
.wpcf7 input:not([type="submit"]),
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-light);
  border-radius: 0;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 4px;
}
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8,145,178,0.08);
}
.wpcf7 textarea { resize: vertical; min-height: 140px; }

.wpcf7-submit {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  padding: 15px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s;
  margin-top: 8px;
}
.wpcf7-submit:hover { background: var(--navy-mid); }
.wpcf7-spinner { display: none !important; }

/* CF7 未インストール時の案内 */
.cf7-notice {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
  padding: 24px;
  background: var(--off-white);
  border-left: 3px solid var(--teal);
}

/* CF7ラベル */
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-bottom: 16px; }
.wpcf7 label { font-size: 13px; font-weight: 700; color: var(--navy); display: block; margin-bottom: 6px; }

@media (max-width: 600px) {
  .contact-form-wrap { padding: 28px 20px; }
}

/* ===== CF7 MULTI-STEP FORMS ===== */

/* ステップインジケーター */
.msc-step-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-light);
}
.msc-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-light);
  color: var(--gray);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.msc-step-num.active {
  background: var(--teal);
  color: var(--white);
}
.msc-step-num.done {
  background: var(--green);
  color: var(--white);
}
.msc-step-label {
  font-size: 12px;
  color: var(--gray);
  font-weight: 500;
}
.msc-step-arrow {
  font-size: 12px;
  color: var(--gray-light);
}

/* フィールド */
.msc-field {
  margin-bottom: 20px;
}
.msc-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.msc-required {
  font-size: 10px;
  font-weight: 700;
  background: #ef4444;
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
}
.msc-field input,
.msc-field select,
.msc-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-light);
  border-radius: 0;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.msc-field input:focus,
.msc-field select:focus,
.msc-field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8,145,178,0.08);
}
.msc-field textarea { resize: vertical; min-height: 140px; }

/* プライバシー */
.msc-privacy {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.msc-privacy a { color: var(--teal); }

/* 確認テーブル */
.msc-confirm-lead {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
  padding: 12px 16px;
  background: rgba(8,145,178,0.06);
  border-left: 3px solid var(--teal);
}
.msc-confirm-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  font-size: 14px;
}
.msc-confirm-table th,
.msc-confirm-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--gray-light);
  text-align: left;
  vertical-align: top;
}
.msc-confirm-table th {
  width: 36%;
  font-weight: 700;
  color: var(--navy);
  background: var(--off-white);
  font-size: 13px;
}
.msc-confirm-table td {
  color: var(--text);
  word-break: break-all;
}

/* ボタン */
.msc-btn-next,
.msc-btn-submit {
  display: block;
  width: 100%;
  background: var(--navy);
  color: var(--white);
  padding: 15px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s;
  text-align: center;
}
.msc-btn-next:hover,
.msc-btn-submit:hover { background: var(--navy-mid); }

.msc-btn-group {
  display: flex;
  gap: 12px;
}
.msc-btn-prev {
  display: block;
  width: 40%;
  background: var(--off-white);
  color: var(--text);
  padding: 15px;
  border: 1px solid var(--gray-light);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s;
  text-align: center;
  flex-shrink: 0;
}
.msc-btn-prev:hover { background: var(--gray-light); }
.msc-btn-group .msc-btn-submit { flex: 1; }

@media (max-width: 600px) {
  .msc-step-header { gap: 5px; }
  .msc-step-label { display: none; }
  .msc-confirm-table th { width: 38%; font-size: 12px; }
}

/* ===== CF7 MULTI-STEP FORMS ===== */

/* ステップインジケーター */
.ms-step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-light);
}

/* 入力フィールド共通 */
.contact-form-wrap .wpcf7 input:not([type="submit"]):not([type="checkbox"]),
.contact-form-wrap .wpcf7 select,
.contact-form-wrap .wpcf7 textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-light);
  border-radius: 0;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-top: 6px;
}
.contact-form-wrap .wpcf7 input:focus,
.contact-form-wrap .wpcf7 select:focus,
.contact-form-wrap .wpcf7 textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8,145,178,0.08);
}
.contact-form-wrap .wpcf7 textarea {
  resize: vertical;
  min-height: 140px;
}

/* ラベル */
.contact-form-wrap .wpcf7 label,
.contact-form-wrap .form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
}
.contact-form-wrap .required {
  font-size: 10px;
  font-weight: 700;
  background: #ef4444;
  color: #fff;
  padding: 2px 6px;
}

/* 確認テーブル */
.ms-confirm-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  font-size: 14px;
}
.ms-confirm-table tr {
  border-bottom: 1px solid var(--gray-light);
}
.ms-confirm-table th {
  width: 36%;
  padding: 14px 12px;
  text-align: left;
  font-weight: 700;
  color: var(--navy);
  background: var(--off-white);
  font-size: 13px;
  vertical-align: top;
}
.ms-confirm-table td {
  padding: 14px 12px;
  color: var(--text);
  word-break: break-all;
}

/* ボタン群 */
.ms-btn-group {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* 次へボタン */
.btn-ms-next,
.wpcf7 input.btn-ms-next {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  padding: 15px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s;
  margin-top: 8px;
  display: block;
}
.btn-ms-next:hover,
.wpcf7 input.btn-ms-next:hover {
  background: var(--navy-mid);
}

/* 戻るボタン */
.btn-ms-back,
.wpcf7 input.btn-ms-back {
  flex: 1;
  background: transparent;
  color: var(--text-light);
  padding: 15px;
  border: 1px solid var(--gray-light);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.2s;
}
.btn-ms-back:hover,
.wpcf7 input.btn-ms-back:hover {
  background: var(--off-white);
  color: var(--navy);
}

/* 送信ボタン */
.btn-ms-submit,
.wpcf7 input.btn-ms-submit {
  flex: 2;
  background: var(--green);
  color: var(--white);
  padding: 15px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s;
  box-shadow: 0 4px 16px rgba(22,163,74,0.35);
}
.btn-ms-submit:hover,
.wpcf7 input.btn-ms-submit:hover {
  background: var(--green-bright);
}

/* チェックボックス */
.contact-form-wrap .wpcf7-acceptance {
  margin-top: 4px;
}
/* form-group label の flex を acceptance 内では無効化 */
.contact-form-wrap .form-group.form-privacy label.checkbox-label {
  display: block;
  font-weight: 400;
}
.contact-form-wrap .form-group.form-privacy label.checkbox-label br {
  display: none;
}
.contact-form-wrap .form-group.form-privacy .wpcf7-form-control-wrap {
  display: block;
}
.contact-form-wrap .wpcf7-list-item {
  display: block !important;
  margin: 0 !important;
}
.contact-form-wrap .wpcf7-list-item label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400 !important;
  color: var(--text-light);
  cursor: pointer;
  margin-bottom: 0 !important;
}
.contact-form-wrap .wpcf7-list-item label input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
  accent-color: var(--teal);
  display: inline-block !important;
}
.contact-form-wrap .wpcf7-list-item-label {
  display: inline !important;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}
.contact-form-wrap .wpcf7-acceptance a {
  color: var(--teal);
  text-decoration: underline;
}

/* エラーメッセージ */
.wpcf7-not-valid-tip {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
  display: block;
}
.wpcf7-response-output {
  font-size: 13px;
  padding: 12px 16px;
  margin-top: 16px;
  border-radius: 0;
}
.wpcf7-mail-sent-ok {
  border-color: var(--green) !important;
  color: var(--green) !important;
}
.wpcf7-mail-sent-ng,
.wpcf7-validation-errors {
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}

/* スピナー非表示 */
.wpcf7-spinner { display: none !important; }

@media (max-width: 600px) {
  .ms-confirm-table th { width: 40%; }
  .ms-btn-group { flex-direction: column-reverse; }
  .btn-ms-back, .wpcf7 input.btn-ms-back { flex: auto; }
  .btn-ms-submit, .wpcf7 input.btn-ms-submit { flex: auto; }
}

/* ===== コラム・Gutenbergコードブロック =====  */
.column-single-body code,
.wp-block-code code,
.wp-block-code {
  background: #1e293b !important;
  color: #e2e8f0 !important;
  font-family: 'Courier New', Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
}
.column-single-body code {
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 13px;
}
.column-single-body pre,
.wp-block-code {
  padding: 20px 24px !important;
  overflow-x: auto;
  margin: 24px 0 !important;
  border-radius: 0 !important;
  border: none !important;
}
.column-single-body pre code {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: #e2e8f0 !important;
}
/* コメント行 */
.column-single-body pre .comment,
.wp-block-code .comment { color: #94a3b8 !important; }
