/* === 初期設定・基本スタイル === */
:root {
    --primary-color: #005A9C;
    --secondary-color: #00BFFF;
    --accent-color: #FF8C00;
    --text-color: #333;
    --background-color: #FFFFFF;
    --light-gray-bg: #f7f7f7;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.7;
    font-size: 16px;
}
/* JSでメニューを開いた時に背景を固定 */
body.nav-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

.section-container {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    margin-top: -30px;
    margin-bottom: 40px;
}

.bg-light {
    background-color: var(--light-gray-bg);
}

.view-more-button {
    display: block;
    width: 280px;
    margin: 40px auto 0;
    padding: 15px;
    text-align: center;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    font-weight: bold;
}


/* === ヘッダー === */
.header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo img {
    height: 40px;
}


/* === ハンバーガーメニュー（スマホ用） === */
.hamburger-menu {
    display: block;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1500;
}
.hamburger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 6px auto;
    transition: all 0.3s;
}
/* ハンバーガーメニュー OPEN時 */
body.nav-open .hamburger-menu span:nth-of-type(1) {
    transform: translateY(9px) rotate(45deg);
}
body.nav-open .hamburger-menu span:nth-of-type(2) {
    opacity: 0;
}
body.nav-open .hamburger-menu span:nth-of-type(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* === ナビゲーション === */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1400;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}
/* ナビゲーション OPEN時 */
body.nav-open .header-nav {
    visibility: visible;
    opacity: 1;
}
.header-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}
.header-nav li {
    margin-bottom: 20px;
}
.header-nav a {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}
.nav-contact-button {
    background-color: var(--accent-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
}


/* === トップページセクション === */
#hero {
    height: 60vh;
    background: url('../images/hero-background.jpg') center center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 20px;
    position: relative;
}
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}
.hero-text {
    position: relative;
    z-index: 1;
}
.hero-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: bold;
}
.hero-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 30px;
}
.strength-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.strength-item {
    text-align: center;
}
.strength-item h3 {
    color: var(--primary-color);
}
.price-table {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.price-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background-color: #fff;
    position: relative;
}
.price-card.recommended {
    border: 2px solid var(--accent-color);
}
.recommended-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}
.price-tag {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}
.price-tag span {
    font-size: 1rem;
}
.price-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}
.price-card ul {
    list-style-type: none; /* 元のリストマーカーを消します */
    padding-left: 0; /* 左の余白をリセットします */
    text-align: left;
    margin: 0;
}

.price-card ul li {
    padding-left: 1.5em; /* チェックマークが入るスペースを作ります */
    text-indent: -1.5em; /* 2行目以降の行頭を揃えます */
    margin-bottom: 8px; /* 行間の調整 */
}

.price-card ul li::before {
    content: '\2714'; /* チェックマークを文字コードで指定 */
    color: var(--accent-color); /* 色を付けます */
    margin-right: 0.5em; /* チェックマークと文字の間の余白 */
    font-weight: bold;
}

/* 施工事例グリッド調整 */
.works-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.works-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    /* 縦横比を3:2で固定。画像の元サイズに関わらず高さを統一 */
    aspect-ratio: 3 / 2;
    background-color: #eee;
}
.works-item img {
    width: 100%;
    height: 100%;
    /* 枠に合わせて画像をトリミング。歪みを防ぐ */
    object-fit: cover;
    transition: transform 0.3s;
}
.works-item:hover img {
    transform: scale(1.1);
}
.works-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 90, 156, 0.8);
    color: #fff;
    padding: 15px;
}
.works-caption p {
    margin: 0;
    font-weight: bold;
}
.blog-list {
    border-top: 1px solid #ddd;
}
.blog-item a {
    display: block;
    padding: 20px 10px;
    border-bottom: 1px solid #ddd;
    color: var(--text-color);
}
.blog-item time {
    font-size: 0.9rem;
    color: #666;
    margin-right: 15px;
}


/* === 下層ページ用のスタイル === */
.page-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}
.page-header-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.page-header h1 {
    font-size: 2rem;
    margin: 0;
}
.page-header p {
    margin: 5px 0 0;
    font-size: 1rem;
}
.strength-detail-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 60px;
}
.strength-detail-section:last-of-type {
    margin-bottom: 0;
}
.image-content img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.strength-detail-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}
.strength-detail-title span {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-right: 10px;
    font-weight: bold;
}
.text-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}
.included-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.included-list li {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
}
.works-grid-full {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.voice-item {
    background-color: var(--light-gray-bg);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}
.voice-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.voice-profile img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}
.voice-name {
    font-size: 0.9rem;
    color: #666;
}
.voice-title {
    font-size: 1.3rem;
    margin: 0;
    color: var(--primary-color);
}
.voice-text {
    margin: 0;
}
.company-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
}
.company-table th, .company-table td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: left;
}
.company-table th {
    background-color: var(--light-gray-bg);
    width: 30%;
}
.map-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}
.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.form-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px;
}
.form-table th, .form-table td {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}
.form-table th {
    text-align: left;
    width: 30%;
}
.form-table input[type="text"],
.form-table input[type="email"],
.form-table textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}
.form-table textarea {
    height: 150px;
}
.form-submit-button {
    display: block;
    width: 280px;
    margin: 0 auto;
    padding: 15px;
    border: none;
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
}


/* === 共通パーツ === */
#contact-cta {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
}
#contact-cta .section-title {
    color: #fff;
}
.cta-buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}
.cta-tel-button, .cta-web-button {
    display: block;
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
    width: 100%;
    max-width: 350px;
}
.cta-tel-button {
    background-color: var(--secondary-color);
    color: #fff;
}
.cta-web-button {
    background-color: var(--accent-color);
    color: #fff;
}
.footer {
    background-color: #333;
    color: #eee;
    padding: 40px 20px 0;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.footer-logo img {
    height: 30px;
    margin-bottom: 10px;
}
.footer-info p {
    margin: 0;
    font-size: 0.9rem;
}
.footer-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}
.footer-nav a {
    color: #eee;
    font-size: 0.9rem;
}
.copyright {
    text-align: center;
    font-size: 0.8rem;
    padding: 20px;
    margin-top: 30px;
    border-top: 1px solid #555;
}


/* ======================================= */
/* === レスポンシブデザイン（PC表示） === */
/* ======================================= */
/* ★変更点：レイアウトが崩れないよう、PC表示に切り替わる画面幅を768pxから1024pxに変更 */
@media (min-width: 1024px) {
    body {
        font-size: 17px;
    }

    /* ヘッダー */
    .hamburger-menu {
        display: none;
    }
    .header-nav {
        display: block;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        visibility: visible;
        opacity: 1;
        display: flex;
        align-items: center;
    }
    .header-nav ul {
        display: flex;
        /* ★変更点：窮屈さを解消するため、項目間の余白を20pxから18pxに少し詰める */
        gap: 18px; 
    }
    .header-nav li {
        margin-bottom: 0;
    }
    .header-nav a {
        font-size: 1rem;
    }
    #hero {
        height: 80vh;
    }
    .hero-text h2 {
        font-size: 3rem;
    }
    .strength-grid, .works-grid, .works-grid-full {
        grid-template-columns: repeat(3, 1fr);
    }
    .price-table {
        grid-template-columns: repeat(2, 1fr);
    }
    .price-card {
        padding: 40px 30px;
    }
    .strength-detail-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
    .strength-detail-section:nth-of-type(even) .image-content {
        order: 2;
    }
    .strength-detail-section:nth-of-type(even) .text-content {
        order: 1;
    }
    .included-list {
        grid-template-columns: repeat(4, 1fr);
    }
    .voice-item {
        padding: 30px;
    }
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
    .cta-tel-button, .cta-web-button {
        width: 300px;
    }
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ======================================= */
/* === ブログ詳細ページ用のスタイル === */
/* ======================================= */
.blog-single-content {
    max-width: 800px;
    margin: 0 auto;
}

.post-title {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.4;
    color: var(--primary-color);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #666;
}

.post-category {
    background-color: var(--primary-color);
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.post-eyecatch {
    margin-bottom: 40px;
}

.post-eyecatch img {
    border-radius: 8px;
    width: 100%;
}

.post-content h3 {
    font-size: 1.6rem;
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    color: var(--primary-color);
}

.post-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.post-content ul,
.post-content ol {
    background-color: #f7f7f7;
    padding: 20px 20px 20px 40px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.post-content ul li,
.post-content ol li {
    margin-bottom: 10px;
}

.post-content ul li:last-child,
.post-content ol li:last-child {
    margin-bottom: 0;
}

.post-content blockquote {
    margin: 30px 0;
    padding: 20px;
    border-left: 5px solid var(--accent-color);
    background-color: var(--light-gray-bg);
}

.post-content blockquote p {
    margin-bottom: 0;
}

.post-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    border-top: 1px solid #ddd;
    padding-top: 30px;
}

.post-pagination a {
    color: var(--primary-color);
    font-weight: bold;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.post-pagination a:hover {
    background-color: var(--light-gray-bg);
    opacity: 1;
}

@media (max-width: 600px) {
    .post-title {
        font-size: 1.5rem;
    }
    .post-content h3 {
        font-size: 1.3rem;
    }
}

/* スマホでの施工事例パネルのサイズ最適化 */
@media (max-width: 1023px) {
    .works-grid {
        max-width: 480px; /* 横に広がりすぎないよう制限 */
        margin-left: auto;
        margin-right: auto;
    }
}