:root {
    --font-main: 'Noto Sans JP', sans-serif;
    --color-text: #333333;
    --color-bg: #ffffff;
    --color-accent-blue: #2563eb;
    /* Example blue */
    --header-height: 60px;
}

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

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

/* Header */
.header {
    display: flex;
    justify-content: flex-end;
    /* Align menu button to right */
    align-items: center;
    padding: 0 20px;
    height: var(--header-height);
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    z-index: 100;
}

.header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    margin: 0;
    /* Reset h1 margin */
}

.header__logo img {
    height: 40px;
    /* Adjust based on logo aspect ratio */
    width: auto;
}

.header__menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 101;
    /* Ensure above logo if overlap */
}

.header__menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
}

/* Hero */
.hero {
    /* height: 80vh; Remove fixed height to accommodate content */
    /* min-height: 80vh; Removed to let content dictate height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Align to top */
    align-items: center;
    text-align: center;
    padding: 0 0 60px;
    /* Remove side padding for full width video if needed, add bottom padding */
    background-color: #fff;
}

.hero__video {
    width: 100%;
    height: calc(100vh - var(--header-height));
    /* Header + Video = 100vh */
    object-fit: cover;
    /* Placeholder color */
    display: block;
    /* Remove inline gap causing a thin line below the video */
    margin-bottom: 40px;
}

.hero__content {
    padding: 0 20px;
}

.hero__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
    line-height: 1.5;
}

.hero__subtitle {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Common Section Styles */
section {
    padding: 60px 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    font-family: serif;
    /* Or a specific serif font if needed */
}

.section-title--blue {
    color: #1e40af;
    /* Blue */
}

.section-title--red {
    color: #b91c1c;
    /* Red */
}

.section-title--green {
    color: #15803d;
    /* Green */
}

.section-title--purple {
    color: #6b21a8;
    /* Purple */
}

/* Vision & Business Wrapper */
.vision-business-bg {
    /* 
       Layer 1: Top fade (White to Transparent) - Smooth start from Hero
       Layer 2: Bottom fade (Transparent to White) - End at top half of Business
       Layer 3: Background Image
    */
    background-image:
        linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 15%),
        linear-gradient(180deg, rgba(255, 255, 255, 0) 50%, #FFFFFF 80%),
        url('images/vision_bg.png');
    background-size: 100% auto, 100% auto, cover;
    /* 背景画像をコンテナ全体に広げてBusiness側まで回り込ませる */
    background-position: center top, center top, center top;
    background-repeat: no-repeat;
}

/* Vision */
.vision {
    /* background: linear-gradient(180deg, #ffffff 0%, #e0e7ff 100%); Removed for shared bg */
    background: transparent;
    text-align: left;
}

.vision__lead {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.8;
}

.vision__text {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.vision__sub {
    font-size: 12px;
    color: #666;
    margin-top: 30px;
    text-align: right;
}

/* Business */
.business {
    /* background-color: #fff; Removed for shared bg */
    background: transparent;
}

.business__card {
    background-color: rgba(255, 255, 255, 0.9);
    /* Add transparency to card to show bg slightly or keep white */
    border-radius: 8px;
    overflow: visible;
    padding: 20px;
    /* Add padding inside card */
    /* box-shadow: 0 4px 6px rgba(0,0,0,0.1); */
    /* Optional shadow */
}

.business__text-area {
    margin-bottom: 20px;
}

.business__card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.business__card-desc {
    font-size: 13px;
    line-height: 1.7;
    color: #444;
}

.business__image-area {
    margin-top: 32px;
}

.business__slider {
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 8px;
}

.business__track {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: business-scroll 28s linear infinite;
}

.business__img {
    height: 220px;
    flex: 0 0 auto;
    border-radius: 8px;
    object-fit: cover;
}

.business__track:hover {
    animation-play-state: paused;
}

@keyframes business-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Portfolio */
.portfolio {
    background: none;
    overflow: hidden;
    /* Prevent horizontal scroll on body if items overflow */
}

.portfolio__grid {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    /* Enable horizontal scroll */
    padding-bottom: 10px;
    /* Space for scrollbar (hidden but good practice) */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */

    /* Hide scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.portfolio__grid::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.portfolio__text-area {
    background:
        linear-gradient(180deg, #ffffff 0%, #ffffff 55%, rgba(255, 255, 255, 0) 75%),
        url('images/portfolio_bg.png') center 130% / cover no-repeat;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 48px 20px 64px;
    border-radius: 0;
    margin-top: 24px;
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.portfolio__text-area::before,
.portfolio__text-area::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 0;
}

.portfolio__text-area::before {
    top: 0;
    height: 140px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.portfolio__text-area::after {
    bottom: 0;
    height: 140px;
    background: linear-gradient(0deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.portfolio__title,
.portfolio__desc {
    position: relative;
    z-index: 1;
}

.portfolio__item {
    flex: 0 0 80%;
    /* Show 80% of the item width, adjust as needed */
    aspect-ratio: 16/9;
    /* Change aspect ratio if needed, or keep 1/1 */
    background-color: #eee;
    border-radius: 8px;
}

.portfolio__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.portfolio__desc {
    font-size: 13px;
    line-height: 1.7;
    color: #444;
}

/* News */
.news {
    background-color: #fff;
    padding-bottom: 80px;
}

.news__inner {
    max-width: 460px;
    margin: 0 auto;
}

.news .section-title {
    margin-bottom: 26px;
    font-family: var(--font-main);
    font-weight: 700;
}

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

.news__item {
    border-bottom: 1px solid #e6e6e6;
    padding: 18px 0 16px;
}

.news__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.news__date {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #4a4a4a;
}

.news__tag {
    font-size: 10px;
    letter-spacing: 0.08em;
    color: #575757;
    border: 1px solid #b0b0b0;
    padding: 4px 12px 3px;
    border-radius: 999px;
    line-height: 1;
}

.news__title {
    font-size: 14px;
    font-weight: 700;
    color: #242424;
    letter-spacing: 0.04em;
}

.news__more {
    text-align: center;
    margin-top: 52px;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #3a3a3a;
    color: #f8f8f8;
    padding: 18px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.14em;
    width: 280px;
    max-width: 100%;
    text-transform: lowercase;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.news__image-block {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0 0 60px;
}

.news__image {
    display: block;
    width: 100vw;
    height: auto;
    margin: 0;
    object-fit: cover;
}

/* Contact */
.contact {
    padding: 80px 20px 100px;
    background-color: #fff;
}

.contact__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: serif;
    text-align: center;
}

.contact__text {
    text-align: center;
    font-size: 14px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact__content {
    max-width: 520px;
    margin: 0 auto;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact__input,
.contact__textarea {
    width: 100%;
    padding: 16px 14px;
    border: 1px solid #cfcfcf;
    border-radius: 3px;
    font-size: 14px;
    font-family: inherit;
    color: #444;
    background-color: #fff;
}

.contact__input::placeholder,
.contact__textarea::placeholder {
    color: #b5b5b5;
    letter-spacing: 0.05em;
}

.contact__textarea {
    height: 140px;
    resize: vertical;
}

.btn-submit {
    background-color: #3b3b3b;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    margin: 10px auto 0;
    width: 80%;
    max-width: 360px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.footer__copyright {
    font-size: 10px;
    color: #aaa;
}
