@charset "UTF-8";

/* ==========================================================================
   || メインヒーロー（スライダーアニメーション）
   ========================================================================== */
.top-hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-item {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: sliderAnime 12s infinite;
    transform-origin: center center;
}

.hero-item:nth-child(1) { animation-delay: 0s; }
.hero-item:nth-child(2) { animation-delay: 4s; }
.hero-item:nth-child(3) { animation-delay: 8s; }

@keyframes sliderAnime {
    0%   { opacity: 0; transform: scale(1.00); }
    10%  { opacity: 1; transform: scale(1.04); }
    33%  { opacity: 1; transform: scale(1.08); }
    43%  { opacity: 0; transform: scale(1.08); }
    100% { opacity: 0; transform: scale(1.00); }
}

.hero-content {
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 15px rgba(0,0,0,0.6);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.4;
}

/* ==========================================================================
   || メニューバー（サービスカード）
   ========================================================================== */
.top-house-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.top-house-list__item {
    flex: 1;
    min-width: 280px;
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s ease;
}

.top-house-list__item:hover {
    transform: translateY(-5px);
}

.top-house-list__item img {
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.top-house-list__item p {
    font-weight: bold;
    font-size: 1.2rem;
}

/* ==========================================================================
   || お客様の声
   ========================================================================== */
.voice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.voice-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

/* BEM統一: .voice-card__header */
.voice-card__header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

/* BEM統一: .voice-card__icon */
.voice-card__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* BEM統一: .voice-card__meta */
.voice-card__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* BEM統一: .voice-card__title */
.voice-card__title {
    font-size: 1.05rem;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

/* BEM統一: .voice-card__attr */
.voice-card__attr {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
}

.voice-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 15px 0;
}

/* BEM統一: .voice-card__text */
.voice-card__text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* ==========================================================================
   || セクションタイトル共通
   ========================================================================== */
/* 重複定義を1か所に統一。詳細なスタイルはこちらを優先 */
.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

/* ==========================================================================
   || 共通ボタン
   ========================================================================== */
.btn-primary {
    display: inline-block;
    padding: 18px 50px;
    background: #fff;
    color: #333;
    font-weight: bold;
    border-radius: 4px;
    border: 1px solid #eee;
    text-align: center;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #333;
    color: #fff;
}

.btn-more {
    display: inline-block;
    padding: 12px 60px;
    border: 1px solid #004a87;
    color: #004a87;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-more:hover {
    background: #004a87;
    color: #fff;
}

/* ==========================================================================
   || 会社概要ページ
   ========================================================================== */
/* base.css に .company-page の基本定義あり。追加スタイルのみ記述 */
.company-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.company-table th {
    width: 30%;
    text-align: left;
    color: #666;
}

/* ==========================================================================
   || 所在地ページ
   ========================================================================== */
.location-section { margin-top: 30px; }

.location-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
}

.location-map {
    width: 100%;
    height: 450px;
    background: #eee;
    margin-bottom: 30px;
}

.location-info { line-height: 2; }
.location-access { margin-bottom: 20px; }
.location-company { font-size: 1.1rem; font-weight: bold; }
.location-address { font-size: 1rem; }
.google-map-link { font-size: 0.9rem; color: #0066cc; text-decoration: underline; }

/* ==========================================================================
   || 沿革ページ
   ========================================================================== */
.history-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 50px;
    text-align: center;
}

.history-list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.history-list tr {
    border-bottom: 1px solid #eee;
}

.history-list th {
    width: 25%;
    padding: 25px 20px;
    text-align: left;
    vertical-align: top;
    color: #333;
    font-weight: bold;
}

.history-list td {
    padding: 25px 20px;
    line-height: 1.8;
    color: #555;
}

/* ==========================================================================
   || 賃貸仲介ページ
   ========================================================================== */
.lease-page {
    padding: 120px 20px 80px;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 20px 0;
}

/* ==========================================================================
   || 五角形背景セクション（コンセプト）
   ========================================================================== */
.hero-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background-color: #f9f6f0;
    display: flex;
    justify-content: center;
    padding: 120px 0 100px; /* 上: 60px(余白) + 60px(固定ヘッダー高さ) */
    overflow: hidden;
}

.m-house-container {
    position: relative;
    width: 95%;
    max-width: 1000px;
}

.m-house-copy {
    font-size: 2.2rem;
    font-weight: bold;
    line-height: 1.4;
    letter-spacing: 0.1em;
    margin-bottom: -40px;
    position: relative;
    z-index: 2;
    text-align: left;
}

.m-house-visual {
    background-color: #ffffff;
    width: 100%;
    clip-path: polygon(0% 20%, 50% 0%, 100% 20%, 100% 100%, 0% 100%);
    padding: 120px 40px 80px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.m-house-visual__inner {
    width: 100%;
    max-width: 700px;
}

.m-house-visual__text {
    font-size: 1.15rem;
    line-height: 2.4;
    letter-spacing: 0.05em;
    text-align: left;
    color: #333;
}

.m-house-visual__text p {
    margin: 0 0 0.5em 0;
}

/* ==========================================================================
   || 特徴セクション（グラスモーフィズム）
   ========================================================================== */
.m-feature-grid-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background-color: #eef1f4;
    padding: 40px 0 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.m-grid-container {
    width: 90%;
    max-width: 850px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.m-feature-grid-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.03),
        -8px -8px 16px rgba(255, 255, 255, 0.5),
        inset 2px 2px 4px rgba(255, 255, 255, 0.5);
    padding: 50px 40px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease-out;
}

.m-feature-grid-card:hover {
    transform: translateY(-2px);
}

.m-feature-grid-content {
    flex: 1;
}

.m-feature-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.m-feature-grid-header-left {
    display: flex;
    align-items: center;
}

.m-feature-grid-num {
    font-size: 1.15rem;
    font-weight: 800;
    color: #444;
    margin-right: 12px;
}

.m-feature-grid-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111;
    margin: 0;
}

.m-feature-grid-desc {
    font-size: 1rem;
    line-height: 1.9;
    color: #555;
    margin: 0;
}

.m-feature-pc-image,
.m-feature-sp-image {
    flex-shrink: 0;
}

.m-feature-pc-image img,
.m-feature-sp-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.m-feature-pc-image {
    width: 100px;
    margin-left: 40px;
}

/* SP用画像はデフォルト非表示、スマホで表示切替 */
.m-feature-sp-image {
    display: none;
}

/* ==========================================================================
   || 新聞掲載セクション
   ========================================================================== */
.m-news-section {
    width: 100%;
    padding: 100px 0 80px;
    display: flex;
    justify-content: center;
    background-color: #fff;
}

.m-news-container {
    width: 90%;
    max-width: 1000px;
}

.m-news-inner {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.m-news-content {
    flex: 1;
}

.m-news-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.4;
    color: #111;
    margin-bottom: 20px;
}

.m-news-text {
    font-size: 1rem;
    line-height: 2;
    color: #444;
}

.m-news-visual {
    flex: 0 0 40%;
    max-width: 400px;
}

.m-news-visual img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ==========================================================================
   || Q&Aセクション
   ========================================================================== */
.m-qa-section {
    padding: 80px 0;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.m-qa-container {
    width: 90%;
    max-width: 800px;
}

.m-qa-item {
    border-bottom: 1px solid #eee;
}

.m-qa-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 10px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    outline: none;
}

.m-qa-q-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    line-height: 1.5;
    padding-right: 20px;
}

.m-qa-icon {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.m-qa-icon::before,
.m-qa-icon::after {
    content: "";
    position: absolute;
    background-color: #333;
    transition: transform 0.3s ease;
}

.m-qa-icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    margin-top: -1px;
}

.m-qa-icon::after {
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
    margin-left: -1px;
}

.m-qa-item.is-active .m-qa-icon::before { transform: rotate(45deg); }
.m-qa-item.is-active .m-qa-icon::after  { transform: rotate(45deg); }

.m-qa-answer {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}

.m-qa-answer-inner {
    padding: 0 10px 30px;
    line-height: 1.8;
    color: #666;
    font-size: 0.95rem;
    white-space: pre-wrap;
}

/* ==========================================================================
   || 解決策カード
   ========================================================================== */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.solution-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    border-top: 4px solid #00b900;
}

.solution-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
}

.num-circle {
    background: #00b900;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 0.8rem;
}

/* ==========================================================================
   || ステップセクション
   ========================================================================== */
.step-group {
    margin-bottom: 40px;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
}

.step-group h3 {
    border-left: 5px solid #333;
    padding-left: 15px;
    margin-bottom: 25px;
}

.step-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
}

.step-box {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 20px;
    background: #f4f4f4;
    border-radius: 8px;
}

.step-label {
    display: block;
    font-size: 0.8rem;
    font-weight: bold;
    color: #666;
    margin-bottom: 5px;
}

/* ==========================================================================
   || 横長・2段構成ステップカード（スライダー）
   ========================================================================== */
.step-section {
    padding: 60px 0;
    overflow: hidden;
}

.step-slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.step-slider-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 20px 0;
}

.step-slider-container::-webkit-scrollbar {
    display: none;
}

.step-card {
    flex: 0 0 420px;
    max-width: 90vw;
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    scroll-snap-align: center;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    min-height: 250px;
}

.step-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.step-card__title-group {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.step-card__num {
    font-size: 1.1rem;
    font-weight: bold;
    color: #000;
    line-height: 1;
}

.step-card__title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a2b3c;
    line-height: 1;
    margin: 0;
}

.step-card__icon {
    width: 80px;
    height: 80px;
    margin-left: 0;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.step-card__icon img {
    max-width: 100%;
    height: auto;
}

.step-card__bottom {
    margin-top: 30px;
}

.step-card__text {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
    margin: 0;
}

/* ステップナビゲーション */
.step-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.step-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    position: relative;
}

.step-nav-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 55%;
    width: 8px;
    height: 8px;
    border-top: 2px solid #333;
    border-right: 2px solid #333;
    transform: translate(-50%, -50%) rotate(45deg);
}

.step-nav-btn.--prev::before {
    left: 45%;
    transform: translate(-50%, -50%) rotate(-135deg);
}

.step-scrollbar-track {
    width: 120px;
    height: 3px;
    background: #eee;
    border-radius: 1.5px;
    position: relative;
}

.step-scrollbar-thumb {
    width: 30px;
    height: 100%;
    background: #634;
    border-radius: 1.5px;
    position: absolute;
    left: 0;
    transition: left 0.3s ease;
}

/* ==========================================================================
   || ステップカード内 登録ボタン
   ========================================================================== */
.step-card__btn-wrapper {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    padding-top: 15px;
}

.step-card__btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: rgba(6, 199, 85, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    border-radius: 50px;
    transition: 0.3s;
    width: 200px;
    height: 44px;
    padding: 0 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.step-card__btn:hover {
    background-color: rgba(6, 199, 85, 1.0);
    transform: translateY(-2px);
}

.step-card__btn-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.step-card__btn-icon img {
    width: 22px;
    height: auto;
}

.step-card__btn-text {
    font-size: 0.9rem;
    line-height: 1;
    white-space: nowrap;
}

/* ==========================================================================
   || 賃貸ページ 費用・声・QAラッパー
   ========================================================================== */
.lease-benefit-section {
    padding: 80px 0;
}

.voice-section {
    padding: 60px 0 80px;
}

/* cost-detail-table セルクラス */
.item-name {
    font-weight: bold;
    color: #333;
}

.item-value {
    color: #555;
}

.item-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==========================================================================
   || 費用テーブル（スマホ横スクロール）
   ========================================================================== */
.cost-table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 80vh;
    width: 100%;
    border: 1px solid #ccc;
    -webkit-overflow-scrolling: touch;
}

.cost-detail-table {
    width: 100%;
    min-width: 800px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.cost-detail-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #eee;
}

.cost-detail-table th:first-child,
.cost-detail-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #f4f4f4;
    width: 110px;
    min-width: 110px;
    max-width: 110px;
    padding: 12px 6px;
    font-size: 13px;
    white-space: normal;
    word-break: break-all;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
}

.cost-detail-table thead th:first-child {
    top: 0;
    left: 0;
    z-index: 3;
    background: #ddd;
}

.cost-detail-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #ccc;
    border-right: 1px solid #ccc;
    white-space: nowrap;
    background: #fff;
    text-align: center;
}

/* ==========================================================================
   || ローカルナビ
   ========================================================================== */
.local-nav {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    margin: 0 auto 40px;
    padding: 0;
    list-style: none;
}

.local-nav li a {
    display: block;
    padding: 10px 0;
    font-size: 15px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.local-nav li a:hover,
.local-nav li a.current {
    color: #000;
    font-weight: bold;
}

/* ==========================================================================
   || 売買ページ シンプルヘッダー
   ========================================================================== */
.c-simple-header {
    padding: 100px 60px 0;
    background-color: #fff;
    text-align: center;
}

.c-simple-header.is-first-section {
    padding-top: calc(80px + 120px);
}

.c-simple-header__inner {
    max-width: 800px;
    margin: 0 auto;
}

.c-simple-header__title {
    font-size: 2.6rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 32px;
    letter-spacing: 0.05em;
}

.c-simple-header__description {
    font-size: 1.15rem;
    color: #444;
    line-height: 2.2;
    margin-bottom: 80px;
}

.c-simple-header__divider {
    border: none;
    border-top: 1px solid #f2f2f2;
    margin: 0 auto;
    width: 100%;
}

/* ==========================================================================
   || 比較表（売買ページ共通）
   ========================================================================== */
:root {
    --color-navy:   #3b4675;
    --color-gray:   #f6f3e9;
    --color-accent: #ff0000;
    --color-green:  #8eb32a;
    --color-blue:   #6baed6;
    --color-orange: #e68b2e;
    --spacing:      6px;
}

.comparison-wrapper {
    padding: 40px;
    background-color: #fff;
    font-family: sans-serif;
}

.comparison-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: var(--spacing);
    table-layout: fixed;
}

.col-header {
    padding: 24px 10px;
    text-align: center;
    font-weight: bold;
    color: var(--color-navy);
    vertical-align: middle;
}

.company-logo {
    max-width: 80px;
    height: auto;
}

.row-label {
    background-color: var(--color-navy);
    color: #fff;
    padding: 20px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
}

.comparison-table td {
    background-color: var(--color-gray);
    padding: 20px;
    text-align: center;
    vertical-align: middle;
    border-radius: 4px;
}

.mark {
    font-size: 2.4rem;
    font-weight: bold;
    line-height: 1;
}
.is-green   { color: var(--color-green); }
.is-green-x { color: var(--color-green); opacity: 0.5; }
.is-blue    { color: var(--color-blue); }
.is-blue-x  { color: var(--color-blue); opacity: 0.5; }
.is-orange  { color: var(--color-orange); }

.is-highlight {
    position: relative;
    background-color: #fff;
}

.is-highlight::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    border-left: 3px solid var(--color-accent);
    border-right: 3px solid var(--color-accent);
    z-index: 10;
    pointer-events: none;
}

thead .is-highlight::after {
    top: 0;
    bottom: calc(var(--spacing) * -1);
    border-top: 3px solid var(--color-accent);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

tbody tr td.is-highlight::after {
    top: calc(var(--spacing) * -1);
    bottom: calc(var(--spacing) * -1);
}

tbody tr:last-child td.is-highlight::after {
    top: calc(var(--spacing) * -1);
    bottom: 0;
    border-bottom: 3px solid var(--color-accent);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.is-empty {
    background: transparent;
}

/* ==========================================================================
   || 総合支出シミュレーション
   ========================================================================== */
.simulation-section {
    padding: 80px 0;
    background-color: #fff;
}

.simulation-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.simulation-header {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.simulation-header .header-visual {
    flex: 1;
    background-image: url(../img/onestop-visual.jpg);
    background-size: cover;
    background-position: center;
    padding: 60px 40px;
    color: #fff;
    border-radius: 10px;
}

.simulation-header .visual-text .brand-name  { font-size: 1.2rem; font-weight: bold; }
.simulation-header .visual-text .sub-title   { font-size: 0.9rem; letter-spacing: 0.2em; opacity: 0.8; }
.simulation-header .visual-text h2           { font-size: 2.4rem; line-height: 1.2; margin-top: 10px; }
.simulation-header .header-description      { flex: 1; }
.simulation-header .header-description h3   { font-size: 1.6rem; margin-bottom: 20px; color: #333; }

.blue-balloon {
    background-color: #e6f7ff;
    border: 2px solid #00a0e9;
    padding: 15px;
    border-radius: 10px;
    position: relative;
    margin-bottom: 20px;
    font-weight: bold;
    color: #007bc3;
}

.simulation-tables {
    display: flex;
    gap: 20px;
}

.table-block { flex: 1; border: 1px solid #eee; }
.table-block.highlight { border: 4px solid #f6c31c; }

.table-type-label {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    border-bottom: 2px solid #333;
}

.simulation-table {
    width: 100%;
    border-collapse: collapse;
}

.simulation-table td,
.simulation-table th {
    padding: 12px 5px;
    border-bottom: 2px solid #fff;
    text-align: center;
    font-size: 0.9rem;
}

.col-item  { background-color: #ffffff; width: 25%; font-weight: bold; }
.col-note  { background-color: #fcebc9; width: 40%; }
.col-value { background-color: #d9effa; width: 35%; font-weight: bold; }

.spacer td { background-color: #fff; height: 15px; }

.total-row .col-value { color: #e60012; font-size: 1.1rem; }

.advantage-badge {
    background: #e60012;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    font-size: 0.8rem;
    margin-top: 5px;
}

.minus { color: #d00; }

/* ==========================================================================
   || セットローン比較・グラフ統合セクション
   ========================================================================== */
.loan-comparison-section {
    padding: 80px 20px;
    background-color: #fcfcfc;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.loan-container {
    max-width: 1000px;
    margin: 0 auto;
}

.loan-header {
    text-align: center;
    margin-bottom: 40px;
}

.loan-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.4;
    color: #333;
    margin-bottom: 20px;
}

.loan-title span {
    color: #f67b01;
    border-bottom: 3px solid #f6c31c;
}

.loan-lead {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* グラフエリア（重複定義を統合） */
.loan-graph-area {
    margin-top: 50px;
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.graph-row {
    margin-bottom: 50px;
}

.graph-row:last-child {
    margin-bottom: 0;
}

.graph-label {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
}

.graph-label::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 1.2em;
    background-color: #f6c31c;
    margin-right: 12px;
    border-radius: 3px;
}

.bar-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.bar-name {
    width: 70px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #888;
}

.bar {
    height: 45px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
}

.bar-old {
    background-color: #efefef;
    color: #777;
}

.highlight .bar-name {
    color: #f67b01;
}

.bar-new {
    background: linear-gradient(90deg, #f6c31c, #f67b01);
    color: #fff;
    box-shadow: 0 4px 12px rgba(246, 123, 1, 0.25);
}

/* 旧バーグラフ（グラフラッパー用） */
.loan-graph-wrapper {
    max-width: 600px;
    margin: 0 auto 60px;
    padding: 20px 20px 0;
}

.graph-flex {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    border-bottom: 3px solid #333;
}

.graph-item {
    flex: 1;
    max-width: 180px;
    text-align: center;
    position: relative;
}

.graph-bar-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 220px;
}

.bar-renovation {
    height: 70px;
    background: #a6daeb;
    color: #fff;
    font-size: 0.75rem;
    padding-top: 5px;
    font-weight: bold;
}

.bar-housing {
    height: 140px;
    background: #ccc;
    color: #fff;
    font-size: 0.8rem;
    padding-top: 10px;
    font-weight: bold;
}

.bar-combined {
    height: 175px;
    background: #f6c31c;
    color: #333;
    font-weight: bold;
    padding-top: 10px;
    border-radius: 5px 5px 0 0;
}

.graph-total { font-weight: bold; font-size: 1.25rem; margin-top: 10px; color: #333; }
.graph-total span { font-size: 0.8rem; }
.graph-name  { font-size: 0.9rem; font-weight: bold; color: #333; margin-top: 5px; }

/* お得バッジ */
.diff-badge {
    position: absolute;
    top: 20px;
    right: -40px;
    background: #ff4d4d;
    color: #fff;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    transform: rotate(10deg);
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ローンテーブル（比較表との干渉を専用クラスで解消） */
.loan-table.comparison-table {
    margin-top: 40px;
    table-layout: fixed;
}

.loan-table th {
    height: auto;
    padding: 15px 5px;
    font-size: 1.0rem;
}

.loan-table th span {
    display: block;
    font-size: 0.75rem;
    font-weight: normal;
    margin-top: 3px;
}

.loan-table td.row-label {
    font-size: 1.0rem;
    line-height: 1.3;
    padding: 15px 10px;
    width: 25%;
    background-color: #e6eef4;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
}

.loan-table td:not(.row-label) {
    font-size: 1.0rem;
    line-height: 1.4;
    padding: 15px 10px;
    text-align: center;
    vertical-align: middle;
    background-color: #f9f9f9;
}

.loan-table td small {
    display: block;
    font-size: 0.75rem;
    margin-top: 4px;
    line-height: 1.2;
}

.loan-table .highlight-cell {
    background-color: #fff9e6;
    border: 2px solid #f6c31c;
}

.loan-footer-tip {
    margin-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    color: #999;
}

/* 年齢グラフ */
.age-graph-area {
    margin-top: 50px;
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.age-row { margin-bottom: 35px; position: relative; }
.age-info { margin-bottom: 8px; }

.start-age {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

.age-timeline {
    display: flex;
    align-items: center;
    background: #f0f0f0;
    border-radius: 25px;
    height: 35px;
    position: relative;
}

.timeline-bar {
    height: 100%;
    border-radius: 25px;
    display: flex;
    align-items: center;
    padding-left: 20px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: bold;
    white-space: nowrap;
}

.bar-30 { background: linear-gradient(90deg, #f6c31c, #f67b01); }
.bar-40 { background: #999; }
.bar-50 { background: #666; }

.goal-age {
    position: absolute;
    right: 15px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #333;
}

.warning-text {
    font-size: 0.75rem;
    color: #e63946;
    margin-top: 5px;
    font-weight: bold;
}

/* ==========================================================================
   || Chart.js グラフ
   ========================================================================== */
.m-chart {
    position: relative;
    width: 100%;
    height: 420px;
}

.m-chart canvas {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   || TOPコンテナ
   ========================================================================== */
/* 重複定義を1か所に統一 */
.top-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.top-container.--xl { max-width: 1100px; }

/* ==========================================================================
   || TOPコンセプト（家型五角形）
   ========================================================================== */
.top-concept__body {
    width: 100%;
    max-width: 700px;
    text-align: center;
}

.top-concept .hero-section {
    background-color: #f9f6f0;
}

/* ==========================================================================
   || TOPサービスラインナップ
   ========================================================================== */
.top-service { background: #fdfdfd; }

.top-service-list {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.top-service-card {
    flex: 1;
    min-width: 280px;
    max-width: 340px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.top-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.top-service-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.top-service-card__img {
    overflow: hidden;
}

.top-service-card__img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.top-service-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.top-service-card__title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 12px;
    color: #222;
}

.top-service-card__desc {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #555;
    flex: 1;
    margin-bottom: 20px;
}

.top-service-card__btn {
    align-self: flex-start;
    font-size: 0.85rem;
    padding: 10px 28px;
}

/* ==========================================================================
   || TOP選ばれる理由
   ========================================================================== */
.top-reasons { background: #f5f5f5; }

.top-reasons-list {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.top-reasons-card {
    flex: 1;
    min-width: 260px;
    max-width: 320px;
    background: #fff;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.top-reasons-card:hover { transform: translateY(-4px); }

.top-reasons-card__icon {
    width: 72px;
    height: 72px;
    background: #f9f9f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 1px solid #eee;
}

.top-reasons-card__title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 14px;
    color: #222;
}

.top-reasons-card__desc {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #555;
}

/* ==========================================================================
   || TOPお客様ストーリー（スライダー）
   ========================================================================== */
.top-story { background: #fff; }

.story-slider-wrapper { position: relative; overflow: hidden; }

.story-slider {
    position: relative;
    min-height: 300px;
}

.story-card {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 36px 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    box-sizing: border-box;
}

.story-card.--active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.story-card__profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

/* プロフィール情報のテキストグループ */
.story-card__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.story-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f5f5f5;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.story-card__name {
    font-weight: bold;
    font-size: 1rem;
    color: #222;
    margin: 0 0 4px;
}

.story-card__attr {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
}

.story-card__flow {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.story-flow-step {
    flex: 1;
    min-width: 180px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 16px;
    font-size: 0.88rem;
    line-height: 1.7;
    color: #444;
}

.story-flow-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 3px;
    margin-bottom: 8px;
}

.story-flow-label.--before {
    background: #eee;
    color: #666;
}

.story-flow-label.--after {
    background: #333;
    color: #fff;
}

.story-flow-arrow {
    font-size: 1.5rem;
    color: #bbb;
    padding-top: 38px;
    flex-shrink: 0;
}

.story-card__quote {
    border-left: 3px solid #333;
    padding-left: 16px;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    font-style: italic;
    margin: 0;
}

.story-slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.story-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    color: #333;
    transition: background 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-nav-btn:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

.story-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.story-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
}

.story-dot.--active {
    background: #333;
    transform: scale(1.3);
}

/* ==========================================================================
   || TOP FAQ
   ========================================================================== */
.top-faq { background: #f9f9f9; }

.faq-list { max-width: 780px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid #e5e5e5; }
.faq-item:first-child { border-top: 1px solid #e5e5e5; }

.faq-q {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    color: #222;
    position: relative;
    user-select: none;
    list-style: none;
    transition: color 0.2s;
}

.faq-q:hover { color: #000; }

.faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-icon.--a {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.faq-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid #888;
    border-bottom: 2px solid #888;
    transform: rotate(45deg);
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.--open .faq-arrow {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.--open .faq-a { max-height: 400px; }

.faq-a__inner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 0 10px 24px;
}

.faq-a__inner p {
    font-size: 0.92rem;
    line-height: 1.85;
    color: #555;
    margin: 4px 0 0;
}

/* ==========================================================================
   || 売買ページ こんな悩みない？
   ========================================================================== */
.sale-worries { background: #f0f5f7; }

.worry-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.worry-heading { flex: 0 0 280px; }

.worry-heading__label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: .18em;
    color: #999;
    margin-bottom: 16px;
}

.worry-heading__title {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.5;
    color: #1a1a1a;
}

.worry-body { flex: 1; }

.worry-row-list { display: flex; flex-direction: column; }

.worry-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #d8e5ea;
}

.worry-row:first-child { border-top: 1px solid #d8e5ea; }

.worry-row__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #c8dde4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.worry-row__text {
    font-size: 1.1rem;
    font-weight: bold;
    color: #1a1a1a;
    margin: 0;
}

/* ==========================================================================
   || 売買ページ 相談は¥0
   ========================================================================== */
.sale-free-cta { background: #f0f5f7; }

.sale-free-price {
    color: #2a7a90;
    font-style: normal;
}

.sale-free-card {
    max-width: 520px;
    margin: 0 auto 40px;
    border: 1.5px solid #c8dde4;
    border-radius: 12px;
    background: #fff;
    padding: 8px 32px;
}

.sale-free-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 0;
}

.sale-free-item__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #eaf3f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sale-free-item__body { flex: 1; }

.sale-free-item__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.sale-free-item__desc {
    font-size: 0.88rem;
    color: #2a7a90;
    margin: 0;
    font-weight: bold;
}

.sale-free-divider {
    border: none;
    border-top: 1px solid #e0ecf0;
    margin: 0;
}

.sale-free-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.sale-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 36px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.95rem;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.sale-cta-btn:hover { opacity: 0.85; transform: translateY(-2px); }

.sale-cta-btn.--line    { background: rgba(6, 199, 85, 0.95); color: #fff; }
.sale-cta-btn.--contact { background: #fff; color: #333; border: 1px solid #ccc; }

/* ==========================================================================
   || 売買ページ 当社の特徴
   ========================================================================== */
.sale-features { background: #f5f5f5; }

/* ==========================================================================
   || 売買ページ シミュレーション
   ========================================================================== */
.sim-section { background: #fff; }

.sim-notice {
    display: inline-block;
    margin-top: 20px;
    background: #f2f2f2;
    border-left: 3px solid #333;
    padding: 10px 18px;
    font-size: 0.88rem;
    color: #444;
    border-radius: 0 4px 4px 0;
}

.sim-tabs {
    display: flex;
    margin-bottom: 28px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    max-width: 300px;
}

.sim-tab {
    flex: 1;
    padding: 11px 0;
    background: #f5f5f5;
    border: none;
    border-right: 1px solid #ddd;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    color: #888;
    transition: background 0.2s, color 0.2s;
}

.sim-tab:last-child  { border-right: none; }
.sim-tab.--active    { background: #333; color: #fff; }

.sim-panel          { display: none; }
.sim-panel.--active { display: block; }

.sim-tables {
    display: flex;
    gap: 20px;
}

.sim-block {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.sim-block.--purchase { border: 2px solid #333; }

.sim-block__head {
    padding: 13px 16px;
    font-weight: bold;
    font-size: 0.95rem;
    border-bottom: 1px solid #e0e0e0;
}

.sim-block__head span {
    font-size: 0.72rem;
    letter-spacing: .12em;
    opacity: 0.6;
    margin-left: 6px;
}

.sim-block__head.--rent     { background: #f5f5f5; color: #555; }
.sim-block__head.--purchase { background: #333; color: #fff; border-bottom-color: #444; }

.sim-table {
    width: 100%;
    border-collapse: collapse;
}

.sim-table th,
.sim-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.87rem;
    text-align: center;
}

.sth-item { background: #fff; width: 28%; font-weight: bold; text-align: left; padding-left: 12px; }
.sth-note { background: #fafafa; width: 42%; color: #777; font-size: 0.82rem; }
.sth-val  { background: #f7f7f7; width: 30%; font-weight: bold; }

.sim-table thead .sth-item,
.sim-table thead .sth-note,
.sim-table thead .sth-val {
    background: #eee;
    font-weight: bold;
    color: #444;
}

.sim-sub td    { background: #f0f0f0; font-weight: bold; }
.sim-spacer td { background: #fff; height: 10px; padding: 0; border: none; }
.sim-minus     { color: #555; }

.sim-total td { background: #fff; font-weight: bold; font-size: 0.95rem; padding: 14px 8px; }
.sim-total.--purchase td           { background: #1a1a1a; color: #fff; }
.sim-total.--purchase .sth-item    { background: #1a1a1a; color: #fff; }
.sim-total.--purchase .sth-note    { background: #1a1a1a; color: #999; }
.sim-total.--purchase .sth-val     { background: #1a1a1a; color: #fff; }

.sim-badge {
    display: inline-block;
    margin-left: 8px;
    background: #fff;
    color: #1a1a1a;
    font-size: 0.78rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 3px;
    vertical-align: middle;
}

.sim-note {
    font-size: 0.77rem;
    color: #999;
    padding: 8px 12px;
    line-height: 1.5;
}

/* ==========================================================================
   || 年齢的な買い時（横棒タイムライン）
   ========================================================================== */
.age-section  { background: #fafafa; }

.age-premise {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 32px;
    font-size: 1rem;
    font-weight: bold;
    color: #222;
}

.age-premise__note {
    font-size: 0.82rem;
    font-weight: normal;
    color: #888;
    margin-top: 4px;
}

.age-axis {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.age-axis__blank { flex: 0 0 180px; }

.age-axis__track {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    text-align: center;
}

.age-axis__track span {
    font-size: 0.78rem;
    color: #888;
    font-weight: bold;
}

.age-row-block {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 18px 20px;
    margin-bottom: 4px;
}

.age-row-block.--alert { border-color: #ccc; background: #f9f9f9; }

.age-row-label {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.age-tag {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    background: #e8e8e8;
    padding: 3px 12px;
    border-radius: 3px;
}

.age-tag.--alert { background: #fde8e8; color: #c0392b; }

.age-tag-sub         { font-size: 0.85rem; color: #666; }
.age-tag-sub.--alert { color: #c0392b; }

.age-row-chart {
    display: flex;
    width: 100%;
    height: 46px;
    border-radius: 4px;
    overflow: visible;
    position: relative;
}

.age-bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    border-radius: 4px;
    flex-shrink: 0;
    padding: 0 10px;
}

.age-bar.--main       { background: #b0cfe0; color: #1a1a1a; }
.age-bar.--main-heavy { background: #8ab0c8; color: #fff; position: relative; }
.age-bar.--pre-rent   { background: #e0e0e0; color: #555; font-size: 0.72rem; flex-direction: column; gap: 1px; }

.age-bar-inner {
    font-size: 0.72rem;
    line-height: 1.3;
    text-align: center;
    white-space: pre-line;
}

.age-retire-badge {
    position: absolute;
    right: 0;
    top: -2px;
    background: #e8e8e8;
    border: 1px solid #ccc;
    color: #c0392b;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 3px;
    line-height: 1.4;
    text-align: center;
    transform: translateY(-110%);
    white-space: nowrap;
}

.age-divider    { height: 1px; background: #e8e8e8; margin: 16px 0; }
.age-alert-note { margin-top: 8px; font-size: 0.84rem; color: #c0392b; font-weight: bold; }
.age-footer-note { margin-top: 24px; font-size: 0.8rem; color: #999; text-align: center; }

/* ==========================================================================
   || リノベページ 他社比較表
   ========================================================================== */
.rn-compare-section { background: #fff; }

.rn-cmp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
    align-items: stretch;
}

.rn-cmp-head {
    border-radius: 10px;
    border: 3px solid transparent;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 12px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    min-height: 80px;
}

.rn-cmp-head.--other-a { border-color: #aaa; color: #444; }
.rn-cmp-head.--other-b { border-color: #aaa; color: #444; }
.rn-cmp-head.--us      { border-color: #4a8fa0; }

.rn-cmp-logo { max-height: 44px; width: auto; object-fit: contain; }

.rn-cmp-label {
    background: #e8eef2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 16px 18px;
    font-size: 0.95rem;
    font-weight: bold;
    color: #333;
    min-height: 72px;
}

.rn-cmp-cell {
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    background: #f5f2ee;
}

.rn-cmp-cell.--us { background: #f0f5f7; }

.rn-cmp-mark           { font-size: 2rem; font-weight: 900; line-height: 1; }
.rn-cmp-mark.--o-gray  { color: #888; }
.rn-cmp-mark.--o-us    { color: #4a8fa0; }
.rn-cmp-mark.--x       { color: #bbb; font-size: 1.7rem; }
.rn-cmp-mark.--tri     { color: #aaa; font-size: 1.5rem; }

.rn-compare-note {
    margin-top: 20px;
    font-size: 0.82rem;
    color: #999;
    line-height: 1.7;
    text-align: center;
}

/* ==========================================================================
   || リノベページ ローン比較グラフ
   ========================================================================== */
.rn-loan-section { background: #f0f5f7; }

.rn-loan-layout {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.rn-loan-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rn-loan-card {
    border-radius: 8px;
    padding: 20px 22px;
    border: 1px solid #ddd;
    background: #fff;
}

.rn-loan-card.--new { border: 2px solid #4a8fa0; }

.rn-loan-card__label {
    font-size: 0.82rem;
    font-weight: bold;
    color: #888;
    margin-bottom: 12px;
    letter-spacing: .04em;
}

.rn-loan-card.--new .rn-loan-card__label { color: #4a8fa0; }

.rn-loan-card__list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 16px;
}

.rn-loan-card__list li {
    font-size: 0.88rem;
    color: #444;
    padding-left: 1.2em;
    position: relative;
    line-height: 1.55;
}

.rn-loan-card__list li::before { content: '・'; position: absolute; left: 0; color: #aaa; }
.rn-loan-card.--new .rn-loan-card__list li::before { color: #4a8fa0; }

.rn-loan-card__total {
    font-size: 1.1rem;
    font-weight: bold;
    color: #555;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

.rn-loan-card__total.--new {
    color: #4a8fa0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rn-loan-save {
    font-size: 0.82rem;
    background: #4a8fa0;
    color: #fff;
    padding: 2px 10px;
    border-radius: 3px;
    font-weight: bold;
}

.rn-loan-chart-wrap {
    flex: 0 0 320px;
    max-width: 360px;
}

.rn-chart-title {
    font-size: 0.88rem;
    font-weight: bold;
    color: #555;
    margin-bottom: 12px;
    text-align: center;
}

.rn-chart-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px 16px;
    height: 280px;
}

.rn-chart-note {
    font-size: 0.76rem;
    color: #aaa;
    margin-top: 10px;
    line-height: 1.6;
    text-align: center;
}

/* ==========================================================================
   || リノベページ 流れ（7ステップ）
   ========================================================================== */
.rn-flow-section { background: #fff; }

.rn-flow-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    counter-reset: flow;
    position: relative;
}

.rn-flow-list::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.rn-flow-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    z-index: 1;
}

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

.rn-flow-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
}

.rn-flow-icon {
    width: 52px;
    height: 52px;
    background: #f0f5f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.rn-flow-body  { flex: 1; padding-top: 4px; }

.rn-flow-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.rn-flow-desc {
    font-size: 0.88rem;
    line-height: 1.85;
    color: #555;
    margin-bottom: 8px;
}

.rn-flow-period {
    display: inline-block;
    font-size: 0.78rem;
    color: #4a8fa0;
    font-weight: bold;
    background: #eaf3f6;
    padding: 2px 10px;
    border-radius: 3px;
}

/* ==========================================================================
   || 中古×リノベ提案
   ========================================================================== */
.sale-renove { background: #fdfdfd; }

.renove-inner { display: flex; gap: 60px; align-items: center; }
.renove-text  { flex: 1; }

.renove-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.renove-desc {
    font-size: 0.95rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 24px;
}

.renove-merits {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.renove-merits li {
    font-size: 0.9rem;
    color: #333;
    padding: 12px 16px;
    background: #f5f5f5;
    border-radius: 4px;
    line-height: 1.5;
}

.renove-merits li strong { color: #1a1a1a; }

.renove-visual { flex: 0 0 38%; max-width: 400px; }

.renove-visual img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    display: block;
}

/* ==========================================================================
   || レスポンシブ（スマホ 768px以下）
   ========================================================================== */
@media (max-width: 768px) {
    /* ヒーロー */
    .hero-title { font-size: 1.8rem; }

    /* 五角形 */
    .m-house-copy {
        font-size: 1.6rem;
        margin-bottom: 20px;
        padding-left: 10px;
    }
    .m-house-visual {
        clip-path: polygon(0% 10%, 50% 0%, 100% 10%, 100% 100%, 0% 100%);
        padding: 60px 20px 40px;
    }
    .m-house-visual__text { font-size: 0.95rem; line-height: 2; }

    /* 特徴カード */
    .m-feature-grid-card {
        padding: 30px 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    .m-feature-grid-header {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }
    .m-feature-sp-image { display: block; width: 50px; }
    .m-feature-pc-image { display: none; }
    .m-feature-grid-title { font-size: 1.2rem; }
    .m-feature-grid-desc  { font-size: 0.95rem; line-height: 1.7; }

    /* 新聞 */
    .m-news-inner   { flex-direction: column; gap: 30px; }
    .m-news-title   { font-size: 1.6rem; text-align: center; }
    .m-news-text    { text-align: left; }
    .m-news-visual  { flex: none; width: 70%; max-width: 300px; margin: 0 auto; }
    .m-news-section { padding: 60px 0; }

    /* Q&A */
    .m-qa-section  { padding: 60px 0; }
    .m-qa-q-text   { font-size: 0.95rem; }

    /* 声 */
    .voice-grid { grid-template-columns: 1fr; gap: 24px; }
    .voice-card { max-width: 450px; margin: 0 auto; padding: 20px; }
    .voice-card__header { align-items: center; gap: 12px; }
    .voice-card__icon   { width: 70px; height: 70px; }
    .voice-card__title  { font-size: 0.95rem; }
    .voice-card__text   { font-size: 0.85rem; line-height: 1.6; letter-spacing: 0.02em; }

    /* ステップカード */
    .step-card {
        flex: 0 0 85vw;
        max-width: 85vw;
        min-height: 50.6vw;
        padding: 20px;
    }
    .step-card__icon   { width: 18vw; height: 18vw; max-width: 70px; }
    .step-card__bottom { margin-top: 5vw; }
    .step-card__btn    { width: 180px; height: 40px; gap: 6px; }
    .step-card__btn-icon img { width: 18px; }
    .step-card__btn-text     { font-size: 0.8rem; }

    /* ローカルナビ */
    .local-nav { justify-content: center; gap: 20px; }

    /* シンプルヘッダー */
    .c-simple-header              { padding: 80px 40px 0; }
    .c-simple-header.is-first-section { padding-top: calc(80px + 80px); }
    .c-simple-header__title       { font-size: 1.8rem; line-height: 1.6; text-align: center; margin-bottom: 24px; }
    .c-simple-header__description { font-size: 1rem; text-align: justify; line-height: 1.9; margin-bottom: 60px; }

    /* スマホのみ改行用 */
    .u-sp-only { display: block; content: ""; margin-top: 0; }

    /* シミュレーション */
    .simulation-header { flex-direction: column; }
    .simulation-tables { flex-direction: column; }
    .sim-tables        { flex-direction: column; }
    .sth-note          { display: none; }
    .sth-item          { width: 45%; }
    .sth-val           { width: 55%; }
    .sim-table th, .sim-table td { font-size: 0.78rem; padding: 8px 4px; }

    /* ローングラフ */
    .loan-title         { font-size: 1.6rem; }
    .loan-graph-wrapper { margin-bottom: 40px; padding: 10px; }
    .graph-bar-container { height: 180px; }
    .diff-badge         { right: -10px; top: 0; font-size: 0.75rem; padding: 4px 8px; }
    .loan-table th      { font-size: 0.85rem; }
    .loan-table td.row-label,
    .loan-table td:not(.row-label) { font-size: 0.85rem; padding: 10px 5px; }
    .loan-graph-area    { padding: 25px 15px; }
    .bar-name           { width: 50px; font-size: 0.8rem; }
    .bar                { height: 40px; font-size: 0.75rem; padding: 0 10px; }
    .graph-label        { font-size: 1.05rem; }

    /* 年齢グラフ */
    .age-graph-area    { padding: 20px 15px; }
    .timeline-bar      { font-size: 0.7rem; padding-left: 10px; }
    .start-age         { font-size: 0.95rem; }
    .age-axis__blank   { flex: 0 0 90px; }
    .age-axis__track span { font-size: 0.68rem; }
    .age-tag           { font-size: 0.9rem; }
    .age-bar           { font-size: 0.72rem; padding: 0 6px; }
    .age-row-label     { flex-direction: column; gap: 4px; }
    .age-retire-badge  { font-size: 0.62rem; }

    /* こんな悩みない？ */
    .worry-layout           { flex-direction: column; gap: 32px; }
    .worry-heading          { flex: none; width: 100%; }
    .worry-heading__title   { font-size: 1.3rem; }
    .worry-row__text        { font-size: 1rem; }

    /* 相談 ¥0 */
    .sale-free-card { padding: 4px 20px; }
    .sale-cta-btn   { width: 100%; max-width: 300px; }

    /* リノベ比較 */
    .rn-cmp-grid  { gap: 6px; }
    .rn-cmp-head  { font-size: 0.8rem; padding: 12px 6px; min-height: 60px; }
    .rn-cmp-label { font-size: 0.82rem; padding: 12px 10px; min-height: 56px; }
    .rn-cmp-cell  { min-height: 56px; }
    .rn-cmp-mark  { font-size: 1.6rem; }
    .rn-cmp-logo  { max-height: 32px; }

    /* リノベローン */
    .rn-loan-layout    { flex-direction: column; gap: 32px; }
    .rn-loan-chart-wrap { flex: none; max-width: 100%; width: 100%; }

    /* リノベ流れ */
    .rn-flow-list::before { left: 22px; }
    .rn-flow-num          { width: 44px; height: 44px; font-size: 1.1rem; }
    .rn-flow-icon         { display: none; }
    .rn-flow-title        { font-size: 0.98rem; }

    /* 中古×リノベ */
    .renove-inner  { flex-direction: column; gap: 32px; }
    .renove-visual { max-width: 100%; flex: none; width: 100%; }
    .renove-title  { font-size: 1.6rem; }

    /* ストーリー */
    .story-card       { padding: 24px 20px; }
    .story-flow-arrow { display: none; }
    .story-card__flow { flex-direction: column; gap: 10px; }
    .story-flow-step  { min-width: 100%; }

    /* サービスカード */
    .top-service-list { gap: 20px; }
    .top-service-card { min-width: 100%; max-width: 100%; }

    /* 選ばれる理由 */
    .top-reasons-list { gap: 16px; }
    .top-reasons-card { min-width: 100%; max-width: 100%; padding: 30px 24px; }

    /* 沿革 */
    .history-list th,
    .history-list td { display: block; width: 100%; padding: 15px 10px; }
    .history-list th { border-bottom: none; padding-bottom: 0; }

    /* 所在地 */
    .location-map { height: 300px; }

    /* コンテナ系（スマホ余白統一） */
    .top-container,
    .top-container.--xl    { width: 84vw; }
    .m-grid-container      { width: 84vw; }
    .m-news-container      { width: 84vw; }
    .m-qa-container        { width: 84vw; }
    .m-house-container     { width: 84vw; }
    .simulation-container  { width: 84vw; }
    .loan-container        { width: 84vw; }
    .company-page          { padding-left: 8vw; padding-right: 8vw; }
    .lease-page            { padding-left: 8vw; padding-right: 8vw; }
    .c-simple-header       { padding-left: 8vw; padding-right: 8vw; }
}

@media (max-width: 860px) {
    .sim-tables { flex-direction: column; }
}

@media (max-width: 900px) {
    .simulation-header  { flex-direction: column; }
    .simulation-tables  { flex-direction: column; }
    .renove-inner       { flex-direction: column; gap: 32px; }
    .renove-visual      { max-width: 100%; flex: none; width: 100%; }
    .renove-title       { font-size: 1.6rem; }
    .rn-loan-layout     { flex-direction: column; gap: 32px; }
    .rn-loan-chart-wrap { flex: none; max-width: 100%; width: 100%; }
}

@media (max-width: 640px) {
    .rn-cmp-grid  { gap: 6px; }
    .rn-cmp-head  { font-size: 0.8rem; padding: 12px 6px; min-height: 60px; }
    .rn-cmp-label { font-size: 0.82rem; padding: 12px 10px; min-height: 56px; }
    .rn-cmp-cell  { min-height: 56px; }
    .rn-cmp-mark  { font-size: 1.6rem; }
    .rn-cmp-logo  { max-height: 32px; }
}

/* =========================
   Opening Animation
   p-opening（トップページ初回表示のみ）
========================= */

/* Google Fonts: Noto Sans JP Black（極太角ゴシック） */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@900&display=swap');

.p-opening {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.p-opening--exit {
    animation: openingExit 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: none;
}

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

.p-opening__inner {
    position: relative;
    width: 100%;
    height: 1.4em;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 全行を絶対配置で画面中央に重ねる */
.p-opening__line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    max-width: 90vw;
    font-family: 'Noto Sans JP', "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    color: #111;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    -webkit-font-smoothing: antialiased;
}

.p-opening__line--visible {
    opacity: 1;
}

.p-opening__char {
    display: inline-block;
    opacity: 0;
    transform: translateX(-20px) scale(0.78);
}

.p-opening__char--in {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.p-opening__line--exit {
    animation: lineExit 0.28s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

@keyframes lineExit {
    0%   { opacity: 1; transform: translate(-50%, -50%); }
    100% { opacity: 0; transform: translate(-50%, calc(-50% + 30px)); }
}

.top--hidden {
    opacity: 0;
    transform: translateY(60px);
}

.top--enter {
    animation: topEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

@media (max-width: 480px) {
    .p-opening__line {
        font-size: clamp(2rem, 9vw, 3.2rem);
        font-weight: 800;                        /* スマホはひと段階太く */
        letter-spacing: 0.02em;
        white-space: normal;                     /* 折り返しを許可 */
        word-break: keep-all;                    /* 日本語は単語単位で折り返す */
        width: 88vw;                             /* 最大幅を画面の88%に制限 */
        max-width: 88vw;
        text-align: center;
        line-height: 1.35;
    }
}