@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
    --primary: #0056b3;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-main: #ffffff;
    --bg-light: #f8f9fa;
    --border: #e0e0e0;
    --container-width: 1000px;
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.8;
}

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

a:hover {
    color: #003d82;
    text-decoration: underline;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
}

/* Header & Nav */
header {
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo img {
    max-height: 40px;
    width: auto;
    vertical-align: middle;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

nav ul li a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 65vh;
    min-height: 500px;
    background-color: var(--bg-main);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 40%, rgba(255,255,255,0) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 5%;
    text-align: left;
}

.hero h1 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-main);
    max-width: 550px;
    line-height: 1.9;
    font-weight: 500;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

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

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

.card {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-img {
    width: calc(100% + 4rem);
    height: 220px;
    object-fit: cover;
    margin: -2rem -2rem 1.5rem -2rem;
    border-bottom: 1px solid var(--border);
}

.card h3 {
    color: var(--primary);
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.card.highlight {
    border: 2px solid var(--primary);
    background-color: #f8fbff;
}

/* Content Sections */
.text-box {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.text-box h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.lead-text {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    text-align: justify;
}

.section-bg-light {
    background-color: var(--bg-light);
}

/* List styles */
.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.feature-list li::before {
    content: '■';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.8rem;
    top: 0.2rem;
}

/* NEWS Section */
.news-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.news-date {
    color: var(--text-muted);
    font-weight: 700;
    min-width: 100px;
}

.news-title {
    color: var(--text-main);
    font-weight: 500;
}

/* Table */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.info-table th, .info-table td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.info-table th {
    width: 25%;
    font-weight: 700;
    background-color: var(--bg-light);
}

/* Footer */
footer {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border);
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--text-main);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.copy {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Utilities */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--primary);
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    transition: 0.2s;
}

.btn:hover {
    background-color: #004494;
    color: #fff;
    text-decoration: none;
}

.btn-outline {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 4px;
    font-weight: 500;
    transition: 0.2s;
}

.btn-outline:hover {
    background-color: var(--bg-light);
    text-decoration: none;
}
/* Content Specific Styles */
.text-box {
    max-width: 850px;
    margin: 0 auto;
    background: #fff;
    padding: 3.5rem;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
}

.text-box h2 {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 2rem;
    line-height: 1.4;
}

.section-bg-light {
    background-color: var(--bg-light);
}

.news-item {
    display: flex;
    gap: 2rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.news-item:hover {
    background: rgba(0,0,0,0.01);
}

.news-date {
    color: var(--text-muted);
    font-weight: 700;
    min-width: 110px;
    font-size: 0.9rem;
}

.news-title {
    color: var(--text-main);
    font-weight: 500;
}

.faq-list {
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .text-box {
        padding: 2rem 1.5rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .news-item {
        flex-direction: column;
        gap: 0.3rem;
    }
}


/* Service Page Specific Upgrade */
.service-segment {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 8rem;
}

.service-segment:nth-child(even) {
    flex-direction: row-reverse;
}

.service-img-wrap {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.service-img-wrap img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.service-img-wrap:hover img {
    transform: scale(1.05);
}

.service-txt-wrap {
    flex: 1;
}

.service-txt-wrap h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.service-txt-wrap h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.service-txt-wrap p {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 2;
    margin-bottom: 2rem;
}

.spec-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.spec-list li {
    background: #f0f4f8;
    color: var(--primary);
    padding: 0.3rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .service-segment, .service-segment:nth-child(even) {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 5rem;
    }
}


/* Service Row Layout (Full page remodel) */
.service-row {
    display: flex;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
    background: var(--bg-main);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid var(--border);
}

.service-row:nth-child(even) {
    flex-direction: row-reverse;
}

.service-img {
    flex: 1;
    max-width: 50%;
}

.service-img img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    display: block;
}

.service-content {
    flex: 1;
    padding: 4rem;
}

.service-content h3 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.service-subtitle {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 1rem;
    display: inline-block;
}

.service-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.9;
}

@media (max-width: 900px) {
    .service-row, .service-row:nth-child(even) {
        flex-direction: column;
        gap: 0;
        margin-bottom: 3rem;
    }
    .service-img {
        max-width: 100%;
        width: 100%;
    }
    .service-img img {
        min-height: 250px;
    }
    .service-content {
        padding: 2rem;
    }
}

