/*
Theme Name: ISSO JAPAN
Theme URI: https://isso-japan.jp
Author: SOHO Inc.
Description: ISSO JAPAN Official Website Theme
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: isso-japan
*/

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

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #130046;
    --navy-light: #1e0066;
    --white: #ffffff;
    --off-white: #f7f7f7;
    --gray-light: #eeeeee;
    --gray: #999999;
    --gray-dark: #555555;
    --text: #1a1a1a;
    --font-en: 'Inter', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;
    --max-width: 1100px;
    --section-padding: 120px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-jp);
    font-weight: 300;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== CONTAINER ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 48px;
}

/* ===== SECTION ===== */
.section { padding: var(--section-padding) 0; }
.section--navy { background-color: var(--navy); color: var(--white); }
.section--offwhite { background-color: var(--off-white); }

/* ===== SECTION LABEL ===== */
.section-label {
    font-family: var(--font-en);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 20px;
    display: block;
}
.section--navy .section-label { color: rgba(255,255,255,0.35); }

/* ===== HEADINGS ===== */
.heading-en {
    font-family: var(--font-en);
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--navy);
}
.section--navy .heading-en { color: var(--white); }

.heading-jp {
    font-family: var(--font-jp);
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 300;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-top: 12px;
}

/* ===== DIVIDER ===== */
.divider {
    width: 32px;
    height: 1px;
    background-color: var(--navy);
    margin: 28px 0;
}
.section--navy .divider { background-color: rgba(255,255,255,0.3); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 13px 32px;
    border: 1px solid var(--navy);
    color: var(--navy);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}
.btn:hover { background: var(--navy); color: var(--white); }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-light); border-color: var(--navy-light); }

.btn--white { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn--white:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 0;
    background: rgba(255,255,255,1);
    border-bottom: 1px solid var(--gray-light);
    transition: var(--transition);
}
.site-header .container {
    max-width: 100%;
    padding: 0 40px;
}
.site-header.scrolled {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-light);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-logo img { height: 26px; width: auto; }
.site-logo-text {
    font-family: var(--font-en);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--navy);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}
.site-nav a {
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--navy);
    transition: opacity 0.3s;
}
.site-nav a:hover { opacity: 0.45; }

.nav-contact {
    padding: 9px 22px !important;
    border: 1px solid var(--navy) !important;
}
.nav-contact:hover {
    background: var(--navy) !important;
    color: var(--white) !important;
    opacity: 1 !important;
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--navy);
    transition: var(--transition);
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
    font-family: var(--font-en);
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--navy);
    text-transform: uppercase;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 80px;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
    background: var(--off-white);
}
.hero-bg { display: none; }

.hero .container {
    width: 100%;
    max-width: var(--max-width);
    padding: 0 48px;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-label {
    font-family: var(--font-en);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 20px;
    display: block;
}

.hero-title {
    font-family: var(--font-en);
    font-size: clamp(72px, 13vw, 180px);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 0.88;
    color: var(--navy);
    white-space: nowrap;
}

.hero-subtitle {
    font-family: var(--font-en);
    font-size: clamp(11px, 1.2vw, 14px);
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--navy);
    opacity: 0.5;
    margin-top: 28px;
}

.hero-text {
    margin-top: 36px;
    max-width: 500px;
    border-left: 1px solid rgba(19,0,70,0.15);
    padding-left: 20px;
}
.hero-text p {
    font-size: 13px;
    line-height: 2;
    color: var(--gray-dark);
}
.hero-text p + p {
    margin-top: 6px;
    font-family: var(--font-en);
    font-size: 11px;
    color: var(--gray);
}

.hero-subtitle {
    font-family: var(--font-en);
    font-size: clamp(11px, 1.2vw, 13px);
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--navy);
    opacity: 0.5;
    margin-top: 24px;
}

.hero-text {
    margin-top: 52px;
    max-width: 440px;
    border-left: 1px solid var(--gray-light);
    padding-left: 24px;
}
.hero-text p {
    font-size: 13px;
    line-height: 2.1;
    color: var(--gray-dark);
}
.hero-text p + p {
    margin-top: 8px;
    font-family: var(--font-en);
    font-size: 11px;
    color: var(--gray);
}

/* ===== ABOUT TOP ===== */
.about-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}
.about-top-text p {
    font-size: 14px;
    line-height: 2.2;
    color: var(--gray-dark);
    margin-top: 20px;
}
.about-top-text p + p { margin-top: 16px; }

/* ===== SERVICE GRID (TOP PAGE) ===== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background-color: rgba(255,255,255,0.08);
    margin-top: 56px;
    border: 1px solid rgba(255,255,255,0.08);
}

.service-card {
    background: rgba(255,255,255,0.05);
    padding: 44px 36px;
    transition: background var(--transition);
}
.service-card:hover { background: rgba(255,255,255,0.1); }

.service-card-number {
    font-family: var(--font-en);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.3);
    margin-bottom: 28px;
}
.service-card-title {
    font-family: var(--font-jp);
    font-size: 17px;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 16px;
}
.service-card-text {
    font-size: 12px;
    line-height: 2;
    color: rgba(255,255,255,0.55);
}

/* ===== STRONG POINT ===== */
.point-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px;
    margin-top: 64px;
}
.point-item {
    border-top: 1px solid var(--gray-light);
    padding-top: 28px;
}
.point-title {
    font-family: var(--font-jp);
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 14px;
}
.point-text {
    font-size: 12px;
    line-height: 2;
    color: var(--gray-dark);
}

/* ===== NEWS LIST (TOP) ===== */
.news-list { margin-top: 48px; }

.news-item {
    display: grid;
    grid-template-columns: 120px 1fr 24px;
    align-items: center;
    gap: 28px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-light);
    transition: padding-left var(--transition);
    cursor: pointer;
}
.news-item:first-child { border-top: 1px solid var(--gray-light); }
.news-item:hover { padding-left: 6px; }

.news-date {
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--gray);
    white-space: nowrap;
}
.news-title {
    font-size: 13px;
    font-weight: 300;
    color: var(--text);
}
.news-arrow {
    font-family: var(--font-en);
    font-size: 12px;
    color: var(--gray);
    transition: transform var(--transition), color var(--transition);
}
.news-item:hover .news-arrow { color: var(--navy); transform: translateX(3px); }

.news-more { margin-top: 36px; text-align: right; }

/* ===== CTA SECTION ===== */
.cta-section { text-align: center; }
.cta-section .heading-en { font-size: clamp(28px, 3.5vw, 44px); }
.cta-section > .container > p {
    font-size: 13px;
    color: var(--gray-dark);
    margin-top: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.cta-info { margin: 28px 0 36px; }
.cta-info p {
    font-size: 13px;
    color: var(--gray-dark);
    line-height: 1.9;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--navy);
    color: var(--white);
    padding: 72px 0 36px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
.footer-logo img { height: 22px; filter: brightness(0) invert(1); }
.footer-logo-text {
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--white);
}
.footer-info p {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    line-height: 2.1;
}
.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}
.footer-nav a {
    font-family: var(--font-en);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    transition: color 0.3s;
}
.footer-nav a:hover { color: var(--white); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
}
.footer-copy {
    font-family: var(--font-en);
    font-size: 10px;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.06em;
}

/* ===== PAGE HERO ===== */
.page-hero {
    padding: 152px 0 72px;
    border-bottom: 1px solid var(--gray-light);
}
.page-hero .heading-en {
    font-size: clamp(44px, 6.5vw, 80px);
    color: var(--navy);
}
.page-hero .heading-jp {
    font-size: 14px;
    color: var(--gray-dark);
    margin-top: 16px;
}

/* ===== ABOUT PAGE ===== */
.about-mission {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 60px;
    align-items: start;
    padding: 72px 0;
    border-bottom: 1px solid var(--gray-light);
}
.about-mission:last-of-type { border-bottom: none; }
.about-mission-label {
    font-family: var(--font-en);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    color: var(--gray);
    text-transform: uppercase;
    padding-top: 6px;
    line-height: 2;
}
.about-mission-label span {
    display: block;
    font-family: var(--font-jp);
    font-size: 10px;
    color: var(--gray-light);
    letter-spacing: 0.05em;
    margin-top: 4px;
}
.about-mission-content .heading-jp {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 300;
    color: var(--navy);
    margin-top: 0;
    line-height: 1.6;
}
.about-mission-content p {
    font-size: 13px;
    line-height: 2.2;
    color: var(--gray-dark);
    margin-top: 20px;
    max-width: 560px;
}

/* ===== VALUE LIST ===== */
.value-list { margin-top: 8px; }
.value-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
    padding: 28px 0;
    border-bottom: 1px solid var(--gray-light);
    align-items: start;
}
.value-item:first-child { border-top: 1px solid var(--gray-light); }
.value-item-title {
    font-family: var(--font-jp);
    font-size: 16px;
    font-weight: 400;
    color: var(--navy);
    text-align: right;
    padding-top: 2px;
}
.value-item-text {
    font-size: 13px;
    line-height: 2;
    color: var(--gray-dark);
}

/* ===== COMPANY TABLE ===== */
.company-table {
    width: 100%;
    margin-top: 40px;
    border-collapse: collapse;
}
.company-table tr { border-bottom: 1px solid var(--gray-light); }
.company-table tr:first-child { border-top: 1px solid var(--gray-light); }
.company-table th {
    font-family: var(--font-jp);
    font-size: 11px;
    font-weight: 400;
    color: var(--gray);
    text-align: left;
    padding: 20px 0;
    width: 150px;
    vertical-align: top;
}
.company-table td {
    font-size: 13px;
    font-weight: 300;
    padding: 20px 0;
    color: var(--text);
    line-height: 1.9;
}

/* ===== SERVICE PAGE ===== */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    padding: 80px 0;
    border-bottom: 1px solid var(--gray-light);
}
.service-detail:first-of-type { padding-top: 0; }
.service-detail:last-of-type { border-bottom: none; }

.service-detail-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--off-white);
    position: relative;
}
.service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.service-detail-image:hover img { transform: scale(1.03); }

.service-detail-label {
    font-family: var(--font-en);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 20px;
    display: block;
}
.service-detail-title {
    font-family: var(--font-jp);
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 20px;
    line-height: 1.4;
}
.service-detail-text {
    font-size: 13px;
    line-height: 2.2;
    color: var(--gray-dark);
}

/* ===== NEWS PAGE ===== */
.news-archive-list { margin-top: 48px; }
.news-archive-item {
    display: grid;
    grid-template-columns: 130px 1fr 24px;
    align-items: center;
    gap: 28px;
    padding: 22px 0;
    border-bottom: 1px solid var(--gray-light);
    transition: padding-left var(--transition);
}
.news-archive-item:first-child { border-top: 1px solid var(--gray-light); }
.news-archive-item:hover { padding-left: 6px; }

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    margin-top: 64px;
}
.contact-info > p {
    font-size: 13px;
    line-height: 2.1;
    color: var(--gray-dark);
    margin-bottom: 36px;
}
.contact-info-item { margin-bottom: 24px; }
.contact-info-label {
    font-family: var(--font-en);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 6px;
}
.contact-info-value {
    font-size: 13px;
    color: var(--text);
    font-weight: 300;
}

/* ===== CF7 FORM STYLING ===== */
.wpcf7 .form-group { margin-bottom: 28px; }

.wpcf7 label {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--gray-dark);
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}
.wpcf7 label .required { color: var(--navy); margin-left: 3px; }

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid var(--gray-light);
    background: transparent;
    font-family: var(--font-jp);
    font-size: 14px;
    font-weight: 300;
    color: var(--text);
    outline: none;
    transition: border-color 0.3s;
    border-radius: 0;
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
    border-bottom-color: var(--navy);
}
.wpcf7 textarea { height: 140px; resize: none; }

.wpcf7 .wpcf7-acceptance { margin-bottom: 32px; }
.wpcf7 .wpcf7-acceptance label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--gray-dark);
    cursor: pointer;
}
.wpcf7 input[type="submit"] {
    width: 100%;
    padding: 14px 32px;
    border: 1px solid var(--navy);
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 0;
}
.wpcf7 input[type="submit"]:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
}
.wpcf7-response-output {
    margin-top: 20px !important;
    padding: 12px 16px !important;
    border: 1px solid var(--gray-light) !important;
    font-size: 12px !important;
    border-radius: 0 !important;
}

/* ===== FADE IN ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== SCROLL TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 44px; height: 44px;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 50;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    :root { --section-padding: 80px; }
    .container { padding: 0 28px; }

    .about-top { grid-template-columns: 1fr; gap: 40px; }
    .service-grid { grid-template-columns: 1fr; gap: 1px; }
    .point-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-inner { grid-template-columns: 1fr; gap: 40px; }
    .footer-nav { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 20px; }
    .about-mission { grid-template-columns: 1fr; gap: 20px; padding: 52px 0; }
    .value-item { grid-template-columns: 1fr; gap: 8px; }
    .value-item-title { text-align: left; }
    .service-detail { grid-template-columns: 1fr; gap: 36px; padding: 60px 0; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .news-item,
    .news-archive-item { grid-template-columns: 100px 1fr; gap: 16px; }
    .news-arrow { display: none; }
}

@media (max-width: 768px) {
    :root { --section-padding: 56px; }
    .container { padding: 0 24px; }
    .site-nav { display: none; }
    .hamburger { display: flex; }
    .hero-bg { display: none; }

    /* Hero: less tall, centered content, narrower padding */
    .hero {
        min-height: 78vh;
        justify-content: center;
        padding-top: 100px;
        padding-bottom: 48px;
    }
    .hero .container { padding: 0 24px; }
    .hero-title { font-size: clamp(48px, 13vw, 72px); white-space: normal; }
    .hero-text { margin-top: 28px; padding-left: 16px; }

    /* TOP About-top: tighter gap and divider */
    .about-top { gap: 24px; }
    .divider { margin: 14px 0 24px; }
    .about-top-text p { margin-top: 12px; }

    /* TOP Strong Point: less gap to first item */
    .point-grid { margin-top: 36px; gap: 32px; }

    /* Page hero: tighter padding so it doesn't waste space */
    .page-hero { padding: 100px 0 40px; }
    .page-hero .heading-jp { margin-top: 10px; }

    /* About page: tighter mission rows */
    .about-mission { padding: 36px 0; gap: 14px; }
    .about-mission-label { padding-top: 0; line-height: 1.6; }
    .about-mission-content p { margin-top: 14px; }
    .value-list { margin-top: 0; }
    .value-item { padding: 22px 0; }

    .company-table th { width: 90px; }
    .service-card { padding: 28px 20px; }
}/* ==============================================
   WORKS - Safari完全対応版（gap廃止・margin使用）
   ============================================== */

/* --- 一覧ページ --- */
.works-grid {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-top: 60px;
    margin-left: -24px;
}

.works-card {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    width: calc(50% - 24px);
    margin-left: 24px;
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid #e8e8e8;
    -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.works-card:hover {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .works-grid { margin-left: 0; }
    .works-card { width: 100%; margin-left: 0; }
}

.works-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.works-card-thumb {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 75%;
}

.works-card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -webkit-transition: -webkit-transform 0.4s ease;
    transition: transform 0.4s ease;
}

.works-card:hover .works-card-thumb img {
    -webkit-transform: scale(1.04);
    transform: scale(1.04);
}

.works-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #1a1a4b;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    padding: 4px 12px;
    z-index: 1;
}

.works-card-body {
    padding: 28px 28px 32px;
}

.works-card-num {
    font-size: 11px;
    letter-spacing: 0.15em;
    color: #888;
    margin-bottom: 8px;
}

.works-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a4b;
    margin-bottom: 6px;
    line-height: 1.5;
}

.works-card-title span {
    font-size: 0.85em;
    font-weight: 400;
}

.works-card-location {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}

.works-card-tags {
    list-style: none;
    padding: 0;
    margin: 0 0 20px -8px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}

.works-card-tags li {
    font-size: 12px;
    color: #555;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 2px;
    margin-left: 8px;
    margin-bottom: 8px;
}

.works-card-more {
    font-size: 12px;
    letter-spacing: 0.1em;
    color: #1a1a4b;
    font-weight: 600;
    border-bottom: 1px solid #1a1a4b;
    padding-bottom: 2px;
    display: inline-block;
}

/* --- 詳細ページ --- */
.works-detail-section {
    padding-top: 60px;
}

.works-detail-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.works-breadcrumb {
    font-size: 13px;
    letter-spacing: 0.1em;
    color: #1a1a4b;
    text-decoration: none;
}
.works-breadcrumb:hover { opacity: 0.7; }

.works-case-num {
    font-size: 13px;
    letter-spacing: 0.15em;
    color: #888;
}

/* 案件情報ブロック */
.works-info-block {
    background: #f8f8f8;
    padding: 36px 40px;
    margin-bottom: 64px;
}

.works-info-grid {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-left: -48px;
}

.works-info-item {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    width: calc(50% - 48px);
    margin-left: 48px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .works-info-grid { margin-left: 0; }
    .works-info-item { width: 100%; margin-left: 0; }
    .works-info-block { padding: 24px 20px; }
}

.works-info-label {
    font-size: 11px;
    letter-spacing: 0.15em;
    color: #888;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.works-info-value {
    font-size: 14px;
    color: #222;
    line-height: 1.7;
}

/* Before/After ギャラリー */
.works-gallery-section {
    margin-top: 0;
}

.works-gallery-heading {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #1a1a4b;
    margin-bottom: 48px;
    padding-bottom: 16px;
    border-bottom: 2px solid #1a1a4b;
}

.before-after-block {
    margin-bottom: 64px;
}

.ba-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 3px solid #1a1a4b;
}

.ba-grid {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-left: -16px;
}

.ba-item {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    width: calc(50% - 16px);
    margin-left: 16px;
    position: relative;
    overflow: hidden;
}

.ba-item img {
    width: 100%;
    height: 260px;
    -o-object-fit: cover;
    object-fit: cover;
    display: block;
}

@media (max-width: 600px) {
    .ba-grid { margin-left: 0; }
    .ba-item { width: 100%; margin-left: 0; margin-bottom: 16px; }
    .ba-item img { height: 220px; }
}

.ba-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    z-index: 1;
}

.ba-tag.before {
    background: rgba(80,80,80,0.85);
    color: #fff;
}

.ba-tag.after {
    background: rgba(26,26,75,0.9);
    color: #fff;
}

/* ナビゲーション */
.works-nav {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid #e0e0e0;
}

.works-nav a {
    font-size: 14px;
    color: #1a1a4b;
    text-decoration: none;
    letter-spacing: 0.05em;
}
.works-nav a:hover { opacity: 0.7; }