@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500&family=Shippori+Mincho:wght@400;500;600&display=swap');

:root {
    --font-base: 'Noto Sans JP', sans-serif;
    --font-serif: 'Shippori Mincho', serif;
    --color-text: #333333;
    /* Softer black */
    --color-text-light: #666666;
    --color-bg-light: #ffffff;
    --color-accent: #8DA0B6;
    /* Refined muted blue/grey */
    --color-bg-warm: #F9F8F6;
    /* Paper-like warm white */

    --transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
    font-family: var(--font-base);
    color: var(--color-text);
    line-height: 2;
    background-color: var(--color-bg-warm);
    overflow-x: hidden;
    text-align: center;
    -webkit-font-smoothing: antialiased;
}

/* Typography refined */
h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: 0.08em;
}

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

/* Header Refined */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    /* Solid white to match logo background */
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.02);
    transition: background 0.3s;
}

/* Consulting Split Layout */
/* Consulting Card Layout */
.consulting-card {
    display: flex;
    flex-direction: row-reverse;
    /* Image on right */
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
    /* Ensure equal height */
}

/* Modifier for Image Left */
.consulting-card.reverse {
    flex-direction: row;
}

.consulting-content {
    flex: 1;
    text-align: left;
    padding: 5rem;
    /* Spacious internal padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.consulting-img-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    /* Ensure image doesn't overflow */
}

.consulting-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Remove inline gap */
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-elegant:hover .card-img-top {
    transform: scale(1.05);
}

.card-elegant {
    background: #fff;
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-elegant-content-inner {
    padding: 2rem;
    position: relative;
}

/* Responsive adjustment */
@media (max-width: 900px) {

    .philosophy-layout,
    .consulting-layout,
    .consulting-card {
        flex-direction: column;
        gap: 0;
        /* Remove gap for card style */
    }

    .consulting-card {
        max-width: 90%;
        margin: 0 auto;
    }

    .consulting-content {
        padding: 3rem;
    }

    .consulting-img-wrapper {
        min-height: 300px;
    }

    .cards-elegant-grid {
        grid-template-columns: 1fr;
    }
}

/* Philosophy Section New Layout */
.section-philosophy {
    padding: 8rem 2rem;
    background: var(--color-bg-warm);
}

.philosophy-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.philosophy-image-wrapper {
    flex: 1;
    position: relative;
}

.philosophy-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
}

.philosophy-content-card {
    flex: 1;
    background: #fff;
    padding: 4rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border-radius: 2px;
    margin-left: -5rem;
    /* Overlap effect */
    position: relative;
    z-index: 2;
    text-align: left;
}

/* Responsive adjustment for Philosophy */
@media (max-width: 900px) {
    .philosophy-layout {
        flex-direction: column;
        gap: 0;
    }

    .philosophy-content-card {
        margin-left: 0;
        margin-top: -3rem;
        width: 90%;
        padding: 2rem;
    }

    .philosophy-img {
        height: 400px;
    }
}

/* Add background on scroll support if needed via JS, keeping transparent for now for high-end feel */

/* Add background on scroll support if needed via JS, keeping transparent for now for high-end feel */

.logo {
    display: block;
    height: 120px;
    /* Adjusted to 120px */
    width: auto;
}

.logo img {
    height: 100%;
    width: auto;
    display: block;
    /* Clean up background to match white header */
    filter: grayscale(100%) contrast(150%) brightness(110%);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 20px;
    /* Updated to 20px */
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding-bottom: 5px;
}

/* ... existing code ... */
/* Footer styling update for logo */
.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
}



.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--color-text);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Refined */
.hero-refined {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 4rem;
    padding-top: 10rem;
    /* Compensation for fixed header (approx 120-150px) to optically center */
}

.hero-refined.hero-sub {
    height: 60vh;
    min-height: 400px;
    padding-top: 11rem;
    /* Slightly more for sub-pages to ensure perfect optical center */
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Very faint image/video for "refined" feel */
/* filter: blur(0px) grayscale(20%); Removed for video clarity, can re-add if needed */

.hero-img-blur {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.2;
    filter: blur(0px) grayscale(20%);
    animation: zoomSlow 20s linear infinite alternate;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.6;
    /* Adjust for text readability */
}

/* Optional dot texture overlay to make text more readable on video */
.hero-overlay-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    /* Light overlay */
    background-image: radial-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
}

@keyframes zoomSlow {
    0% {
        transform: scale(1.0);
    }

    100% {
        transform: scale(1.25);
    }
}

.hero-content-refined {
    max-width: 800px;
    z-index: 1;
}

.hero-catch-en {
    font-family: var(--font-base);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
    text-transform: uppercase;
}

.hero-title-refined {
    font-size: 3rem;
    margin-bottom: 2.5rem;
    line-height: 1.5;
    color: #222;
}

.hero-desc-simple {
    font-size: 1rem;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
}

/* Long Text Section */
.section-text-heavy {
    padding: 8rem 2rem;
    background: #fff;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.section-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.section-heading-serif {
    font-size: 2.2rem;
    margin-bottom: 4rem;
    line-height: 1.4;
}

.long-text-content p {
    margin-bottom: 2.5rem;
    text-align: justify;
    text-justify: inter-ideograph;
}

/* Locations / Cards Elegant */
.section-locations {
    padding: 8rem 2rem;
    background: var(--color-bg-warm);
}

.cards-elegant-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 4rem auto 0;
}

.card-elegant {
    background: #fff;
    padding: 3rem;
    text-align: left;
    /* Keep card content left aligned for readability inside center layout */
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card-elegant:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.card-location-code {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: #f0f0f0;
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-weight: 700;
}

/* Stylish Contact Form (Premium) */
.contact-section {
    padding: 6rem 1rem;
    max-width: 700px;
    margin: 0 auto;
}

.contact-form-premium {
    background: #ffffff;
    padding: 4rem;
    border-radius: 4px;
    /* Slight roundness */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
    /* Soft, deep shadow */
}

.form-row {
    margin-bottom: 3rem;
    /* Generous spacing */
    position: relative;
}

.form-label-premium {
    display: block;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
}

.form-label-premium span {
    color: var(--color-accent);
    font-size: 0.8rem;
    margin-left: 0.5rem;
    vertical-align: top;
}

.form-input-premium,
.form-textarea-premium,
.form-select-premium {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 0.5rem 0 1rem 0;
    /* Breathing room */
    font-family: var(--font-base);
    font-size: 1.1rem;
    color: #333;
    background: transparent;
    border-radius: 0;
    transition: all 0.4s ease;
}

.form-input-premium:focus,
.form-textarea-premium:focus,
.form-select-premium:focus {
    outline: none;
    border-bottom-color: var(--color-accent);
    padding-left: 1rem;
    /* Slight indent text effect on focus */
    background: linear-gradient(to right, rgba(141, 160, 182, 0.05), transparent);
}

.form-textarea-premium {
    resize: none;
    min-height: 150px;
}

.btn-wrapper {
    margin-top: 5rem;
    text-align: center;
}

.submit-premium {
    background-color: #333;
    color: #fff;
    border: 1px solid #333;
    padding: 1.2rem 6rem;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #fff;
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.submit-premium:hover {
    color: #333;
}

.submit-premium:hover::before {
    width: 100%;
}

@media (max-width: 768px) {
    .contact-form-premium {
        padding: 2rem;
    }

    .submit-premium {
        width: 100%;
        /* Full width button on mobile */
        padding: 1.2rem 2rem;
    }
}

/* News List Styling (Card Style) */
.news-list {
    max-width: 900px;
    margin: 4rem auto;
    border-top: none;
    /* Remove list border */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* Space between cards */
}

.news-item {
    display: flex;
    align-items: center;
    padding: 2rem;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.news-item:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.news-meta {
    display: flex;
    flex-direction: column;
    /* Stack date and badge */
    align-items: flex-start;
    gap: 0.5rem;
    min-width: 140px;
    border-right: 1px solid #eee;
    padding-right: 1.5rem;
    margin-right: 2rem;
}

.news-date {
    font-family: var(--font-base);
    color: var(--color-text-light);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.news-badge {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    font-size: 0.7rem;
    background-color: #333;
    color: #fff;
    border-radius: 50px;
    /* Pill shape */
    letter-spacing: 0.05em;
    min-width: auto;
    text-align: center;
}

.news-badge.column {
    background-color: var(--color-accent);
}

.news-title {
    flex: 1;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-text);
    padding-left: 0;
    line-height: 1.6;
    transition: color 0.3s;
}

/* Arrow in circle */
.news-arrow {
    width: 40px;
    height: 40px;
    min-width: 40px;
    /* Prevent shrink */
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1.5rem;
    font-size: 1.2rem;
    color: #999;
    transition: all 0.4s ease;
}

.news-item:hover .news-arrow {
    background: var(--color-accent);
    color: #fff;
    transform: rotate(-45deg);
    /* Arrow points up-right */
}

/* Adjust arrow character to allow rotation effect */
.news-arrow::after {
    content: '→';
    display: block;
    line-height: 1;
}

/* Footer */
footer {
    padding: 5rem 2rem;
    background: var(--color-bg-light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-logo {
    margin-bottom: 2rem;
    display: inline-block;
}

.footer-logo img {
    height: 200px;
    /* Large for footer */
    width: auto;
    filter: grayscale(100%) contrast(150%) brightness(110%);
    /* Ensure background is pure white */
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.footer-copy {
    font-size: 0.75rem;
    color: #ccc;
}

/* Fade up animation */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

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

/* Fade up animation */

/* Responsive */
@media (max-width: 768px) {
    .cards-elegant-grid {
        grid-template-columns: 1fr;
    }

    .hero-title-refined {
        font-size: 2rem;
    }

    .header {
        padding: 1.5rem;
    }

    .nav-menu {
        display: none;
    }

    /* Hamburger Menu Styles */
    .hamburger-menu {
        display: block;
        position: relative;
        z-index: 1002;
        width: 30px;
        height: 20px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .hamburger-menu span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--color-text);
        position: absolute;
        transition: all 0.3s ease-in-out;
    }

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

    .hamburger-menu span:nth-child(2) {
        top: 9px;
    }

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

    /* Active State (X shape) */
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg);
        bottom: 9px;
        /* Adjust to match top */
        top: 9px;
    }

    /* Mobile Nav Overlay */
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        z-index: 1001;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    .mobile-nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .mobile-nav-links a {
        font-family: var(--font-serif);
        font-size: 1.5rem;
        color: var(--color-text);
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease 0.1s;
    }

    .mobile-nav-overlay.active .mobile-nav-links a {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Default state for desktop: hide hamburger and mobile overlay */
@media (min-width: 769px) {
    .hamburger-menu {
        display: none;
    }

    .mobile-nav-overlay {
        display: none;
    }
}

/* Recruit Table Styles */
.recruit-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    font-size: 1rem;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    overflow: hidden;
}

.recruit-table th,
.recruit-table td {
    padding: 1.5rem 2rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.recruit-table th {
    background-color: var(--color-bg-warm);
    font-weight: 500;
    width: 30%;
    color: var(--color-text);
}

.recruit-table td {
    color: var(--color-text);
}

.recruit-table tr:last-child th,
.recruit-table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {

    .recruit-table th,
    .recruit-table td {
        display: block;
        width: 100%;
        padding: 1rem;
    }

    .recruit-table th {
        background-color: #fafafa;
        padding-bottom: 0.5rem;
    }

    .recruit-table td {
        padding-top: 0.5rem;
        padding-bottom: 2rem;
    }

    .recruit-table td {
        padding-top: 0.5rem;
        padding-bottom: 2rem;
    }
}

/* Magazine Overlay Layout */
.section-message-overlay {
    position: relative;
    padding: 10rem 2rem;
    background-image: url('recruit_message_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-card-overlay {
    background: rgba(255, 255, 255, 0.95);
    padding: 6rem;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    backdrop-filter: blur(10px);
    text-align: center;
    /* Center align by default */
}

/* Decorative border/line */
.message-card-overlay::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    bottom: 2rem;
    border: 1px solid rgba(141, 160, 182, 0.3);
    /* Accent color thin border */
    pointer-events: none;
}

.message-card-title {
    font-size: 2.5rem;
    line-height: 1.4;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1.5rem;
}

.message-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--color-accent);
}

.message-card-body {
    text-align: left;
    /* Keep body text left aligned for readability */
    max-width: 700px;
    margin: 0 auto;
    line-height: 2.2;
    font-size: 1.05rem;
}

.message-highlight {
    background: linear-gradient(transparent 70%, rgba(141, 160, 182, 0.2) 70%);
    font-weight: 500;
}

@media (max-width: 768px) {
    .message-card-overlay {
        padding: 3rem 2rem;
    }

    .message-card-overlay::before {
        top: 1rem;
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .message-card-title {
        font-size: 1.8rem;
    }
}