/* ============================================
   STUDIO RICE — Corporate Site Stylesheet
   Design: Editorial / Refined / Elegant
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@300;400;600&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

/* --- Design Tokens --- */
:root {
    --enji: #862633;
    --enji-dark: #6b1e29;
    --enji-light: rgba(134, 38, 51, 0.08);
    --black: #1a1a1a;
    --charcoal: #333333;
    --gray: #777777;
    --gray-light: #b0b0b0;
    --border: #e4e4e4;
    --bg-white: #ffffff;
    --bg-cream: #faf9f7;
    --bg-warm: #f5f3ef;
    --bg-dark: #1a1a1a;

    --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Noto Serif JP', 'Georgia', serif;
    --font-display: 'Cormorant Garamond', 'Noto Serif JP', serif;

    --container: 1060px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
    font-family: var(--font-sans);
    color: var(--charcoal);
    background-color: var(--bg-white);
    line-height: 1.9;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

/* --- Utility --- */
.container {
    width: 88%;
    max-width: var(--container);
    margin: 0 auto;
}

/* --- Fade-in Animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

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

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

.logo-link img {
    height: 32px;
    transition: opacity var(--transition);
}

.logo-link:hover img {
    opacity: 0.7;
}

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

.global-nav a {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--charcoal);
    position: relative;
    padding-bottom: 4px;
}

.global-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1.5px;
    background: var(--enji);
    transition: width var(--transition);
}

.global-nav a:hover::after,
.global-nav a.current::after {
    width: 100%;
}

.global-nav a.current {
    color: var(--enji);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--black);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}

/* ============================================
   HERO SECTION (TOP PAGE)
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-cream);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--enji-light);
    filter: blur(80px);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    padding: 140px 0 100px;
    position: relative;
    z-index: 1;
}

.hero-label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: var(--enji);
    margin-bottom: 32px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 2.6rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--black);
    margin-bottom: 28px;
    letter-spacing: 0.04em;
}

.hero-subtitle {
    font-size: 0.95rem;
    line-height: 2;
    color: var(--gray);
    max-width: 680px;
    margin: 0 auto;
    font-weight: 300;
}

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

.section-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--enji);
    margin-bottom: 12px;
    display: block;
}

.section-heading {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--black);
    margin-bottom: 20px;
    line-height: 1.5;
    letter-spacing: 0.03em;
}

.section-lead {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 2;
    max-width: 700px;
    font-weight: 300;
}

.section-divider {
    width: 40px;
    height: 1px;
    background: var(--enji);
    margin: 20px 0 30px;
}

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

.concept-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.concept-text .section-lead {
    margin-top: 10px;
}

.concept-visual {
    position: relative;
    height: 400px;
    background: var(--bg-warm);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.concept-visual::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--border);
    border-radius: 2px;
}

.concept-quote {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--charcoal);
    text-align: center;
    line-height: 2;
    padding: 40px;
    position: relative;
    z-index: 1;
}

/* ============================================
   SERVICES SECTION (TOP PAGE)
   ============================================ */
.services-top {
    background: var(--bg-cream);
}

.services-top .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-top .section-header .section-lead {
    margin: 0 auto;
}

.services-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.svc-card {
    background: var(--bg-white);
    padding: 48px 32px 40px;
    border-radius: 2px;
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}

.svc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.svc-card-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--enji);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 24px;
}

.svc-card h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--black);
    margin-bottom: 16px;
    line-height: 1.5;
}

.svc-card p {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.9;
    font-weight: 300;
}

.services-more {
    text-align: center;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    border-radius: 2px;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

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

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--enji);
    color: var(--enji);
}

.btn-outline:hover {
    background: var(--enji);
    color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--enji);
    font-weight: 500;
}

.btn-white:hover {
    background: var(--bg-cream);
    color: var(--enji-dark);
}

.btn-arrow::after {
    content: '→';
    transition: transform 0.3s ease;
}

.btn-arrow:hover::after {
    transform: translateX(4px);
}

/* ============================================
   ABOUT SECTION (TOP PAGE)
   ============================================ */
.about-top {
    background: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 70px;
    align-items: center;
}

.about-photo {
    position: relative;
}

.about-photo img {
    border-radius: 2px;
}

.about-photo::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 16px;
    right: -16px;
    bottom: -16px;
    border: 1px solid var(--enji);
    border-radius: 2px;
    z-index: -1;
    opacity: 0.3;
}

.about-text .section-lead {
    margin-bottom: 30px;
}

/* ============================================
   BLOG / INSIGHTS (TOP PAGE)
   ============================================ */
.insights {
    background: var(--bg-cream);
}

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

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

.blog-card {
    display: block;
    background: var(--bg-white);
    padding: 32px 28px;
    border-radius: 2px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
}

.blog-card-date {
    font-size: 0.78rem;
    color: var(--gray-light);
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.blog-card-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--black);
    line-height: 1.6;
    margin-bottom: 12px;
}

.blog-card-excerpt {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.8;
    font-weight: 300;
}

/* ============================================
   CONTACT CTA
   ============================================ */
.cta-section {
    background: var(--bg-dark);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(134, 38, 51, 0.08);
    filter: blur(100px);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-heading {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    font-weight: 300;
    color: #fff;
    line-height: 1.6;
    margin-bottom: 16px;
}

.cta-text {
    font-size: 0.9rem;
    color: var(--gray-light);
    margin-bottom: 40px;
    font-weight: 300;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #111111;
    padding: 50px 0 40px;
}

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

.footer-nav a {
    font-size: 0.8rem;
    color: var(--gray);
    letter-spacing: 0.08em;
    margin-right: 28px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-copy {
    font-size: 0.75rem;
    color: #555;
    letter-spacing: 0.05em;
}

/* ============================================
   PAGE HEADER (Inner Pages)
   ============================================ */
.page-hero {
    padding: 150px 0 80px;
    background: var(--bg-cream);
    text-align: center;
}

.page-hero-label {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--enji);
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.page-hero-sub {
    font-size: 0.88rem;
    color: var(--gray);
    letter-spacing: 0.08em;
}

/* ============================================
   SERVICES PAGE
   ============================================ */
.services-intro-text {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 70px;
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 2.1;
    font-weight: 300;
}

.service-block {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 40px;
    align-items: start;
    padding: 50px 0;
    border-bottom: 1px solid var(--border);
}

.service-block:last-child {
    border-bottom: none;
}

.service-block-num {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--enji);
    opacity: 0.12;
    line-height: 1;
    text-align: right;
    padding-top: 4px;
}

.service-block-content h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--black);
    margin-bottom: 18px;
    line-height: 1.4;
}

.service-block-content p {
    font-size: 0.92rem;
    color: var(--gray);
    line-height: 2;
    font-weight: 300;
}

/* Notice Block */
.service-notice {
    margin-top: 60px;
    padding: 44px 48px;
    background: var(--bg-cream);
    border-left: 2px solid var(--enji);
    border-radius: 2px;
}

.service-notice-heading {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--black);
    margin-bottom: 24px;
    letter-spacing: 0.04em;
}

.service-notice-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-notice-list li {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 2;
    font-weight: 300;
}

.service-notice-label {
    display: inline-block;
    font-weight: 500;
    color: var(--charcoal);
    margin-right: 0.5em;
}

.service-notice-label::after {
    content: '：';
}


/* ============================================
   PROFILE PAGE
   ============================================ */
.profile-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 70px;
    align-items: start;
}

.profile-photo img {
    border-radius: 2px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.profile-catch {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--enji);
    line-height: 1.6;
    margin-bottom: 16px;
}

.profile-name {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 400;
    color: var(--black);
    margin-bottom: 6px;
}

.profile-role {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 36px;
    line-height: 1.8;
}

.story-section {
    margin-bottom: 32px;
}

.story-section h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--black);
    margin-bottom: 12px;
    padding-left: 16px;
    border-left: 2px solid var(--enji);
}

.story-section p {
    font-size: 0.92rem;
    color: var(--gray);
    line-height: 2;
    font-weight: 300;
}

/* ============================================
   COMPANY PAGE
   ============================================ */
.mission-block {
    text-align: center;
    padding: 60px 0;
    margin-bottom: 50px;
    border-bottom: 1px solid var(--border);
}

.mission-text {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--black);
    line-height: 1.8;
}

.info-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid var(--border);
}

.info-table th,
.info-table td {
    padding: 22px 20px;
    text-align: left;
    vertical-align: top;
    font-size: 0.92rem;
}

.info-table th {
    width: 28%;
    font-weight: 500;
    color: var(--black);
    background: var(--bg-cream);
    letter-spacing: 0.02em;
}

.info-table td {
    color: var(--charcoal);
    font-weight: 300;
    line-height: 1.9;
}

.info-table td ul {
    padding-left: 18px;
    list-style: disc;
}

.info-table td ul li {
    margin-bottom: 6px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .concept-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-photo {
        order: -1;
        max-width: 400px;
    }

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

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .profile-photo {
        max-width: 360px;
    }

    .service-block {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-block-num {
        text-align: left;
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .global-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border);
        padding: 24px 0;
    }

    .global-nav.active {
        display: block;
    }

    .global-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .section {
        padding: 70px 0;
    }

    .page-hero {
        padding: 120px 0 60px;
    }

    .page-hero-label {
        font-size: 2rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-nav a {
        margin: 0 12px;
    }

    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
    }

    .info-table th {
        padding-bottom: 8px;
        border-bottom: none;
    }
}