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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    z-index: 50;
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    width: 2.5rem;
    height: 2.5rem;
}

@media (min-width: 640px) {
    .logo {
        width: 3rem;
        height: 3rem;
    }
}

.company-name {
    font-size: 1.25rem;
    font-weight: bold;
    color: #2563eb;
}

/* デスクトップナビゲーション */
.desktop-nav {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-link {
    background: none;
    border: none;
    color: #374151;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #2563eb;
}

/* モバイルメニューボタン */
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: #374151;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* モバイルナビゲーション */
.mobile-nav {
    display: none;
    flex-direction: column;
    padding-bottom: 1rem;
    gap: 0.5rem;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav-link {
    background: none;
    border: none;
    color: #374151;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem 0;
    text-align: left;
    width: 100%;
    transition: color 0.2s;
}

.mobile-nav-link:hover {
    color: #2563eb;
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none !important;
    }
}

/* メインコンテンツ */
.main-content {
    padding-top: 72px;
}

/* ヒーローセクション */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: #1e3a8a;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #ffffff;
    padding: 0 1rem;
}

.hero-title {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* セクション共通スタイル */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 1.875rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-subtitle {
    color: #4b5563;
    font-size: 1.125rem;
}

/* 事業内容セクション */
.services {
    padding: 5rem 0;
    background-color: #f9fafb;
}

.services .container {
    max-width: 1152px;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.service-card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.service-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
    .service-card {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-image-wrapper {
    height: 16rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .service-image-wrapper {
        height: auto;
    }
}

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

.service-content {
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .service-content {
        padding: 2.5rem;
    }
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2563eb;
}

@media (min-width: 768px) {
    .service-title {
        font-size: 1.875rem;
    }
}

.service-description {
    color: #374151;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.service-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-details li {
    color: #4b5563;
    line-height: 1.625;
    display: flex;
    align-items: flex-start;
}

.service-details .bullet {
    color: #2563eb;
    margin-right: 0.5rem;
    margin-top: 0.375rem;
    flex-shrink: 0;
}

/* 会社概要セクション */
.company {
    padding: 5rem 0;
    background-color: #ffffff;
}

.company-table-wrapper {
    max-width: 896px;
    margin: 0 auto;
}

.company-table {
    width: 100%;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.company-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

.company-table tbody tr:last-child {
    border-bottom: none;
}

.table-label {
    padding: 1rem 1.5rem;
    background-color: #eff6ff;
    font-weight: 600;
    width: 33.333333%;
    vertical-align: top;
}

.table-value {
    padding: 1rem 1.5rem;
    vertical-align: top;
}

/* アクセスセクション */
.access {
    padding: 5rem 0;
    background-color: #f9fafb;
}

.access-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .access-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

.access-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.access-item {
    margin-bottom: 1.5rem;
}

.access-item > div:first-child {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    color: #2563eb;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.icon {
    width: 100%;
    height: 100%;
}

.access-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.access-text {
    color: #374151;
}

.access-method {
    background-color: #eff6ff;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.access-method-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.access-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #374151;
}

.map-wrapper {
    background-color: #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* お問い合わせセクション */
.contact {
    padding: 5rem 0;
    background-color: #ffffff;
}

.contact .container {
    max-width: 1152px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

/* 成功メッセージ */
.success-message {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.success-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.success-text {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* フォーム */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    display: block;
    color: #374151;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.required {
    color: #ef4444;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 1rem;
}

.form-input:focus,
.form-textarea:focus {
    border-color: transparent;
    ring: 2px;
    ring-color: #3b82f6;
    box-shadow: 0 0 0 2px #3b82f6;
}

.form-textarea {
    resize: none;
}

.submit-btn {
    width: 100%;
    background-color: #2563eb;
    color: #ffffff;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
}

.submit-btn:hover {
    background-color: #1d4ed8;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 連絡先カード */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: box-shadow 0.3s;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.contact-icon-wrapper {
    background-color: #dbeafe;
    padding: 0.75rem;
    border-radius: 9999px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #2563eb;
}

.contact-card-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.contact-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 1.125rem;
    transition: color 0.2s;
    word-break: break-all;
}

.contact-link:hover {
    color: #1e40af;
}

.contact-hours {
    font-size: 0.875rem;
    color: #4b5563;
    margin-top: 0.5rem;
}

.contact-address {
    color: #4b5563;
    font-style: normal;
}

/* フッター */
.footer {
    background-color: #1f2937;
    color: #ffffff;
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-text {
    color: #d1d5db;
    font-size: 0.875rem;
}

.footer-subtitle {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #d1d5db;
}

.footer-address {
    font-size: 0.875rem;
    color: #d1d5db;
    font-style: normal;
    line-height: 1.75;
}

.footer-link {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
}
