/* ========================================
   MISASA CORPORATION
   Website Renewal - Design Ver.1
======================================== */

:root {
    --navy: #142e4a;
    --blue: #1768a8;
    --white: #ffffff;
    --light: #f4f7fa;
    --text: #263746;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}

/* ヘッダー */

.site-header {
    width: 100%;
    min-height: 100px;
    padding: 20px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
}

.site-logo img {
    display: block;
    width: 230px;
    max-width: 100%;
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.site-nav a {
    color: var(--navy);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
}

.site-nav a:hover {
    color: var(--blue);
}

/* メインビジュアル */

.hero {
    position: relative;
    width: 100%;
    min-height: 650px;
    height: 78vh;
    display: flex;
    align-items: center;
    background: linear-gradient(
        120deg,
        #10283f 0%,
        #174b76 65%,
        #2476ad 100%
    );
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 8%;
    color: var(--white);
}

.hero-label {
    margin: 0 0 28px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: #a9d3f1;
}

.hero h1 {
    margin: 0 0 30px;
    font-size: clamp(34px, 5vw, 72px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.04em;
}

.hero-content > p:last-child {
    font-size: clamp(15px, 1.6vw, 20px);
    letter-spacing: 0.08em;
}

/* コンテンツ */

.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 110px 6%;
}

.content-section h2 {
    margin: 0 0 30px;
    color: var(--navy);
    font-size: clamp(28px, 3vw, 42px);
    letter-spacing: 0.06em;
}

.content-section p {
    font-size: 16px;
}

/* セクション背景 */

#about {
    max-width: none;
    padding-left: max(6%, calc((100% - 1056px) / 2));
    padding-right: max(6%, calc((100% - 1056px) / 2));
    background: var(--light);
}

/* フッター */

.site-footer {
    padding: 35px 6%;
    text-align: center;
    background: var(--navy);
    color: var(--white);
    font-size: 12px;
}

/* スマートフォン */

@media (max-width: 768px) {

    .site-header {
        min-height: 80px;
        padding: 15px 5%;
        flex-wrap: wrap;
        gap: 16px;
    }

    .site-logo img {
        width: 180px;
    }

    .site-nav {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    .site-nav a {
        font-size: 12px;
    }

    .hero {
        min-height: 500px;
        height: 70vh;
    }

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

    .hero-label {
        font-size: 11px;
        letter-spacing: 0.18em;
    }

    .hero h1 {
        font-size: clamp(30px, 7vw, 46px);
    }

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

    .content-section h2 {
        font-size: 28px;
    }
}
/* ========================================
   MISASA Website Renewal Ver.2
   Additional Sections
======================================== */

/* セクション共通 */

.section-heading {
    margin-bottom: 55px;
}

.section-number {
    margin: 0 0 15px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.section-heading h2 {
    margin-bottom: 20px;
}

.section-heading > p:last-child {
    color: #667788;
}

/* 事業紹介 */

.business-section {
    max-width: 1400px;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.business-card {
    display: block;
    overflow: hidden;
    background: #ffffff;
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(15, 40, 65, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.business-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(15, 40, 65, 0.16);
}

.business-card-image {
    width: 100%;
    height: 230px;
    background-color: #d9e3ec;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.business-card:hover .business-card-image {
    transform: scale(1.04);
}

.business-card-content {
    position: relative;
    padding: 26px 28px 30px;
    background: #ffffff;
}

.business-card-content span {
    display: block;
    margin-bottom: 12px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
}

.business-card-content h3 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 22px;
}

.business-card-content p {
    margin: 0;
    color: #8090a0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
}

/* 事業カードの仮背景 */

.stone {
    background-image: url("../images/stone-reference.jpg");
    background-size: cover;
    background-position: center;
}

.cemetery {
    background-image: url("../images/cemetery-reference.jpg");
    background-size: cover;
    background-position: center;
}

.trade {
    background-image: url("../images/trade-reference.jpg");
    background-size: cover;
    background-position: center;
}

.energy {
    background-image: url("../images/energy-reference.jpg");
    background-size: cover;
    background-position: center;
}

.electrical {
    background-image: url("../images/electrical-reference.jpg");
    background-size: cover;
    background-position: center;
}

.exterior {
    background-image: url("../images/exterior-reference.jpg");
    background-size: cover;
    background-position: center;
}

/* 会社紹介 */

.about-section {
    max-width: none;
    background: var(--light);
}

.about-section .section-heading,
.about-content {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.about-lead {
    margin: 0;
    color: var(--navy);
    font-size: clamp(28px, 3.5vw, 48px) !important;
    font-weight: 700;
    line-height: 1.5;
}

.about-content > p:not(.about-lead) {
    max-width: 680px;
    line-height: 2.2;
}

.outline-button {
    display: inline-block;
    margin-top: 15px;
    padding: 16px 34px;
    border: 1px solid var(--navy);
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.outline-button:hover {
    background: var(--navy);
    color: #ffffff;
}

/* お知らせ */

.news-list {
    border-top: 1px solid #dce3ea;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px 10px;
    border-bottom: 1px solid #dce3ea;
}

.news-date {
    min-width: 90px;
    color: #718293;
    font-size: 14px;
}

.news-category {
    padding: 5px 14px;
    background: #eaf2f9;
    color: var(--blue);
    font-size: 12px;
    white-space: nowrap;
}

.news-item p {
    margin: 0;
    font-size: 15px;
}

/* お問い合わせ */

.contact-section {
    padding: 100px 6%;
    background: linear-gradient(120deg, #10283f, #174b76);
    color: #ffffff;
}

.contact-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-section .section-number {
    color: #a9d3f1;
}

.contact-section h2 {
    margin: 0 0 20px;
    font-size: clamp(32px, 4vw, 52px);
}

.contact-section p {
    margin-bottom: 35px;
}

.contact-button {
    display: inline-block;
    padding: 18px 38px;
    background: #ffffff;
    color: var(--navy);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
}

.contact-button:hover {
    background: #dcecf8;
    transform: translateY(-3px);
}

/* タブレット */

@media (max-width: 1024px) {
    .business-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-nav {
        gap: 20px;
    }
}

/* スマートフォン */

@media (max-width: 600px) {
    .business-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .business-card-image {
        height: 210px;
    }

    .business-card-content {
        padding: 22px;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .news-item {
        flex-wrap: wrap;
        gap: 12px;
        padding: 22px 5px;
    }

    .news-item p {
        flex-basis: 100%;
    }

    .contact-section {
        padding: 75px 6%;
    }

    .contact-button {
        width: 100%;
        text-align: center;
    }
}

/* 動きを抑える設定を尊重 */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .business-card,
    .business-card-image,
    .outline-button,
    .contact-button {
        transition: none;
    }
}

