/*
Theme Name: 菊池ポートフォリオ
Theme URI: https://nkweb2026.com/
Author: 菊池
Author URI: https://nkweb2026.com/
Description: 業務Webアプリ・Webサイト制作のポートフォリオ兼 営業サイト。作品（Works）は管理画面から追加・編集できます。静的HTML版を自作テーマ化。
Version: 1.3.0
License: GNU General Public License v2 or later
Text Domain: kikuchi-portfolio
*/
    :root {
      --dark:       #0A1628;
      --navy:       #1E3A5F;
      --blue:       #2563EB;
      --blue-light: #3B82F6;
      --bg:         #F8FAFC;
      --bg-dark:    #F1F5F9;
      --white:      #FFFFFF;
      --text:       #1A202C;
      --text-mid:   #4A5568;
      --text-light: #94A3B8;
      --border:     #E2E8F0;
      --success:    #10B981;
    }

    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      font-family: 'Noto Sans JP', sans-serif;
      background: var(--white);
      color: var(--text);
      overflow-x: hidden;
      font-weight: 400;
    }

    /* ===== NAV ===== */
    #nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 300;
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.5rem;
      overflow: hidden;
      padding: 0 3rem;
      background: rgba(255,255,255,0.95);
      border-bottom: 1px solid var(--border);
      backdrop-filter: blur(12px);
    }
    .nav-logo {
      font-family: 'Noto Serif JP', serif;
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--dark);
      text-decoration: none;
      letter-spacing: 2px;
      flex-shrink: 0;
    }
    .nav-logo span {
      color: var(--blue);
      font-size: 0.6rem;
      font-family: 'Noto Sans JP', sans-serif;
      font-weight: 400;
      letter-spacing: 3px;
      display: block;
      margin-top: -2px;
    }
    .nav-links {
      display: flex;
      align-items: center;
      gap: 2rem;
      list-style: none;
    }
    .nav-links a {
      text-decoration: none;
      color: var(--text-mid);
      font-size: 0.82rem;
      letter-spacing: 0.5px;
      transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--blue); }
    .nav-contact {
      padding: 0.5rem 1.4rem;
      background: var(--blue);
      color: var(--white) !important;
      border-radius: 6px;
      font-weight: 500 !important;
      transition: background 0.2s !important;
    }
    .nav-contact:hover { background: var(--blue-light) !important; }
    .nav-mobile-cta {
      display: none;
      padding: 0.45rem 1rem;
      background: var(--blue);
      color: var(--white);
      text-decoration: none;
      border-radius: 6px;
      font-size: 0.78rem;
      font-weight: 500;
    }

    /* ===== HERO ===== */
    #hero {
      min-height: 100vh;
      display: flex;
      align-items: center;
      background: var(--white);
      padding: 64px 3rem 0;
      position: relative;
      overflow: hidden;
    }
    /* 背景の幾何学装飾 */
    #hero::before {
      content: '';
      position: absolute;
      top: -20%;
      right: -10%;
      width: 600px;
      height: 600px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
      pointer-events: none;
    }
    #hero::after {
      content: '';
      position: absolute;
      bottom: 5%;
      left: -5%;
      width: 400px;
      height: 400px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(37,99,235,0.04) 0%, transparent 70%);
      pointer-events: none;
    }
    .hero-inner {
      max-width: 1100px;
      margin: 0 auto;
      width: 100%;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: center;
    }
    .hero-left { position: relative; z-index: 1; }
    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      background: rgba(37,99,235,0.08);
      color: var(--blue);
      font-size: 0.72rem;
      font-weight: 500;
      letter-spacing: 2px;
      padding: 0.4rem 1rem;
      border-radius: 100px;
      border: 1px solid rgba(37,99,235,0.2);
      margin-bottom: 1.8rem;
    }
    .hero-badge::before { content: '●'; font-size: 0.4rem; }
    .hero-title {
      font-family: 'Noto Serif JP', serif;
      font-size: clamp(2rem, 4vw, 3.2rem);
      font-weight: 600;
      color: var(--dark);
      line-height: 1.4;
      margin-bottom: 1.4rem;
      word-break: keep-all;
    }
    .hero-title em {
      font-style: normal;
      color: var(--blue);
      position: relative;
    }
    .hero-title em::after {
      content: '';
      position: absolute;
      bottom: 2px;
      left: 0;
      right: 0;
      height: 3px;
      background: rgba(37,99,235,0.2);
      border-radius: 2px;
    }
    .hero-desc {
      font-size: 0.95rem;
      color: var(--text-mid);
      line-height: 1.9;
      font-weight: 300;
      margin-bottom: 2.5rem;
      max-width: 440px;
    }
    .hero-actions {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      margin-bottom: 3rem;
    }
    .btn-primary {
      display: inline-block;
      padding: 0.9rem 2rem;
      background: var(--blue);
      color: var(--white);
      text-decoration: none;
      border-radius: 8px;
      font-size: 0.88rem;
      font-weight: 500;
      transition: background 0.2s, transform 0.2s;
    }
    .btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); }
    .btn-secondary {
      display: inline-block;
      padding: 0.9rem 2rem;
      border: 1.5px solid var(--border);
      color: var(--text-mid);
      text-decoration: none;
      border-radius: 8px;
      font-size: 0.88rem;
      font-weight: 400;
      transition: border-color 0.2s, color 0.2s;
    }
    .btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
    .hero-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
    }
    .hero-tag {
      padding: 0.3rem 0.8rem;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 100px;
      font-size: 0.72rem;
      color: var(--text-mid);
    }

    /* ヒーロー右側：実績カード */
    .hero-right { position: relative; z-index: 1; }
    .hero-card-wrap {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
    }
    .hero-stat-card {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1.5rem;
      box-shadow: 0 2px 16px rgba(10,22,40,0.06);
      transition: transform 0.3s, box-shadow 0.3s;
    }
    .hero-stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(10,22,40,0.1); }
    .hero-stat-card.accent {
      background: var(--dark);
      border-color: var(--dark);
      grid-column: span 2;
    }
    .stat-icon { font-size: 1.4rem; margin-bottom: 0.6rem; }
    .stat-num {
      font-family: 'Noto Serif JP', serif;
      font-size: 1.8rem;
      font-weight: 600;
      color: var(--dark);
      line-height: 1;
      margin-bottom: 0.3rem;
    }
    .hero-stat-card.accent .stat-num { color: var(--white); }
    .stat-label {
      font-size: 0.72rem;
      color: var(--text-light);
      letter-spacing: 0.5px;
    }
    .hero-stat-card.accent .stat-label { color: rgba(255,255,255,0.55); }
    .stat-quote {
      font-size: 0.9rem;
      color: var(--white);
      line-height: 1.7;
      font-weight: 300;
      font-family: 'Noto Serif JP', serif;
    }

    /* ===== SECTION 共通 ===== */
    section { padding: 6rem 3rem; }
    .container { max-width: 1100px; margin: 0 auto; }
    .sec-label {
      font-size: 0.68rem;
      font-weight: 500;
      letter-spacing: 4px;
      color: var(--blue);
      text-transform: uppercase;
      margin-bottom: 0.8rem;
    }
    .sec-title {
      font-family: 'Noto Serif JP', serif;
      font-size: clamp(1.6rem, 3vw, 2.2rem);
      font-weight: 600;
      color: var(--dark);
      line-height: 1.5;
      word-break: keep-all;
    }
    .sec-desc {
      font-size: 0.9rem;
      color: var(--text-mid);
      line-height: 1.9;
      font-weight: 300;
      margin-top: 0.8rem;
      max-width: 540px;
    }
    .sec-header { margin-bottom: 3.5rem; }
    .divider {
      width: 32px;
      height: 2px;
      background: var(--blue);
      border-radius: 2px;
      margin: 1rem 0;
    }

    /* ===== ABOUT ===== */
    #about { background: var(--bg); }
    .about-layout {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5rem;
      align-items: center;
    }
    .about-visual {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 2.5rem;
      box-shadow: 0 4px 24px rgba(10,22,40,0.06);
    }
    .about-profile {
      display: flex;
      align-items: center;
      gap: 1.2rem;
      margin-bottom: 2rem;
      padding-bottom: 2rem;
      border-bottom: 1px solid var(--border);
    }
    .about-avatar {
      width: 64px;
      height: 64px;
      background: linear-gradient(135deg, var(--navy), var(--blue-light));
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.6rem;
      flex-shrink: 0;
    }
    .about-name {
      font-family: 'Noto Serif JP', serif;
      font-size: 1.3rem;
      font-weight: 600;
      color: var(--dark);
      margin-bottom: 0.3rem;
    }
    .about-role {
      font-size: 0.78rem;
      color: var(--blue);
      font-weight: 500;
      letter-spacing: 1px;
    }
    .about-tools {
      display: flex;
      flex-direction: column;
      gap: 0.8rem;
    }
    .tool-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.82rem;
    }
    .tool-name { color: var(--text-mid); }
    .tool-bar-wrap {
      flex: 1;
      height: 4px;
      background: var(--bg);
      border-radius: 2px;
      margin: 0 1rem;
      overflow: hidden;
    }
    .tool-bar {
      height: 100%;
      background: linear-gradient(90deg, var(--blue), var(--blue-light));
      border-radius: 2px;
      transform-origin: left;
      transform: scaleX(0);
      transition: transform 1s ease;
    }
    .tool-bar.visible { transform: scaleX(1); }
    .tool-pct { color: var(--text-light); font-size: 0.75rem; min-width: 32px; text-align: right; }

    .about-points { display: flex; flex-direction: column; gap: 1.8rem; }
    .about-point { display: flex; gap: 1.2rem; align-items: flex-start; }
    .point-icon {
      width: 40px;
      height: 40px;
      background: rgba(37,99,235,0.1);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      flex-shrink: 0;
    }
    .point-content h3 {
      font-size: 0.95rem;
      font-weight: 500;
      color: var(--dark);
      margin-bottom: 0.3rem;
    }
    .point-content p {
      font-size: 0.83rem;
      color: var(--text-mid);
      line-height: 1.8;
      font-weight: 300;
    }

    /* ===== WORKS ===== */
    #works { background: var(--white); }
    .works-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 2rem;
    }
    .work-card {
      border: 1px solid var(--border);
      border-radius: 14px;
      overflow: hidden;
      transition: transform 0.3s, box-shadow 0.3s;
      background: var(--white);
    }
    .work-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(10,22,40,0.12); }
    .work-thumb {
      height: 220px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }
    .wt-1 { background: linear-gradient(135deg, #2C1810 0%, #6B4C35 50%, #D4A853 100%); }
    .wt-2 { background: linear-gradient(135deg, #3D2B35 0%, #C47E9A 60%, #E8A0B4 100%); }
    .wt-3 { background: linear-gradient(135deg, #111E38 0%, #1B2F55 50%, #2A4270 100%); }
    .wt-4 { background: linear-gradient(135deg, #0A2618 0%, #1A4A32 50%, #2F7A52 100%); }
    /* 作品のスクリーンショット。カードの枠いっぱいに敷き、上端（＝ページの顔）を見せる */
    .work-thumb.has-shot { background: var(--bg-dark); }
    .work-shot {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top center;
      display: block;
      transition: transform 0.4s ease;
    }
    .work-card:hover .work-shot { transform: scale(1.04); }
    .work-thumb-label {
      position: relative;
      z-index: 1;
      text-align: center;
      padding: 1.5rem;
    }
    .work-thumb-icon { font-size: 2.5rem; display: block; margin-bottom: 0.6rem; }
    .work-thumb-name {
      font-family: 'Noto Serif JP', serif;
      font-size: 1.2rem;
      font-weight: 600;
      color: rgba(255,255,255,0.95);
      letter-spacing: 1px;
    }
    .work-thumb-en {
      font-size: 0.65rem;
      color: rgba(255,255,255,0.5);
      letter-spacing: 3px;
      margin-top: 3px;
    }
    .work-body { padding: 1.5rem 1.8rem; }
    .work-genre {
      display: inline-block;
      padding: 0.25rem 0.7rem;
      background: rgba(37,99,235,0.08);
      color: var(--blue);
      border-radius: 100px;
      font-size: 0.68rem;
      font-weight: 500;
      letter-spacing: 1px;
      margin-bottom: 0.7rem;
    }
    .work-title {
      font-size: 1rem;
      font-weight: 500;
      color: var(--dark);
      margin-bottom: 0.5rem;
    }
    .work-desc {
      font-size: 0.82rem;
      color: var(--text-mid);
      line-height: 1.8;
      font-weight: 300;
    }
    .work-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      margin-top: 1rem;
    }
    .work-tag {
      padding: 0.2rem 0.6rem;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 4px;
      font-size: 0.68rem;
      color: var(--text-light);
    }
    .works-cat {
      font-family: 'Noto Serif JP', serif;
      font-size: 1.05rem;
      font-weight: 600;
      color: var(--dark);
      padding-left: 0.8rem;
      border-left: 3px solid var(--blue);
      margin-bottom: 1.4rem;
    }
    .works-grid + .works-cat { margin-top: 3.5rem; }
    .work-links { margin-top: 1.2rem; }
    .work-demo {
      display: inline-block;
      padding: 0.55rem 1.3rem;
      background: var(--blue);
      color: var(--white);
      text-decoration: none;
      border-radius: 6px;
      font-size: 0.78rem;
      font-weight: 500;
      transition: background 0.2s, transform 0.2s;
    }
    .work-demo:hover { background: var(--blue-light); transform: translateY(-1px); }
    .wt-5 { background: linear-gradient(135deg, #042F2E 0%, #0D9488 55%, #5EEAD4 100%); }
    .wt-6 { background: linear-gradient(135deg, #172554 0%, #2563EB 55%, #93C5FD 100%); }
    .wt-7 { background: linear-gradient(135deg, #2E1065 0%, #7C3AED 55%, #C4B5FD 100%); }
    .wt-8 { background: linear-gradient(135deg, #1E1B4B 0%, #6D5EFC 55%, #C4BBFF 100%); }
    .wt-9 { background: linear-gradient(135deg, #053330 0%, #1F9D8B 55%, #7FE8D8 100%); }
    .wt-10 { background: linear-gradient(135deg, #0B1220 0%, #2563EB 55%, #38BDF8 100%); }
    .wt-11 { background: linear-gradient(135deg, #5A2B18 0%, #B5613A 55%, #E8D6C4 100%); }
    .wt-12 { background: linear-gradient(135deg, #0F1A2E 0%, #2F6FED 60%, #8FB6FF 100%); }
    .wt-13 { background: linear-gradient(135deg, #0B1F33 0%, #2563EB 52%, #1F9D8B 100%); }
    .wt-14 { background: linear-gradient(135deg, #10321F 0%, #2F7A44 52%, #A3D9B1 100%); }

    /* ===== SERVICES ===== */
    #services { background: var(--bg); }
    .services-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
    }
    .service-card {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 2rem;
      transition: box-shadow 0.3s, transform 0.3s;
    }
    .service-card:hover { box-shadow: 0 8px 32px rgba(10,22,40,0.08); transform: translateY(-3px); }
    .service-card.highlight {
      border-color: var(--blue);
      background: linear-gradient(135deg, rgba(37,99,235,0.03) 0%, var(--white) 100%);
    }
    .service-icon {
      width: 48px;
      height: 48px;
      background: rgba(37,99,235,0.1);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.3rem;
      margin-bottom: 1.2rem;
    }
    .service-card.highlight .service-icon { background: var(--blue); }
    .service-name {
      font-size: 1rem;
      font-weight: 500;
      color: var(--dark);
      margin-bottom: 0.5rem;
    }
    .service-desc {
      font-size: 0.83rem;
      color: var(--text-mid);
      line-height: 1.8;
      font-weight: 300;
      margin-bottom: 1.2rem;
    }
    .service-price {
      font-family: 'Noto Serif JP', serif;
      font-size: 1.4rem;
      font-weight: 600;
      color: var(--dark);
    }
    .service-price span { font-size: 0.8rem; font-weight: 400; color: var(--text-light); font-family: 'Noto Sans JP', sans-serif; }
    .service-card.highlight .service-price { color: var(--blue); }
    .service-note {
      font-size: 0.72rem;
      color: var(--text-light);
      margin-top: 0.3rem;
    }
    .recommended {
      display: inline-block;
      padding: 0.2rem 0.7rem;
      background: var(--blue);
      color: var(--white);
      font-size: 0.65rem;
      font-weight: 500;
      border-radius: 100px;
      letter-spacing: 1px;
      margin-bottom: 0.8rem;
    }

    /* ===== FLOW ===== */
    #flow { background: var(--white); }
    .flow-steps {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1rem;
      position: relative;
    }
    .flow-steps::before {
      content: '';
      position: absolute;
      top: 24px;
      left: 12%;
      right: 12%;
      height: 1px;
      background: linear-gradient(90deg, var(--blue) 0%, var(--border) 100%);
    }
    .flow-step { text-align: center; padding: 0 0.5rem; position: relative; }
    .flow-dot {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      border: 2px solid var(--border);
      background: var(--white);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 1rem;
      font-size: 1.2rem;
      position: relative;
      z-index: 1;
      transition: border-color 0.3s;
    }
    .flow-step:first-child .flow-dot {
      background: var(--blue);
      border-color: var(--blue);
    }
    .flow-step-num {
      position: absolute;
      top: -6px;
      right: -6px;
      width: 18px;
      height: 18px;
      background: var(--dark);
      color: var(--white);
      border-radius: 50%;
      font-size: 0.6rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .flow-title { font-size: 0.88rem; font-weight: 500; color: var(--dark); margin-bottom: 0.4rem; }
    .flow-desc { font-size: 0.75rem; color: var(--text-light); line-height: 1.6; }

    /* ===== FAQ ===== */
    #faq { background: var(--bg); }
    .faq-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
    }
    .faq-item {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 10px;
      overflow: hidden;
    }
    .faq-q {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1.3rem 1.5rem;
      background: none;
      border: none;
      cursor: pointer;
      text-align: left;
      gap: 1rem;
    }
    .faq-q-text {
      font-size: 0.87rem;
      font-weight: 500;
      color: var(--dark);
      line-height: 1.5;
    }
    .faq-q-text::before { content: 'Q. '; color: var(--blue); font-weight: 700; }
    .faq-toggle {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: var(--bg);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      color: var(--blue);
      flex-shrink: 0;
      transition: transform 0.3s, background 0.3s;
    }
    .faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--blue); color: var(--white); }
    .faq-a {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.35s ease, padding 0.3s;
      padding: 0 1.5rem;
    }
    .faq-item.open .faq-a { max-height: 180px; padding: 0 1.5rem 1.3rem; }
    .faq-a p {
      font-size: 0.83rem;
      color: var(--text-mid);
      line-height: 1.9;
      font-weight: 300;
      padding-left: 1rem;
      border-left: 2px solid var(--blue);
    }

    /* ===== CONTACT ===== */
    #contact { background: var(--dark); }
    .contact-wrap {
      max-width: 680px;
      margin: 0 auto;
      text-align: center;
    }
    .contact-wrap .sec-label { color: rgba(37,99,235,0.8); }
    .contact-wrap .sec-title { color: var(--white); }
    .contact-wrap .divider { margin: 1rem auto; }
    .contact-wrap .sec-desc { color: rgba(255,255,255,0.55); margin: 0 auto 3rem; }

    .contact-form {
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 16px;
      padding: 2.5rem;
      text-align: left;
    }
    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
      margin-bottom: 1rem;
    }
    .form-group {
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
      margin-bottom: 1rem;
    }
    .form-group label {
      font-size: 0.73rem;
      color: rgba(255,255,255,0.5);
      letter-spacing: 0.5px;
    }
    .form-group label span { color: #60A5FA; margin-left: 3px; }
    .form-group input,
    .form-group select,
    .form-group textarea {
      width: 100%;
      padding: 0.75rem 1rem;
      background: rgba(255,255,255,0.07);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 8px;
      color: var(--white);
      font-family: 'Noto Sans JP', sans-serif;
      font-size: 0.85rem;
      outline: none;
      transition: border-color 0.3s, background 0.3s;
    }
    .form-group input::placeholder,
    .form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
    .form-group select option { background: var(--dark); }
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
      border-color: var(--blue-light);
      background: rgba(255,255,255,0.1);
    }
    .form-group textarea { resize: vertical; min-height: 100px; }
    .form-submit {
      width: 100%;
      padding: 1rem;
      background: var(--blue);
      color: var(--white);
      border: none;
      border-radius: 8px;
      font-family: 'Noto Sans JP', sans-serif;
      font-size: 0.9rem;
      font-weight: 500;
      cursor: pointer;
      transition: background 0.2s, transform 0.2s;
      margin-top: 0.5rem;
    }
    .form-submit:hover { background: var(--blue-light); transform: translateY(-1px); }
    .form-note {
      font-size: 0.72rem;
      color: rgba(255,255,255,0.3);
      text-align: center;
      margin-top: 1rem;
      line-height: 1.6;
    }
    /* --- Contact Form 7（プラグイン）用 ---
       フォームの枠・入力欄は、CF7側のフォーム定義で上と同じclass
       （.form-row / .form-group / .form-submit）を使うため、追加CSSは
       「CF7だけが出す部品」＝エラー文言・送信結果・スピナーの3つで足りる。 */
    .contact-form .wpcf7-form-control-wrap { display: block; }
    .contact-form .wpcf7-not-valid-tip {
      color: #FCA5A5;              /* 暗い背景でも読める赤 */
      font-size: 0.72rem;
      margin-top: 0.35rem;
    }
    .contact-form .wpcf7-response-output {
      margin: 1.2rem 0 0;
      padding: 0.8rem 1rem;
      border-radius: 8px;
      border-color: rgba(255,255,255,0.25);
      color: rgba(255,255,255,0.75);
      font-size: 0.78rem;
      line-height: 1.6;
    }
    .contact-form form.sent .wpcf7-response-output { border-color: var(--success); color: #6EE7B7; }
    .contact-form form.invalid .wpcf7-response-output,
    .contact-form form.failed .wpcf7-response-output { border-color: #F87171; color: #FCA5A5; }
    .contact-form .wpcf7-spinner { background-color: rgba(255,255,255,0.4); }
    .contact-alt {
      margin-top: 2rem;
      display: flex;
      justify-content: center;
      gap: 2rem;
      flex-wrap: wrap;
    }
    .contact-alt-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.8rem;
      color: rgba(255,255,255,0.45);
    }

    /* ===== FOOTER ===== */
    footer {
      background: #060E1A;
      padding: 2rem 3rem;
    }
    .footer-inner {
      max-width: 1100px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 1rem;
    }
    .footer-logo {
      font-family: 'Noto Serif JP', serif;
      font-size: 0.95rem;
      font-weight: 600;
      color: rgba(255,255,255,0.6);
      letter-spacing: 2px;
    }
    .footer-copy { font-size: 0.7rem; color: rgba(255,255,255,0.25); }
    .footer-nav { display: flex; gap: 1.5rem; list-style: none; }
    .footer-nav a { font-size: 0.72rem; color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.2s; }
    .footer-nav a:hover { color: rgba(255,255,255,0.6); }

    /* ===== FADE IN ===== */
    .fade-up {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .fade-up.visible { opacity: 1; transform: translateY(0); }
    .fade-up:nth-child(2) { transition-delay: 0.1s; }
    .fade-up:nth-child(3) { transition-delay: 0.2s; }
    .fade-up:nth-child(4) { transition-delay: 0.3s; }

    /* ===== RESPONSIVE ===== */
    /* ナビは早めにモバイル表示へ切り替え（横並びメニューが詰まってロゴと重なるのを防ぐ） */
    @media (max-width: 1024px) {
      #nav { padding: 0 1.8rem; }
      .nav-links { display: none; }
      .nav-mobile-cta { display: block; }
    }
    @media (max-width: 960px) {
      section { padding: 4.5rem 1.8rem; }
      #hero { padding: 64px 1.8rem 0; min-height: auto; padding-bottom: 4rem; }
      .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
      .hero-right { display: none; }
      .about-layout { grid-template-columns: 1fr; gap: 3rem; }
      .works-grid { grid-template-columns: 1fr; }
      .services-grid { grid-template-columns: 1fr; }
      .flow-steps { grid-template-columns: 1fr 1fr; gap: 2rem; }
      .flow-steps::before { display: none; }
      .faq-grid { grid-template-columns: 1fr; }
      .form-row { grid-template-columns: 1fr; }
    }
    @media (max-width: 600px) {
      .hero-title { font-size: 1.9rem; }
      .flow-steps { grid-template-columns: 1fr; }
      .footer-inner { flex-direction: column; align-items: flex-start; }
    }
