/* Reset & Base */
:root {
    --primary-color: #333333;
    --accent-color: #C1272D;
    /* Deep Red */
    --secondary-color: #a3825c;
    --bg-color: #ffffff;
    --bg-light: #F4F0EB;
    /* Warm Beige */
    --text-color: #333333;
    --light-text: #ffffff;
    --font-heading: 'Oswald', sans-serif;
    --font-hero: 'Marcellus', serif;
    /* New font for Hero */
    --font-body: 'Noto Sans JP', sans-serif;
    --header-height: 80px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
    letter-spacing: 0.05em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.3;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.section-title::after {
    display: none;
    /* Removed the small underline for a cleaner look or use ::before for watermark later */
}

/* Global Layout Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header / Hero */
/* Header / Hero */
header {
    width: 100%;
    height: 100vh;
    background-image: url('../assets/images/header_new.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    /* Changed from flex-end to center */
    justify-content: flex-start;
    padding-bottom: 0;
    /* Removed bottom padding */
}

/* Darker Overlay for better text contrast if needed */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 0;
}

/* Logo Bar */
.logo-bar {
    position: fixed;
    top: 0;
    left: 40px;
    /* Offset from left */
    width: 60px;
    height: 300px;
    background-color: var(--accent-color);
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
}

.logo-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* Side Nav */
.side-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 80px;
    height: 100vh;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 180px;
    align-items: center;
    /* Optional: background line or styling */
}

.side-nav ul {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.side-nav li a,
.scroll-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.side-nav li a:hover {
    color: var(--accent-color);
}

/* Hero Content */
.header-overlay-text {
    position: relative;
    z-index: 1;
    margin-left: 100px;
    /* Adjusted spacing */
    color: #fff;
    margin-bottom: 5vh;
    text-align: left;
    /* Ensure left align or center as preferred, keeping left for now to match flow */
}

.hero-main-display {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-name-large {
    font-family: var(--font-hero);
    font-size: 8rem;
    /* Extremely large as requested */
    line-height: 1;
    letter-spacing: 0.05em;
    font-weight: 400;
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
}

.hero-official-large {
    font-family: var(--font-hero);
    font-size: 2.5rem;
    /* Correspondingly large subtitle */
    letter-spacing: 0.2em;
    font-weight: 400;
    opacity: 0.9;
    margin-left: 10px;
    /* Slight offset for style */
}

/* Response for smaller screens */
@media (max-width: 1024px) {
    .hero-name-large {
        font-size: 5rem;
    }

    .hero-official-large {
        font-size: 1.5rem;
    }
}

/* Profile */
.profile {
    background-color: var(--bg-light);
    /* Beige background */
    text-align: left;
    padding-bottom: 100px;
    /* Added spacing below profile card */
}

.profile-container {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    gap: 60px;
    align-items: flex-start;
    padding: 40px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.profile-image-col {
    flex: 1;
    max-width: 400px;
}

.profile-img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.profile-text-col {
    flex: 1.5;
}

.profile-job {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.profile-name {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.profile-name-en {
    font-family: var(--font-hero);
    font-size: 1.2rem;
    color: #888;
    font-weight: 400;
}

.profile-location {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.profile-desc {
    font-size: 1.05rem;
    line-height: 2;
    color: #333;
    text-align: justify;
}

@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
        padding: 20px;
    }

    .profile-image-col {
        max-width: 100%;
    }
}

/* Media (2-column layout like Profile) */
.media-container {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    gap: 60px;
    align-items: flex-start;
    padding: 40px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.media-image-col {
    flex: 1;
    max-width: 400px;
}

.media-img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
}

.media-content-col {
    flex: 1.5;
    width: 100%;
    /* Ensure full width for timeline */
}

@media (max-width: 768px) {
    .media-container {
        flex-direction: column;
        padding: 20px;
    }

    .media-image-col {
        max-width: 100%;
    }
}

/* Business */
.business {
    background-color: #fff;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    align-items: start;
    /* Align items to top */
}

.business-item {
    background: #fff;
    padding: 3rem 2rem;
    border: 1px solid #eee;
    /* Clean border instead of shadow for a sharper look */
    border-top: 4px solid var(--accent-color);
    transition: all 0.4s ease;
}

.business-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.business-item h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.4rem;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
}

.sub-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 1rem;
    color: #666;
}

.sub-list li:last-child {
    border-bottom: none;
}

/* History / Timeline */
.history {
    background-color: var(--bg-light);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    /* White container on beige bg */
    padding: 60px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.timeline-item {
    display: flex;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}

.timeline-year {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-color);
    width: 120px;
    text-align: left;
    margin-right: 30px;
    font-size: 2rem;
    /* Large year */
    line-height: 1;
    flex-shrink: 0;
}

.timeline-content {
    border-left: 1px solid #eee;
    padding-left: 30px;
    padding-bottom: 10px;
}

.timeline-content h4 {
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Latest Info */
.news {
    background-color: #fff;
}

.news-list {
    max-width: 1000px;
    margin: 0 auto;
}

.news-item {
    background: #fff;
    padding: 2rem;
    margin-bottom: 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    transition: background 0.3s;
}

.news-item:hover {
    background-color: #fcfcfc;
}

.news-date {
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    margin-right: 3rem;
    min-width: 100px;
}

.news-title {
    font-size: 1.05rem;
}

/* News Gallery */
.news-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    transition: opacity 0.3s;
}

.gallery-img:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .news-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Contact & Bottom */
.contact {
    background-color: #222;
    /* Dark footer area */
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.contact .section-title {
    color: #fff;
    font-size: 3rem;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 18px 50px;
    border-radius: 0;
    /* Square/Sharp buttons for modern look */
    font-weight: bold;
    letter-spacing: 2px;
    margin-top: 3rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    transition: all 0.3s;
}

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

/* Footer */
footer {
    background-color: #000;
    color: #666;
    text-align: center;
    padding: 20px 0;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .timeline-item {
        flex-direction: column;
    }

    .timeline-year {
        text-align: left;
        margin-bottom: 0.5rem;
    }

    .timeline-content {
        border-left: 2px solid #ddd;
        margin-left: 10px;
    }
}