/**
 * Nero Style カスタムCSS - 子テーマのcss/custom.cssに保存
 */

/* Base styles */
body.nero-style-theme {
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    font-family: "Shippori Mincho B1", serif;
    font-weight: 400;
    font-style: normal;
}

.nero-style-theme h1, 
.nero-style-theme h2, 
.nero-style-theme h3, 
.nero-style-theme h4, 
.nero-style-theme h5, 
.nero-style-theme h6 {
    font-family: "Shippori Mincho B1", serif;
    font-weight: 400;
    font-style: normal;
}

.nero-style-theme a {
    text-decoration: none;
    color: inherit;
}

.nero-style-theme img {
    max-width: 100%;
    height: auto;
}

.nero-style-theme td {
    text-align: left;
}

/* Header/Menu styles */
.menu-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 200;
    cursor: pointer;
    background-color: transparent;
    border: none;
    outline: none;
}

.hamburger {
    width: 80px;
    height: 32px;
    position: relative;
}

.hamburger span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #000;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
    width: 75%;
}

.hamburger span:nth-child(3) {
    top: 18px;
    width: 50%;
}

.menu.open + .menu-button .hamburger span {
    background-color: #fff;
}

.menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: #000;
    color: #fff;
    z-index: 150;
    transition: right 0.3s ease;
    padding: 80px 40px;
}

.menu.open {
    right: 0;
}

.menu-items {
    list-style: none;
    margin-top: 40px;
}

.menu-items li {
    margin-bottom: 20px;
}

.menu-items a {
    font-size: 16px;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.menu-items a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #fff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.menu-items a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Main Visual Section */
#mv {
    height: 100vh;
}

/* Sidebar styles */
.sidebar {
    width: 15%;
    padding: 0 10% 0 2.5%;
    background-color: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: absolute;
    height: 101vh;
    z-index: 1;
}

#statement .sidebar {
    height: 165vh;
}

.logo {
    margin: 1em auto;
    width: 80px;
}

.vertical-text {
    position: relative;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin: auto;
    padding: 20px 0;
    font-size: 14px;
    letter-spacing: 2px;
}

.vertical-text p {
    font-size: 34px;
}

/* Main content styles */
.main-content {
    padding-top: 5vh;
    /* height: 95vh; */
    position: relative;
    z-index: 10;
}

/* Hero Section */
.hero {
    position: relative;
    height: 95vh;
    display: flex;
    align-items: center;
    margin-left: 10%;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main sections */
.main-sections {
    display: flex;
    flex-direction: column;
}

.section {
    margin-bottom: 120px;
}

.section-title {
    text-align: center;
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

.section-title span {
    color: rgba(195, 13, 35, 0.5);
}

/* Statement section */
.statement-section {
    display: flex;
}

.statement-content {
    display: flex;
    align-items: center;
    padding: 10%;
    padding-bottom: 0;
}

.statement-text-img {
    width: fit-content;
}

.statement-text {
    max-width: 400px;
    margin: auto;
    margin-top: 0;
    margin-left: 4em;
}

.statement-paragraph {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.statement-rt {
    position: relative;
    width: 15%;
    background-color: #000;
    color: #fff;
    height: 35vh;
    writing-mode: vertical-rl;
    z-index: 0;
}

.statement-rt h2 {
    position: absolute;
    color: rgba(92, 92, 92, 0.5);
    height: 40vh;
    writing-mode: vertical-rl;
    left: 25%;
    top: 2em;
    font-size: 90px;
}

.statement-content-title {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: center;
}

.left {
    text-align: left;
}

/* Works section */
.works-section {
    display: flex;
    flex-direction: column;
}

.works-description {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 14px;
    line-height: 1.8;
}

.work-container {
    position: relative;
    width: 70%;
}

.work-text {
    margin-left: 12em;
}

.work-item {
    position: relative;
    height: 0;
    padding-bottom: 62%;
    overflow: hidden;
    z-index: 0;
}

.work-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-item:hover img {
    transform: scale(1.05);
}

.work-label {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 3px 10px;
    font-size: 12px;
}

.works-btn {
    margin-top: 30px;
    margin-bottom: 50px;
}

.right {
    position: absolute;
    right: 0;
    height: 130%;
    width: 25%;
}

.right h2 {
    right: 0;
    top: 0;
}

/* Topics section */
.topics-section {
    width: 1220px;
    margin: 10em auto;
}

.topics-list {
    max-width: 800px;
    margin: 0 auto 30px;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.topic-item {
    padding: 15px 0;
    display: flex;
    margin-left: 20px;
}

.topic-date {
    flex: 0 0 120px;
    font-size: 14px;
}

.topic-title {
    flex: 1;
    font-size: 14px;
}

.topics-btn {
    text-align: center;
}


.read-more:hover {
    background-color: #333;
    color: #fff;
}

/* Contact & Recruit section */
.contact-recruit {
    width: 1220px;
    margin: auto;
    display: flex;
    gap: 20px;
    margin-bottom: 10em;
}

.contact-item, .recruit-item {
    flex: 1;
    height: fit-content;
}

.contact-item img, .recruit-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.overlay-title {
    color: #fff;
    font-size: 48px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.overlay-text {
    font-size: 12px;
}

/* Map section */
.map {
    width: 100%;
    height: 635px;
    text-align: center;
    margin: auto;
    padding-bottom: 80px;
    padding: 0 5%;
}

.map iframe {
    width: 1220px;
    height: 100%;
    object-fit: cover;
}

#map {
    z-index: 0;
    position: relative;
}

.bottom {
    position: absolute;
    top: 51%;
    height: 50%;
    width: 100%;
}

/* Footer styles */
.footer {
    background-color: #000;
    color: #fff;
    padding: 20px 5%;
    padding-top: 8em;
}

.footer-nav {
    width: 40%;
    display: flex;
    justify-content: right;
    flex-wrap: wrap;
    margin: 0 0 20px auto;
    display: grid;
    gap: 20px;
}

.footer-nav li {
    width: 145px;
    margin: 0 15px;
    font-size: 21px;
    letter-spacing: 1px;
}

.uk-parent a {
    border-bottom: solid;
}

.uk-nav-sub a {
    border-bottom: none;
}

.uk-nav-sub li {
    list-style: initial;
    margin: 0 10px;
}

.uk-nav-default {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
}

.footer-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 12px;
}

.footer-logo img {
    width: 240px;
}

.address {
    margin-top: 20px;
    flex: 1;
    line-height: 1.6;
}

.address p {
    margin: 5px auto;
}

.copyright {
    text-align: right;
    font-size: 10px;
    padding-bottom: 10px;
}

.footer-privacy {
    position: relative;
    top: 5em;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    writing-mode: vertical-rl;
    bottom: 0;
    left: 30%;
    transform: translateX(-50%);
    font-size: 12px;
    display: flex;
    align-items: center;
}

.scroll-text {
    margin-top: 15px;
}

.scroll-arrow {
    height: 160px;
    border-left: 1px solid #fff;
    animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {
    0% {
        opacity: 0;
        transform: translate(0, 0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(0px, 10px);
    }
}

/* Rellaxの設定 */
.rellax {
    position: relative;
    transition: transform 0.2s ease-out;
    will-change: transform;
}

/* Containers */
.container {
    width: 1220px;
    margin: auto;
}

.uk-container {
    max-width: 1540px;
}

/* Responsive styles */
@media (max-width: 1200px) {
    .container, .topics-section, .contact-recruit, .map iframe {
        width: 100%;
        max-width: 1000px;
    }
    
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 960px) {
    .works-grid, .business-area-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    
    .logo {
        width: 25px;
    }
    
    .vertical-text {
        font-size: 12px;
    }
    
    .main-content {
        margin-left: 60px;
    }
    
    .hero-text-container {
        max-width: 100%;
    }
    
    .statement-text {
        margin-left: 0;
        margin-top: 2em;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-recruit {
        flex-direction: column;
        padding: 0 5%;
    }
    
    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 50px;
    }
    
    .main-content {
        margin-left: 50px;
    }
    
    .menu {
        width: 250px;
    }
    
    .hero-title {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .topic-item {
        flex-direction: column;
    }
    
    .topic-date {
        margin-bottom: 5px;
    }
}

/* Cocoonテーマとの競合を避けるためのリセット */
.nero-style-theme #header,
.nero-style-theme #sidebar,
.nero-style-theme #footer {
    display: none !important;
}

.nero-style-theme #content,
.nero-style-theme #main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    border: none !important;
}

.nero-style-theme .entry-content {
    margin: 0 !important;
    padding: 0 !important;
}

/* Cocoonテーマのコンテナをカスタム幅にリセット */
/* .nero-style-theme .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
} */

/* その他Cocoonテーマのスタイルをオーバーライド */
.nero-style-theme .article {
    background-color: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}