
/* =========================
   基本設定
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Meiryo", "Noto Sans JP", sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.8;
}

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

/* =========================
   ヘッダー
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    
    min-height: 90px;
    padding: 15px 5%;
    background: #111;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    border-bottom: 3px solid #b99a52;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
    white-space: nowrap;
}

.logo span {
    font-size: 23px;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo small {
    color: #c3a45c;
    font-size: 10px;
    letter-spacing: 3px;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 25px;
}

.main-nav a {
    font-size: 12px;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #c3a45c;
}

/* =========================
   メイン写真
========================= */

.hero {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #111;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0.55;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.05)
    );
}

.hero-text {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    color: white;
    max-width: 700px;
}

.hero-subtitle {
    color: #d2b36c;
    letter-spacing: 4px;
    font-size: 14px;
}

.hero-text h1 {
    font-size: 42px;
    line-height: 1.6;
    margin: 15px 0 20px;
    white-space: pre-line;
}

.hero-text p {
    font-size: 17px;
}

[data-site-field] {
    white-space: pre-line;
}

/* =========================
   各セクション
========================= */

.content-section {
    padding: 90px 8%;
    text-align: center;
}

.section-en {
    color: #ad8c43;
    font-size: 13px;
    letter-spacing: 4px;
    font-weight: bold;
    margin-bottom: 5px;
}

.content-section h2 {
    font-size: 30px;
    color: #222;
    margin: 0 0 30px;
}

.content-section > p:not(.section-en) {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================
   サービス紹介
========================= */

.service-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 45px;
}

.service-item {
    padding: 35px 25px;
    background: #f5f5f5;
    border-bottom: 3px solid #b99a52;
    text-align: left;
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h3 {
    font-size: 19px;
    color: #222;
}

.service-item p {
    font-size: 14px;
}

/* =========================
   パートナー募集
========================= */

.partner-section {
    background: #171717;
    color: #fff;
}

.partner-section h2 {
    color: #fff;
}

.partner-section .section-en {
    color: #d2b36c;
}

.partner-section p {
    color: #ddd;
}

/* =========================
   お問い合わせ
========================= */

.contact-section {
    background: #f5f5f5;
}

/* =========================
   フッター
========================= */

.site-footer {
    padding: 40px 20px;
    background: #111;
    color: #fff;
    text-align: center;
    border-top: 3px solid #b99a52;
}

.site-footer p {
    letter-spacing: 3px;
    font-weight: bold;
}

.site-footer small {
    color: #aaa;
}

/* =========================
   スマートフォン対応
========================= */

@media (max-width: 768px) {

    .site-header {
        flex-direction: column;
        padding: 20px 10px;
        gap: 15px;
    }

    .logo {
        text-align: center;
    }

    .logo span {
        font-size: 20px;
    }

    .main-nav {
        justify-content: center;
        gap: 12px 18px;
    }

    .main-nav a {
        font-size: 11px;
    }

    .hero {
        height: 480px;
    }

    .hero-text {
        left: 7%;
        right: 7%;
    }

    .hero-text h1 {
        font-size: 29px;
    }

    .hero-text p {
        font-size: 14px;
    }

    .content-section {
        padding: 60px 6%;
    }

    .content-section h2 {
        font-size: 25px;
    }

    .service-list {
        grid-template-columns: 1fr;
    }
}

/* =========================
   整備ブログ
========================= */

.blog-section {
    background: #f5f5f5;
}

.blog-intro {
    margin-bottom: 45px;
}

.blog-list {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
}

.blog-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #b99a52;
    transition: box-shadow 0.3s;
}

.blog-card:hover {
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);
}

.blog-category {
    width: 190px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #947638;
    font-size: 13px;
    font-weight: bold;
    background: #faf9f6;
}

.blog-content {
    padding: 20px 25px;
}

.blog-content h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #222;
}

.blog-content p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* スマートフォン対応 */

@media (max-width: 768px) {

    .blog-section {
        padding: 55px 5%;
    }

    .blog-list {
        gap: 14px;
    }

    .blog-card {
        display: block;
    }

    .blog-category {
        width: 100%;
        justify-content: flex-start;
        padding: 10px 15px;
        font-size: 12px;
    }

    .blog-content {
        padding: 15px;
    }

    .blog-content h3 {
        font-size: 16px;
        line-height: 1.6;
    }

    .blog-content p {
        font-size: 14px;
        line-height: 1.8;
    }
}

/* =========================
   整備情報メニュー
========================= */

.info-list {
    max-width: 950px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 24px 28px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #b99a52;
    transition: 0.3s;
}

.info-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);
}

.info-number {
    color: #b99a52;
    font-size: 24px;
    font-weight: bold;
}

.info-card h3 {
    margin: 0 0 5px;
    font-size: 18px;
    color: #222;
}

.info-card p {
    margin: 0;
    font-size: 14px;
    color: #777;
}

.info-arrow {
    margin-left: auto;
    font-size: 30px;
    color: #b99a52;
}

/* 詳細説明 */

.info-detail {
    padding: 70px 8%;
    text-align: center;
    border-bottom: 1px solid #eee;
    scroll-margin-top: 110px;
}

.info-detail h2 {
    font-size: 28px;
}

.info-detail p:not(.section-en) {
    max-width: 800px;
    margin: 15px auto;
}

.partner-detail {
    background: #171717;
    color: #fff;
}

.partner-detail h2 {
    color: #fff;
}

.partner-detail .section-en {
    color: #d2b36c;
}

/* Google MAP */

.map-container {
    max-width: 1100px;
    margin: 35px auto 0;
    overflow: hidden;
    border: 1px solid #ddd;
}

.map-container iframe {
    display: block;
}

/* スマートフォン対応 */

@media (max-width: 768px) {

    .info-list {
        margin-top: 25px;
        gap: 12px;
    }

    .info-card {
        padding: 18px 14px;
        gap: 12px;
    }

    .info-number {
        font-size: 19px;
    }

    .info-card h3 {
        font-size: 15px;
        line-height: 1.6;
    }

    .info-card p {
        font-size: 12px;
        line-height: 1.6;
    }

    .info-arrow {
        font-size: 24px;
    }

    .info-detail {
        padding: 50px 6%;
        scroll-margin-top: 100px;
    }

    .info-detail h2 {
        font-size: 23px;
    }

    .map-container iframe {
        height: 320px;
    }
}


/* =========================
   整備事例ブログ（投稿用レイアウト）
   ========================= */

.blog-posts-section {
    background: #f5f5f5;
}

.blog-post-list {
    max-width: 1000px;
    margin: 38px auto 0;
    text-align: left;
}

.blog-post-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    background: #fff;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #b99a52;
    overflow: hidden;
}

.blog-post-image {
    display: block;
    min-height: 220px;
    overflow: hidden;
    background: #ddd;
}

.blog-post-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-post-image:hover img {
    transform: scale(1.04);
}

.blog-post-body {
    padding: 25px 30px;
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 15px;
    margin-bottom: 10px;
    color: #8b733e;
    font-size: 12px;
}

.blog-post-meta span {
    padding: 3px 9px;
    background: #f5f1e7;
    border-radius: 2px;
}

.blog-post-body h3 {
    margin: 0 0 12px;
    color: #222;
    font-size: 20px;
    line-height: 1.6;
}

.blog-post-body h3 a:hover {
    color: #9b7b35;
}

.blog-post-body p {
    margin: 0 0 18px;
    color: #666;
    font-size: 14px;
    line-height: 1.9;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #947638;
    font-size: 13px;
    font-weight: bold;
}

.blog-read-more span {
    font-size: 23px;
    line-height: 1;
}

.blog-article-detail {
    max-width: 900px;
    margin: 65px auto 0;
    padding: 45px;
    background: #fff;
    border: 1px solid #e5e5e5;
    text-align: left;
    scroll-margin-top: 110px;
}

.blog-article-heading {
    margin-bottom: 25px;
}

.blog-article-heading h3 {
    margin: 5px 0 12px;
    color: #222;
    font-size: 25px;
    line-height: 1.6;
}

.blog-article-main-image {
    display: block;
    width: 100%;
    max-height: 430px;
    object-fit: cover;
    margin: 0 auto 28px;
}

.blog-article-text {
    max-width: 720px;
    margin: 0 auto;
    color: #444;
    text-align: left;
}

.blog-article-text h4 {
    margin: 28px 0 8px;
    padding-left: 12px;
    border-left: 3px solid #b99a52;
    color: #222;
    font-size: 17px;
}

.blog-article-text p {
    line-height: 2;
}

.blog-article-text .sample-note {
    margin-top: 30px;
    padding: 12px 15px;
    background: #f7f4ed;
    color: #806b3b;
    font-size: 12px;
}

@media (max-width: 768px) {
    .blog-post-list {
        margin-top: 25px;
    }

    .blog-post-card {
        display: block;
    }

    .blog-post-image,
    .blog-post-image img {
        min-height: 0;
        height: 210px;
    }

    .blog-post-body {
        padding: 20px 18px;
    }

    .blog-post-body h3 {
        font-size: 17px;
    }

    .blog-article-detail {
        margin-top: 38px;
        padding: 25px 18px;
        scroll-margin-top: 100px;
    }

    .blog-article-heading h3 {
        font-size: 20px;
    }

    .blog-article-main-image {
        max-height: 260px;
    }
}


/* =========================
   お問い合わせフォーム
========================= */
.contact-form {
    max-width: 750px;
    margin: 40px auto 0;
    padding: 35px;
    background: #fff;
    border: 1px solid #e5e5e5;
    text-align: left;
}
.form-group { margin-bottom: 25px; }
.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
}
.form-group input,
.form-group textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font: inherit;
    font-size: 16px;
}
.form-group textarea {
    min-height: 240px;
    resize: vertical;
    line-height: 1.8;
}
.contact-submit {
    display: block;
    width: 220px;
    margin: 30px auto 0;
    padding: 15px;
    border: 0;
    background: #b99a52;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}
.contact-submit:hover { background: #987b3e; }
.contact-note {
    max-width: 750px;
    margin: 15px auto 0;
    color: #777;
    font-size: 12px;
    text-align: left;
}

/* 記事ページ */
.article-page { background: #f5f5f5; }
.article-page-main { min-height: 60vh; padding: 65px 6%; }
.article-page-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 45px;
    background: #fff;
    border: 1px solid #e5e5e5;
}
.article-page-card > h1 {
    margin: 0 0 15px;
    color: #222;
    font-size: 30px;
    line-height: 1.6;
}
.article-page-card .blog-article-text {
    max-width: 100%;
}
.article-page-card .blog-article-text figure {
    margin: 24px 0;
}
.blog-empty-message {
    padding: 25px;
    color: #666;
    text-align: center;
}
.article-back {
    display: inline-block;
    margin-top: 35px;
    color: #947638;
    font-weight: bold;
}
@media (max-width: 768px) {
    .contact-form { padding: 22px 16px; }
    .form-group textarea { min-height: 220px; }
    .contact-submit { width: 100%; }
    .article-page-main { padding: 40px 5%; }
    .article-page-card { padding: 25px 18px; }
    .article-page-card > h1 { font-size: 23px; }
}

/* ヘッダーロゴ */
.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo img {
    width: 360px;
    max-width: 35vw;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
}
