@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;500;700&display=swap');

/* ----------------------------------------------------------------
   Base Styles
----------------------------------------------------------------- */
:root {
    --primary-color: #52c75a;
    --text-color: #333;
    --bg-color: #fff;
    --accent-font: "Nothing You Could Do", cursive;
    --main-font: "Noto Serif JP", serif;
    --serif-font: "Noto Serif JP", serif;
    
    /* リノベーションBefore/Afterタブ用カラー */
    --renov-tab-active: #1e3a5f; /* アクティブ時のネイビー */
    --renov-tab-inactive: #f8f8f8; /* 非アクティブ時のグレー */
    --renov-tab-text-active: #fff;
    --renov-tab-text-inactive: #555;
}

/* 全要素にbox-sizingを適用 */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--main-font);
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.8;
    overflow-x: hidden;
    width: 100%;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
a:hover { color: var(--primary-color); }
ul { list-style: none; padding: 0; margin: 0; }

/* ----------------------------------------------------------------
   Intro Animation
----------------------------------------------------------------- */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.intro-logo {
    color: #fff;
    font-family: var(--accent-font);
    font-size: 2rem;
    letter-spacing: 0.2em;
    opacity: 0;
    animation: fadeInLogo 2s forwards;
    position: relative;
}

.intro-logo::after {
    content: "";
    display: block;
    width: 0%;
    height: 1px;
    background: var(--primary-color);
    margin-top: 10px;
    animation: expandLine 1.5s 0.5s forwards ease-in-out;
}

@keyframes fadeInLogo {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes expandLine {
    0% { width: 0%; margin-left: 50%; }
    100% { width: 100%; margin-left: 0; }
}

.intro-hide {
    transform: translateY(-100%);
}

/* ----------------------------------------------------------------
   Navigation
----------------------------------------------------------------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: difference; /* 背景色に応じて色を反転 */
    color: #fff;
    transition: background 0.3s, padding 0.3s;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 40px;
    mix-blend-mode: normal;
    color: #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ロゴのスタイル調整 */
.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--serif-font);
    letter-spacing: 0.1em;
    flex-shrink: 0;
    z-index: 1001;
    color: #fff; /* テキストの場合の色（mix-blend-modeで反転する） */
}

/* 画像ロゴのサイズ指定（重要） */
.logo img {
    height: 40px; /* 高さを指定しないと表示されない場合があります */
    width: auto;
    display: block;
}

nav {
    max-width: 100%;
}

nav ul {
    display: flex;
    gap: 30px;
    flex-wrap: nowrap;
}

nav li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
}

nav li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s;
}

nav li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1001;
}

/* ----------------------------------------------------------------
   Hero Section (Home)
----------------------------------------------------------------- */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #333;
}

/* スライドショーのアイテム */
.hero-slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 0;
    transform: scale(1);
    /* フェードイン・アウトをゆっくり行う */
    transition: opacity 3s ease-in-out;
}

.hero-slide-item.active {
    opacity: 1;
    z-index: 1;
}

/* 次のスライドがフェードインしてくる際は最前面に */
.hero-slide-item.next-slide {
    z-index: 2;
}

/* ランダムな動きのアニメーション定義 (15秒かけてゆっくり動く) */
@keyframes zoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}
@keyframes zoomOut {
    0% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
@keyframes moveRight {
    0% { transform: scale(1.15) translateX(-3%); }
    100% { transform: scale(1.15) translateX(3%); }
}
@keyframes moveLeft {
    0% { transform: scale(1.15) translateX(3%); }
    100% { transform: scale(1.15) translateX(-3%); }
}

/* エフェクトクラス */
.hero-slide-item.effect-zoom-in { animation: zoomIn 15s linear forwards; }
.hero-slide-item.effect-zoom-out { animation: zoomOut 15s linear forwards; }
.hero-slide-item.effect-move-right { animation: moveRight 15s linear forwards; }
.hero-slide-item.effect-move-left { animation: moveLeft 15s linear forwards; }


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 0;
}

.hero-content {
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    width: 100%;
}

/* Typewriter Effect */
.hero-title-wrapper {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: .15em solid orange;
    margin: 0 auto;
    animation: 
        typing 3.5s steps(40, end),
        blink-caret .75s step-end infinite;
    width: 0;
    animation-fill-mode: forwards;
    animation-delay: 2.8s;
    max-width: 100%;
}

.hero-title {
    font-family: var(--accent-font);
    font-size: 4rem;
    margin-bottom: 0;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    line-height: 1.2;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color); }
}

.hero-subtitle {
    font-family: var(--serif-font);
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    opacity: 0;
    transform: translateY(20px);
    transition: 1s 4s;
    margin-top: 20px;
}

.hero.active .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* ----------------------------------------------------------------
   Hero Section (Sub Pages)
----------------------------------------------------------------- */
.page-hero {
    height: 60vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
}

.page-hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    z-index: 0; opacity: 0.6;
    animation: subPageZoom 20s infinite alternate; 
}

@keyframes subPageZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Background Images for Sub Pages */
.aboutus-bg { background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80'); }
.agency-bg { background-image: url('https://images.unsplash.com/photo-1554224155-8d04cb21cd6c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80'); }
.properties-bg { background-image: url('https://images.unsplash.com/photo-1460317442991-0ec209397118?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80'); }

.page-hero-content {
    z-index: 1; text-align: center; color: #fff; padding: 0 20px; width: 100%;
}

.page-title {
    font-family: var(--serif-font);
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.page-subtitle {
    font-family: var(--main-font);
    font-size: 1rem;
    opacity: 0.8;
}

/* ----------------------------------------------------------------
   Sections & Content
----------------------------------------------------------------- */
section {
    padding: 100px 10%;
    position: relative;
    width: 100%;
}

.section-title {
    font-family: var(--serif-font);
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.section-title::before {
    content: attr(data-en);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--accent-font);
    font-size: 1.2rem;
    color: var(--primary-color);
    opacity: 0.7;
    white-space: nowrap;
}

/* For sub pages */
.page-content .section-title {
    font-size: 2rem;
    margin-bottom: 50px;
}
.page-content .section-title::before { content: none; }
.page-content .section-title::after {
    content: ""; display: block; width: 50px; height: 2px; background: var(--primary-color); margin: 20px auto 0;
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Concept (Home) */
.concept-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.concept-text {
    flex: 1; min-width: 300px; font-size: 1.1rem; line-height: 2.2; text-align: justify;
}

.concept-text .lead {
    font-size: 1.5rem; font-family: var(--serif-font); color: var(--primary-color); margin-bottom: 30px; display: block;
}

.concept-image {
    flex: 1; min-width: 300px; position: relative;
}

.concept-image img {
    width: 100%; border-radius: 4px; box-shadow: 20px 20px 0px rgba(0,0,0,0.05);
}

/* Cards (Home) */
.links-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px;
}

.card {
    position: relative; height: 400px; overflow: hidden; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; transition: transform 0.6s;
}

.card:hover .card-bg { transform: scale(1.1); }

.card-content {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 30px;
    color: #fff; transition: background 0.3s;
}

.card:hover .card-content {
    background: linear-gradient(to top, rgba(82, 199, 90, 0.8), transparent);
}

.card-title {
    font-size: 1.5rem; font-family: var(--serif-font); margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 10px; display: inline-block;
}

.card-link {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2;
}

/* About Us Specific */
.text-block { max-width: 800px; margin: 0 auto 60px; font-size: 1.05rem; line-height: 2.2; text-align: justify; }
.text-block p { margin-bottom: 30px; }
.text-block strong { color: var(--primary-color); }

.company-table {
    width: 100%; max-width: 900px; margin: 0 auto; border-collapse: collapse; font-size: 1rem;
}
.company-table th, .company-table td {
    padding: 20px; border-bottom: 1px solid #eee; text-align: left;
}
.company-table th {
    width: 30%; font-weight: 700; color: #111; font-family: var(--serif-font);
}
.company-table td { color: #555; }

/* Agency Specific */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.info-card { background: #f9f9f9; padding: 40px; border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.info-card h4 { font-family: var(--serif-font); margin-bottom: 20px; font-size: 1.2rem; border-left: 4px solid var(--primary-color); padding-left: 15px; }
.info-card p { font-size: 0.95rem; color: #666; margin-bottom: 0; }

.doc-section { margin-top: 60px; }
.doc-group { margin-bottom: 40px; }
.doc-group h5 { font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; display: flex; align-items: center; }
.doc-group h5::before { content: "\f058"; font-family: "Font Awesome 5 Free"; font-weight: 900; margin-right: 10px; color: var(--primary-color); }

.check-list { list-style: none; padding-left: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 15px; }
.check-list li { background: #fff; border: 1px solid #eee; padding: 10px 15px; border-radius: 4px; font-size: 0.9rem; display: flex; align-items: center; }
.check-list li i { color: var(--primary-color); margin-right: 10px; }
.note { font-size: 0.85rem; color: #888; margin-top: 5px; }

/* Properties Specific */
.prop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.prop-card {
    background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: transform 0.3s;
}
.prop-card:hover { transform: translateY(-10px); }
.prop-img-wrapper { height: 250px; overflow: hidden; position: relative; }
.prop-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.prop-card:hover .prop-img { transform: scale(1.1); }
.prop-content { padding: 25px; }
.prop-location {
    font-size: 0.8rem; color: var(--primary-color); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 10px; display: block;
}
.prop-title {
    font-family: var(--serif-font); font-size: 1.3rem; margin-bottom: 15px; color: #222;
}
.prop-desc { font-size: 0.95rem; color: #666; margin-bottom: 0; }

/* ----------------------------------------------------------------
   Work Item (Architecture) Link
----------------------------------------------------------------- */
.work-item {
    position: relative;
}

.work-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* ----------------------------------------------------------------
   Renovation Before/After Tabs (New Style)
----------------------------------------------------------------- */
.renov-ba-container {
    max-width: 1000px;
    margin: 0 auto 80px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 4px;
    overflow: hidden;
}

/* Tab Container */
.renov-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    background: #f0f0f0;
    position: relative;
    z-index: 10;
}

/* Individual Tab */
.renov-tab {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    cursor: pointer;
    background: var(--renov-tab-inactive);
    color: var(--renov-tab-text-inactive);
    font-family: var(--serif-font);
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s;
    letter-spacing: 1px;
    margin-right: -20px; /* Adjust for overlap */
    padding-left: 20px; /* Compensate for overlap */
}

/* First tab styling */
.renov-tab:first-child {
    z-index: 5;
    padding-left: 0;
    margin-left: 0;
}

/* Second tab styling */
.renov-tab:nth-child(2) {
    z-index: 4;
}

/* Arrow shape using ::after */
.renov-tab::after {
    content: "";
    position: absolute;
    top: 0;
    right: -20px; /* Extends outside */
    width: 0;
    height: 0;
    border-top: 30px solid transparent; /* Half height approx */
    border-bottom: 30px solid transparent;
    border-left: 20px solid var(--renov-tab-inactive); /* Match background */
    z-index: 2;
    transition: border-left-color 0.3s;
}

/* Remove arrow for last tab if desired, or keep for consistency. */
.renov-tab:last-child {
    margin-right: 0;
}
.renov-tab:last-child::after {
    display: none;
}

/* Active State */
.renov-tab.active {
    background: var(--renov-tab-active);
    color: var(--renov-tab-text-active);
}

.renov-tab.active::after {
    border-left-color: var(--renov-tab-active);
}

/* Hover State */
.renov-tab:not(.active):hover {
    background: #e6e6e6;
    color: #333;
}
.renov-tab:not(.active):hover::after {
    border-left-color: #e6e6e6;
}

/* Image Area */
.renov-image-area {
    position: relative;
    width: 100%;
    /* Aspect Ratio ~16:9 or 3:2 depending on images */
    padding-bottom: 66.66%; 
    overflow: hidden;
    background: #ddd;
}

.renov-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.renov-img.active {
    opacity: 1;
    z-index: 2;
}

/* Description */
.renov-desc {
    padding: 30px;
    background: #fff;
    border-top: 1px solid #eee;
}

/* ----------------------------------------------------------------
   Footer
----------------------------------------------------------------- */
footer {
    background: #111;
    color: #888;
    padding: 60px 10%;
    text-align: center;
    font-size: 0.9rem;
}

.footer-logo {
    font-family: var(--serif-font);
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

.social-links { margin: 20px 0; }
.social-links a { margin: 0 10px; font-size: 1.2rem; color: #fff; }

/* ----------------------------------------------------------------
   Responsive
----------------------------------------------------------------- */
@media (max-width: 1024px) {
    header {
        padding: 15px 20px;
    }
    
    .logo {
        position: relative;
        z-index: 1002;
    }

    nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        color: #333;
        text-align: center;
        padding-top: 80px;
        z-index: 999;
        box-shadow: none;
    }
    
    nav.open {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    nav ul {
        flex-direction: column;
        gap: 30px;
    }
    
    nav li a {
        font-size: 1.2rem;
        color: #333;
    }

    .menu-toggle {
        display: block;
        color: #fff;
        position: relative;
        z-index: 1002;
    }
    
    header.scrolled .menu-toggle,
    header:has(nav.open) .menu-toggle,
    .menu-toggle.active {
        color: #333;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 30px;
    }

    .hero-title { font-size: 2rem; }
    .hero-title-wrapper { animation: none; width: auto; border: none; white-space: normal; }
    
    .section-title { 
        font-size: 1.8rem; 
    }
    
    section {
        padding: 60px 5%;
    }

    .company-table th, .company-table td { display: block; width: 100%; padding: 10px 0; }
    .company-table th { border-bottom: none; color: var(--primary-color); }

    /* Before/After Mobile Fix */
    .ba-container {
        flex-direction: column;
    }
    .ba-item img {
        min-height: 250px;
    }
    
    /* Mobile Tabs Adjustments */
    .renov-tab { font-size: 0.9rem; padding: 12px 0; }
    .renov-tab::after {
        border-top-width: 25px;
        border-bottom-width: 25px;
        border-left-width: 15px;
        right: -15px;
    }
}