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

    
}

:root {
    --color-cream: #faf8f5;
    --color-teal: #4DAEA4;
    --color-black: #1a1a1a;
    --color-white: #ffffff;
    --font-noto: 'Noto Sans JP', sans-serif;
    --font-noto-serif: 'Noto Serif JP', serif;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background: #FFFEF5;
    font-family: var(--font-noto);
    background-color: var(--color-cream);
    color: var(--color-black);
    line-height: 1.6;
    font-size: 16px;
}

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

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

/* Container */
.header__inner,
.planning__inner,
.team__inner,
.footer__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.recruitment__inner {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.portfolio__inner {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.hero__inner {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Header */
.header {
    padding: 20px 0 40px;
    position: relative;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 60px;
}

.header__menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.header__menu-icon {
    display: flex;
    flex-direction: column;
    width: 30px;
    height: 24px;
    justify-content: space-between;
}

.header__menu-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-black);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.header__menu-toggle.active .header__menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.header__menu-toggle.active .header__menu-icon span:nth-child(2) {
    opacity: 0;
}

.header__menu-toggle.active .header__menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.header__logo {
    left: 50%;
    width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.header__logo img {
    max-width: 60px;
    width: 37.5%;
    height: auto;
}

.header__nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(250, 248, 245, 0.98);
    z-index: 1000;
    transition: left 0.3s ease;
    padding: 100px 40px 40px;
    overflow-y: auto;
}

.header__nav.active {
    left: 0;
}

.header__nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
}

.header__nav-item {
    font-size: 24px;
    font-weight: 500;
}

.header__nav-item a {
    color: var(--color-black);
    transition: color 0.3s ease;
    display: block;
    padding: 10px 0;
}

.header__nav-item a:hover {
    color: var(--color-teal);
}

/* Hero Section */
.hero {
    padding: 0;
    position: relative;
	
    background-image: url('../images/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero__inner {
    position: relative;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.hero__content {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 20px;
    background-color: var(--color-cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero__content-inner {
    text-align: center;
}

.hero__title {
    font-size: clamp(32px, 6vw, 64px);
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero__text {
    margin-bottom: 0;
}

.hero__text-line {
    font-size: clamp(14px, 3vw, 24px);
    margin-bottom: 8px;
    line-height: 1.6;
}

.hero__vertical-text--left {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: clamp(14px, 2vw, 18px);
    line-height: 2.5;
    text-align: left;
    letter-spacing: 0.1em;
    align-self: center;
}

/* Portfolio Section */
.portfolio {
    padding: 50px 0;

    overflow-x: hidden;
}

.portfolio__slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 40px 20px;
    width: 100%;
}

.portfolio__items-wrapper {
    flex: 1;
    min-width: 0;
}

.portfolio__items {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.portfolio__item {
    background-color: #e0e0e0;
    aspect-ratio: 16/9;
    min-width: 390px;
    width: 390px;
    flex-shrink: 0;
    position: relative;
    border-radius: 2px;
    overflow: visible;
}

.portfolio__prev,
.portfolio__next {
    background-color: var(--color-teal);
    color: var(--color-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

.portfolio__prev:hover,
.portfolio__next:hover {
    background-color: #3ab5ae;
    transform: scale(1.1);
}

.portfolio__prev:disabled,
.portfolio__next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.portfolio__prev:disabled:hover,
.portfolio__next:disabled:hover {
    transform: none;
}

.portfolio__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0 50px;
    padding: 0 20px;
}

.portfolio__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.portfolio__dot.active {
    background-color: var(--color-teal);
    transform: scale(1.2);
}

.portfolio__item-year {
    position: absolute;
    top: 10px;
    right: 0;
    font-size: 16px;
    background-color: #ffffff;
    line-height: 1;
    padding: 4px 12px;
    transform: rotate(90deg);
    transform-origin: center;
    z-index: 2;
    white-space: nowrap;
}

.portfolio__item-text {
    position: absolute;
    top: -40px;
    left: 15px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    display: flex;
    flex-direction: column;
    gap: 7px;
    z-index: 2;
}

.portfolio__item-text-line {
    background-color: #ffffff;
    padding: 10px 8px;
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: 0.1em;
    white-space: nowrap;
    font-family: var(--font-noto-serif);
}

.portfolio__button-wrapper {
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Button */
.button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 40px;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.button--teal {
    background-color: var(--color-teal);
    color: var(--color-white);
}

.button--teal:hover {
    background-color: #3ab5ae;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.button__arrow {
    font-size: 22px;
    line-height: 1;
}

/* Planning Section */
.planning {
    padding: 50px 0;
}

.planning__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    position: relative;
}

.planning__content {
    order: 1;
    position: relative;
    z-index: 2;
}

.planning__title {
    width: auto;
    margin: 0;
    font-size: clamp(40px, 5vw, 64px);
    font-weight:600;
    margin-bottom: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background-color: #ffffff;
    padding: 20px 30px;
    display: inline-block;
}

.planning__image-wrapper {
    position: relative;
    order: 2;
    margin-bottom: 30px;
}

.planning__image {
    width: 100%;
}

.planning__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.planning__vertical-text {
    position: absolute;
    top: -30px;
    right: 30px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 20px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 15px;
    letter-spacing: 0.1em;
    white-space: nowrap;
    z-index: 2;
    font-family: var(--font-noto-serif);
}

.planning__vertical-text span {
    background-color: #ffffff;
    padding: 20px 10px;
}

.planning__text--below {
    order: 3;
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.8;
    max-width: 800px;
}

/* Team Section */
.team {
    padding: 50px 0;
}

.team__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    position: relative;
}

.team__content {
    order: 1;
    position: relative;
    z-index: 2;
}

.team__image-wrapper {
    position: relative;
    order: 2;
    margin-bottom: 30px;
}

.team__image {
    width: 100%;
}

.team__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.team__vertical-text {
    position: absolute;
    top: -30px;
    left: 30px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 20px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 15px;
    letter-spacing: 0.1em;
    white-space: nowrap;
    z-index: 2;
    font-family: var(--font-noto-serif);
}

.team__vertical-text span {
    background-color: #ffffff;
    padding: 20px 10px;
}

.team__text--below {
    order: 3;
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.8;
    max-width: 800px;
}

.team__title {
    width: auto;
    max-width: 100%;
    margin: 0;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background-color: #ffffff;
    padding: 20px 30px;
    display: inline-block;
}

/* Recruitment Section */
.recruitment {
    padding: 50px 0;
}

.recruitment__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    position: relative;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.recruitment__content {
    order: 1;
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.recruitment__title {
    width: auto;
    margin: 0;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background-color: #ffffff;
    padding: 20px 30px;
    display: inline-block;
}

.recruitment__image-wrapper {
    position: relative;
    order: 2;
    margin-bottom: 30px;
    width: 100%;
}

.recruitment__image {
    width: 100%;
}

.recruitment__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.recruitment__vertical-text {
    position: absolute;
    top: -30px;
    right: 30px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 20px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 15px;
    letter-spacing: 0.1em;
    white-space: nowrap;
    z-index: 2;
    font-family: var(--font-noto-serif);
}

.recruitment__vertical-text span {
    background-color: #ffffff;
    padding: 20px 10px;
}

.recruitment__text--below {
    order: 3;
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.8;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.recruitment__button-wrapper {
    order: 4;
    margin-top: 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Footer */
.footer {
    padding: 40px 0 30px;
    border-top: 1px solid #ddd;
    margin-top: 30px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
    align-items: center;
}

.footer__logo {
    order: 1;
}

.footer__logo img {
    margin: 0 auto;
    max-width: 200px;
}

.footer__nav {
    order: 2;
}

.footer__nav-list {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.footer__nav-item {
    font-size: 18px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.1em;
    font-family: var(--font-noto-serif);
}

.footer__nav-item a {
    transition: color 0.3s ease;
    display: block;
}

.footer__nav-item a:hover {
    color: var(--color-teal);
}

/* Tablet Styles */
@media (min-width: 768px) {
    .header__logo img {
        max-width: 120px;
        width: 75%;
    }
    .header__inner,
    .planning__inner,
    .team__inner,
    .footer__inner {
        padding: 0 60px;
        position: relative;
    }

    .recruitment__content {
        padding: 0 60px;
    }

    .recruitment__text--below {
        padding: 0 60px;
    }

    .recruitment__button-wrapper {
        padding: 0 60px;
    }

    .portfolio__slider {
        padding: 0 60px;
    }

    .portfolio__dots {
        padding: 0 60px;
    }

    .portfolio__button-wrapper {
        padding: 0 60px;
    }


    .header__nav {
        padding: 120px 60px 60px;
    }

    .header__nav-list {
        gap: 40px;
    }

    .header__nav-item {
        font-size: 28px;
    }

    .hero__content {
        padding: 60px 60px;
        flex-direction: row;
        align-items: flex-start;
        gap: 60px;
    }

    .hero__content-inner {
        text-align: left;
        flex: 1;
    }

    .hero__vertical-text--left {
        flex-shrink: 0;
        margin-top: 0;
    }

    .planning__inner {
        grid-template-columns: 1fr 1.5fr;
        gap: 60px;
        align-items: start;
    }

    .planning__content {
        order: 1;
    }

    .planning__title {
        width: 600px;
        margin: 35% -150px auto auto;
    }



    .planning__image-wrapper {
        order: 2;
        margin-bottom: 0;
    }

    .planning__text--below {
        order: 3;
        grid-column: 1 / -1;
    }

    .team__inner {
        grid-template-columns: 1.5fr 1fr;
        gap: 60px;
        align-items: start;
    }

    .team__inner {
        grid-template-columns: 1.5fr 1fr;
        gap: 60px;
        align-items: start;
    }

    .team__image-wrapper {
        order: 1;
        margin-bottom: 0;
    }

    .team__content {
        order: 2;
    }

    .team__title {
        width: 600px;
        margin: 35% auto auto -150px;
    }

    .team__text--below {
        order: 3;
        grid-column: 1 / -1;
    }

    .recruitment__inner {
        grid-template-columns: 1fr 1.5fr;
        gap: 60px;
        align-items: start;
    }

    .recruitment__content {
        order: 1;
		 margin: auto -150px auto auto!important;
    }

    .recruitment__title {
		padding:0;
       width:100%;
    }

    .recruitment__image-wrapper {
        order: 2;
        margin-bottom: 0;
    }

    .recruitment__text--below {
        order: 3;
        grid-column: 1 / -1;
    }

    .footer__inner {
        grid-template-columns: auto 1fr;
        text-align: left;
    }

    .footer__logo {
        order: 1;
    }

    .footer__nav {
        order: 2;
    }

    .footer__nav-list {
        justify-content: flex-end;
        gap: 30px;
        align-items: flex-start;
    }
    
    .footer__nav-item {
        writing-mode: vertical-rl;
        text-orientation: upright;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .header__inner,
    .planning__inner,
    .team__inner,
    .footer__inner {
        padding: 0 80px;
    }

    .recruitment__content {
        padding: 0 80px;
    }

    .recruitment__text--below {
        padding: 0 80px;
    }

    .recruitment__button-wrapper {
        padding: 0 80px;
    }

    .portfolio__slider {
        padding: 0 80px;
    }

    .portfolio__dots {
        padding: 0 80px;
    }

    .portfolio__button-wrapper {
        padding: 0 80px;
    }


    .hero {
        padding: 0 0 0;
    }

    .hero__content {
        padding: 80px 80px;
    }

    .hero__title {
        font-size: 64px;
    }

    .hero__text-line {
        font-size: 24px;
    }

    .hero__vertical-text--left {
        font-size: 18px;
    }

    .portfolio {
        padding: 120px 0;
    }

    .portfolio__items {
        gap: 40px;
    }

    .planning,
    .team,
    .recruitment {
        padding: 120px 0;
    }


    .planning__inner {
        gap: 80px;
    }

    .team__inner {
        gap: 80px;
    }

    .recruitment__inner {
        gap: 80px;
    }
}

/* Large Desktop Styles */
@media (min-width: 1440px) {
    .header__inner,
    .planning__inner,
    .team__inner,
    .footer__inner {
        padding: 0 100px;
    }

    .recruitment__content {
        padding: 0 100px;
    }

    .recruitment__text--below {
        padding: 0 100px;
    }

    .recruitment__button-wrapper {
        padding: 0 100px;
    }

    .portfolio__slider {
        padding: 0 100px;
    }

    .portfolio__dots {
        padding: 0 100px;
    }

    .portfolio__button-wrapper {
        padding: 0 100px;
    }


    .hero__content {
        padding: 100px 100px;
    }

    .hero__vertical-text--left {
        font-size: 18px;
    }
}

/* Animation */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.fade-in {
    opacity: 1;
    transform: translateY(0);
}
