/*
Theme Name: Sanrock
Theme URI: https://sanrock36.com
Author: Sanrock
Author URI: https://sanrock36.com
Description: 建築物点検・検査専門サイト用のクリーンでモダンなWordPressテーマ
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: sanrock
Tags: business, corporate, clean, minimal, responsive
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    line-height: 1.75;
    background-color: #fff;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0);
    transition: background-color 0.3s;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 80px;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    text-decoration: none;
}

header.scrolled .logo {
    color: #4A90B8;
}

.nav-links {
    display: flex;
    gap: 56px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    font-size: 14px;
    transition: color 0.3s;
}

header.scrolled .nav-links a {
    color: #666;
}

header.scrolled .nav-links a:hover {
    color: #4A90B8;
}

.hero {
    margin-top: 0;
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    padding: 0 40px;
    z-index: 1;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 32px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 48px;
}

.card-grid-section {
    max-width: 1600px;
    margin: 100px auto;
    padding: 0 80px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.info-card {
    display: block;
    text-decoration: none;
    background: #F0F7FB;
    overflow: hidden;
    transition: all 0.4s;
}

.info-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(74, 144, 184, 0.15);
}

.card-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #B8D9ED 0%, #9BC9E3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.card-content {
    padding: 40px 32px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #4A90B8;
    margin-bottom: 16px;
}

.card-text {
    font-size: 14px;
    color: #666;
    line-height: 1.9;
}

.services-list {
    max-width: 1600px;
    margin: 120px auto;
    padding: 0 80px;
}

.section-title {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #4A90B8;
    margin-bottom: 24px;
}

.section-heading {
    font-size: 36px;
    font-weight: 600;
    color: #333;
    margin-bottom: 80px;
}

.service-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.service-item {
    padding: 48px 0;
    border-top: 1px solid #D6E9F5;
}

.service-item:hover {
    border-top-color: #4A90B8;
}

.service-item h3 {
    font-size: 22px;
    font-weight: 600;
    color: #4A90B8;
    margin-bottom: 20px;
}

.service-item p {
    font-size: 15px;
    color: #666;
    line-height: 1.9;
}

.stats-section {
    background: #F0F7FB;
    padding: 120px 80px;
}

.stats-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 80px;
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-size: 64px;
    font-weight: 700;
    color: #4A90B8;
    line-height: 1;
    margin-bottom: 16px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.cta-banner {
    max-width: 1600px;
    margin: 120px auto;
    padding: 0 80px;
}

.cta-content {
    background: linear-gradient(135deg, #4A90B8 0%, #5BA3C7 100%);
    padding: 100px 80px;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 32px;
}

.cta-content p {
    font-size: 16px;
    margin-bottom: 48px;
}

.cta-button {
    display: inline-block;
    padding: 20px 64px;
    background: white;
    color: #4A90B8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.news-section {
    max-width: 1600px;
    margin: 120px auto;
    padding: 0 80px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.news-card {
    text-decoration: none;
    display: block;
}

.news-image {
    width: 100%;
    height: 240px;
    background: #B8D9ED;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.news-date {
    font-size: 12px;
    color: #4A90B8;
    margin-bottom: 12px;
    font-weight: 600;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.news-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

footer {
    background: #F0F7FB;
    padding: 100px 80px 60px;
    margin-top: 120px;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 100px;
    margin-bottom: 80px;
}

.footer-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #4A90B8;
    margin-bottom: 28px;
}

.footer-section p {
    font-size: 13px;
    color: #666;
    line-height: 1.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 16px;
}

.footer-section a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
}

.footer-section a:hover {
    color: #4A90B8;
}

.footer-bottom {
    text-align: center;
    padding-top: 60px;
    border-top: 1px solid #D6E9F5;
    color: #999;
    font-size: 12px;
}

@media (max-width: 1024px) {
    .cards-grid, .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-items {
        grid-template-columns: 1fr;
    }
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 36px;
    }
    .cards-grid, .stats-container, .news-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
}

/* Contact Form 7 カスタムスタイル */
.wpcf7 .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.wpcf7 .form-group {
    margin-bottom: 0;
}

.wpcf7 .form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.wpcf7 .required {
    color: #ef4444;
    font-size: 0.85rem;
    margin-left: 5px;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.wpcf7 .privacy-check {
    margin: 30px 0;
    padding: 20px;
    background: #f3f4f6;
    border-radius: 8px;
}

.wpcf7 .privacy-check label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: normal;
}

.wpcf7 .privacy-check input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.wpcf7 .privacy-link {
    color: #3b82f6;
    text-decoration: underline;
}

.wpcf7 .submit-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 16px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.wpcf7 .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

.wpcf7 .wpcf7-spinner {
    margin-left: 10px;
}

.wpcf7 .wpcf7-response-output {
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.wpcf7 .wpcf7-mail-sent-ok {
    background: #d1fae5;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.wpcf7 .wpcf7-validation-errors,
.wpcf7 .wpcf7-mail-sent-ng {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.wpcf7 .wpcf7-not-valid-tip {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .wpcf7 .form-row {
        grid-template-columns: 1fr;
    }
}