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

/* 基本設定 */
:root {
    --main-color: #000;
    --text-color: #fff;
    --accent-yellow: #FFD700;
    --service-bg: #fff;
    --service-text: #000;
    --transition: all 0.3s ease;
}

/* ヘッダー */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background-color: black;
}

#header.scrolled {
    background-color: rgba(0, 0, 0, 1);
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

  
  #header > .container {
    background-color: transparent !important;
    box-shadow: none !important;
  }
  

.logo a {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-color);
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

/* ロゴ画像のスタイル */
.logo-image {
    height: 40px;
    width: auto;
    margin-right: 12px;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1); /* 白色にする */
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

/* ホバーエフェクト */
.logo:hover .logo-image {
    transform: scale(1.05);
}

.logo:hover .logo-text {
    color: var(--accent-yellow);
}

.nav-pc ul {
    display: flex;
    list-style: none;
}

.nav-pc ul li {
    margin-left: 30px;
}

/* ヘッダーメニューのリンク（初期状態を白に） */
.nav-pc ul li a {
    color: var(--text-color);  /* = 白 */
    position: relative;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* ホバー時の黄色文字と下線アニメーション */
.nav-pc ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-yellow); /* 黄色下線 */
    transition: width 0.3s ease;
}

.nav-pc ul li a:hover {
    color: var(--accent-yellow); /* 黄色文字に変化 */
}

.nav-pc ul li a:hover::after {
    width: 100%; /* 下線が表示される */
}


/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
}

.nav-sp {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav-sp.active {
    opacity: 1;
    visibility: visible;
}

.nav-sp ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    list-style: none;
}

.nav-sp ul li {
    margin: 15px 0;
}

.nav-sp ul li a {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* ハンバーガーメニュー開閉時 */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

body {
    padding-top: 90px;
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "游ゴシック", YuGothic, "メイリオ", Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header Section */
.header-section {
    display: flex;
    border: 1px solid #000;
    position: relative;
    align-items: center;
    width: fit-content;
    padding: 0;
}

.header-left,
.header-right {
    width: 50%;
    padding: 24px;
    color: #000;
    font-weight: bold;
}

.header-left {
    background-color: #000;
    color: #fff;
    font-size: 28px;
    letter-spacing: 0.1em;
    text-align: left;
}

.header-right {
    background-color: #fff;
    color: #000;
    font-size: 21px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    padding-left: 10px;
}

/* Introduction Text */
.intro-text {
    padding: 40px 16px;
    font-size: 16px;
    background-color: #ffffff;
    color: #000;
}

.intro-text p {
    margin-bottom: 12px;
    line-height: 1.8;
}

/* Business Sections */
.business-section {
    border: 1px solid #000;
    border-top: none;
    background-color: #ffffff;
    margin-top: 40px;;
}

.section-header {
    display: flex;
    border-bottom: 1px solid #000;
    border-top: 1px solid #000;
}

.section-title-ja,
.section-title-en {
    width: 50%;
    padding: 24px;
    font-weight: bold;
}

.section-title-ja {
    font-size: 24px;
    border-right: 1px solid #000;
    background-color: #ffffff;
    color: #000;
    text-align: left;
    padding-left: 24px;
}

.section-title-en {
    font-size: 21px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    padding-left: 24px;
    background-color: #ffffff;
    color: #000;
}

/* Service List */
.service-list {
    display: flex;
    flex-wrap: wrap;
    padding: 16px 24px;
    border-bottom: 1px solid #000;
    font-size: 14px;
    background-color: #ffffff;
    color: #000;
}

.service-item {
    margin-right: 12px;
}

/* Gallery Section */
.gallery {
    display: flex;
    height: 480px;
}

.gallery-main {
    width: 66.67%;
    height: 100%;
}

.gallery-split {
    display: flex;
}

.gallery-split-left,
.gallery-split-right {
    width: 50%;
    height: 100%;
}

.gallery-side {
    width: 33.33%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-side-top,
.gallery-side-bottom {
    height: 50%;
}

/* Description */
.section-description {
    padding: 24px;
    font-size: 16px;
    line-height: 1.8;
    background-color: #ffffff;
    color: #000;
    border-bottom: 1px solid #000;
}

/* More Info Button */
.more-info-button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    background-color: #000;
    color: #fff;
    font-weight: bold;
    position: relative;
    cursor: pointer;
    text-align: center;
}

.arrow-button {
    position: absolute;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #fff;
    color: #000;
    border-radius: 50%;
    font-size: 21px;
}

/* Page-specific styles for detail pages */
.hero-banner {
    height: 400px;
    position: relative;
}

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

.hero-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 32px;
    font-weight: bold;
}

.detail-content {
    padding: 40px 24px;
}

.detail-intro {
    margin-bottom: 40px;
    font-size: 18px;
    line-height: 1.8;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    margin: 24px 0;
}

.tag {
    display: inline-block;
    padding: 8px 16px;
    margin-right: 8px;
    margin-bottom: 8px;
    border: 1px solid #000;
    border-radius: 24px;
    font-size: 14px;
}

.detail-section {
    margin-bottom: 60px;
}

.detail-section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #000;
}

.detail-section-content {
    font-size: 16px;
    line-height: 1.8;
}

.detail-gallery {
    margin: 32px 0;
}

.detail-featured-image {
    width: 100%;
    margin-bottom: 24px;
}

.detail-featured-image img {
    width: 100%;
    height: auto;
}

.detail-image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.detail-image-item {
    width: calc(33.33% - 11px);
    height: 200px;
}

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

.links-section {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #000;
}

.links-section ul {
    padding-left: 20px;
}

.links-section li {
    margin-bottom: 8px;
}

.links-section a {
    color: #000;
    text-decoration: underline;
}

.back-to-top {
    display: inline-block;
    margin: 40px 0;
    padding: 12px 24px;
    background-color: #000;
    color: #fff;
    font-weight: bold;
    border-radius: 4px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .header-section,
    .section-header {
        flex-direction: column;
    }

    .header-left,
    .header-right,
    .section-title-ja,
    .section-title-en {
        width: 100%;
        border-right: none;
    }

    .section-title-ja {
        border-bottom: 1px solid #000;
    }

    .gallery {
        flex-direction: column;
        height: auto;
    }

    .gallery-main,
    .gallery-side {
        width: 100%;
    }

    .gallery-main {
        height: 300px;
    }

    .gallery-side {
        height: 300px;
    }

    .service-list {
        flex-direction: column;
    }

    .service-item {
        margin-bottom: 8px;
    }

    .detail-image-grid {
        gap: 8px;
    }

    .detail-image-item {
        width: calc(50% - 4px);
    }
}

/* フッターセクション */
.footer-section {
    background-color: #000 !important;
    color: #fff;
    padding: 60px 0 30px;
    font-family: 'Noto Sans JP', sans-serif;
    margin-top: 40px;;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    padding-bottom: 40px;
    background-color: #000;
}

/* 左側：会社情報 */
.footer-left {
    flex: 1;
    max-width: 400px;
}

.footer-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.company-address {
    margin-bottom: 20px;
}

.company-address p {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}

.footer-policy a {
    font-size: 0.9rem;
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-policy a:hover {
    color: #fff;
}

/* 右側：ナビゲーション（2列構成） */
.footer-right {
    flex: 1;
    display: flex;
    gap: 80px;
    max-width: 500px;
}

.footer-nav-column {
    flex: 1;
}

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

.footer-nav-list > li {
    margin-bottom: 15px;
}

.footer-nav-list > li > a {
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-nav-list > li > a:hover {
    color: #ccc;
}

/* サブメニュー */
.submenu {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.submenu li {
    margin-bottom: 8px;
}

.submenu li a {
    font-size: 0.9rem;
    color: #999;
    text-decoration: none;
    padding-left: 15px;
    position: relative;
    transition: color 0.3s ease;
}

.submenu li a::before {
    content: "└";
    position: absolute;
    left: 0;
    color: #666;
}

.submenu li a:hover {
    color: #ccc;
}

/* フッター下部 */
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    background-color: #000;
}

.copyright {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    text-align: left;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-right {
        flex-direction: column;
        gap: 30px;
        max-width: none;
    }

    .footer-left {
        max-width: none;
    }

    .footer-logo a {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .footer-section {
        padding: 40px 0 20px;
    }

    .footer-content {
        gap: 30px;
    }

    .footer-right {
        gap: 20px;
    }

    .submenu li a {
        padding-left: 10px;
    }
}