/* ============================================================
   RMMS common.css
   リセット / CSS変数 / ヘッダー / フッター / 共通コンポーネント
   ============================================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.8;
    color: var(--color-dark-gray);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-vivid-blue); text-decoration: none; transition: color var(--transition-base); }
a:hover { color: var(--color-deep-blue); }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* --- CSS Variables --- */
:root {
    --color-vivid-blue: #2563EB;
    --color-deep-blue: #1E40AF;
    --color-navy: #1E3A5F;
    --color-green: #10B981;
    --color-orange: #F97316;
    --color-dark-gray: #1F2937;
    --color-medium-gray: #6B7280;
    --color-light-gray: #F3F4F6;
    --color-white: #FFFFFF;
    --color-line-green: #06C755;
    --font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --content-max-width: 1200px;
    --content-padding: 20px;
    --transition-base: 0.3s ease;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.4;
}
h1 { font-size: 24px; }
h2 { font-size: 20px; margin-bottom: 1em; }
h3 { font-size: 18px; margin-bottom: 0.8em; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

@media (min-width: 1024px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }
}

/* --- Container --- */
.container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 var(--content-padding);
}

/* --- Section backgrounds --- */
.section { padding: 60px 0; }
.section--white { background: var(--color-white); }
.section--gray { background: var(--color-light-gray); }

@media (min-width: 1024px) {
    .section { padding: 80px 0; }
}

/* ============================================================
   Header
   ============================================================ */
.header {
    background: var(--color-white);
    border-bottom: 1px solid #E5E7EB;
    position: relative;
    z-index: 100;
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 12px var(--content-padding);
}
.header__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--color-navy);
    font-weight: 700;
    font-size: 20px;
}
.header__logo-mark {
    width: 36px;
    height: 36px;
    background: var(--color-vivid-blue);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
}

/* Navigation */
.header__nav { display: none; }
.header__nav.is-open { display: block; }

@media (min-width: 1024px) {
    .header {
        position: sticky;
        top: 0;
    }
    .header__nav {
        display: flex !important;
        align-items: center;
        gap: 4px;
    }
    .header__nav-item {
        padding: 8px 12px;
        color: var(--color-navy);
        font-size: 14px;
        font-weight: 500;
        border-radius: 6px;
        transition: background var(--transition-base);
        white-space: nowrap;
    }
    .header__nav-item:hover {
        background: var(--color-light-gray);
        color: var(--color-navy);
    }
    .header__hamburger { display: none; }
    .header__nav-divider,
    .header__nav .btn--line {
        display: none;
    }
}

/* Mobile nav overlay */
@media (max-width: 1023px) {
    .header__nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        border-bottom: 1px solid #E5E7EB;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        padding: 16px 0;
    }
    .header__nav-item {
        display: block;
        padding: 12px 24px;
        color: var(--color-navy);
        font-size: 16px;
        font-weight: 500;
    }
    .header__nav-item:hover {
        background: var(--color-light-gray);
    }
    .header__nav-divider {
        height: 1px;
        background: #E5E7EB;
        margin: 8px 24px;
    }
}

/* Dropdown */
.header__dropdown {
    position: relative;
}
.header__dropdown-menu {
    display: none;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 220px;
    padding: 8px 0;
    z-index: 50;
}
@media (min-width: 1024px) {
    .header__dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
    }
    .header__dropdown:hover .header__dropdown-menu {
        display: block;
    }
}
@media (max-width: 1023px) {
    .header__dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 16px;
    }
    .header__dropdown-menu.is-open {
        display: block;
    }
}
.header__dropdown-item {
    display: block;
    padding: 8px 16px;
    color: var(--color-dark-gray);
    font-size: 14px;
    transition: background var(--transition-base);
}
.header__dropdown-item:hover {
    background: var(--color-light-gray);
    color: var(--color-dark-gray);
}

/* Hamburger */
.header__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}
.header__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-navy);
    transition: transform var(--transition-base);
}
.header__hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.header__hamburger.is-open span:nth-child(2) {
    opacity: 0;
}
.header__hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
@media (min-width: 1024px) {
    .header__hamburger {
        display: none;
    }
}

/* Header LINE button */
.header__line-btn {
    display: none;
}
@media (min-width: 1024px) {
    .header__line-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 16px;
        background: var(--color-line-green);
        color: white;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 600;
        margin-left: 8px;
    }
    .header__line-btn:hover {
        background: #05B04C;
        color: white;
    }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
    background: var(--color-navy);
    color: white;
    padding: 60px 0 24px;
}
.footer a { color: #93C5FD; }
.footer a:hover { color: white; }

.footer__cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}
@media (min-width: 768px) {
    .footer__cta { grid-template-columns: 1fr 1fr; }
}

.footer__cta-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}
.footer__cta-card h3 {
    color: white;
    font-size: 16px;
    margin-bottom: 8px;
}
.footer__cta-card p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 16px;
}

.footer__sitemap {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 24px;
    margin-bottom: 24px;
}
.footer__sitemap-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 13px;
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}
@media (min-width: 768px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
}
.btn--primary {
    background: var(--color-vivid-blue);
    color: white;
}
.btn--primary:hover {
    background: var(--color-deep-blue);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}
.btn--line {
    background: var(--color-line-green);
    color: white;
}
.btn--line:hover {
    background: #05B04C;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6,199,85,0.3);
}
.btn--apply {
    background: var(--color-vivid-blue);
    color: white;
}
.btn--apply:hover {
    background: var(--color-deep-blue);
    color: white;
}
.btn--outline {
    background: transparent;
    color: var(--color-vivid-blue);
    border: 2px solid var(--color-vivid-blue);
}
.btn--outline:hover {
    background: var(--color-vivid-blue);
    color: white;
}
.btn--lg {
    padding: 16px 36px;
    font-size: 17px;
}
.btn--sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* ============================================================
   Cards
   ============================================================ */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}
.card__image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.card__body {
    padding: 20px;
}
.card__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 8px;
}
.card__text {
    font-size: 14px;
    color: var(--color-medium-gray);
    margin-bottom: 12px;
    line-height: 1.6;
}
.card__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-vivid-blue);
}
.card__link::after {
    content: ' →';
}

/* Card grid */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 768px) {
    .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
    .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   CTA Section
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, #EFF6FF 0%, #F0FDF4 100%);
    padding: 60px 0;
    text-align: center;
}
.cta-section h2 {
    margin-bottom: 16px;
}
.cta-section p {
    color: var(--color-medium-gray);
    margin-bottom: 24px;
}
.cta-section__buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
@media (min-width: 768px) {
    .cta-section__buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* ============================================================
   Voice Card
   ============================================================ */
.voice-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border-left: 4px solid var(--color-vivid-blue);
}
.voice-card__text {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 12px;
    color: var(--color-dark-gray);
}
.voice-card__author {
    font-size: 13px;
    color: var(--color-medium-gray);
}

/* ============================================================
   Floating CTA
   ============================================================ */
/* PC: right-bottom LINE button */
.floating-cta {
    display: none;
}
@media (min-width: 1024px) {
    .floating-cta {
        display: block;
        position: fixed;
        bottom: 24px;
        right: 24px;
        z-index: 90;
    }
    .floating-cta__btn {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 14px 24px;
        background: var(--color-line-green);
        color: white;
        border-radius: 50px;
        font-size: 14px;
        font-weight: 600;
        box-shadow: 0 4px 16px rgba(6,199,85,0.3);
        text-decoration: none;
        transition: all var(--transition-base);
    }
    .floating-cta__btn:hover {
        background: #05B04C;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(6,199,85,0.4);
    }
}

/* Mobile: bottom fixed bar */
.mobile-cta {
    display: none;
}
@media (max-width: 1023px) {
    .mobile-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 90;
        background: white;
        border-top: 1px solid #E5E7EB;
        box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
        padding: 8px 12px;
        gap: 8px;
    }
    .mobile-cta a {
        flex: 1;
        text-align: center;
        padding: 12px 8px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 700;
        color: white;
        text-decoration: none;
    }
    .mobile-cta__line {
        background: var(--color-line-green);
    }
    .mobile-cta__apply {
        background: var(--color-vivid-blue);
    }

    /* Give space to body for mobile CTA */
    body { padding-bottom: 68px; }
}

/* ============================================================
   Utilities
   ============================================================ */
.text-center { text-align: center; }
.text-navy { color: var(--color-navy); }
.text-blue { color: var(--color-vivid-blue); }
.text-gray { color: var(--color-medium-gray); }
.text-sm { font-size: 14px; }
.text-lg { font-size: 18px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Highlight numbers */
.highlight-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-vivid-blue);
    line-height: 1.2;
}
@media (min-width: 1024px) {
    .highlight-number { font-size: 48px; }
}
.highlight-label {
    font-size: 14px;
    color: var(--color-medium-gray);
    margin-top: 4px;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    text-align: center;
}
@media (min-width: 768px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Table */
.table-responsive { overflow-x: auto; }
.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.styled-table th {
    background: var(--color-navy);
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}
.styled-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #E5E7EB;
}
.styled-table tr:nth-child(even) td {
    background: var(--color-light-gray);
}

/* Step indicator */
.steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
@media (min-width: 768px) {
    .steps { flex-direction: row; }
}
.step {
    flex: 1;
    text-align: center;
    position: relative;
}
.step__number {
    width: 40px;
    height: 40px;
    background: var(--color-vivid-blue);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 12px;
}
.step__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 4px;
}
.step__text {
    font-size: 13px;
    color: var(--color-medium-gray);
}

/* Section heading with subtitle */
.section-heading {
    margin-bottom: 32px;
}
.section-heading__sub {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-vivid-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

/* Link with arrow */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    font-size: 15px;
}
.link-arrow::after {
    content: '→';
}

/* Check list */
.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.6;
}
.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-green);
    font-weight: 700;
}

/* Image with rounded corners */
.img-rounded {
    border-radius: 12px;
}

/* Profile image */
.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}
@media (min-width: 768px) {
    .profile-img {
        width: 280px;
        height: 280px;
    }
}

/* Two column layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}
@media (min-width: 768px) {
    .two-col { grid-template-columns: 1fr 1fr; }
}

/* Comparison table */
.compare-table th:first-child {
    background: var(--color-light-gray);
    color: var(--color-dark-gray);
}

/* ============================================================
   テキスト装飾クラス（全ページ共通）
   用途: 重要語句・キーフレーズへのインライン装飾
   ============================================================ */

/* 蛍光ペン（オレンジ） */
.em-highlight {
    background: linear-gradient(transparent 55%, rgba(249, 115, 22, 0.3) 55%);
    padding: 0 2px;
}
/* 蛍光ペン（ブルー） */
.em-highlight--blue {
    background: linear-gradient(transparent 55%, rgba(59, 130, 246, 0.25) 55%);
    padding: 0 2px;
}
/* 色付きアンダーライン（オレンジ） */
.em-underline {
    text-decoration: underline;
    text-decoration-color: #F97316;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}
/* ネイビー太文字 */
.em-bold {
    font-weight: 700;
    color: var(--color-navy);
}
/* 傍点（ゴマ点） */
.em-dot {
    -webkit-text-emphasis: filled sesame;
    -webkit-text-emphasis-color: var(--color-navy);
    text-emphasis: filled sesame;
    text-emphasis-color: var(--color-navy);
}
/* 複合：太文字 + 蛍光ペン（オレンジ） */
.em-strong-highlight {
    font-weight: 700;
    color: var(--color-navy);
    background: linear-gradient(transparent 55%, rgba(249, 115, 22, 0.3) 55%);
    padding: 0 2px;
}
