:root {
    --primary-navy: #001529;
    --secondary-navy: #002140;
    --accent-red: #cc0000;
    --accent-gold: #c5a059;
    --accent-gold-light: #fdfaf5;
    --accent-gold-pale: #fcf6ea;
    --text-black: #080808;
    --text-white: #ffffff;
    --text-gold-light: #efdfc5;
    --bg-white: #ffffff;
    --bg-darker: #000c19;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-noto: 'Noto Sans JP', sans-serif;
    --body-size: 1.1rem;
    --section-pad: 50px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-noto);
    color: var(--text-white);
    background-color: var(--primary-navy);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 4%;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    z-index: 1000;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo-group { display: flex; align-items: center; gap: 15px; }
.logo-square { height: 48px; }
.logo-name { height: 30px; }

nav ul { display: flex; list-style: none; gap: 20px; }
nav a { text-decoration: none; color: var(--primary-navy); font-weight: 700; font-size: 0.95rem; transition: var(--transition); }
nav a:hover { color: var(--accent-gold); }
.btn-nav { border: 2px solid var(--accent-gold); color: var(--accent-gold) !important; padding: 6px 15px !important; border-radius: 4px; }

/* Section Common */
.section { padding: var(--section-pad) 0; }
.section-title { text-align: center; margin-bottom: 30px; }
.en-title { display: block; font-size: 1.1rem; color: var(--accent-gold); letter-spacing: 0.2em; margin-bottom: 10px; font-weight: 900; }
.section-title h2 { font-size: 2.5rem; font-weight: 700; }

/* Hero */
.hero {
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--bg-darker);
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 16, 33, 0.5), rgba(0, 16, 33, 0.6)), 
                url('assets/sample5.jpeg') no-repeat center center/cover;
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; align-items: center; }
.mac-branding-hero { font-size: 3.5rem; font-weight: 900; margin-bottom: 20px; }
.red-m, .red-a, .red-c { color: var(--accent-red); }
.mac-sep { font-size: 1.5rem; opacity: 0.4; margin: 0 10px; font-weight: 300; }
.hero h1 { font-size: 2.8rem; line-height: 1.4; font-weight: 700; margin-bottom: 35px; color: var(--accent-gold); }
.hero-desc { font-size: 1.2rem; color: var(--text-white); max-width: 90%; }

/* Service / Concept */
.service-intro { background: var(--secondary-navy); }
.mac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }

.mac-card {
    background: var(--primary-navy);
    padding: 25px 20px;
    border: 1px solid rgba(197, 160, 89, 0.15);
    border-radius: 8px;
    text-align: center;
}

.mac-combined-title {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    font-size: 2rem;
    margin-bottom: 15px;
}

.mac-3d-letter {
    font-size: 5rem;
    font-weight: 900;
    color: var(--accent-red);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.4);
    line-height: 1;
}

.mac-card p { text-align: left; font-size: 1rem; color: var(--text-gold-light); }

/* Method Box */
.method-box {
    background: var(--accent-gold-pale);
    padding: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 30px;
    color: var(--primary-navy);
    text-align: left;
}

.method-logo-container { flex: 0 0 200px; }
.method-logo-container img { width: 100%; height: auto; }
.method-title { font-size: 3rem; font-weight: 900; color: var(--accent-gold); margin-bottom: 10px; }
.method-desc p { font-size: 1.15rem; font-weight: 700; line-height: 1.6; }

/* Profile */
.profile-section { background: var(--bg-white); color: var(--primary-navy); }
.profile-layout { display: flex; flex-wrap: wrap; gap: 40px; }
.profile-left { flex: 0 0 200px; }
.profile-portrait { width: 100%; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.profile-right { flex: 1; text-align: left; }
.profile-name-full { font-size: 1.8rem; font-weight: 900; margin-bottom: 15px; }
.qual-container { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid rgba(0,0,0,0.1); }
.qual-tag { font-size: 1.1rem; font-weight: 700; color: var(--accent-gold); }
.qual-tag::after { content: "│"; margin-left:12px; opacity: 0.3; }
.qual-tag:last-child::after { content: ""; }

/* Open Badges Row */
.badge-container { display: flex; align-items: center; gap: 20px; margin-top: 15px; margin-bottom: 25px; }
.badge-img { height: 60px; width: auto; opacity: 0.9; transition: var(--transition); }
.badge-img:hover { opacity: 1; transform: scale(1.05); }

.bio-text p { margin-bottom: 20px; font-size: 1.05rem; line-height: 1.8; }

/* Voice */
.voice-bg { background: var(--accent-gold-light); color: var(--primary-navy); }
.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.voice-card { background: white; padding: 40px; border-left: 5px solid var(--accent-gold); border-radius: 4px; }

/* Contact */
.contact-section { background: var(--primary-navy); text-align: center; }
.qr-flex { display: flex; justify-content: center; gap: 50px; }
.qr-item { display: flex; flex-direction: column; align-items: center; }
.qr-label { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--text-white); }
.qr-item img { width: 140px; border: 4px solid white; border-radius: 4px; }

/* Footer */
footer { background: var(--bg-white); padding: 30px 0; color: var(--text-black); border-top: 1px solid #eee; text-align: center; }
.footer-logos { display: flex; justify-content: center; align-items: center; gap: 30px; margin-bottom: 15px; }
.footer-logo-square { height: 60px; }
.footer-logo-name { height: 35px; }

/* Buttons */
.btn { display: inline-block; padding: 16px 45px; border-radius: 4px; text-decoration: none; font-weight: 700; font-size: 1.1rem; transition: var(--transition); cursor: pointer; border: none; }
.btn-primary { background: var(--accent-gold); color: var(--primary-navy); box-shadow: 0 4px 15px rgba(197,160,89,0.3); }

/* Animations */
.animate-up { opacity: 0; transform: translateY(20px); transition: all 0.6s ease-out; }
.animate-up.visible { opacity: 1; transform: translateY(0); }

/* Responsive - Global Mobile Overhaul */
@media (max-width: 768px) {
    :root {
        --section-pad: 40px;
    }

    /* Header Mobile */
    header { padding: 8px 0; }
    .header-inner { flex-direction: column; gap: 10px; }
    .logo-square { height: 36px; }
    .logo-name { height: 24px; }
    nav ul { gap: 12px; flex-wrap: wrap; justify-content: center; }
    nav a { font-size: 0.8rem; }
    .btn-nav { padding: 4px 10px !important; font-size: 0.85rem !important; }

    /* Hero Mobile */
    .hero { height: auto; padding: 140px 0 60px; min-height: 500px; }
    .mac-branding-hero { font-size: 2.22rem; }
    .mac-sep { font-size: 1rem; margin: 0 5px; }
    .hero h1 { font-size: 1.8rem; line-height: 1.3; margin-bottom: 25px; }
    .hero-desc { font-size: 0.95rem; max-width: 100%; margin-bottom: 30px; }
    .btn { padding: 14px 30px; font-size: 1rem; }

    /* Service Mobile */
    .section-title h2 { font-size: 1.8rem; }
    .mac-grid { grid-template-columns: 1fr; gap: 20px; }
    .mac-card { padding: 30px 20px; }
    .mac-3d-letter { font-size: 4.5rem; }
    .mac-combined-title { font-size: 1.6rem; }

    /* Method Box Mobile */
    .method-box { flex-direction: column; text-align: center; gap: 20px; padding: 30px 20px; }
    .method-logo-container { flex: 0 0 auto; width: 150px; }
    .method-title { font-size: 2.22rem; }
    .method-desc p { font-size: 1rem; text-align: left; }

    /* Profile Mobile */
    .profile-layout { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
    .profile-left { flex: 0 0 auto; width: 140px; }
    .profile-right { text-align: center; }
    .qual-container { justify-content: center; gap: 6px; }
    .qual-tag { font-size: 0.9rem; }
    .badge-container { justify-content: center; margin-bottom: 30px; }
    .bio-text p { text-align: left; font-size: 0.95rem; }

    /* Voice Mobile */
    .voice-grid { grid-template-columns: 1fr; gap: 20px; }
    .voice-card { padding: 25px; }

    /* Contact Mobile */
    .qr-flex { gap: 20px; flex-wrap: wrap; }
    .qr-item img { width: 120px; }

    /* Footer Mobile */
    .footer-logos { gap: 15px; flex-wrap: wrap; }
    .footer-logo-square { height: 45px; }
    .footer-logo-name { height: 28px; }
}

@media (max-width: 375px) {
    .mac-branding-hero { font-size: 1.8rem; }
    .hero h1 { font-size: 1.5rem; }
    nav ul { gap: 8px; }
}
