/* ============================================
   ARZ Homepage — Custom Styles
   ============================================
   Tailwind handles layout/spacing/typography.
   This file handles: animations, transitions,
   and complex visual effects not easily expressed
   as utility classes.
   ============================================ */

/* --- Global Variables & Shared Classes --- */

/* ============================================
   ARZ — Global CSS Custom Properties
   ============================================
   Single source of truth for all typography,
   colors, and spacing. Imported by all page CSS.
   Change values here → applies everywhere.
   ============================================ */

:root {
    /* Colors */
    --color-primary: #a39575;
    --color-dark: #121212;
    --color-muted: #606068;
    --color-gray-bg: #afafb9;
    --color-border: #e7e9ee;
    --color-white: #ffffff;
    --color-text-light: #e5e5e5;
    --color-gold: #b09868;
    --color-gold-muted: #a39575;

    --font-ja: "Meiryo", "メイリオ", sans-serif;
    --font-heading: "Yu Mincho", "YuMincho", "游明朝", "Hiragino Mincho ProN", "Noto Serif JP", serif;

    /* Layout */
    --container-max: 1094px;
    --header-height: 5.5rem; /* 88px */
    --section-padding-y: 80px;
    --section-padding-y-mobile: 50px;

    /* Transitions */
    --transition-base: all 0.15s ease-in-out;
    --transition-smooth: all 0.5s ease;

    /* ============================================
     Typography Scale (from PSD Design)
     ============================================ */

    /* Navigation */
    --nav-font-size: 11px;
    --nav-letter-spacing: 0;
    --nav-gap: 12px;

    @media (min-width: 1280px) {
        --nav-font-size: 13px;
        --nav-gap: 24px;
    }

    @media (min-width: 1536px) {
        --nav-font-size: 14px;
        --nav-gap: 40px;
    }

    /* Hero Title: 空間の次元を上げる「作り手の圧倒的な思い」 */
    --hero-title-size: 72px;
    --hero-title-size-mobile: 28px;
    --hero-title-tracking: var(--tracking-wide);
    --hero-title-leading: var(--leading-tight);

    /* Hero Description: 一棟の再生を通じて... */
    --hero-desc-size: 40px;
    --hero-desc-size-mobile: 14px;
    --hero-desc-tracking: var(--tracking-base);
    --hero-desc-leading: var(--leading-tight);

    /* Concept Title: 資産価値を凌駕させる「究極のこだわり」 */
    --concept-title-size: 45px;
    --concept-title-size-mobile: 20px;
    --concept-title-tracking: var(--tracking-base);
    --concept-title-leading: var(--leading-tight);

    /* Concept Body: その土地が持つ真の... */
    --concept-body-size: 22px;
    --concept-body-size-mobile: 13px;
    --concept-body-tracking: var(--tracking-base);
    --concept-body-leading: var(--leading-loose); /* 49px / 22px ≈ 2.23 */

    /* Section Titles (PICKUP, NEWS, GALLERY, SPEC...) */
    --section-title-size: 40px;
    --section-title-size-mobile: 28px;
    --section-title-ja-size: 18px;
    --section-title-ja-size-mobile: 14px;
    --section-title-tracking: var(--tracking-wider);
    --section-title-ja-tracking: var(--tracking-widest);

    /* Page Header Titles (sub-pages: property, borrower, owner, contact) */
    --page-title-size: 40px;
    --page-title-size-mobile: 28px;
    --page-title-ja-size: 18px;
    --page-title-ja-size-mobile: 14px;

    /* Property Cards */
    --card-title-size: 25px;
    --card-title-size-mobile: 16px;
    --card-address-size: 19px;
    --card-address-size-mobile: 12px;
    --card-price-size: 24px;
    --card-price-size-mobile: 16px;

    /* Buttons (すべての物件をみる etc.) */
    --btn-font-size: 18px;
    --btn-font-size-mobile: 14px;

    /* News Content */
    --news-content-size: 18px;
    --news-content-size-mobile: 14px;

    /* Body Text */
    --body-font-size: 14px;
    --body-font-size-mobile: 13px;
    --body-line-height: var(--leading-normal);
    --body-letter-spacing: var(--tracking-base);

    /* Global Letter Spacing (Tracking) */
    --tracking-base: 0.04em;
    --tracking-wide: 0.1em;
    --tracking-wider: 0.16em;
    --tracking-widest: 0.22em;

    /* Global Line Height (Leading) */
    --leading-tight: 1.2; /* Headings, titles, compact text */
    --leading-normal: 1.6; /* Body text, general content */
    --leading-relaxed: 2; /* Spacious descriptions */
    --leading-loose: 2.23; /* Concept body (49px / 22px) */

    /* Breadcrumb */
    --breadcrumb-size: 12px;
    --breadcrumb-size-mobile: 11px;

    /* Footer */
    --footer-nav-size: 16px;
    --footer-nav-size-mobile: 13px;
    --footer-info-size: 16px;
    --footer-info-size-mobile: 13px;
    --footer-heading-size: 16px;
    --footer-heading-size-mobile: 13px;
    --footer-copyright-size: 14px;
    --footer-copyright-size-mobile: 11px;
}

@media (max-width: 767px) {
    :root {
        --header-height: 3.75rem; /* 60px */
        --section-padding-y: var(--section-padding-y-mobile);

        /* Mobile typography overrides */
        --hero-title-size: var(--hero-title-size-mobile);
        --hero-desc-size: var(--hero-desc-size-mobile);
        --concept-title-size: var(--concept-title-size-mobile);
        --concept-body-size: var(--concept-body-size-mobile);
        --section-title-size: var(--section-title-size-mobile);
        --section-title-ja-size: var(--section-title-ja-size-mobile);
        --page-title-size: var(--page-title-size-mobile);
        --page-title-ja-size: var(--page-title-ja-size-mobile);
        --card-title-size: var(--card-title-size-mobile);
        --card-address-size: var(--card-address-size-mobile);
        --card-price-size: var(--card-price-size-mobile);
        --btn-font-size: var(--btn-font-size-mobile);
        --news-content-size: var(--news-content-size-mobile);
        --body-font-size: var(--body-font-size-mobile);
        --breadcrumb-size: var(--breadcrumb-size-mobile);
        --footer-nav-size: var(--footer-nav-size-mobile);
        --footer-info-size: var(--footer-info-size-mobile);
        --footer-heading-size: var(--footer-heading-size-mobile);
        --footer-copyright-size: var(--footer-copyright-size-mobile);
    }
}

/* --- Section Title Classes (shared across all pages) --- */

.section-title-en {
    color: var(--color-text-light);
    font-size: var(--section-title-size);
    font-weight: 400;
    letter-spacing: var(--section-title-tracking);
    font-family: var(--font-heading);
}

.section-title-ja {
    font-size: var(--section-title-ja-size);
    font-weight: 400;
    letter-spacing: var(--section-title-ja-tracking);
    display: block;
    margin-top: 10px;
    color: var(--color-gold-muted);
}

/* --- Section Titles (Dark Variant) --- */

.section-title-en--dark {
    color: var(--color-text-light);
}

.section-title-ja--dark {
    color: var(--color-gold-muted);
}

/* --- Navigation Links --- */

.nav-link {
    font-size: var(--nav-font-size);
    font-weight: 700;
    letter-spacing: var(--nav-letter-spacing);
    text-transform: uppercase;
    transition: color 0.2s;
}

/* ============================================
   Hero Image Slider
   ============================================
   CSS-only horizontal auto-slider with
   multi-layer overlay effects.
   Overlay is generic: works for any number
   of slides without CSS changes.
   ============================================ */

/* --- Slider Container --- */

.hero-slider {
    overflow: hidden;
}

/* --- Slider Track (stacked container) --- */

.hero-slider__track {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* --- Individual Slide (stacked, only active visible) --- */

.hero-slider__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    overflow: hidden;
}

.hero-slider__slide.is-active {
    opacity: 1;
}

/* 1. Original image. */

.hero-slider__img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: top;
       object-position: top;
    display: block;
}

/* 黒グラデーション */

.hero-slider__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.75) 35%, rgba(0, 0, 0, 0.15) 70%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

@media (max-width: 767px) {
    .hero-slider__overlay {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0) 50%);
    }
}

/* --- Base Overrides --- */

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

body {
    font-family: var(--font-ja);
    color: var(--color-dark);
    font-size: 1rem;
    line-height: var(--leading-normal);
    letter-spacing: var(--tracking-base);
}

.font-en {
    font-family: var(--font-heading) !important;
}

/* --- Object Fit --- */

.object-fit {
    -o-object-fit: cover;
       object-fit: cover;
    min-height: 100%;
}

/* --- Text Indent --- */

.text-indent {
    text-indent: 1em;
}

/* --- Link Base --- */

.home-link {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-base);
}

.home-link:hover {
    opacity: 0.6;
}

/* --- Backlayer (Menu Overlay) --- */

.backlayer {
    display: none;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    position: fixed;
    overflow: hidden;
    z-index: 120;
    background: var(--color-gray-bg);
}

.backlayer.is-open {
    display: block;
    animation: backlayer-open 0.4s both;
}

.backlayer.is-close {
    display: block;
    animation: backlayer-close 0.4s both;
}

@keyframes backlayer-open {
    0% {
        opacity: 0;
        transform: scale3d(0.9, 0.9, 1);
    }

    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

@keyframes backlayer-close {
    0% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }

    100% {
        opacity: 0;
        transform: scale3d(0.9, 0.9, 1);
    }
}

/* --- Hamburger Menu Lines --- */

.menu-line {
    transition: 0.3s;
    width: 2.5rem;
    height: 1px;
    background: #fff;
    display: block;
    position: absolute;
    left: 1.5rem;
}

.menu-line-1 {
    top: 2.375rem;
}

.menu-line-2 {
    top: 3.125rem;
}

.menu-active .menu-line-1 {
    transform: rotate(45deg);
    top: 2.75rem;
    background: #fff;
}

.menu-active .menu-line-2 {
    transform: rotate(-45deg);
    top: 2.75rem;
    background: #fff;
}

@media (max-width: 767px) {
    .menu-line {
        width: 2.25rem;
        left: 0.9375rem;
    }

    .menu-line-1 {
        top: 1.6875rem;
    }

    .menu-line-2 {
        top: 2.4375rem;
    }

    .menu-active .menu-line-1 {
        top: 2.0625rem;
        left: 0.9375rem;
    }

    .menu-active .menu-line-2 {
        top: 2.0625rem;
        left: 0.9375rem;
    }
}

/* --- Vacancy Badge --- */

.vacancy-badge {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    min-width: 106px;
    padding: 18px 5px;
    text-align: center;
    background: var(--color-dark);
}

.vacancy-badge.no-vacancy {
    background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 767px) {
    .vacancy-badge {
        font-size: 12px;
        min-width: 60px;
        padding: 14px 10px;
    }
}

/* --- Property Photo Hover --- */

.property-photo figure {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.property-photo figure img {
    width: 100%;
    height: 100%;
    display: block;
    transition: var(--transition-smooth);
}

.property-photo figure::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(54, 58, 64, 0.4);
    z-index: 1;
    opacity: 0;
    transition: var(--transition-smooth);
}

@media (min-width: 768px) {
    .property-photo:hover figure img {
        transform: scale(1.05);
    }

    .property-photo:hover figure::before {
        opacity: 1;
    }
}

/* --- Scroll Reveal Animation --- */

.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- About Section Circles --- */

.about-circles {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.about-circle {
    width: 100vw;
    height: 100vw;
    border: solid 1px #d0d0ff;
    border-radius: 50%;
    position: absolute;
}

.about-circle.layer-0 {
    animation: wave-0 8s infinite;
}

.about-circle.layer-1 {
    animation: wave-0 8s 1s infinite;
}

.about-circle.layer-2 {
    animation: wave-0 8s 5s infinite;
}

.about-circle.layer-3 {
    animation: wave-0 8s 6s infinite;
}

@keyframes wave-0 {
    0% {
        width: 0%;
        height: 0%;
        box-shadow: 0 0 100px inset #d0d0ff;
        opacity: 0;
        transform: none;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        width: 100vw;
        height: 100vw;
        opacity: 0;
        transform: none;
    }
}

/* --- Fixed Side Icons --- */

.fixed-side-icons {
    position: fixed;
    bottom: 2.5rem;
    left: 1.1875rem;
    width: 1.375rem;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    z-index: 8;
}

.fixed-side-icons a {
    display: block;
    width: 1.375rem;
    height: 1.375rem;
    fill: #aaa;
    color: #aaa;
    transition: var(--transition-smooth);
}

.fixed-side-icons a:hover {
    fill: rgba(90, 90, 102, 1);
    color: rgba(90, 90, 102, 1);
}

.fixed-side-icons a.scroll-top {
    padding: 0.125rem;
    fill: var(--color-dark);
    color: var(--color-dark);
}

@media (max-width: 767px) {
    .fixed-side-icons {
        bottom: 1.25rem;
        left: 0.9375rem;
        gap: 2rem;
    }
}

/* Section title classes are in _variables.css */

/* --- Contact Button (Hero) --- */

.hero-contact-btn {
    display: block;
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 100;
}

.hero-contact-btn a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 140px;
    height: 90px;
    background: transparent;
    border: 2px solid #a39575;
    color: #a39575;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    position: relative;
    transition: all 0.5s;
}

.hero-contact-btn a::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    transform: scaleX(0);
    transform-origin: left top;
    transition: 0.4s ease transform;
    background: #000;
}

.hero-contact-btn a:hover::before {
    transform: scaleX(1);
}

.hero-contact-btn a span {
    position: relative;
    z-index: 2;
}

/* --- Logo Header --- */

.header-logo {
    display: block;
    width: 3.5rem;
    height: 3.5rem;
    background: url("/assets/images/logo/svg_logo_sq_bk.svg") no-repeat 0 0;
    background-size: contain;
    overflow: hidden;
    text-indent: -9999px;
}

@media (max-width: 767px) {
    .header-logo {
        width: 2.75rem;
        height: 2.75rem;
    }
}

/* --- Footer Logo --- */

.footer-logo {
    display: inline-block;
    vertical-align: bottom;
    width: 5.625rem;
    height: 0;
    padding-top: 2.0625rem;
    margin-right: 5.625rem;
    overflow: hidden;
    line-height: var(--leading-relaxed);
    background: url("/assets/images/logo/svg_logo_bk.svg") no-repeat 50% 50%;
    background-size: contain;
}

/* --- Shared Breadcrumb --- */

.c-breadcrumb {
    width: auto;
    padding: 100px 50px 0;
}

.c-breadcrumb__list {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 1;
    font-size: var(--breadcrumb-size);
    color: var(--color-gold-muted);
}

.c-breadcrumb__list > li {
    position: relative;
    display: inline;
}

.c-breadcrumb__list > li a {
    transition: 0.2s;
    color: var(--color-gold-muted);
    text-decoration: none;
}

.c-breadcrumb__list > li:before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin: 0 12px 0 6px;
    transform: rotate(-135deg);
    position: relative;
    border: solid 0 var(--color-gold-muted);
    border-width: 0 0 1px 1px;
}

.c-breadcrumb__list > li:first-child:before {
    display: none;
}

@media screen and (min-width: 768px) {
    .c-breadcrumb__list > li a:hover {
        opacity: 0.7;
    }
}

@media screen and (max-width: 767px) {
    .c-breadcrumb {
        width: auto;
        padding: 75px 15px 0;
    }

    .c-breadcrumb__list {
        line-height: 1;
        font-size: var(--breadcrumb-size-mobile);
    }

    .c-breadcrumb__list > li {
        line-height: var(--leading-normal);
    }
}

/* Home design PNG font size correction */

:root {
    --concept-body-leading: 1.6;
    --hero-title-size: 52px;
    --hero-desc-size: 28px;
    --concept-title-size: 30px;
    --concept-body-size: 18px;
    --section-title-size: 31px;
    --section-title-ja-size: 14px;
    --card-title-size: 16px;
    --card-address-size: 12px;
    --card-price-size: 14px;
    --btn-font-size: 13px;
    --news-content-size: 13px;
    --footer-nav-size: 12px;
    --footer-info-size: 12px;
    --footer-heading-size: 12px;
    --footer-copyright-size: 11px;
}

@media (max-width: 767px) {
    :root {
        --hero-title-size: 24px;
        --hero-desc-size: 12px;
        --concept-title-size: 18px;
        --concept-body-size: 12px;
        --section-title-size: 24px;
        --section-title-ja-size: 12px;
        --card-title-size: 14px;
        --card-address-size: 11px;
        --card-price-size: 13px;
        --btn-font-size: 12px;
        --news-content-size: 12px;
    }
}

/* --- English Translation Fixes --- */

body.lang-en {
    --footer-info-size: 12px;
    --footer-nav-size: 12px;
    --footer-heading-size: 12px;
    --footer-copyright-size: 12px;
}

body.lang-en body {
    letter-spacing: normal;
}
