/*
Theme Name: Caretoka Theme
Theme URI: https://caretoka.site/
Author: Antigravity
Description: A custom minimal and stylish theme for Caretoka.
Version: 1.1
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* Basic Reset & Layout Fixes */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive Logo */
.custom-logo {
    max-height: 60px;
    width: auto;
    max-width: 100%;
    transition: max-height 0.3s;
}

:root {
    --primary-color: #2C5F6D;
    --secondary-color: #F7F9F9;
    --accent-color: #D4A373;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
    /* Fluid Body Text: scales between 15px and 16px */
    font-size: clamp(0.9375rem, 1vw + 0.5rem, 1rem);
}

/* Fluid Heading Sizes */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.3;
}

/* Scales between 1.8rem (mobile) and 3rem (desktop) */
h1 {
    font-size: clamp(1.75rem, 5vw, 3rem);
}

/* Scales between 1.5rem and 2.2rem */
h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}

/* Scales between 1.25rem and 1.5rem */
h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

/* Specific mobile overrides */
@media (max-width: 768px) {
    .custom-logo {
        max-height: 40px;
        /* Smaller logo on mobile */
    }
}

/* Header with Logo Overlay */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.2rem 0;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.logo-bg {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%) rotate(-10deg);
    height: 300%;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.logo-text {
    position: relative;
    z-index: 1;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 0.05em;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    height: 40px;
    width: auto;
}

.logo-sub {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-light);
    margin-top: 4px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Button Group */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    transition: all 0.3s;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    font-size: 1rem;
    border: 2px solid transparent;
    /* For outlines */
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Button Variants */
.btn-primary {
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1a3c45;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white) !important;
}

.btn-line {
    background-color: #06C755;
    /* LINE Green */
    color: var(--white) !important;
}

.btn-line:hover {
    background-color: #05a546;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #e0f7fa 0%, #f7f9f9 100%);
    overflow: hidden;
}

.hero-bg-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

/* Intro & Common Sections */
.intro {
    padding: 5rem 2rem;
    text-align: center;
    background-color: var(--white);
}

.intro h2,
.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.section-title {
    display: inline-block;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 3rem;
}

/* Content Wrapper for Standard Pages */
.page-content {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    min-height: 50vh;
}

/* Services */
.services {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.card-link {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Documents */
.documents-section {
    background-color: #2C5F6D;
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: var(--radius);
    margin: 2rem auto;
    max-width: 1000px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
}

.doc-btn {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
}

/* Footer */
footer {
    background-color: #1a252f;
    color: #ecf0f1;
    padding: 4rem 2rem 2rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #bdc3c7;
    text-decoration: none;
}

.copyright {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #7f8c8d;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }

    .hero {
        padding: 5rem 1.5rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .documents-section {
        flex-direction: column;
        padding: 3rem 1.5rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}