:root {
    --primary: #0066cc;
    --primary-dark: #004d99;
    --secondary: #e6f2ff;
    --accent: #00ccff;
    --text-dark: #1a1a1a;
    --text-light: #4a4a4a;
    --text-white: #ffffff;
    --bg-light: #f8faff;
    --bg-white: #ffffff;
    --glass: rgba(255, 255, 255, 0.9);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --primary-light: #e6f2ff;
    --border-light: #eee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Noto Serif JP', serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Nav */
body>header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 80px !important;
    background-color: #002d5a !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: var(--transition);
}

body>header.scrolled {
    height: 70px;
    background-color: #002d5a !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 64px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.logo-text h1,
.logo-text h3 {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-left: 5px;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.logo-text p {
    display: none;
    /* Redundant as it's in the logo image */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 16px;
    align-items: center;
    flex-shrink: 0;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 13.5px;
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-white) !important;
    padding: 8px 24px;
    border-radius: 4px;
    font-weight: 700 !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #ffffff;
    transition: var(--transition);
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    color: var(--text-white);
    overflow: hidden;
}

.hero::before {
    display: none;
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Strength Image Placeholder */
.strengths-image {
    position: relative;
    background: linear-gradient(135deg, var(--secondary) 0%, #cce6ff 100%);
    border-radius: 4px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.strengths-image::before {
    content: '💧';
    font-size: 80px;
    opacity: 0.5;
}

.strengths-image img {
    display: none;
    /* Hide if not present */
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    animation: none;
}

.hero h2 {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 4px 15px rgba(0, 45, 90, 0.4);
    letter-spacing: -0.02em;
    animation: none;
}

.hero .highlight {
    color: var(--accent);
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
    animation: none;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: none;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.hero-scroll span {
    font-size: 10px;
    letter-spacing: 2px;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-white);
    border-radius: 4px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: var(--text-white);
    transform: translateX(-50%);
    border-radius: 2px;
    animation: mouseScroll 2s infinite;
}

/* Sections */
section {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title.left {
    text-align: left;
}

.subtitle {
    display: block;
    font-family: 'Noto Serif JP', serif;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 12px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
}

/* News */
.news {
    padding: 80px 0;
    background: var(--bg-white);
}

.news-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.news-header {
    width: 100%;
    text-align: center;
}

.news-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
}

.news-list {
    width: 100%;
    max-width: 900px;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.news-item:first-child {
    padding-top: 0;
}

.news-item time {
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
    color: var(--text-light);
    min-width: 120px;
}

.news-category {
    background: var(--secondary);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    margin-right: 24px;
}

.news-item a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.news-item:hover a {
    color: var(--primary);
}

.news-more {
    margin-top: 24px;
}

.text-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.text-link::after {
    content: '→';
    transition: var(--transition);
}

.text-link:hover::after {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .news-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Services */
.services {
    background-color: var(--bg-light);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 48px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(0, 102, 204, 0.05);
}

.service-card:hover {
    transform: none;
}

.service-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--primary);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.service-list {
    list-style: none;
}

.service-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 500;
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Strengths */
.strengths-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.strengths-image {
    position: relative;
}

.strengths-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.strengths-image::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    left: 40px;
    bottom: 20px;
    border: 8px solid var(--secondary);
    border-radius: 4px;
    z-index: -1;
}

.strength-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.strength-icon {
    width: 48px;
    height: 48px;
    background: var(--secondary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.strength-text h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.strength-text p {
    color: var(--text-light);
}

/* Area */
.area {
    background: var(--primary);
    color: var(--text-white);
    padding: 80px 0;
}

.area-box {
    text-align: center;
}

.area-header .subtitle {
    color: var(--accent);
}

.area-header h2 {
    color: var(--text-white);
    margin-bottom: 16px;
}

.area-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin: 40px 0;
}

.area-tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 700;
    backdrop-filter: blur(5px);
}

.area-footer {
    opacity: 0.8;
}

/* Company */
.company {
    background-color: var(--bg-light);
}

.company-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.company-table th,
.company-table td {
    padding: 24px 40px;
    border-bottom: 1px solid #eee;
}

.company-table th {
    width: 30%;
    background: #fdfdfd;
    text-align: left;
    color: var(--primary);
    font-weight: 700;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: none;
}

.company-map {
    margin-top: 60px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.company-map iframe {
    display: block;
    /* Remove small bottom gap */
}

/* Contact */
.contact-card {
    background: var(--bg-white);
    max-width: 900px;
    margin: 0 auto;
    padding: 80px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid var(--secondary);
}

.contact-details {
    margin-top: 40px;
}

.tel-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--primary);
    font-size: 48px;
    font-weight: 700;
    transition: var(--transition);
}

.tel-link:hover {
    transform: scale(1.05);
}

.contact-note {
    margin-top: 16px;
    color: var(--text-light);
    font-weight: 500;
}

/* Footer */
footer {
    background: #002d5a;
    color: var(--text-white);
    padding: 80px 0 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.footer-top .logo-text h3 {
    color: var(--text-white);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.footer-top .logo-text p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-address p {
    margin-bottom: 8px;
    opacity: 0.8;
}

.footer-nav {
    margin-bottom: 40px;
}

.footer-nav-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 30px;
}

.footer-nav-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.footer-nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.footer-nav-list a:hover {
    color: var(--accent);
}

.footer-nav-list a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .footer-nav-list {
        gap: 15px 25px;
        justify-content: center;
        text-align: center;
    }
}

.footer-bottom {
    text-align: center;
    font-size: 14px;
    opacity: 0.5;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes mouseScroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 48px;
    }

    .strengths-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .strengths-image {
        order: 2;
    }

    .strengths-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    header {
        height: 70px;
    }

    .nav-links {
        display: none;
    }

    .hero h2 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 40px 24px;
    }

    .tel-link {
        font-size: 32px;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .company-table th {
        width: 40%;
        padding: 20px;
    }

    .company-table td {
        padding: 20px;
    }
}

/* Service Details */
.service-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-detail-item {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary);
    transition: var(--transition);
}

.service-detail-item:hover {
    transform: none;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.detail-icon {
    font-size: 32px;
}

.detail-header h3 {
    font-size: 22px;
    color: var(--primary);
}

.detail-body p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.detail-body ul {
    list-style: none;
}

.detail-body li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 15px;
}

.detail-body li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Qualifications */
.qualifications {
    background-color: var(--bg-white);
    padding: 80px 0;
}

.qual-box {
    background: var(--bg-light);
    padding: 60px;
    border-radius: 4px;
    text-align: center;
}

.qual-list-wrapper ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.qual-list-wrapper li {
    background: var(--bg-white);
    padding: 15px 30px;
    border-radius: 4px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 102, 204, 0.1);
    transition: var(--transition);
    text-align: left;
}

.qual-list-wrapper li:hover {
    transform: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.qual-list-wrapper li .count {
    color: var(--primary);
    font-weight: 700;
    margin-left: 5px;
}

.qual-list-wrapper li small {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
    font-weight: 400;
}

@media (max-width: 992px) {
    .service-details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .service-details-grid {
        grid-template-columns: 1fr;
    }

    .qual-box {
        padding: 40px 20px;
    }

    .service-detail-item {
        padding: 25px;
    }
}

/* Hero Slider Enhancement */
.hero {
    position: relative;
    overflow: hidden;
    height: 100vh;
    min-height: 600px;
    background: #002d5a;
    /* Fallback */
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideFade 35s infinite;
}

/* 7 slides * 5s = 35s total */
.hero-slider .slide:nth-child(1) {
    animation-delay: 0s;
}

.hero-slider .slide:nth-child(2) {
    animation-delay: 5s;
}

.hero-slider .slide:nth-child(3) {
    animation-delay: 10s;
}

.hero-slider .slide:nth-child(4) {
    animation-delay: 15s;
}

.hero-slider .slide:nth-child(5) {
    animation-delay: 20s;
}

.hero-slider .slide:nth-child(6) {
    animation-delay: 25s;
}

.hero-slider .slide:nth-child(7) {
    animation-delay: 30s;
}

@keyframes slideFade {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }

    2% {
        opacity: 1;
    }

    14% {
        opacity: 1;
    }

    16% {
        opacity: 0;
        transform: scale(1);
    }

    100% {
        opacity: 0;
    }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 45, 90, 0.4), rgba(0, 45, 90, 0.4));
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Works (Construction Examples) */
.works {
    background-color: var(--bg-white);
    padding: 100px 0;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.work-card {
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.work-card:hover {
    transform: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.work-image-placeholder {
    height: 220px;
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    position: relative;
}

.work-image-placeholder::after {
    /* content: '📷 Image Area'; */
    /* 写真を入れた時に文字が被らないようにコメントアウト */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(0, 102, 204, 0.3);
    font-weight: 700;
}

.work-label {
    background: var(--primary);
    color: white;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    z-index: 1;
}

.work-content {
    padding: 30px;
}

.work-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.work-date {
    font-family: 'Noto Serif JP', serif;
    font-size: 13px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 15px;
}

.work-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .works-grid {
        grid-template-columns: 1fr;
    }
}

/* --- News Detail & Page Layout --- */
.page-container {
    padding-top: 100px;
    /* Header height + extra air */
}

.page-header {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: 80px 0;
    text-align: center;
    margin-bottom: 80px;
}

.page-header h2 {
    font-size: 32px;
    margin-top: 10px;
    color: #fff;
}

.news-post {
    max-width: 800px;
    margin: 0;
    background: #ffffff;
    padding: 60px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    border: 1px solid #eee;
}

.post-header {
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 40px;
    padding-bottom: 30px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.post-category {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.post-title {
    font-size: 28px;
    line-height: 1.4;
    color: var(--primary-dark);
    margin: 0;
}

.post-content {
    line-height: 1.8;
    color: var(--text-dark);
}

.post-content h3 {
    font-size: 22px;
    margin: 40px 0 20px;
    padding-left: 15px;
    border-left: 4px solid var(--accent);
    color: var(--primary-dark);
}

.post-content p {
    margin-bottom: 20px;
}

/* 投稿内画像グリッド (強制 2枚並び版) */
.post-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px;
    margin: 30px 0;
}

/* スマホ（幅600px以下）では1列にする */
@media (max-width: 600px) {
    .post-image-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.post-image-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.post-image-grid img:hover {
    transform: none; /* シンプルに */
}

.post-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.post-content li {
    margin-bottom: 10px;
    position: relative;
    list-style: disc;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.post-content th,
.post-content td {
    border: 1px solid var(--border-light);
    padding: 15px;
    text-align: left;
}

.post-content th {
    background: var(--bg-light);
    width: 30%;
}

.post-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

@media (max-width: 768px) {
    .news-post {
        padding: 30px 20px;
        margin-bottom: 60px;
        border-radius: 0;
        box-shadow: none;
    }

    .post-title {
        font-size: 22px;
    }
}

/* --- News More Utility --- */
/* Limit news items on top page, but show all on archive page */
.news .news-list article:nth-child(n+4) {
    display: none;
}

.news-list.is-expanded article:nth-child(n+4) {
    display: flex !important;
}

.news-more {
    margin-top: 30px;
    text-align: center;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 12px 60px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.05em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-more::after {
    content: '→';
    margin-left: 12px;
    font-size: 18px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.btn-more:hover {
    background: var(--primary);
    color: var(--text-white);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: none;
}

.btn-more:hover::after {
    transform: translateX(6px);
}

.btn-more.is-hidden {
    display: none;
}

/* --- Floating News Widget --- */
.news-widget {
    position: fixed;
    right: 30px;
    bottom: 100px;
    width: 320px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 999;
    overflow: hidden;
    transform: translateX(calc(100% + 50px));
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 5px solid var(--accent);
}

.news-widget.is-active {
    transform: translateX(0);
}

.widget-header {
    background: var(--primary-dark);
    color: #fff;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.btn-widget-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
}

.widget-body {
    padding: 15px;
}

.widget-item {
    display: block;
    text-decoration: none;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.widget-item:last-child {
    margin-bottom: 0;
}

.widget-item time {
    display: block;
    font-size: 11px;
    color: var(--text-light);
}

.widget-item p {
    margin: 3px 0 0;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget-item:hover p {
    color: var(--primary-dark);
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-dark);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.is-active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent);
    transform: none;
}

@media (max-width: 1150px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: auto;
        background: #fff;
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: var(--text-dark) !important;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 10px 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .news-widget {
        right: 15px;
        bottom: 90px;
        width: 280px;
    }

    .back-to-top {
        right: 15px;
        bottom: 20px;
        width: 45px;
        height: 45px;
    }
}

/* --- Contact Section Layout --- */
.contact-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    margin-top: 50px;
}

.contact-info-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 4px;
    height: fit-content;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    font-size: 24px;
    background: #fff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.info-text h4 {
    margin: 0 0 5px;
    font-size: 14px;
    color: var(--text-light);
}

.info-text .tel-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
    margin-bottom: 5px;
}

.info-text p {
    font-size: 13px;
    margin: 0;
    color: var(--text-light);
}

/* --- Contact Form --- */
.contact-form-container {
    background: #fff;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-dark);
}

.form-group label .required {
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

.form-group label .optional {
    background: #95a5a6;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

.form-control {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: var(--text-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.form-control::placeholder {
    color: #a0aec0;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-check {
    text-align: center;
    margin: 30px 0;
}

.form-check label {
    font-size: 14px;
    cursor: pointer;
}

.form-submit {
    text-align: center;
}

.btn-submit {
    background: var(--primary-dark);
    color: #fff;
    border: none;
    padding: 15px 60px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.btn-submit:hover {
    background: var(--accent);
    transform: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1150px) {
    .contact-form-container {
        padding: 25px 15px;
        margin-top: 40px;
    }
}

/* --- News Archive Sidebar --- */
.news-archive-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    margin-top: 60px;
}

.archive-sidebar {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 4px;
    height: fit-content;
}

.archive-sidebar h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #2d3748;
    color: #2d3748;
}

.archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-list li {
    border-bottom: 1px solid #e2e8f0;
}

.archive-list li:last-child {
    border-bottom: none;
}

.archive-list a {
    display: flex;
    align-items: center;
    padding: 12px 0;
    text-decoration: none;
    color: #4a5568;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.archive-list a::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-top: 2px solid #2d3748;
    border-right: 2px solid #2d3748;
    transform: rotate(45deg);
    margin-right: 15px;
    transition: all 0.3s ease;
}

.archive-list a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.archive-count {
    margin-left: 8px;
    color: #718096;
    font-weight: 400;
}

@media (max-width: 992px) {
    .news-archive-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .archive-sidebar {
        order: 2;
        margin-top: 0;
    }
}

.news-item.is-hidden {
    display: none !important;
}