/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

body {
    font-family: 'Helvetica Neue', 'Arial', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* ==========================================================================
   Color Variables
   ========================================================================== */

:root {
    --primary-blue: #3B82F6;
    --accent-cyan: #0EA5E9;
    --light-blue: #EFF6FF;
    --light-cyan: #F0F9FF;
    --text-dark: #1E293B;
    --text-medium: #475569;
    --text-light: #94A3B8;
    --white: #ffffff;
    --light-gray: #F8FAFC;
    --border-light: #E2E8F0;
}

/* ==========================================================================
   Mobile-only hidden text
   ========================================================================== */

.mobile-hidden {
    display: block;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo-img {
    height: 40px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--primary-blue);
    background: var(--light-blue);
}

.nav-cta {
    background: var(--primary-blue);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
    min-height: 48px;
    display: flex;
    align-items: center;
}

.nav-cta:hover {
    background: #2563EB;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--light-cyan) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 3.5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.1);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.hero-img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 48px;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
    background: #2563EB;
}

.btn-secondary {
    background: var(--accent-cyan);
    color: white;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.3);
    background: #0284C7;
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.left-align {
    text-align: left;
}

/* ==========================================================================
   Problems Section
   ========================================================================== */

.problems-section {
    background: var(--light-gray);
    position: relative;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.problem-card {
    background: white;
    padding: 2.5rem;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.08);
    border-color: var(--accent-cyan);
}

.problem-image {
    margin-bottom: 1.5rem;
}

.problem-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.problem-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

/* ==========================================================================
   Service Overview Section
   ========================================================================== */

.service-overview {
    background: white;
    position: relative;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-description {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-img {
    width: 100%;
    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.1);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.service-img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* ==========================================================================
   共通スタイル
   ========================================================================== */
.features-section {
    background: var(--light-blue);
}

/* テーブル全体を包むラッパー。PCでは横幅が収まるが、スマホではオーバーフローを許可 */
.features-table-wrapper {
    background: white;
    border-radius: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 2px solid var(--primary-blue);
    width: 100%;
    contain: layout style;
    overflow-x: auto; /* ★横スクロールを許可 */
}

/* テーブル本体 */
.features-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* 初期状態では固定レイアウト */
}

/* ヘッダーのセル */
.features-table th {
    background: var(--light-gray);
    font-weight: 600;
    color: var(--text-dark);
    padding: 1rem; /* デフォルトのパディング */
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    word-break: break-word;
}

/* ボディのセル */
.features-table td {
    padding: 1rem; /* デフォルトのパディング */
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    word-break: break-word; /* 折り返し許可 */
}

/* No. 列 (1列目) のセル共通 */
.features-table tbody td:first-child,
.features-table thead th:first-child {
    background: var(--primary-blue);
    color: white;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* 機能カテゴリー列 (2列目) のセル (ボディとヘッダー) */
.features-table thead th:nth-child(2),
.features-table tbody td:nth-child(2) {
    font-weight: 600;
    color: var(--primary-blue);
}

/* Hover 時の色 */
.features-table tr:hover {
    background: var(--light-gray);
}

/* ==========================================================================
   PC向けスタイル (画面幅768px以上をPC扱いにする例)
   ========================================================================== */
@media screen and (min-width: 768px) {
    /* 固定レイアウトかつ列幅を割合／pxで指定 */
    .features-table {
        table-layout: fixed;
    }

    /* ヘッダー幅指定 */
    .features-table thead th:first-child {
        width: 80px;       /* No. 列を50pxに固定 */
    }
    .features-table thead th:nth-child(2) {
        width: 35%;        /* 機能カテゴリーを20% */
    }
    .features-table thead th:nth-child(3) {
        width: 65%;        /* 残りを80% */
    }

    /* ボディ幅指定 */
    .features-table tbody td:first-child {
        width: 60px;       /* No. 列を50pxに固定 */
        padding: 1.5rem;   /* PCではやや余裕を持たせる */
    }
    .features-table tbody td:nth-child(2) {
        width: 35%;        /* 機能カテゴリーを20% */
        padding: 1.5rem;
    }
    .features-table tbody td:nth-child(3) {
        width: 65%;        /* 主なサポート内容を80% */
        padding: 1.5rem;
    }
}

/* ==========================================================================
   スマホ向けスタイル (画面幅767px以下をスマホ扱いにする例)
   ========================================================================== */
@media screen and (max-width: 767px) {
    /* テーブルはそのまま固定レイアウトでよいが、
       パディングを絞ってスマホでも見やすく */
    .features-table {
        table-layout: fixed;
    }

    /* ヘッダーのパディングを縮小 */
    .features-table th {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    /* ボディのパディングを縮小 */
    .features-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    /* 第1列はもっと狭くしたい場合は auto にしてもOK */
    .features-table thead th:first-child,
    .features-table tbody td:first-child {
        width: 40px;  /* スマホでは40px程度に */
        font-size: 1rem;
    }

    /* 第2列／第3列もバランスを変更（スマホでは割合が効きにくい場合があるので auto でもOK） */
    .features-table thead th:nth-child(2),
    .features-table tbody td:nth-child(2) {
        width: 35%;   /* 30%程度を目安 */
    }

    .features-table thead th:nth-child(3),
    .features-table tbody td:nth-child(3) {
        width: 65%;   /* 残り70% */
    }

    /* もしどうしても縦組みにしたい場合は
       display:block; で列ごとに積み上げるスタイルに切り替える手もあるが、今回は横スクロール前提 */
}


/* ==========================================================================
   Benefits Section
   ========================================================================== */

.benefits-section {
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: white;
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.benefit-icon {
    margin-bottom: 1rem;
}

.benefit-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.benefit-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.benefit-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.benefit-description {
    color: var(--text-medium);
    line-height: 1.7;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */

.pricing-section {
    background: var(--light-cyan);
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.pricing-card {
    background: white;
    padding: 2rem;
    border-radius: 25px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-cyan);
}

.pricing-card.featured {
    border-color: var(--primary-blue);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.12);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-blue);
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.plan-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features strong {
    color: var(--accent-cyan);
    font-weight: 600;
}

.pricing-note {
    text-align: left;
    color: var(--text-medium);
    position: relative;
    z-index: 2;
}

.pricing-note p {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-section {
    background: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--light-gray);
    border-radius: 20px;
    margin-bottom: 1rem;
    border: 2px solid transparent;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent-cyan);
}

.faq-question {
    padding: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
    transition: all 0.3s ease;
    min-height: 48px;
}

.faq-question:hover {
    color: var(--primary-blue);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
    font-weight: 700;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-medium);
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* ==========================================================================
   Final CTA Section
   ========================================================================== */

.final-cta {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--light-cyan) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.cta-note {
    margin-top: 2rem;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.cta-img {
    width: 100%;
    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.1);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.cta-img:hover {
    transform: rotate(0deg) scale(1.02);
}


/*------------------------------------------------
  ■ お問い合わせフォーム部分（.contact .form）に枠線を追加
------------------------------------------------*/
.contact .form {
  /* すでに背景色やパディングを指定している場合は残しつつ、border を上書き */
  background: #FFF;             /* もともと .form にあった場合は維持 */
  padding: 30px 20px;           /* 内側余白。お好みで調整してください */
  margin: 40px auto 0;          /* 上マージンを40pxにして中央寄せ */
  max-width: 800px;             /* 画面幅に合わせて必要に応じて調整 */
  
  border: 1px solid #ccc;       /* 枠線の色・太さをお好みで変更 */
  border-radius: 6px;           /* 角丸をつけたい場合は数値を調整 */
  box-sizing: border-box;
}


/* レスポンシブで幅や余白を微調整したい場合 */
@media (max-width: 1024px) {
  .contact .form {
    padding: 24px 16px;
    margin: 30px auto 0;
    max-width: 90%;
  }
}
@media (max-width: 599px) {
  .contact .form {
    padding: 20px 12px;
    margin: 20px auto 0;
    max-width: 100%;
  }
}
/*─────────────────────────────────────
  ■ 「入力内容を確認し〜」の文字サイズを小さくする
─────────────────────────────────────*/
@media (max-width: 1024px) {
  #contact form td label {
    font-size: 1rem;  /* 元1.2rem→1remに縮小 */
  }
}
@media (max-width: 599px) {
  #contact form td label {
    font-size: 0.9rem; /* 元1.2rem→0.9remに縮小 */
  }
}

/*─────────────────────────────────────
  【LINE公式アカウント欄のサイズを小さくする】
─────────────────────────────────────*/
.contact .wrap-line .btn {
    /* ボタンの最大幅を絞り、中央に寄せる */
    width: 400px;
    max-width: 80%;
    margin: 0 auto;
}
.contact .wrap-line .btn a img {
    /* 画像が枠からはみ出さないように横100%・高さ自動 */
    display: block;
    width: 100%;
    height: auto;
}
@media (max-width: 1024px) {
    .contact .wrap-line .btn {
        width: 500px;
        max-width: 90%;
    }
}
@media (max-width: 599px) {
    .contact .wrap-line .btn {
        width: 350px;
        max-width: 90%;
    }
}

/*----------------------------------------
  ▼ 1. .contact 全体を中央寄せし、最大幅を設定
-----------------------------------------*/
.contact {
    padding: 100px 0 100px 0;
}
@media (max-width: 1024px) {
    .contact {
        padding: 50px 0 50px 0;
    }
}
@media (max-width: 599px) {
    .contact {
        padding: 40px 0 40px 0;
    }
}

/* ← ここで .contact .wrap に max-width や左右余白を設定するとよい */
.contact .wrap {
    max-width: 800px;    /* お好みの幅に調整 */
    margin: 0 auto;      /* 横中央寄せ */
    padding: 0 16px;     /* 小さい画面では左右に余白を残す */
}


/*----------------------------------------
  ▼ 2. 見出し / フォントサイズの調整
-----------------------------------------*/
.contact .shoulder {
    font-size: 1.2rem;   /* もとのサイズから少し下げる */
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #333;
    margin-bottom: 8px;
}
.contact h2 {
    font-size: 1.8rem;   /* もとの 2.0rem → 1.8rem に */
    margin-bottom: 4px;
    color: #222;
}
@media (max-width: 1024px) {
  .contact h2 {
    font-size: 1.4rem; /* 元1.8rem→1.4remに縮小 */
  }
}
@media (max-width: 599px) {
  .contact h2 {
    font-size: 1.2rem; /* 元1.8rem→1.2remに縮小 */
  }
}
.contact .line {
    width: 60px;
    height: 2px;
    background-color: #006dba;
    margin-bottom: 40px;
}

/*──────────────────────────────
  ■ .text3 に対する基本的なスタイル例
──────────────────────────────*/
.contact .form .text3 {
  font-size: 1.6rem;       /* 見出しをやや大きめに */
  font-weight: 700;        /* 太字にしたい場合 */
  color: #222;             /* 文字色をダークグレーに */
  margin-bottom: 16px;     /* 下側に余白をつける */
  text-align: center;      /* 中央揃えにしたい場合 */
}

/* レスポンシブで微調整する例 */
@media (max-width: 1024px) {
  .contact .form .text3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }
}
@media (max-width: 599px) {
  .contact .form .text3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }
}

/*----------------------------------------
  ▼ 3. 「必須」バッジ（span）のサイズを自動に変更
-----------------------------------------*/
#contact form th span {
    /* もとの固定幅・高さをなくし、自動幅にする */
    width: auto;           
    height: auto;
    padding: 1px 4px;      /* 文字周りの余白 */
    font-size: 0.9rem;     /* もとの1.2rem → 0.9rem に少し下げる */
    line-height: 1.4;
    color: #fff;
    background-color: #dd0000;
    border-radius: 3px;
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
}

/*----------------------------------------
  ▼ 4. th / td のフォントサイズを下げる
-----------------------------------------*/
#contact form th {
    font-size: 1.2rem !important;   /* もとの 1.4rem〜1.55rem → 1.2rem に */
    font-weight: 500;
    letter-spacing: 0;
    padding: 10px  !important;     /* もとの padding を見直してやや減らす */
    text-align: left;  
}
#contact form td {
    font-size: 1.2rem !important;   /* 同様に下げる */
    letter-spacing: 0;
    padding: 10px  !important;      /* もとの 10px → 8px に */
}

/* レスポンシブ時の th / td */
@media (max-width: 500px) {
    #contact form th,
    #contact form td {
        display: inline-block;
        width: 100% !important;
        padding: 5px 10px !important;      /* もとの 10px → 8px に */
    }
}

/*----------------------------------------
  ▼ 5. input / textarea のフォントサイズ・高さ・パディングを縮める
-----------------------------------------*/
#contact input[type="text"],
#contact input[type="email"],
#contact input[type="tel"],
#contact input[type="date"],
#contact input[type="number"],
#contact form textarea {
    width: 100% !important;
    font-size: 1rem;             /* もとの1.4rem → 1rem に下げる */
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    font-weight: 400;
    line-height: 1.4;
    padding: 10px 15px;          /* もとの 15px 〜 19px → 10px 15px に */
    background: #FFF;
    border: 1px solid #66a7d6;
    border-radius: 6px;
    box-sizing: border-box;
    display: block;
    /* 高さを auto にして、パディングで調整する */
}
#contact form textarea {
    height: 150px !important;    /* もとの 200px → 150px に少し縮小 */
    resize: vertical;            /* 高さはユーザーが変えられるように */
}

/* レスポンシブ時の input / textarea フォントサイズ */
@media (min-width: 415px) {
    #contact input[type="text"],
    #contact input[type="email"],
    #contact input[type="tel"],
    #contact input[type="date"],
    #contact input[type="number"],
    #contact form textarea {
        font-size: 1rem;         /* 大きい画面でも 1rem を維持 */
        padding: 5px 18px;      /* やや余白を広げるならここを調整 */
    }
}
@media (min-width: 960px) {
    #contact input[type="text"],
    #contact input[type="email"],
    #contact input[type="tel"],
    #contact input[type="date"],
    #contact input[type="number"],
    #contact form textarea {
        font-size: 1.1rem;       /* ほんの少し大きくする場合 */
        padding: 10px 20px;
    }
}



/*----------------------------------------
  ▼ 6. プレースホルダーのフォントサイズを少し縮小
-----------------------------------------*/
::placeholder {
    font-size: 1rem;   /* もとの1.5rem → 1rem に */
    color: #ccc !important;
    font-weight: 400 !important;
}

/*----------------------------------------
  ▼ 7. <button> のフォントサイズ・余白を調整
-----------------------------------------*/
#contact .submit button,
#contact button#mfp_button_cancel,
button#mfp_button_send {
    color: #fff;
    width: 100%;
    padding: 12px 0;             /* もとの 18px 〜 23px → 12px に */
    border: 0;
    border-radius: 100px;
    font-size: 1.2rem;           /* もとの1.6rem〜2.0rem → 1.2rem に */
    letter-spacing: 0.06em;      /* もとの 0.08em → 0.06em */
    font-weight: 500;
    font-family: 'Noto Sans JP', sans-serif;
    text-align: center;
    background-color: #006dba;
    cursor: pointer;
    transition: all 0.2s ease;
}
@media (min-width: 415px) {
    #contact .submit button,
    #contact button#mfp_button_cancel,
    button#mfp_button_send {
        width: 300px;            /* もとの 380px → 300px に */
        padding: 14px 0; 
        font-size: 1.3rem;
    }
}
@media (min-width: 960px) {
    #contact .submit button,
    #contact button#mfp_button_cancel,
    button#mfp_button_send {
        width: 300px !important; /* 幅を固定しておきたい場合は固定値のまま */
        padding: 16px 0;
        font-size: 1.5rem;
        letter-spacing: 0.06em;
    }
}
#contact .submit button:hover,
#contact button#mfp_button_cancel:hover,
button#mfp_button_send:hover {
    opacity: 0.8;
}

/*----------------------------------------
  ▼ 8. そのほかフォーム周りのマージン調整
-----------------------------------------*/
#contact .mfp_buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 24px 0 0 0;         /* もとの 30px〜40px → 24px に */
}
@media (min-width: 415px) {
    #contact .mfp_buttons {
        margin: 32px 0 16px 0;
    }
}
@media (min-width: 960px) {
    #contact .mfp_buttons {
        margin: 32px 0 12px 0;
    }
}

/*─────────────────────────────────────
  【9. .wrap-line / .text1 / .text に対するスタイルを追加】
─────────────────────────────────────*/
.contact .wrap-line {
    width: 100%;
    margin: 40px auto 0;
    padding: 24px 16px;
    background: #d5f0fa;
    border-radius: 6px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.contact .wrap-line .text1 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
    color: #222;
    text-align: center;
}
.contact .wrap-line .text1 span {
    font-size: 1.8rem;
    font-weight: 700;
    margin-right: 4px;
}
.contact .wrap-line .text {
    font-size: 1rem;
    margin-top: 12px;
    color: #333;
    text-align: center;
    line-height: 1.5;
}
@media (max-width: 1024px) {
    .contact .wrap-line {
        margin: 30px auto 0;
        padding: 20px 12px;
    }
    .contact .wrap-line .text1 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    .contact .wrap-line .text {
        font-size: 0.95rem;
        margin-top: 8px;
    }
}
@media (max-width: 599px) {
    .contact .wrap-line {
        margin: 24px auto 0;
        padding: 16px 8px;
    }
    .contact .wrap-line .text1 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    .contact .wrap-line .text {
        font-size: 0.9rem;
        margin-top: 6px;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
.footer-content {
    flex-direction: column;     /* 既存のまま */
    align-items: flex-start;    /* 子要素を左寄せ */
    text-align: left;           /* テキストも左寄せ */
}

.footer-links {
    flex-direction: column;     /* 縦並びのまま */
}
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.company-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.footer-link:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    border-top: 1px solid #475569;
    padding-top: 1rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .service-content {
        gap: 3rem;
    }
    
    .cta-content {
        gap: 3rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Mobile and tablet styles */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    /* Hide specified text on mobile */
    .mobile-hidden {
        display: none;
    }
    
    /* Header adjustments */
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-content {
        padding: 0.75rem 0;
    }
    
    /* Hero section */
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }
    
    /* Service content */
    .service-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* CTA content */
    .cta-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Button adjustments */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        padding: 1rem 1.5rem;
    }
    
    /* Section spacing */
    .section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: clamp(1.8rem, 4vw, 2.2rem);
        margin-bottom: 2rem;
    }
    
    /* Problem cards */
    .problems-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .problem-card {
        padding: 2rem;
    }
    
    /* Benefits grid */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit-card {
        padding: 2rem;
    }
    
    /* Pricing cards */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
    
    /* FAQ adjustments */
    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .faq-toggle {
        align-self: flex-end;
        margin-left: 0;
    }
    
    .faq-answer {
        padding: 0 1rem 1rem;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Remove transforms on mobile */
    .hero-img,
    .service-img,
    .cta-img {
        transform: none;
    }
    
    .hero-img:hover,
    .service-img:hover,
    .cta-img:hover {
        transform: scale(1.02);
    }
    
    /* Table responsiveness */
    .features-table-wrapper {
        border-radius: 15px;
    }
    
    .features-table th,
    .features-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Hero adjustments */
    .hero {
        padding: 5rem 0 3rem;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.95rem, 4vw, 1.1rem);
        margin-bottom: 1.5rem;
    }
    
    /* Section spacing */
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: clamp(1.6rem, 5vw, 2rem);
        margin-bottom: 1.5rem;
    }
    
    /* Card padding */
    .problem-card,
    .benefit-card,
    .pricing-card {
        padding: 1.5rem;
    }
    
    /* Button sizing */
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    /* FAQ questions */
    .faq-question {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .faq-answer {
        padding: 0 0.75rem 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Table adjustments */
    .features-table th,
    .features-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .features-table td:first-child {
        font-size: 0.9rem;
    }
    
    /* Benefit number positioning */
    .benefit-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: 1.5rem;
        right: 1.5rem;
    }
    
    /* Plan price sizing */
    .plan-price {
        font-size: 2rem;
    }
    
    /* CTA title */
    .cta-title {
        font-size: clamp(1.6rem, 5vw, 2rem);
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .problem-card,
    .benefit-card,
    .pricing-card {
        padding: 1.25rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle pulse animation for primary CTA buttons */
.btn-primary {
    animation: subtlePulse 4s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% { 
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25); 
    }
    50% { 
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35); 
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   Accessibility improvements
   ========================================================================== */

/* Focus styles for keyboard navigation */
.btn:focus,
.nav-link:focus,
.faq-question:focus,
.footer-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero {
        background: #f0f0f0;
    }
    
    .problems-section,
    .features-section,
    .pricing-section,
    .final-cta {
        background: #ffffff;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid var(--text-dark);
    }
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-img,
    .service-img,
    .cta-img {
        transform: none !important;
    }
    
    .btn-primary {
        animation: none;
    }
}
