/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", "メイリオ", sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

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

a:hover {
    opacity: 0.7;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー - モバイルファースト */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.header-logo img {
    height: 40px;
}

/* ハンバーガーメニューボタン */
.menu-toggle {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 0;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* モバイルナビゲーション */
.header-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    transition: transform 0.3s;
    opacity: 0;
    visibility: hidden;
}

.header-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.header-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.header-nav li {
    border-bottom: 1px solid #eee;
}

.header-nav a {
    display: block;
    padding: 15px 20px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
}

.header-nav a:active {
    background-color: #f8f8f8;
}

.header-contact {
    display: none;
}

/* メインビジュアル - モバイルファースト */
.hero {
    margin-top: 60px;
    height: 500px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('/images/hero-bg.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.hero-content {
    max-width: 100%;
}

.hero-title {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.4;
}

.hero-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    width: 250px;
    text-align: center;
}

.btn-primary {
    background-color: #0066cc;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,102,204,0.3);
}

.btn-secondary {
    background-color: #fff;
    color: #0066cc;
    border: 2px solid #0066cc;
}

.btn-secondary:hover {
    background-color: #0066cc;
    color: #fff;
}

/* セクション共通 - モバイルファースト */
section {
    padding: 40px 0;
}

.section-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #0066cc;
}

/* 代表メッセージ - モバイルファースト */
.section-message {
    background-color: #f8f8f8;
}

.message-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.message-image {
    max-width: 300px;
    margin: 0 auto 30px;
}

.message-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.message-text h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #0066cc;
}

.message-text p {
    margin-bottom: 15px;
    text-align: left;
}

.message-text .signature {
    text-align: right;
    font-weight: bold;
    margin-top: 30px;
}

/* 会社概要 - モバイルファースト */
.section-about {
    background-color: #fff;
}

.about-table {
    max-width: 800px;
    margin: 0 auto;
    overflow-x: auto;
}

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

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

.about-table th {
    background-color: #f8f8f8;
    font-weight: bold;
    white-space: nowrap;
    width: 30%;
}

.about-table td a {
    color: #0066cc;
}

/* 事業内容 - モバイルファースト */
.services-grid {
    display: grid;
    gap: 30px;
}

.service-item {
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.service-image {
    overflow: hidden;
    border-radius: 8px;
    height: 200px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    margin-bottom: 20px;
}

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

.service-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #0066cc;
}

.service-content p {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    font-size: 14px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #0066cc;
    font-weight: bold;
}

/* 施工実績 */
.section-works {
    background-color: #f8f8f8;
}

.works-description {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

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

.work-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.work-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background-color: #f0f0f0;
}

.work-item p {
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

/* 求人情報 - モバイルファースト */
.section-recruit {
    background-color: #f8f8f8;
}

.recruit-content {
    max-width: 1000px;
    margin: 0 auto;
}

.recruit-message {
    margin-bottom: 40px;
    text-align: center;
}

.recruit-message h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #0066cc;
}

.recruit-message p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.recruit-details h3 {
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.recruit-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.recruit-table th {
    background-color: #f8f8f8;
    font-weight: bold;
    white-space: nowrap;
    width: 35%;
}

.recruit-table td {
    line-height: 1.6;
}

.recruit-cta {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cta-message {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .recruit-message h3 {
        font-size: 28px;
    }
    
    .recruit-details h3 {
        font-size: 24px;
    }
    
    .cta-message {
        font-size: 20px;
    }
}

/* お問い合わせ - モバイルファースト */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    margin-bottom: 40px;
    text-align: center;
}

.contact-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #0066cc;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-tel {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.contact-tel a {
    color: #0066cc;
}

/* フォーム */
.form-contact {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.radio-group input[type="radio"] {
    width: auto;
    margin-right: 5px;
}

.required {
    color: #ff0000;
    font-size: 14px;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #0052a3;
}

/* フッター */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 30px;
}

.footer-info h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-info p {
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-info a {
    color: #fff;
}

.footer-links {
    margin-top: 30px;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ccc;
    font-size: 14px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #999;
    font-size: 12px;
}

/* フローティング電話ボタン - モバイルのみ */
.floating-phone {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #0066cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    z-index: 999;
}

.floating-phone a {
    color: #fff;
    font-size: 24px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%) brightness(100) contrast(100);
}

/* タブレット以上 */
@media (min-width: 768px) {
    .header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 30px;
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .header-logo img {
        height: 50px;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .header-nav {
        display: block;
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
    }
    
    .header-nav ul {
        display: flex;
        gap: 30px;
        list-style: none;
    }
    
    .header-nav li {
        border: none;
    }
    
    .header-nav a {
        font-weight: 500;
        color: #333;
        position: relative;
        padding: 0;
    }
    
    .header-nav a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background-color: #0066cc;
        transition: width 0.3s;
    }
    
    .header-nav a:hover::after {
        width: 100%;
    }
    
    .header-contact {
        display: block;
        text-align: right;
    }
    
    .header-tel {
        font-size: 12px;
        color: #666;
    }
    
    .header-tel-number {
        font-size: 20px;
        font-weight: bold;
        color: #0066cc;
    }
    
    .header-tel-number a {
        color: #0066cc;
    }
    
    .hero {
        margin-top: 80px;
        height: 600px;
    }
    
    .hero-content {
        max-width: 800px;
    }
    
    .hero-title {
        font-size: 48px;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 20px;
        margin-bottom: 40px;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .btn {
        width: auto;
    }
    
    section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 36px;
        margin-bottom: 50px;
        padding-bottom: 20px;
    }
    
    .message-content {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 40px;
        align-items: center;
        text-align: left;
    }
    
    .message-image {
        margin: 0;
    }
    
    .message-text h3 {
        font-size: 24px;
    }
    
    .services-grid {
        gap: 60px;
    }
    
    .service-item {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: center;
        padding: 40px;
    }
    
    .service-item:nth-child(even) .service-image {
        order: 2;
    }
    
    .service-item:nth-child(even) .service-content {
        order: 1;
    }
    
    .service-image {
        height: 300px;
        margin-bottom: 0;
    }
    
    .service-content h3 {
        font-size: 24px;
    }
    
    .service-content p,
    .service-features li {
        font-size: 16px;
    }
    
    .works-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
    
    .work-item img {
        height: 200px;
    }
    
    .work-item p {
        padding: 15px;
        font-size: 16px;
    }
    
    .contact-content {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 50px;
        max-width: 1200px;
    }
    
    .contact-info {
        text-align: left;
    }
    
    .contact-info h3 {
        font-size: 20px;
    }
    
    .contact-tel {
        font-size: 24px;
    }
    
    .form-contact {
        padding: 40px;
    }
    
    .form-group {
        margin-bottom: 25px;
    }
    
    .radio-group {
        flex-direction: row;
        gap: 20px;
    }
    
    .footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        margin-bottom: 40px;
    }
    
    .footer-info h3 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .footer-info p {
        margin-bottom: 10px;
        font-size: 16px;
    }
    
    .footer-links {
        margin-top: 0;
    }
    
    .footer-links h4 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .footer-links li {
        margin-bottom: 10px;
    }
    
    .footer-links a {
        font-size: 16px;
    }
    
    .footer-bottom {
        font-size: 14px;
    }
    
    .floating-phone {
        display: none;
    }
}