*, *::before, *::after {
    box-sizing: border-box;
}
/* CSS変数定義 */
:root {
    --primary-color: #007bff;
    --primary-hover-color: #0056b3;
    --accent-color: #28a745;
    --accent-hover-color: #218838;
    --text-color-dark: #212529;
    --text-color-light: #f8f9fa;
    --background-color-light: #ffffff;
    --background-color-dark: #121212;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.05);

    --font-family-heading: 'Poppins', sans-serif;
    --font-family-body: 'Lato', sans-serif;

    --spacing-unit: 8px;
    --spacing-md: calc(var(--spacing-unit) * 2);
    --spacing-lg: calc(var(--spacing-unit) * 3);
    --spacing-xl: calc(var(--spacing-unit) * 4);
}

/* 基本的なスタイル */
body {
    font-family: var(--font-family-body);
    margin: 0;
    color: var(--text-color-dark);
    background-color: var(--background-color-light);
}

main {
    padding: 0;
}

h1, h2, h3 {
    font-family: var(--font-family-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover-color);
}

/* ヘッダー */
header {
    background-color: #ffffff; /* 透明度のない白に変更 */
    padding: var(--spacing-md) var(--spacing-xl);
    box-shadow: 0 2px 4px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color-dark);
    letter-spacing: -1.5px;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: var(--spacing-lg);
}

.nav-links a {
    color: var(--text-color-dark); /* 文字色を黒に */
    font-weight: 600; /* 少し太く */
    padding: var(--spacing-sm) 0;
    position: relative;
}

/* マウスホバー時の下線アニメーション */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}



/* ハンバーガーメニュー */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color-dark);
    margin: 5px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ヒーローセクション */
.hero-section {
    background-color: var(--background-color-dark);
    color: var(--text-color-light);
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: url('/static/images/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.04; /* 透明度を少し上げる */
    z-index: 1;
    filter: grayscale(100%) brightness(1.5);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #fff;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 1rem auto 2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.button-large {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff !important; /* Add !important to ensure color is applied */
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.button-large:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.5);
}

.button-large i {
    margin-right: 8px;
}

/* Specific CTA sections */
.cta-inline {
    margin-top: 2rem;
    text-align: center; /* 中央揃えを追加 */
}

.cta-section .button-large {
    margin-top: 1rem;
}

/* 共通セクションスタイル */
.features-section, .how-it-works-section, .testimonials-section, .cta-section {
    padding: 4rem 2rem;
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title.decorated {
    display: block;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0.5rem auto 0;
}

/* 特徴セクション */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background: var(--background-color-light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 8px 16px var(--shadow-color);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.feature-image-icon {
    width: 80px; /* アイコンのサイズを調整 */
    height: 80px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

/* 横長の情報カードセクション */
.info-card-section {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
    text-align: center; /* 中央揃えの基準 */
}


.info-card-container {
    max-width: 900px;
    margin: 0 auto;
    display: inline-grid; /* コンテナを中央に配置 */
    gap: 2rem;
    text-align: left; /* カード内のテキストは左揃えに戻す */
}

.info-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: var(--card-background-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 16px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.info-card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    width: 50px;
    text-align: center;
}

.info-card-content {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
}

.info-card-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: var(--text-color-dark);
}

.info-card-content p {
    margin: 0;
    color: var(--light-text-color);
    line-height: 1.6;
}

/* 認証ページ（ログイン・新規登録）共通スタイル */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 70px); /* ヘッダーの高さを引く */
    padding: 2rem;
    background-color: #f0f2f5;
}

.form-wrapper {
    background-color: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 420px;
}

.form-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.button-primary-full {
    width: 100%;
    padding: 0.9rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.button-primary-full:hover {
    background-color: var(--primary-hover-color);
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.form-footer a {
    font-weight: 600;
}

/* 新規登録ページの追加スタイル */
.form-section {
    margin-bottom: 2.5rem;
}

.form-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

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

.form-group-checkbox {
    display: flex;
    align-items: center;
    margin: 2rem 0;
}

.form-group-checkbox input {
    margin-right: 0.5rem;
    width: auto;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
}

.checkbox-item input {
    margin-right: 0.5rem;
    width: auto;
}

/* お客様の声セクション */
.testimonial-item {
    background: #f0f2f5;
}

/* 行動喚起セクション */
.cta-section {
    background-color: var(--text-color-dark);
    color: var(--text-color-light);
}

.cta-section h2 {
    color: var(--text-color-light);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        position: absolute; /* fixedから変更 */
        top: 68px; /* ヘッダーの高さに合わせる */
        left: 0;
        background-color: white !important; /* 背景を強制的に白に */
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding-bottom: var(--spacing-lg);
        
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
        pointer-events: none;
    }

    .nav-links.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links li {
        margin: 0 !important;
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block; /* リンク領域を広げる */
        padding: var(--spacing-md) 0;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-color-dark); /* 文字色を黒に */
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-links li a.button {
        background-color: transparent; /* 背景色をリセット */
        color: var(--text-color-dark); /* 文字色を黒に */
        padding: var(--spacing-md) 0; /* 他とパディングを合わせる */
    }

    .nav-links li a.button:hover {
        background-color: rgba(0,0,0,0.05); /* ホバー効果を少しつける */
    }

    .hamburger {
        display: block !important;
        z-index: 1001 !important;
    }
}

/* 利用の流れセクション（タイムライン） */
.how-it-works-section {
    background-color: #f0f2f5;
    padding: 4rem 2rem;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 2rem auto;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    opacity: 0.2;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::before {
    content: attr(data-step);
    position: absolute;
    width: 40px;
    height: 40px;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--background-color-light);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.timeline-item:nth-child(even)::before {
    left: -20px;
}

.timeline-content {
    padding: 2rem;
    background-color: var(--background-color-light);
    position: relative;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.12);
}

.timeline-content i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.timeline-item:nth-child(odd) {
    text-align: right;
}

.timeline-item:nth-child(even) {
    text-align: left;
}

.timeline-content h4 {
    margin-top: 0;
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .timeline-container::after {
        left: 20px;
    }
    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        padding-left: 70px;
        padding-right: 15px;
    }
    .timeline-item::before,
    .timeline-item:nth-child(even)::before {
        left: 0;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        text-align: left;
    }
}

/* Profile Page Layout */
.profile-container {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #f8f9fa;
}

.profile-sidebar {
    flex: 0 0 300px;
    position: sticky;
    top: 100px; /* Adjust based on header height */
}

.profile-main-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-card {
    padding: 2rem;
    text-align: center;
}

.profile-image-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 4px solid #fff;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
}

.profile-meta {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.profile-actions .button-primary-full {
    width: 100%;
}

.card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px var(--shadow-color);
    padding: 0;
    overflow: hidden;
}

.card-header {
    font-size: 1.2rem;
    margin: 0;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
}

.card-header i {
    margin-right: 1rem;
    color: var(--primary-color);
}

.profile-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.detail-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 600;
}

.detail-value {
    font-size: 1rem;
    font-weight: 500;
}

.pr-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.tag {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pr-section {
    padding: 1.5rem;
}

.pr-section h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.pr-section p {
    margin: 0;
    line-height: 1.6;
}

/* Responsive Profile Page */
@media (max-width: 992px) {
    .profile-container {
        flex-direction: column;
    }
    .profile-sidebar {
        position: static;
        width: 100%;
        flex: 0 0 auto;
    }
}
/* Profile Image Upload Alignment Fix */
.form-group-file label {
    display: block;
    margin-bottom: 0.5rem;
}

/* Account Menu Sidebar */
.account-menu {
    padding: 0;
}

.profile-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-image-wrapper-small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-summary-info {
    line-height: 1.3;
}

.profile-name-small {
    margin: 0;
    font-size: 1.2rem;
}

.view-profile-link {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
}
.view-profile-link:hover {
    text-decoration: underline;
}

.menu-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.menu-list li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.5rem;
    color: var(--text-color-dark);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

.menu-list li a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.menu-list li a .fa-fw {
    width: 1.25em; /* Font Awesome fixed width */
    text-align: center;
    color: #6c757d;
}

.menu-list li a:hover .fa-fw {
    color: var(--primary-color);
}

.menu-list .menu-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.5rem 0;
    padding: 0;
}

.menu-list .text-danger {
    color: #dc3545;
}

.menu-list .text-danger:hover {
    color: #a71d2a;
}

.menu-list .text-danger .fa-fw {
    color: #dc3545;
}
/* Danger Zone Styles */
.text-danger {
    color: #dc3545 !important;
}

.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    border-radius: 8px;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-danger strong {
    font-weight: 700;
}

.button-danger-full {
    width: 100%;
    padding: 0.9rem;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.button-danger-full:hover {
    background-color: #c82333;
}

/* Flash Message Styles */
#flash-message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    max-width: 350px;
}

.flash-message {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #fff;
    font-weight: 500;
    opacity: 1;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: translateX(0);
}

.flash-message.hide {
    opacity: 0;
    transform: translateX(20px);
}

.flash-message i {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.flash-message-text {
    flex-grow: 1;
}

.flash-message .close-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    margin-left: 1rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.flash-message .close-button:hover {
    opacity: 1;
}

.flash-success {
    background-color: #28a745; /* Green */
}

.flash-danger {
    background-color: #dc3545; /* Red */
}

.flash-info {
    background-color: #17a2b8; /* Blue */
}

.flash-warning {
    background-color: #ffc107; /* Yellow */
    color: #343a40; /* Dark text for warning */
}

.flash-warning i,
.flash-warning .close-button {
    color: #343a40;
}

/* Form Layout Improvements */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-row .half-width {
    flex: 1 1 calc(50% - 0.75rem); /* Adjust for gap */
}

@media (max-width: 768px) {
    .form-row .half-width {
        flex: 1 1 100%;
    }
}

.form-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
    text-align: left;
}

/* FAQ Section - Modern Style */
.faq-section {
    padding: 5rem 2rem; /* Increased padding */
    background-color: #f0f2f5; /* Slightly different background */
    text-align: center;
}

.faq-container {
    max-width: 750px; /* Slightly narrower */
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background-color: #fff;
    /* Remove border, use shadow for separation */
    border: none; 
    border-radius: 10px; /* Softer corners */
    margin-bottom: 1.25rem; /* Increased space */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.faq-item.active {
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.1);
    border-left: 4px solid var(--primary-color);
}


.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.75rem; /* Increased padding */
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-family-heading);
    font-size: 1.15rem; /* Slightly larger font */
    font-weight: 600;
    cursor: pointer;
    color: var(--text-color-dark);
    position: relative;
}

.faq-question i {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bouncy rotation */
    font-size: 1.2rem;
    color: var(--primary-color);
}

.faq-item.active .faq-question {
    color: var(--primary-color); /* Highlight active question */
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 0 1.75rem;
    line-height: 1.8; /* Increased line-height */
    color: #343a40; /* Softer text color */
    font-size: 1rem;
}

.faq-item.active .faq-answer {
    max-height: 400px; /* Increased max-height for longer content */
    padding: 0 1.75rem 1.75rem 1.75rem;
}

.faq-answer p {
    margin: 0;
}

.faq-answer p:not(:last-child) {
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: #fff;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: #6c757d;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem; /* リンク間のスペース */
    margin-bottom: 1.5rem; /* コピーライトとのスペース */
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-copyright p {
    margin: 0;
}/* About Page Styles - Refined */
.content-section.container {
    max-width: 1100px; /* 全画面表示のために最大幅を調整 */
    margin: 0 auto; /* 中央揃えを確実にする */
    padding: 2rem;
}

.about-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem; /* ギャップを広げる */
    align-items: flex-start;
    margin-top: 3rem;
    padding: 2rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.about-photo-column {
    flex: 1;
    min-width: 280px; /* 最小幅を調整 */
    text-align: center;
    position: sticky;
    top: 120px; /* スクロールしても追従 */
}

.profile-photo-large {
    width: 100%;
    max-width: 220px; /* サイズを調整 */
    height: auto;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2); /* 影を強調 */
    border: 6px solid #fff;
}

.profile-name {
    font-size: 2rem; /* サイズを大きく */
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.profile-title {
    font-size: 1.1rem;
    color: #555;
    font-weight: 500;
}

.about-text-column {
    flex: 2.5; /* テキストの割合を増やす */
    min-width: 300px;
}

.about-block {
    margin-bottom: 2.5rem;
}

.about-block h3 {
    font-size: 1.6rem;
    color: var(--text-color-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

.about-block p {
    line-height: 1.9; /* 行間を広げる */
    font-size: 1.05rem;
    color: #333;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .about-photo-column {
        position: static; /* スティッキーを解除 */
        margin-bottom: 2rem;
    }
}

/* Service Page Styles */
.service-purpose, .service-list, .service-comparison {
    margin-bottom: 3rem;
}

.card .card-body {
    padding: 2rem;
}

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

.service-item {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.service-item h3 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-item .service-icon {
    margin-right: 0.5rem;
}

.service-item p {
    line-height: 1.7;
    color: #333;
}

/* Price Page Styles */
.price-notice {
    margin-bottom: 3rem;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.price-notice h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price-notice strong {
    font-weight: 700;
}

.price-plans-container {
    margin-bottom: 3rem;
}

.plan-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.plan-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.plan-card.recommended {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
}

.plan-card.recommended .plan-header {
    background-color: var(--primary-color);
    color: white;
}

.plan-header {
    padding: 1.5rem;
    text-align: center;
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
}

.plan-header h3 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary-color);
}

.plan-card.recommended .plan-header h3 {
    color: white;
}

.plan-header .plan-description {
    font-size: 0.95rem;
    color: #6c757d;
    margin-top: 0.5rem;
    line-height: 1.5;
}

.plan-card.recommended .plan-header .plan-description {
    color: rgba(255,255,255,0.8);
}


.plan-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.price-details {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex-grow: 1;
}

.price-details li {
    font-size: 1.05rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-details li:last-child {
    border-bottom: none;
}

.price-details li strong {
    color: var(--text-color-dark);
}

.price-details .note {
    font-size: 0.85rem;
    color: #6c757d;
}

.button-secondary {
    display: inline-block;
    width: 100%;
    padding: 0.8rem 1.5rem;
    background-color: #f0f2f5;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
}

.button-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

.includes-excludes {
    margin-bottom: 3rem;
}

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

.detail-columns .column-item {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid #eee;
}

.detail-columns .column-item h3 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.detail-columns .column-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-columns .column-item li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.included-icon {
    color: var(--accent-color);
    font-size: 1.2em;
}

.excluded-icon {
    color: #dc3545; /* Red */
    font-size: 1.2em;
}

.payment-info {
    margin-bottom: 3rem;
}

.payment-info p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.payment-info p strong {
    color: var(--primary-color);
}

.payment-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.payment-info ul li {
    margin-bottom: 0.5rem;
}

/* Price Page - Minor Adjustments */
.price-details li {
    display: flex;
    justify-content: space-between;
    align-items: center; /* 中央揃えに戻す */
    flex-wrap: wrap; /* 小さい画面で折り返すように */
}

.price-details li .note {
    flex-basis: 100%; /* 注釈は全幅を占める */
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.price-details li strong {
    font-size: 1.2rem; /* 価格を少し大きく */
}

/* 最後のCTAボタンの中央揃え */
.contact-cta {
    text-align: center;
}

/* Price Page Responsive */
@media (max-width: 768px) {
    .plan-cards-grid {
        grid-template-columns: 1fr; /* 小さい画面では1列にする */
    }
    .plan-card.recommended {
        border-left: none; /* 小さい画面では左のボーダーを解除 */
    }
}

/* Plan Details Page Styles */
.plan-comparison-table {
    margin-bottom: 3rem;
    overflow-x: auto; /* 小さい画面で横スクロール可能に */
}

.plan-comparison-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* テーブルの最小幅を確保 */
}

.plan-comparison-table th,
.plan-comparison-table td {
    padding: 1.25rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.plan-comparison-table th {
    background-color: #f8f9fa;
    font-size: 1.1rem;
    color: var(--text-color-dark);
}

.plan-comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text-color-dark);
}

.check-mark {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.cross-mark {
    color: #dc3545;
    font-weight: bold;
    font-size: 1.2rem;
}

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

.summary-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.summary-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.summary-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-card li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.summary-card li::before {
    content: '✔';
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Plan Details Page - Responsive Table (Improved) */
@media (max-width: 768px) {
    .plan-comparison-table {
        overflow-x: auto; /* 必要に応じて横スクロールを許可 */
        -webkit-overflow-scrolling: touch; /* iOSでのスムーズなスクロール */
    }

    .plan-comparison-table table {
        width: 100%;
        min-width: 500px; /* ある程度の最小幅を維持しつつ、必要ならスクロール */
        display: block; /* テーブル全体がブロック要素として振る舞う */
    }

    .plan-comparison-table thead, .plan-comparison-table tbody, .plan-comparison-table th, .plan-comparison-table td, .plan-comparison-table tr {
        /* デフォルトのテーブル表示を維持しつつ、セルの内容を調整 */
    }

    .plan-comparison-table th, .plan-comparison-table td {
        white-space: normal; /* セル内のテキストを自動折り返し */
        word-break: break-word; /* 長い単語も折り返す */
        text-align: center;
    }
    
    .plan-comparison-table td:first-child { /* サービス内容の列 */
        text-align: left; /* 左揃えに戻す */
    }
}

/* Small Button Style */
.button-small {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white !important;
    border-radius: 5px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.button-small:hover {
    background-color: var(--primary-hover-color);
}

/* Blog Page Styles - No Image */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-post-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color); /* ボーダーを追加 */
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.blog-post-card .post-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-post-card .post-title {
    font-size: 1.4rem;
    color: var(--text-color-dark);
    margin-top: 0;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    font-weight: 700; /* 太字に */
}

.blog-post-card .post-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-card .post-excerpt {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-post-card .read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    margin-top: auto; /* 下部に配置 */
}

/* Blog Article Page Styles */
.blog-article-page {
    max-width: 800px; /* 記事の幅を制限 */
}

.blog-article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.blog-article-header .article-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color-dark);
}

.blog-article-header .article-meta {
    font-size: 1rem;
    color: #6c757d;
}

.blog-article-header .article-meta span i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.blog-article-content {
    line-height: 1.8;
    font-size: 1.05rem;
    color: #333;
}

.blog-article-content h1, .blog-article-content h2, .blog-article-content h3, .blog-article-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color-dark);
    line-height: 1.4;
}

.blog-article-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--primary-color-light);
    padding-bottom: 0.5rem;
}

.blog-article-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.blog-article-content p {
    margin-bottom: 1rem;
}

.blog-article-content ul, .blog-article-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.blog-article-content ul li, .blog-article-content ol li {
    margin-bottom: 0.5rem;
}

.blog-navigation {
    text-align: center;
    margin-top: 3rem;
}

/* Navbar Logo Styles */
.navbar .logo {
    display: flex;
    align-items: center;
    gap: 0.3rem; /* アイコンとテキストの間隔を狭める */
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color-dark); /* テキストの色を黒に */
    letter-spacing: -1.5px;
}

.navbar-logo-icon {
    height: 28px; /* テキストの高さに合わせて調整 */
    width: auto;
}

/* Campaign Banner on Hero Section */
.campaign-banner {
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Homepage Hero Section Campaign Highlight */
.campaign-highlight {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.campaign-highlight i {
    margin-right: 10px;
    font-size: 1.3rem;
    color: #ffc107; /* 輝くような色 */
}
