/* --- Basic Reset & Setup --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cream: #e8e4dc;
    --ink: #111;
    --muted: #666;
    --accent: #1c3a5e;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--cream);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 4rem;
}

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

/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 5rem;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
}

.status-tag, .time-display {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
}

.time-display {
    color: #555;
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 4rem;
    padding-bottom: 7rem;
    padding-top: 3rem;
}

.hero-left {
    flex-basis: 75%;
}

.hero-right {
    flex-basis: 25%;
    padding-bottom: 1rem;
}

.hero-right p {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

.hero-title {
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    font-size: clamp(3.5rem, 6vw, 6rem);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -2px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease-in-out;
}

.btn-dark {
    background-color: #111111;
    color: #ffffff;
}

.btn-dark:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.btn-light {
    background-color: #ffffff;
    color: #111111;
}

.btn-light:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.get-in-touch {
    margin-top: 2.5rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
}

.arrow {
    transition: transform 0.2s ease-in-out;
}

.get-in-touch:hover .arrow {
    transform: translateX(5px);
}

/* --- Projects Section --- */
.projects-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
    border-top: 1px solid #e0e0e0;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.projects-header h2 {
    font-size: 1.3rem;
    font-weight: 500;
}

.projects-header span {
    font-size: 0.9rem;
    color: #555;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2.5rem;
}

.project-card {
    grid-column: span 3;
    border-radius: 0;
    overflow: hidden;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img, .project-card video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background-color: var(--ink);
    border-radius: 0;
    margin-bottom: 1.5rem;
    filter: sepia(0.25) contrast(1.1) brightness(0.8);
}

.project-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-details h3 {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.project-details p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
}

.project-year {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 700;
    text-align: right;
}

/* --- Info Sections --- */
.info-section {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2.5rem;
    padding: 6rem 0;
    border-top: 1px solid rgba(0,0,0,0.15);
}

.section-title {
    grid-column: 1 / 3;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.section-title span {
    margin-bottom: 0.5rem;
    display: block;
    color: var(--accent);
}

.section-content {
    grid-column: 3 / 7;
}

.section-content h2 {
    font-family: 'Shippori Mincho', serif;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
    margin-bottom: 3rem;
    max-width: 100%;
}

/* --- About Me Section --- */
.quote-card {
    background-color: #111;
    color: #f0f0f0;
    padding: 2rem;
    border-radius: 12px;
    max-width: 90%;
}

.quote-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.quote-text::before {
    content: '* ';
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quote-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details h4 {
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.author-details p {
    font-size: 0.9rem;
    color: #aaa;
}

/* --- Services Section --- */
.services-section .section-content h2 {
    margin-bottom: 4rem;
}

.services-list-container hr {
    border: none;
    height: 1px;
    background-color: #e0e0e0;
    margin: 2rem 0;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
    gap: 2rem;
}

.service-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-title h4 {
    font-size: 1.1rem;
    font-weight: 500;
}

.service-icon {
    font-size: 1.2rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 2rem;
}

.service-list li {
    color: #333;
    font-size: 1rem;
}

/* --- Recognition Section --- */
.recognition-section .section-content h2 {
    margin-bottom: 4rem;
}

.awards-list hr {
    border: none;
    height: 1px;
    background-color: #e0e0e0;
    margin: 0;
}

.award-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 0.5rem;
    transition: background-color 0.2s ease;
}

.award-item:hover {
    background-color: #f9f9f9;
}

.award-info {
    display: flex;
    flex-direction: column;
}

.award-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.award-header h4 {
    font-size: 1.2rem;
    font-weight: 500;
}

.award-icon {
    font-size: 1.3rem;
}

.award-details {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    padding-left: 2.8rem;
}

.award-details p {
    font-size: 0.9rem;
    color: #666;
}

.award-arrow {
    font-size: 1.8rem;
    color: #333;
    transition: transform 0.3s ease;
}

.award-item:hover .award-arrow {
    transform: translateX(5px) translateY(-5px);
}

/* --- Footer Section --- */
.footer {
    background-color: var(--ink);
    color: var(--cream);
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

.footer-container {
    position: relative;
    z-index: 2;
}

.footer-bg-text {
    position: absolute;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 15rem;
    font-family: 'Shippori Mincho', serif;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.02);
    z-index: 1;
    pointer-events: none;
    white-space: nowrap;
}

.footer-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* UPDATED: from center to flex-start */
    text-align: left;       /* UPDATED: from center to left */
    margin: 0 auto 5rem auto;
    max-width: 100%;        /* Allow it to fill the container width */
    padding: 0 2rem;        /* Add padding to align with content above */
}

.footer-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #333;
    margin-bottom: 2rem;
}

.footer-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -1.5px;
    margin-bottom: 2rem;
    width:50%;
}

.footer-cta .get-in-touch {
    background-color: #ffffff;
    color: #111111;
}

.footer-cta .get-in-touch:hover {
    background-color: #f0f0f0;
}

.footer-divider {
    border: none;
    height: 1px;
    background-color: #333;
    margin: 0 4rem 2rem 4rem; /* Add margin to align with padding */
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4rem 2rem 4rem;
    font-size: 0.9rem;
    color: #a0a0a0;
}

.footer-links, .footer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* --- Project Detail Page --- */

.project-detail-page {
    padding-top: 2rem;
}

.project-detail-header {
    margin-bottom: 6rem;
}

.back-button {
    font-weight: 500;
    color: #555;
    transition: color 0.2s ease;
}

.back-button:hover {
    color: #111;
}

.project-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.project-title-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -1px;
}

.project-description-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 3rem;
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.meta-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.project-meta p {
    font-size: 1rem;
    font-weight: 500;
    color: #111;
    line-height: 1.4;
    margin: 0;
}

.project-image-container {
    margin-bottom: 6rem;
}

.project-image-container video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background-color: #f0f0f0;
    border: #000000 2px solid;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    
}

.project-subsection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.subsection-title h3 {
    font-weight: 500;
    color: #555;
}

.subsection-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    background-color: #f0f0f0;
}

/* --- Poster Aesthetic Detail Pages --- */
.poster-page {
    background-color: #e4dfd6;
    color: #333;
    font-family: 'Inter', sans-serif;
    padding: 0;
}

.poster-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem;
    position: relative;
    box-sizing: border-box;
    background-color: inherit;
}

.poster-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #333;
    padding-bottom: 1rem;
    margin-bottom: 3rem;
}

.poster-title-huge {
    font-size: 6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -3px;
    color: #86a3b8;
    line-height: 0.9;
    margin-bottom: 0.5rem;
}

.poster-subtitle {
    font-size: 2.2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.poster-jp-text {
    font-weight: 700;
    letter-spacing: 2px;
}

.poster-image-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.poster-image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.15) contrast(1.1) brightness(0.9);
}

.poster-body-text {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #333;
    column-count: 2;
    column-gap: 3rem;
    margin-bottom: 4rem;
}

.poster-architecture {
    background: #191919;
    color: #a4d29f;
    font-family: monospace;
    padding: 2rem;
    border-radius: 4px;
    white-space: pre-wrap;
    font-size: 0.95rem;
    overflow-x: auto;
    line-height: 1.4;
    margin-top: 2rem;
    margin-bottom: 4rem;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    border-left: 5px solid #a4d29f;
}

.poster-decorator {
    font-size: 1.5rem;
    line-height: 1;
}

.poster-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    border-top: 1px solid #333;
    padding-top: 1rem;
    margin-top: 2rem;
    align-items: center;
}

/* Specific theme variants */
.theme-tokyo { background-color: #f4f1e1; }
.theme-tokyo .poster-title-huge { color: #86a3b8; }

.theme-citytour { background-color: #d9d5c8; }
.theme-citytour .poster-subtitle { font-family: 'Playfair Display', serif; font-style: italic; }
.theme-citytour .poster-title-huge { color: #4a5d4e; }

.theme-sadhappy { background-color: #e4dfd6; }
.theme-sadhappy .poster-title-huge { color: #4a4a4a; font-size: 5rem; text-transform:none; letter-spacing:-1px;}

@media (max-width: 768px) {
    .poster-body-text { column-count: 1; }
    .poster-image-grid { grid-template-columns: 1fr; }
    .poster-title-huge { font-size: 4rem; }
    .poster-container { padding: 2rem; }
}