@charset "UTF-8";

/* =========================
   Header (共通ヘッダー)
========================= */
.as-header {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    position: fixed;
    top: 0; left: 0;
    z-index: 9999;
    height: 60px;
    display: flex;
    align-items: center;
}

.as-header__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.as-header__logo {
    display: flex;
    align-items: center;
    width: 180px;
}

.as-header__logo img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* --- PCメニュー --- */
.as-header__list {
    display: flex;
    gap: 30px;
    align-items: center;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
}

.as-header__list li a:not(.as-nav-btn) {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.as-nav-btn {
    background: #333;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 20px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
}

.as-nav-contact-area {
    display: none;
}

.as-menu-toggle {
    display: none;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    position: relative;
    cursor: pointer;
    z-index: 10000;
}

.as-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #333;
    position: absolute;
    transition: 0.3s;
}

.as-menu-toggle span:nth-child(1) { top: 0; }
.as-menu-toggle span:nth-child(2) { top: 11px; }
.as-menu-toggle span:nth-child(3) { top: 22px; }

/* =========================
   Mobile Adjustment (1128px以下)
========================= */
@media (max-width: 1128px) {
    .as-menu-toggle { display: block; }
    .as-pc-only-btn { display: none; }

    .as-header__nav {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 100vh;
        background: #fff;
        padding: 100px 20px 40px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        overflow-y: auto;
        z-index: 9998;
        
        /* 残像対策：初期状態は非表示 */
        display: none; 
    }

    /* メニューが開いた状態 */
    .as-header.is-expanded .as-header__nav {
        display: block;
        animation: slideDown 0.4s ease-out forwards;
    }

    @keyframes slideDown {
        from { top: -100%; }
        to { top: 0; }
    }

    .as-header__list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .as-header__list li {
        width: 100%;
        border-bottom: 1px solid #eee;
        padding: 15px 0;
    }

    .as-header__list li a { font-size: 18px; }

    /* スマホ専用コンタクトエリア */
    .as-nav-contact-area {
        display: flex;
        margin-top: 30px;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .as-nav-tel, .as-nav-btn-wrapper {
        width: 100%;
        max-width: 240px; /* さらに少し短く調整 */
    }

    .as-nav-tel {
        font-size: 17px; /* わずかに小さくしてスッキリさせる */
        font-weight: 500; /* 文字を細く設定 */
        color: #333;
        background: #fff;
        border: 1px solid #ccc; /* 枠線を1pxの細いグレーに */
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 50px;
        border-radius: 8px;
        transition: 0.2s ease;
        box-sizing: border-box;
    }

    /* ホバー（タップ）時に枠線を黒くする */
    .as-nav-tel:hover, .as-nav-tel:active {
        border-color: #000;
        color: #000;
    }

    /* --- お問い合わせボタン：電話ボタンと対称性を維持 --- */
    .as-nav-btn-wrapper .as-nav-btn {
        width: 100%;
        height: 50px;
        font-size: 16px;
        border-radius: 8px;
    }

    .as-header.is-expanded .as-menu-toggle span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    .as-header.is-expanded .as-menu-toggle span:nth-child(2) { opacity: 0; }
    .as-header.is-expanded .as-menu-toggle span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
}

/* =========================
   コンバージョンバー (3ボタン縦並び)
========================= */
.as-conversion-bar {
    position: fixed;
    right: 0;
    bottom: 40px;
    z-index: 9990;
}

.as-close-btn {
    position: absolute;
    top: -14px;
    left: -14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(100, 100, 100, 0.80);
    color: #fff;
    border: none;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9991;
    line-height: 1;
}

.as-bar-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 10px 0 0 10px;
    padding: 16px 22px 14px 18px;
    box-shadow: -4px 4px 20px rgba(0,0,0,0.13);
    min-width: 240px;
    max-width: 240px;
}

.as-bar-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 8px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
    border: none;
    background: transparent;
}

.as-bar-item:hover {
    background: transparent;
}

.as-bar-item:hover .as-bar-text {
    transform: translateY(-2px);
}

.as-bar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
}

.as-bar-text {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    line-height: 1.3;
    transition: transform 0.2s ease;
}

.as-bar-item.--line-rent,
.as-bar-item.--line-buy,
.as-bar-item.--self-search {
    border: none;
}

@media (max-width: 1128px) {
    /* スマホ：画面中央下に横並び表示 */
    .as-conversion-bar {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: 24px;
        width: auto;
    }

    .as-close-btn {
        top: -8px;
        left: auto;
        right: -8px;
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .as-bar-panel {
        flex-direction: row;
        justify-content: space-between;
        border-radius: 14px;
        padding: 16px 18px 14px 14px;
        min-width: unset;
        width: auto;
        max-width: 320px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        gap: 4px;
    }

    .as-bar-item {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        padding: 6px 10px;
        flex: 1;
        width: auto;
        min-width: 0;
    }

    .as-bar-icon {
        width: 32px;
        height: 32px;
    }

    .as-bar-icon img {
        width: 28px;
        height: 28px;
        object-fit: contain;
    }

    .as-bar-text {
        font-size: 11px;
        font-weight: 600;
        text-align: center;
        white-space: normal;
        line-height: 1.4;
        word-break: keep-all;
    }
}
.as-footer { background: #f9f9f9; padding: 60px 0 140px; text-align: center; border-top: 1px solid #eee; }