/* ========================================
   Overleaf - Unified Stylesheet
   ======================================== */

/* ========== Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: #1E1E1E;
    line-height: 1.6;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    padding-left: 1.5em;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Header ========== */
.header {
    background: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo img {
    height: 50px;
    width: auto;
}

.header-logo-text {
    font-size: 14px;
    font-weight: 500;
    color: #000;
}

.header-badge {
    background: #FFF4D8;
    border-radius: 25px;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 700;
    color: #DC5100;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-nav a {
    font-size: 16px;
    font-weight: 500;
    color: #000;
    transition: color 0.3s;
}

.header-nav a:hover,
.header-nav a.active {
    color: #098842;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #098842;
    color: #fff;
}

.btn-primary:hover {
    background: #076d35;
    color: #fff;
}

.btn-secondary {
    background: #2F3A4C;
    color: #fff;
}

.btn-secondary:hover {
    background: #1f2a3c;
    color: #fff;
}

.btn-white {
    background: #fff;
    color: #0A0A0A;
    border: 1px solid #ddd;
}

.btn-white:hover {
    background: #f5f5f5;
}

.btn-outline {
    background: #fff;
    color: #000;
    border: 1px solid #808080;
}

.btn-outline:hover {
    background: #f5f5f5;
}

.btn-blue-gradient {
    background: linear-gradient(180deg, #5E8ED5 0%, #224679 100%);
    color: #fff;
}

.btn-blue-gradient:hover {
    opacity: 0.9;
    color: #fff;
}

.btn-blue {
    background: linear-gradient(90deg, #5382C7 0%, #23487C 100%);
    color: #fff;
}

.btn-blue:hover {
    opacity: 0.9;
    color: #fff;
}

.btn-gray {
    background: #fff;
    color: #1A1A1A;
    border: 1px solid #000;
}

.btn-gray:hover {
    background: #f5f5f5;
}

.btn-register {
    background: #098842;
    color: #fff;
    gap: 8px;
}

.btn-register:hover {
    background: #076d35;
    color: #fff;
}

.btn-register svg {
    width: 18px;
    height: 18px;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: #098842;
    color: #fff;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    transition: background 0.3s;
    white-space: nowrap;
}

.btn-contact:hover {
    background: #076d35;
    color: #fff;
}

.btn-submit {
    background: #006FFF;
    color: #fff;
    padding: 16px 48px;
    font-size: 18px;
}

.btn-submit:hover {
    background: #0056cc;
    color: #fff;
}

.btn-plan-primary {
    background: #4354A3;
    color: #fff;
}

.btn-plan-primary:hover {
    background: #374391;
    color: #fff;
}

.btn-plan-outline {
    background: #fff;
    color: #424242;
    border: 1px solid #000;
}

.btn-plan-outline:hover {
    background: #f5f5f5;
}

/* ========== Hero Section (Home) ========== */
.hero {
    background: #098842;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: #D9D9D9;
    border-radius: 72px;
    padding: 8px 24px;
    font-size: 16px;
    font-weight: 700;
    color: #098842;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 44px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    max-width: 550px;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ========== Hero Section (About Page) ========== */
.hero-about {
    padding: 60px 0 80px;
    text-align: center;
    background: #fff;
}

.hero-about .hero-logo {
    margin-bottom: 8px;
}

.hero-about .hero-logo img {
    height: 120px;
}

.hero-about .hero-subtitle {
    font-size: 16px;
    color: #858585;
    margin-bottom: 32px;
}

.hero-about .hero-title {
    font-size: 32px;
    font-weight: 500;
    color: #000;
    margin-bottom: 32px;
    line-height: 1.4;
}

.hero-about .hero-buttons .btn {
    min-width: 180px;
}

/* About Hero (New Style) */
.about-hero {
    padding: 60px 0 80px;
    text-align: center;
    background: #fff;
}

.about-hero-logo {
    margin-bottom: 16px;
}

.about-hero-logo img {
    height: 160px;
    width: auto;
}

.about-hero-subtitle {
    font-size: 16px;
    color: #098842;
    margin-bottom: 16px;
}

.about-hero-title {
    font-size: 32px;
    font-weight: 500;
    color: #000;
    margin-bottom: 40px;
    line-height: 1.4;
}

.about-hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.about-hero-buttons .btn {
    min-width: 180px;
}

/* About Features Section */
.about-features {
    padding: 80px 0;
}

/* About AI Assist Section */
.about-ai-assist {
    padding: 80px 0;
    background: #FAFBFD;
}

.about-ai-assist-inner {
    display: flex;
    gap: 48px;
    align-items: center;
}

.about-ai-assist-content {
    flex: 1;
}

.about-ai-assist-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.about-ai-assist-description {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.75);
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-ai-assist-link {
    font-size: 16px;
    font-weight: 600;
    color: #098842;
}

.about-ai-assist-link:hover {
    text-decoration: underline;
}

.about-ai-assist-image {
    flex: 0 0 400px;
}

.about-ai-assist-image img {
    width: 100%;
    border-radius: 12px;
}

/* Journal Submit Section */
.journal-submit {
    padding: 80px 0;
    background: #fff;
}

/* Plans Hero Section */
.plans-hero {
    padding: 60px 0 80px;
    text-align: center;
    background: #fff;
}

.plans-hero-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
}

.plans-hero-description {
    font-size: 18px;
    color: #6D6D6D;
    line-height: 1.8;
    margin-bottom: 48px;
}

.plans-hero .support-box {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

/* ========== Hero Section (Plan/AI Assist Page) ========== */
.hero-page {
    padding: 60px 0 40px;
    text-align: center;
    background: #fff;
}

.hero-page .hero-title {
    font-size: 32px;
    font-weight: 600;
    color: #000;
    margin-bottom: 16px;
}

.hero-page .hero-description {
    font-size: 22px;
    font-weight: 500;
    color: #6D6D6D;
    line-height: 1.8;
    margin-bottom: 32px;
}

/* ========== News Section (Home) ========== */
.news {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #000;
}

.section-link {
    font-size: 16px;
    font-weight: 500;
    color: #000;
}

.section-link:hover {
    color: #098842;
}

.news-list {
    background: #F4F5F6;
    border: 1px solid #4B4B4B;
    padding: 24px 32px;
}

.news-item {
    display: flex;
    gap: 24px;
    padding: 12px 0;
    font-size: 16px;
    color: #7C7C7C;
    border-bottom: 1px solid #e0e0e0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    font-weight: 500;
    white-space: nowrap;
}

.news-category {
    font-weight: 500;
    white-space: nowrap;
    min-width: 80px;
}

.news-title-item {
    flex: 1;
}

/* ========== News Section (News Page) ========== */
.news-section {
    padding: 80px 0 60px;
}

.news-header {
    text-align: center;
    margin-bottom: 48px;
}

.news-page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.news-subtitle {
    font-size: 22px;
    font-weight: 500;
    color: #000;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.filter-tab {
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    background: #fff;
    color: #6D6D6D;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
}

.filter-tab:hover {
    color: #098842;
}

.filter-tab.active {
    background: #098842;
    color: #fff;
}

/* News Cards Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.news-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #4D4D4D;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.3s;
}

.news-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    position: relative;
    height: 200px;
    background: #D1E9DC;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #4D4D4D;
}

.news-card-image img {
    max-height: 100px;
    width: auto;
}

.news-card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #098842;
    color: rgba(255, 255, 255, 0.75);
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 700;
}

.news-card-content {
    padding: 24px;
}

.news-card-date {
    font-size: 18px;
    font-weight: 600;
    color: #767676;
    margin-bottom: 8px;
}

.news-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #000;
}

.news-card-description {
    font-size: 16px;
    font-weight: 600;
    color: #767676;
    line-height: 1.6;
    margin-bottom: 16px;
}

.news-card-link {
    font-size: 18px;
    font-weight: 600;
    color: #098842;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.news-card-link:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination-item {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 24px;
    font-weight: 500;
    color: #555555;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-item:hover {
    background: #F5F5F5;
}

.pagination-item.active {
    background: #098842;
    color: #fff;
}

/* ========== News Entry Page ========== */
.news-hero {
    padding: 60px 0 40px;
    background: #fff;
}

.news-back-link {
    margin-bottom: 24px;
}

.news-back-link a {
    color: #098842;
    font-size: 16px;
    font-weight: 500;
}

.news-back-link a:hover {
    text-decoration: underline;
}

.news-entry-date {
    font-size: 18px;
    font-weight: 600;
    color: #767676;
    margin-bottom: 12px;
}

.news-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.news-tag-badge {
    background: #098842;
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.news-entry-title {
    font-size: 36px;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
}

.news-content-section {
    padding: 40px 0 80px;
}

.news-article {
    max-width: 800px;
    margin: 0 auto;
}

.news-article-image {
    margin-bottom: 32px;
}

.news-article-image img {
    width: 100%;
    border-radius: 12px;
}

.news-article-body {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.news-article-body p {
    margin-bottom: 1.5em;
}

.news-article-body h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 2em 0 1em;
}

.news-article-body h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 1.5em 0 0.75em;
    padding-left: 12px;
    border-left: 4px solid #098842;
}

.news-article-body h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 1.5em 0 0.75em;
}

.news-article-body h5 {
    font-size: 16px;
    font-weight: 600;
    margin: 1.5em 0 0.75em;
    padding: 8px 12px;
    background: #F4F5F6;
    border-radius: 4px;
}

.news-article-body a {
    color: #098842;
}

.news-article-body a:hover {
    text-decoration: underline;
}

.news-article-body ul,
.news-article-body ol {
    margin: 1em 0 1.5em;
    padding-left: 1.5em;
}

.news-article-body ul {
    list-style-type: disc;
}

.news-article-body ol {
    list-style-type: decimal;
}

.news-article-body li {
    margin-bottom: 0.5em;
    line-height: 1.7;
}

.news-article-body li:last-child {
    margin-bottom: 0;
}

.news-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.news-nav-prev,
.news-nav-next {
    color: #098842;
    font-size: 16px;
    font-weight: 500;
    max-width: 45%;
}

.news-nav-prev:hover,
.news-nav-next:hover {
    text-decoration: underline;
}

/* ========== Feature Section - LaTeXエディタの定番 ========== */
.feature-latex {
    padding: 80px 0;
}

.feature-latex .section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-latex .section-subtitle {
    text-align: center;
    font-size: 22px;
    font-weight: 500;
    color: #6D6D6D;
    margin-bottom: 48px;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: #F4F5F6;
    border-radius: 20px;
    padding: 32px 24px;
}

.feature-card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    color: #02542D;
}

.feature-card-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
}

.feature-card-description {
    font-size: 16px;
    font-weight: 600;
    color: #535353;
    line-height: 1.7;
}

.feature-link {
    text-align: right;
    margin-top: 24px;
}

/* ========== Support Section ========== */
.support {
    background: #86CAA5;
    padding: 80px 0;
}

.support .section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 16px;
}

.support .section-title {
    color: #333;
}

.support .section-subtitle {
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: #444;
    margin-bottom: 48px;
    line-height: 1.8;
}

.support-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.support-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
}

.support-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: #024023;
}

.support-card-icon svg {
    width: 100%;
    height: 100%;
}

.support-card-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.4;
}

.support-card-description {
    font-size: 16px;
    font-weight: 600;
    color: #535353;
    line-height: 1.7;
    text-align: left;
}

/* ========== Plans Section ========== */
.plans {
    padding: 80px 0;
}

.plans .section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 16px;
}

.plans .section-subtitle {
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: #6D6D6D;
    margin-bottom: 48px;
    line-height: 1.8;
}

.plan-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.plan-card {
    background: #fff;
    border-radius: 15px;
    padding: 24px;
    border: 4px solid #4354A3;
    display: flex;
    flex-direction: column;
}

.plan-card.inactive {
    border: 2px solid #9D9D9D;
}

.plan-badge {
    display: inline-block;
    background: #D9D9D9;
    border-radius: 72px;
    padding: 4px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #4354A3;
    margin-bottom: 12px;
}

.plan-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.plan-title-sub {
    font-size: 16px;
    font-weight: 600;
    color: #565656;
    margin-bottom: 16px;
}

.plan-description {
    font-size: 15px;
    font-weight: 500;
    color: #565656;
    line-height: 1.6;
    margin-bottom: 24px;
}

.plan-features {
    margin-bottom: 24px;
    flex: 1;
}

.plan-feature {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #303030;
    margin-bottom: 8px;
}

.plan-feature svg {
    width: 16px;
    height: 16px;
    color: #4354A3;
    flex-shrink: 0;
    margin-top: 2px;
}

.plan-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.plan-buttons .btn {
    width: 100%;
}

/* ========== AI Assist Section (Home) ========== */
.ai-assist {
    padding: 80px 0;
    background: #fff;
}

.ai-assist .section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 16px;
}

.ai-assist .section-subtitle {
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: #6D6D6D;
    margin-bottom: 48px;
    line-height: 1.8;
}

.ai-assist-content {
    display: flex;
    gap: 48px;
    align-items: center;
    background: #FAFBFD;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #4F4F4F;
}

.ai-assist-info {
    flex: 1;
}

.ai-assist-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.ai-assist-title img {
    width: 24px;
    height: 24px;
}

.ai-assist-description {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.75);
    line-height: 1.7;
    margin-bottom: 16px;
}

.ai-assist-highlight {
    font-size: 16px;
    font-weight: 600;
    color: #098842;
    line-height: 1.7;
    margin-bottom: 24px;
}

.ai-assist-features {
    margin-bottom: 24px;
}

.ai-assist-feature {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #303030;
    margin-bottom: 8px;
}

.ai-assist-feature svg {
    width: 16px;
    height: 16px;
    color: #4354A3;
    flex-shrink: 0;
    margin-top: 2px;
}

.ai-assist-image {
    flex: 0 0 280px;
}

.ai-assist-image img {
    width: 100%;
    border-radius: 12px;
}

/* ========== Flow Section ========== */
.flow {
    padding: 80px 0;
}

.flow .section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 16px;
}

.flow .section-subtitle {
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: #6D6D6D;
    margin-bottom: 48px;
}

.flow-steps {
    display: flex;
    justify-content: center;
    gap: 24px;
    align-items: flex-start;
}

.flow-step {
    text-align: center;
    flex: 0 0 200px;
}

.flow-step-icon {
    width: 100px;
    height: 100px;
    background: #86CAA5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.flow-step-icon svg {
    width: 48px;
    height: 48px;
    color: #1E1E1E;
}

.flow-step-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
}

.flow-step-description {
    font-size: 14px;
    font-weight: 500;
    color: #575757;
    line-height: 1.6;
}

.flow-arrow {
    display: flex;
    align-items: center;
    padding-top: 40px;
    color: #1E1E1E;
}

.flow-arrow svg {
    width: 32px;
    height: 32px;
}

/* ========== FAQ Section ========== */
.faq {
    padding: 80px 0;
}

.faq .section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 48px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 24px 28px;
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.faq-question::before {
    content: "";
    display: inline-block;
    width: 4px;
    min-width: 4px;
    height: 24px;
    background: #098842;
    border-radius: 2px;
    margin-top: 2px;
}

.faq-answer {
    font-size: 15px;
    font-weight: 400;
    color: #555;
    line-height: 1.8;
    padding-left: 16px;
    margin-bottom: 8px;
}

.faq-answer:last-child {
    margin-bottom: 0;
}

.faq-answer a {
    color: #5A86FF;
}

/* ========== Contact Section ========== */
.contact {
    background: #F4FFF4;
    padding: 80px 0;
}

.contact .section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 48px;
}

.contact-form-wrapper {
    background: #fff;
    border-radius: 32px;
    padding: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-row.full {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-label .required {
    color: #FF0000;
}

.form-input,
.form-select,
.form-textarea {
    padding: 16px;
    font-size: 16px;
    border: 2px solid #7A7A7A;
    border-radius: 6px;
    background: #FBFBFB;
    font-family: inherit;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #A4A4A4;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23717171' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    cursor: pointer;
}

.form-textarea {
    min-height: 160px;
    resize: vertical;
}

.form-privacy {
    font-size: 14px;
    color: #343434;
    margin-bottom: 24px;
}

.form-privacy a {
    color: #546BFF;
    text-decoration: underline;
}

.form-submit {
    text-align: center;
}

/* ========== Footer ========== */
.footer {
    background: #3E3E3E;
    padding: 60px 0 40px;
    color: #fff;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 48px;
}

.footer-brand {
    flex: 1;
    max-width: 400px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo img {
    height: 40px;
}

.footer-logo-img {
    filter: brightness(0) invert(1);
}

.footer-brand-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 16px;
}

.footer-brand-text {
    font-size: 14px;
    line-height: 1.8;
    color: #fff;
}

.footer-nav {
    display: flex;
    gap: 64px;
}

.footer-nav-section h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
}

.footer-nav-section ul {
    list-style: none;
    padding-left: 0;
}

.footer-nav-section li {
    margin-bottom: 8px;
}

.footer-nav-section a {
    font-size: 14px;
    color: #9F9F9F;
    transition: color 0.3s;
}

.footer-nav-section a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #E6E6E6;
    text-align: center;
    font-size: 14px;
    color: #9F9F9F;
}

/* ========== Premium Badge ========== */
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #E7E9EE;
    border-radius: 7px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 500;
    margin-bottom: 8px;
}

.premium-badge .star {
    color: #5483C7;
    font-size: 15px;
}

/* ========== Editor Preview Section ========== */
.editor-preview {
    padding: 40px 0 60px;
    text-align: center;
}

.editor-preview img {
    max-width: 700px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* ========== LaTeX Explanation ========== */
.latex-explanation {
    padding: 60px 0;
    background: #fff;
}

.latex-box {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border: 2px solid #000;
    border-radius: 29px;
    padding: 32px 40px;
    display: flex;
    gap: 32px;
    align-items: flex-start;
    box-shadow: 22px 18px 22px rgba(0, 0, 0, 0.15);
}

.latex-box-content {
    flex: 1;
}

.latex-box-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.latex-box-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 20px;
    background: #098842;
    border-radius: 2px;
}

.latex-box-text {
    font-size: 16px;
    color: #000;
    line-height: 1.8;
}

.latex-box-image {
    flex: 0 0 110px;
}

.latex-box-image img {
    width: 100%;
}

/* ========== Features Section (About Page) ========== */
.features {
    padding: 80px 0;
}

.features .section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 64px;
    line-height: 1.5;
}

.feature-item {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.feature-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.4;
}

.feature-description {
    font-size: 20px;
    font-weight: 600;
    color: #484848;
    line-height: 1.5;
}

.feature-image {
    flex: 1;
    max-width: 520px;
}

.feature-image img {
    width: 100%;
    border-radius: 8px;
}

.feature-image.shadow img {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ========== Templates Section ========== */
.templates {
    padding: 80px 0;
    background: #fff;
}

.templates-inner {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.templates-image {
    flex: 0 0 430px;
}

.templates-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.templates-content {
    flex: 1;
}

.templates-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.templates-description {
    font-size: 20px;
    font-weight: 600;
    color: #484848;
    line-height: 1.5;
}

/* ========== Integrations Section ========== */
.integrations {
    padding: 80px 0;
    background: #fff;
}

.integrations-inner {
    display: flex;
    gap: 48px;
    align-items: center;
}

.integrations-image {
    flex: 0 0 500px;
}

.integrations-image img {
    width: 100%;
}

.integrations-content {
    flex: 1;
}

.integrations-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.integrations-title-en {
    font-size: 14px;
    color: #777;
    margin-bottom: 16px;
}

.integrations-description {
    font-size: 20px;
    font-weight: 600;
    color: #484848;
    line-height: 1.5;
}

/* ========== CTA Section (About Page) ========== */
.cta {
    padding: 80px 0;
    background: #F4FFF4;
}

.cta .section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
}

.cta .section-description {
    text-align: center;
    font-size: 22px;
    font-weight: 500;
    color: #6D6D6D;
    line-height: 1.8;
    margin-bottom: 48px;
}

.cta-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.cta-plan {
    background: #fff;
    border-radius: 15px;
    padding: 24px;
    border: 2px solid #E9E9E9;
    display: flex;
    flex-direction: column;
}

.cta-plan.featured {
    border: 2px solid #4354A3;
}

.cta-plan-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
    min-height: 60px;
}

.cta-plan.featured .cta-plan-title {
    color: #4354A3;
    text-align: center;
}

.cta-plan:first-child .cta-plan-title {
    color: #626262;
}

.cta-plan-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 24px;
    flex: 1;
}

.cta-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #303030;
    line-height: 40px;
}

.cta-plan-features li svg {
    width: 20px;
    height: 20px;
    color: #4354A3;
    flex-shrink: 0;
    margin-top: 10px;
}

.cta-plan:first-child .cta-plan-features li {
    color: #464646;
}

.cta-plan-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.cta-plan-buttons .btn {
    width: 100%;
}

/* ========== Support Box (Plan Page) ========== */
.support-box {
    background: #fff;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    padding: 32px 40px;
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.support-box-image {
    flex: 0 0 100px;
}

.support-box-image img {
    width: 100px;
}

.support-box-content {
    flex: 1;
}

.support-box-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #098842;
}

.support-box-text {
    font-size: 16px;
    font-weight: 500;
    color: #565656;
    line-height: 1.6;
}

.support-box-button {
    flex: 0 0 auto;
}

.support-box-button .btn-contact {
    white-space: nowrap;
}

/* ========== Plan Table ========== */
.plan-table-wrapper {
    margin-bottom: 80px;
    overflow-x: auto;
}

.plan-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.plan-table th,
.plan-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid #E0E0E0;
    border-right: 1px solid #E0E0E0;
    font-size: 16px;
}

.plan-table th:last-child,
.plan-table td:last-child {
    border-right: none;
}

.plan-table thead th {
    background: #fff;
    font-weight: 600;
    vertical-align: top;
    padding: 16px;
}

.plan-table thead th:first-child {
    text-align: left;
}

.plan-table .plan-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.plan-table .plan-desc {
    font-size: 14px;
    font-weight: 600;
    color: #424242;
    line-height: 1.5;
    text-align: left;
}

.plan-table tbody tr:nth-child(odd) {
    background: #F4F5F6;
}

.plan-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
}

.plan-table .category-row {
    background: #098842 !important;
    color: #fff;
}

.plan-table .category-row td {
    font-weight: 600;
    text-align: left;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #86CAA5;
    border-radius: 50%;
}

.check-icon svg {
    width: 14px;
    height: 14px;
    color: #024023;
}

.cross-icon {
    color: #999;
    font-size: 18px;
}

/* ========== Premium Features Section (Plan Page) ========== */
.premium-features {
    padding: 80px 0;
    background: #fff;
}

.premium-features .section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: flex-start;
}

.premium-features .section-header svg {
    width: 28px;
    height: 28px;
    color: #02542D;
}

.premium-features .section-description {
    font-size: 18px;
    font-weight: 500;
    color: #484848;
    margin-bottom: 48px;
}

.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 48px 0;
    margin-bottom: 48px;
    padding-bottom: 48px;
    align-items: flex-start;
    border-bottom: 1px solid #000;
}

.feature-grid:last-child {
    border-bottom: none;
}

.feature-grid .feature-item {
    display: flex;
    flex-direction: column;
    width: calc(50% - 30px);
    margin-bottom: 0;
    align-self: flex-start;
}

.feature-grid .feature-item:nth-child(odd) {
    margin-right: 30px;
    padding-right: 30px;
    border-right: 1px solid #E0E0E0;
}

.feature-grid .feature-item:nth-child(even) {
    margin-left: 29px;
}

.feature-item-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-item-description {
    font-size: 20px;
    font-weight: 600;
    color: #484848;
    line-height: 1.5;
    margin-bottom: 16px;
}

.feature-item-image {
    margin-top: 16px;
}

.feature-item-image img {
    max-width: 100%;
    border-radius: 8px;
}

/* ========== Group Difference Section (Plan Page) ========== */
.group-difference {
    padding: 80px 0;
    background: #fff;
}

.group-difference .section-header {
    justify-content: center;
    gap: 12px;
}

.group-difference .section-header svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.group-difference .section-title {
    text-align: center;
}

.group-difference .section-description {
    text-align: center;
    margin-bottom: 48px;
}

.plan-comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.plan-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.plan-card-header img {
    width: 80px;
    height: auto;
}

.plan-card-title {
    font-size: 20px;
    font-weight: 600;
}

.plan-card-description {
    font-size: 16px;
    color: #484848;
    line-height: 1.6;
}

.difference-list {
    margin-top: 32px;
}

.difference-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #E0E0E0;
}

.difference-item:last-child {
    border-bottom: none;
}

.difference-icon {
    flex: 0 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.difference-icon svg {
    width: 24px;
    height: 24px;
    color: #098842;
}

.difference-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.difference-content p {
    font-size: 18px;
    color: #484848;
    line-height: 1.6;
}

.difference-content ul {
    margin-top: 12px;
}

/* ========== Admin Panel Section (Plan Page) ========== */
.admin-panel {
    padding: 80px 0;
    background: #fff;
}

.admin-panel .section-header {
    justify-content: flex-start;
    gap: 12px;
}

.admin-panel .section-header svg {
    width: 32px;
    height: 32px;
}

.admin-subsection {
    margin-bottom: 48px;
}

.admin-subsection-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.admin-subsection-description {
    font-size: 20px;
    font-weight: 600;
    color: #484848;
    line-height: 1.5;
    margin-bottom: 24px;
}

.admin-content {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.admin-content-text {
    flex: 1;
}

.admin-content-image {
    flex: 0 0 400px;
}

.admin-content-image img {
    width: 100%;
    border-radius: 8px;
}

/* Role Table */
.role-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
}

.role-table th,
.role-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #E0E0E0;
    font-size: 18px;
}

.role-table th {
    font-weight: 600;
    background: #F4F5F6;
}

.role-table td:first-child {
    font-weight: 600;
    width: 200px;
}

/* Report List */
.report-list {
    list-style: none;
    padding-left: 20px;
}

.report-list li {
    font-size: 18px;
    font-weight: 600;
    color: #484848;
    line-height: 1.8;
    position: relative;
    padding-left: 16px;
}

.report-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    background: #484848;
    border-radius: 50%;
}

/* ========== Commons Section (Plan Page) ========== */
.commons-section {
    padding: 80px 0;
    background: #fff;
}

.commons-section .section-header {
    margin-bottom: 24px;
    justify-content: flex-start;
    gap: 12px;
}

.commons-section .section-header svg {
    width: 32px;
    height: 32px;
}

.commons-description {
    font-size: 22px;
    font-weight: 500;
    color: #484848;
    line-height: 1.8;
}

/* ========== AI Assist Page ========== */
.hero-ai-page {
    background: #fff;
    text-align: center;
}

.hero-ai-page .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-ai-page .hero-title {
    text-align: center;
    max-width: 900px;
    color: #000;
}

.hero-ai-page .hero-description {
    text-align: center;
    max-width: 700px;
    color: #6D6D6D;
}

.hero-ai-page .hero-buttons {
    justify-content: center;
    margin-bottom: 40px;
}

.hero-ai-page .hero-image {
    max-width: 700px;
    width: 100%;
    flex: none;
}

.hero-ai-page .hero-image img {
    width: 100%;
    height: auto;
}

.hero-ai {
    padding: 80px 0 60px;
    text-align: center;
    background: #fff;
}

.hero-ai .hero-title {
    font-size: 36px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
}

.hero-ai .hero-description {
    font-size: 20px;
    color: rgba(0, 0, 0, 0.75);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ai .hero-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 56px;
}

.hero-ai .hero-image {
    max-width: 820px;
    margin: 0 auto;
}

.hero-ai .hero-image img {
    border-radius: 21px;
}

/* Feature Cards Section (AI Assist Page) */
.feature-cards-section {
    padding: 60px 0;
}

.feature-cards-ai {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card-ai {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.feature-card-ai-header {
    background: #4354A3;
    height: 9px;
}

.feature-card-ai-content {
    padding: 24px;
    text-align: center;
}

.feature-card-ai-icon {
    margin-bottom: 16px;
}

.feature-card-ai-icon svg {
    width: 48px;
    height: 48px;
    color: #65558F;
}

.feature-card-ai-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

/* Writefull Section */
.writefull-section {
    padding: 80px 0;
    background: #fff;
}

.writefull-header {
    text-align: center;
    margin-bottom: 60px;
}

.writefull-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
}

.writefull-subtitle {
    font-size: 18px;
    color: #6D6D6D;
}

/* Feature Row (Alternating Layout) */
.feature-row {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #E0E0E0;
}

.feature-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-row .feature-image {
    flex: 1;
    max-width: 50%;
}

.feature-row .feature-image img {
    width: 100%;
    border-radius: 8px;
}

.feature-row-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #000;
}

.feature-row-description {
    font-size: 20px;
    font-weight: 600;
    color: #484848;
    line-height: 1.35;
    margin-bottom: 16px;
}

.feature-row-list {
    list-style: none;
    padding-left: 0;
}

.feature-row-list li {
    font-size: 20px;
    font-weight: 600;
    color: #484848;
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.feature-row-list li:last-child {
    margin-bottom: 0;
}

.feature-row-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    background: #484848;
    border-radius: 50%;
}

/* AI Assist Reason Section */
.reason-section {
    padding: 80px 0;
    background: #fff;
}

.reason-section .section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 48px;
}

.reason-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 32px;
}

.reason-item {
    text-align: left;
}

.reason-item-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #000;
}

.reason-item-description {
    font-size: 16px;
    font-weight: 600;
    color: #3F3F3F;
    line-height: 1.6;
}

/* Activation Section */
.activation-section {
    padding: 80px 0;
    background: #fff;
}

.activation-section .section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
}

.activation-section .section-description {
    text-align: center;
    font-size: 22px;
    font-weight: 500;
    color: #303030;
    margin-bottom: 48px;
    line-height: 1.4;
}

.activation-section .section-description a {
    color: #4174FF;
}

.activation-image {
    text-align: center;
    margin-bottom: 48px;
}

.activation-image img {
    max-width: 700px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Access Check Section */
.access-section {
    padding: 60px 0;
    background: #F4FFF4;
}

.access-section .section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 24px;
}

.access-description {
    text-align: center;
    font-size: 22px;
    font-weight: 500;
    color: #303030;
    margin-bottom: 24px;
}

.access-list {
    list-style: none;
    padding-left: 0;
    max-width: 700px;
    margin: 0 auto;
}

.access-list li {
    font-size: 24px;
    font-weight: 600;
    color: #303030;
    line-height: 1.8;
    padding-left: 24px;
    position: relative;
}

.access-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: #303030;
    border-radius: 50%;
}

/* No Access Section */
.no-access-section {
    padding: 60px 0;
    background: #fff;
}

.no-access-section .section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 24px;
}

.no-access-description {
    text-align: center;
    font-size: 22px;
    font-weight: 500;
    color: #303030;
    margin-bottom: 32px;
}

.no-access-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto 40px;
}

.no-access-card {
    background: #fff;
    border: 1px solid #848484;
    border-radius: 15px;
    padding: 24px 28px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.no-access-card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #303030;
    line-height: 1.3;
}

.no-access-card-description {
    font-size: 16px;
    font-weight: 600;
    color: #303030;
    line-height: 1.4;
    margin-bottom: 20px;
    flex-grow: 1;
}

.no-access-card .btn {
    width: 100%;
    margin-top: auto;
}

.no-access-notes {
    max-width: 1000px;
    margin: 0 auto;
    font-size: 16px;
    font-weight: 600;
    color: #303030;
    line-height: 1.7;
}

/* ========== Overleaf独自ナビゲーション（親ヘッダー下） ========== */
.overleaf-navi {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

.overleaf-navi.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.overleaf-navi-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

/* ロゴ + バッジエリア */
.overleaf-navi-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.overleaf-navi-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.overleaf-navi-logo img {
    height: 80px;
    width: auto;
}

.overleaf-navi-subtitle {
    font-size: 12px;
    font-weight: 900;
    color: #333;
    white-space: nowrap;
    line-height: 1;
    text-align: center;
}

.overleaf-navi-badge {
    background: #FFF4D8;
    color: #DC5100;
    font-size: 16px;
    font-weight: 900;
    padding: 8px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ハンバーガーメニュー（SP用） */
.overleaf-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
}

.overleaf-hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
}

.overleaf-hamburger.is-active .overleaf-hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.overleaf-hamburger.is-active .overleaf-hamburger-line:nth-child(2) {
    opacity: 0;
}

.overleaf-hamburger.is-active .overleaf-hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ナビゲーションメニュー */
.overleaf-navi-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
    align-items: center;
}

.overleaf-navi-list a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    padding: 8px 0;
}

.overleaf-navi-list a:hover {
    color: #098842;
}

.overleaf-navi-list a.active {
    color: #098842;
    font-weight: 600;
}

.overleaf-navi-list .btn-primary-sm {
    background: #098842;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 6px;
    line-height: 1.5;
    font-size: 16px;
}

.overleaf-navi-list .btn-primary-sm:hover {
    background: #076832;
    color: #fff;
}

/* 固定ナビ用のスペーサー */
.overleaf-navi-spacer {
    display: none;
}

.overleaf-navi-spacer.is-active {
    display: block;
}

/* ========== Responsive ========== */
@media (max-width: 991px) {
    .overleaf-navi-inner {
        flex-wrap: wrap;
        padding: 12px 16px;
    }

    .overleaf-navi-brand {
        flex: 1;
        flex-wrap: wrap;
        gap: 8px;
    }

    .overleaf-navi-badge {
        display: none;
    }

    .overleaf-navi-logo img {
        height: 48px;
    }

    .overleaf-hamburger {
        display: flex;
    }

    .overleaf-navi-list {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 16px 0;
        gap: 0;
        border-top: 1px solid #e0e0e0;
        margin-top: 12px;
    }

    .overleaf-navi-list.is-open {
        display: flex;
    }

    .overleaf-navi-list li {
        width: 100%;
    }

    .overleaf-navi-list a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .overleaf-navi-list li:last-child a {
        border-bottom: none;
    }

    .overleaf-navi-list .btn-primary-sm {
        display: block;
        text-align: center;
        margin-top: 8px;
    }
}

@media (max-width: 600px) {
    .overleaf-navi-title img {
        height: 28px;
    }

    .overleaf-navi-subtitle {
        display: none;
    }
}

@media (max-width: 1024px) {
    .header-badge {
        display: none;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .feature-cards,
    .support-cards,
    .plan-cards,
    .cta-plans {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .flow-steps {
        flex-direction: column;
        align-items: center;
    }

    .flow-arrow {
        transform: rotate(90deg);
        padding: 16px 0;
    }

    .ai-assist-content {
        flex-direction: column;
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-nav {
        flex-wrap: wrap;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .feature-item,
    .feature-item:nth-child(odd) {
        flex-direction: column;
    }

    .feature-image {
        max-width: 100%;
    }

    .templates-inner {
        flex-direction: column;
    }

    .templates-image {
        flex: none;
        width: 100%;
        max-width: 500px;
    }

    .integrations-inner {
        flex-direction: column;
    }

    .integrations-image {
        flex: none;
        width: 100%;
        max-width: 500px;
    }

    .about-ai-assist-inner {
        flex-direction: column;
    }

    .about-ai-assist-image {
        flex: none;
        width: 100%;
        max-width: 400px;
    }

    .support-box {
        flex-direction: column;
        text-align: center;
    }

    .support-box-button {
        margin-top: 16px;
    }

    .feature-grid {
        flex-direction: column;
    }

    .feature-grid .feature-item {
        width: 100%;
    }

    .feature-grid .feature-item:nth-child(odd) {
        margin-right: 0;
        padding-right: 0;
        border-right: none;
    }

    .feature-grid .feature-item:nth-child(even) {
        margin-left: 0;
    }

    .plan-comparison {
        grid-template-columns: 1fr;
    }

    .admin-content {
        flex-direction: column;
    }

    .admin-content-image {
        flex: none;
        width: 100%;
        max-width: 400px;
    }

    .feature-cards-ai {
        grid-template-columns: 1fr;
    }

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
    }

    .feature-row .feature-image {
        max-width: 100%;
    }

    .reason-grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }

    .no-access-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .news-item {
        flex-wrap: wrap;
        gap: 4px 16px;
    }

    .news-date {
        flex-shrink: 0;
    }

    .news-category {
        flex-shrink: 0;
    }

    .news-title {
        width: 100%;
        margin-top: 4px;
    }

    .news-page-title {
        font-size: 28px;
    }

    .news-subtitle {
        font-size: 18px;
    }

    .filter-tabs {
        flex-wrap: wrap;
    }

    .hero-about .hero-title,
    .hero-page .hero-title,
    .hero-ai .hero-title {
        font-size: 24px;
    }

    .features .section-title {
        font-size: 24px;
    }

    .feature-title {
        font-size: 20px;
    }

    .latex-box {
        flex-direction: column;
        text-align: center;
    }

    .latex-box-image {
        order: -1;
    }

    .section-title {
        font-size: 24px;
    }

    .hero-ai .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .reason-grid-3col {
        grid-template-columns: 1fr;
    }
}
