/*
Theme Name: IEYA
Theme URI: https://ieya.jp
Author: IEYA
Author URI: https://ieya.jp
Description: IEYA オフィシャルサイト用 WordPress テーマ。住まいに、品格という選択を。
Version: 1.0.18
License: All Rights Reserved
Text Domain: ieya
*/

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

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Arial, sans-serif;
    background: #f5f3f0;
    color: #3d3d3d;
    line-height: 1.8;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    z-index: 1000;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                backdrop-filter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(238, 238, 238, 0.6);
    backdrop-filter: blur(6px);
    font-family: Garamond, serif;
}

.nav-container.is-hidden {
    transform: translateY(-100%);
}

.nav-container.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    background: rgba(238, 238, 238, 0.85);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #3d3d3d;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.7;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
    padding-bottom: 4px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #8B7355;
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-menu a:hover {
    color: #8B7355;
}

.nav-menu a:hover::after {
    width: 100%;
}

.cta-button {
    background: #8B7355;
    color: white;
    border: none;
    padding: 12px 28px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.8px;
    cursor: pointer;
    display: inline-flex;       /* flexからinline-flexに変更 */
    flex-direction: row;        /* 横並びを明示 */
    align-items: center;
    gap: 8px;
    white-space: nowrap;        /* テキスト折り返し防止 */
    text-decoration: none;      /* aタグのアンダーライン除去 */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
    flex-shrink: 0;             /* 縮まないように固定 */
}

.cta-button:hover {
    background: #6B5444;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(139, 115, 85, 0.25);
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* ============================================================
   Hero 背景ステージ
   背景画像と人物画像を同一比率の箱に入れ、常に連動させる。
   元画像 1672 × 941 の比率を保ったまま画面全体を覆う。
   ============================================================ */
.hero-stage {
    --hero-ratio: 1.7768;          /* 1672 ÷ 941 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width:  max(100vw, calc(100vh * var(--hero-ratio)));
    height: max(100vh, calc(100vw / var(--hero-ratio)));
    z-index: 0;
}

.hero-stage-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* ---- 人物画像（ステージ基準の%配置＝背景と完全連動） ---- */
.hero-person {
    position: absolute;
    width: auto;
    transform: translateX(-50%);   /* left を人物の中心基準にする */
    opacity: 0;
    transition: opacity 1.4s cubic-bezier(.25, .46, .45, .94);
    pointer-events: none;
}
.hero-person.is-visible {
    opacity: 1;
}

/* 立ち位置・大きさ（後日ブラウザ上で微調整する暫定値） */
.hero-person--1 { left: 58%; bottom: 6%;  height: 31%; }
.hero-person--2 { left: 88%; bottom: 5%; height: 28%; }
.hero-person--3 { left: 73%; bottom: 5%; height: 29%; }

@media (prefers-reduced-motion: reduce) {
    .hero-person {
        transition: none;
        opacity: 1;
    }
}

/* ============================================================
   オーバーレイ（下部にグラデーションでテキスト視認性を確保）
   ============================================================ */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 60%,
        rgba(0, 0, 0, 0.25) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* ============================================================
   Hero Bottom Content（左下テキストオーバーレイ）
   ============================================================ */
.hero-bottom-content {
    position: absolute;
    bottom: 100px;
    left: 60px;
    z-index: 10;
}

.hero-label {
    font-size: 13px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-label::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background: rgba(255, 255, 255, 0.7);
}

.hero-label.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-catchcopy {
    font-family: 'Noto Serif JP', serif;
    font-size: 46px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 4px;
    line-height: 1.4;
    margin-bottom: 28px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-catchcopy.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes spBodyFadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-body-sp {
    display: none;
}

.hero-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 2px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease,
                background 0.3s ease, border-color 0.3s ease;
}

.hero-link-btn.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-link-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.arrow {
    font-size: 15px;
    opacity: 0.6;
    transition: transform 0.3s ease;
}

.hero-link-btn:hover .arrow {
    transform: translateX(4px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: bounce 2s infinite;
    opacity: 0;
    z-index: 100;
    transition: opacity 0.5s ease;
}

.scroll-indicator.is-visible {
    opacity: 0.6;
}

.scroll-indicator svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
    stroke-width: 2;
    fill: none;
}

.scroll-indicator-text {
    font-size: 11px;
    color: #ffffff;
    letter-spacing: 1px;
    font-weight: 500;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   NEWS Section
   ============================================================ */
.news-section {
    width: 100%;
    padding: 80px 60px;
    background: #f5f3f0;
    display: flex;
    justify-content: center;
}

.news-inner {
    width: 100%;
    max-width: 1200px;
}

.news-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.news-label {
    font-size: 14px;
    letter-spacing: 3px;
    color: #a68968;
    font-weight: 500;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.news-label-bar {
    width: 40px;
    height: 2px;
    background: #a68968;
    margin: 12px auto 0;
}

.news-section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 56px;
    font-weight: 600;
    color: #3d3d3d;
    margin-top: 24px;
    letter-spacing: 2px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 48px;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 32px 0;
    border-bottom: 1px solid #ddd;
    gap: 40px;
    transition: background 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    cursor: pointer;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: rgba(230, 191, 171, 0.1);
    padding-left: 20px;
    padding-right: 20px;
    margin-left: -20px;
    margin-right: -20px;
}

.news-date {
    font-size: 14px;
    color: #6b6b6b;
    font-weight: 400;
    min-width: 100px;
    letter-spacing: 0.5px;
}

.news-category {
    display: inline-block;
    background: #8B7355;
    color: white;
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    min-width: 100px;
    text-align: center;
    border-radius: 2px;
}

.news-text-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 24px;
}

.news-title-text {
    font-size: 15px;
    color: #3d3d3d;
    font-weight: 400;
    letter-spacing: 0.3px;
    flex: 1;
}

.news-title-text a {
    color: inherit;
    text-decoration: none;
}

.news-title-text a:hover {
    color: #8B7355;
}

.news-arrow {
    font-size: 16px;
    color: #8B7355;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.news-cta-btn-wrap {
    display: flex;
    justify-content: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #8B7355;
    color: white;
    border: none;
    padding: 16px 48px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary:hover {
    background: #6B5444;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(139, 115, 85, 0.3);
    color: white;
}

/* NEWS Animations */
@keyframes newsDissolveDown {
    from { opacity: 0; transform: translateY(-32px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes newsDissolve {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes newsDrop {
    from { opacity: 0; transform: translateY(-48px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.news-label-anim  { opacity: 0; }
.news-title-anim  { opacity: 0; }
.news-item-anim   { opacity: 0; transform: translateY(-48px); }
.news-cta-anim    { opacity: 0; }

.news-label-anim.nv  { animation: newsDissolveDown 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.news-title-anim.nv  { animation: newsDissolveDown 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.45s forwards; }
.news-item-anim.nv   { animation: newsDrop 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.news-cta-anim.nv    { animation: newsDissolve 1.2s ease forwards; }

.news-header {
    opacity: 0;
    transform: translateY(40px);
}

.news-header.is-visible {
    animation: fadeInDown 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.news-item.is-visible {
    animation: fadeInDown 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.news-item:nth-child(2).is-visible { animation-delay: 0.2s; }
.news-item:nth-child(3).is-visible { animation-delay: 0.4s; }

.news-cta-btn {
    opacity: 0;
}

.news-cta-btn.is-visible {
    animation: fadeInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
}

/* ============================================================
   i-AREA Section
   ============================================================ */
.iarea-section {
    width: 100%;
    padding: 100px 60px;
    background-image: url('images/i-area-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    min-height: 800px;
    position: relative;
}

.iarea-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.75);
    z-index: 1;
}

.iarea-inner {
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 2;
}

.iarea-header {
    text-align: center;
    margin-bottom: 80px;
}

.iarea-catchcopy {
    font-size: 14px;
    letter-spacing: 1px;
    color: #a68968;
    font-weight: 400;
    margin-bottom: 20px;
}

.iarea-logo-wrapper {
    margin-bottom: 12px;
}

.iarea-logo-wrapper img {
    max-width: 600px;
    height: auto;
    display: inline-block;
}

.iarea-series-title {
    font-size: 16px;
    letter-spacing: 4px;
    color: #8B7355;
    font-weight: 400;
}

.iarea-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.iarea-card {
    background: white;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.iarea-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.iarea-card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.iarea-card-body {
    padding: 28px 24px 32px;
}

.iarea-card-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 20px;
    font-weight: 500;
    color: #3d3d3d;
    margin-bottom: 12px;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

.iarea-card-desc {
    font-size: 13px;
    color: #6b6b6b;
    line-height: 1.8;
    margin-bottom: 24px;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.iarea-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8B7355;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: gap 0.3s ease;
}

.iarea-card-link:hover {
    gap: 12px;
}

.iarea-cta-wrap {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.iarea-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(139, 115, 85, 0.9);
    color: white;
    padding: 16px 48px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.6px;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.iarea-cta-btn:hover {
    background: #6B5444;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(139, 115, 85, 0.3);
    color: white;
}

/* i-AREA Animations */
.iarea-catchcopy {
    opacity: 0;
    transform: translateY(-30px);
    transition: none;
}

.iarea-catchcopy.is-visible {
    animation: newsDissolveDown 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.iarea-logo-wrapper {
    opacity: 0;
    transition: none;
}

.iarea-logo-wrapper.is-visible {
    animation: newsDissolve 0.8s ease forwards;
}

.iarea-series-title {
    opacity: 0;
    transform: translateY(-20px);
    transition: none;
}

.iarea-series-title.is-visible {
    animation: newsDissolveDown 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.iarea-card {
    opacity: 0;
    transform: translateX(-40px);
    transition: none;
}

.iarea-card.is-visible {
    animation: slideInLeft 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.iarea-cta-btn {
    opacity: 0;
}

.iarea-cta-btn.is-visible {
    animation: fadeInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 3.4s forwards;
}

/* ============================================================
   Rental Management Section
   ============================================================ */
.rental-mgmt-section {
    width: 100%;
    padding: 100px 60px;
    background-image: url('images/rental-management-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    min-height: 800px;
    position: relative;
}

.rental-mgmt-inner {
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 2;
}

.rental-mgmt-box {
    text-align: center;
    margin-bottom: 80px;
    background: rgba(255, 255, 255, 0.5);
    padding: 60px 40px;
    border-radius: 4px;
    opacity: 0;
    animation: fadeInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-play-state: paused;
}

.rental-mgmt-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 72px;
    font-weight: 400;
    color: #3d3d3d;
    letter-spacing: 8px;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-play-state: paused;
}

.rental-mgmt-body {
    font-size: 16px;
    letter-spacing: 1px;
    color: #6b6b6b;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-play-state: paused;
}

.rental-mgmt-btn-wrap {
    display: flex;
    justify-content: center;
}

.rental-mgmt-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #8B7355;
    color: white;
    padding: 16px 48px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.8px;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-play-state: paused;
}

.rental-mgmt-btn:hover {
    background: #6B5444;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(139, 115, 85, 0.3);
    color: white;
}

/* ============================================================
   Sanchaya Section
   ============================================================ */
.sanchaya-section {
    width: 100%;
    padding: 100px 60px;
    background-image: url('images/sanchaya-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 16 / 9;
    min-height: 700px;
    position: relative;
}

.sanchaya-bg-cover {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    pointer-events: none;
    z-index: 1;
}

.sanchaya-tile {
    background: #f5f3f0;
    opacity: 1;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sanchaya-inner {
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 2;
}

.sanchaya-box {
    text-align: center;
    margin-bottom: 80px;
    background: rgba(255, 255, 255, 0.5);
    padding: 60px 40px;
    border-radius: 4px;
    opacity: 0;
    animation: fadeInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-play-state: paused;
}

.sanchaya-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 72px;
    font-weight: 400;
    color: #3d3d3d;
    letter-spacing: 8px;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-play-state: paused;
}

.sanchaya-body {
    font-size: 16px;
    letter-spacing: 1px;
    color: #6b6b6b;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-play-state: paused;
}

.sanchaya-btn-wrap {
    display: flex;
    justify-content: center;
}

.sanchaya-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #8B7355;
    color: white;
    padding: 16px 48px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.8px;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-play-state: paused;
}

.sanchaya-btn:hover {
    background: #6B5444;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(139, 115, 85, 0.3);
    color: white;
}

/* ============================================================
   Mobile Contact Bar（スマートフォン専用 お問い合わせ固定バナー）
   ============================================================ */
.mobile-contact-bar {
    /* デスクトップでは完全に非表示 */
    display: none;
}

@media (max-width: 767px) {
    .mobile-contact-bar {
        /* 固定配置：画面最下部 */
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 950;

        /* レイアウト */
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 20px;

        /* ブランドカラーの背景 */
        background: #8B7355;
        color: #fff;
        text-decoration: none;

        /* セーフエリア（iPhone ホームバー）対応 */
        padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));

        /* 初期：画面下に隠す */
        transform: translateY(100%);
        transition: transform .4s cubic-bezier(.22,.68,0,1.2);
    }

    /* スクロール後に出現（スライドアップ） */
    .mobile-contact-bar.is-visible {
        transform: translateY(0);
    }

    /* タップ時にやや暗く */
    .mobile-contact-bar:active {
        background: #7a6449;
    }

    /* メールアイコン */
    .mcb-icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        opacity: .9;
    }

    /* テキスト */
    .mcb-text {
        font-size: 14px;
        font-family: 'Noto Serif JP', serif;
        letter-spacing: 1.5px;
        font-weight: 500;
    }

    /* 右矢印 */
    .mcb-arrow {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        opacity: .8;
    }
}

/* ============================================================
   Back to Top Button（トップへ戻るボタン）
   ============================================================ */
.back-to-top {
    /* 固定表示：右下 */
    position: fixed;
    right: 28px;
    bottom: 40px;
    z-index: 900;

    /* 外観 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 60px;
    padding: 12px 0 10px;
    border: 1px solid rgba(139, 115, 85, .55);
    border-radius: 4px;
    background: rgba(40, 34, 28, .82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    color: #d4c4ac;

    /* 初期状態：非表示 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .35s ease, visibility .35s ease,
                transform .35s ease, background .25s ease,
                border-color .25s ease;
}
/* スクロール後に表示 */
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* ホバー */
.back-to-top:hover {
    background: rgba(139, 115, 85, .9);
    border-color: rgba(139, 115, 85, 1);
    color: #fff;
    transform: translateY(-4px);
}
.back-to-top:focus-visible {
    outline: 2px solid #8B7355;
    outline-offset: 3px;
}

/* 家アイコン */
.btt-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* 「トップへ」テキスト */
.btt-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    font-family: 'Noto Serif JP', serif;
    line-height: 1;
    white-space: nowrap;
}

/* スマートフォンは少し小さく・右余白を縮小 */
@media (max-width: 767px) {
    .back-to-top {
        right: 16px;
        bottom: 28px;
        width: 52px;
        padding: 10px 0 8px;
    }
    .btt-icon {
        width: 24px;
        height: 24px;
    }
    .btt-label {
        font-size: 9px;
    }
}

/* ============================================================
   Site Footer
   ============================================================ */
.site-footer {
    background: #3d3d3d;
    color: #f5f3f0;
    padding: 60px 60px 40px;
    text-align: center;
}

/* ---- フッターナビゲーション ---- */
.footer-nav {
    margin-bottom: 40px;
}
.footer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 40px;
}
.footer-nav-list li a {
    color: #c0b8ad;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 2px;
    transition: color 0.2s ease;
}
.footer-nav-list li a:hover {
    color: #f5f3f0;
}

/* ---- コピーライト ---- */
.footer-copyright {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 28px;
    margin-top: 0;
}
.footer-copyright p {
    font-size: 12px;
    letter-spacing: 2px;
    color: #c0b8ad;
    margin: 0;
}

/* ============================================================
   Site Footer — スマートフォン（767px以下）
   8ブロック 2列グリッド ＋ コピーライト1行
   ============================================================ */
@media (max-width: 767px) {
    .site-footer {
        padding: 0 0 0;
    }

    /* ---- グリッドナビ ---- */
    .footer-nav {
        margin-bottom: 0;
    }
    .footer-nav-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        border-top: 1px solid rgba(255,255,255,.12);
    }
    .footer-nav-list li {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 20px 8px;
        border-right: 1px solid rgba(255,255,255,.12);
        border-bottom: 1px solid rgba(255,255,255,.12);
        box-sizing: border-box;
    }
    /* 右列（偶数）は右ボーダーなし */
    .footer-nav-list li:nth-child(2n) {
        border-right: none;
    }
    /* 末尾が奇数＝1人で最終行のとき2列分に広げる */
    .footer-nav-list li:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        border-right: none;
    }
    .footer-nav-list li a {
        font-size: 12px;
        letter-spacing: 1.5px;
        color: #c0b8ad;
    }

    /* ---- コピーライト（1行） ---- */
    .footer-copyright {
        padding: 20px 16px;
        border-top: 1px solid rgba(255,255,255,.12);
    }
    .footer-copyright p {
        font-size: 11px;
        letter-spacing: 1px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ============================================================
   Article / Single Page
   ============================================================ */
.article-header {
    padding: 140px 0 60px;
    text-align: center;
    background: #f5f3f0;
}

.article-header-inner {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 40px;
}

.article-breadcrumb {
    font-size: 12px;
    letter-spacing: 2px;
    color: #a68968;
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.article-breadcrumb-divider {
    width: 40px;
    height: 2px;
    background: #a68968;
    margin: 16px auto 0;
}

.article-category {
    display: inline-block;
    background: #8B7355;
    color: white;
    padding: 6px 18px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 28px;
    border-radius: 2px;
}

.article-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 44px;
    font-weight: 500;
    line-height: 1.4;
    color: #3d3d3d;
    margin-bottom: 28px;
    letter-spacing: 2px;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-size: 13px;
    color: #6b6b6b;
    letter-spacing: 1px;
}

.article-meta-divider {
    width: 1px;
    height: 14px;
    background: #c0b8ad;
}

.article-wrapper {
    padding: 40px 0;
    background: #f5f3f0;
}

.article-container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 60px 40px 80px;
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.article-body {
    margin-bottom: 60px;
}

.article-body p {
    font-size: 16px;
    line-height: 2;
    color: #4a4a4a;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.article-body p:first-of-type::first-letter {
    font-family: 'Noto Serif JP', serif;
    font-size: 48px;
    color: #8B7355;
    float: left;
    line-height: 1;
    margin-right: 8px;
    margin-top: 4px;
    font-weight: 500;
}

.article-body h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 28px;
    font-weight: 600;
    color: #3d3d3d;
    margin-top: 60px;
    margin-bottom: 28px;
    padding-left: 20px;
    border-left: 4px solid #8B7355;
    letter-spacing: 1px;
    line-height: 1.5;
}

.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 60px;
}

.image-item {
    background: white;
    overflow: hidden;
    border-radius: 2px;
    opacity: 0;
    /* 横スライドから「少し上から落ちてくる」on-scroll slide-in に変更 */
    transform: translateY(-30px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease;
    will-change: opacity, transform;
}

/* 偶数・奇数ともに同じ方向（上から落下）に統一 */
.image-item:nth-child(even) {
    transform: translateY(-30px);
}

.image-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.image-item.is-visible:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.image-item img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    padding: 16px 24px;
    font-size: 12px;
    color: #6b6b6b;
    letter-spacing: 2px;
    background: #faf8f5;
    border-bottom: 2px solid #8B7355;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.image-number {
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    color: #8B7355;
    font-weight: 600;
}

.article-cta {
    margin-top: 80px;
    padding: 60px 40px;
    background: #faf8f5;
    border: 1px solid #e8e0d4;
    text-align: center;
    border-radius: 2px;
}

.article-cta-label {
    font-size: 12px;
    letter-spacing: 3px;
    color: #a68968;
    font-weight: 500;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.article-cta-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 28px;
    font-weight: 500;
    color: #3d3d3d;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.article-cta-text {
    font-size: 14px;
    color: #6b6b6b;
    margin-bottom: 32px;
    line-height: 1.8;
}

.article-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #8B7355;
    color: white;
    padding: 16px 48px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.article-cta-button:hover {
    background: #6B5444;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(139, 115, 85, 0.3);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
    .nav-container { padding: 0 24px; }
    .nav-menu { display: none; }
    .hero-bottom-content { left: 24px; bottom: 60px; }
    .hero-catchcopy { font-size: 32px; letter-spacing: 2px; }
    .news-section { padding: 60px 24px; }
    .iarea-section, .rental-mgmt-section, .sanchaya-section { padding: 80px 24px; }
    .sanchaya-section { aspect-ratio: auto; min-height: 600px; }
    .iarea-cards { grid-template-columns: 1fr; }
    .rental-mgmt-title, .sanchaya-title { font-size: 48px; }
    .article-container { margin: 0 20px; padding: 40px 24px 60px; }
    .article-title { font-size: 32px; }
}

/* ============================================================
   画像ギャラリー - lazy loading 競合対策（追加修正）
   opacity: 0 のままでは画像がビューポート外と判定されるため
   visibility: visible を維持しつつ translateY で上から落下
   ============================================================ */
.image-item {
    opacity: 0 !important;
    transform: translateY(-30px); /* 上から落ちてくる on-scroll slide-in */
    visibility: visible;          /* ブラウザが位置を認識できるよう visible を維持 */
}

/* 偶数・奇数ともに同じ方向（上から落下）に統一 */
.image-item:nth-child(even) {
    transform: translateY(-30px);
}

.image-item.is-visible {
    opacity: 1 !important;
    transform: translateY(0);
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 画像本体：幅・高さを明示して lazy loading の読み込み判定を助ける */
.image-item img {
    width: 100%;
    height: auto;
    display: block;
    min-height: 1px;  /* ← 高さ0を防ぎ、ブラウザがビューポート内と認識 */
}

/* ============================================================
   ヘッダー ボタングループ - 横並び固定
   ============================================================ */
.nav-btn-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* SVGアイコン共通設定 */
.cta-button__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: currentColor;
    display: block;
}

/* ============================================================
   レスポンシブ：1100px以下
   ============================================================ */
@media (max-width: 1100px) {
    .nav-btn-group {
        gap: 8px;
    }

    .cta-button--iarea span {
        display: none;
    }

    .cta-button--iarea .cta-button__icon {
        width: 20px;
        height: 20px;
    }

    .cta-button {
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* ============================================================
   スマホ対応追加CSS：PC / 基本設定（768px超および共通初期値）
   ============================================================ */
.hamburger-btn {
    display: none;
}

.mobile-nav-drawer {
    display: none;
}

/* 新着情報アイテム（PC・タブレット通常表示：サムネイル＋見出し・抜粋） */
.news-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.news-thumb {
    width: 142px;
    aspect-ratio: 16/9;
    height: auto;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-body {
    display: flex;
    align-items: center;
    flex-grow: 1;
    gap: 16px;
    min-width: 0;
    flex-wrap: wrap;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.news-excerpt {
    display: none; /* PC行リストでは抜粋文は非表示ですっきり保つ（スマホカード時のみ表示） */
}

/* ============================================================
   レスポンシブ：768px以下（スマートフォン表示）
   ※1100px以下用の記述の後に配置し優先適用
   ============================================================ */
@media (max-width: 768px) {
    /* ────────────────────────────────────────────
       1. ヘッダー：ハンバーガーメニュー化
       ──────────────────────────────────────────── */
    .nav-menu,
    .nav-btn-group {
        display: none !important;
    }

    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 22px;
        height: 16px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .hamburger-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #3d3d3d;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .hamburger-btn.is-active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger-btn.is-active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.is-active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* ────────────────────────────────────────────
       ヘッダーのパディング・高さ・背景透過度・ロゴをSP用に調整
       ──────────────────────────────────────────── */
    .nav-container {
        padding: 0 16px !important;
        height: 56px;
        background: rgba(238, 238, 238, 0.35) !important;
    }

    .nav-container.scrolled {
        background: rgba(238, 238, 238, 0.6) !important;
    }

    .logo img {
        height: 32px;
    }

    .mobile-nav-drawer {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        z-index: 1000;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .hero-body-sp {
        display: block;
        font-family: 'Noto Serif JP', serif;
        font-size: 14.5px;
        color: #3d3d3d;
        letter-spacing: 1px;
        line-height: 2;
        margin-bottom: 24px;
        opacity: 0;
        animation: spBodyFadeIn 0.8s ease 1s forwards;
    }

    .mobile-nav-drawer.is-open {
        pointer-events: auto;
        opacity: 1;
    }

    .mobile-nav-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
    }

    .mobile-nav-panel {
        position: absolute;
        top: 0;
        right: 0;
        width: 82%;
        max-width: 320px;
        height: 100%;
        background: #fff;
        padding: 80px 24px calc(32px + env(safe-area-inset-bottom, 24px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 32px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .mobile-nav-drawer.is-open .mobile-nav-panel {
        transform: translateX(0);
    }

    .mobile-nav-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .mobile-nav-list li a {
        display: block;
        font-size: 16px;
        color: #1a1a1a;
        text-decoration: none;
        font-weight: 500;
        padding: 4px 0;
    }

    .mobile-nav-btns {
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin-top: 36px;
    }

    .mobile-nav-btns .cta-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 14px 16px;
        font-size: 14px;
        box-sizing: border-box;
    }

    .mobile-nav-btns .cta-button span {
        display: inline !important;
    }

    /* ────────────────────────────────────────────
       2. ヒーローセクション：画像全体表示（トリミング完全防止）＋下部カード化
       ──────────────────────────────────────────── */
    .hero-section {
        height: auto !important;
        aspect-ratio: unset !important;
        min-height: auto !important;
        display: block !important;
        position: relative;
        overflow: visible !important;
        margin-top: 0;
    }

    .hero-stage {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1672 / 941;
        background-color: #f5f3f0;
    }

    .hero-stage-bg {
        position: static !important;
        display: block;
        width: 100%;
        height: auto !important;
    }

    /* .hero-person はスマホでも表示（アニメーション連動）するため非表示を削除 */

    .hero-overlay {
        display: none !important;
    }

    .hero-bottom-content {
        position: static !important;
        width: 100% !important;
        background: #faf8f5;
        padding: 32px 24px !important;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .hero-label {
        font-size: 12px;
        color: #8B7355 !important;
        letter-spacing: 0.15em;
        gap: 0 !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    .hero-label::before {
        display: none !important;
    }

    .hero-catchcopy {
        font-size: 24px !important;
        line-height: 1.5 !important;
        color: #3d3d3d !important;
        margin: 0 0 8px 0;
    }

    .hero-link-btn {
        color: #8B7355 !important;
        border-color: #8B7355 !important;
        background: transparent;
        padding: 10px 20px;
    }

    @keyframes bounce-sp {
        0%, 100% { transform: translateX(0) translateY(0); }
        50%       { transform: translateX(0) translateY(8px); }
    }

    .scroll-indicator {
        display: flex !important;
        position: static !important;
        transform: translateX(0);
        margin: 16px auto 16px auto !important;
        animation: bounce-sp 2s infinite !important;
        opacity: 0 !important;
        height: 60px;
        overflow: hidden;
        transition: opacity 0.5s ease, height 0.5s ease, margin 0.5s ease !important;
    }

    .scroll-indicator.is-visible {
        opacity: 0.8 !important;
    }

    .scroll-indicator svg {
        stroke: #8B7355 !important;
    }

    .scroll-indicator-text {
        color: #8B7355 !important;
    }

    body.has-scrolled .scroll-indicator {
        opacity: 0 !important;
        height: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        pointer-events: none;
    }

    /* ────────────────────────────────────────────
       3. 新着情報セクション：スマホ1カラムカード化
       ──────────────────────────────────────────── */
    .news-list {
        display: flex !important;
        flex-direction: column;
        gap: 20px;
    }

    .news-item {
        display: flex !important;
        flex-direction: column;
        align-items: stretch !important;
        border: 1px solid #eee;
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
        padding: 0 !important;
    }

    .news-thumb {
        width: 100% !important;
        aspect-ratio: 16/9 !important;
        height: auto !important;
        border-radius: 0 !important;
    }

    .news-body {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start !important;
        padding: 20px !important;
        gap: 10px;
    }

    .news-meta {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    .news-text-wrap {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .news-title-text {
        font-size: 16px;
        font-weight: 600;
        line-height: 1.5;
    }

    .news-excerpt {
        display: block !important;
        font-size: 13px;
        color: #666;
        line-height: 1.6;
        margin: 4px 0 0 0;
    }
}


