/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
    line-height: 1.6;
    color: #333;
}

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

button {
    cursor: pointer;
    font-family: inherit;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Google Icons の共通設定 */
.material-symbols-outlined {
    font-variation-settings:
    'FILL' 1,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
    vertical-align: middle;
}

/* 他社比較表の中のチェックアイコン用 */
.check-icon {
    color: #9333ea; /* AIアポブーストのブランドカラー（紫） */
    font-size: 28px !important;
}

/* 表のセル内で中央に寄せるための調整 */
.pricing-table td:not(:first-child) {
    text-align: center;
    vertical-align: middle;
}


/* Container */
.container {
    max-width: 1280px;
    margin-bottom: 2rem;
    padding: 0 rem;
}

/* Navigation */
nav {
    background: #581c87;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #6b21a8;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.site-icon {
    height: 2.5rem;
    aspect-ratio: 4 / 1;
    width: auto;
    object-fit: contain;
    display: inline-block;
    max-width: 14rem;
}

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

.nav-link {
    color: #e9d5ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    touch-action: manipulation;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link:active {
    opacity: 0.8;
}

.nav-button {
    background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    touch-action: manipulation;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-button:hover {
    box-shadow: 0 10px 25px -5px rgba(168, 85, 247, 0.4);
    transform: translateY(-2px);
}

.nav-button:active {
    transform: translateY(0);
}

.hamburger-menu-button {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%);
    width: 48px;
    height: auto;
    border-radius: 50%;
    padding: 10px;
    border: none;
    display: none;
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    padding: 0.1rem;
    touch-action: manipulation;
}

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.active {
    max-height: 600px;
}

.mobile-menu-content {
    margin: 1rem 0;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #6b21a8;
}

.mobile-menu-link {
    display: block;
    color: #e9d5ff;
    text-decoration: none;
    font-weight: bold;
    padding: 0.75rem 1rem;
    transition: background-color 0.3s ease;
    text-align: center;
}

.mobile-menu-link:active {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-button {
    width: 100%;
    background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    border: none;
    margin: 0.5rem 1rem;
    width: calc(100% - 2rem);
}

/* Hero Section */

.hero-background {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* コンテンツを左端から配置するために center から変更 */
    justify-content: flex-start !important; 
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: left !important; /* 強制的に左寄せ */
    width: 100%;
    /* 紫のエリア内に収まるよう最大幅を制限（Backlog風） */
    max-width: 550px !important; 
    /* 画面中央寄せを解除し、左端から8%の位置に固定 */
    margin-left: 8% !important; 
    margin-right: 0 !important;
    padding: 0 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start !important;
    margin-top: 2.5rem;
}

/* 背景GIFの設定 */
.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('AIpo-1.gif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

/* オーバーレイ（単色・下層） */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(88, 28, 135, 0.8); /* 単色の半透明オーバーレイ */
    z-index: 2;
    pointer-events: none;
}

/* 斜めの分割オーバーレイ（上層） */
.hero-overlay-slanted {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(107,33,168,0.95) 100%, rgba(236,72,153,0.05) 100%);
    z-index: 3;    
    pointer-events: none;
}

/* コンテンツを最前面に */
.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 6rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.text-white {
    color: #ffffff;
}

.hero-gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.8;
    text-align: left;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.cta-button {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(168, 85, 247, 0.4);
    cursor: pointer;
    touch-action: manipulation;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(168, 85, 247, 0.5);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button-secondary {
    background: white;
    color: #a855f7;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    border: 2px solid #a855f7;
    transition: all 0.3s ease;
    cursor: pointer;
    touch-action: manipulation;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button-secondary:hover {
    background: #faf5ff;
    transform: translateY(-2px);
}

.cta-button-secondary:active {
    transform: translateY(0);
}

/* Section Styles */
.section {
    padding: 5rem 5rem;
}

.section-white {
    background: white;
}

.section-purple {
    background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
    margin: 10vh 0vh;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    line-height: 1.2;
    background: color #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-description {
    font-size: 1rem;
    color: #4b5563;
    text-align: center;
    margin-bottom: 3rem;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

/* スクロールの長さを定義（カード3枚分） */
.problem-scroll-container {
    min-height: 600vh; 
    height: auto;
    position: relative;
    background-color: #ffffff;
}

/* 画面中央に固定する設定 */
.problem-sticky-inner {
    position: sticky;
    top: 0;
    height: 100vh; /* 画面いっぱいに表示 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 2rem;
}

.problem-scroll-container {
    /*スクロール幅を長く*/
    height: 700vh; 
    position: relative;
    margin-bottom: 20vh;
}

/* 課題セクションの新スタイル */
.problem-visual-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    align-items: flex-start;
}

.problem-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: none !important; /* 四角い背景を消す */
    border: none !important;
    box-shadow: none !important;
}

/* 円形アイコン部分 */
.problem-icon-circle {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%); 
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.icon-label {
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    margin-top: 0.5rem;
    letter-spacing: 0.1em;
}

/* テキスト部分 */
.problem-item-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
}

.problem-item-text {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
    max-width: 280px;
}

/* スクロールアニメーション連動用の設定 */
.problem-item.card-gradient {
    transition: transform 0.2s linear, opacity 0.2s linear !important;
    will-change: transform, opacity;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .problem-visual-list {
        grid-template-columns: 1fr;
        gap: 4rem;
        align-items: center;
    }
    .problem-icon-circle {
        width: 120px;
        height: 120px;
    }
}
.card-gradient:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.card-icon svg {
    width: 64px;
    height: 64px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.card-text {
    color: #4b5563;
    line-height: 1.6;
}

/* Browser Frame */

.browser-content {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.browser-content img {
    width: 70%;
    height: auto;
}


/* --- 導入効果セクション：スクロールアニメーション用 --- */

.stats-scroll-container {
    height: 800vh; /* スクロールの長さ。お好みで調整してください */
    position: relative;
    padding-bottom: 4rem;
    margin: 20vh 0vh;
}

.stats-sticky-inner {
    position: sticky;
    /* 0 から 50px 〜 80px 程度に増やす*/
    top: 80px; 
    height: calc(100vh - 80px); /* topの分だけ高さを引く */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* カード自体の調整 */
.stat-card {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* スクロール時の変化用 */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 数字を囲む円形（ブランドカラーのグラデーション）*/
.stat-circle {
    width: 200px;
    height: 200px;
    /* ヒーローセクション等の色味に合わせたグラデーション */
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden; /* 中の塗りつぶしアニメをはみ出させない */
    box-shadow: 0 15px 35px rgba(147, 51, 234, 0.25);
}

/*  塗りつぶし背景を円の内側に配置 */
.stat-visual-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.7; /* 重なりを見せるため少し薄く */
}

/* 数字 */
.stat-number {
    font-size: 2rem !important;
    font-weight: 900;
    color: #1f2937 !important;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
    z-index: 2;
}

/* 5. 上下のテキスト調整 */
.stat-label {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 700;
    padding: 12px 24px;
    margin-bottom: 1rem;
    border: #1f2937 2px solid;
}

.stat-description {
    font-size: 1rem;
    font-weight: 400;
    color: #1f2937;
    text-align: center;
    line-height: 1.4;
}

/* カード2: 減少アニメーションの起点 */
.liquid-drain {
    background: #9333ea; /* 塗りつぶしの色 */
    transform-origin: bottom; /* 下に向かって減っていくように見せる */
    transition: transform 0.1s linear;
}

/* カード3: アンダーラインの土台 */
.underline-target {
    position: relative;
    display: inline-block;
}

.underline-target::after {
    content: '';
    position: absolute;
    bottom: -8px; /* 数字のすぐ下に配置 */
    left: 0;
    width: var(--underline-width, 0%); /* JSから渡された変数で幅を決める */
    height: 4px;
    background: #9333ea; /* 数字が白なのでラインも白、またはアクセントカラー */
    border-radius: 4px;
    transition: width 0.1s linear;
}

/* モバイル対応 */
@media (max-width: 639px) {
    .stat-circle {
        width: 160px;
        height: 160px;
    }
    .stat-number {
        font-size: 1.5rem !important;
    }
}

/* Feature Cards */
.feature-card {
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card-background {
    background: #f0f0f0;
    border-radius: 32px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.feature-description {
    color: #4b5563;
    line-height: 1.6;
}

/* Pricing Table */

.pricing-table-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pricing-table {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-width: 600px;
    width: 100%;
}

.pricing-table table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table thead {
    background: #f9fafb;
    border-bottom: 1px solid #e9d5ff;
}

.pricing-table thead th {
    padding: 1.5rem 1rem;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 700;
}

.pricing-table thead th:first-child {
    text-align: left;
}

.pricing-table thead th:not(:first-child) {
    text-align: center;
}

.pricing-table .highlight-header {
    background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
    color: white;
}

.pricing-table tbody tr {
    border-bottom: 1px solid #e9d5ff;
}

.pricing-table tbody tr:nth-child(even) {
    background: #faf5ff;
}

.pricing-table tbody td {
    padding: 1rem;
}

.pricing-table tbody td:first-child {
    font-weight: 500;
}

.pricing-table tbody td:not(:first-child) {
    text-align: center;
}

.pricing-table .purple_char{
    font-weight: 700;
    color: #9333ea;
}

.pricing-table .check {
    color: #4bc054;
    font-size: 1.5rem;
}

.pricing-table .unlimited {
    color: #9333ea;
    font-weight: 700;
}

/* Pricing Card */
.pricing-card-wrapper {
    max-width: 28rem;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 4px solid #a855f7;
}

.pricing-card-badge {
    background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
    color: white;
    text-align: center;
    padding: 1rem;
    font-weight: 700;
    font-size: 0.875rem;
}

.pricing-card-content {
    padding: 2.5rem;
    text-align: center;
}

.pricing-card-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-card-subtitle {
    color: #4b5563;
    margin-bottom: 1rem;
}

.pricing-card-price-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.pricing-card-price {
    font-size: 3rem;
    font-weight: 900;
    color: #9333ea;
    font-family: 'Outfit', sans-serif;
}

.pricing-card-period {
    color: #4b5563;
    margin-left: 0.5rem;
}

.pricing-card-initial {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.pricing-card-initial-price {
    color: #9333ea;
}

.pricing-card-button {
    width: 100%;
    margin-bottom: 1.5rem;
}

.pricing-card-features {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-card-feature {
    display: flex;
    align-items: flex-start;
}

.pricing-card-feature-icon {
    color: #9333ea;
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.pricing-card-feature-text {
    color: #374151;
}

/* FAQ */
.faq-wrapper {
    max-width: 1024px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border-bottom: 1px solid #e9d5ff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.faq-item:hover {
    background: #faf5ff;
}

.faq-item:active {
    background: #f5f3ff;
}

.faq-question-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
}

.faq-icon {
    color: #9333ea;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.faq-item:hover .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0; /* 追加：閉じる時にフワッと消す */
    margin-top: 0;
    /* 修正：全ての変化を0.3sに統一し、opacityを追加 */
    transition: max-height 0.3s ease, margin-top 0.3s ease, opacity 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* 修正：スマホで文章が切れないよう余裕を持たせる */
    margin-top: 1rem;
    opacity: 1; /* 追加：開く時にフワッと表示 */
}

.faq-answer-text {
    color: #4b5563;
    line-height: 1.6;
}

/* Contact Form */
.contact-wrapper {
    max-width: 768px;
    margin: 0 auto;
}

.contact-form {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-required {
    color: #ef4444;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #a855f7;
}

/* Mobile-friendly select styling */
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a855f7' stroke-width='2'%3E%3Cpath d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.5rem;
    padding-right: 2.5rem;
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.form-checkbox {
    margin-top: 0.25rem;
    margin-right: 0.75rem;
}

.form-checkbox-label {
    font-size: 0.875rem;
    color: #4b5563;
}

.form-link {
    color: #9333ea;
    text-decoration: none;
}

.form-link:hover {
    text-decoration: underline;
}

.form-submit {
width: auto !important;       /* 横幅100%を解除 */
min-width: 240px;             /* 押しやすいように最低幅を確保 */
display: flex !important;     /* ブロック要素のように振る舞わせる */
margin: 2rem auto 0 auto !important; /* 上に余白、左右は自動（中央寄せ） */
justify-content: center;      /* ボタン内の文字も中央へ */}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #9333ea 0%, #ec4899 50%, #9333ea 100%);
    padding: 5rem 1rem;
}

.cta-content {
    max-width: 1024px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.cta-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

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

.cta-button-white {
    background: white;
    color: #9333ea;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    touch-action: manipulation;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button-white:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.cta-button-white:active {
    transform: scale(1);
}

.cta-button-outline {
    background: transparent;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    border: 2px solid white;
    transition: all 0.3s ease;
    cursor: pointer;
    touch-action: manipulation;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button-outline:hover {
    background: white;
    color: #9333ea;
}

.cta-button-outline:active {
    background: #f0f0f0;
}

/* Footer */
footer {
    background: #581c87;
    color: white;
    padding: 4rem 1rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-description {
    color: #e9d5ff;
    font-size: 0.875rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: #e9d5ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #6b21a8;
    padding-top: 2rem;
    text-align: center;
    color: #e9d5ff;
    font-size: 0.875rem;
}

/* Utility Classes */
.text-center {
    align-items: center;
    gap: 0.75rem;
    justify-content: center;        /* 横並びのときの中央揃え */
    align-items: center;            /* 縦並びのときの中央揃え */
}

.mt-12 {
    margin-top: 1.5rem;
    display: flex !important;
    flex-direction: row;
    gap: 0.75rem !important; 
    width: 100%;
    align-items: center;        
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Responsive Design */
@media (min-width: 640px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    .hero-content {
        width: 100% !important;
        max-width: 1000px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: left !important;
    }
    .hero-buttons {
        justify-content: flex-start !important;
        gap: 1.5rem !important; /* ボタン同士の間隔を広げる */
    }
    .site-icon {
        height: 2.75rem;
        max-width: 14rem;
    }
    .hero-overlay-slanted {
        background: linear-gradient(135deg, rgba(107,33,168,0.95) 100%, rgba(236,72,153,0.05) 100%) !important;
        clip-path: polygon(0 0, 70% 0, 30% 100%, 0 100%) !important;
    }
    .nav-container {
        padding: 0 2rem;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Hide actual hamburger button on desktop */
    .hamburger-menu-button {
        display: none !important;
    }
}

@media (max-width: 639px) {
    .mt-12 {
        margin-top: 1.5rem;
        display: flex !important;
        flex-direction: column; /* スマホでは縦並び */
        gap: 0.75rem !important; /* ボタン間の隙間を確保 */
        width: 100%        
    }
    
    .px-8 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* スマートフォン用 (〜639px) */
@media (max-width: 639px) {
    .site-icon {
        height: 1.75rem;
        max-width: 10rem;
    }
    
    .nav-content {
        height: 70px;
    }
    
    .hero-title {
        font-size: 2.75rem;
        margin-bottom: 1rem;
        line-height: 1.3;
        text-align: center;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .cta-button,
    .cta-button-secondary,
    .cta-button-white,
    .cta-button-outline {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        width: 50%;
        align-items: center;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .section-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card-gradient,
    .stat-card,
    .feature-card {
        padding: 1.5rem;
    }
        
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-description {
        font-size: 0.95rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    .feature-description {
        font-size: 0.9rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .cta-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-buttons {
        gap: 0.75rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hamburger-menu-button {
        display: block;
    }

    .mobile-menu-button {
        display: block;
    }
    
    .browser-content {
        min-height: 200px;
        margin: 1rem 0;
    }
    
    /* Pricing Table */
    .pricing-table {
        min-width: 100%;
    }
    
    .pricing-table thead th {
        padding: 0.75rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .pricing-table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .pricing-card {
        border-width: 2px;
    }
    
    .pricing-card-content {
        padding: 1.5rem;
    }
    
    .pricing-card-title {
        font-size: 1.5rem;
    }
    
    .pricing-card-price {
        font-size: 2rem;
    }
    
    .pricing-card-initial {
        font-size: 1.25rem;
    }
    
    .pricing-card-features {
        gap: 0.75rem;
    }
    
    .pricing-card-feature-text {
        font-size: 0.9rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .form-label {
        font-size: 0.8rem;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.65rem 0.75rem;
        font-size: 0.95rem;
    }
    
    .form-textarea {
        min-height: 120px;
    }
    
    /* FAQ */
    .faq-item {
        padding: 1rem;
        border-radius: 0.5rem;
    }
    
    .faq-question {
        font-size: 1rem;
    }
    
    .faq-icon {
        width: 20px;
        height: 20px;
    }
    
    .faq-answer-text {
        font-size: 0.9rem;
    }
    
    /* Footer */
    footer {
        padding: 3rem 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-column h4 {
        font-size: 1rem;
    }
    
    .footer-description {
        font-size: 0.8rem;
    }
    
    .footer-link {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 1.5rem;
    }
}

/* モバイル版：画面が狭いときは中央に戻して視認性を確保 */
@media (max-width: 1023px) {    
    .hero-background {
        justify-content: center !important;
    }
    .hero-content {
        max-width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
    }
    .hero-buttons {
        justify-content: center !important;
    }
    .hero-description{
        text-align: center !important;
    }
} 

/* タブレット用 (640px - 1023px) */
@media (min-width: 640px) and (max-width: 1023px) {
    .site-icon {
        height: 2.2rem;
        max-width: 12rem;
    }
    
    .nav-content {
        height: 75px;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.95rem;
    }
    
    .nav-button {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }

    /* Show hamburger only on tablet (like mobile) */
    .nav-links {
        display: none;
    }

    .hamburger-menu-button {
        display: block;
    }

    /* Show mobile menu buttons on tablet */
    .mobile-menu-button {
        display: block;
    }

    /* Show mobile menu buttons on tablet */
    .mobile-menu-button {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.25rem;
        text-align: center;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 1.75rem;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-button,
    .cta-button-secondary,
    .cta-button-white,
    .cta-button-outline {
        padding: 0.9rem 2rem;
        font-size: 1rem;
        width: auto;
    }
    
    .section {
        padding: 4rem 1rem;
    }
    
    .section-title {
        font-size: 2.25rem;
        margin-bottom: 1.25rem;
    }
    
    .section-description {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
    
    .card-gradient,
    .stat-card,
    .feature-card {
        padding: 1.75rem;
    }
    
    .card-icon {
        font-size: 3.5rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-text {
        font-size: 0.95rem;
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
    
    .stat-description {
        font-size: 1rem;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    .feature-description {
        font-size: 0.95rem;
    }
    
    .cta-title {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }
    
    .cta-description {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }
    
    .cta-buttons {
        gap: 1rem;
    }
    

    
    /* Pricing Table */
    .pricing-table-wrapper {
        width: 100%;
    }
    
    .pricing-table {
        min-width: 100%;
    }
    
    .pricing-table thead th {
        padding: 1.25rem 1rem;
        font-size: 1rem;
    }
    
    .pricing-table tbody td {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }
    
    .pricing-card {
        max-width: 26rem;
    }
    
    .pricing-card-content {
        padding: 2rem;
    }
    
    .pricing-card-title {
        font-size: 1.75rem;
    }
    
    .pricing-card-price {
        font-size: 2.5rem;
    }
    
    .pricing-card-initial {
        font-size: 1.5rem;
    }
    
    .pricing-card-features {
        gap: 0.9rem;
    }
    
    .pricing-card-feature-text {
        font-size: 0.95rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .form-textarea {
        min-height: 140px;
    }
    
    /* FAQ */
    .faq-item {
        padding: 1.25rem;
        border-radius: 0.75rem;
    }
    
    .faq-question {
        font-size: 1.05rem;
    }
    
    .faq-answer-text {
        font-size: 0.95rem;
    }
    
    /* Footer */
    footer {
        padding: 3.5rem 1rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
        margin-bottom: 2.5rem;
    }
    
    .footer-column h4 {
        font-size: 1.05rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .footer-link {
        font-size: 0.95rem;
    }
    
    .footer-bottom {
        font-size: 0.9rem;
        padding-top: 2rem;
    }
}


@media (min-width: 1280px) {
    .site-icon {
        height: 3.75rem;
        max-width: 16rem;
    }
    
}



/* 横向きモード対応 */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-background {
        min-height: auto;
        height: 100vh;
    }
    
    .hero-title {
        font-size: 3.5rem;
        margin-bottom: 0.75rem;
        text-align: left;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        text-align: left;
    }
    
    .hero-buttons {
        margin-bottom: 0;
    }
    
    .cta-button,
    .cta-button-secondary {
        padding: 0.65rem 1.5rem;
        font-size: 0.9rem;
    }
    
    nav {
        height: auto;
    }
    
    .nav-content {
        height: 55px;
    }
    
    .site-icon {
        height: 1.5rem;
    }
}

/* 大画面向け (1600px 以上) */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
    
    .section {
        padding: 6rem 2rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }

    .hamburger-menu-button {
        display: none !important;
    }
}

/* iOS Safari 対応 */
@supports (-webkit-touch-callout: none) {
    body {
        -webkit-user-select: none;
        -webkit-touch-callout: none;
        user-select: none;
    }
    
    input, textarea, select {
        -webkit-user-select: text;
        -webkit-touch-callout: default;
        user-select: none;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    opacity: 0; /* 開始前は非表示 */
    animation: fadeInUp 0.8s ease-out forwards; /* forwards で終了時の状態を維持 */
}

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


@media (max-width: 1023px) {

    /* 1. スクロール領域の高さをリセット（重なり防止） */
    .problem-scroll-container,
    .stats-scroll-container {
        height: auto !important; 
        min-height: auto !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 4rem !important; 
        padding-bottom: 4rem !important;
        background: #ffffff !important; 
        width: 100% !important; /* 横幅確保 */
    }

    /* 2. 画面固定（Sticky）を解除し、普通のブロック要素にする */
    .problem-sticky-inner,
    .stats-sticky-inner {
        position: relative !important;
        top: auto !important;
        height: auto !important;
        width: 100% !important; /* 横幅100%を強制 */
        display: block !important;
        padding: 0 !important; /* 余計なパディングを削除 */
    }

    /* 3. コンテナの幅を確保 */
    .stats-sticky-inner .container,
    .problem-sticky-inner .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 1.5rem !important; /* 適度な余白 */
        padding-right: 1.5rem !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    /* 4. テキストの強制改行を防ぐ */
    .section-title,
    .section-description,
    .stat-description {
        width: 100% !important;
        max-width: none !important;
    }

    /* 5. カードを縦積みにする */
    .grid-3 {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
        width: 100% !important;
    }
    
    .problem-visual-list,
    .stats-cards {
        display: flex !important;
        flex-direction: column !important;
        gap: 3rem !important;
        width: 100% !important;
    }

    /* 6. デモセクションの調整 */
    .section-purple {
        position: relative;
        z-index: 5;
        margin: 0 !important;
        padding: 3rem 1.5rem !important;
        background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
    }

    /* 7. カードのデザイン調整 */
    .problem-item, 
    .stat-card {
        margin-bottom: 2rem;
        opacity: 1 !important;
        transform: none !important;
        width: 100% !important; /* カード幅も確保 */
    }

    /* 円形アイコン */
    .problem-icon-circle,
    .stat-circle {
        margin: 0 auto 1.5rem auto !important;
    }

    /* 数字の表示崩れ防止 */
    .stat-number {
        width: auto !important;
        white-space: nowrap !important; /* 数字は改行させない */
    }
}