/*
Theme Name: VisionaryX Theme
Theme URI: https://example.com/
Author: suzuki
Author URI: https://example.com/
Description: 株式会社 VisionaryX Lab 用のオリジナルWordPressテーマ
Version: 1.0
Text Domain: visionaryx-theme
*/


    /* ===================================================
       VARIABLES & RESET
    =================================================== */
    :root {
      --color-primary:      #163a5f;
      --color-primary-dark: #102b46;
      --color-accent:       #2bb3c0;
      --color-accent-orange:#e87b2a;
      --color-bg:           #f7f9fc;
      --color-white:        #ffffff;
      --color-text:         #1f2a37;
      --color-subtext:      #5b6777;
      --color-border:       #d9e1ea;
      --shadow:   0 12px 30px rgba(22,58,95,.08);
      --shadow-lg:0 24px 60px rgba(22,58,95,.14);
      --radius:   16px;
      --radius-lg:24px;
      --max-width:1100px;
    }

    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      font-family: "Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic","Meiryo",sans-serif;
      color: var(--color-text);
      background: var(--color-white);
      line-height: 1.8;
    }

    img { max-width: 100%; display: block; }
    a   { color: inherit; text-decoration: none; }

    .container {
      width: 100%;
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 40px;
    }

    /* ===================================================
       TYPOGRAPHY UTILS
    =================================================== */
    .section { padding: 96px 0; }
    .section.alt { background: var(--color-bg); }

    .section-heading { margin-bottom: 52px; }
    .section-heading .label {
      display: inline-block;
      margin-bottom: 10px;
      font-size: .78rem;
      font-weight: 700;
      letter-spacing: .14em;
      color: var(--color-accent);
      text-transform: uppercase;
    }
    .section-heading h2 {
      margin: 0 0 14px;
      font-size: clamp(1.8rem, 3vw, 2.5rem);
      line-height: 1.3;
      color: var(--color-primary);
      font-weight: 900;
    }
    .section-heading p {
      margin: 0;
      color: var(--color-subtext);
      max-width: 680px;
    }

    /* ===================================================
       FADE-IN ANIMATION
    =================================================== */
    .fade-in {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity .7s ease, transform .7s ease;
    }
    .fade-in.visible { opacity: 1; transform: translateY(0); }

    /* ===================================================
       HEADER
    =================================================== */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: rgba(255,255,255,.96);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-bottom: 1px solid rgba(217,225,234,.8);
      transition: box-shadow .3s;
    }
    .site-header.scrolled { box-shadow: 0 4px 24px rgba(22,58,95,.1); }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 76px;
      gap: 24px;
    }

    .logo { display: flex; align-items: center; flex-shrink: 0; }
    .logo-img { height: 52px; width: auto; object-fit: contain; }

    .nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
    .nav a {
      font-size: .9rem; font-weight: 500; color: var(--color-subtext);
      transition: color .2s;
      position: relative;
    }
    .nav a::after {
      content:""; position: absolute; bottom: -3px; left:0;
      width:0; height:2px;
      background: var(--color-accent);
      border-radius:2px;
      transition: width .25s;
    }
    .nav a:hover { color: var(--color-primary); }
    .nav a:hover::after { width:100%; }

    /* ===================================================
       HERO
    =================================================== */
    .hero {
      position: relative;
      overflow: hidden;
      min-height: 640px;
      display: flex;
      align-items: center;
      padding: 120px 0 100px;
      color: var(--color-white);
    }

    /* 背景画像レイヤー */
    .hero-bg {
      position: absolute;
      inset: 0;
      background-image: url('images/hero-bg.jpg');
      background-size: cover;
      background-position: center;
      transform: scale(1.04);
      transition: transform 8s ease;
    }
    .hero:hover .hero-bg { transform: scale(1); }

    /* 背景オーバーレイ */
    .hero-overlay {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(105deg,
          rgba(16,43,70,.88) 0%,
          rgba(22,58,95,.75) 50%,
          rgba(22,58,95,.4) 100%
        );
    }

    .hero-inner {
      position: relative;
      z-index: 2;
      display: grid;
      grid-template-columns: 1.3fr .7fr;
      gap: 52px;
      align-items: center;
      width: 100%;
    }

    .hero-copy .eyebrow {
      display: inline-flex; align-items: center; gap: 8px;
      margin-bottom: 20px;
      padding: 7px 18px;
      border: 1px solid rgba(255,255,255,.28);
      border-radius: 999px;
      font-size: .8rem; font-weight: 700; letter-spacing: .08em;
      background: rgba(255,255,255,.1);
    }
    .hero-copy .eyebrow::before {
      content:""; width:6px; height:6px;
      background: var(--color-accent); border-radius:50%; flex-shrink:0;
    }

    .hero h1 {
      margin: 0 0 22px;
      font-size: clamp(2rem, 4.2vw, 3.4rem);
      line-height: 1.3; letter-spacing: .01em; font-weight: 900;
    }
    .hero h1 .highlight { color: var(--color-accent); }

    .hero-lead {
      margin: 0;
      font-size: 1rem;
      color: rgba(255,255,255,.88);
      max-width: 560px;
      line-height: 1.95;
    }

    .hero-actions { display:flex; flex-wrap:wrap; gap:14px; margin-top:36px; }

    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap:8px;
      min-height: 50px; padding: 0 30px;
      border-radius: 999px; font-weight: 700; font-size: .95rem;
      transition: transform .2s, box-shadow .2s, background .2s;
      cursor: pointer;
    }
    .btn:hover { transform: translateY(-2px); }

    .btn-primary {
      background: linear-gradient(135deg, var(--color-accent) 0%, #1fa3af 100%);
      color: var(--color-white);
      box-shadow: 0 8px 24px rgba(43,179,192,.4);
    }
    .btn-primary:hover { box-shadow: 0 14px 32px rgba(43,179,192,.5); }

    .btn-secondary {
      background: rgba(255,255,255,.12);
      color: var(--color-white);
      border: 1px solid rgba(255,255,255,.3);
    }
    .btn-secondary:hover { background: rgba(255,255,255,.22); }

    /* ヒーロー右側 */
    .hero-right { display:flex; flex-direction:column; gap:20px; }

    .hero-logo-wrap {
      background: rgba(255,255,255,.97);
      border-radius: var(--radius-lg);
      padding: 28px 32px;
      box-shadow: 0 24px 60px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.15);
      display:flex; align-items:center; justify-content:center;
    }
    .hero-logo-img { width:100%; max-width:260px; height:auto; }

    .hero-card {
      background: rgba(255,255,255,.1);
      border: 1px solid rgba(255,255,255,.18);
      border-radius: var(--radius);
      padding: 22px 26px;
      box-shadow: 0 12px 32px rgba(0,0,0,.16);
    }
    .hero-card h3 {
      margin:0 0 14px;
      font-size:.8rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
      color: rgba(255,255,255,.75);
      border-bottom:1px solid rgba(255,255,255,.15); padding-bottom:10px;
    }
    .hero-card dl { margin:0; }
    .hero-card dt { font-size:.76rem; font-weight:700; color:var(--color-accent); margin-top:10px; }
    .hero-card dt:first-child { margin-top:0; }
    .hero-card dd { margin:3px 0 0; font-size:.88rem; color:rgba(255,255,255,.95); line-height:1.6; }

    /* ===================================================
       ABOUT
    =================================================== */
    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 48px;
      align-items: center;
    }

    .about-image-wrap {
      position: relative;
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow-lg);
    }
    .about-image-wrap img {
      width:100%; height:380px;
      object-fit: cover;
      display: block;
      transition: transform .6s ease;
    }
    .about-image-wrap:hover img { transform: scale(1.04); }

    /* 画像の上のアクセントバッジ */
    .about-image-wrap::before {
      content:"About Us";
      position:absolute; top:20px; left:20px; z-index:2;
      background: var(--color-accent);
      color:#fff;
      font-size:.72rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
      padding:5px 12px; border-radius:999px;
    }

    .about-content {}
    .about-text-box {
      background: var(--color-white);
      border: 1px solid var(--color-border);
      border-radius: var(--radius);
      padding: 36px;
      box-shadow: var(--shadow);
      position: relative; overflow: hidden;
    }
    .about-text-box::before {
      content:"";
      position:absolute; top:0; left:0;
      width:4px; height:100%;
      background: linear-gradient(to bottom, var(--color-accent), var(--color-primary));
      border-radius:4px 0 0 4px;
    }
    .about-text-box p {
      margin:0; font-size:1.02rem; line-height:2; color:var(--color-text);
    }

    /* ===================================================
       SERVICES
    =================================================== */
    .services-grid {
      display: grid;
      grid-template-columns: repeat(3,1fr);
      gap: 28px;
    }

    .service-card {
      background: var(--color-white);
      border: 1px solid var(--color-border);
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow);
      transition: transform .25s, box-shadow .25s;
      display: flex; flex-direction: column;
    }
    .service-card:hover {
      transform: translateY(-8px);
      box-shadow: var(--shadow-lg);
    }

    /* カード上部の画像 */
    .service-card-img {
      width:100%; height:200px;
      object-fit:cover;
      display:block;
      transition: transform .5s ease;
    }
    .service-card:hover .service-card-img { transform: scale(1.06); }
    .service-card-img-wrap { overflow:hidden; position:relative; flex-shrink:0; }

    /* カード番号オーバーレイ */
    .service-card-img-wrap::after {
      content: attr(data-num);
      position:absolute; bottom:14px; right:16px;
      font-size:2.8rem; font-weight:900; line-height:1;
      color:rgba(255,255,255,.22);
      letter-spacing:-.02em;
      pointer-events:none;
    }

    .service-card-body { padding:28px; flex:1; display:flex; flex-direction:column; }

    .service-icon {
      width:48px; height:48px; margin-bottom:16px;
      border-radius:14px;
      display:grid; place-items:center;
      background: linear-gradient(135deg,rgba(43,179,192,.14),rgba(22,58,95,.07));
      color:var(--color-primary);
      font-size:1rem; font-weight:900;
    }
    .service-card h3 {
      margin:0 0 12px;
      font-size:1.08rem; line-height:1.5;
      color:var(--color-primary); font-weight:700;
    }
    .service-card p { margin:0; color:var(--color-subtext); font-size:.94rem; line-height:1.8; flex:1; }

    /* ===================================================
       COMPANY
    =================================================== */
    .profile-wrap {
      background: var(--color-white);
      border: 1px solid var(--color-border);
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow);
    }
    .profile-table { width:100%; border-collapse:collapse; }
    .profile-table th,
    .profile-table td {
      padding:22px 28px;
      border-bottom:1px solid var(--color-border);
      vertical-align:top; text-align:left;
    }
    .profile-table tr:last-child th,
    .profile-table tr:last-child td { border-bottom:none; }
    .profile-table th {
      width:220px;
      background:#f3f7fb;
      color:var(--color-primary); font-weight:700;
      white-space:nowrap; font-size:.92rem;
    }
    .profile-table td { color:var(--color-text); line-height:1.8; }

    /* ===================================================
       MESSAGE
    =================================================== */
    .message-grid {
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap:48px;
      align-items: center;
    }

    .message-image-wrap {
      border-radius: var(--radius-lg);
      overflow:hidden;
      box-shadow: var(--shadow-lg);
      order: 2; /* 画像を右に */
    }
    .message-image-wrap img {
      width:100%; height:400px;
      object-fit:cover;
      display:block;
      transition: transform .6s;
    }
    .message-image-wrap:hover img { transform: scale(1.04); }

    .message-content { order:1; }
    .message-box {
      background: var(--color-white);
      border: 1px solid var(--color-border);
      border-radius: var(--radius);
      padding: 40px;
      box-shadow: var(--shadow);
    }
    .message-box p { margin:0 0 1.2em; font-size:1.02rem; line-height:2; }
    .message-box p:last-child { margin-bottom:0; }

    /* ===================================================
       CONTACT
    =================================================== */
    .contact-box {
      background: var(--color-white);
      border: 1px solid var(--color-border);
      border-radius: var(--radius);
      padding: 48px;
      box-shadow: var(--shadow);
      text-align:center;
    }
    .contact-box p { margin:0 0 1em; font-size:1.02rem; }
    .contact-box p:last-child { margin-bottom:0; }

    .small-note {
      display:inline-block;
      margin-top:20px;
      font-size:.86rem;
      color:var(--color-subtext);
      padding:14px 20px;
      background:var(--color-bg);
      border-radius:10px;
      border-left:3px solid var(--color-border);
      text-align:left;
    }

	/* =========================
   Snow Monkey Forms
   VisionaryX Lab tone
========================= */

#contact .contact-box {
  text-align: left;
  max-width: 820px;
  margin: 0 auto;
}

/* フォーム全体 */
#contact .snow-monkey-form,
#contact .smf-form {
  margin: 0;
}

/* 項目間の余白 */
#contact .smf-item {
  margin-bottom: 22px;
}

/* ラベル */
#contact .smf-item__label,
#contact .smf-item__label__text,
#contact label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.6;
}

/* 必須ラベル */
#contact .smf-item__label__required {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(232, 123, 42, 0.12);
  color: var(--color-accent-orange);
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
}

/* 入力欄共通 */
#contact input[type="text"],
#contact input[type="email"],
#contact input[type="tel"],
#contact input[type="url"],
#contact input[type="number"],
#contact select,
#contact textarea {
  width: 100%;
  appearance: none;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  color: var(--color-text);
  padding: 15px 16px;
  font-size: 16px;
  line-height: 1.8;
  box-shadow: inset 0 1px 2px rgba(22, 58, 95, 0.02);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

/* テキストエリア */
#contact textarea {
  min-height: 180px;
  resize: vertical;
}

/* プレースホルダー */
#contact input::placeholder,
#contact textarea::placeholder {
  color: #8a96a6;
}

/* フォーカス */
#contact input:focus,
#contact select:focus,
#contact textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(43, 179, 192, 0.14);
}

/* selectの矢印 */
#contact select {
  background-image:
    linear-gradient(45deg, transparent 50%, #688096 50%),
    linear-gradient(135deg, #688096 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

/* 説明文 */
#contact .smf-item__description,
#contact .smf-item__description p {
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--color-subtext);
  line-height: 1.7;
}

/* エラーメッセージ */
#contact .smf-error-messages,
#contact .smf-system-error-content,
#contact .smf-item__message {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(232, 123, 42, 0.24);
  background: rgba(232, 123, 42, 0.08);
  color: #9f4e14;
  font-size: 0.86rem;
  line-height: 1.7;
}

/* 送信ボタンエリア */
#contact .smf-action {
  margin-top: 28px;
}

/* ボタン */
#contact button[type="submit"],
#contact input[type="submit"],
#contact .smf-button-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-accent) 0%, #1fa3af 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(43, 179, 192, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

#contact button[type="submit"]:hover,
#contact input[type="submit"]:hover,
#contact .smf-button-control:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(43, 179, 192, 0.34);
}

#contact button[type="submit"]:disabled,
#contact input[type="submit"]:disabled,
#contact .smf-button-control:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 確認画面・完了画面 */
#contact .smf-confirm-control,
#contact .smf-complete-control {
  margin-top: 18px;
}

/* ラジオ・チェック */
#contact input[type="checkbox"],
#contact input[type="radio"] {
  accent-color: var(--color-accent);
}

/* 横幅を少し上品に */
#contact .wp-block-snow-monkey-forms {
  max-width: 100%;
}

/* スマホ */
@media (max-width: 640px) {
  #contact .contact-box {
    padding: 24px;
  }

  #contact .smf-item {
    margin-bottom: 18px;
  }

  #contact button[type="submit"],
  #contact input[type="submit"],
  #contact .smf-button-control {
    width: 100%;
  }
}

    /* ===================================================
       FOOTER
    =================================================== */
    .site-footer { background:var(--color-primary-dark); color:rgba(255,255,255,.8); }

    .footer-inner { padding:60px 0 28px; }

    .footer-top {
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:40px;
      padding-bottom:40px;
      border-bottom:1px solid rgba(255,255,255,.1);
      margin-bottom:24px;
    }

    .footer-logo-wrap { display:flex; flex-direction:column; gap:14px; }
    .footer-logo-img {
      height:60px; width:auto;
      filter:brightness(0) invert(1); opacity:.9;
    }
    .footer-tagline {
      font-size:.86rem;
      color:rgba(255,255,255,.5);
      max-width:280px; line-height:1.7;
    }

    .footer-nav { display:flex; gap:52px; flex-wrap:wrap; }
    .footer-nav-group h4 {
      margin:0 0 14px;
      font-size:.76rem; font-weight:700;
      letter-spacing:.12em; text-transform:uppercase;
      color:var(--color-accent);
    }
    .footer-nav-group ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
    .footer-nav-group a { font-size:.88rem; color:rgba(255,255,255,.6); transition:color .2s; }
    .footer-nav-group a:hover { color:rgba(255,255,255,.96); }

    .footer-bottom { text-align:center; }
    .footer-bottom p { margin:0; font-size:.83rem; color:rgba(255,255,255,.4); }

    /* ===================================================
       RESPONSIVE
    =================================================== */
    @media (max-width:960px) {
      .hero-inner,
      .about-grid,
      .message-grid,
      .services-grid { grid-template-columns:1fr; }

      .hero { padding:88px 0 72px; }
      .hero-inner { gap:36px; }

      .header-inner {
        flex-direction:column; align-items:flex-start;
        padding:14px 0; min-height:auto; gap:10px;
      }
      .nav { gap:16px; }

      .about-image-wrap img,
      .message-image-wrap img { height:280px; }

      .message-image-wrap { order:1; }
      .message-content   { order:2; }

      .profile-table,
      .profile-table tbody,
      .profile-table tr,
      .profile-table th,
      .profile-table td { display:block; width:100%; }
      .profile-table th { padding-bottom:6px; border-bottom:none; background:#f3f7fb; }
      .profile-table td { padding-top:4px; padding-bottom:20px; }
      .profile-table tr { border-bottom:1px solid var(--color-border); }
      .profile-table tr:last-child { border-bottom:none; }

      .footer-top { flex-direction:column; gap:32px; }
    }

    @media (max-width:640px) {
      .container { padding: 0 20px; }
      .section { padding:68px 0; }
      .hero h1  { font-size:1.85rem; }

      .service-card-body,
      .about-text-box,
      .message-box,
      .contact-box { padding:24px; }

      .btn { width:100%; justify-content:center; }
      .footer-nav { gap:28px; }
      .logo-img { height:44px; }
    }
  