/* --- Variables --- */
:root {
    --color-primary: #1F2A37;
    --color-bg: #F7F7F5;
    --color-accent: #B8A77A;
    --color-text: #1a1a1a;
    --color-text-light: #666666;
    --color-white: #FFFFFF;

    --font-jp: "Noto Sans JP", sans-serif;
    --font-en: "Jost", sans-serif;

    --container-pc: 1280px;
    --space-section: 100px;
}

/* --- Base & Overflow Fix --- */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-jp);
    font-size: 16px;
    line-height: 1.8;
		letter-spacing: 0.06em;
		font-feature-settings: "palt";
    -webkit-font-smoothing: antialiased;
}

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

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

/* --- Typography --- */
.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.2;
		color: var(--color-primary);
}

.section-title span {
    display: block;
    font-family: var(--font-en);
    font-size: 14px;
    color: var(--color-accent);
    letter-spacing: 0.3em;
    margin-bottom: 20px;
}

/* --- Buttons --- */
.button--arrow {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 260px;
    padding: 18px 30px;
    border: 1px solid currentColor;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
    transition: color 0.6s cubic-bezier(0.19, 1, 0.22, 1), background-color 0.6s cubic-bezier(0.19, 1, 0.22, 1), border-color 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
    background: transparent;
}

.button--arrow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--color-primary);
    transition: width 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.button--arrow::after {
    content: '→';
    font-family: var(--font-en);
    font-weight: 400;
    font-size: 18px;
    margin-left: 20px;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.button--arrow:hover {
    color: var(--color-white) !important;
    border-color: var(--color-primary);
}

.button--arrow:hover::before {
    width: 100%;
}

.button--arrow:hover::after {
    transform: translateX(10px);
}

.button--accent {
    color: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
}

.button--accent::before {
    background-color: var(--color-accent) !important;
}

.button--accent:hover {
    border-color: var(--color-accent) !important;
}

.recruit-section .button--arrow:hover {
    background-color: var(--color-white);
    color: var(--color-primary) !important;
    border-color: var(--color-white);
}

.recruit-section .button--arrow:hover::before {
    background-color: var(--color-white);
}

.button--circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1px solid var(--color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-en);
    font-size: 13px; /* Updated: 13px */
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: 0.4s;
    background: var(--color-white);
}

.button--circle:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 1000;
    transition: 0.5s;
}

.header--scrolled {
    height: 80px;
    background: var(--color-white);
    box-shadow: 0 5px 30px rgba(0,0,0,0.03);
}

.header__inner {
    max-width: 1600px;
    height: 100%;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
	height: 40px;
	display: block;
}

.header__list {
    display: flex;
    gap: 40px;
    align-items: center;
}

.header__item a {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header__label { font-size: 16px; font-weight: 700; }
.header__sub { font-family: var(--font-en); font-size: 13px; color: var(--color-accent); }

/* Hamburger */
.header__hamburger {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.header__hamburger span {
    display: block;
    width: 24px;
    height: 1px;
    background-color: var(--color-text);
    position: absolute;
    left: 8px;
    transition: all 0.4s;
}

.header__hamburger span:nth-child(1) { top: 16px; }
.header__hamburger span:nth-child(2) { top: 24px; }

.header__hamburger.is-active span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
.header__hamburger.is-active span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

/* --- Footer --- */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 120px 0 60px; /* 余白を少し広げました */
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 100px;
}

.footer__brand {
    max-width: 400px;
}

.footer__logo {
    height: 36px;
    margin-bottom: 24px;
}

.footer__tagline {
    font-size: 15px;
    opacity: 0.7;
    letter-spacing: 0.05em;
    line-height: 1.6;
}

.footer__nav ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 2列から3列へ、または要素数に合わせて調整 */
    gap: 40px 60px;
}

.footer__nav-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: 0.3s;
}

.footer__nav-jp {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.footer__nav-en {
    font-family: var(--font-en);
    font-size: 11px;
    color: var(--color-accent);
    letter-spacing: 0.2em;
    font-weight: 600;
    opacity: 0.8;
    transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.footer__nav-link:hover {
    color: var(--color-accent);
}

.footer__nav-link:hover .footer__nav-en {
    transform: translateY(-2px);
    opacity: 1;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px;
    font-size: 13px;
}

.footer__address-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__address { opacity: 0.6; }

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

.footer__sublinks a {
    opacity: 0.6;
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: 0.1em;
}

.footer__sublinks a:hover { opacity: 1; color: var(--color-accent); }

.footer__copyright {
    opacity: 0.3;
    font-family: var(--font-en);
    font-size: 11px;
    letter-spacing: 0.1em;
}

/* --- Utils --- */
.container { max-width: var(--container-pc); margin: 0 auto; padding: 0 40px; }
.container--wide { max-width: 1600px; margin: 0 auto; padding: 0 40px; }
.u-mb40 { margin-bottom: 40px; }
.u-mt40 { margin-top: 40px; }
.u-mt60 { margin-top: 60px; }
.u-mt80 { margin-top: 80px; }
.u-text-center { text-align: center; }

/* --- Reveal --- */
.js-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.js-reveal.is-active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Contact Section --- */
.contact-section {
    padding: var(--space-section) 0;
		background: var(--color-white) url("../images/contact_bg.jpg") no-repeat center center;
		background-size: cover;
    width: 100%;
    overflow: hidden;
}

.contact-section__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    background: var(--color-primary);
    color: var(--color-white);
}

.contact-section__content {
    padding: 120px 80px;
}

.contact-section__content .section-title {
		margin-bottom: 0.5em;
    color: var(--color-white);
}

.contact-section__text {
    font-size: 18px;
    opacity: 0.8;
}

.contact-section__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

/* --- Responsive Layout --- */
@media (max-width: 1024px) {
    :root {
        --space-section: 100px;
    }

    .header { height: 80px; }
    .header__inner { padding: 0 20px; }
    .header__list { display: none; }
    .header__hamburger { display: block; }

    .header__nav.is-open {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1050;
    }

    .header__nav.is-open .header__list {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .header__nav.is-open .header__item a {
        color: var(--color-text);
    }

    .header__nav.is-open .header__item--cta {
        margin-left: 0;
        margin-top: 20px;
    }

    .footer { padding: 80px 0 40px; }
    .footer__top { flex-direction: column; gap: 60px; margin-bottom: 60px; }
    .footer__nav ul { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .footer__bottom { flex-direction: column; align-items: flex-start; gap: 40px; }
    .footer__sublinks { flex-direction: column; gap: 15px; }
	
    .container, .container--wide { padding: 0 32px; }
	
		.contact-section {
				padding: var(--space-section) 0 0;
		}
    .contact-section__inner { grid-template-columns: 1fr; }
    .contact-section__content { padding: 60px 20px; text-align: center; }
    .contact-section__text { font-size: 15px; }
    .contact-section__image { height: 250px; }
}

@media (max-width: 640px) {
    .footer__nav ul { grid-template-columns: 1fr; }
	
		.container, .container--wide { padding: 0 16px; }
}
