/*
Theme Name: Daiki Housing Corporate
Theme URI: https://daikihllc.com/
Author: Daiki Housing LLC
Author URI: https://daikihllc.com/
Description: 合同会社ダイキハウジング公式コーポレートサイト用WordPressテーマ。金融機関・取引先向けの信頼性重視デザイン。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: daiki-housing
Tags: corporate, real-estate, japanese, responsive, custom-logo
*/

/* ===========================
   CSS Variables
   =========================== */
:root {
    --color-primary: #1a2e5a;
    --color-secondary: #2c5f8a;
    --color-accent: #3a7cc0;
    --color-dark: #0f1a33;
    --color-light: #f8f6f2;
    --color-beige: #f5f0e8;
    --color-white: #ffffff;
    --color-gray: #6b7280;
    --color-gray-light: #e5e7eb;
    --color-green-dark: #1a4a3a;
    --color-text: #333333;
    --color-text-light: #555555;
    --font-primary: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    --font-heading: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
    --max-width: 1200px;
    --header-height: 80px;
    --transition: all 0.3s ease;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
    --radius: 4px;
}

/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.4;
    margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1em;
}

ul, ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}

/* ===========================
   Layout
   =========================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section--bg {
    background-color: var(--color-beige);
}

.section--dark {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.section__title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-secondary);
}

.section__subtitle {
    text-align: center;
    color: var(--color-gray);
    font-size: 0.9rem;
    margin-top: -40px;
    margin-bottom: 50px;
}

/* ===========================
   Header
   =========================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--color-white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.site-header__logo img {
    height: 50px;
    width: auto;
}

.site-header__logo .logo-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 700;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav__list {
    display: flex;
    list-style: none;
    gap: 5px;
    padding: 0;
    margin: 0;
}

.main-nav__item a {
    display: block;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--color-text);
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
}

.main-nav__item a:hover {
    background-color: var(--color-beige);
    color: var(--color-primary);
}

.main-nav__item--cta a {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.main-nav__item--cta a:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-primary);
    margin: 6px 0;
    transition: var(--transition);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    margin-top: var(--header-height);
    position: relative;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 100px 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    opacity: 0.95;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero__title {
    font-size: 2.2rem;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.5;
}

.hero__subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
}

.hero__actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    gap: 8px;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn--secondary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn--secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn--line {
    background-color: #06C755;
    color: var(--color-white);
}

.btn--line:hover {
    background-color: #05a847;
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn--tel {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn--tel:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn--sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn--lg {
    padding: 18px 36px;
    font-size: 1.05rem;
}

/* ===========================
   Cards
   =========================== */
.card {
    background-color: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.card__icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.card__title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.card__text {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Grid */
.grid {
    display: grid;
    gap: 30px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ===========================
   Company Info Table
   =========================== */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.info-table th,
.info-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-gray-light);
    text-align: left;
    vertical-align: top;
}

.info-table th {
    width: 200px;
    background-color: var(--color-beige);
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.9rem;
}

.info-table td {
    font-size: 0.95rem;
}

/* ===========================
   Profile Section
   =========================== */
.profile {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.profile__image {
    flex-shrink: 0;
    width: 280px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.profile__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.profile__content {
    flex: 1;
}

.profile__name {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.profile__role {
    color: var(--color-gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* ===========================
   Service List
   =========================== */
.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-gray-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-list li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ===========================
   CTA Section
   =========================== */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    padding: 60px 0;
    text-align: center;
}

.cta-section__title {
    color: var(--color-white);
    margin-bottom: 15px;
}

.cta-section__text {
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-section__buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ===========================
   Contact Info Bar
   =========================== */
.contact-bar {
    background-color: var(--color-beige);
    padding: 20px 0;
    text-align: center;
}

.contact-bar__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-bar__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.contact-bar__item strong {
    color: var(--color-primary);
}

/* ===========================
   Footer
   =========================== */
.site-footer {
    background-color: var(--color-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.site-footer__logo img {
    height: 40px;
    margin-bottom: 15px;
}

.site-footer__company-info {
    font-size: 0.85rem;
    line-height: 2;
}

.site-footer__nav-title {
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.site-footer__nav-list {
    list-style: none;
    padding: 0;
}

.site-footer__nav-list li {
    margin-bottom: 8px;
}

.site-footer__nav-list a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.site-footer__nav-list a:hover {
    color: var(--color-white);
}

.site-footer__sns {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.site-footer__sns a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    transition: var(--transition);
}

.site-footer__sns a:hover {
    background-color: var(--color-secondary);
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===========================
   Page Header
   =========================== */
.page-header {
    margin-top: var(--header-height);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 60px 0;
    text-align: center;
    color: var(--color-white);
}

.page-header__title {
    color: var(--color-white);
    font-size: 2rem;
    margin-bottom: 10px;
}

.page-header__breadcrumb {
    font-size: 0.85rem;
    opacity: 0.8;
}

.page-header__breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.page-header__breadcrumb a:hover {
    color: var(--color-white);
}

/* ===========================
   Blog / News
   =========================== */
.post-list {
    list-style: none;
    padding: 0;
}

.post-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-gray-light);
}

.post-item__date {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: var(--color-gray);
    min-width: 100px;
}

.post-item__category {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 10px;
}

.post-item__title a {
    color: var(--color-text);
    font-weight: 500;
}

.post-item__title a:hover {
    color: var(--color-secondary);
}

/* ===========================
   Contact Form
   =========================== */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.form-group label .required {
    color: #c0392b;
    font-size: 0.8rem;
    margin-left: 5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(44, 95, 138, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ===========================
   LINE CTA
   =========================== */
.line-cta {
    background-color: #f0fff4;
    border: 2px solid #06C755;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
}

.line-cta__title {
    color: #06C755;
    margin-bottom: 10px;
}

.line-cta__qr {
    max-width: 200px;
    margin: 20px auto;
}

/* ===========================
   Fixed Contact Button (Mobile)
   =========================== */
.fixed-contact {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 15px;
    z-index: 999;
}

.fixed-contact__inner {
    display: flex;
    gap: 10px;
}

.fixed-contact__inner .btn {
    flex: 1;
    padding: 12px;
    font-size: 0.8rem;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    
    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    
    :root {
        --header-height: 60px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--color-white);
        box-shadow: var(--shadow);
        padding: 20px;
    }
    
    .main-nav.is-active {
        display: block;
    }
    
    .main-nav__list {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav__item a {
        padding: 12px 15px;
        border-bottom: 1px solid var(--color-gray-light);
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero__title {
        font-size: 1.6rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }
    
    .profile {
        flex-direction: column;
    }
    
    .profile__image {
        width: 100%;
        max-width: 300px;
    }
    
    .info-table th {
        width: 120px;
        padding: 12px;
    }
    
    .info-table td {
        padding: 12px;
    }
    
    .site-footer__inner {
        grid-template-columns: 1fr;
    }
    
    .fixed-contact {
        display: block;
    }
    
    .hero__actions {
        flex-direction: column;
    }
    
    .cta-section__buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-bar__inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .post-item {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }
    
    .hero__title {
        font-size: 1.4rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .card {
        padding: 20px;
    }
}

/* ===========================
   Utility Classes
   =========================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.py-1 { padding-top: 10px; padding-bottom: 10px; }
.py-2 { padding-top: 20px; padding-bottom: 20px; }
.py-3 { padding-top: 30px; padding-bottom: 30px; }
.hidden { display: none; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
