/*
Theme Name: 050ホーム
Theme URI: https://example.com
Author: 050ホーム
Author URI: https://example.com
Description: 050ホーム - 仲介手数料0円 or 最大50%OFF 賃貸お部屋探しサービスのWordPressテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zero50home
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.8;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo img {
    height: 36px;
}
.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: #2bb5a0;
    letter-spacing: 1px;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-nav a,
.header-nav .menu-item a {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-left: 20px;
    transition: color 0.2s;
}
.header-nav a:hover,
.header-nav .menu-item a:hover {
    color: #2bb5a0;
}
.header-nav ul {
    display: flex;
    list-style: none;
}
.header-nav ul li {
    list-style: none;
}
.btn-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #06C755;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 50px;
    transition: opacity 0.2s;
}
.btn-line:hover {
    opacity: 0.85;
}
.btn-line svg {
    width: 20px;
    height: 20px;
}

/* ===== HERO ===== */
.hero {
    margin-top: 64px;
    background: linear-gradient(135deg, #e0f7f3 0%, #f0fdf9 50%, #fff 100%);
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(43, 181, 160, 0.06);
    border-radius: 50%;
}
.hero-badge {
    display: inline-block;
    background: #2bb5a0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: 40px;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 8px;
}
.hero h1 span { color: #2bb5a0; }
.hero h1 .big-num { font-size: 56px; color: #e85d3a; }
.hero h1 .accent-or { font-size: 28px; color: #888; margin: 0 4px; }
.hero-sub {
    font-size: 16px;
    color: #666;
    margin-bottom: 12px;
}
.hero-owner-note {
    display: inline-block;
    font-size: 14px;
    color: #e85d3a;
    font-weight: 700;
    background: #fff8f5;
    border: 1px dashed #e85d3a;
    border-radius: 8px;
    padding: 8px 20px;
    margin-bottom: 28px;
}
.hero-users {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 2px solid #2bb5a0;
    border-radius: 50px;
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 700;
    color: #2bb5a0;
    margin-bottom: 32px;
}
.hero-users .num { font-size: 26px; color: #e85d3a; }
.hero-image {
    max-width: 700px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.hero-image img { width: 100%; }

/* ===== CTA BANNER (FIXED BOTTOM MOBILE) ===== */
.cta-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    z-index: 999;
    padding: 12px 20px;
    display: none;
}
.cta-fixed-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}
.cta-fixed .btn-line {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 16px;
}

/* ===== SECTION COMMON ===== */
section { padding: 80px 20px; }
.section-inner { max-width: 1000px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title .en {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #2bb5a0;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.section-title h2 {
    font-size: 30px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.4;
}
.section-title h2 span { color: #2bb5a0; }

/* ===== ABOUT ===== */
.about { background: #fff; }
.about-content { display: flex; align-items: center; gap: 50px; }
.about-text { flex: 1; }
.about-text p { font-size: 15px; color: #555; margin-bottom: 16px; }
.about-text .highlight-box {
    background: #f0fdf9;
    border-left: 4px solid #2bb5a0;
    padding: 20px;
    border-radius: 0 12px 12px 0;
    margin-top: 20px;
}
.about-text .highlight-box strong { color: #2bb5a0; }
.about-text .owner-note {
    background: #fff8f5;
    border-left: 4px solid #e85d3a;
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
    margin-top: 16px;
    font-size: 14px;
    color: #c24a2a;
    font-weight: 600;
}
.about-image { flex: 1; border-radius: 16px; overflow: hidden; }

/* ===== MERIT ===== */
.merit { background: #f7fffe; }
.merit-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.merit-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.merit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.merit-icon {
    width: 80px; height: 80px;
    margin: 0 auto 20px;
    background: #e0f7f3;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.merit-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: #1a1a1a; }
.merit-card p { font-size: 14px; color: #666; }
.merit-card .note-small {
    display: block;
    font-size: 12px;
    color: #e85d3a;
    font-weight: 600;
    margin-top: 10px;
}

/* ===== COMPARISON ===== */
.comparison { background: #fff; }
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.comparison-table thead th {
    background: #2bb5a0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 16px 12px;
    text-align: center;
}
.comparison-table thead th:first-child { background: #555; }
.comparison-table thead th.highlight { background: #e85d3a; font-size: 17px; }
.comparison-table tbody td {
    padding: 16px 12px;
    text-align: center;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody td:first-child {
    font-weight: 600;
    background: #f9f9f9;
    text-align: left;
    padding-left: 20px;
}
.comparison-table tbody td.highlight {
    background: #fff8f5;
    color: #e85d3a;
    font-weight: 700;
}
.comparison-table .free { font-size: 22px; font-weight: 800; color: #e85d3a; }
.comparison-table .table-note {
    display: block;
    font-size: 11px;
    color: #999;
    font-weight: 400;
    margin-top: 4px;
}

/* ===== HOW TO USE ===== */
.howto { background: #f7fffe; }
.steps { display: flex; flex-direction: column; gap: 40px; }
.step {
    display: flex; align-items: center; gap: 36px;
    background: #fff;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.step-num {
    flex-shrink: 0;
    width: 64px; height: 64px;
    background: linear-gradient(135deg, #2bb5a0, #1a9e8c);
    color: #fff;
    border-radius: 50%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; line-height: 1.2;
}
.step-num .num { font-size: 26px; font-weight: 900; }
.step-image {
    flex: 0 0 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.step-text { flex: 1; }
.step-text h3 { font-size: 18px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
.step-text p { font-size: 14px; color: #666; }

/* ===== AREA ===== */
.area { background: #fff; }
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.area-tag {
    background: #f0fdf9;
    border: 1px solid #c5ece5;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #2bb5a0;
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
}
.area-tag:hover { background: #2bb5a0; color: #fff; transform: scale(1.04); }
.area-note { text-align: center; margin-top: 24px; font-size: 13px; color: #999; }

/* ===== FAQ ===== */
.faq { background: #f7fffe; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    overflow: hidden;
}
.faq-question {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    font-size: 15px; font-weight: 600; color: #1a1a1a;
    transition: background 0.2s;
}
.faq-question:hover { background: #f9fffe; }
.faq-question .q-label { color: #2bb5a0; font-weight: 800; margin-right: 12px; font-size: 17px; }
.faq-question .arrow { transition: transform 0.3s; font-size: 20px; color: #999; }
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-item.open .faq-answer { max-height: 400px; padding: 0 24px 24px; }
.faq-answer p { font-size: 14px; color: #666; line-height: 1.9; }

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, #2bb5a0 0%, #1a9e8c 100%);
    padding: 80px 20px;
    text-align: center;
    color: #fff;
}
.cta-section h2 { font-size: 30px; font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 16px; opacity: 0.9; margin-bottom: 12px; }
.cta-section .cta-owner-note {
    display: inline-block;
    font-size: 14px; font-weight: 700;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 8px;
    padding: 8px 20px;
    margin-bottom: 32px;
}
.btn-line-large {
    display: inline-flex; align-items: center; gap: 10px;
    background: #06C755;
    color: #fff;
    font-size: 18px; font-weight: 700;
    padding: 18px 48px;
    border-radius: 50px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
    transition: transform 0.2s, opacity 0.2s;
}
.btn-line-large:hover { transform: translateY(-2px); opacity: 0.92; }
.btn-line-large svg { width: 24px; height: 24px; }

/* ===== FOOTER ===== */
.footer {
    background: #1a1a1a;
    color: #aaa;
    padding: 48px 20px 32px;
}
.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}
.footer-logo .logo-text { color: #fff; font-size: 20px; }
.footer-logo p { font-size: 12px; margin-top: 8px; color: #777; }
.footer-links { display: flex; gap: 40px; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a { font-size: 13px; color: #aaa; transition: color 0.2s; }
.footer-links ul li a:hover { color: #2bb5a0; }
.footer-bottom {
    max-width: 1000px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 12px;
    color: #666;
}

/* ===== BLOG / ARCHIVE (050ホームナビ) ===== */
.blog-header {
    margin-top: 64px;
    background: linear-gradient(135deg, #e0f7f3 0%, #f0fdf9 100%);
    padding: 60px 20px 40px;
    text-align: center;
}
.blog-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
}
.blog-header p {
    font-size: 15px;
    color: #666;
    margin-top: 8px;
}
.blog-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}
.blog-main { min-width: 0; }
.post-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}
.post-card-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.post-card-body { padding: 24px; }
.post-card-cat {
    display: inline-block;
    background: #2bb5a0;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 50px;
    margin-bottom: 10px;
}
.post-card-body h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.5;
}
.post-card-body h2 a { color: #1a1a1a; transition: color 0.2s; }
.post-card-body h2 a:hover { color: #2bb5a0; }
.post-card-meta {
    font-size: 12px;
    color: #999;
}
.post-card-excerpt {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    line-height: 1.7;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}
.pagination a { background: #f0fdf9; color: #2bb5a0; }
.pagination a:hover { background: #2bb5a0; color: #fff; }
.pagination .current { background: #2bb5a0; color: #fff; }

/* ===== SINGLE POST ===== */
.single-header {
    margin-top: 64px;
    background: linear-gradient(135deg, #e0f7f3 0%, #f0fdf9 100%);
    padding: 60px 20px 40px;
    text-align: center;
}
.single-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.5;
}
.single-header .single-meta {
    font-size: 13px;
    color: #888;
    margin-top: 12px;
}
.single-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}
.single-content {
    font-size: 15px;
    color: #444;
    line-height: 2;
}
.single-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid #2bb5a0;
}
.single-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 30px 0 12px;
}
.single-content p { margin-bottom: 20px; }
.single-content img { border-radius: 12px; margin: 20px 0; }
.single-content a { color: #2bb5a0; text-decoration: underline; }
.single-content a:hover { color: #1a9e8c; }
.single-content ul, .single-content ol {
    margin: 16px 0;
    padding-left: 24px;
}
.single-content li {
    list-style: disc;
    margin-bottom: 8px;
}
.single-content blockquote {
    background: #f0fdf9;
    border-left: 4px solid #2bb5a0;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #555;
}

/* ===== SIDEBAR ===== */
.sidebar {}
.sidebar-widget {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}
.sidebar-widget h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #2bb5a0;
}
.sidebar-widget ul li {
    margin-bottom: 10px;
}
.sidebar-widget ul li a {
    font-size: 14px;
    color: #555;
    transition: color 0.2s;
}
.sidebar-widget ul li a:hover { color: #2bb5a0; }
.sidebar-cta {
    background: linear-gradient(135deg, #2bb5a0, #1a9e8c);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
}
.sidebar-cta h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    border: none;
    padding: 0;
    color: #fff;
}
.sidebar-cta p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 16px;
}
.sidebar-cta .btn-line {
    font-size: 13px;
    padding: 10px 20px;
}

/* ===== FIXED PAGE ===== */
.page-header {
    margin-top: 64px;
    background: linear-gradient(135deg, #e0f7f3 0%, #f0fdf9 100%);
    padding: 60px 20px 40px;
    text-align: center;
}
.page-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
}
.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}
.page-content {
    font-size: 15px;
    color: #444;
    line-height: 2;
}
.page-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid #2bb5a0;
}
.page-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 30px 0 12px;
}
.page-content p { margin-bottom: 20px; }
.page-content a { color: #2bb5a0; text-decoration: underline; }
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.page-content table th,
.page-content table td {
    padding: 14px 16px;
    border: 1px solid #ddd;
    font-size: 14px;
}
.page-content table th {
    background: #f0fdf9;
    font-weight: 600;
    text-align: left;
    width: 30%;
}

/* Contact Form (CF7 compatible) */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
    margin-bottom: 8px;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus {
    border-color: #2bb5a0;
    outline: none;
}
.wpcf7 input[type="submit"] {
    background: #2bb5a0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 48px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s;
}
.wpcf7 input[type="submit"]:hover {
    background: #1a9e8c;
}

/* ===== 404 ===== */
.page-404 {
    margin-top: 64px;
    text-align: center;
    padding: 120px 20px;
}
.page-404 h1 {
    font-size: 80px;
    font-weight: 900;
    color: #2bb5a0;
}
.page-404 p {
    font-size: 18px;
    color: #666;
    margin: 20px 0 30px;
}
.page-404 a {
    display: inline-block;
    background: #2bb5a0;
    color: #fff;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
}

/* ===== ANIMATION ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== COMPANY PAGE (IMAGE LAYOUT) ===== */
.company-images {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.company-image-block {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.company-image-block img {
    width: 100%;
    height: auto;
    display: block;
}

/* スマホ時の余白調整 */
@media (max-width: 768px) {
    .company-images {
        gap: 20px;
    }
    .company-image-block {
        border-radius: 12px;
    }
    /* ボタン縦並び対応 */
    .page-content > div[style*="text-align:center"] a {
        display: block !important;
        margin: 0 auto 12px !important;
        max-width: 320px;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-nav { display: none; }
    .hero h1 { font-size: 26px; }
    .hero h1 .big-num { font-size: 38px; }
    .hero h1 .accent-or { font-size: 18px; }
    .about-content { flex-direction: column; }
    .merit-cards { grid-template-columns: 1fr; }
    .step { flex-direction: column; text-align: center; }
    .step-image { flex: 0 0 auto; width: 100%; }
    .area-grid { grid-template-columns: repeat(2, 1fr); }
    .comparison-table { font-size: 13px; }
    .blog-container,
    .single-container { grid-template-columns: 1fr; }
    .sidebar { order: 2; }
    .footer-inner { flex-direction: column; }
    .footer-links { flex-direction: column; gap: 20px; }
    .cta-fixed { display: block; }
    .cta-section h2 { font-size: 24px; }
}
