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

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #2c2c2c;
    background-color: #fff;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

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

/* ========================================
   VARIABLES
   ======================================== */
:root {
    --primary: #2d4a3e;
    --primary-dark: #1a3028;
    --accent: #b8956a;
    --accent-light: #d4b68c;
    --bg-warm: #f7f4f0;
    --bg-dark: #1a2620;
    --text: #2c2c2c;
    --text-light: #6b6b6b;
    --text-white: #f7f4f0;
    --border: #e5e0da;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 74, 62, 0.25);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.btn-full { width: 100%; text-align: center; }

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.4s ease;
}

.header.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.15em;
    transition: color 0.4s;
}

.logo-sub {
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.6);
    transition: color 0.4s;
}

.header.scrolled .logo-main { color: var(--primary); }
.header.scrolled .logo-sub { color: var(--text-light); }

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-list a {
    font-size: 0.88rem;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.04em;
    transition: color 0.3s;
}

.nav-list a:hover { color: var(--accent-light); }

.header.scrolled .nav-list a { color: var(--text); }
.header.scrolled .nav-list a:hover { color: var(--accent); }

.nav-cta {
    padding: 8px 24px !important;
    border: 1px solid rgba(255,255,255,0.4) !important;
}

.header.scrolled .nav-cta {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.header.scrolled .nav-cta:hover {
    background: var(--primary);
    color: #fff !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 110;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    transition: all 0.3s;
}

.header.scrolled .hamburger span { background: var(--text); }

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.header-note {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.4);
    text-align: center;
    padding: 0 24px 4px;
}

.header.scrolled .header-note { color: var(--text-light); opacity: 0.5; }

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    max-height: 960px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(26,38,32,0.8) 0%, rgba(45,74,62,0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    padding-top: 80px;
}

.hero-label {
    font-size: 0.78rem;
    letter-spacing: 0.25em;
    color: var(--accent-light);
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 3.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 20px;
    letter-spacing: 0.04em;
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.9;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.hero-scroll span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

/* ========================================
   NUMBERS STRIP
   ======================================== */
.numbers {
    background: var(--primary-dark);
    padding: 48px 0;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.number-item {
    text-align: center;
    padding: 0 16px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.number-item:last-child { border-right: none; }

.number-value {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.number-value small {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--accent-light);
}

.number-label {
    display: block;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
}

/* ========================================
   SECTION COMMON
   ======================================== */
section { padding: 100px 0; }

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-en {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
}

/* ========================================
   CONCEPT
   ======================================== */
.concept { background: var(--bg-warm); }

.concept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.concept-item {
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.concept-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.concept-img-wrap {
    height: 240px;
    overflow: hidden;
}

.concept-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.concept-body {
    padding: 28px 28px 32px;
}

.concept-num {
    font-family: 'Noto Serif JP', serif;
    font-size: 2rem;
    font-weight: 700;
    color: rgba(45,74,62,0.1);
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}

.concept-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.concept-body p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

/* ========================================
   SERVICES
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.service-card {
    background: #fff;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 36px rgba(0,0,0,0.06);
}

.service-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.service-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: var(--primary);
    padding: 4px 14px;
}

.service-body {
    padding: 24px 28px 28px;
}

.service-body h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.service-body p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.service-link {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.service-link:hover { color: var(--primary-dark); }

/* ========================================
   WORKS GALLERY
   ======================================== */
.works { background: var(--bg-warm); }

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,38,32,0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-cat {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 6px;
}

.gallery-overlay h4 {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
    margin-bottom: 4px;
}

.gallery-overlay p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    background: var(--bg-warm);
    padding: 36px 28px;
    border-left: 3px solid var(--accent);
    position: relative;
}

.testimonial-quote {
    font-family: 'Noto Serif JP', serif;
    font-size: 3.5rem;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: -8px;
}

.testimonial-text {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.9;
    margin-bottom: 24px;
}

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.testimonial-rating {
    font-size: 0.85rem;
    color: #d4a843;
    letter-spacing: 2px;
}

.testimonial-author {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    margin: 0;
}

.testimonial-author span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-light);
    font-weight: 400;
    margin-top: 2px;
}

/* ========================================
   COMPANY INFO
   ======================================== */
.company-info { background: var(--bg-warm); }

.company-table {
    max-width: 800px;
    margin: 0 auto;
}

.company-dl {
    border-top: 1px solid var(--border);
}

.company-row {
    display: flex;
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.company-row dt {
    width: 200px;
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

.company-row dd {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ========================================
   CONTACT
   ======================================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.contact-info > p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method {
    padding: 20px 24px;
    background: var(--bg-warm);
    border-left: 3px solid var(--accent);
}

.contact-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-light);
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.contact-value {
    display: block;
    font-family: 'Noto Serif JP', serif;
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
}

.contact-note {
    display: block;
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 4px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

.required {
    font-size: 0.7rem;
    color: #c54b4b;
    font-weight: 500;
    margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.88rem;
    padding: 12px 16px;
    border: 1px solid var(--border);
    background: #faf9f7;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45,74,62,0.08);
    background: #fff;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%236b6b6b'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-group textarea { resize: vertical; }

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-dark);
    padding: 64px 0 0;
    color: rgba(255,255,255,0.7);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-logo .logo-main {
    font-size: 1.2rem;
    color: #fff;
}

.footer-logo .logo-sub {
    font-size: 0.5rem;
    color: rgba(255,255,255,0.35);
}

.footer-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-top: 16px;
    line-height: 1.8;
}

.footer-nav-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-section h4 {
    font-size: 0.82rem;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 500;
}

.footer-section li { margin-bottom: 10px; }

.footer-section a {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    transition: color 0.3s;
}

.footer-section a:hover { color: var(--accent-light); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    text-align: center;
}

.portfolio-notice {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.3);
    margin-bottom: 6px;
}

.copyright {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    margin: 0;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 1024px) {
    .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .number-item { border-right: none; padding: 12px 0; }
    .concept-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .contact-content { grid-template-columns: 1fr; gap: 40px; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        padding: 80px 32px 32px;
        transition: right 0.3s ease;
        z-index: 105;
        box-shadow: -4px 0 16px rgba(0,0,0,0.08);
    }

    .nav.open { right: 0; }

    .nav-list {
        flex-direction: column;
        gap: 24px;
    }

    .nav-list a {
        color: var(--text) !important;
        font-size: 1rem;
    }

    .nav-cta {
        border-color: var(--primary) !important;
        text-align: center;
    }

    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .hero-actions { flex-direction: column; gap: 12px; }
    .hero-actions .btn { text-align: center; }

    section { padding: 64px 0; }
    .section-title { font-size: 1.5rem; }

    .numbers-grid { grid-template-columns: repeat(2, 1fr); }

    .gallery { grid-template-columns: repeat(2, 1fr); }
    .gallery-overlay { opacity: 1; }

    .company-row { flex-direction: column; gap: 4px; }
    .company-row dt { width: auto; }

    .footer-nav-group { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
    .hero { min-height: 500px; }
    .hero-title { font-size: 1.8rem; }
    .numbers-grid { grid-template-columns: 1fr 1fr; }
    .gallery { grid-template-columns: 1fr; }
    .gallery-item { aspect-ratio: 4 / 3; }
}
