/* ========================================
   Reset & Base Styles
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

.brsp { display:none; }
.brpc { display:block; }

/* ========================================
   CSS Variables
======================================== */
:root {
  --base-font-family: "neulis-neue", sans-serif;
  --jp-font-family: 'Zen Kaku Gothic New', sans-serif;
}

/* ========================================
   Header (style.cssを使用 - 重複削除済み)
======================================== */
/* #headerのスタイルはstyle.cssで統一管理 */
/* serviceページ専用の設定が必要な場合はここに追記 */

/* ========================================
   Service Header Wrapper (Works仕様)
======================================== */
/* Serviceページのノイズグラデーション（ウィンドウ幅一杯） */
body.post-type-archive-service .works-header-wrapper {
  background-image: none;
  background-size: auto 401px;
  background-position: top center;
  background-repeat: repeat-x;
  min-height: 380px;
  position: relative;
  margin-bottom: 0 !important;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* Serviceページのwrapper用グラデーション */
body.post-type-archive-service .works-header-wrapper::after { 
  position: absolute;
  bottom: 0;
  left: 0;
  content: "";
  width: 100vw;
  height: 150px;
  background-image: url('common/white_gradation.webp');
  background-size: contain;
  z-index: 9999;
}

/* Serviceページの大きなヘッドライン */
body.post-type-archive-service #archive_header .large_headline { 
  font-size: 81px !important; 
  text-transform: uppercase;
}

@media screen and (max-width:800px) {
    body.post-type-archive-works #archive_header .large_headline ,
    body.post-type-archive-service #archive_header .large_headline {
      font-size: 40px !important;
    }
}

body.post-type-archive-service #archive_header .title_area { 
  width: 100%; 
  padding-right: 50px;
}
body.post-type-archive-service #archive_header .large_headline span, 
body.post-type-archive-service #archive_header .sub_title span { 
  transform: translate3d(0,100%,0); 
  opacity: 0; 
  display: inline-block; 
  transition: transform 0.7s ease, opacity 0.9s ease; 
}

body.post-type-archive-service #archive_header .sub_title span { 
  transition: transform 0.7s ease 0.3s, opacity 0.9s ease 0.3s; 
}

body.post-type-archive-service #archive_header.animate .large_headline span, 
body.post-type-archive-service #archive_header.animate .sub_title span { 
  transform: translate3d(0,0,0); 
  opacity: 1; 
  transition: none !important;
}

body.post-type-archive-service #archive_header .desc { 
  width: 50%; 
  line-height: 2.6; 
  padding-left: 50px; 
  opacity: 0; 
  transition: opacity 1.0s ease 0.2s; 
}

body.post-type-archive-service #archive_header .desc.mobile { 
  display: none; 
}

body.post-type-archive-service #archive_header.animate .desc { 
  opacity: 1; 
}

body.post-type-archive-service #archive_header .sub_title { 
  overflow: hidden; 
  font-weight: normal; 
  color: #333 !important; 
  margin-top: 20px;
}

/* ========================================
   Communication Section
======================================== */
.outer-container {
    width: 100%;
}

.communication-section {
    padding: 0 0 200px 0;
    position: relative;
    overflow: hidden;
}

.communication-item {
    position: relative;
    width: 85vw;
    max-width: 85vw;
    min-height: 600px;
    height: 40vw;
    margin-bottom: calc(-220px - 2vw);
    display: flex;
    align-items: start;
    background: transparent;
    z-index: 1;
}

.communication-item.sales-item {
    width: 85vw;
    border-radius: 0 5.5vw 5.5vw 0;
}

.sustainability-item {
    margin-left: 0;
    justify-content: flex-start;
    overflow: hidden;
}

.corporate-item {
    margin-left: auto;
    margin-right: 0;
    justify-content: flex-end;
    z-index: 2;
    overflow: hidden;
}

.sales-item {
    margin-left: 0;
    justify-content: flex-start;
    z-index: 3;
    margin-bottom: 0;
    overflow: hidden;
}

/* 背景要素 */
.item-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/top/service_bg.webp');
    background-repeat: repeat-x;
    z-index: -1;
}


.sustainability-item .item-background,
.sales-item .item-background {
    border-radius: 0 5.5vw 5.5vw 0;
    background-position: top right;
}

.corporate-item .item-background {
    border-radius: 5.5vw 0 0 5.5vw;
    background-position: top left;
}

.item-background::before {
    display: none;
}

/* シンボル画像 */
.sustainability-item::after {
    content: '';
    position: absolute;
    top: -1vw;
    left: 33vw;
    width: 70%;
    height: 65%;
    background-image: url('img/top/symbol_sus.webp');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

.corporate-item::after {
    content: '';
    position: absolute;
    top: 0vw;
    right: 40vw;
    width: 73%;
    height: 73%;
    background-image: url('img/top/symbol_corp.webp');
    background-size: contain;
    background-position: top right;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
    transform: scale(1.1);
}

.sales-item::after {
    content: '';
    position: absolute;
    top: -1vw;
    left: 45vw;
    width: 76%;
    height: 75%;
    background-image: url('img/top/symbol_sales.webp');
    background-size: contain;
    background-position: top left;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

.communication-content {
    padding: 80px 5vw;
    flex: 1;
    max-width: 50vw;
    position: relative;
    z-index: 1;
}

.corporate-item .communication-content {
    text-align: left;
}

.communication-title {
    font-size: 4.2vw;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
    letter-spacing: 0.2vw;
    line-height: 0.8;
    font-family: var(--base-font-family);
}

.communication-subtitle {
    font-size: 1.8vw;
    color: #333;
    margin-bottom: 20px;
    letter-spacing: 0.15vw;
    font-family: var(--base-font-family);
    font-weight: 800;
}

.communication-text {
    font-size: 1.4vw;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
    font-family: var(--jp-font-family);
    font-weight: 800;
}

.communication-link {
    font-size: 1.5vw;
    color: #333;
    font-weight: 100;
    letter-spacing: 0em;
    padding-bottom: 8px;
    font-family: var(--base-font-family);
    display: inline-block;
}

.communication-link::after {
    content: "";
    display: inline-block;
    width: 4vw;
    height: 4vw;
    background-image: url('img/top/viewmore_arrow.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center 1.15vw;
    margin-left: 12px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.communication-link:hover::after {
    transform: translateX(0.5vw);
}

.corporate-item .communication-link { 
    margin-right: 20vw;
}

/* タグエリア */
.communication-details {
    position: absolute;
    right: 6vw;
    top: 3vw;
    z-index: 2;
}

.sustainability-item .communication-details {
    right: 23vw;
    top: 280px;
}

.corporate-item .communication-details {
    left: 41vw;
    top: calc(280px + 3vw);
}

.sales-item .communication-details {
    left: 30vw;
    top: calc(230px + 2vw);
}

.detail-tags {
    display: flex;
    flex-direction: column;
    gap: 0.3vw;
}

.tag {
    background: #333;
    color: #fff;
    padding: 0.2vw 1.2vw 0.25vw;
    font-size: 0.85vw;
    border-radius: 15px 1px 1px 15px;
    white-space: nowrap;
    font-family: var(--jp-font-family);
    font-weight: 500;
}

.tag::before {
    content: '#';
    color: #fff;
    margin-right: 5px;
}

/* ========================================
   Fade Animation
======================================== */
.fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Footer
======================================== */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #fff;
    font-size: 14px;
    margin: 0 10px;
}

.footer-links span {
    color: #999;
    margin: 0 5px;
}

.footer-copyright {
    font-size: 12px;
    color: #999;
}


/* ========================================
   Responsive Design
======================================== */

/* コミュニケーションセクション専用ブレイクポイント */
@media (max-width: 1100px) {
    .communication-content {
        max-width: none;
        padding: 80px 5vw 80px 12vw;
    }
    .corporate-item .communication-content {
        max-width: none;
        padding: 80px 5vw 80px 40vw;
    }
    .communication-title {
        font-size: 36px;
        margin-bottom: 5px;
    }
    
    .communication-subtitle {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .communication-text {
        font-size: 14px;
    }
    
    .communication-link {
        font-size: 14px;
    }
    
    .corporate-item .communication-link {
        margin-right: 0;
    }
    
    .communication-details {
        transform: none;
        margin-top: 30px;
        width: 170px;
    }
    
    .tag {
        background: #333;
        color: #fff;
        padding: 0.2vw 1.2vw 0.25vw;
        font-size: 11px;
        border-radius: 15px 1px 1px 15px;
        white-space: nowrap;
        font-family: var(--jp-font-family);
        font-weight: 500;
    }
}

@media (max-width: 800px) {
    /* ヘッダーモバイル対応 */
    #header {
        height: 60px;
    }
    
    #header.scrolled {
        height: 60px;
    }
    
    #header_logo {
        left: 20px;
    }
    
    #header_logo a .logo_text {
        font-size: 18px;
    }
    
    #global_menu {
        right: 20px;
    }
    
    #global_menu > ul > li {
        font-size: 14px;
    }
    
    #global_menu > ul > li > a {
        padding: 0 10px;
    }
    
    /* モバイルでは一部メニューを非表示 */
    #global_menu > ul > li:nth-child(n+5) {
        display: none;
    }
    
    .brsp { display:block; }
    
    /* サービスページ上部余白 */
    .service-top .communication-section {
        padding-top: 30px;
    }
    
    /* コミュニケーションセクションモバイル調整 */
    .communication-section {
        padding: 60px 0;
    }
    
    .communication-text {
        font-size: 15px;
        line-height: 1.5em;
        font-weight: 700;
        margin-bottom: 20px;
    }
    
    .communication-subtitle {
        margin-bottom: 15px;
    }
    
    .communication-item {
        width: 100% !important;
        max-width: none !important;
        min-height: auto;
        height: 100vw;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex-direction: column;
        padding: 40px 20px;
        background: url('img/top/service_noise_sp.webp');
        background-size: auto 100vw;
        border-radius: 0px;
        position: relative;
    }
    
    .item-background {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-repeat: repeat-x;
        z-index: -1;
    }
    
    .sustainability-item::after {
        top: 4vw;
        left: 0vw;
        width: 80%;
        height: 80%;
    }
    
    .corporate-item::after {
        top: 15vw;
        left: 0vw;
        width: 80%;
        height: 80%;
    }
    
    .sales-item::after {
        top: 11vw;
        left: 21vw;
        width: 80%;
        height: 80%;
    }
    
    .communication-content , .corporate-item .communication-content {
        padding: 14vw 0vw 4vw 8vw;
        max-width: none;
        text-align: left !important;
    }
    
    .communication-link span {
        display: none;
    }
    
    .communication-link::after {
        width: 15vw;
        height: 15vw;
        margin-left: 0; 
    }
    
    .communication-details {
        position: static;
        transform: none;
        margin-top: 30px;
    }
    
    .sustainability-item .communication-content {
        padding-top: 20px;
    }
    
    .corporate-item .communication-content {
        padding-top: 20px;
    }
    
    .sales-item .communication-content {
        padding-top: 20px;
    }
    
    .detail-tags {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 8px;
        position: absolute;
        bottom: 8vw;
        right: 0;
        width: 46vw;
    }
    
    .tag {
        width: 100%;
        border-radius: 20px 0 0 20px;
        padding: 1px 12px 2px !important;
        font-size: 12px;
    }
}
