/* モダンなカラーパレットと基礎設定 */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --text-color: #334155;
    --bg-color: #f8fafc;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* ヘッダー */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); /* グラスモーフィズム効果 */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.05em;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

/* ヒーローセクション */
.hero {
    height: 40vh;
    min-height: 350px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    animation: fadeInDown 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
    opacity: 0;
}

/* ボタンのスタイルとマイクロアニメーション */
.btn {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 16px 36px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
    opacity: 0;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    background-color: #f8fafc;
}

/* セクションとカードの装飾 */
.content-section {
    padding: 100px 20px;
}

h2 {
    text-align: center;
    margin-bottom: 48px;
    font-size: 2.2rem;
    color: #0f172a;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 16px auto 0;
    border-radius: 2px;
}

.card {
    background: var(--white);
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* フッター */
footer {
    background-color: #0f172a;
    color: #cbd5e1;
    text-align: center;
    padding: 32px 0;
}

/* ユーティリティクラス */
.text-center { text-align: center; }
.bg-light { background-color: #f1f5f9; }
.bg-primary { background-color: var(--primary-color); }
.text-white { color: var(--white); }

.section-desc {
    text-align: center;
    max-width: 700px;
    margin: -30px auto 40px;
    color: #64748b;
    font-size: 1.1rem;
}

/* サービスセクション */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    color: #0f172a;
    margin-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #475569;
    display: flex;
    align-items: flex-start;
}

.num {
    display: inline-block;
    background-color: #e0e7ff;
    color: var(--primary-color);
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* 会社概要セクション */
.company-info-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
}

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

.company-table th,
.company-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

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

.company-table th {
    width: 30%;
    color: #334155;
    font-weight: 700;
}

.company-table a {
    color: var(--primary-color);
    text-decoration: none;
}

.company-table a:hover {
    text-decoration: underline;
}

/* お問い合わせセクション */
#contact {
    padding: 80px 20px;
}

#contact h2::after {
    background-color: var(--white);
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-btn {
    box-shadow: none;
}

.contact-btn i {
    margin-right: 8px;
}

.contact-btn.outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.contact-btn.outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* フッターロゴ */
.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
    opacity: 0.9;
}

/* アニメーション定義 */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    nav ul { gap: 16px; }
    .card, .company-info-card { padding: 32px 20px; }
    .services-grid { grid-template-columns: 1fr; }
    .company-table th, .company-table td { display: block; width: 100%; }
    .company-table th { padding-bottom: 4px; border-bottom: none; }
    .company-table td { padding-top: 4px; padding-bottom: 24px; }
    .contact-methods { flex-direction: column; align-items: center; }
    .contact-btn { width: 100%; max-width: 300px; }
}
