/* Design Philosophy: Editorial Civic Design for contact flow. Maintain clarity, calm spacing, and confidence around action. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    :root {
      --orange: #E87722;
      --orange-dark: #c9621a;
      --orange-light: #fdf0e6;
      --text: #2c2c2c;
      --gray: #666;
      --gray-light: #f7f7f7;
      --border: #ece8e3;
      --navy: #1a1a2e;
    }
    body {
      font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
      color: var(--text);
      line-height: 1.8;
      background: #fff;
      min-width: 320px;
    }
    a { text-decoration: none; color: inherit; }
    img { max-width: 100%; display: block; }
    .page-nav {
      background: #f3f1ed;
      padding: 14px 80px;
      display: flex;
      gap: 8px;
      align-items: center;
      font-size: 12px;
      color: #777;
      border-bottom: 1px solid #e4dfd9;
      margin-top: 64px;
    }
    .page-nav-links {
      display: flex;
      gap: 12px;
      margin-left: auto;
      flex-wrap: wrap;
    }
    .page-nav-links a {
      background: #ddd;
      color: #888;
      padding: 6px 16px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 700;
    }
    .page-nav-links a.current {
      background: var(--orange);
      color: #fff;
    }
    .page-hero {
      background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 100%);
      color: #fff;
      padding: 76px 0 64px;
      position: relative;
      overflow: hidden;
    }
    .page-hero::before {
      content: '';
      position: absolute;
      top: -45%;
      right: -10%;
      width: 460px;
      height: 460px;
      background: var(--orange);
      opacity: 0.08;
      border-radius: 50%;
    }
    .breadcrumb {
      font-size: 12px;
      color: rgba(255,255,255,0.55);
      margin-bottom: 20px;
      position: relative;
      z-index: 1;
    }
    .breadcrumb a { color: rgba(255,255,255,0.78); }
    .page-hero-tag {
      display: inline-block;
      background: var(--orange);
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.1em;
      padding: 4px 12px;
      border-radius: 20px;
      margin-bottom: 16px;
      position: relative;
      z-index: 1;
    }
    .page-hero h1 {
      font-size: 36px;
      font-weight: 900;
      line-height: 1.3;
      margin-bottom: 16px;
      position: relative;
      z-index: 1;
    }
    .page-hero p {
      font-size: 15px;
      color: rgba(255,255,255,0.82);
      max-width: 720px;
      line-height: 1.9;
      position: relative;
      z-index: 1;
    }
    .page-hero .container { position: relative; z-index: 1; }
    section { padding: 80px 0; }
    .section-tag {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.15em;
      color: var(--orange);
      text-transform: uppercase;
      margin-bottom: 12px;
    }
    .section-title {
      font-size: 28px;
      font-weight: 900;
      line-height: 1.4;
      margin-bottom: 16px;
      color: var(--text);
    }
    .section-desc {
      font-size: 15px;
      color: #555;
      line-height: 1.9;
      max-width: 760px;
      margin-bottom: 40px;
    }
    .contact-section {
      background: #fff;
    }
    .contact-layout {
      display: flex;
      justify-content: center;
      align-items: flex-start;
    }
    .contact-form-panel {
      width: min(100%, 860px);
      margin: 0 auto;
      background: linear-gradient(180deg, #fff 0%, #fcfaf7 100%);
      border: 1px solid var(--border);
      border-radius: 24px;
      padding: 40px;
      box-shadow: 0 18px 48px rgba(26, 26, 46, 0.06);
    }
    /* Fallback for Contact Form 7 block/shortcode embedded without custom wrappers */
    .wp-block-post-content > .wpcf7,
    .wp-block-post-content > .wp-block-contact-form-7-contact-form-selector {
      width: min(calc(100% - 80px), var(--container));
      margin: 80px auto;
    }
    .wp-block-post-content > .wpcf7 > form,
    .wp-block-post-content > .wp-block-contact-form-7-contact-form-selector > form {
      background: linear-gradient(180deg, #fff 0%, #fcfaf7 100%);
      border: 1px solid var(--border);
      border-radius: 24px;
      padding: 40px;
      box-shadow: 0 18px 48px rgba(26, 26, 46, 0.06);
    }
    .panel-kicker {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      font-weight: 700;
      color: var(--orange);
      background: var(--orange-light);
      border-radius: 999px;
      padding: 6px 12px;
      margin-bottom: 18px;
    }
    .panel-title {
      font-size: 24px;
      font-weight: 900;
      line-height: 1.5;
      margin-bottom: 12px;
      color: var(--text);
    }
    .panel-desc {
      font-size: 14px;
      color: var(--gray);
      line-height: 1.9;
      margin-bottom: 28px;
    }
    .form-shell {
      max-width: 720px;
      margin: 0 auto;
    }
    .wpcf7-scope {
      display: block;
      width: 100%;
    }
    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
    }
    .form-group {
      margin-bottom: 24px;
    }
    .form-label {
      font-size: 13px;
      font-weight: 700;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--text);
    }
    .form-control-wrap {
      display: block;
      width: 100%;
    }
    .required {
      background: var(--orange);
      color: #fff;
      font-size: 10px;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 4px;
    }
    .optional {
      background: #ddd;
      color: #888;
      font-size: 10px;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 4px;
    }
    .form-help {
      margin-top: 6px;
      font-size: 12px;
      color: #888;
      line-height: 1.7;
    }
    .form-input,
    .form-textarea {
      width: 100%;
      padding: 14px 16px;
      border: 1.5px solid #ddd;
      border-radius: 12px;
      font-size: 14px;
      transition: border-color 0.2s, box-shadow 0.2s;
      font-family: inherit;
      background: #fff;
    }
    .form-input:focus,
    .form-textarea:focus {
      outline: none;
      border-color: var(--orange);
      box-shadow: 0 0 0 4px rgba(232,119,34,0.08);
    }
    .form-textarea {
      min-height: 180px;
      resize: vertical;
    }
    .privacy-check {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 18px 20px;
      border-radius: 16px;
      background: #faf8f5;
      border: 1px solid #eee7de;
      margin-top: 8px;
    }
    .privacy-check input {
      margin-top: 4px;
      accent-color: var(--orange);
    }
    .privacy-check label {
      font-size: 13px;
      color: #555;
      line-height: 1.8;
    }
    .privacy-check a {
      color: var(--orange);
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    .form-submit {
      text-align: center;
      margin-top: 36px;
    }
    .submit-btn,
    .wpcf7-submit {
      background: var(--orange);
      color: #fff;
      padding: 16px 60px;
      border-radius: 999px;
      font-size: 16px;
      font-weight: 700;
      border: none;
      cursor: pointer;
      transition: all 0.2s;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-width: 220px;
      font-family: inherit;
    }
    .submit-btn:hover,
    .wpcf7-submit:hover {
      background: var(--orange-dark);
      transform: translateY(-2px);
    }
    .form-note {
      font-size: 12px;
      color: #888;
      text-align: center;
      margin-top: 16px;
      line-height: 1.8;
    }
    .footer-contact {
      margin-top: 18px;
      padding-top: 18px;
      border-top: 1px solid #333;
    }
    .footer-contact-title {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      color: #888;
      margin-bottom: 8px;
      text-transform: uppercase;
    }
    .footer-tel-link {
      display: inline-block;
      font-size: 20px;
      font-weight: 800;
      color: var(--orange);
      line-height: 1.4;
      margin-bottom: 6px;
    }
    .footer-contact-note {
      font-size: 12px;
      color: #888;
      line-height: 1.8;
    }
    @media (max-width: 1100px) {
      .contact-layout {
        grid-template-columns: 1fr;
      }
      .wp-block-post-content > .wpcf7,
      .wp-block-post-content > .wp-block-contact-form-7-contact-form-selector {
        width: min(calc(100% - 48px), var(--container));
      }
    }
    @media (max-width: 768px) {
      .page-nav {
        margin-top: 104px;
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
      }
      .page-nav-links {
        margin-left: 0;
      }
      .page-hero {
        padding: 56px 0 48px;
      }
      .page-hero h1 {
        font-size: 28px;
      }
      .page-hero p,
      .section-desc,
      .panel-desc,
      .form-input,
      .form-textarea {
        font-size: 13px;
      }
      .form-row {
        grid-template-columns: 1fr;
      }
      section { padding: 56px 0; }
      .section-title,
      .panel-title {
        font-size: 24px;
      }
      .contact-form-panel {
        width: 100%;
        padding: 28px 20px;
        border-radius: 20px;
      }
      .form-shell {
        max-width: 100%;
      }
      .form-submit {
        margin-top: 28px;
      }
      .submit-btn,
      .wpcf7-submit {
        width: 100%;
        min-width: 0;
      }
      .wp-block-post-content > .wpcf7,
      .wp-block-post-content > .wp-block-contact-form-7-contact-form-selector {
        width: calc(100% - 40px);
        margin: 56px auto;
      }
      .wp-block-post-content > .wpcf7 > form,
      .wp-block-post-content > .wp-block-contact-form-7-contact-form-selector > form {
        padding: 28px 20px;
        border-radius: 20px;
      }
    }
