/* style/style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
		font-size: 100%;
}
body {
    font-family: 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
	font-size:1rem;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
#header {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.header-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Left side - Image section (70%) */
.header-image-section {
    width: 80%;
    position: relative;
    overflow: hidden;
}

.header-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeIn 2s ease-out forwards;
}

.header-text-overlay {
    position: absolute;
    left: 60px;
    top: 35%;
    transform: translateY(-50%);
    color: #333;
    opacity: 0;
    animation: fadeInLeft 1s ease-out 2s forwards;
}

.header-subtitle {
	width: 100%;
	max-width: 100px;
}
.header-subtitle img {
	width: 100%;
}
.header-title {
    font-size: 16px;
	line-height: 1.0em;
	padding-bottom: 18px;
	color:#ffffff;
	font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro",
                 "Yu Mincho", "游明朝", "MS PMincho", serif;
}

.header-description {
    font-size: 20px;
    color: #666;
}

/* Right side - Menu section (30%) */
.header-right-section {
    width: 20%;
    background: #3c3c3c;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
}
.logo {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 20px;
	border: solid #fff 1px;
	padding: 15px;
	text-align: center;
}
.main-nav {
    flex-grow: 1;
}
.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
	margin-bottom: 18px;
}
.nav-menu li a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    transition: color 0.3s;
    display: block;
}

.nav-menu li a:hover {
    color: #d4a574;
}

/* Header Banners */
.header-banners {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.banner-item {
	width: 100%;
	max-width: 250px;
    text-align: center;
	margin: 5px 0;
}

.banner-item img {
    width: 100%;
	height: 100%;
    object-fit: cover;
}

.banner-item p {
    font-size: 12px;
    color: #333;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    position: absolute;
    top: 30px;
    right: 30px;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s;
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #FFF;
    animation: bounce 2s infinite;
    z-index: 100;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Styles */
.section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.section-subtitle-jp {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.stars {
    color: #d4a574;
    font-size: 20px;
}

/* Case Design Section */
#case-design {
    background: #f8f8f8;
    width: 100%;
    padding: 80px 0;
}

.case-slider-wrapper {
    margin-bottom: 92px;
}

.case-category {
    text-align: center;
    font-size: 18px;
    margin-bottom: 30px;
    color: #FFF;
	width: 50%;
	background-color: #3c3c3c;
	padding: 12px;
	border-bottom-right-radius: 99px;
	border-top-right-radius: 99px;
}
.case-category_r {
    text-align: center;
    font-size: 18px;
    margin-bottom: 30px;
    color: #FFF;
	width: 50%;
	float: right;
	background-color: #3c3c3c;
	padding: 12px;
	border-bottom-left-radius: 99px;
	border-top-left-radius: 99px;
}

.case-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 60px;
}

.slider-container {
    overflow: hidden;
    width: 100%;
}

.slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.case-item {
    min-width: calc(33.333% - 14px);
    cursor: pointer;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.case-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
}

.case-item:hover {
    transform: scale(1.05);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    transition: background 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 1);
}

.slider-arrow.prev {
    left: 10px;
}

.slider-arrow.next {
    right: 10px;
}

/* Information Section */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.info-card {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.info-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.info-content {
    padding: 20px;
    background: #2c2c2c;
    color: #fff;
	    /* 文字のはみ出し防止 */
    overflow-wrap: break-word; /* 長い単語を強制改行 */
    word-break: break-all;     /* 日本語でも改行を許可（必要に応じて） */
    overflow: hidden;          /* ボックス外へ出さない */
}

.info-date {
    font-size: 14px;
    margin-bottom: 10px;
}

.info-dots {
    font-size: 12px;
    margin-bottom: 10px;
    color: #d4a574;
}

.info-text {
    font-size: 12px;
    line-height: 1.8;
}

/* Staff Section */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.staff-item {
    text-align: center;
}

.staff-item h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #666;
}

.staff-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 5px;
}

/* Technology Section */
#technology {
    background: #f8f8f8;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-item {
    text-align: center;
}

.tech-item h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #666;
}

.tech-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.tech-label {
	width: 100%;
    font-size: 16px;
    color: #fff;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.6);
    display: inline-block;
    border-radius: 3px;
}

/* Footer */
#footer {
    background: #2c2c2c;
    color: #fff;
    padding: 60px 0;
}

.footer-content {
    display: flex;
    justify-content: center;
	column-gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-info h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-info p {
    font-size: 12px;
    margin-bottom: 10px;
    color: #999;
}

.footer-map img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: translate(-50%, -50%) scale(0.5);
    }
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.modal-close:hover {
    color: #d4a574;
}

/* Responsive Design - 768px以下 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }
    
    .header-image-section {
        width: 100%;
        height: 60vh;
    }
    
    .header-text-overlay {
        left: 30px;
    }
    
    .header-title {
        font-size: 32px;
    }
    
    .header-subtitle {
        font-size: 18px;
    }
    
    .header-right-section {
        width: 100%;
        height: 40vh;
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
    }
    
    .header-right-section.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
        position: fixed;
        top: 30px;
        right: 30px;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .logo {
        margin-bottom: 40px;
    }
    
    .nav-menu {
        gap: 25px;
    }
    
    .header-banners {
        margin-top: 40px;
    }
    
    .case-slider {
        padding: 0 50px;
    }
    
    .case-item {
        min-width: calc(50% - 10px);
    }
    
    .info-grid,
    .staff-grid,
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .header-text-overlay {
        left: 20px;
    }
    
    .header-title {
        font-size: 28px;
    }
    
    .header-subtitle {
        font-size: 16px;
    }
    
    .case-slider {
        padding: 0 40px;
    }
    
    .case-item {
        min-width: 100%;
    }
    
    .slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
}