/*
Theme Name: konzen Selection
Theme URI: https://konzen.info/
Author: Antigravity
Author URI: https://google.com/
Description: A premium marriage agency comparison theme for the 40s demographic.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: konzen-selection
*/

/* Base Styles */
:root {
    --bg-color: #F9F6F0;
    --main-color: #2C3E50;
    --accent-color: #D687A1;
    --text-color: #333333;
    --white: #FFFFFF;
    --soft-border: #E5E0D8;
    --star-color: #F39C12;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
    line-height: 1.4;
    color: var(--main-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Header */
.page-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--soft-border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.4rem;
    color: var(--main-color);
    letter-spacing: 0.05em;
    font-weight: 700;
}

.logo-text span {
    color: var(--accent-color);
}

.logo-icon {
    width: 38px;
    height: 38px;
}

.header__logo img {
    height: 48px;
    width: auto;
}

/* Hamburger Menu */
.header__menu-btn {
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 2000;
}

.header__menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--main-color);
    transition: all 0.3s;
}

/* Mobile Nav Drawer */
.nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background-color: var(--white);
    z-index: 1500;
    padding: 80px 40px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.nav-drawer.active {
    right: 0;
}

.nav-drawer ul {
    list-style: none;
}

.nav-drawer ul li {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--soft-border);
    padding-bottom: 10px;
}

.nav-drawer ul li a {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--main-color);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1200;
    display: none;
}

.overlay.active {
    display: block;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0;
    text-align: center;
    background-color: #CCCCCC;
    background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), url('./img/top_bg.png');
    background-size: cover;
    background-position: center;
}

.hero__content {
    display: inline-block;
    padding: 30px 20px;
    background-color: rgba(255, 255, 255, 0.85);
    /* Mobile default: semi-transparent solid box */
    border-radius: 8px;
}

@media (min-width: 768px) {
    .hero__content {
        padding: 30px 100px;
        background: linear-gradient(to right,
                rgba(255, 255, 255, 0) 0%,
                rgba(255, 255, 255, 0.7) 25%,
                rgba(255, 255, 255, 0.7) 75%,
                rgba(255, 255, 255, 0) 100%);
        border-radius: 0;
    }
}

.hero__main-copy {
    font-size: 1.8rem;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.hero__sub-copy {
    font-size: 1.1rem;
    color: #444;
    max-width: 700px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero__main-copy {
        font-size: 2.8rem;
    }
}

/* Category Tiles */
.categories {
    padding: 60px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-item {
    background-color: var(--white);
    border: 1px solid var(--soft-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.category-item__image {
    width: 100%;
    height: 120px;
    background-color: #EEEEEE;
    background-size: cover;
    background-position: center;
}

.category-item__content {
    padding: 15px;
    flex-grow: 1;
}

.category-item__title {
    font-size: 1rem;
    margin-bottom: 5px;
}

.category-item__desc {
    font-size: 0.8rem;
    color: #777;
    line-height: 1.4;
}

/* Comparison Section (Card Layout) */
.comparison {
    padding: 80px 0;
    background-color: #FBF9F6;
}

.comparison__title {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 50px;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 900px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.comp-card {
    background-color: var(--white);
    border: 1px solid #DDDDDD;
    display: flex;
    flex-direction: column;
    position: relative;
}

.comp-card__header {
    background-color: var(--main-color);
    color: var(--white);
    padding: 15px;
    text-align: center;
}

.comp-card__rank {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 3px;
}

.comp-card__name {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
}

.comp-card__arrow {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 10px solid var(--main-color);
    margin: 0 auto;
}

.comp-card__body {
    padding: 20px;
    flex-grow: 1;
}

.comp-card__logo {
    width: 100%;
    height: 170px;
    margin-bottom: 20px;
    border: 1px solid #EEEEEE;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}

.comp-card__desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    min-height: 6em;
}

.comp-card__ratings {
    background-color: #FFFFFF;
    border: 1px solid #F0F0F0;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.rating-row:last-child {
    margin-bottom: 0;
}

.rating-label {
    font-size: 0.9rem;
    font-weight: 700;
}

.rating-total {
    border-bottom: 1px solid #EEEEEE;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.stars {
    color: var(--star-color);
}

.rating-num {
    color: #d35400;
    font-weight: 700;
    font-size: 1.2rem;
    margin-left: 5px;
}

.btn-cv {
    display: block;
    background-color: var(--accent-color);
    color: var(--white);
    text-align: center;
    padding: 16px;
    font-weight: 700;
    border-radius: 4px;
    box-shadow: 0 4px 0 #B56B85;
}

/* Latest Posts Grid */
.latest-posts {
    padding: 80px 0;
    background-color: var(--white);
}

.latest-posts__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Tag List Widget */
.widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-pill {
    display: inline-block;
    background-color: #f0f0f0;
    color: #666;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.tag-pill:hover {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

@media (min-width: 900px) {
    .latest-posts__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

.latest-card {
    background-color: var(--white);
    border: 1px solid var(--soft-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.latest-card:hover {
    transform: translateY(-5px);
}

.latest-card__thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #eee;
    overflow: hidden;
}

.latest-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-card__body {
    padding: 15px;
}

.latest-card__cat {
    font-size: 0.65rem;
    color: var(--white);
    background-color: var(--accent-color);
    font-weight: 700;
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 8px;
    border-radius: 4px;
}

.latest-card__title {
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-card__date {
    font-size: 0.75rem;
    color: #999;
}

/* CV Area - Common Component */
.cv-area {
    background-color: var(--main-color);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    margin-top: 60px;
}

.cv-area__title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--white);
}

.cv-area__text {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 18px 50px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(176, 141, 154, 0.4);
}

/* Footer */
footer {
    padding: 60px 0;
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    background-color: var(--white);
    border-top: 1px solid var(--soft-border);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #666;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--accent-color);
}


/* Utils */
.u-mb80 {
    margin-bottom: 80px;
}

.u-mt80 {
    margin-top: 80px;
}

.u-text-center {
    text-align: center;
}

/* =============================================
   Fixed Page / Single Post Content Styles
   ============================================= */

/* Page title area */
.page-title-area {
    background-color: var(--white);
    border-bottom: 1px solid var(--soft-border);
    padding: 50px 20px 40px;
    text-align: center;
}

.page-title-area h1 {
    font-size: 1.8rem;
    color: var(--main-color);
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .page-title-area h1 {
        font-size: 2.2rem;
    }
}

/* Page body wrapper */
.page-body {
    padding: 60px 0 80px;
}

/* Main content area */
.entry-content {
    background-color: var(--white);
    border: 1px solid var(--soft-border);
    border-radius: 8px;
    padding: 40px 30px;
    max-width: 1100px;
    margin: 80px auto 0;
    line-height: 1.9;
}

@media (min-width: 768px) {
    .entry-content {
        padding: 60px 60px;
    }
}

/* Headings inside content */
.entry-content h2 {
    font-size: 1.3rem;
    color: var(--main-color);
    border-left: 4px solid var(--accent-color);
    padding-left: 14px;
    margin: 40px 0 16px;
}

.entry-content h2:first-child {
    margin-top: 0;
}

.entry-content h3 {
    font-size: 1.1rem;
    color: var(--main-color);
    margin: 30px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--soft-border);
}

/* Paragraphs */
.entry-content p {
    margin-bottom: 1.4em;
    color: var(--text-color);
}

/* Lists */
.entry-content ul,
.entry-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.4em;
}

.entry-content li {
    margin-bottom: 0.6em;
    line-height: 1.8;
}

.entry-content li strong {
    color: var(--main-color);
}

/* Horizontal rule */
.entry-content hr {
    border: none;
    border-top: 1px solid var(--soft-border);
    margin: 40px 0;
}

/* Links inside content */
.entry-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.entry-content a:hover {
    opacity: 0.75;
}