/* =========================================================
   Modal Styles for Static Pages (Compatible with styles.css)
========================================================= */
/* =========================================================
   Root Variables - Color, Typography, Layout
========================================================= */
:root {
    /* Layout */
    --sidebar-width: 260px;
    --topbar-height: 60px;

    /* Brand Colors */
    --bg: #157D00;
    --topbar: #157D00;
    --accent: #157D00;
    --accent-dark: #0D5700;
    --accent-light: #92FF80;
    --accent-soft: #CBFFBF;
    --feature: #92FF80;
    --error: #FF0000;

    /* Text Colors */
    --text-dark: #0f2b0a;
    --text-accent: #157D00;
    --text-feature: #92FF80;
    --text: #0e1b10;
    --muted: #2d5a2d;

    /* UI Colors */
    --panel: #f3ffe8;
    --border: #bfe7a6;
    --pill: #ffffff;
    --pill-border: #cde9c8;
    --white: #ffffff;
    --black: #000000;
    --gray-900: #333333;
    --gray-700: #636363;
    --gray-500: #A3A3A3;
    --gray-300: #E3E3E3;
    --gray-100: #F3F3F3;

    /* Typography */
    --font-en: 'Open Sans', sans-serif;
    --font-ja: 'Noto Sans JP', sans-serif;

    --h1: 72px;
    --h2: 60px;
    --h3: 48px;
    --h4: 36px;
    --h5: 28px;
    --h6: 24px;

    --body-lg: 20px;
    --body: 16px;
    --body-sm: 12px;

    /* Border Radius */
    --radius-pill: 999px;
    --radius-sm: 8px;
    --radius-md: 16px;

    --transition: 0.3s ease;
}

/* =========================================================
     Typography
  ========================================================= */
html[lang="en"] {
    font-family: var(--font-en);
}

html[lang="ja"] {
    font-family: var(--font-ja);
}

h1 {
    font-size: var(--h1);
    font-weight: bold;
    line-height: 1.5em;
}

h2 {
    font-size: var(--h2);
    font-weight: bold;
    line-height: 1.5em;
}

h3 {
    font-size: var(--h3);
    font-weight: bold;
    line-height: 1.5em;
}

h4 {
    font-size: var(--h4);
    font-weight: bold;
    line-height: 1.5em;
}

h5 {
    font-size: var(--h5);
    font-weight: bold;
    line-height: 1.5em;
}

h6 {
    font-size: var(--h6);
    font-weight: bold;
    line-height: 1.5em;
}

.text-body {
    font-size: var(--body);
    line-height: 1.5em;
    margin: 16px 0;
}

.text-body-lg {
    font-size: var(--body-lg);
    line-height: 1.5em;
}

.text-body-sm {
    font-size: var(--body-sm);
    line-height: 1.5em;
}

.text-bold {
    font-weight: bold;
}

.text-muted {
    color: var(--gray-500);
}

.text-muted-light {
    color: var(--gray-300);
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-white {
    color: #ffffff;
}

/* =========================================================
     Buttons
  ========================================================= */
.button {
    padding: 12px 24px;
    font-size: var(--body);
    font-weight: 700;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background var(--transition);
    text-decoration: none;
}

.button-default {
    background: var(--accent-dark);
    color: var(--white);
}

.button-default:hover,
.button-default:focus {
    background: var(--accent-light);
    color: var(--black);
}

.button-disabled {
    background: transparent;
    color: var(--gray-500);
    border: 1px solid var(--gray-300);
    cursor: not-allowed;
}

.button-activated {
    background: var(--gray-100);
    color: var(--gray-500);
}

.button-promote {
    background: var(--accent-light);
    color: var(--black);
}

.button-promote:hover,
.button-promote:focus {
    background: var(--accent-dark);
    color: var(--white);
}

.button-promote-disabled {
    background: transparent;
    color: var(--gray-500);
    border: 1px solid var(--gray-300);
}

.button-promote-activated {
    background: var(--gray-100);
    color: var(--gray-500);
}

/* =========================================================
     Inputs
  ========================================================= */
.input {
    width: 100%;
    padding: 12px 16px;
    font-size: var(--body);
    border-radius: var(--radius-pill);
    border: 1px solid var(--gray-300);
    box-sizing: border-box;
    transition: border-color var(--transition), background var(--transition);
}

.input::placeholder {
    color: var(--gray-500);
}

.input-filled {
    background: var(--white);
    border-color: var(--gray-500);
}

.input-focused {
    border: 2px solid var(--accent-dark);
}

.input-disabled {
    background: var(--gray-100);
    color: var(--gray-500);
    cursor: not-allowed;
}

.input-error {
    border: 2px solid var(--error);
}

.input-error+.error-message {
    color: var(--error);
    font-size: var(--body-sm);
    margin-top: 4px;
}

.w-100 {
    width: 100%;
}

/* =========================================================
     Card
  ========================================================= */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    padding: 24px;
}

/* =========================================================
     General Layout
  ========================================================= */
body {
    margin: 0;
    background: #ffffff;
    color: #000000;
}

/* === Top Bar === */
.topbar {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    background: var(--topbar) url('../img/logo-light.png') no-repeat center;
    background-size: auto 28px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
}

/* === Hero Sections === */
.contact-hero,
.pricing-hero {
    text-align: center;
    color: #ffffff;
}

.contact-title {
    font-size: 48px;
    font-weight: bold;
    margin: 24px;
    color: var(--white);
}

.contact-subtitle,
.pricing-subtitle {
    font-size: 36px;
    font-weight: 700;
}

/* === Main Content Wrapper === */
.main-content {
    background-color: var(--accent);
    padding: 16px 0 64px;
    height: 100%;
}

/* === Contact Form === */
.contact-form-section {
    max-width: 768px;
    margin: 0 auto;
    padding: 0 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 8px;
    color: #fff;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ffffff;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-input {
    border-radius: 24px;
    border: 2px solid #157D00;
}

.form-textarea {
    border-radius: 8px;
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--feature);
}

.form-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 32px;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    vertical-align: middle;
}

input[type="checkbox"]:checked {
    background-color: var(--feature);
    border-color: #ffffff;
}

input[type="checkbox"]:checked::before {
    content: '\2713';
    display: block;
    text-align: center;
    color: #000;
    font-size: 14px;
    line-height: 16px;
}

.checkbox-label {
    font-size: 16px;
    color: #ffffff;
    line-height: 1.5;
    flex: 1;
}

.submit-button {
    width: 100%;
    padding: 16px 32px;
    background: var(--feature);
    color: #000;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 32px;
}

.submit-button:hover {
    opacity: 0.5;
}

.form-disclaimer,
.privacy-info {
    font-size: 12px;
    color: #ffffff;
    line-height: 1.6;
}

.form-disclaimer a,
.privacy-info a,
.legal-section a {
    color: var(--feature);
    text-decoration: underline;
}

.form-disclaimer a:hover,
.privacy-info a:hover,
.legal-section a:hover {
    color: #C8FFBF;
}

#thankYouMessage .text-muted-light {
    padding-bottom: 24px;
}



/* =========================================================
     Pricing Section
  ========================================================= */
.pricing-plans {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.plan-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 0 0 2px #d7f8cc;
    padding: 24px 16px;
    text-align: left;
    flex: 1 1 calc(33.333% - 100px);
    /* デスクトップは3カラム */
    min-width: 280px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.3s ease;
}

.plan-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-6px);
}

.featured-plan {
    box-shadow: 0 0 0 4px var(--feature);
}

.plan-card.featured-plan:hover {
    box-shadow: 0 0 0 4px var(--feature);
    transform: translateY(-6px);
}

.best-value-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--feature);
    color: #000;
    padding: 6px 18px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.plan-header {
    margin-bottom: 24px;
}

.plan-name,
.plan-name-feature {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.plan-name {
    color: var(--text-accent);
}

.plan-name-feature {
    color: var(--text-feature);
}

.plan-original-price {
    font-size: 14px;
    color: #aaa;
    text-decoration: line-through;
    margin-bottom: 6px;
}

.plan-price {
    font-size: 32px;
    font-weight: 800;
    color: #000;
}

.plan-period {
    font-size: 15px;
    font-weight: 400;
    color: #333;
}

.plan-features {
    margin: 24px 0;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #111;
    gap: 8px;
    margin-bottom: 12px;
}

.check-icon {
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 18px;
}

.plan-button,
.plan-button.feature {
    font-size: 16px;
    font-weight: 700;
    border: none;
    padding: 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.plan-button {
    background: var(--accent);
    color: #fff;
}

.plan-button.feature {
    background: var(--feature);
    color: #000;
}

.plan-button:hover {
    opacity: 0.7;
}

/* === タブレット対応（2カラム） === */
@media (max-width: 1024px) {
    .plan-card {
        flex: 1 1 calc(50% - 12px);
    }
}

/* === モバイル対応（1カラム） === */
@media (max-width: 768px) {
    .pricing-plans {
        flex-direction: column;
    }

    .plan-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* =========================================================
     Enterprise Section
  ========================================================= */
.enterprise-section {
    padding: 16px 24px;
}

.enterprise-card {
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.enterprise-content {
    display: flex;
    background: #C8FFBF;
    border-radius: 16px;
    padding: 40px;
    gap: 40px;
    flex-wrap: nowrap;
    align-items: stretch;
}

.enterprise-info {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.enterprise-title {
    font-size: 32px;
    font-weight: 600;
    margin: 0;
}

.enterprise-description {
    font-size: 16px;
    line-height: 1.6;
}

.enterprise-button {
    background: #09a833;
    color: white;
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.enterprise-button:hover {
    background: var(--topbar);
}

.enterprise-features {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    min-width: 400px;
}

.enterprise-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* =========================================================
     FAQ Section
  ========================================================= */
.faq-section {
    padding: 36px 24px;
    margin: 0 auto;
    max-width: 768px;
}

.faq-title {
    text-align: center;
    font-size: 32px;
    color: white;
    margin: 16px 0;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    color: white;
}

.faq-toggle {
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-answer {
    color: rgba(255, 255, 255, 0.8);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    margin: 8px 0 24px 0;
}

.faq-item.open .faq-answer {
    max-height: 400px;
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
}

/* =========================================================
     Contact Section
  ========================================================= */
.contact-section {
    text-align: center;
    padding: 16px 24px;
    max-width: 768px;
    margin: 0 auto;
}

.contact-section p {
    margin: 16px 0 36px 0;
}

.contact-button:hover {
    background: var(--topbar);
}

/* =========================================================
     legal page
  ========================================================= */
.legal-section {
    text-align: left;
    padding: 16px 24px;
    max-width: 768px;
    margin: 0 auto;
    color: #ffffff;
}

.legal-section h6 {
    margin: 36px 0 0 0;
}


/* =========================================================
     Responsive Typography
  ========================================================= */
@media (max-width: 768px) {
    h1 {
        font-size: 36px !important;
    }

    h2 {
        font-size: 24px !important;
    }

    h3 {
        font-size: 20px !important;
    }

    .pricing-title,
    .contact-title {
        font-size: 36px;
    }

    .pricing-subtitle,
    .contact-subtitle {
        font-size: 20px;
    }

    .enterprise-content {
        flex-direction: column;
    }

    .enterprise-features {
        min-width: auto;
    }
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.modal-overlay[style*="display: flex"],
.modal-overlay[style*="display:flex"],
.modal-overlay[style*="display: block"],
.modal-overlay[style*="display:block"] {
    display: flex !important;
}

/* Modal Content - Using styles.css design system */
.modal-content {
    background: #ffffff;
    margin: 15% auto;
    padding: 32px;
    border-radius: 20px;
    width: 768px;
    max-width: 90%;
    text-align: center;
    color: #000000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666666;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
    color: #157D00;
    text-decoration: none;
}

/* Modal Headers */
.modal-content h2,
.modal-content h3 {
    margin-top: 0;
    font-size: 24px;
    margin-bottom: 24px;
    color: #157D00;
    font-weight: 700;
}

.modal-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333333;
}

/* Form Styles for Modal - Matching styles.css */
.contact-form {
    text-align: left;
}

.form-group {
    margin-bottom: 24px;
}

.form-label,
.form-label-dark {
    display: block;
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 8px;
    color: #0f2b0a;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #157D00;
    background: #ffffff;
    color: #333333;
    font-size: 16px;
    border-radius: 24px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999999;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #92FF80;
}

.form-textarea {
    border-radius: 8px;
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

/* Select Dropdown */
select.form-input {
  cursor: pointer;
  background-image: url("../img/circle-arrow-down-solid.svg");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 24px;
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
}

select.form-input option {
    background: #ffffff;
    color: #333333;
}

/* Radio Buttons */
input[type="radio"] {
    margin-right: 8px;
    accent-color: #157D00;
}

.form-group label {
    color: #157D00;
    font-size: 14px;
    cursor: pointer;
}

/* Submit Button - Matching styles.css */
.submit-button {
    width: 100%;
    padding: 16px 32px;
    background: #92FF80;
    color: #000000;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 32px;
}

.submit-button:hover {
    opacity: 0.8;
}

.submit-button:active {
    transform: translateY(1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 24px;
        max-height: 90vh;
    }

    .modal-content h2,
    .modal-content h3 {
        font-size: 20px;
    }

    .form-input,
    .form-textarea {
        font-size: 16px;
        /* Prevent zoom on iOS */
    }
}

/* Ensure modal appears above other elements */
.modal-overlay {
    z-index: 9999;
}

/* Animation for modal appearance */
.modal-content {
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* =========================================================
   Option Plan Section (Consulting Service)
========================================================= */
.content-section {
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.option-content-card {
    background: rgba(200, 255, 191, 0.95);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.option-content {
    display: flex;
    gap: 40px;
    align-items: stretch;
    flex-wrap: nowrap;
}

.enterprise-info {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.enterprise-features {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    min-width: 400px;
}

.enterprise-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.plan-header {
    margin-bottom: 20px;
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #157D00;
}

.plan-price {
    font-size: 28px;
    font-weight: 800;
    color: #000000;
    margin-bottom: 16px;
}

.plan-period {
    font-size: 16px;
    font-weight: 400;
    color: #333333;
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #111111;
    gap: 8px;
    margin-bottom: 12px;
}

.check-icon {
    color: #157D00;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

/* Responsive for Option Plan */
@media (max-width: 768px) {
    .option-content {
        flex-direction: column;
        gap: 24px;
    }

    .enterprise-features {
        min-width: auto;
        flex-direction: column;
        gap: 20px;
    }
}

/* Additional utility classes */
.w-100 {
    width: 100%;
}

.mt-2 {
    margin-top: 16px;
}

.mb-2 {
    margin-bottom: 16px;
}

/* Form validation styles - only apply after form submission attempt */
.form-submitted .form-input:invalid {
  border-color: #ff6b6b;
}

.form-submitted .form-input:valid {
  border-color: #51cf66;
}

/* Loading state */
.submit-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.submit-button:disabled:hover {
    background: #cccccc;
    transform: none;
    box-shadow: none;
}