/* =========================================
       Variables & Reset
       ========================================= */
    :root {
      --main-color: #0f2b46;
      --sub-color: #007fd5;
      --accent-color: #dc77a0; 
      --text-main: #1e293b;
      --text-light: #475569;
      --bg-light: #f8fafd; 
      --bg-white: #ffffff;
      --border-color: #e8edf2; 
      --shadow-sm: 0 4px 12px rgba(15, 43, 70, 0.04);
      --shadow-md: 0 10px 30px rgba(15, 43, 70, 0.06);
      --shadow-lg: 0 20px 50px rgba(15, 43, 70, 0.1);
      --transition-ease: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

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

    body {
      font-family: 'Noto Sans JP', sans-serif;
      color: var(--text-main);
      line-height: 1.8;
      background-color: var(--bg-white);
      letter-spacing: 0.02em;
      -webkit-font-smoothing: antialiased;
    }

    a {
      text-decoration: none;
      color: inherit;
      transition: var(--transition-ease);
    }

    ul {
      list-style: none;
    }

    img {
      max-width: 100%;
      height: auto;
      vertical-align: middle;
    }

    /* =========================================
       Layout Container
       ========================================= */
    .container {
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 40px;
    }

    .section-padding {
      padding: 100px 0; 
    }

    .bg-light {
      background-color: var(--bg-light);
    }

    /* =========================================
       Typography & Section Headers
       ========================================= */
    .section-header {
      text-align: center;
      margin-bottom: 60px; 
    }

    .section-sub-title {
      font-size: 12px;
      font-weight: 700;
      color: var(--sub-color);
      display: block;
      margin-bottom: 12px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .section-title {
      font-size: 32px; 
      color: var(--main-color);
      line-height: 1.5;
      font-weight: 800;
      letter-spacing: 0.05em;
      margin-bottom: 20px;
    }

    .section-lead {
      font-size: 13px;
      color: var(--text-light);
      line-height: 1.8;
      max-width: 680px; 
      margin: 0 auto;
    }

    /* Buttons */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 16px 36px;
      border-radius: 8px;
      font-size: 15px;
      font-weight: 700;
      transition: var(--transition-ease);
      cursor: pointer;
      text-align: center;
      letter-spacing: 0.05em;
      border: none;
    }
    
    .btn-accent {
      background-color: var(--accent-color);
      color: #fff;
      border: 1px solid var(--accent-color);
      box-shadow: 0 4px 15px rgba(220, 119, 160, 0.3); 
    }
    .btn-accent:hover {
      transform: translateY(-2px); 
      box-shadow: 0 8px 20px rgba(220, 119, 160, 0.35);
      background-color: #c8638c; 
      border-color: #c8638c;
    }

    .btn-sub {
      background-color: transparent;
      color: var(--sub-color);
      border: 2px solid var(--sub-color);
    }
    .btn-sub:hover {
      background-color: var(--sub-color);
      color: #fff;
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(0, 127, 213, 0.2);
    }

    /* =========================================
       Header
       ========================================= */
    header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 72px;
      background-color: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(226, 232, 240, 0.8);
      z-index: 1000;
      transition: all 0.3s ease;
      box-shadow: 0 2px 20px rgba(15, 43, 70, 0.03);
      top: 28px;
    }

    .header-inner {
      max-width: 1920px;
      height: 100%;
      margin: 0 auto;
      padding: 0 40px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .header-left {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .header-left img {
      height: 36px; 
    }

    .header-h1 {
      font-size: 12px;
      font-weight: 500;
      color: var(--text-light);
      letter-spacing: 0.05em;
      border-left: 1px solid var(--border-color);
      padding-left: 16px;
    }

    .header-nav ul {
      display: flex;
      gap: 32px;
    }

    .header-nav a {
      font-size: 13px;
      font-weight: 500;
      color: var(--text-main);
    }
    .header-nav a:hover {
      color: var(--sub-color);
    }

    .btn-header {
      padding: 10px 24px;
      font-size: 13px;
      border-radius: 6px;
      box-shadow: none;
    }

    /* SP: ナビは折り返しで崩れるため非表示。ロゴ＋CTAのみ */
    @media (max-width: 768px) {
      .header-inner {
        padding: 0 16px;
      }
      .header-h1 {
        display: none;
      }
      .header-nav {
        display: none !important;
      }
    }

    /* =========================================
       Hero Section
       ========================================= */
    .hero {
      padding: 160px 0 120px; 
      min-height: 90vh; 
      display: flex;
      align-items: center;
      background: linear-gradient(135deg, var(--main-color) 0%, #051321 100%);
      position: relative;
      overflow: hidden;
    }

    .hero-pattern {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
      background-size: 40px 40px;
      z-index: 0;
    }

    .hero::before {
      content: '';
      position: absolute;
      top: -20%;
      left: -10%;
      width: 800px;
      height: 800px;
      background: radial-gradient(circle, rgba(0, 127, 213, 0.15) 0%, rgba(255,255,255,0) 70%);
      border-radius: 50%;
      z-index: 0;
    }

    .hero::after {
      content: '';
      position: absolute;
      bottom: -30%;
      right: -10%;
      width: 600px;
      height: 600px;
      background: radial-gradient(circle, rgba(220, 119, 160, 0.1) 0%, rgba(255,255,255,0) 70%);
      border-radius: 50%;
      z-index: 0;
    }

    .hero .container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 60px;
      position: relative;
      z-index: 1;
      width: 100%;
    }

    @media (max-width: 768px) {
      .hero .container {
        flex-direction: column;
      }

      .container {
        padding: 0 28px;
      }
    }

    .hero-text-box {
      flex: 1.1;
      animation: fadeInUp 0.8s ease forwards;
      opacity: 0;
    }

    .hero h2 {
      font-size: 40px; 
      line-height: 1.4;
      color: #ffffff; 
      margin-bottom: 24px;
      letter-spacing: 0.03em;
      font-weight: 900;
    }

    .hero-lead {
      font-size: 13px;
      line-height: 1.8;
      color: #cbd5e1; 
      margin-bottom: 40px;
    }

    .hero-btns {
      display: flex;
      gap: 16px;
    }

    .hero-image-box {
      flex: 1;
      display: flex;
      justify-content: center;
      animation: fadeInRight 1s ease forwards;
      opacity: 0;
      animation-delay: 0.2s;
    }

    .hero-img-dummy {
      width: 100%;
      aspect-ratio: 16 / 10;
      backdrop-filter: blur(10px);
      border-radius: 16px;
      box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
      border: 1px solid rgba(255, 255, 255, 0.15);
      transition: transform 0.5s ease, box-shadow 0.5s ease;
      overflow: hidden;
    }

    .hero-video {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      background: transparent;
    }
    
    .hero-image-box:hover .hero-img-dummy {
      transform: translateY(-8px);
      box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
      border-color: rgba(255,255,255,0.3);
    }

    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(30px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes fadeInRight {
      from { opacity: 0; transform: translateX(30px); }
      to { opacity: 1; transform: translateX(0); }
    }

    /* Scroll Animation Base */
    .reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    }
    .reveal.active {
      opacity: 1;
      transform: translateY(0);
    }

    /* =========================================
       Comparison Section
       ========================================= */
    .compare-section {
      background-color: var(--bg-white);
    }

    .compare-grid {
      display: flex;
      gap: 32px; 
      align-items: stretch;
    }

    .compare-card {
      flex: 1;
      padding: 48px 40px; 
      border-radius: 16px;
      transition: var(--transition-ease);
      position: relative;
    }

    .compare-generic {
      background: #fdfdfe;
      border: 1px solid var(--border-color);
    }
    .compare-generic:hover {
      box-shadow: var(--shadow-sm);
      transform: translateY(-4px);
    }
    .compare-generic h3 {
      font-size: 20px;
      color: #94a3b8;
      margin-bottom: 30px;
      text-align: center;
      font-weight: 700;
    }
    .compare-generic ul li {
      margin-bottom: 24px;
      font-size: 13px;
      color: #64748b;
      display: flex;
      align-items: flex-start;
      line-height: 1.6;
    }
    .compare-generic ul li::before {
      content: "✕";
      color: #cbd5e1;
      margin-right: 16px;
      font-size: 16px;
      font-weight: bold;
      margin-top: 2px;
    }

    .compare-custom {
      background: #fff;
      border: 2px solid var(--sub-color); 
      box-shadow: var(--shadow-md); 
    }
    .compare-custom::after {
      content: "ゼロから設計・構築";
      position: absolute;
      top: -16px;
      left: 50%;
      transform: translateX(-50%);
      background: linear-gradient(90deg, var(--sub-color), #00a2ff);
      color: #fff;
      padding: 6px 20px;
      border-radius: 30px;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.1em;
      box-shadow: 0 4px 10px rgba(0, 127, 213, 0.2);
    }
    .compare-custom:hover {
      transform: translateY(-6px);
      box-shadow: var(--shadow-lg);
    }
    .compare-custom h3 {
      font-size: 26px;
      color: var(--main-color);
      margin-bottom: 30px;
      text-align: center;
      font-weight: 900;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
    }
    .compare-custom h3 img {
      height: 32px;
      width: auto;
    }
    .compare-custom ul li {
      margin-bottom: 24px;
      font-size: 13px;
      color: var(--text-main);
      display: flex;
      align-items: flex-start;
      line-height: 1.6;
      font-weight: 500;
    }
    .compare-custom ul li::before {
      content: "✓";
      color: var(--sub-color);
      margin-right: 16px;
      font-size: 16px;
      font-weight: 900;
      margin-top: -2px;
    }

    @media (max-width: 768px) {
      .compare-grid { flex-direction: column; }
      .compare-card { padding: 40px 24px; }
    }

    /* =========================================
       Merits Section
       ========================================= */
    .merits-section {
      position: relative;
      background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
      overflow: hidden;
      padding-bottom: 0;
    }
    
    .merits-section::before {
      content: "";
      position: absolute;
      top: 5%;
      left: -10%;
      width: 700px;
      height: 700px;
      background: radial-gradient(circle, rgba(0, 127, 213, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
      border-radius: 50%;
      z-index: 0;
    }

    .merit-item {
      display: flex;
      align-items: center;
      gap: 50px;
      margin-bottom: 100px; 
      position: relative;
      z-index: 1;
    }
    .merit-item:nth-child(even) {
      flex-direction: row-reverse;
    }
    .merit-item:last-child {
      margin-bottom: 0;
    }

    .merit-text {
      flex: 1;
      padding: 40px; 
      background: rgba(255, 255, 255, 0.7);
      border-radius: 16px;
      border: 1px solid rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(12px);
      box-shadow: var(--shadow-md);
      position: relative;
      transition: var(--transition-ease);
    }
    .merit-item:hover .merit-text {
      box-shadow: var(--shadow-lg);
    }

    .merit-number {
      position: absolute;
      top: -30px; 
      left: 10px; 
      font-size: 100px; 
      font-weight: 900;
      color: rgba(0, 127, 213, 0.04);
      line-height: 1;
      z-index: -1;
      letter-spacing: -0.05em;
      transition: all 0.4s ease;
    }
    .merit-item:hover .merit-number {
      color: rgba(0, 127, 213, 0.07);
      transform: translateX(10px);
    }

    .merit-text h3 {
      font-size: 26px;
      color: var(--main-color);
      margin-bottom: 24px;
      line-height: 1.5;
      font-weight: 800;
    }
    .merit-text h3 span {
      display: block;
      font-size: 13px;
      color: var(--sub-color);
      margin-bottom: 10px;
      letter-spacing: 0.1em;
    }
    .merit-text > p {
      font-size: 13px;
      color: var(--text-light);
      line-height: 1.8;
    }

    .merit-img {
      flex: 1.2;
      position: relative;
    }
    
    .merit-img::before {
      content: "";
      position: absolute;
      top: 24px;
      left: 24px;
      right: -24px;
      bottom: -24px;
      background: linear-gradient(135deg, var(--sub-color) 0%, var(--accent-color) 100%);
      border-radius: 20px;
      opacity: 0.08;
      z-index: -1;
      transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .merit-item:nth-child(even) .merit-img::before {
      left: -24px;
      right: 24px;
    }
    .merit-item:hover .merit-img::before {
      transform: translate(12px, 12px);
      opacity: 0.12;
    }
    .merit-item:nth-child(even):hover .merit-img::before {
      transform: translate(-12px, 12px);
    }

    .merit-img img {
      width: 100%;
      border-radius: 16px;
      border: 1px solid rgba(255, 255, 255, 0.9);
      box-shadow: var(--shadow-lg), inset 0 2px 5px rgba(255, 255, 255, 1);
      transition: var(--transition-ease);
    }
    .merit-item:hover .merit-img img {
      transform: translateY(-8px);
      box-shadow: 0 30px 60px rgba(15, 43, 70, 0.12), inset 0 2px 5px rgba(255, 255, 255, 1);
    }

    .merit-img .dummy-img {
      width: 100%;
      aspect-ratio: 16/10;
      background: linear-gradient(145deg, #ffffff, #f4f7f9);
      border-radius: 16px;
      border: 1px solid rgba(255, 255, 255, 0.9);
      box-shadow: var(--shadow-lg), inset 0 2px 5px rgba(255, 255, 255, 1);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #94a3b8;
      font-weight: 500;
      font-size: 14px;
      transition: var(--transition-ease);
    }
    .merit-item:hover .dummy-img {
      transform: translateY(-8px);
      box-shadow: 0 30px 60px rgba(15, 43, 70, 0.12), inset 0 2px 5px rgba(255, 255, 255, 1);
    }

    @media (max-width: 768px) {
      .merit-item,
      .merit-item:nth-child(even) {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
        margin-bottom: 60px;
      }
      .merit-img {
        flex: none;
        width: 100%;
      }
      .merit-text {
        padding: 24px;
      }
      .merit-text h3 {
        font-size: 20px;
      }
    }

    /* =========================================
       Functions Section
       ========================================= */
    .functions-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px; 
    }
    .function-card {
      background: #fff;
      padding: 32px; 
      border-radius: 16px;
      border: 1px solid var(--border-color);
      transition: var(--transition-ease);
      position: relative;
      display: flex;
      flex-direction: column;
      z-index: 1;
      overflow: hidden;
      box-shadow: var(--shadow-sm);
    }
    .function-card:hover {
      transform: translateY(-6px);
      box-shadow: var(--shadow-lg);
      border-color: var(--sub-color);
    }
    .function-card h3 {
      font-size: 18px;
      color: var(--main-color);
      margin-bottom: 16px;
      font-weight: 800;
      position: relative;
      padding-bottom: 16px;
    }
    .function-card h3::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      width: 40px;
      height: 3px;
      background: linear-gradient(90deg, var(--sub-color), var(--accent-color));
      border-radius: 2px;
    }
    .function-card p {
      font-size: 13px;
      color: var(--text-light);
      line-height: 1.8;
    }

    /* =========================================
       Use Cases Section
       ========================================= */
    .usecase-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 32px; 
    }
    .usecase-card {
      background: #fff;
      border-radius: 20px;
      padding: 40px; 
      box-shadow: var(--shadow-md);
      border: 1px solid var(--border-color);
      transition: var(--transition-ease);
      position: relative;
    }
    .usecase-card:hover {
      box-shadow: var(--shadow-lg);
      transform: translateY(-4px);
    }
    .usecase-card h3 {
      font-size: 22px;
      color: var(--main-color);
      margin-bottom: 24px; 
      display: flex;
      align-items: center;
      gap: 16px;
      font-weight: 800;
    }
    .usecase-card h3::before {
      content: "CASE";
      font-size: 12px;
      background: var(--main-color);
      color: #fff;
      padding: 4px 10px;
      border-radius: 6px;
      letter-spacing: 0.1em;
    }
    .usecase-flow {
      display: flex;
      align-items: center;
      gap: 32px; 
      position: relative;
    }
    .usecase-before, .usecase-after {
      flex: 1;
      padding: 28px; 
      border-radius: 16px;
      font-size: 13px;
      line-height: 1.7;
    }
    .usecase-before {
      background: #f1f5f9;
      color: var(--text-light);
      border: 1px solid #e2e8f0;
      position: relative;
    }
    .usecase-before::before {
      content: 'BEFORE';
      font-weight: 900;
      font-size: 12px;
      color: #94a3b8;
      display: block;
      margin-bottom: 12px;
      letter-spacing: 0.05em;
    }
    .usecase-arrow {
      flex-shrink: 0;
      width: 56px;
      height: 56px;
      background: var(--sub-color);
      color: #fff;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      box-shadow: 0 4px 15px rgba(0, 127, 213, 0.3);
    }
    .usecase-after {
      background: linear-gradient(135deg, rgba(0, 127, 213, 0.05) 0%, rgba(0, 127, 213, 0.01) 100%);
      color: var(--text-main);
      border: 1px solid rgba(0, 127, 213, 0.15);
    }
    .usecase-after::before {
      content: 'AFTER';
      font-weight: 900;
      font-size: 13px;
      color: var(--sub-color);
      display: block;
      margin-bottom: 12px;
      letter-spacing: 0.05em;
    }
    .usecase-after b {
      color: var(--sub-color);
      font-weight: 800;
      background: linear-gradient(transparent 60%, rgba(0, 127, 213, 0.15) 60%);
    }

    @media (max-width: 900px) {
      .usecase-flow { flex-direction: column; gap: 24px; }
      .usecase-arrow { transform: rotate(90deg); }
      .functions-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 600px) {
      .functions-grid { grid-template-columns: 1fr; }
    }

    /* =========================================
       Pricing Section
       ========================================= */
    .pricing-grid {
      display: flex;
      gap: 28px;
      align-items: stretch;
      justify-content: center;
      max-width: 960px;
      margin: 20px auto 0;
    }
    .plan-card {
      flex: 1;
      background: #fff;
      border-radius: 20px;
      padding: 40px;
      text-align: center;
      border: 1px solid var(--border-color);
      position: relative;
      display: flex;
      flex-direction: column;
      transition: var(--transition-ease);
      box-shadow: var(--shadow-sm);
    }
    .plan-card:hover {
      transform: translateY(-6px);
      box-shadow: var(--shadow-lg);
    }
    .plan-label {
      font-size: 14px;
      font-weight: 800;
      color: var(--sub-color);
      margin-bottom: 12px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }
    .plan-card h3 {
      font-size: 22px;
      margin-bottom: 20px;
      color: var(--main-color);
      border-bottom: 1px solid var(--border-color);
      padding-bottom: 20px;
      font-weight: 800;
    }
    .plan-features {
      margin-bottom: 28px;
      text-align: left;
      flex-grow: 1;
    }
    .plan-features li {
      padding: 7px 0;
      font-size: 14px;
      color: var(--text-main);
      display: flex;
      align-items: center;
    }
    .plan-features li::before {
      content: "✓";
      color: var(--sub-color);
      font-weight: bold;
      margin-right: 12px;
      font-size: 16px;
    }
    .plan-card .btn {
      width: 100%;
    }

    @media (max-width: 768px) {
      .pricing-grid {
        flex-direction: column;
        padding: 0 20px;
        margin-top: 0;
      }
    }

    /* =========================================
       Steps Section
       ========================================= */
    .step-list {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 24px;
      width: 100%;
    }
    .step-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative;
    }
    .step-item:not(:last-child)::after {
      content: '';
      position: absolute;
      top: 35px; 
      left: 50%;
      width: calc(100% + 24px); 
      height: 2px;
      background: var(--border-color);
      z-index: 0;
    }
    .step-num {
      flex-shrink: 0;
      width: 70px;
      height: 70px;
      background: #fff;
      color: var(--sub-color);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      font-weight: 800;
      border: 2px solid var(--sub-color);
      z-index: 1;
      box-shadow: 0 4px 15px rgba(0, 127, 213, 0.1);
      transition: all 0.3s ease;
      margin-bottom: 24px; 
    }
    .step-item:hover .step-num {
      background: var(--sub-color);
      color: #fff;
      box-shadow: 0 8px 25px rgba(0, 127, 213, 0.3);
    }
    .step-content {
      background: #fff;
      padding: 24px 20px;
      border-radius: 16px;
      box-shadow: var(--shadow-sm);
      border: 1px solid var(--border-color);
      width: 100%;
      text-align: center;
      transition: all 0.3s ease;
      flex-grow: 1;
    }
    .step-item:hover .step-content {
      box-shadow: var(--shadow-md);
      transform: translateY(-5px);
    }
    .step-content h3 {
      font-size: 16px;
      color: var(--main-color);
      margin-bottom: 12px;
      font-weight: 800;
    }
    .step-content p {
      font-size: 13px; 
      color: var(--text-light);
      line-height: 1.7;
      text-align: left;
    }

    @media (max-width: 900px) {
      .step-list { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
      .step-item:nth-child(2)::after { display: none; } 
    }
    @media (max-width: 600px) {
      .step-list { grid-template-columns: 1fr; }
      .step-item:not(:last-child)::after { display: none; } 
    }

    /* =========================================
       FAQ
       ========================================= */
    .faq-list {
      max-width: 800px;
      margin: 0 auto;
      background: #fff;
      border-radius: 20px;
      padding: 16px 40px; 
      box-shadow: var(--shadow-md);
      border: 1px solid var(--border-color);
    }
    .faq-item {
      margin-bottom: 0;
      border-bottom: 1px solid var(--border-color);
    }
    .faq-item:last-child {
      border-bottom: none;
    }
    .faq-item summary {
      padding: 20px 0; 
      font-size: 15px; 
      font-weight: 700;
      cursor: pointer;
      list-style: none;
      display: flex;
      align-items: center;
      justify-content: space-between;
      color: var(--main-color);
      transition: color 0.3s;
    }
    .faq-item summary:hover {
      color: var(--sub-color);
    }
    .faq-item summary::-webkit-details-marker {
      display: none;
    }
    .faq-item summary::after {
      content: "";
      width: 10px;
      height: 10px;
      border-right: 2px solid var(--main-color);
      border-bottom: 2px solid var(--main-color);
      transform: rotate(45deg);
      transition: transform 0.3s ease;
      margin-right: 8px;
    }
    .faq-item[open] summary::after {
      transform: rotate(-135deg) translate(-4px, -4px);
    }
    .faq-item h3 {
      font-size: 15px;
      display: inline;
    }
    .faq-answer {
      padding: 0 0 20px 0; 
      color: var(--text-light);
      font-size: 13px;
      line-height: 1.8;
    }

    /* =========================================
       CTA Block
       ========================================= */
    .cta-block {
      background: linear-gradient(135deg, var(--main-color) 0%, #173b5c 100%);
      color: #fff;
      text-align: center;
      padding: 100px 0; 
      position: relative;
      overflow: hidden;
    }
    .cta-block::before {
      content: '';
      position: absolute;
      top: -50%;
      left: 50%;
      transform: translateX(-50%);
      width: 800px;
      height: 800px;
      background: radial-gradient(circle, rgba(220, 119, 160, 0.15) 0%, rgba(255,255,255,0) 60%);
      border-radius: 50%;
      z-index: 0;
      pointer-events: none;
    }
    .cta-block::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
      background-size: 40px 40px;
      z-index: 0;
      opacity: 0.5;
    }
    .cta-block .container {
      position: relative;
      z-index: 1;
    }
    .cta-block h2 {
      font-size: 32px;
      margin-bottom: 24px;
      letter-spacing: 0.05em;
      line-height: 1.5;
      font-weight: 800;
    }
    .cta-block p {
      font-size: 16px;
      margin-bottom: 48px;
      color: rgba(255, 255, 255, 0.8);
      line-height: 1.8;
    }

    /* =========================================
       Footer
       ========================================= */
    footer {
      background-color: #0b1521;
      color: #fff;
      padding: 70px 0 35px; 
    }
    .footer-top {
      display: flex;
      justify-content: space-between;
      margin-bottom: 50px; 
    }
    .footer-brand {
      width: 45%;
    }
    .footer-brand img {
      height: 36px; 
      margin-bottom: 24px;
    }
    .footer-brand p {
      font-size: 13px;
      color: #94a3b8;
      line-height: 1.8;
    }
    .footer-links {
      display: flex;
      gap: 80px;
    }
    .footer-nav h4 {
      font-size: 15px;
      margin-bottom: 24px;
      color: #fff;
      letter-spacing: 0.05em;
      font-weight: 700;
    }
    .footer-nav ul li {
      margin-bottom: 16px;
    }
    .footer-nav ul li a {
      color: #94a3b8;
      font-size: 13px;
    }
    .footer-nav ul li a:hover {
      color: #fff;
    }
    .footer-bottom {
      text-align: center;
      padding-top: 32px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      color: #64748b;
      font-size: 12px;
    }

    /* =========================================
       Diagnostic Modal
       ========================================= */
    .modal-overlay {
      position: fixed;
      top: 0; left: 0; width: 100%; height: 100%;
      background: rgba(15, 43, 70, 0.7);
      backdrop-filter: blur(4px);
      z-index: 2000;
      display: none;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    .modal-overlay.open {
      display: flex;
      opacity: 1;
    }
    .modal-content {
      background: #fff;
      width: 90%;
      max-width: 760px;
      border-radius: 22px;
      padding: 0;
      position: relative;
      box-shadow: var(--shadow-lg);
      transform: translateY(20px);
      transition: transform 0.3s ease;
      max-height: 90vh;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    .modal-overlay.open .modal-content {
      transform: translateY(0);
    }
    .modal-content-scroll {
      overflow-x: hidden;
      overflow-y: auto;
      max-height: min(90vh, 100%);
      min-height: 0;
      flex: 1 1 auto;
      padding: 56px 48px 48px;
      scrollbar-gutter: stable both-edges;
      scrollbar-width: thin;
      scrollbar-color: rgba(148, 163, 184, 0.65) transparent;
    }
    .modal-content-scroll::-webkit-scrollbar {
      width: 10px;
    }
    .modal-content-scroll::-webkit-scrollbar-track {
      background: transparent;
    }
    .modal-content-scroll::-webkit-scrollbar-thumb {
      background-color: rgba(148, 163, 184, 0.55);
      border-radius: 999px;
      border: 3px solid transparent;
      background-clip: padding-box;
    }
    .modal-content-scroll::-webkit-scrollbar-thumb:hover {
      background-color: rgba(100, 116, 139, 0.65);
    }
    .modal-close {
      position: absolute;
      top: 24px;
      right: 24px;
      z-index: 2;
      font-size: 32px;
      line-height: 1;
      color: #94a3b8;
      background: none;
      border: none;
      cursor: pointer;
      transition: color 0.2s;
    }
    .modal-close:hover {
      color: var(--main-color);
    }
    
    .diagnostic-step {
      display: none;
      animation: fadeInModal 0.4s ease forwards;
    }
    .diagnostic-step.active {
      display: block;
    }
    @keyframes fadeInModal {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    .modal-header {
      text-align: center;
      max-width: 640px;
      margin: 0 auto 36px;
    }
    .step-indicator {
      display: inline-block;
      font-size: 12px;
      font-weight: 800;
      color: var(--sub-color);
      background: rgba(0, 127, 213, 0.1);
      padding: 6px 16px;
      border-radius: 20px;
      margin-bottom: 16px;
      letter-spacing: 0.05em;
    }
    .modal-header h3 {
      font-size: 24px;
      color: var(--main-color);
      line-height: 1.5;
      font-weight: 800;
      margin-bottom: 12px;
    }
    .modal-header p {
      font-size: 15px;
      color: var(--text-light);
      line-height: 1.6;
    }

    .modal-success-icon {
      font-size: 48px;
      color: var(--sub-color);
      margin-bottom: 16px;
      line-height: 1;
    }

    .modal-success-close {
      margin-top: 32px;
      padding: 12px 32px;
    }
    
    .options-grid {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .option-btn {
      width: 100%;
      text-align: left;
      padding: 20px 24px;
      background: #fdfdfe;
      border: 2px solid var(--border-color);
      border-radius: 12px;
      font-size: 15px;
      color: var(--text-main);
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      position: relative;
      outline: none;
    }
    .option-btn:hover {
      border-color: var(--sub-color);
      background: rgba(0, 127, 213, 0.02);
      transform: translateX(4px);
    }
    .option-btn::after {
      content: "→";
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--sub-color);
      font-weight: bold;
      opacity: 0;
      transition: opacity 0.2s;
    }
    .option-btn:hover::after {
      opacity: 1;
    }
    
    .lead-form {
      display: flex;
      flex-direction: column;
      gap: 18px;
      width: 100%;
      max-width: 640px;
      margin: 0 auto;
    }
    .lead-form input,
    .lead-form textarea,
    .lead-form select {
      width: 100%;
      min-height: 58px;
      padding: 16px 20px;
      border: 1px solid var(--border-color);
      border-radius: 10px;
      font-size: 15px;
      color: var(--text-main);
      background: #fff;
      transition: border 0.2s, box-shadow 0.2s;
      outline: none;
      font-family: 'Noto Sans JP', sans-serif;
    }
    .lead-form input:focus,
    .lead-form textarea:focus,
    .lead-form select:focus {
      border-color: var(--sub-color);
      box-shadow: 0 0 0 3px rgba(0,127,213,0.1);
    }
    .lead-form textarea {
      resize: vertical;
      min-height: 120px;
    }
    .lead-form .is-invalid {
      border-color: #d93025;
      box-shadow: 0 0 0 4px rgba(217, 48, 37, 0.08);
    }
    .lead-form .is-invalid:focus {
      border-color: #d93025;
      box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.15);
    }
    .lead-form-error {
      margin: -10px 12px 0;
      font-size: 13px;
      color: #d93025;
      line-height: 1.4;
      text-align: left;
    }
    .w-100 {
      width: 100%;
      margin-top: 14px;
    }

    /* 確認画面用のスタイル */
    .confirm-list {
      text-align: left;
      background: #f8fafd;
      padding: 24px;
      border-radius: 8px;
      border: 1px solid var(--border-color);
      margin-bottom: 24px;
    }
    .confirm-list dt {
      font-size: 13px;
      color: var(--text-light);
      margin-bottom: 4px;
      font-weight: 700;
    }
    .confirm-list dd {
      font-size: 15px;
      color: var(--text-main);
      margin-bottom: 16px;
      border-bottom: 1px solid var(--border-color);
      padding-bottom: 8px;
      word-break: break-all;
      white-space: pre-wrap;
    }
    .confirm-list dd:last-child {
      margin-bottom: 0;
      border-bottom: none;
      padding-bottom: 0;
    }
    .btn-group {
      display: flex;
      gap: 16px;
      margin-top: 24px;
    }

    @media (max-width: 600px) {
      .modal-content-scroll {
        padding: 48px 20px 32px;
        scrollbar-gutter: auto;
      }
      .modal-content {
        width: 95%;
        max-width: 95%;
        border-radius: 18px;
      }
      .modal-close {
        top: 18px;
        right: 18px;
      }
      .modal-header h3 { font-size: 18px; }
      .modal-header p { font-size: 13px; }
      .lead-form {
        max-width: none;
        gap: 16px;
      }
      .lead-form input,
      .lead-form textarea,
      .lead-form select {
        min-height: 54px;
        padding: 14px 16px;
      }
      .option-btn { padding: 16px; font-size: 14px; }
      .btn-group { flex-direction: column; gap: 12px; }
    }
