:root {
    /* Color Palette */
    --bg-color: #FEFDF5;
    --text-color: #4A4A4A;
    --accent-color: #F4A261;
    /* Warm Orange */
    --accent-secondary: #E6AFB9;
    /* Soft Terracotta */
    --card-bg: rgba(255, 255, 255, 0.6);
    --card-border: rgba(255, 255, 255, 0.8);
    --shadow-color: rgba(0, 0, 0, 0.05);

    /* Fonts */
    --font-main: 'Zen Maru Gothic', 'M PLUS Rounded 1c', sans-serif;

    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --border-radius: 20px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Subtle background pattern could go here */
}

/* Typography */
h1,
h2,
h3 {
    color: var(--text-color);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* Utilities */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    text-align: center;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    padding: 60px 0;
    animation: fadeIn 1s ease-out;
}

.hero-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1rem;
    white-space: pre-line;
    /* Respect newlines in welcome message */
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background: white;
    border-radius: 50px;
    /* Capsule shape */
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: transform 0.2s;
}

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

.social-link img {
    height: 40px;
    /* Fixed height for consistency */
    width: auto;
    object-fit: contain;
    display: block;
}

/* Deals Section */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: 60px;
}

.deal-card-hero {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: var(--spacing-sm);
}

.deal-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.deal-category {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: bold;
}

/* Footer & Contact */
footer {
    padding: var(--spacing-lg) 0;
    margin-top: auto;
    font-size: 0.9rem;
}

.footer-links {
    margin-bottom: var(--spacing-md);
}

.footer-links a {
    margin: 0 10px;
    font-weight: bold;
    color: var(--accent-color);
}

/* Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.8);
}

.submit-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    display: block;
    margin: 0 auto;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #E08E45;
    /* Darker orange */
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .social-links {
        gap: 10px;
    }

    .social-link img {
        height: 32px;
        /* Smaller on mobile */
    }

    .hero-logo {
        width: 120px;
        height: 120px;
    }
}

/* Custom Tooltip */
[data-tooltip] {
    position: relative;
    overflow: visible;
    /* Critical for showing outside */
}

/* Tooltip Body */
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 130%;
    /* Below */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 1.0rem;
    white-space: nowrap;
    z-index: 10000;
    /* Very high */
    pointer-events: none;
    font-family: sans-serif;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);

    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

/* Tooltip Arrow */
[data-tooltip]::before {
    content: '';
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;

    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

/* Hover State */
[data-tooltip]:hover::after,
[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Link Card (OGP) Styling */
.link-card {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
    text-decoration: none;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
    color: inherit;
    max-width: 100%;
}

.link-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    color: inherit;
}

.link-card-image {
    flex: 0 0 160px;
    min-height: 120px;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
}

.link-card-content {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    /* for flex ellipsis */
}

.link-card-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-color);
}

.link-card-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.link-card-site {
    font-size: 0.8rem;
    color: #999;
}

@media (max-width: 600px) {
    .link-card {
        flex-direction: column;
    }

    .link-card-image {
        flex: auto;
        height: 160px;
    }
}

/* ==========================================
   Services Page Styles
   ========================================== */

.services-page {
    max-width: 1000px;
}

.services-page .hero {
    padding: 40px 0;
}

/* Service Intro */
.service-intro {
    margin-bottom: 40px;
    text-align: center;
}

.service-intro h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-intro p {
    margin-bottom: 20px;
}

.intro-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.intro-features li {
    font-size: 1rem;
    font-weight: 500;
}

/* Service Section */
.service-section {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-bottom: 40px;
    text-align: center;
}

.service-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.service-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    opacity: 0.7;
}

.service-header h2 {
    font-size: 1.4rem;
    margin: 0;
}

.service-desc {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.8;
}

/* Pricing Table */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

/* Plan Card */
.plan-card {
    background: white;
    border-radius: 15px;
    padding: 25px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.plan-card.recommended {
    border: 2px solid var(--accent-color);
}

.plan-card.recommended::before {
    content: 'おすすめ';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 10px;
}

.plan-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.plan-badge.light {
    background: #E8F5E9;
    color: #2E7D32;
}

.plan-badge.standard {
    background: #FFF3E0;
    color: #E65100;
}

.plan-badge.premium {
    background: #E3F2FD;
    color: #1565C0;
}

.plan-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.plan-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: #888;
}

.plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 15px;
}

.plan-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    position: relative;
    padding-left: 25px;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-note {
    font-size: 0.8rem;
    color: #888;
    margin-top: 10px;
}

.service-note {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
    text-align: center;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), #E08E45);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(244, 162, 97, 0.4);
    opacity: 1;
}

.cta-button.large {
    font-size: 1.1rem;
    padding: 18px 45px;
}

/* Final CTA Section */
.final-cta {
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, rgba(244, 162, 97, 0.1), rgba(230, 175, 185, 0.1));
}

.final-cta h2 {
    margin-bottom: 15px;
}

.final-cta p {
    margin-bottom: 25px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-table {
        grid-template-columns: 1fr;
    }

    .service-header {
        flex-direction: column;
        gap: 5px;
    }

    .service-number {
        font-size: 1.5rem;
    }

    .service-header h2 {
        font-size: 1.2rem;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .cta-button.large {
        padding: 15px 30px;
        font-size: 1rem;
    }
}