/*
Theme Name: Sky Hearts
Theme URI: https://coconala.com/users/3118350
Author: 石山 友大
Author URI: https://coconala.com/users/3118350
Description: スカイハーツの公式WordPressテーマ。住宅のトラブル解決サービスを提供する業者のための専用テーマです。ガラス交換、鍵の修理・交換、蜂の巣駆除、水漏れ修理、屋根修理などのサービスを紹介するための機能を備えています。
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sky-hearts
*/

/*
リセットCSS
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --sky-blue: #87CEEB;
    --dark-blue: #4682B4;
    --light-gray: #f7f9fc;
    --text-color: #333;
    --heading-color: #2c3e50;
}

body {
    color: var(--text-color);
    font-size: 17px;
    line-height: 1.8;
    letter-spacing: 0.03em;
    /* テキストの折り返しをより自然にする設定 */
    overflow-wrap: break-word;
    word-wrap: break-word;
}

a {
    color: var(--dark-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--sky-blue);
}

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

.br-mobile {
    display: none;
}

/* --- Sections --- */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 38px;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
    color: var(--heading-color);
}

/* --- Hero Section --- */
.hero {
    position: relative;
	height: 60vh;
    background: url('http://skyhearts.icu/wp-content/uploads/2025/06/IMG_1128.webp') center center / cover no-repeat;
    text-align: center;
    padding: 100px 20px;
    color: #444; /* 優しいグレー */
    z-index: 0;
    overflow: hidden;
}

/* 明るい半透明の白オーバーレイ */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2); /* 白い半透明オーバーレイ */
    z-index: -1;
}


.hero-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.5;
    color: var(--heading-color);
}

.hero-subtitle {
    font-size: 20px;
    color: #555;
    max-width: 750px;
    margin: 0 auto 30px;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}
.service-item {
    background: linear-gradient(to bottom, #87cefa, #ffffff); /* 青空→白 */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.09);
}

.service-item-icon {
    font-size: 52px;
    color: var(--sky-blue);
    margin-bottom: 25px;
}

.service-item-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--heading-color);
}

/* --- CTA (Call to Action) Section --- */
.cta-section {
    position: relative;
    background: url('http://skyhearts.icu/wp-content/uploads/2025/06/IMG_1129.webp') center center / cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    border-radius: 15px;
    margin: 0 20px;
    overflow: hidden;
    z-index: 0;
}

/* 元のグラデーションをオーバーレイとして薄くかける */
.cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background: linear-gradient(45deg, var(--sky-blue), var(--dark-blue));
    opacity: 0.5; /* お好みで調整可：0.3〜0.6あたりが目安 */
    z-index: -1;
}


.cta-title {
    font-size: 34px;
    margin-bottom: 30px;
    font-weight: 700;
}

.cta-button {
    background-color: #fff;
    color: var(--dark-blue);
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 10px;
}

.cta-button:hover {
    color: var(--dark-blue);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* --- Area Section --- */
.area-section {
    background-color: var(--light-gray);
}

.area-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.area-content p {
    margin-bottom: 20px;
}

/* --- Contact Section --- */
.contact-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    text-align: center;
}

.contact-method a {
    display: block;
    padding: 20px 40px;
    border: 2px solid var(--sky-blue);
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-method a:hover {
    background-color: var(--sky-blue);
    color: #fff;
    transform: translateY(-3px);
}

/* --- Blog Section --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.blog-post-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.09);
}

.blog-post-item .entry-title a {
    font-size: 21px;
    color: var(--heading-color);
}

.blog-post-item .entry-content {
    padding: 25px;
}

/* --- Footer --- */
.site-footer {
    background-color: #2c3e50;
    color: #bdc3c7;
    padding: 60px 0;
    font-size: 16px;
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-info {
    margin-bottom: 20px;
}

.footer-company-name {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.footer-address, .footer-representative {
    margin-bottom: 8px;
    color: #ecf0f1;
}

.footer-copyright {
    text-align: right;
}

/* --- Page Template: Pricing & Portfolio --- */
.page-header {
    background-color: var(--light-gray);
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
}

.page-header .page-title {
    font-size: 42px;
    margin-bottom: 20px;
    text-align: center;
}

.page-nav {
    text-align: center;
}

.page-nav a {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 10px;
    border: 1px solid var(--dark-blue);
    border-radius: 25px;
    color: var(--dark-blue);
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-nav a:hover,
.page-nav a.active {
    background-color: var(--dark-blue);
    color: #fff;
}

.page-content {
    padding-top: 50px;
    padding-bottom: 50px;
}

.price-category {
    margin-bottom: 60px;
}

.price-category-title {
    font-size: 32px;
    color: var(--heading-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--sky-blue);
}

.pricing-table-wrapper {
    overflow-x: auto; /* For responsive tables */
    margin-bottom: 20px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
}

.pricing-table th,
.pricing-table td {
    padding: 15px;
    border: 1px solid #ddd;
    vertical-align: middle;
}

.pricing-table thead {
    background-color: var(--dark-blue);
    color: #fff;
}

.pricing-table th {
    font-weight: 600;
}

.pricing-table tbody tr:nth-child(even) {
    background-color: var(--light-gray);
}

.pricing-table tbody tr:hover {
    background-color: #e9f7fb; /* Light sky blue */
}

.price-notes {
    background-color: #fffbe6;
    border-left: 5px solid #ffc107;
    padding: 20px;
    border-radius: 5px;
    line-height: 1.7;
    margin-top: 20px;
}

.price-notes strong {
    color: var(--heading-color);
    display: block;
    margin-bottom: 5px;
}

/* --- Portfolio Section --- */
.portfolio-category-title {
    font-size: 32px;
    color: var(--heading-color);
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--sky-blue);
}

.portfolio-grid {
    display: grid;
    gap: 40px;
}

.portfolio-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.portfolio-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.portfolio-swiper {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.portfolio-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Swiper Navigation/Pagination Colors */
.portfolio-swiper .swiper-button-next, 
.portfolio-swiper .swiper-button-prev {
    color: var(--sky-blue);
}

.portfolio-swiper .swiper-pagination-bullet-active {
    background: var(--sky-blue);
}

.image-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
}

.portfolio-description {
    padding: 25px;
}

.portfolio-description h4 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.portfolio-description p {
    margin-bottom: 10px;
}

.portfolio-description p:last-child {
    margin-bottom: 0;
}

.portfolio-notes {
    background-color: #e9f7fb;
    border-left: 5px solid var(--sky-blue);
    padding: 20px;
    border-radius: 5px;
    line-height: 1.7;
    margin-top: 40px;
}

.portfolio-notes strong {
    color: var(--heading-color);
    display: block;
    margin-bottom: 5px;
}

/* --- 404 Page --- */
.error-404 {
    text-align: center;
    padding: 120px 0;
}

.error-404 .page-title {
    font-size: 120px;
    font-weight: 700;
    color: var(--sky-blue);
    margin-bottom: 20px;
    line-height: 1;
}

.error-404 .not-found-message {
    font-size: 28px;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 15px;
}

.error-404 .not-found-description {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .section-title { font-size: 34px; }
    .hero-title { font-size: 36px; }
}

@media (max-width: 768px) {
    body { font-size: 16px; }
    .section { padding: 80px 0; }
    .section-title { font-size: 30px; margin-bottom: 40px; }
    .hero { padding: 100px 20px; }
    .hero-title {
        font-size: 28px;
        line-height: 1.5;
    }
    .br-mobile {
        display: block;
    }
    .hero-subtitle { font-size: 18px; }
    .cta-section { margin: 0; border-radius: 0; }
    .cta-title { font-size: 28px; }

    .portfolio-description h4 {
        font-size: 20px;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-copyright {
        margin-top: 25px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-title { font-size: 24px; }
    .cta-title { font-size: 24px; }
    .services-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .contact-methods { flex-direction: column; gap: 20px; }
    .cta-button {
        padding: 14px 30px;
        font-size: 16px;
    }
}

@media (max-width: 420px) {
    .hero-title { font-size: 22px; }
    .cta-title { font-size: 22px; }
}

/*--------------------------------------------------------------
# Single Post
--------------------------------------------------------------*/
.entry {
    padding: 40px 0;
}

.entry-header {
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.entry-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.entry-meta {
    font-size: 14px;
    color: #777;
}

.entry-meta span {
    margin: 0 10px;
}

.entry-meta a {
    color: #777;
    text-decoration: none;
}

.entry-meta a:hover {
    color: var(--sky-blue);
}

.entry-content {
    font-size: 17px;
    line-height: 1.8;
    padding: 20px 0;
    max-width: 800px; /* 読みやすいように最大幅を設定 */
    margin-left: auto;
    margin-right: auto;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.5;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.entry-content blockquote {
    border-left: 4px solid var(--sky-blue);
    padding: 10px 20px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
    background-color: #f9f9f9;
    border-radius: 0 8px 8px 0;
}

.entry-footer {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.post-navigation a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    max-width: 48%;
}

.post-navigation a:hover {
    color: var(--sky-blue);
}


@media (max-width: 768px) {
    .entry-title {
        font-size: 28px;
    }
    .entry-content {
        font-size: 16px;
    }
}

/*--------------------------------------------------------------
# Page General
--------------------------------------------------------------*/
.page-header {
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-content {
    font-size: 17px;
    line-height: 1.8;
    padding: 20px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
/*--------------------------------------------------------------
# Company Page
--------------------------------------------------------------*/
.company-info dl {
    display: grid;
    grid-template-columns: 25% 1fr; /* 2列のグリッドレイアウト */
    border-top: 1px solid #eee;
}

.company-info dl dt,
.company-info dl dd {
    padding: 20px;
    border-bottom: 1px solid #eee;
    margin: 0; /* ブラウザのデフォルトマージンをリセット */
}

.company-info dl dt {
    font-weight: 700;
    background-color: #f9f9f9;
}

/* スマートフォン用の表示 */
@media (max-width: 768px) {
    .company-info dl {
        display: block; /* 1列表示に戻す */
    }
    .company-info dl dt {
        padding-bottom: 5px;
    }
    .company-info dl dd {
        padding-top: 10px;
        padding-bottom: 25px;
    }
}


/*--------------------------------------------------------------
# Service Area Page
--------------------------------------------------------------*/
.service-area-info .area-intro {
    text-align: center;
    margin-bottom: 40px;
}

.service-area-info .area-section {
    margin-bottom: 40px;
}

.service-area-info .area-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 5px solid var(--sky-blue);
}

.service-area-info .area-list {
    margin-bottom: 20px;
    padding-left: 20px;
}

.service-area-info .area-list h3 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 10px;
}

.service-area-info .area-list p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

.service-area-info .area-note {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

/*--------------------------------------------------------------
# Services Page
--------------------------------------------------------------*/
.page-subtitle {
    font-size: 18px;
    margin-top: -10px;
    color: #555;
    line-height: 1.7;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    background-color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #265366;
}

.service-description {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

.service-note {
    grid-column: 1 / -1; /* グリッドの全幅を占める */
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

/*--------------------------------------------------------------
# Custom Contact Form & Thanks Page
--------------------------------------------------------------*/
.contact-intro {
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.8;
}

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

.skyhearts-contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #333;
}

.skyhearts-contact-form .required {
    color: var(--sky-blue);
    font-size: 0.9em;
    margin-left: 5px;
}

.skyhearts-contact-form input[type="text"],
.skyhearts-contact-form input[type="email"],
.skyhearts-contact-form input[type="tel"],
.skyhearts-contact-form select,
.skyhearts-contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fff;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.skyhearts-contact-form input:focus,
.skyhearts-contact-form select:focus,
.skyhearts-contact-form textarea:focus {
    outline: none;
    border-color: var(--sky-blue);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.skyhearts-contact-form textarea {
    height: 150px;
    resize: vertical;
}

.skyhearts-contact-form .error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
}

.contact-form-error-summary {
    background-color: #ffebee;
    border: 1px solid #ef9a9a;
    color: #c62828;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.skyhearts-contact-form .form-submit input[type="submit"] {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--sky-blue);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.skyhearts-contact-form .form-submit input[type="submit"]:hover {
    background-color: #2980b9;
}

/* Contact Thanks Page */
.contact-thanks-content {
    text-align: center;
    padding: 40px 0;
}

.contact-thanks-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.contact-thanks-content .back-to-top-link a {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    background-color: var(--sky-blue);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s;
}

.contact-thanks-content .back-to-top-link a:hover {
    background-color: #2980b9;
}