/* CSS Variables */
:root {
    --color-primary: #1C3B6E; /* 信頼感のある紺色 */
    --color-text: #333333;
    --color-bg-gray: #F5F7FA;
    --color-white: #FFFFFF;
    --color-accent: #E63946; /* お問い合わせなどに使うアクセントカラー */
    
    --font-main: 'Zen Kaku Gothic New', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-white);
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

/* Typography */
.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.left-align {
    text-align: left;
}

.section-lead {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Layout */
.section {
    padding: 5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bg-gray {
    background-color: var(--color-bg-gray);
    max-width: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
}

.gnav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.gnav a {
    font-weight: 700;
    transition: color 0.3s;
}

.gnav a:hover {
    color: var(--color-primary);
}

.btn-header-contact {
    background-color: var(--color-accent);
    color: var(--color-white) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 900;
}

.btn-header-contact:hover {
    opacity: 0.9;
}

/* Hero Section */
.hero {
    margin-top: 70px; /* ヘッダ高さを考慮 */
    padding: 0;
    max-width: none;
}

.hero-image {
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 59, 110, 0.5); /* 紺色のオーバーレイで文字を読みやすく */
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-white);
}

.hero-copy {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-sub {
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* About / Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 5px solid var(--color-primary);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 900;
}

/* Services */
.services .section-title {
    padding-top: 5rem;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 5rem;
}

.card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* ダミー画像代わりの背景色とプレースホルダー */
.card-image {
    height: 200px;
    background-color: #ddd;
}
.bg-interior { background: linear-gradient(45deg, #e3f2fd, #bbdefb); }
.bg-exterior { background: linear-gradient(45deg, #fff3e0, #ffe0b2); }
.bg-water    { background: linear-gradient(45deg, #e0f7fa, #b2ebf2); }

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Works (Instagram) */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

/* インスタ埋め込み枠のダミー */
.insta-item {
    aspect-ratio: 1 / 1;
    background-color: var(--color-bg-gray);
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.insta-item::after {
    content: "Instagram Post";
    color: #999;
    font-weight: bold;
}

/* Company */
.company .section-title {
    padding-top: 5rem;
}
.company-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 5rem;
}

.greeting-text {
    margin-bottom: 2rem;
}

.greeting-name {
    text-align: right;
    font-weight: 700;
    font-size: 1.2rem;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th, .info-table td {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.info-table th {
    width: 30%;
    font-weight: 900;
    color: var(--color-primary);
}

/* Contact */
.contact-lead {
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.contact-methods {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-tel {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tel-label {
    font-weight: 700;
    margin-bottom: 1rem;
}

.tel-number {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    display: inline-block;
}

.tel-time {
    font-size: 0.9rem;
}

.contact-form {
    background: var(--color-bg-gray);
    padding: 2.5rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.required {
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

textarea {
    resize: vertical;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background: #152b50;
}

/* Footer */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 2rem;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.copyright {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        padding: 1rem;
    }
    .gnav ul {
        margin-top: 1rem;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-copy {
        font-size: 2rem;
    }
    
    .company-inner,
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .tel-number {
        font-size: 1.8rem;
    }
}
