@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: 50px;           /* スマホ時のヘッダー高さ(50px)に合わせる */
        left: 0;
        width: 100%;
        height: auto;
        max-height: calc(100vh - 50px);
        background: #fff;
        padding: 55px 20px 40px; /* 上部を広くとってハンバーガーボタンと重ならないようにする */
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        overflow-y: auto;
        z-index: 9998;

        /* 残像対策：初期状態は非表示 */
        display: none;
    }

    .as-header {
        height: 50px;
    }

    .as-header__logo img {
        height: 30px;
    }

    /* メニューが開いた状態 */
    .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: 4px 0; /* 間隔を詰める */
    }

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

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

    .as-nav-tel, .as-nav-btn-wrapper {
        width: 100%;
        max-width: 200px; /* ボタン幅を小さく */
    }

    .as-nav-tel {
        font-size: 14px; /* リストに揃えて小さく */
        font-weight: 500;
        color: #333;
        background: #fff;
        border: 1px solid #ccc;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 38px; /* 明確に小さく */
        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: 38px; /* 明確に小さく */
        font-size: 14px; /* リストに揃えて小さく */
        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;
    transform: translateX(0);
    opacity: 1;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

/* 初期非表示：右外側に待機（PC） */
.as-conversion-bar.is-entry-hidden {
    transform: translateX(110%);
    opacity: 0;
    pointer-events: none;
}

.as-conversion-bar.is-hidden-by-footer {
    transform: translateX(110%);
    opacity: 0;
    pointer-events: none;
}

.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-conversion-bar.is-entry-hidden {
        transform: translateX(-50%) translateY(150%);
        opacity: 0;
        pointer-events: none;
    }

    .as-conversion-bar.is-hidden-by-footer {
        transform: translateX(-50%) translateY(150%);
        opacity: 0;
        pointer-events: none;
    }

    .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;
    }
}

/* =========================
   Footer
========================= */
.as-footer {
    background: #fff;
    color: #555;
    padding: 60px 0 40px;
    border-top: 1px solid #eee;
    text-align: left;
}

.as-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: row; /* 左:会社情報 / 右:メニュー */
    gap: 60px;
    align-items: flex-start;
}

/* ===== 右側：会社情報 ===== */
.as-footer__info {
    flex: 0 0 280px;
}

.as-footer__logo {
    display: block;
    margin-bottom: 20px;
}

.as-footer__logo img {
    height: 36px;
    width: auto;
}

.as-footer__company-name {
    font-size: 14px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.as-footer__detail {
    font-size: 12px;
    line-height: 2;
    color: #666;
}

.as-footer__detail dt {
    display: inline;
    font-weight: bold;
    color: #444;
}

.as-footer__detail dd {
    display: inline;
    margin: 0;
}

.as-footer__detail dd::after {
    content: "";
    display: block;
}

.as-footer__tel-inline {
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
}

.as-footer__tel-inline:hover {
    color: #000;
    opacity: 1;
}

/* ===== 左側：メニュー ===== */
.as-footer__nav {
    flex: 1;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.as-footer__nav-group {
    min-width: 120px;
}

.as-footer__nav-group-title {
    font-size: 11px;
    font-weight: bold;
    color: #999;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8e8e8;
}

.as-footer__nav-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.as-footer__nav-group ul li a {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.as-footer__nav-group ul li a::before {
    content: "–";
    color: #bbb;
    font-size: 11px;
}

.as-footer__nav-group ul li a:hover {
    color: #1a1a1a;
    opacity: 1;
}

/* ===== ボトムバー ===== */
.as-footer__bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px 40px 0;
    border-top: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.as-footer__legal-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.as-footer__legal-links a {
    font-size: 11px;
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.as-footer__legal-links a:hover {
    color: #333;
    opacity: 1;
}

.as-footer__copy {
    font-size: 11px;
    color: #aaa;
}

/* =========================
   Footer - スマホ (768px以下)
========================= */
@media (max-width: 768px) {
    .as-footer {
        padding: 48px 0 32px;
    }

    .as-footer__inner {
        flex-direction: column; /* 上:会社情報 / 下:メニュー */
        padding: 0 8vw;
        gap: 40px;
    }

    .as-footer__info {
        flex: none;
        width: 100%;
    }

    .as-footer__tel {
        font-size: 22px;
    }

    .as-footer__nav {
        width: 100%;
        gap: 28px;
    }

    .as-footer__nav-group {
        min-width: calc(50% - 14px);
    }

    .as-footer__bottom {
        padding: 16px 8vw 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}