/*
Theme Name: SaNC
Theme URI: https://sanc-official.com
Author: 佐々木 聡史
Author URI: https://sanc-official.com
Description: SaNC（SaitamaNorthCraft）オフィシャルテーマ。Web制作・AIコンサルティング。
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: sanc
*/

/* ===========================
   CSS Variables
=========================== */
:root {
    --white: #FFFFFF;
    --off-white: #F8F8F6;
    --light: #F0EEE9;
    --mid: #C8C4BC;
    --text-secondary: #8A8680;
    --text: #1A1917;
    --accent: #1A3A5C;
    --accent-light: #2C5F8A;
    --accent-pale: #E8F0F8;
    --line: #E2DED8;
    --serif: 'DM Serif Display', Georgia, serif;
    --sans: 'Noto Sans JP', sans-serif;
    --mono: 'DM Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    color: var(--text);
    background: var(--white);
    font-size: 15px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ===========================
   NAV
=========================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s;
}

.site-header.scrolled {
    border-bottom-color: var(--line);
}

.site-logo {
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: .08em;
    color: var(--text);
}

.site-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .06em;
    color: var(--text-secondary);
    transition: color .2s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .06em;
    color: var(--white);
    background: var(--accent);
    padding: 10px 22px;
    border-radius: 2px;
    transition: background .2s;
}

.nav-cta:hover {
    background: var(--accent-light);
}

/* ===========================
   HERO
=========================== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 80px;
    overflow: hidden;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 48px 80px 72px;
}

.hero-eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .2em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--accent);
}

.hero-h1 {
    font-family: var(--serif);
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 32px;
    letter-spacing: -.01em;
}

.hero-h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 2;
    max-width: 400px;
    margin-bottom: 48px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    padding: 14px 32px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .06em;
    border-radius: 2px;
    transition: background .2s, transform .2s;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    color: var(--white);
}

.btn-secondary {
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .06em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap .2s;
}

.btn-secondary:hover {
    gap: 14px;
}

.btn-secondary::after {
    content: '→';
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}

.stat-num {
    font-family: var(--serif);
    font-size: 36px;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: .06em;
}

.hero-right {
    background: var(--off-white);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: .5;
}

.hero-visual {
    width: 80%;
    max-width: 400px;
    aspect-ratio: 1;
    position: relative;
}

.float-card {
    position: absolute;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
    font-size: 12px;
}

.float-card-1 {
    top: 10%;
    left: -10%;
    animation: float1 4s ease-in-out infinite;
}

.float-card-2 {
    bottom: 15%;
    right: -8%;
    animation: float2 5s ease-in-out infinite;
}

.float-card-3 {
    top: 45%;
    left: 50%;
    transform: translateX(-50%);
    animation: float3 4.5s ease-in-out infinite;
}

@keyframes float1 {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(8px)
    }
}

@keyframes float3 {

    0%,
    100% {
        transform: translate(-50%, 0)
    }

    50% {
        transform: translate(-50%, -8px)
    }
}

.card-label {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-secondary);
    letter-spacing: .1em;
    margin-bottom: 6px;
}

.card-value {
    font-weight: 700;
    color: var(--text);
    font-size: 18px;
}

.card-sub {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.card-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    margin-right: 6px;
}

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

.section-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .2em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.section-h2 {
    font-family: var(--serif);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 2;
    max-width: 560px;
    margin-bottom: 64px;
}

/* ===========================
   SERVICES
=========================== */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.service-card {
    background: var(--white);
    padding: 48px 40px;
    transition: background .2s;
}

.service-card:hover {
    background: var(--accent-pale);
}

.service-num {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--mid);
    letter-spacing: .1em;
    margin-bottom: 24px;
}

.service-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-pale);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 20px;
}

.service-title {
    font-family: var(--serif);
    font-size: 22px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 24px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    font-size: 11px;
    font-family: var(--mono);
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--text-secondary);
}

/* ===========================
   WORKS
=========================== */
.works {
    background: var(--off-white);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.work-card {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 32px 36px;
    border-radius: 4px;
    transition: transform .2s, box-shadow .2s;
}

.work-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .07);
}

.work-industry {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .15em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.work-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.work-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.work-card-featured {
    grid-column: span 2;
    background: var(--accent);
    border-color: var(--accent);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.work-card-featured .work-industry {
    color: rgba(255, 255, 255, .6);
}

.work-card-featured .work-title {
    color: var(--white);
    font-family: var(--serif);
    font-size: 24px;
}

.work-card-featured .work-desc {
    color: rgba(255, 255, 255, .75);
}

.works-more {
    text-align: center;
    margin-top: 48px;
}

.works-more a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .06em;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
}

/* ===========================
   ABOUT
=========================== */
.about {
    background: var(--white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 100px 72px;
}

.about-photo {
    background: var(--light);
    aspect-ratio: 4/5;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-photo-placeholder {
    font-family: var(--serif);
    font-size: 72px;
    color: var(--mid);
}

.about-photo-label {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: var(--white);
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-family: var(--mono);
    color: var(--text-secondary);
}

.about-body {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 40px;
}

.about-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.skill-tag {
    font-family: var(--mono);
    font-size: 11px;
    padding: 6px 14px;
    background: var(--off-white);
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--text);
}

/* ===========================
   CONTACT
=========================== */
.contact {
    background: var(--text);
    color: var(--white);
    text-align: center;
    padding: 100px 72px;
}

.contact .section-label {
    justify-content: center;
    color: var(--mid);
}

.contact .section-label::before {
    background: var(--mid);
}

.contact .section-h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.contact .section-desc {
    color: var(--mid);
    margin: 0 auto 48px;
}

.contact-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-white {
    background: var(--white);
    color: var(--text);
    padding: 16px 40px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    border-radius: 2px;
    transition: opacity .2s, transform .2s;
    display: inline-block;
}

.btn-white:hover {
    opacity: .9;
    transform: translateY(-2px);
    color: var(--text);
}

.btn-outline-white {
    border: 1px solid rgba(255, 255, 255, .3);
    color: var(--white);
    padding: 16px 40px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .04em;
    border-radius: 2px;
    transition: border-color .2s;
    display: inline-block;
}

.btn-outline-white:hover {
    border-color: var(--white);
    color: var(--white);
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
    background: var(--text);
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 40px 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--mono);
    font-size: 16px;
    color: var(--white);
    letter-spacing: .08em;
}

.footer-logo span {
    color: var(--mid);
}

.footer-copy {
    font-size: 12px;
    color: var(--mid);
    font-family: var(--mono);
}

/* ===========================
   BLOG
=========================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.blog-card {
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .07);
}

.blog-card-img {
    aspect-ratio: 16/9;
    background: var(--light);
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    padding: 24px;
}

.blog-card-cat {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--accent);
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.blog-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 8px;
}

.blog-card-date {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: var(--mono);
}

/* ===========================
   ANIMATIONS
=========================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s ease, transform .7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 960px) {
    .site-header {
        padding: 20px 24px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-left {
        padding: 100px 24px 60px;
    }

    .hero-right {
        height: 300px;
    }

    .section {
        padding: 72px 24px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .works-grid {
        grid-template-columns: 1fr;
    }

    .work-card-featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .about {
        grid-template-columns: 1fr;
        padding: 72px 24px;
    }

    .about-photo {
        display: none;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        flex-direction: column;
        gap: 16px;
        padding: 32px 24px;
    }

    .contact {
        padding: 72px 24px;
    }

    .contact-btns {
        flex-direction: column;
        align-items: center;
    }
}