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

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

*, *::before, *::after {
    box-sizing: border-box;  /* 擬似要素も含めて統一 */
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 1rem = 10px */
    background-color: #dfe7ed; /* 両側の空白部分をグレーに */
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.8rem;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    max-width: 600px;
    margin: 0 auto;
    overflow-x: hidden;
}

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

/* ===========================
   Typography
   =========================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin: 0;  /* すべてのmarginをリセット */
}

/* モバイル版のみで改行を表示する汎用クラス */
.mobile-only {
    display: none;
}

/* デスクトップ版のみで表示する汎用クラス */
.desktop-only {
    display: inline;
}

h1 {
    font-size: 3.2rem;
}

h2 {
    font-size: 3.0rem;
}

h3 {
    font-size: 2.6rem;
}

/* ===========================
   Color Classes
   =========================== */

.text-green {
    color: #009523;
}

.text-red {
    color: #e60017;
}

.text-red-bold {
    color: #e60017;
    font-weight: 700;
}

.text-navy-bold {
    color: #1e3a8a;
    font-weight: 700;
}

.text-blue {
    color: #0057b3;
}

/* ===========================
   Container & Layout
   =========================== */

.container {
    padding: 0 2rem;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    color: #2c5f7a;
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0 0 3rem 0;  /* 標準的な下マージン */
}

/* section-titleのmarginは各セクションで個別に設定 */

/* ===========================
   Buttons & CTAs
   =========================== */

.cta-button {
    display: inline-block;
    padding: 1.5rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.6rem;
    text-align: center;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    margin: 1rem;
}

.cta-button.primary {
    background: linear-gradient(135deg, 
    #1fb1b9 0%,
    #3073df 20%, 
    #1e86dc 60%, 
    #6f3bd8 95%
    );
    color: white;
    box-shadow: none;
    padding: calc(1.5rem + 2px) 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: none;
    background: linear-gradient(135deg, 
    #1fb1b9 0%,
    #3073df 20%, 
    #1e86dc 60%, 
    #6f3bd8 95%
    );
}

/* ホバーエフェクトはJavaScript（GSAP）で制御 */

.cta-button.secondary {
    background: white;
    color: #4a90e2;
    border: 2px solid #4a90e2;
    text-align: center;
}

.cta-button.secondary:hover {
    background: #4a90e2;
    color: white;
}

.cta-button.large {
    padding: 2rem 2rem;
    font-size: 2.4rem;
}

.cta-button.primary.large {
    padding: calc(2rem + 2px) calc(2rem + 2px);
}

/* sub-textがあるボタン用の専用クラス */
.cta-button.primary.large.with-subtext {
    padding: 1rem calc(2rem + 2px);
}

.cta-button .sub-text {
    font-size: 2.2rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: -0.5rem;
    display: block;
}

/* ===========================
   1. Hero Section
   =========================== */

.hero {
    position: relative;
    height: 100vh;  /* フォールバック */
    height: 100dvh; /* PC版基準 */
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.hero-container {
    width: 100%;
    position: relative;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;  /* ヒーローセクションのサイズ（80vh）に合わせる */
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* 横幅いっぱいに表示、必要に応じて上下をクロップ */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;  /* ヒーローセクションのサイズに合わせる */
    background: rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.hero-logo {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 4;  /* オーバーレイとコンテンツより前面に表示 */
}

.hero-logo img {
    height: 65px;  /* ロゴの高さを指定 */
    width: auto;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0;
    color: white;
    height: 100vh;  /* フォールバック */
    height: 100dvh; /* PC版基準 */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;  /* コンテンツを下部に配置 */
    align-items: center;
}

.hero-text-overlay {
    position: relative;
    background: rgba(9, 9, 53, 0.35);
    padding: 1rem 0;
    width: 100%;
}

.hero-title {
    color: #57f957;
    font-size: 4.0rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.highlight-text {
    /* ハイライト効果なし - 通常テキストと同じ表示 */
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ヒーローセクションCTAボタンの光るアニメーション */
.hero-cta .cta-button {
    position: relative;
    overflow: hidden;
}

/* ボタンテキストを光の前面に表示 */

.hero-cta .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        transparent
    );
    transition: left 0.5s ease;
    z-index: 1;
}

.hero-cta .cta-button:hover::before {
    left: 100%;
}

.hero-cta .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: none;
    transition: all 0.3s ease;
}

/* スティッキーフッターCTAボタンの光るアニメーション */
.sticky-footer .cta-button.primary {
    position: relative;
    overflow: hidden;
    padding: calc(0.5rem + 2px) 6rem;
}

.sticky-footer .cta-button.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        transparent
    );
    transition: left 0.5s ease;
    z-index: 1;
}

.sticky-footer .cta-button.primary:hover::before {
    left: 100%;
}

.sticky-footer .cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: none;
    transition: all 0.3s ease;
}

/* ===========================
   導入実績セクション
   =========================== */

.social-proof-section {
    padding: 0.5rem 0;
    background: white;  /* 真っ白に変更 */
    text-align: center;
}

.social-proof-section .container {
    padding: 0;  /* 両サイドのpaddingを0に */
}

.social-proof-text {
    display: block;
    max-width: 30%; 
    height: auto;      /* 縦横比を維持 */
    margin: 8px auto;  /* 中央配置 + 下マージン */
    object-fit: contain;  /* 画像の縦横比を保持 */
}

.clinic-logos {
    overflow: hidden;
    width: 100%;
    height: 10dvh;
}

.clinic-logo-scroll {
    display: flex;
    gap: 2rem;  /* 画像間の間隔 */
    width: fit-content;  /* コンテンツに合わせて自動調整 */
    /* アニメーションはJavaScriptで動的に設定 */
}

.clinic-logo-scroll img {
    height: 10dvh;
    width: auto;  /* 縦横比を自然に保持 */
    object-fit: contain;  /* 縦横比を維持 */
    flex-shrink: 0;  /* 画像の収縮を防ぐ */
    flex-grow: 0;  /* 画像の拡大を防ぐ */
}

/* 動的に生成されるキーフレーム用のベース */
@keyframes clinic-scroll {
    0% {
        transform: translateX(0px);
    }
    100% {
        transform: translateX(var(--scroll-distance, -400px));
    }
}

/* ===========================
   2. Problems Section
   =========================== */

.problems {
    padding: 5rem 0 6rem 0;  /* 他のセクションと同じpadding設定 */
    background: #f4f8ff;  /* さわやかな淡い水色 */
    box-sizing: border-box;
}

.problems .container {
    width: 100%;
    max-width: 600px;
    padding: 0 2rem;
    box-sizing: border-box;
    /* 高さの固定設定を削除、自然な高さに */
}

.problems .section-title {
    margin: 0 0 3rem 0;  /* 下マージンのみ3rem */
    padding: 0;
    font-size: 3rem;
}


.problems-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    width: 100%;
    gap: 2.5rem;  /* カード間の均等な間隔 */
}

.problems-list > * {
    margin-block-start: 0;
    margin-block-end: 0;
}

.problem-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 100%;
    min-height: 7rem;  /* より適切な最小高さに調整 */
    box-sizing: border-box;
    margin: 0 !important; /* リセットCSSによるmarginを無効化 */
}

.problem-item i {
    color: #e74c3c;
    font-size: 2rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.problem-item p {
    margin: 0;  /* ブラウザデフォルトmarginを明示的にリセット */
    padding: 0; /* paddingも念のためリセット */
    line-height: 1.6;  /* 行の高さを統一 */
    flex: 1;  /* テキスト部分が残りのスペースを使用 */
}

/* ===========================
   3. Solution Section
   =========================== */

.solution {
    padding: 5rem 0;
    background: white;
}

.solution-content {
    text-align: center;
}

.before-after {
    display: flex;
    flex-direction: column;
    align-items: center;  /* 矢印をセンターに配置 */
    gap: 3rem;
    margin-bottom: 5rem;
}

.before, .after {
    flex: 1;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.before {
    background: #ffe5e5;
    border: 2px solid #ff6b6b;
}

.after {
    background: #e8f5e8;
    border: 2px solid #51cf66;
}

.before h3, .after h3 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.before p, .after p {
    font-size: 2rem;
}

.before img, .after img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
}

.arrow img {
    transform: rotate(90deg);
}

.solution-intro {
    text-align: center;
}

.solution-intro .logo {
    width: 90%;       /* コンテナ幅いっぱいに表示 */
    max-width: 90%;   /* コンテナからはみ出さない */
    height: auto;      /* 縦横比を維持 */
    margin: 0 auto 2rem;
}

.solution-description {
    font-size: 1.8rem;
    color: #666;
    font-weight: 500;
}

/* ===========================
   4. How It Works Section
   =========================== */

.how-it-works {
    padding: 5rem 0;
    background: #f4f8ff;  /* より淡い水色に統一 */
}

.demo-video {
    text-align: center;
    margin-bottom: 4rem;
}

.demo-video video {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    text-align: left;
    padding: 1rem 7rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.step-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4a90e2, #2c5f7a);
    color: white;
    border-radius: 50%;
    font-size: 2.0rem;
    font-weight: 900;
    margin-bottom: 0;
    flex-shrink: 0;
}

.step h3 {
    color: #2c5f7a;
    margin-bottom: 0;
    text-align: left;
}

.step p {
    color: #666;
    margin: 0 0 0 4rem;
    text-align: left;
}

/* YouTube Demo Video in How-it-works Section */
.demo-youtube-video {
    margin-top: 5rem;
    text-align: center;
}

.demo-youtube-video h3 {
    color: #2c5f7a;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
}

.demo-youtube-video h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #4a90e2, #2c5f7a);
    border-radius: 2px;
}

/* ===========================
   Spreadsheet Section
   =========================== */

.spreadsheet {
    padding: 6rem 0;
    background: white;
}

.spreadsheet-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.spreadsheet-image {
    margin-bottom: 3rem;
}

.spreadsheet-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.spreadsheet-description h3 {
    color: #2c5f7a;
    font-size: 2.6rem;
    margin-bottom: 2rem;
}

.spreadsheet-description p {
    color: #666;
    font-size: 1.8rem;
    margin-bottom: 3rem;
}

.feature-points {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.feature-point {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.feature-point i {
    color: #4a90e2;
    font-size: 2rem;
    width: 35px;
    text-align: center;
    flex-shrink: 0;
}

.feature-point span {
    color: #333;
    font-size: 1.8rem;
    font-weight: 500;
}

/* ===========================
   Chrome Extension Section
   =========================== */

.chrome-extension {
    padding: 6rem 0;
    background: #f4f8ff;
}

.chrome-extension-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.chrome-extension-image {
    margin-bottom: 3rem;
}

.chrome-extension-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.chrome-extension-description h3 {
    color: #2c5f7a;
    font-size: 2.6rem;
    margin-bottom: 2rem;
}

.chrome-extension-description p {
    color: #666;
    font-size: 1.8rem;
    margin-bottom: 3rem;
}

/* Chrome Extension Section用のfeature-pointsスタイル */
.chrome-extension .feature-point {
    background: white;  /* 淡い水色の背景に対して白いボックス */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Spreadsheet Section用のsecurity-infoスタイル */
.spreadsheet .security-info {
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.spreadsheet .security-info h3 {
    color: #2c5f7a;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.spreadsheet .security-info p {
    color: #666;
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.spreadsheet .security-logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.spreadsheet .security-logos img {
    height: 40px;
    opacity: 0.8;
}

/* ===========================
   5. Benefits Section
   =========================== */

.benefits {
    padding: 5rem 0;
    background: white;  /* chrome-extensionが淡い水色なので、こちらは白に */
}

.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.benefit-card {
    text-align: center;
    padding: 1rem 0 1rem 1rem;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* transition: transform 0.3s ease; */
}

/* .benefit-card:hover {
    transform: translateY(-5px);
} */

.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4a90e2, #2c5f7a);
    color: white;
    border-radius: 50%;
    font-size: 3rem;
    margin: 0 auto 2rem;
}

.benefit-card h3 {
    color: #2c5f7a;
    margin-bottom: 1.5rem;
}

.benefit-card p {
    color: #666;
    margin: 0;
}

/* ===========================
   6. Testimonials Section
   =========================== */

.testimonials {
    padding: 5rem 0;
    background: #f4f8ff;  /* より淡い水色に統一 */
}

.testimonial-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 5rem;
}

.testimonial-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-profile {
    flex: 1;
}

.doctor-name {
    font-size: 2rem;
    font-weight: 700;
    color: #2c5f7a;
    margin: 0 0 0.5rem 0;
}

.clinic-name {
    font-size: 1.8rem;
    color: #4a90e2;
    font-weight: 600;
    margin: 0;
}

.testimonial-content {
    margin-top: 1.5rem;
}

.testimonial-content p {
    font-size: 1.6rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.testimonial-cta {
    text-align: center;
    margin-top: 0;
}

/* インタビュー動画 */
.interview-video {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 2rem;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 アスペクト比 */
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===========================
   7. USP Section
   =========================== */

.usp {
    padding: 6rem 0;
    background: white;
}

.usp-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.usp-card {
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.usp-card h3 {
    color: #2c5f7a;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.usp-card h3 i {
    color: #4a90e2;
}

.usp-card p {
    color: #666;
    margin-bottom: 2rem;
}

.comparison-table {
    overflow-x: auto;
    margin-top: 2rem;
    padding: 3px;
    border-radius: 12px;
}

.comparison-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 10px;
    border: 1px solid #2c5f7a;
    margin: 0;
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem 1rem;
    text-align: center;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    border-left: none;
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table th {
    background: #f8f9fa;
    font-weight: 700;
    color: #2c5f7a;
}

.comparison-table tr:first-child th:first-child {
    border-top-left-radius: 10px;
}

.comparison-table tr:first-child th:last-child {
    border-top-right-radius: 10px;
}

.comparison-table .highlight {
    background: #e8f5e8;
    color: #2c5f7a;
    font-weight: 700;
}

.usp-card img {
    width: 100%;
    max-width: 300px;
    margin: 2rem auto 0;
    border-radius: 10px;
}

/* ===========================
   8. Pricing Section
   =========================== */

.pricing {
    padding: 6rem 0;
    background: #f4f8ff;  /* より淡い水色に統一 */
}

.pricing-card {
    background: white;
    padding: 4rem 1rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
    border: 3px solid #4a90e2;
}

.price-main {
    margin-bottom: 3rem;
}

.price-label {
    display: block;
    background: #e74c3c;
    color: white;
    padding: 0.5rem 2rem;
    border-radius: 25px;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
}

.price-amount {
    display: block;
    font-size: 4rem;
    font-weight: 900;
    color: #2c5f7a;
    margin-bottom: 0.5rem;
}

.original-price {
    display: block;
    color: #999;
    text-decoration: line-through;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.price-note {
    display: block;
    color: #666;
    font-size: 1.4rem;
}

.included-items {
    margin-bottom: 3rem;
}

.included-items h3 {
    color: #2c5f7a;
    margin-bottom: 2rem;
}

.items-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.item {
    text-align: center;
}

.item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 auto 1rem;
}

.item p {
    font-size: 1.4rem;
    color: #666;
    margin: 0;
}

.running-cost {
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.running-cost p {
    margin-bottom: 0.5rem;
}

/* ===========================
   9. FAQ Section
   =========================== */

.faq {
    padding: 6rem 0;
    background: white;
}

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

.faq-item {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    padding: 2rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c5f7a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(74, 144, 226, 0.1);
}

.faq-question i {
    transition: transform 0.3s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 2rem 0;
    color: #666;
    margin: 0;
}

.faq-reference-links {
    padding: 0 2rem 2rem;
}

.faq-reference-links p {
    font-size: 1.6rem;
    line-height: 1.6;
    color: #666;
    margin: 0 0 0.5rem 0;
    padding: 0;
}

.faq-reference-links ul {
    margin: 0;
    padding-left: 1.5rem;
}

.faq-reference-links li {
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.faq-reference-links a {
    color: #0066cc;
    text-decoration: underline;
    font-size: 1.6rem;
}

.faq-reference-links a:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* ===========================
   10. Closing Section
   =========================== */

.closing {
    padding: 6rem 0;
    background: linear-gradient(135deg, #2c5f7a, #4a90e2);
    color: white;
    text-align: center;
}



.closing .section-title {
    color: white;
}

.closing-text {
    font-size: 1.8rem;
    margin-bottom: 4rem;
    opacity: 0.95;
}

.closing-cta {
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

/* closing-section専用：ボタンのスタイル */
.closing-cta .cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* closing-section専用：primaryボタンの左右余白を広く */
.closing-cta .cta-button.primary.large {
    padding: calc(2rem + 2px);
    position: relative;
    overflow: hidden;
}

/* closing-section専用：primaryボタンをオレンジグラデーションに */
.closing .cta-button.primary {
    background: linear-gradient(135deg, 
    #dd5500 0%,
    #ee6600 15%,
    #ff7700 30%,
    #ff8800 50%,
    #ee6600 70%,
    #dd5500 85%,
    #cc4400 100%
    );
}

.closing .cta-button.primary:hover {
    background: linear-gradient(135deg, 
    #ee6600 0%,
    #ff7700 15%,
    #ff8800 30%,
    #ff9900 50%,
    #ff7700 70%,
    #ee6600 85%,
    #dd5500 100%
    );
}

/* ボタンテキストを光の前面に表示 */
.closing-cta .cta-button.primary {
    position: relative;
    z-index: 2;
}

/* closing-sectionCTAボタンの光るアニメーション */
.closing-cta .cta-button.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        transparent
    );
    transition: left 0.5s ease;
    z-index: 1;
}

.closing-cta .cta-button.primary:hover::before {
    left: 100%;
}

.closing-cta .cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: none;
    transition: all 0.3s ease;
}

.contact-info {
    opacity: 0.9;
    padding: 0 0 0 10rem;
}

.contact-info h4{
    text-align: left;
}


.contact-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    font-size: 1.6rem;
}

.contact-info i {
    font-size: 2.0rem;
}

.contact-info a {
    color: #ffffff;
    text-decoration: underline;
    transition: color 0.3s ease;
    font-size: 1.6rem;
}

.contact-info a:hover {
    color: #000;
    text-decoration: underline;
}

.legal-links {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 1.2rem;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.legal-links .separator {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0.5rem;
}

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

.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);  /* 初期状態で非表示 */
    width: 100%;
    max-width: 600px;
    background: white;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border-top: 2px solid #4a90e2;
    transition: transform 0.3s ease;  /* スムーズなアニメーション */
}

.sticky-footer-content {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    position: relative;
    min-height: 60px;
    margin: 0;
}

.sticky-footer .cta-button {
    font-size: 2.0rem;
    padding: 0.5rem 2.5rem;
    flex: none;
    min-width: 200px;
    max-width: 300px;
    box-sizing: border-box;
    white-space: nowrap;
    text-align: center;
}

/* ===========================
   Modal Styles
   =========================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;  /* フォールバック */
    max-height: 90dvh; /* モバイル最適化 */
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 3rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-title {
    color: #2c5f7a;
    margin-bottom: 2rem;
    text-align: center;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 700;
    color: #2c5f7a;
    margin-bottom: 0.5rem;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    padding: 1.2rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.6rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

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

@media (min-width: 480px) {
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }

    .closing-cta {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }
}



@media (max-width: 768px) {
    /* スマホ版ではアドレスバー縮小時のジャンプを避けるため80svhを使用 */
    .hero {
        height: 80vh;  /* フォールバック */
        height: 80svh; /* 安定したビューポート高さ */
    }

    .hero-content {
        height: 80vh;  /* フォールバック */
        height: 80svh; /* 安定したビューポート高さ */
    }

    .social-proof-text {
        max-width: 20vh;  /* スマホ版では20vhに調整 */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-logo {
        top: 1.5rem;
        left: 1rem;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-subtitle {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .cta-button {
        padding: 1.2rem 2rem;
        font-size: 1.4rem;
    }

    .cta-button.large {
        padding: 1.5rem 2.5rem;
        font-size: 2.0rem;
    }

    .sticky-footer .cta-button {
        font-size: 2.0rem;
        padding: 1rem 1.2rem;
        max-width: 170px;
        min-width: 150px;
    }

    .sticky-footer .cta-button.primary {
        padding: calc(1rem + 2px) 1.2rem;
    }

    .sticky-footer-content {
        gap: 1rem;
        padding: 0.5rem;
    }

    .sticky-footer .cta-button {
        white-space: nowrap;
        line-height: 1.2;
    }

    .price-amount {
        font-size: 3.2rem;
    }

    .modal-content {
        padding: 2rem;
    }

    /* Spreadsheet & Chrome Extension Section Mobile */
    .spreadsheet-description h3,
    .chrome-extension-description h3 {
        font-size: 2.2rem;
    }

    .spreadsheet-description p,
    .chrome-extension-description p {
        font-size: 1.6rem;
    }

    .feature-point {
        padding: 1rem;
        gap: 1rem;
    }

    .feature-point i {
        font-size: 1.8rem;
        width: 30px;
    }

    .feature-point span {
        font-size: 2.0rem;
    }

    /* Testimonial Section Mobile */
    .testimonial-header {
        gap: 1.5rem;
    }

    .testimonial-card img {
        width: 60px;
        height: 60px;
    }


    .testimonial-content p {
        font-size: 1.6rem;
    }

    /* インタビュー動画 モバイル */
    .interview-video {
        padding: 0 1rem;
    }

    .usp-card {
        padding: 3rem 0.5rem;
     }

    .usp-card h3 {
        font-size: 2.2rem;
    }

    .usp-card p {
        font-size: 1.6rem;
    }



    /* Problems Section Mobile - section-title を一回り小さく */
    .problems .section-title {
        font-size: 2rem;
    }

    .problems .container {
        padding: 0 1.5rem;
    }

    /* モバイル版のみで改行を表示する汎用クラス */
    .mobile-only {
        display: inline;
    }
    
    .solution-description {
        font-size: 1.6rem;
    }


    /* How-it-works Section Mobile - step padding を調整 */
    .step {
        padding: 1rem 0 1rem 2rem;
    }

    /* Demo YouTube Video Mobile */
    .demo-youtube-video {
        margin-top: 3rem;
    }

    .demo-youtube-video h3 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }

    .demo-youtube-video h3::after {
        width: 40px;
        height: 2px;
    }

    /* Table Mobile - 全体的にフォントサイズを小さく */
    .comparison-table th,
    .comparison-table td {
        font-size: 1.4rem;
        padding: 1rem 0.5rem;
    }

    .step p {
        margin: 0;
    }

    /* Closing Section Mobile - CTAボタン間の隙間を狭く */
    .closing-cta {
        gap: 1rem;
    }

    /* Contact Info Mobile - 左側の余白を調整 */
    .contact-info {
        padding: 0 5rem 0 5rem;
    }
    
    /* Legal Links Mobile */
    .legal-links {
        margin-top: 2rem;
        padding-top: 1.5rem;
        font-size: 1.1rem;
    }

    .legal-links a {
        padding: 0.3rem 0.5rem;
    }

    .legal-links .separator {
        margin: 0 0.3rem;
    }
    
    /* デスクトップ版のみで表示する汎用クラス - モバイル版では非表示 */
    .desktop-only {
        display: none;
    }

    /* Reviews Page Mobile - page-subtitle を左寄せ */
    .page-title-section .page-subtitle {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }

    /* Reviews Page Mobile - review-rating を中央揃え */
    .review-rating {
        justify-content: center;
    }
    
    /* クリニックロゴスクロールはJavaScriptで動的制御するため、固定制約なし */
    
    .faq-answer p {
        padding: 0 2rem 0;
        color: #666;
        margin: 0;
    }

    .important-notes .note-text {
        font-size: 1.6rem;
    }


}

/* ===========================
   Animation Classes
   =========================== */

.slide-in-top {
    opacity: 0;
    transform: translateY(-50px);
    transition: all 0.8s ease;
}

.slide-in-top.animate {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right.fast {
    transition: all 0.4s ease;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.scale-in.animate {
    opacity: 1;
    transform: scale(1);
}

/* ===========================
   Reviews Page Styles
   =========================== */

.reviews-header {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.reviews-logo {
    height: 50px;
    width: auto;
    display: block;
}

.reviews-nav .nav-link {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.6rem;
    transition: color 0.3s ease;
}

.reviews-nav .nav-link:hover {
    color: #2c5f7a;
}

.reviews-main {
    padding: 4rem 0 0 0;
    background: #f8f9fa;
}

.reviews-intro {
    text-align: center;
    margin-bottom: 6rem;
}

.reviews-title {
    font-size: 3.6rem;
    color: #2c5f7a;
    margin-bottom: 2rem;
    font-weight: 700;
}

.reviews-subtitle {
    font-size: 1.8rem;
    color: #666;
    line-height: 1.6;
}

/* Interview Videos Section */
.interview-videos {
    margin-bottom: 8rem;
    padding: 6rem 0;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-card iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
    border: none;
}

.video-placeholder {
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f4f8ff;
    padding: 3rem 2rem;
    text-align: center;
}

.video-placeholder i {
    font-size: 4rem;
    color: #4a90e2;
    margin-bottom: 1rem;
}

.video-placeholder p {
    font-size: 1.6rem;
    color: #666;
    margin-bottom: 1rem;
}

.video-placeholder small {
    font-size: 1.4rem;
    color: #999;
    line-height: 1.4;
}

/* Detailed Reviews Section */
.detailed-reviews {
    margin-bottom: 8rem;
    padding: 4rem 0;
    background: #ffffff;
}

.review-cards {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 4rem;
}

.review-card {
    background: white;
    border-radius: 20px;
    padding: 4rem 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid #f8f9fa;
    transition: all 0.3s ease;
}

.review-card:hover {
    border-color: #4a90e2;
    transform: translateY(-3px);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f8f9fa;
}

.review-header img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.review-header img.img-top-align {
    object-position: top;
}

.review-header img.clinic-logo {
    border-radius: 0;
    object-fit: contain;
    object-position: left center;
    padding: 1rem;
}

.review-profile {
    flex: 1;
}

.review-profile .doctor-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c5f7a;
    margin: 0 0 0.5rem 0;
}

.review-profile .clinic-name {
    font-size: 1.6rem;
    color: #4a90e2;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.review-rating {
    display: flex;
    gap: 0.5rem;
}

.review-rating i {
    color: #ffd700;
    font-size: 1.8rem;
}

.review-content h4 {
    color: #2c5f7a;
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    font-weight: 700;
}

.review-content p {
    color: #666;
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.review-content ul {
    list-style: none;
    padding: 0;
}

.review-content li {
    color: #666;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.review-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4a90e2;
    font-weight: bold;
}

/* Reviews Summary Section */
.reviews-summary {
    margin-bottom: 6rem;
    padding: 4rem 0;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.summary-text {
    background: white;
    margin: 1.5rem;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.summary-text p {
    color: #666;
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.summary-text p:last-child {
    margin-bottom: 0;
}

/* Reviews CTA Section */
.reviews-cta {
    text-align: center;
    padding: 6rem 0;
    background: linear-gradient(135deg, #2c5f7a, #4a90e2);
    border-radius: 20px;
    color: white;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: white;
}

.cta-content p {
    font-size: 1.8rem;
    opacity: 0.9;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .reviews-header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .reviews-title {
        font-size: 2.8rem;
    }

    .reviews-subtitle {
        font-size: 1.6rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .review-header {
        flex-direction: column;
        text-align: center;
    }

    .review-header img {
        width: 80px;
        height: 80px;
    }



    .cta-content h2 {
        font-size: 2.4rem;
    }

    .cta-content p {
        font-size: 1.6rem;
    }
}

/* ===========================
   Utilities
   =========================== */

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

.hidden {
    display: none;
}

.no-scroll {
    overflow: hidden;
}

/* ===========================
   推奨環境ページ専用スタイル
   =========================== */

/* ヘッダー */
.header {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.header-logo img {
    height: 40px;
    width: auto;
}

.header-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #2c5f7a;
    font-weight: 500;
    font-size: 1.6rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #4a90e2;
}

/* メインコンテンツ */
.main-content {
    padding-top: 0;
}

/* ページタイトルセクション */
.page-title-section {
    background: #ffffff;
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.page-title {
    color: #2c5f7a;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    color: #666;
    font-size: 1.8rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* 基本要件セクション */
.basic-requirements {
    padding: 4rem 0;
    background: #f8f9fa;
}

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

.requirement-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.requirement-icon {
    font-size: 3rem;
    color: #4a90e2;
    margin-bottom: 1rem;
}

.requirement-card h3 {
    color: #2c5f7a;
    margin-bottom: 1rem;
    font-size: 2rem;
}

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

.requirement-card li {
    padding: 0.5rem 0;
    color: #666;
    font-size: 1.6rem;
}

.requirement-card .note {
    color: #e60017;
    font-size: 1.4rem;
}

/* インターネット接続要件 */
.internet-requirements {
    padding: 4rem 0;
    background: #ffffff;
}

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

.internet-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.internet-card h3 {
    color: #2c5f7a;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.internet-card h3 i {
    color: #4a90e2;
    margin-right: 1rem;
}

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

.internet-card li {
    padding: 0.5rem 0;
    color: #666;
    font-size: 1.6rem;
}

/* 電子カルテシステム対応 */
.emr-compatibility {
    padding: 4rem 0;
    background: #f8f9fa;
}

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

.emr-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}

.emr-card.recommended {
    border-color: #4a90e2;
    background: linear-gradient(135deg, #f8f9fa, #e3f2fd);
}

.emr-card h3 {
    color: #2c5f7a;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.emr-card h3 i {
    color: #4a90e2;
    margin-right: 1rem;
}

.compatibility-status {
    margin-bottom: 1rem;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1.4rem;
    font-weight: 600;
    display: inline-block;
}

.status-badge.excellent {
    background: #4caf50;
    color: white;
}

.status-badge.good {
    background: #2196f3;
    color: white;
}

.emr-card p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

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

.emr-card li {
    padding: 0.3rem 0;
    color: #666;
    font-size: 1.5rem;
}

.emr-card li::before {
    content: "✓";
    color: #4caf50;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* 推奨ハードウェア */
.recommended-hardware {
    padding: 4rem 0;
    background: #ffffff;
}

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

.config-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.config-card.premium {
    border-color: #ffc107;
    background: linear-gradient(135deg, #ffffff, #fff8e1);
}

.config-card h3 {
    color: #2c5f7a;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.config-card h3 i {
    color: #ffc107;
    margin-right: 1rem;
}

.config-card.premium h3 i {
    color: #ff9800;
}

.config-specs ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.config-specs li {
    padding: 0.5rem 0;
    color: #666;
    font-size: 1.6rem;
}

.config-benefits p {
    color: #666;
    font-size: 1.5rem;
    margin: 0.3rem 0;
}

.config-benefits i {
    color: #4caf50;
    margin-right: 0.5rem;
}

/* 注意事項 */
.important-notes {
    padding: 4rem 0;
    background: #f8f9fa;
}

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

.note-card {
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.note-card.warning {
    background: #ffebee;
    border-color: #f44336;
}

.note-card.info {
    background: #e3f2fd;
    border-color: #2196f3;
}

.note-card h3 {
    color: #2c5f7a;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.note-card.warning h3 i {
    color: #f44336;
    margin-right: 1rem;
}

.note-card.info h3 i {
    color: #2196f3;
    margin-right: 1rem;
}

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

.note-card li {
    padding: 0.5rem 0;
    color: #666;
    font-size: 1.6rem;
}

.note-card.warning li::before {
    content: "×";
    color: #f44336;
    font-weight: bold;
    margin-right: 0.5rem;
}

.note-card.info li::before {
    content: "!";
    color: #2196f3;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* サポート情報 */
.support-info {
    padding: 4rem 0;
    background: #ffffff;
}

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

.support-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.support-card h3 {
    color: #2c5f7a;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.support-card h3 i {
    color: #4a90e2;
    margin-right: 1rem;
}

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

.support-card li {
    padding: 0.5rem 0;
    color: #666;
    font-size: 1.6rem;
}

.support-card li::before {
    content: "✓";
    color: #4caf50;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* CTA セクション */
.cta-section {
    padding: 4rem 0;
    background: #f8f9fa;
    text-align: center;
}

.cta-text {
    color: #666;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* フッター */
.footer {
    background: #2c5f7a;
    color: #ffffff;
    padding: 3rem 0 1rem;
}

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

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

.footer-logo img {
    height: 40px;
    width: auto;
}

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

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.6rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4a90e2;
}

.footer-contact p {
    margin: 0.5rem 0;
    font-size: 1.6rem;
}

.footer-contact i {
    margin-right: 0.5rem;
    color: #4a90e2;
}

.footer-contact a {
    color: #ffffff;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #4a90e2;
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a90e2;
    color: #ccc;
    font-size: 1.4rem;
}

/* FAQ用のリンクボタン */
.faq-link-button {

    text-align: center;
}

.cta-button.small {
    padding: 1rem 2rem;
    font-size: 1.8rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .header-nav {
        gap: 1rem;
    }

    .page-title {
        font-size: 2.8rem;
    }

    .requirements-grid,
    .internet-content,
    .emr-grid,
    .hardware-configurations,
    .notes-grid,
    .support-content {
        grid-template-columns: 1fr;
    }
    
    .spreadsheet .security-info {
        padding: 2rem 1.5rem;
    }

    .spreadsheet .security-info h3 {
        font-size: 2.5rem;
    }


    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

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

.page-footer {
    background-color: #f5f5f5;
    padding: 2rem 0;
    margin-top: 0;
}

.page-footer .container {
    padding: 0 2rem;
}

.footer-links {
    text-align: center;
    font-size: 1.4rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #333;
}

.footer-links .separator {
    color: #ccc;
    margin: 0 0.5rem;
}

@media (max-width: 480px) {
    .page-footer {
        padding: 1.5rem 0;
    }
    
    .footer-links {
        font-size: 1.2rem;
    }
    
    .footer-links a {
        padding: 0.3rem 0.5rem;
    }
    
    .footer-links .separator {
        margin: 0 0.3rem;
    }
}

/* ===========================
   Policy & Terms Pages
   =========================== */

.privacy-policy-content,
.tokutei-syotorihiki-content {
    padding: 4rem 0;
    background: #ffffff;
}

.policy-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.policy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.policy-section h2 {
    color: #2c5f7a;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid #4a90e2;
}

.policy-section h3 {
    color: #2c5f7a;
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.policy-section h3 i {
    color: #4a90e2;
    font-size: 1.6rem;
}

.policy-section p {
    color: #666;
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.policy-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.policy-list li {
    color: #666;
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    padding-left: 2rem;
    position: relative;
}

.policy-list li::before {
    content: "•";
    color: #4a90e2;
    font-weight: bold;
    position: absolute;
    left: 0.5rem;
}

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

.sub-list li {
    padding-left: 1.5rem;
}

.sub-list li::before {
    content: "− ";
    color: #999;
}

.contact-details {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 1rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: #4a90e2;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* 特定商取引法のテーブルスタイル */
.tokutei-table {
    margin-bottom: 3rem;
}

.terms-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.terms-table th,
.terms-table td {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.terms-table th {
    background: #f8f9fa;
    color: #2c5f7a;
    font-weight: 700;
    font-size: 1.6rem;
    width: 30%;
    vertical-align: top;
}

.terms-table td {
    color: #666;
    font-size: 1.6rem;
    line-height: 1.6;
}

.terms-table tr:last-child th,
.terms-table tr:last-child td {
    border-bottom: none;
}

.terms-table a {
    color: #4a90e2;
    text-decoration: none;
}

.terms-table a:hover {
    text-decoration: underline;
}

.return-policy {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid #e9ecef;
}

.important-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 2rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.important-note h3 {
    color: #856404;
}

.important-note h3 i {
    color: #f39c12;
}

@media (max-width: 768px) {
    .terms-table th,
    .terms-table td {
        padding: 1rem;
        font-size: 1.4rem;
    }
    
    .terms-table th {
        width: 35%;
    }
    
    .policy-section h2 {
        font-size: 2rem;
    }
    
    .policy-section h3 {
        font-size: 1.6rem;
    }
    
    .policy-section p,
    .policy-list li {
        font-size: 1.4rem;
    }
    
    .contact-details,
    .return-policy,
    .important-note {
        padding: 1.5rem;
    }
}