@charset "UTF-8";

/* ========================================
   全ページ共通：スマートフォン用
   適用幅：770px以下
======================================== */

/* ========================================
   基本設定
======================================== */
body {
    margin: 0;
    background: #f3f2ed;
    color: #0f1111;
    font-family: "Shippori Mincho", serif;
    font-weight: 400;
    overflow-wrap: break-word;
}

img { max-width: 100%; }


/* ========================================
   パララックス
   main.js はPC幅のみで実行するため、
   スマートフォンでは画像の拡大・移動を解除
======================================== */
.parallax {
    position: relative;
    overflow: hidden;
}

.parallax img {
    display: block;
    position: relative;
    width: 100%;
    height: 140% !important;
    object-fit: cover;
    /* transform: none !important; */
    will-change: auto;
}


/* ========================================
   ヘッダー共通
   トップページ・下層ページ共通
======================================== */
.page-intro_top {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding: 4.5vw 5vw;
    box-sizing: border-box;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 2vw;
    width: auto;
    color: #fff;
    text-decoration: none;
}

.site-logo img {
    display: block;
    width: auto;
    height: clamp(25px, 8vw, 38px);
}

.site-logo span {
    font-size: clamp(11px, 3.1vw, 15px);
    font-weight: 500;
    letter-spacing: 0.05em;
    white-space: nowrap;
}


.hamburger-nav {
    position: fixed;
    top: 4vw;
    right: 4vw;
    z-index: 999;
    width: 13vw;
    height: 13vw;
    max-width: 58px;
    max-height: 58px;
    text-align: center;
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;

    transition:
        width 0.25s ease,
        height 0.25s ease,
        max-width 0.25s ease,
        max-height 0.25s ease;
}

.hamburger-nav.active {
    width: calc(100% - 8vw);
    height: min(72vw, 67svh);
    max-width: calc(100% - 8vw);
    max-height: min(72vw, 67svh);
    background-image: linear-gradient(90deg, #ffffff, #cce5d0);
}

/* 閉じる際のアニメーション */
.hamburger-nav.active.closing {
    width: 13vw;
    height: 13vw;
    max-width: 58px;
    max-height: 58px;
    background: #fff;
    background-image: none;
}


.hamburger-nav_toggle {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: block;
    width: 13vw;
    height: 13vw;
    max-width: 58px;
    max-height: 58px;
    cursor: pointer;
    background: #fff;
}

.hamburger-nav.active .hamburger-nav_toggle { background: transparent; }

.hamburger-nav_toggle i {
    position: absolute;
    left: 0;
    right: 0;
    width: 45%;
    height: 1px;
    margin: auto;
    background-color: #999;
    transform-origin: 50% 50%;
    transition: transform 0.3s ease, opacity 0.1s ease 0.1s, top 0.3s ease;
}

.hamburger-nav_toggle i:nth-child(1) { top: 40%; }
.hamburger-nav_toggle i:nth-child(2) { top: 50%; }
.hamburger-nav_toggle i:nth-child(3) { top: 60%; }

.hamburger-nav.active .hamburger-nav_toggle i:nth-child(1) {
    top: 50%;
    transform: rotate(-45deg) translate(-50%, -50%);
}

.hamburger-nav.active .hamburger-nav_toggle i:nth-child(2) {
    opacity: 0;
    transform: translateX(-20vw);
}

.hamburger-nav.active .hamburger-nav_toggle i:nth-child(3) {
    top: 50%;
    transform: rotate(45deg) translate(-50%, -50%);
}

.hamburger-nav_content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    padding-top: 14vw;
    box-sizing: border-box;
    text-align: center;
    font-size: clamp(14px, 4vw, 18px);
    line-height: 1.5;
}

.hamburger-nav_content * { opacity: 0; }
.hamburger-nav.active .hamburger-nav_content * { opacity: 1; }

.hamburger-nav_content ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5vw;
    width: 100%;
    margin: 0;
    padding: 0 5vw 4vw;
    list-style: none;
}

.hamburger-nav_content ul li {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    color: #2d3235;
    cursor: pointer;
    transition: opacity 0.3s ease 0.1s;
}

.hamburger-nav_content ul li a {
    display: block;
    padding: 1.3vw 0;
    color: inherit;
    text-decoration: none;
}

/* タッチ操作ではホバー装飾を使用しない */
.hamburger-nav_content ul li::before,
.hamburger-nav_content ul li::after {
    display: none;
}


/* ========================================
   下層ページ共通ヘッダー
   business.php / company.php / property.php / consult.php
======================================== */
.page-intro { width: 100%; }

.page-intro_text {
    position: relative;
    width: 100%;
    height: 48vw;
    min-height: 180px;
    background: #1e4035;
    box-sizing: border-box;
}

.page-intro_title {
    position: absolute;
    bottom: 6vw;
    left: 5vw;
    z-index: 1;
    display: flex;
    align-items: baseline;
    gap: 3vw;
    color: #fff;
}

.page-intro_title h1 {
    font-size: clamp(24px, 6vw, 34px);
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 1.5;
}

.page-intro_title span {
    font-size: clamp(12px, 3.2vw, 18px);
    letter-spacing: 0.04em;
    line-height: 1.5;
}

.page-intro_image {
    display: block;
    width: 100%;
    height: 34vw;
    min-height: 120px;
    margin: 0;
    overflow: hidden;
}

.page-intro_image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* ========================================
   フッター共通
======================================== */
.site-footer {
    position: relative;
    display: block;
    min-height: 0;
    padding: 14vw 6vw 8vw;
    box-sizing: border-box;
    text-align: center;
}

/* フッター上部のアクセントライン */
.site-footer::before {
    content: "";
    display: block;
    width: 16vw;
    max-width: 64px;
    height: 2px;
    margin: 0 auto 10vw;
    background: #79a94b;
}

.site-footer_inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ロゴと社名を縦にまとめ、スマホでも崩れない構成 */
.site-footer_logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3vw;
    margin: 0 0 9vw;
}

.site-footer_logo img,
.site-footer_logo img.footer-logo {
    display: block;
    flex: 0 0 auto;
    width: clamp(48px, 15vw, 64px);
    max-width: 64px;
    height: auto;
    object-fit: contain;
}

.footer-company-name {
    margin: 0;
    font-size: clamp(17px, 4.8vw, 22px);
    line-height: 1.5;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

/* ナビゲーション：指定位置に明示的に配置 */
.site-footer_nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 0;
    border-top: 1px solid rgba(128, 128, 128, 0.35);
}

.site-footer_nav a {
    display: block;
    min-width: 0;
    padding: 3.5vw 1vw;
    border-bottom: 1px solid rgba(128, 128, 128, 0.35);
    font-size: clamp(12px, 3.5vw, 15px);
    line-height: 1.6;
    letter-spacing: 0.04em;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

/* 1段目：トップを中央 */
.site-footer_nav a:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1;
    justify-self: center;
    width: 50%;
    border-right: 0;
}

/* 2段目：事業内容（左）、会社案内（右） */
.site-footer_nav a:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    border-right: 1px solid rgba(128, 128, 128, 0.35);
}

.site-footer_nav a:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

/* 3段目：物件情報（左）、売却相談（右） */
.site-footer_nav a:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
    border-right: 1px solid rgba(128, 128, 128, 0.35);
}

.site-footer_nav a:nth-child(5) {
    grid-column: 2;
    grid-row: 3;
}

/* スマホではホバー用の下線アニメーションを使用しない */
.site-footer_nav a::after { display: none; }

.site-footer_copyright {
    position: static;
    width: 100%;
    max-width: 340px;
    margin: 9vw auto 0;
    font-size: clamp(9px, 2.7vw, 11px);
    line-height: 1.8;
    letter-spacing: 0.02em;
    text-align: center;
    overflow-wrap: anywhere;
}
