html {
    overflow-y: scroll;
    scroll-behavior: smooth;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #0f0f0f 100%);
    background-attachment: fixed;
}

body {
    color: #e0e0e0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.has-fixed-header {
    padding-top: 70px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 20% 80%, rgba(173, 221, 120, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(173, 221, 120, 0.12) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: particleFloat 10s ease-in-out infinite alternate;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    100% {
        transform: translateY(-20px) rotate(1deg);
        opacity: 0.05;
    }
}

a {
    color: #addd78;
    text-decoration: none;
    transition: opacity 0.3s, color 0.3s;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

body.home .site-header,
body.home .hero-logo,
body.home .hero-title,
body.home .home-section,
body.home .swiper,
body.home footer,
body.home .hamburger-button {
    opacity: 0;
    transition: opacity 1s ease;
}

body.home .hero-logo {
    animation: initialLogoFadeIn 1.5s ease-out 0.5s forwards;
}

body.home .hero-title {
    animation: initialLogoFadeIn 0.5s ease-out 1.5s forwards;
}

@keyframes initialLogoFadeIn {
    to {
        opacity: 1;
    }
}

body.home.is-loaded .site-header,
body.home.is-loaded .hero-title,
body.home.is-loaded .home-section,
body.home.is-loaded .swiper,
body.home.is-loaded footer,
body.home.is-loaded .hamburger-button {
    opacity: 1;
}

body:not(.home) .site-header,
body:not(.home) main,
body:not(.home) footer,
body:not(.home) .hamburger-button {
    opacity: 0;
    transition: opacity 1s ease;
}

body:not(.home).is-loaded .site-header,
body:not(.home).is-loaded main,
body:not(.home).is-loaded footer,
body:not(.home).is-loaded .hamburger-button {
    opacity: 1;
}

.content-area {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 40px;
}

.page-header {
    padding: 80px 20px;
    text-align: center;
    border-bottom: 1px solid #333;
}

.page-header h1 {
    font-size: 2.5rem;
    margin: 0;
    letter-spacing: 2px;
    color: #fff;
}

.page-header p {
    margin: 5px 0 0;
    color: #888;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    margin-bottom: 80px;
    color: #fff;
    text-transform: uppercase;
}

.btn {
    display: inline-block;
    padding: 14px 60px;
    border: 2px solid #addd78;
    color: #addd78;
    margin-top: 60px;
    transition: all 0.3s;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.btn:hover {
    background: #addd78;
    color: #121212;
}

.site-header {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(68, 68, 68, 0.3); 
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo a {
    line-height: 0;
}

.site-logo img {
    height: 35px;
    width: auto;
    transition: opacity 0.3s;
}

.site-logo:hover img {
    opacity: 0.8;
}

.header-nav-container-pc {
    display: flex;
    align-items: center;
    gap: 40px;
}

.site-header.scrolled {
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(68, 68, 68, 0.5);
}

.site-header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.global-nav .nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 45px;
}

.global-nav a {
    position: relative;
    display: inline-block;
    padding: 10px 5px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: transform 0.3s ease, color 0.3s ease;
    transform-origin: center;
}

.global-nav a:hover {
    transform: scale(1.08);
    color: #addd78;
}

.global-nav .current-menu-item > a,
.global-nav .current-menu-ancestor > a { 
    color: #addd78;
    transform: scale(1.08);
}

.global-nav .current-menu-item > a::before,
.global-nav .current-menu-ancestor > a::before {
    content: '▶';
    font-size: 0.7em;
    margin-right: 0.8em;
    vertical-align: middle;
}

.utility-nav .nav-list-utility {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    border-left: 1px solid #444;
    padding-left: 40px;
}

.utility-nav a {
    font-size: 0.9rem;
    color: #ccc;
}

.utility-nav a:hover {
    color: #addd78;
}

.hero-slideshow {
    position: relative;
    height: 85vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-slideshow .swiper,
.hero-slideshow .swiper-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slideshow .swiper-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0 !important;
    transition: opacity 1000ms ease;
}

.hero-slideshow .swiper-slide-active {
    opacity: 1 !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-logo {
    max-width: 350px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-title {
    font-size: 1.5rem;
    font-weight: normal;
    color: #fff;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.home-section {
    padding: 120px 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.home-section.bg-darker {
    background-color: #0a0a0a;
}

.lead-text {
    font-size: 1.1rem;
    line-height: 2.2;
    color: #ccc;
    max-width: 800px;
    margin: 0 auto;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: left;
}

.service-item h3 {
    color: #addd78;
    font-size: 1.3rem;
    border-bottom: 1px solid #444;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.service-item p {
    color: #ccc;
    line-height: 1.8;
}

.home-news-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.home-news-list li {
    border-bottom: 1px dotted #444;
}

.home-news-list a {
    display: block;
    padding: 20px 15px;
    color: #e0e0e0;
    transition: background-color 0.3s;
}

.home-news-list a:hover {
    background-color: #1a1a1a;
    opacity: 1;
}

.home-news-list time {
    margin-right: 25px;
    font-weight: bold;
    color: #888;
}

.home-news-list .home-news-title {
    font-weight: bold;
    color: #fff;
}

.post-content {
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.9;
}

.post-content h2 {
    font-size: 1.8rem;
    color: #fff;
    border-bottom: 2px solid #444;
    padding-bottom: 15px;
    margin: 60px 0 30px;
}

.post-content h3 {
    font-size: 1.5rem;
    color: #addd78;
    margin: 50px 0 25px;
}

.post-content p {
    margin-bottom: 25px;
}

.post-content ul,
.post-content ol {
    padding-left: 1.5em;
    margin-bottom: 25px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content blockquote {
    border-left: 3px solid #addd78;
    padding-left: 20px;
    margin: 40px 0;
    color: #aaa;
    font-style: italic;
}

.post-content img {
    border-radius: 5px;
    margin: 40px 0;
}

.single-post-date {
    color: #addd78;
    font-weight: bold;
    margin-bottom: 10px;
}

.post-navigation {
    margin-top: 80px;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
}

.post-navigation a {
    padding: 30px 20px;
    width: 50%;
    color: #ccc;
    transition: background-color 0.3s ease;
}

.post-navigation a:hover {
    background-color: #1a1a1a;
    opacity: 1;
    color: #fff;
}

.nav-previous {
    border-right: 1px solid #333;
}

.nav-next {
    text-align: right;
}

.post-navigation span {
    display: block;
    font-size: 0.8rem;
    color: #addd78;
    font-weight: bold;
    margin-bottom: 10px;
}

.news-archive-item {
    border-bottom: 1px solid #333;
}

.news-archive-item a {
    display: block;
    padding: 40px 20px;
    color: #e0e0e0;
    transition: background-color 0.3s ease;
}

.news-archive-item a:hover {
    background-color: #1a1a1a;
    opacity: 1;
}

.news-archive-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.news-archive-date {
    color: #addd78;
    font-weight: bold;
    margin-right: 30px;
}

.news-archive-title {
    font-size: 1.5rem;
    margin: 0;
    color: #fff;
}

.news-archive-excerpt {
    color: #aaa;
    line-height: 1.8;
}

.pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination .page-numbers {
    padding: 8px 15px;
    border: 1px solid #444;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: #addd78;
    color: #121212;
    border-color: #addd78;
}

.marquee-container {
    max-width: 100%;
    overflow: hidden;
    position: relative;
    padding: 40px 0;
    perspective: 1500px;
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-track {
    display: flex;
    width: calc((250px + 20px) * 16);
    transform: rotateY(-20deg);
    animation: marquee-flat 40s linear infinite;
}

@keyframes marquee-flat {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.work-tile-marquee {
    flex-shrink: 0;
    width: 250px;
    margin-right: 20px;
    transition: transform 0.3s ease;
}

.work-tile-marquee:hover {
    transform: scale(1.05);
}

.works-grid-final {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 40px 30px;
}

.work-tile {
    color: #e0e0e0;
    transition: opacity 0.3s ease;
}

.work-tile:hover {
    opacity: 0.8;
}

.work-tile-image {
    aspect-ratio: 16 / 10;
    background-color: #222;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
}

.work-tile-marquee .work-tile-image {
    margin-bottom: 0;
}

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

.work-tile-info {
    padding: 0 5px;
}

.work-tile-title {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.5;
    margin: 0;
}

.service-details {
    margin-top: 100px;
}

.service-block {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.service-block.layout-reverse {
    flex-direction: row-reverse;
}

.service-content {
    flex: 1;
}

.service-image {
    flex: 1;
}

.service-content h2 {
    font-size: 2rem;
    color: #addd78;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.service-content p {
    font-size: 1rem;
    line-height: 2;
    color: #ccc;
}

.service-lead-section {
    display: flex;
    justify-content: center;
    margin-bottom: 100px;
}

.service-lead-text {
    text-align: left;
    max-width: fit-content;
    font-size: 1rem;
    line-height: 2;
    color: #ccc;
}

.company-philosophy,
.company-profile {
    margin-bottom: 100px;
}

.company-info-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid #333;
}

.company-info-table th,
.company-info-table td {
    padding: 20px;
    border-bottom: 1px solid #333;
    text-align: left;
}

.company-info-table th {
    width: 25%;
    font-weight: bold;
    background-color: #1a1a1a;
}

.contact-form-container {
    max-width: 720px;
    margin: 0 auto 80px;
}

.coming-soon-content {
    text-align: center;
    padding: 100px 40px;
    border: 2px dotted #444;
    border-radius: 5px;
}

.coming-soon-content h2 {
    font-size: 2.5rem;
    color: #addd78;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.coming-soon-content p {
    color: #aaa;
    margin: 0;
}

.wpcf7-form p {
    margin-bottom: 25px;
}

.wpcf7-form label {
    display: block;
    margin-bottom: 8px;
    color: #aaa;
    font-size: 0.9rem;
}

.wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    padding: 10px 0;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid #555;
    color: #fff;
    font-size: 1.1rem;
    transition: border-bottom-color 0.3s ease;
}

.wpcf7-form-control:not(.wpcf7-submit):focus {
    outline: none;
    border-bottom-color: #addd78;
}

.wpcf7-submit {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    padding: 14px 60px !important;
    border: 2px solid #addd78 !important;
    background-color: #addd78 !important;
    color: #121212 !important;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.wpcf7-submit:hover {
    opacity: 0.85;
}

.wpcf7-submit[disabled] {
    background-color: #333 !important;
    border-color: #555 !important;
    color: #777 !important;
    cursor: not-allowed;
}
.wpcf7-submit[disabled]:hover {
    opacity: 1;
}

.site-footer {
    background-color: #0a0a0a;
    color: #aaa;
    padding-top: 60px;
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid #333;
}

.footer-column {
    flex: 1;
}

.footer-about {
    flex-basis: 40%;
}

.footer-logo img {
    max-width: 200px;
    margin-bottom: 20px;
}

.footer-address {
    line-height: 1.8;
}

.footer-title {
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.1em;
    margin: 0 0 20px 0;
}

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

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

.footer-nav-list a {
    color: #aaa;
    text-decoration: none;
}

.footer-nav-list a:hover {
    color: #fff;
    opacity: 1;
}

.footer-copyright {
    padding: 20px 40px;
    text-align: center;
    font-size: 0.8rem;
}

.footer-copyright p {
    margin: 0;
}

.hamburger-button {
    display: none;
    position: fixed;
    top: 15px;
    right: 40px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1050; /* 修正済み */
}

.hamburger-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #fff;
    margin: 6px auto;
    transition: all 0.3s ease-in-out;
}

.drawer-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 80%;
    height: 100vh;
    background-color: #1a1a1a;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 120;
    padding: 100px 40px;
    overflow-y: auto;
}

body.is-drawer-open .drawer-menu-panel {
    transform: translateX(0);
}

body.is-drawer-open .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

body.is-drawer-open .hamburger-bar:nth-child(2) {
    opacity: 0;
}

body.is-drawer-open .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.drawer-nav-list,
.drawer-nav-list-utility {
    list-style: none;
    padding: 0;
}

.drawer-nav-list a {
    display: block;
    padding: 15px 0;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
}

.drawer-nav-list-utility {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #444;
}

.drawer-nav-list-utility a {
    font-size: 1rem;
    color: #ccc;
}

.drawer-nav .current-menu-item > a {
    color: #addd78;
}

@media (max-width: 1024px) {
    .header-nav-container-pc {
        display: none;
    }
    
    .hamburger-button {
        display: block;
    }
}

@media (max-width: 768px) {
    .service-block,
    .service-block.layout-reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
    }
    
    .contact-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .company-info {
        display: block;
    }
    
    .footer-inner {
        flex-direction: column;
    }
    
    .footer-about {
        flex-basis: auto;
    }
}

/* =================================================================
   制作実績個別ページ・ブロックテンプレート用デザイン
================================================================= */
.single-work-main .page-header {
    display: none;
}
.work-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 40px;
}
.single-work-main .alignfull {
    max-width: 100%;
    width: 100%;
}
/* メインタイトル */
.is-style-work-main-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: #fff;
    margin: 0 !important;
    line-height: 1.3;
}
/* サブタイトル */
.is-style-work-subtitle {
    font-size: 1.5rem;
    color: #ccc;
    margin-top: 10px !important;
}
/* ギャラリー */
.is-style-work-gallery.wp-block-gallery {
    gap: 16px;
}
.is-style-work-gallery .wp-block-image img {
    border-radius: 5px;
}
/* セクションタイトル (CREDIT, DETAILS) */
.is-style-work-section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #addd78;
}
/* クレジットリスト */
.is-style-work-credit-list p {
    font-size: 1rem;
    line-height: 1.8;
}
.is-style-work-credit-list strong {
    display: inline-block;
    width: 200px;
    font-weight: bold;
    color: #888;
}

@media (max-width: 768px) {
    .work-content-wrapper {
        padding: 80px 20px;
    }
    .is-style-work-main-title {
        font-size: 2.5rem;
    }
    .is-style-work-subtitle {
        font-size: 1.2rem;
    }
    .is-style-work-credit-list strong {
        display: block;
        width: auto;
        margin-bottom: 5px;
    }
}

.is-style-work-featured-media {
    margin-top: 20px !important;
    margin-bottom: 60px !important;
}

.is-style-work-featured-media .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 アスペクト比 */
    height: 0;
    overflow: hidden;
}

.is-style-work-featured-media iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

.hero-slideshow .swiper-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0 !important;
    transition: opacity 1000ms ease;
}

.hero-slideshow .swiper-slide-active {
    opacity: 1 !important;
}

/* =================================================================
   トップページ ヒーローエフェクト (最終解決版)
================================================================= */

/* ズームインアニメーションの定義 */
@keyframes zoomInEffect {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.15);
    }
}

/* 表示中・複製・切り替わり直前のスライドにアニメーションを適用 */
.swiper-slide-active .swiper-slide-image,
.swiper-slide-duplicate-active .swiper-slide-image,
.swiper-slide-prev .swiper-slide-image {
    animation: zoomInEffect 22s linear forwards; /* 表示時間(20秒)より少し長く設定 */
}

/* スライド内の画像要素の基本スタイル */
.swiper-slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1); /* 初期状態 */
}

/* ドットのオーバーレイ */
.hero-overlay::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.5) 1px, transparent 0);
    background-size: 4px 4px;
    opacity: 0.6;
    z-index: 2;
}

/* 既存の黒いオーバーレイ */
.hero-overlay {
    background: rgba(0, 0, 0, 0.5);
}