/* PC Style (min-width: 769px) */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Japanese Pattern Background */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%231D253B' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: var(--z-background);
}

.tate {
    writing-mode: vertical-rl;
    text-orientation: upright;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100px;
    height: 100vh;
    border-right: 1px solid rgba(29, 37, 59, 0.1);
    background: rgba(251, 250, 245, 0.9);
    z-index: var(--z-header);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
}

.header__logo {
    font-size: 1.2rem;
    font-family: var(--font-gothic);
    writing-mode: vertical-rl;
    letter-spacing: 0.2em;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-mark {
    display: block;
    width: 20px;
    height: 20px;
    background-color: var(--color-vermilion);
    border-radius: 50%;
}

.header__menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-mincho);
    font-size: 1rem;
    color: var(--color-indigo);
    padding: 20px 0;
    border-top: 1px solid rgba(29, 37, 59, 0.1);
    border-bottom: 1px solid rgba(29, 37, 59, 0.1);
    width: 60px;
    transition: background 0.3s;
}

.sp-menu-btn {
    display: none !important;
}

.header__menu-btn:hover {
    background: rgba(29, 37, 59, 0.05);
}

.tate-text {
    writing-mode: vertical-rl;
    letter-spacing: 0.3em;
}

/* Vertical Nav */
.vertical-nav {
    position: fixed;
    top: 40px;
    right: 60px;
    z-index: var(--z-nav);
}

.vertical-nav ul {
    display: flex;
    gap: 40px;
}

.vertical-nav a {
    writing-mode: vertical-rl;
    text-decoration: none;
    color: var(--color-indigo);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    position: relative;
    padding: 10px 0;
    transition: color 0.3s;
}

.vertical-nav a::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    width: 1px;
    height: 0%;
    background-color: var(--color-vermilion);
    transition: height 0.4s;
}

.vertical-nav a:hover {
    color: var(--color-vermilion);
}

.vertical-nav a:hover::after {
    height: 100%;
}

/* Main Content Adjustment */
main {
    margin-left: 100px;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 60px;
    position: relative;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
}

.hero__image-area {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    z-index: -1;
}

.image-mask {
    width: 100%;
    height: 100%;
    clip-path: polygon(20% 0%, 100% 0, 100% 100%, 0% 100%);
    overflow: hidden;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background-color: #dcdcdc;
    /* Add subtle gradient to mimic misty landscape */
    background: linear-gradient(135deg, #e0e0e0 0%, #a0a0a0 100%);
    position: relative;
}

.placeholder-img::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
}

.hero__content {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Center horizontally in tate mode */
    flex-direction: row-reverse;
    /* Right to Left */
    padding-right: 0;
}

.hero__lead {
    font-size: 1.2rem;
    letter-spacing: 0.5em;
    line-height: 2.5;
    margin-left: 80px;
    color: var(--color-gray);
    height: 400px;
}

.hero__main-title {
    height: 400px;
}

.hero__main-title h2 {
    font-size: 4rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    line-height: 1.8;
}

.scroll-sign {
    position: absolute;
    bottom: 40px;
    left: 60px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.scroll-sign span {
    font-family: var(--font-gothic);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
}

.scroll-sign .line {
    width: 1px;
    height: 80px;
    background-color: var(--color-indigo);
}

/* Philosophy */
.section {
    padding: 160px 0;
}

.container--narrow {
    max-width: 800px;
    text-align: center;
}

.section-badge {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.section-badge span {
    display: inline-block;
    border: 1px solid var(--color-vermilion);
    color: var(--color-vermilion);
    padding: 8px 24px;
    border-radius: 50%;
    /* Oval like hanko outline */
    font-size: 0.9rem;
}

.philosophy__title {
    font-size: 1.8rem;
    margin: 0 auto 40px;
    height: auto;
    letter-spacing: 0.2em;
    line-height: 1.6;
    text-align: center;
    border-bottom: 3px solid var(--color-vermilion);
    display: inline-block;
    padding-bottom: 20px;
    white-space: nowrap;
    width: auto;
    max-width: 100%;
}

.philosophy__text {
    margin-top: 60px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 2.4;
}

.hanko {
    width: 60px;
    height: 60px;
    border: 3px solid var(--color-vermilion);
    color: var(--color-vermilion);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 60px auto 0;
    writing-mode: vertical-rl;
    font-size: 1.1rem;
    line-height: 1.2;
    opacity: 0.9;
    background-color: rgba(255, 250, 250, 0.5);
}

/* Business */
.business__wrapper {
    display: flex;
    justify-content: flex-end;
    /* Align right */
    gap: 80px;
}

.business__title-area {
    width: 100px;
    display: flex;
    align-items: flex-start;
    position: relative;
    z-index: 10;
}

.business__title-area h3 {
    font-size: 3rem;
    border-right: 1px solid var(--color-indigo);
    padding-right: 40px;
    height: 400px;
    letter-spacing: 0.5em;
}

.business__list {
    display: flex;
    gap: 40px;
}

.business-card {
    width: 260px;
    background-color: #fff;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    transition: transform 0.4s;
    border: 1px solid #eee;
    overflow: hidden;
    cursor: pointer;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-num {
    position: absolute;
    top: 0;
    left: 20px;
    font-size: 2rem;
    font-family: var(--font-mincho);
    background: #fff;
    padding: 0 10px;
    color: var(--color-vermilion);
    z-index: 5;
}

.card-img {
    width: 100%;
    height: 180px;
    background-color: #eee;
    margin-bottom: 30px;
    position: relative;
}

.card-img::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid var(--color-indigo);
    z-index: -1;
}

.card-img--1 {
    background-image: url("../assets/business_advisory.png");
    background-size: cover;
    background-position: center;
}

.card-img--2 {
    background-image: url("../assets/business_development.png");
    background-size: cover;
    background-position: center;
}

.card-img--3 {
    background-image: url("../assets/business_web_strategy.png");
    background-size: cover;
    background-position: center;
}

.card-content h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-vermilion);
    display: inline-block;
    padding-bottom: 5px;
    line-height: 1.4;
}

.card-lead {
    font-size: 0.95rem;
    margin-bottom: 30px;
    color: #555;
    line-height: 2;
}

.card-detail {
    display: none;
}

.btn-text {
    text-decoration: none;
    color: var(--color-indigo);
    font-size: 0.9rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-text:hover {
    border-color: var(--color-vermilion);
    color: var(--color-vermilion);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;

}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: var(--z-modal);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background-color: #fefefe;
    padding: 40px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#modal-title {
    font-family: var(--font-mincho);
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-vermilion);
    display: inline-block;
    padding-bottom: 5px;
}

#modal-body p {
    line-height: 1.8;
    color: #444;
}

/* Employee */
.employee__container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
}

.employee__head {
    margin-top: 20px;
}

.employee__head h3 {
    font-size: 1.8rem;
    font-family: var(--font-mincho);
    background-image: linear-gradient(var(--color-vermilion), var(--color-vermilion));
    background-position: center bottom 10px;
    background-repeat: no-repeat;
    background-size: 1px 100px;
    padding-bottom: 20px;
    letter-spacing: 0.2em;
}

.employee__list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 600px;
}

.employee__card {
    display: flex;
    gap: 30px;
    align-items: center;
    background: #fff;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #eee;
}

/* Representative styling (Removed) */
/* .employee__card:first-child was previously targeting Representative */

.employee__img-box {
    width: 120px;
    height: 120px;
    background-color: #eee;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
    overflow: hidden;
}

.employee__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employee__img--1 {
    background: #dcecef;
    /* Placeholder color */
}

.employee__img--2 {
    background: #efebe9;
    /* Img is loaded via src in HTML now? standardizing */
}

.employee__info {
    flex-grow: 1;
}

.employee__name {
    font-family: var(--font-mincho);
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--color-vermilion);
    display: inline-block;
    padding-bottom: 5px;
}

.employee__name span {
    font-size: 0.8rem;
    margin-left: 10px;
    font-family: var(--font-gothic);
    color: #666;
}

.employee__role {
    font-family: var(--font-gothic);
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

.employee__desc {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #444;
}

/* Hamburger Menu (Hidden on PC) */
.header__menu-btn {
    display: none;
}

/* Sections Common */
.section {
    padding: 100px 0;
    margin-left: 100px;
    /* Header width */
    min-height: 100vh;
    display: flex;
    align-items: center;

}


/* Works */
.works__container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
}

.works__head {
    margin-top: 20px;
}

.works__head h3 {
    font-size: 2rem;
    font-family: var(--font-mincho);
    background-image: linear-gradient(var(--color-vermilion), var(--color-vermilion));
    background-position: left 0.3em top 20px;
    background-repeat: no-repeat;
    background-size: 1px 110px;
    letter-spacing: 0.4em;
    padding-left: 2em;
}

.works__content {
    flex: 1;
    max-width: 600px;
    font-family: var(--font-gothic);
}

.works__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.works__item {
    border-bottom: 1px solid rgba(29, 37, 59, 0.2);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: background 0.3s;
}

.works__item:first-child {
    border-top: 1px solid rgba(29, 37, 59, 0.2);
}

.works__client {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-indigo);
}

.works__desc {
    font-size: 0.95rem;
    color: var(--color-gray);
    padding-left: 1em;
}

/* Footer */
.footer {
    background-color: var(--color-indigo);
    color: var(--color-white);
    padding: 80px 0;
    margin-left: 100px;
    /* Offset for header */
    /* scroll-snap-align removed */
}

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

.footer__logo {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-mark.small {
    width: 15px;
    height: 15px;
    background-color: var(--color-vermilion);
}

.footer__col address {
    font-style: normal;
    font-size: 0.9rem;
    line-height: 2;
    opacity: 0.8;
}

.tate-links {
    display: flex;
    gap: 30px;
}

.tate-links a {
    writing-mode: vertical-rl;
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s;
    letter-spacing: 0.1em;
}

.tate-links a:hover {
    opacity: 1;
}

.footer__copy {
    writing-mode: vertical-rl;
    font-family: var(--font-gothic);
    font-size: 0.8rem;
    opacity: 0.5;
    letter-spacing: 0.1em;
}