/* ===================================
   リセットとベーススタイル
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d32f2f;
    --primary-dark: #9a0007;
    --primary-light: #ff6659;
    --secondary-color: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --bg-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--secondary-color);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ===================================
   コンテナ
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   ボタンスタイル
   =================================== */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    width: 100%;
    font-size: 18px;
    padding: 18px;
    cursor: pointer;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
}

/* ===================================
   ヘッダー
   =================================== */
.header {
    background-color: var(--secondary-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 5px 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===================================
   ヒーローセクション
   =================================== */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2));
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-title {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.hero-title-main {
    display: block;
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero-title-sub {
    display: block;
    font-size: 64px;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text {
    color: var(--secondary-color);
    font-size: 20px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* ===================================
   お知らせバー
   =================================== */
.notice-bar {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 15px 0;
    text-align: center;
}

.notice-bar p {
    font-weight: 500;
    font-size: 16px;
}

.notice-bar i {
    margin-right: 10px;
}

/* ===================================
   セクションタイトル
   =================================== */
.section-title {
    margin-bottom: 30px;
}

.section-title.center {
    text-align: center;
}

.section-title.white .section-title-sub,
.section-title.white .section-title-main {
    color: var(--secondary-color);
}

.section-title-sub {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title-main {
    display: block;
    font-size: 36px;
    font-weight: 900;
    color: var(--text-color);
}

.section-description {
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 50px;
    line-height: 1.8;
}

/* ===================================
   会社紹介セクション
   =================================== */
.intro {
    padding: 80px 0;
    background-color: var(--bg-gray);
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-description {
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 20px;
}

.intro-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===================================
   サービスセクション
   =================================== */
.services {
    padding: 80px 0;
}

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

.service-card {
    background-color: var(--secondary-color);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
}

/* ===================================
   強みセクション
   =================================== */
.strength {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.strength-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.strength-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.strength-card:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.strength-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--secondary-color);
    opacity: 0.3;
    margin-bottom: 15px;
}

.strength-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.strength-description {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* ===================================
   施工実績セクション
   =================================== */
.portfolio {
    padding: 80px 0;
    background-color: var(--bg-gray);
}

.portfolio-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    margin-top: 30px;
}

.portfolio-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px;
    color: var(--secondary-color);
}

.portfolio-overlay p {
    font-size: 18px;
    font-weight: 500;
}

/* ===================================
   会社概要セクション
   =================================== */
.about {
    padding: 80px 0;
}

.about-table {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.about-table th,
.about-table td {
    padding: 25px 30px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.about-table th {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 700;
    width: 30%;
}

.about-table td {
    background-color: var(--secondary-color);
    line-height: 1.8;
}

.about-table tr:last-child th,
.about-table tr:last-child td {
    border-bottom: none;
}

/* ===================================
   お問い合わせセクション
   =================================== */
.contact {
    padding: 80px 0;
    background-color: var(--bg-gray);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    padding: 30px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.contact-info-item i {
    font-size: 32px;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-info-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.phone-number {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-info-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
}

.contact-form-wrapper {
    background-color: var(--secondary-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.required {
    color: var(--primary-color);
    font-size: 12px;
    margin-left: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Noto Sans JP', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

/* ===================================
   フッター
   =================================== */
.footer {
    background-color: #222222;
    color: var(--secondary-color);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-info {
    line-height: 1.8;
}

.footer-company {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   ページトップボタン
   =================================== */
.page-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.page-top.visible {
    opacity: 1;
    visibility: visible;
}

.page-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* ===================================
   レスポンシブデザイン
   =================================== */

/* タブレット */
@media (max-width: 992px) {
    .hero-title-main {
        font-size: 36px;
    }
    
    .hero-title-sub {
        font-size: 48px;
    }
    
    .intro-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* スマートフォン */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background-color: var(--secondary-color);
        transition: left 0.3s ease;
        box-shadow: var(--shadow);
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
    
    .nav-list li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-list a {
        display: block;
        padding: 20px 10px;
        font-size: 16px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero {
        height: 500px;
    }
    
    .hero-title-main {
        font-size: 28px;
    }
    
    .hero-title-sub {
        font-size: 36px;
    }
    
    .hero-text {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-title-main {
        font-size: 28px;
    }
    
    .intro {
        padding: 60px 0;
    }
    
    .services {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .strength {
        padding: 60px 0;
    }
    
    .strength-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .strength-card {
        padding: 30px;
    }
    
    .portfolio {
        padding: 60px 0;
    }
    
    .portfolio-image img {
        height: 300px;
    }
    
    .about {
        padding: 60px 0;
    }
    
    .about-table th,
    .about-table td {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    .about-table th {
        width: 35%;
    }
    
    .contact {
        padding: 60px 0;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .phone-number {
        font-size: 24px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 50px;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero-title-main {
        font-size: 24px;
    }
    
    .hero-title-sub {
        font-size: 30px;
    }
    
    .hero-text {
        font-size: 14px;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .section-title-main {
        font-size: 24px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .strength-card {
        padding: 25px 20px;
    }
    
    .page-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
}