/* ============================================
   Top Page Styles
   ============================================ */

/* Body adjustments for fixed header */
body.top-page {
    overflow-x: hidden;
}

.main {
    margin-top: 0;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/top/top_hero_section.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-black-transparent-20);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: left;
    color: var(--color-white);
    max-width: 1200px;
    min-width: 780px;
    width: 100%;
    margin-left: 140px;
    margin-top: calc(var(--header-height) + 30px);
}

.hero-title {
    font-size: 6rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.hero-title .line-1,
.hero-title .line-2 {
    display: block;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    margin-bottom: 40px;
    opacity: 0.9;
    text-transform: uppercase;
}

.hero-tagline {
    font-size: 3rem;
    letter-spacing: 0.1em;
    position: absolute;
    bottom: 40px;
    left: 40px;
    text-align: center;
    color: var(--color-white);
    z-index: 1;
}

/* PC版のtagline */
.hero-tagline-pc {
    display: block;
}

/* SP版のtagline（初期は非表示） */
.hero-tagline-sp {
    display: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 50px;
    color: var(--color-white);
    font-size: 10px;
    letter-spacing: 0.2em;
    opacity: 0.8;
    text-transform: uppercase;
    transform: rotate(90deg);
    transform-origin: center;
    z-index: 1;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 25px;
    height: 1px;
    background: var(--color-white);
    opacity: 0.8;
    transform: translateY(-50%);
}



/* Content Container */
.content-container {
    position: relative;
    min-height: 100vh;
    background-image: url('../images/top/top_content_section.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
}

.content-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-black-transparent-50);
    z-index: 1;
}

/* Side Navigation */
.side-navigation {
    position: fixed;
    top: calc(50% + var(--header-height) / 2);
    right: 30px;
    transform: translateY(-50%);
    z-index: 500;
    background: transparent;
    padding: 0;
    width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.side-navigation::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--color-white-transparent-60);
}

.side-navigation.visible {
    opacity: 1;
    visibility: visible;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-left: 20px;
}

.nav-item {
    margin: 0;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link {
    display: block;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--color-white-transparent-80);
}

.nav-item.active .nav-link {
    color: white;
}

.nav-item.active .nav-link::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 15px;
    right: 0;
    bottom: 15px;
    background: var(--color-primary);
    z-index: -1;
}

.nav-title {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 2px;
    color: white;
    line-height: 1.2;
}

.nav-item.active .nav-title {
    color: white;
}

.nav-subtitle {
    display: block;
    font-size: 0.75rem;
    color: var(--color-white-transparent-70);
    line-height: 1.3;
}

/* Content Sections */
.content-sections {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-right: 300px;
}

.content-section {
    min-height: 100vh;
    padding: 80px;
    padding-top: calc(50px + var(--header-height));
    color: white;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.section-content {
    max-width: 1000px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px var(--color-black-transparent-50);
    line-height: 1.1;
}

.section-subtitle {
    font-size: 3rem;
    margin-bottom: 4rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100vw - 50px);
    height: 2px;
    background: linear-gradient(to right, var(--color-white) 0%, var(--color-white) 90%, transparent 100%);
    z-index: -2;
}

.section-subtitle span {
    font-size: 1.1rem;
    opacity: 0.7;
    margin-left: 5px;
}

/* Common Section Header */
.section-header {
    margin-bottom: 3rem;
    margin-left: 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}

.section-header-subtitle {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    align-self: flex-start;
}

.section-header-title {
    font-size: 2.5rem;
    line-height: 1.1;
    letter-spacing: 0.1em;
    align-self: flex-start;
}

/* Section Watermark */
.section-watermark {
    font-size: 2.5rem;
    color: var(--color-white-transparent-15);
    letter-spacing: 0.1em;
    pointer-events: none;
    user-select: none;
    text-align: left;
    margin-top: 8rem;
    margin-bottom: 4rem;
    margin-left: 10px;
    height: auto;
}

/* PC版では改行を非表示 */
.sp-break {
    display: none;
}

/* Generic Item Grid Components */
.item-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* 3 items layout: 2 items on top row, 1 item on bottom left */
.item-grid .content-item:nth-child(3):last-child {
    grid-column: 1 / 2;
}

/* 2x2 Grid for sections with 4 items */
.item-grid-2x2 {
    grid-template-rows: 1fr 1fr;
}

/* Work section with 6 items: 3 rows of 2 columns */
.work-grid {
    grid-template-rows: repeat(3, 1fr);
}

.content-item {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.content-item:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.content-item:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.item-image {
    width: 100%;
    height: 200px;
    background: var(--color-white-transparent-15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white-transparent-50);
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-title {
    font-size: 1.2rem;
    line-height: 1.4;
    color: white;
    margin: 0;
    text-align: left;
    opacity: 0.7;
}





/* People Section */
.people-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* 1200px以下で3列に */
@media (max-width: 1200px) {
    .people-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

.people-card {
    text-align: left;
    opacity: 1;
    transform: scale(1);
    transition: transform 0.15s ease-out, filter 0.15s ease-out;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.people-card:hover {
    transform: translateY(-8px) !important;
    filter: brightness(1.1);
    text-decoration: none;
    color: inherit;
}

.people-card:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.people-card-wide {
    grid-column: span 2;
}

/* People Card Image */
.people-card-image {
    width: 200px;
    height: 200px;
    margin: 0 0 20px 0;
    overflow: visible;
    box-shadow: 0 8px 20px var(--color-black-transparent-30);
    position: relative;
}

.people-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* People Tag - 疑似要素として実装 */
.people-card-image::before {
    content: attr(data-tag);
    background: var(--color-primary);
    color: var(--color-white);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    top: -20px;
    left: 0;
    z-index: 3;
    white-space: nowrap;
    width: 120px;
    text-align: center;
    box-sizing: border-box;
}

/* タグ色の指定はdata-tag-color属性で行う */
.people-card-image[data-tag-color="navy"]::before,
.people-wide-image[data-tag-color="navy"]::before {
    background: var(--color-navy);
}

.people-card-image[data-tag-color="primary"]::before,
.people-wide-image[data-tag-color="primary"]::before {
    background: var(--color-primary);
}

/* 空のタグの場合は非表示 */
.people-card-image[data-tag=""]::before,
.people-wide-image[data-tag=""]::before {
    display: none;
}

/* People Card Info */
.people-card-info {
    color: white;
}

.people-position {
    color: var(--color-white);
    font-size: 12px;
    font-weight: normal;
    text-align: left;
    margin-bottom: 8px;
    line-height: 1.3;
}

.people-name {
    color: var(--color-white);
    font-size: 16px;
    font-weight: normal;
    text-align: left;
    margin-bottom: 15px;
}

/* People Separator */
.people-separator {
    width: 24px;
    height: 1px;
    background: var(--color-white);
    margin: 15px 0;
}

.people-details {
    padding-top: 0;
    text-align: left;
}

.people-details p {
    color: var(--color-gray-light);
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 5px;
}

/* Special Row Layout for Row 3 */
.people-row-special {
    grid-column: 1 / 3;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease-out, filter 0.15s ease-out;
    cursor: pointer;
}

.people-row-special:hover {
    transform: translateY(-8px);
    filter: brightness(1.1);
    text-decoration: none;
    color: inherit;
}

.people-row-special:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.people-wide-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: visible;
    box-shadow: 0 8px 20px var(--color-black-transparent-30);
}

.people-wide-image::before {
    content: attr(data-tag);
    background: var(--color-primary);
    color: var(--color-white);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    top: -20px;
    left: 0;
    z-index: 3;
    white-space: nowrap;
    width: 120px;
    text-align: center;
    box-sizing: border-box;
}

.people-wide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.people-info-row {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.people-text-card {
    flex: 1;
    color: inherit;
}

.cross-separator {
    display: flex;
    align-items: center;
    width: 80px;
    height: auto;
    position: relative;
    flex-shrink: 0;
    align-self: center;
}

.cross-line {
    width: 24px;
    height: 24px;
    position: relative;
}

.cross-line::before,
.cross-line::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 1px;
    background: var(--color-white);
    left: 50%;
    top: 50%;
    transform-origin: center;
}

.cross-line::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.cross-line::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}





/* Responsive Design */
@media (max-width: 1200px) {
    .content-sections {
        padding-right: 280px;
    }
    
    .side-navigation {
        right: 20px;
        width: 230px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .hero-content {
        padding: 0 50px;
        margin-top: var(--header-height);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .content-container {
        background-image: url('../images/top/top_content_section.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: scroll;
        min-height: auto;
    }
    
    .content-container::before {
        background: var(--color-black-transparent-50);
    }
    
    .content-sections {
        padding-right: 0;
    }
    
    .content-section {
        padding: 50px 40px;
        padding-top: 50px;
        min-height: auto;
        color: white;
        background: transparent;
    }
    
    .side-navigation {
        display: none;
    }
    
    .section-title {
        font-size: 2.2rem;
        color: white;
    }

    .people-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile devices */
@media (max-width: 576px) {
    /* ヒーローセクションのみ画像背景を維持 */
    .hero-section {
        height: 100vh;
        min-height: 600px;
    }
    
    .hero-background {
        background-image: url('../images/top/sp_top_hero_section.png');
        background-position: center center;
        background-size: cover;
    }
    
    .hero-content {
        padding: 0 20px;
        margin-top: calc(var(--header-height) + 40px);
        text-align: center;
        max-width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        height: calc(100vh - var(--header-height) - 140px);
        gap: 40px;
    }
    
    .hero-subtitle {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        font-size: 1.2rem;
        margin-bottom: 0;
        letter-spacing: 0.2em;
        order: 1;
        flex-shrink: 0;
    }
    
    .hero-title {
        display: flex;
        flex-direction: row;
        gap: 30px;
        flex-shrink: 0;
        align-items: flex-start;
    }
    
    .hero-title .line-1,
    .hero-title .line-2 {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        font-size: 3.5rem;
        line-height: 1.1;
        margin-bottom: 0;
        letter-spacing: 0.1em;
        display: block;
    }
    
    .hero-title .line-1 {
        order: 2;
    }
    
    .hero-title .line-2 {
        order: 1;
    }
    
    /* SP版でtaglineを切り替え */
    .hero-tagline-pc {
        display: none;
    }
    
    .hero-tagline-sp {
        display: block;
        font-size: 1.1rem;
        bottom: 20px;
        left: 20px;
        text-align: left;
        line-height: 1.4;
    }
    
    /* コンテンツエリアの背景画像を維持 */
    .content-container {
        background-image: url('../images/top/sp_top_content_section.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        min-height: auto;
    }
    
    .content-container::before {
        background: var(--color-black-transparent-70);
    }
    
    /* サイドナビゲーションを完全非表示 */
    .side-navigation {
        display: none !important;
    }
    
    /* コンテンツセクション */
    .content-sections {
        position: relative;
        z-index: 1;
    }
    
    .content-section {
        padding: 40px 20px;
        padding-top: 40px;
        min-height: auto;
        color: white;
        background: transparent;
        border-bottom: 1px solid var(--color-white-transparent-30);
    }
    
    .content-section:last-child {
        border-bottom: none;
    }
    
    /* セクションヘッダー */
    .section-header {
        margin-bottom: 1.5rem;
        margin-left: 0;
        text-align: left;
    }
    
    .section-header-subtitle {
        font-size: 1rem;
        margin-bottom: 0.5rem;

        text-transform: uppercase;
        letter-spacing: 0.1em;
    }
    
    .section-header-title {
        font-size: 1.8rem;
        line-height: 1.3;
        letter-spacing: 0.05em;
        color: white;
        margin-bottom: 0;
    }
    
    /* SP版専用の改行 */
    .sp-break {
        display: inline;
    }
    
    /* セクションサブタイトル */
    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        color: white;
        text-align: left;
        display: block;
        font-weight: 600;
    }
    
    .section-subtitle span {
        font-size: 1rem;
        color: var(--color-white-transparent-80);
        font-weight: normal;
        display: block;
        margin-top: 0.3rem;
    }
    
    .section-subtitle::before {
        display: none;
    }
    
    /* ウォーターマークを非表示 */
    .section-watermark {
        display: none;
    }
    
    .item-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
        margin: 0;
    }
    
    .work-grid,
    .recruit-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
        margin: 0;
    }
    
    .content-item {
        background: var(--color-white);
        border: none;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        position: relative;
    }
    
    .content-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(230,0,18,0.05) 0%, rgba(230,0,18,0.02) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 1;
    }
    
    .content-item:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 16px 48px rgba(0,0,0,0.12), 0 8px 24px rgba(230,0,18,0.08);
    }
    
    .content-item:hover::before {
        opacity: 1;
    }
    
    .item-image {
        height: 180px;
        margin-bottom: 0;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        position: relative;
        overflow: hidden;
    }
    
    .item-image::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--color-primary) 0%, #ff6b6b 100%);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease;
    }
    
    .content-item:hover .item-image::after {
        transform: scaleX(1);
    }
    
    .item-image img {
        transition: transform 0.3s ease;
    }
    
    .content-item:hover .item-image img {
        transform: scale(1.05);
    }
    
    .item-title {
        font-size: 1rem;
        line-height: 1.5;
        text-align: left;
        color: var(--color-text);
        padding: 20px;
        margin: 0;
        font-weight: 600;
        position: relative;
        z-index: 2;
        letter-spacing: 0.02em;
    }
    
    .people-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: 100%;
        margin: 0;
    }
    
    .people-card-wide {
        grid-column: span 2;
    }
    
    .people-card {
        display: block;
        background: var(--color-white);
        border: none;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.03);
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        position: relative;
    }
    
    .people-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(230,0,18,0.03) 0%, rgba(102, 126, 234, 0.03) 100%);
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: 1;
    }
    
    .people-card:hover {
        transform: translateY(-12px) scale(1.03) !important;
        box-shadow: 0 20px 60px rgba(0,0,0,0.1), 0 8px 32px rgba(230,0,18,0.06);
    }
    
    .people-card:hover::before {
        opacity: 1;
    }
    
    .people-card-image {
        width: 100%;
        height: 200px;
        margin: 0;
        position: relative;
        overflow: hidden;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }
    
    .people-card-image img {
        transition: transform 0.4s ease;
        filter: brightness(1.02) contrast(1.05);
    }
    
    .people-card:hover .people-card-image img {
        transform: scale(1.08);
    }
    
    .people-card-image::before {
        background: linear-gradient(135deg, var(--color-primary) 0%, #ff6b6b 100%);
        color: var(--color-white);
        padding: 6px 12px;
        font-size: 9px;
        position: absolute;
        top: 12px;
        left: 12px;
        z-index: 3;
        border-radius: 20px;
        font-weight: 700;
        box-shadow: 0 4px 12px rgba(230,0,18,0.3);
        backdrop-filter: blur(10px);
        letter-spacing: 0.5px;
    }
    
    .people-card-image::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(transparent, rgba(0,0,0,0.1));
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .people-card:hover .people-card-image::after {
        opacity: 1;
    }
    
    .people-card-info {
        padding: 16px;
        color: var(--color-text);
        position: relative;
        z-index: 2;
        background: var(--color-white);
    }
    
    .people-position {
        font-size: 10px;
        line-height: 1.4;
        margin-bottom: 8px;
        color: var(--color-text-subtle);
        font-weight: 500;
        letter-spacing: 0.02em;
    }
    
    .people-name {
        font-size: 13px;
        margin-bottom: 8px;
        font-weight: 700;
        color: var(--color-text);
        letter-spacing: 0.01em;
    }
    
    .people-separator {
        width: 24px;
        height: 2px;
        background: linear-gradient(90deg, var(--color-primary) 0%, #ff6b6b 100%);
        margin: 8px 0;
        border: none;
        border-radius: 1px;
    }
    
    .people-details p {
        font-size: 10px;
        margin-bottom: 3px;
        color: var(--color-text-subtle);
        line-height: 1.4;
        font-weight: 500;
        letter-spacing: 0.01em;
    }
    
    .people-row-special {
        grid-column: 1 / -1;
        background: var(--color-white);
        border: none;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.03);
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        position: relative;
    }
    
    .people-row-special::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(230,0,18,0.03) 0%, rgba(102, 126, 234, 0.03) 100%);
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: 1;
    }
    
    .people-row-special:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 20px 60px rgba(0,0,0,0.1), 0 8px 32px rgba(230,0,18,0.06);
    }
    
    .people-row-special:hover::before {
        opacity: 1;
    }
    
    .people-wide-image {
        height: 140px;
        margin-bottom: 0;
        position: relative;
    }
    
    .people-wide-image::before {
        background: var(--color-primary);
        color: var(--color-white);
        padding: 3px 6px;
        font-size: 8px;
        position: absolute;
        top: 6px;
        left: 6px;
        z-index: 2;
        border-radius: 3px;
        font-weight: 600;
    }
    
    .people-info-row {
        flex-direction: column;
        gap: 0;
        padding: 10px;
    }
    
    .people-text-card:not(:last-child) {
        padding-bottom: 8px;
        margin-bottom: 8px;
        border-bottom: 1px solid var(--color-border);
    }
    
    .people-text-card .people-card-info {
        padding: 0;
        color: var(--color-text);
    }
    
    .cross-separator {
        width: 70px;
        height: auto;
    }
    
    .cross-line {
        width: 20px;
        height: 20px;
    }
    
    .cross-line::before,
    .cross-line::after {
        width: 20px;
        height: 1px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        gap: 25px;
    }
    

    

    
    .people-image {
        height: 150px;
    }
    
    .scroll-indicator {
        bottom: 20px;
        right: 30px;
        font-size: 0.7rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero-section {
        min-height: 550px;
    }
    
    .hero-background {
        background-image: url('../images/top/sp_top_hero_section.png');
    }
    
    .hero-content {
        padding: 0 0;
        margin-top: calc(var(--header-height) + 30px);
        height: calc(100vh - var(--header-height) - 120px);
        gap: 30px;
        flex-direction: row;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 0;
        letter-spacing: 0.3em;
        order: 1;
    }
    
    .hero-title {
        gap: 25px;
    }
    
    .hero-title .line-1,
    .hero-title .line-2 {
        font-size: 3rem;
    }
    
    .hero-title .line-1 {
        order: 2;
    }
    
    .hero-title .line-2 {
        order: 1;
    }
    
    .hero-tagline-sp {
        font-size: 0.9rem;
        bottom: 15px;
        left: 15px;
        line-height: 1.3;
    }
    
    .nav-item {
        min-width: 120px;
    }
    
    .nav-link {
        padding: 8px 10px;
    }
    
    .nav-title {
        font-size: 0.8rem;
    }
    
    .nav-subtitle {
        font-size: 0.65rem;
    }

    .content-container {
        background-image: url('../images/top/sp_top_content_section.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        min-height: 100vh;
    }
    
    .content-section {
        padding: 25px 15px;
        padding-top: calc(25px + var(--header-height));
        min-height: auto;
    }
    
    .section-header-subtitle {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .section-header-title {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .section-watermark {
        font-size: 1rem;
        margin-top: 2rem;
    }
    
    .item-grid,
    .work-grid,
    .recruit-grid {
        gap: 15px;
    }
    
    .item-image {
        height: 140px;
    }
    
    .item-title {
        font-size: 1rem;
        padding: 18px;
        font-weight: 600;
        letter-spacing: 0.02em;
    }
    
    .people-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .people-card-wide {
        grid-column: span 2;
    }
    
    .people-card-image {
        height: 160px;
    }
    
    .people-card-image::before {
        font-size: 8px;
        padding: 2px 5px;
        top: 5px;
        left: 5px;
    }
    
    .people-card-info {
        padding: 14px;
    }
    
    .people-position {
        font-size: 8px;
        margin-bottom: 4px;
        line-height: 1.2;
    }
    
    .people-name {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .people-separator {
        width: 16px;
        margin: 6px 0;
    }
    
    .people-details p {
        font-size: 8px;
        margin-bottom: 2px;
        line-height: 1.2;
    }
    
    .people-wide-image {
        height: 120px;
    }
    
    .people-wide-image::before {
        font-size: 8px;
        padding: 2px 5px;
        top: 5px;
        left: 5px;
    }
    
    .people-info-row {
        padding: 16px;
        position: relative;
        z-index: 2;
    }
    
    .cross-separator {
        display: none;
    }
    
    .scroll-indicator {
        bottom: 12px;
        right: 15px;
        font-size: 0.55rem;
    }
}
