@charset "utf-8";
/* CSS Document */

/* ========================================
   Scroll fade-in animation
   ======================================== */
@keyframes fadeUp {
    0%   { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
@media screen and (max-width: 640px) {
    @keyframes fadeUp {
        0%   { opacity: 0; transform: translateY(26px); }
        100% { opacity: 1; transform: translateY(0); }
    }
}
.fadects {
    opacity: 0;
}
.fadeUpin {
    opacity: 1;
    animation-fill-mode: both;
    animation-duration: 1s;
    animation-name: fadeUp;
}
.fadeUpin.fade2 {
    animation-delay: 150ms;
}
.fadeUpin.fade3 {
    animation-delay: 300ms;
}
.fadeUpin.fade4 {
    animation-delay: 450ms;
}

/* Page-load fade-in (no scroll trigger needed) */
.fadeOnLoad {
    opacity: 0;
    animation-fill-mode: both;
    animation-duration: 1s;
    animation-name: fadeUp;
}
.fadeOnLoad.fade2 { animation-delay: 150ms; }
.fadeOnLoad.fade3 { animation-delay: 300ms; }

/* ========================================
   TOP page: video intro animation
   Stage scales down from enlarged+blurred state to final position,
   then text animations follow after video settles.
   ======================================== */
@keyframes videoIntro {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}
.home .stage {
    opacity: 0;
    animation: videoIntro 1.2s ease forwards;
}
/* B — Blur + Slide for TOP page maincopy (line by line) */
@keyframes blurSlide {
    0%   { opacity: 0; filter: blur(10px); transform: translateY(18px); }
    100% { opacity: 1; filter: blur(0);    transform: translateY(0); }
}

/* Cancel section-level SubnavEf; make section instantly visible */
.home .maincopy.copyin section {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* Each line starts hidden, animates in with blurSlide */
.home .maincopy section p { opacity: 0; }
.home .maincopy.copyin section p.mcopy {
    animation: blurSlide 1.7s cubic-bezier(.22, 1, .36, 1) 1.0s forwards;
}
.home .maincopy.copyin section p.mlead {
    animation: blurSlide 1.7s cubic-bezier(.22, 1, .36, 1) 1.35s forwards;
}
.home .maincopy.copyin section p:not(.mcopy):not(.mlead) {
    animation: blurSlide 1.7s cubic-bezier(.22, 1, .36, 1) 1.7s forwards;
}
/* ABOUT US button: border draws clockwise, then text fades in */
.home .maincopy a.btn span {
    position: static; /* pseudo-elements position relative to .btn (absolute parent) */
}
.home .maincopy a.btn {
    border-color: transparent !important;  /* hide original border */
    position: relative;
    color: transparent;                    /* hide text initially */
    opacity: 1 !important;                 /* keep parent visible so pseudo-els show */
}
/* Override SubnavEf — animate text color instead of opacity */
.home .maincopy.copyin a.btn {
    animation: btnTextFade 0.4s ease 3.1s forwards !important;
    opacity: 1 !important;
    transform: none !important;
}
@keyframes btnTextFade {
    to { color: #e5e5e5; }
}
/* 4辺を独立したpseudo-elementで時計回りに描く */
/* .btn::before  → 上辺 (左→右) */
.home .maincopy.copyin a.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 0;
    border-top: 1px solid rgba(255,255,255,0.3);
    animation: btnEdgeTop 0.125s linear 2.1s forwards;
}
@keyframes btnEdgeTop {
    0%   { width: 0;    border-color: rgba(255,255,255,0.3); }
    100% { width: 100%; border-color: rgba(255,255,255,0.6); }
}
/* .btn::after   → 右辺 (上→下) */
.home .maincopy.copyin a.btn::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 0; height: 0;
    border-right: 1px solid rgba(255,255,255,0.6);
    animation: btnEdgeRight 0.125s linear 2.225s forwards;
}
@keyframes btnEdgeRight {
    0%   { height: 0;    border-color: rgba(255,255,255,0.6); }
    100% { height: 100%; border-color: rgba(255,255,255,0.8); }
}
/* .btn span::before → 下辺 (右→左) */
.home .maincopy.copyin a.btn span::before {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 0; height: 0;
    border-bottom: 1px solid rgba(255,255,255,0.8);
    animation: btnEdgeBottom 0.125s linear 2.35s forwards;
}
@keyframes btnEdgeBottom {
    0%   { width: 0;    border-color: rgba(255,255,255,0.8); }
    100% { width: 100%; border-color: rgba(255,255,255,0.9); }
}
/* .btn span::after  → 左辺 (下→上) */
.home .maincopy.copyin a.btn span::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 0;
    border-left: 1px solid rgba(255,255,255,0.9);
    animation: btnEdgeLeft 0.125s linear 2.475s forwards;
}
@keyframes btnEdgeLeft {
    0%   { height: 0;    border-color: rgba(255,255,255,0.9); }
    100% { height: 100%; border-color: rgba(255,255,255,1.0); }
}

.home .copyin .btn_scroll { animation-delay: 2.8s !important; }

#read {
}
#cases > section {
    margin-top: 4em;
}
#cases hgroup {
    margin-bottom: 1em;
}
#cases hgroup h3 {
    margin-bottom: 0;
}
#cases ul li:last-child {
    margin-bottom: 0;
}
#cases ul li .work_tag span {
    color: #202020;
}
#cases a.btn_full {
    margin-top: 100px;
}
#work #cat_nav {
    margin: 1em 0 3.5em;
}
#work #cat_nav li {
    display: inline-block;
    vertical-align: top;
    margin-right: 0.6em;
}
#work #cat_nav li a {
    font-weight: 600;
    color: #707070;
}
#work #cat_nav li a.current {
    color: #202020;
    cursor: default;
}
#work #cat_nav li a:hover {
    color: #202020;
}


#top .stage video {
    background: #fff;
}

/* TOP page: hide header's menu-trigger.pc since #s01 has its own */
body.home header .menu-trigger.pc {
    display: none;
}

/* TOP category (BRAND/BUSINESS/DIGITAL/SPATIAL): on PC always show the
   looping video. Hide the static .vimg so it doesn't cover the video.
   On SP, .video.pc is display:none so the .vimg (SP version) shows normally. */
@media (min-width: 641px) {
    #cases ul li a .vimg {
        opacity: 0 !important;
    }
}

@media (min-width: 641px){
    .flex_cl {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		flex-wrap: wrap;
		-webkit-box-pack: justify;
		-ms-flex-pack: justify;
		justify-content: space-between;
	}
	.flex_cl.cl_2 > section, .flex_cl.cl_2 > li {
		width: 47%;
	}
	.flex_cl.cl_3 > section, .flex_cl.cl_3 > li {
		width: 31%;
		margin-bottom: 8%;
	}
	.flex_cl.cl_4 > section, .flex_cl.cl_4 > li {
		width: 23%;
	}
	.flex_cl .od1 {
		order: 1;
	}
	.flex_cl .od2 {
		order: 2;
	}
    #read h3 {
        font-size: 30px;
    }
    #cases ul li {
        overflow: unset;
    }
    #cases .see_more {
        overflow: hidden;
        margin-top: 8px;
    }
    #cases .see_more p {
        float: left;
        width: calc(100% - 18em);
        line-height: 1.8;
        font-size: 14px;
        position: relative;
        top: 4px;
    }
    #cases .see_more a {
        float: right;
        position: relative;
        color: #868686;
        line-height: 1.8;
        font-size: 16px;
        font-weight: 600;
    }
    #cases .see_more a:hover {
        color: #202020;
    }
    #cases .see_more a:before{
        position: absolute;
        top: 1.6em;
        right: 0;
        content: "";
        display: inline-block;
        width: 100%;
        height: 2px;
        background: #868686;
        transition: 0.3s;
    }
        #cases .see_more a:hover:before{
        width: 0%;
    }
    footer #fc_l p {
        padding-bottom: 35px;
    }
    footer #fc_l ul li {
        display: inline-block;
        margin-right: 1.5em;
    }
    footer #fc_l ul li a::before{
        position: absolute;
        top: 1.6em;
        right: 0;
        content: "";
        display: inline-block;
        width: 100%;
        height: 2px;
        background: #fff;
        transition: 0.3s;
    }
    footer #fc_l ul li a:hover::before{
        width: 0%;
    }
    footer #fc_r small {
        margin-top: 115px;
    }
}

@media (max-width: 640px){
    p {
        line-height: 1.8;
    }
    #read h3 {
        font-size: 24px;
    }
    #read p {
        font-size: 14px;
    }
    #cases > section {
        margin-top: 3em;
    }
    #cases hgroup {
        margin-bottom: 1.5em;
    }
    #cases .see_more {
        margin-top: 0.7em;
    }
    #cases .see_more p {
        font-weight: 600;
        line-height: 1.6;
    }
    #cases .see_more a {
        color: #868686;
        text-align: right;
        font-weight: 600;
        display: block;
        text-decoration: underline;
        margin-top: 0.8em;
    }
    #cases a.btn_full {
        margin-top: 70px;
    }
    #work #cat_nav {
        margin: 1em 20px 3.5em;
    }
}


.work_link {
    max-width: 860px;
    margin: 1.5em auto 2em;
}

/* WORK detail body blocks */
.work_body .block_text {
    max-width: 860px;
    margin: 0 auto 3em;
    line-height: 1.9;
}
.work_body .block_text p {
    color: #555555;
    font-size: 16px;
    font-weight: 500;
    word-break: break-all;
    margin-bottom: 1em;
}
.work_body .block_text h3 {
    font-size: 22px;
    font-weight: 700;
    color: #202020;
    margin-top: 2.5em;
    margin-bottom: 0.5em;
}
.work_body .block_text h3:first-child {
    margin-top: 0;
}
@media screen and (max-width: 640px) {
    .work_body .block_text p {
        font-size: 13px;
        font-weight: 400;
    }
    .work_body .block_text h3 {
        font-size: 18px;
        margin-top: 2em;
    }
}
.work_body {
    margin-top: 50px;
}
.work_body .block_text + .block_image_full,
.work_body .block_text + .block_image_duo {
    margin-top: 50px;
}
.work_body .block_image_full {
    margin: 0 auto 2em;
}
.work_body .block_image_full img {
    width: 100%;
    display: block;
}
.work_body .block_image_duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 0 auto 2em;
}
.work_body .block_image_duo .duo_item img {
    width: 100%;
    display: block;
}
@media screen and (max-width: 768px) {
    .work_body .block_image_duo {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

/* WORK detail credit list (role / name two-column layout, ported from the
   original #work_detail .entry-content #credits rules). */
#work_detail #credits {
    max-width: 860px;
    margin: 0 auto 3em;
    padding-top: 50px;
    padding-bottom: 50px;
    border-top: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;
}
#work_detail #credits h3 {
    clear: both;
    font-size: 18px;
    margin-bottom: 15px;
}
#work_detail #credits dl {
    font-weight: 600;
    font-size: 16px;
    color: #707070;
    overflow: hidden;
    margin-bottom: 20px;
}
#work_detail #credits dl dt {
    width: 25%;
    min-width: 13em;
    max-width: 280px;
    float: left;
    clear: both;
}
#work_detail #credits dl dd {
    width: 53%;
    float: left;
    margin-bottom: 0.5em;
    font-weight: 500;
    color: #000000;
}
@media screen and (max-width: 768px) {
    #work_detail #credits dl {
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 2px;
        margin-bottom: 10px;
    }
    #work_detail #credits dl dt {
        width: 100%;
        min-width: 0;
        max-width: none;
        float: none;
        font-size: 10px;
    }
    #work_detail #credits dl dd {
        width: 100%;
        float: none;
        font-size: 12px;
        margin-bottom: 1em;
    }
}

/* WORK card listings (SELECTED CASES / ALL / category / tag):
   always show title & tags below the image, like the original mobile layout,
   instead of as a hover-only overlay on top of the image. */
.work_list li {
    background: transparent !important;
}

/* wl_all: remove max-height/overflow constraints so long titles aren't clipped */
.work_list.wl_all li {
    max-height: none !important;
    overflow: visible !important;
}
.work_list.wl_all li a {
    overflow: hidden !important;
}

/* wl_all: flexbox grid to handle variable-height items from title below image */
.work_list.wl_all {
    display: flex !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    gap: 30px !important;
}
.work_list.wl_all li {
    float: none !important;
    width: calc(33.333% - 20px) !important;
    max-width: none !important;
    margin: 0 !important;
}
@media all and (max-width: 1147px) {
    .work_list.wl_all li {
        width: calc(33.333% - 14px) !important;
    }
}
@media all and (max-width: 640px) {
    .work_list.wl_all {
        gap: 10px !important;
    }
    .work_list.wl_all li {
        width: calc(50% - 5px) !important;
    }
}
.work_list li .work_subject {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 10px 10px 16px !important;
    opacity: 1 !important;
    text-shadow: none !important;
    background: transparent !important;
}
.work_list li .work_ttl {
    color: #202020 !important;
    text-shadow: none !important;
    font-size: 15px !important;
}
.work_list li .work_tag span {
    color: #707070 !important;
    text-shadow: none !important;
    font-size: 12px !important;
}
.work_list li a:hover .work_subject {
    opacity: 1 !important;
}
.work_list li a:first-child:hover {
    background: none !important;
}

/* WORK detail "RELATED WORK" section: reuses the .work_list card styling
   above, shown as a simple 2-up grid (no algorithmic related-posts service
   in this stack, so picks are made at build time in _data/works.js). */
.related_works_wrap {
    max-width: 1020px;
    margin: 0 auto 3em;
}
.related_works_wrap .related_post_title {
    position: relative;
    text-indent: -9999px;
    font-size: 18px;
    color: #000000;
    margin-bottom: 1.5em;
}
.related_works_wrap .related_post_title::after {
    content: "RELATED WORK";
    position: absolute;
    left: 0;
    text-indent: 0;
}
.related_works.work_list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.related_works.work_list li {
    width: 100%;
    max-width: none;
    max-height: none;
    overflow: visible;
}
.related_works.work_list li img {
    height: 280px;
    width: 100%;
    object-fit: cover;
}
@media screen and (max-width: 640px) {
    .related_works.work_list {
        grid-template-columns: 1fr;
    }
    .related_works.work_list li img {
        height: 200px;
    }
}

/* WORK detail: page title area top padding */
#work_detail .detal_head {
    padding-top: 4px;
}

/* WORK detail: prevent tags from wrapping mid-word */
#work_detail .detal_head .nLinkTag a {
    white-space: nowrap;
}

/* TOP page footer nav (WORK / ABOUT / SERVICES / BLOG): the original theme
   only defined the 4-column ".home #fnav li" layout for viewports >=641px
   (common_pc.css) and never gave it a sub-640px equivalent (unlike the
   3-column .lowp/.single version, which low_sp.css does cover). Make it
   unconditional so it can't fall back to block stacking at any width. */
.home #fnav li {
    display: inline-block;
    width: 25%;
    vertical-align: top;
}

/* Footer page nav (ABOUT / SERVICES / BLOG): bump up 2px from the original
   16px (PC) / 10px (SP). */
#fnav li a {
    font-size: 18px;
}
@media screen and (max-width: 640px) {
    #fnav li a {
        font-size: 12px;
    }
}

/* TOP hero copy on mobile: scale down from the original theme's defaults
   (220% / 180% / 140%), which render far too large at narrow widths. */
@media screen and (max-width: 640px) {
    .maincopy .mcopy {
        font-size: 160%;
    }
    .maincopy .mlead {
        font-size: 120%;
    }
    .maincopy p {
        font-size: 100%;
    }
}

/* ABOUT page SP: reset 2-column dl layout to single column */
@media screen and (max-width: 640px) {
    #about #company .mcts {
        width: 100%;
    }
    #about #company dl {
        width: 100% !important;
        float: none !important;
        display: block !important;
    }
    #about .btn_mail.request {
        clear: both;
        width: 100%;
        box-sizing: border-box;
    }
}

/* SERVICES page: Japanese subtitle below English category names */
#services section .mcts dl dt .dt_ja {
    display: block;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #707070;
    margin-top: -8px;
}

/* ABOUT page buttons (会社情報リクエスト / CONTACT / JOIN NEWSLETTER):
   override the grey-fill .ip_newsletter a style to match the current site's
   outlined button design (transparent bg, grey border, grey text). */
#about .btn_mail.request .ip_newsletter a,
#about #contact .ip_newsletter a,
#about #newsletter .ip_newsletter a {
    background: transparent;
    color: #707070;
    border: 1px solid #c8c8c8;
    box-sizing: border-box;
}
#about .btn_mail.request .ip_newsletter a:hover,
#about #contact .ip_newsletter a:hover,
#about #newsletter .ip_newsletter a:hover {
    background: #707070;
    color: #fff;
    border-color: #707070;
}

/* TOP NEWS section on SP: .n_time and .n_tittle render as block but keep
   their 25%/73% widths from common_sp.css — override to full width so text
   aligns with the JOIN NEWSLETTER button below. */
@media screen and (max-width: 640px) {
    #topnews #newslist .n_time,
    #topnews #newslist .n_tittle {
        width: 100%;
    }
}

/* TOP category sections (BRAND/BUSINESS/DIGITAL/SPATIAL) on mobile: the
   original theme left hgroup p and the see_more tag line at the body
   default (16px), which reads much larger than the live site. */
@media screen and (max-width: 640px) {
    #cases hgroup p {
        font-size: 14px;
    }
    #cases .see_more .work_tag {
        font-size: 12px;
    }
    /* SP cover images are 560×620 (portrait). Use aspect-ratio so the
       container matches the image exactly — no cropping, no fixed px height. */
    #cases ul li {
        height: auto;
        aspect-ratio: 560 / 620;
        overflow: hidden;
    }
    #cases ul li a .vimg {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
