/* 基本スタイル */
:root {
    --primary-color: #1a5f7a;
    --secondary-color: #2c3e50;
    --accent-color: #e67e22;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
}

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

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

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo img {
    height: 100px; /* デスクトップでのロゴサイズ */
}

.header__nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.header__nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5em 0;
    display: inline-block;
}

.header__nav-list a:hover,
.header__nav-list a.active { /* アクティブなリンクのスタイル */
    color: var(--primary-color);
    font-weight: 700; /* 少し太くする */
}


/* ヒーローセクション共通スタイル */
.hero {
    height: 100vh; /* デフォルトの高さ */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 100px; /* ヘッダーの高さ分を考慮 */
    position: relative; /* 子要素の配置基準 */
}

.hero__content {
    position: relative; /* 背景のオーバーレイより手前に */
    z-index: 2;
    padding: 1rem; /* 左右のパディング */
}

.hero__title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero__subtitle {
    font-size: 1.5rem;
    font-weight: 400;
}

/* セクション共通 */
.section {
    padding: 5rem 1rem; /* 左右にパディングを追加 */
}

.section__inner {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 1rem; HTML構造で担保 */
}

.section__title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    font-weight: 700;
}

.section__title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    margin: 1rem auto 0; /* 上マージンを調整 */
}

.section__lead {
    max-width: 800px; /* リード文の最大幅 */
    margin: 0 auto 2rem; /* 中央寄せと下のマージン */
    text-align: left; /* 左寄せに変更 */
    line-height: 1.8;
}

.section__lead p {
    margin-bottom: 1rem;
}

/* サービスグリッド */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem; /* タイトルの下にスペース */
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* 少し影を強く */
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex; /* Flexbox を使用 */
    flex-direction: column; /* 子要素を縦に並べる */
}

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

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.service-card ul {
    list-style: none;
    padding-left: 0; /* デフォルトのパディングを削除 */
    flex-grow: 1; /* 残りのスペースを埋める */
}

.service-card ul li {
    margin-bottom: 0.8rem; /* リストアイテム間のスペース調整 */
    padding-left: 1.5rem;
    position: relative;
}

.service-card ul li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 1.2em; /* マーカーを少し大きく */
    line-height: 1; /* 行の高さに合わせる */
}

/* ボタン共通 */
.button-container {
    margin-top: 2rem; /* ボタンの上のスペース */
    text-align: center;
}

.button {
    display: inline-block;
    padding: 0.8rem 2rem; /* パディング調整 */
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 500;
    border: 2px solid transparent; /* ホバー時のレイアウトシフト防止 */
}

.button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px); /* 少し浮き上がる効果 */
}

.button--small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* フッター */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 3rem 1rem; /* 左右にパディングを追加 */
}

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

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap; /* モバイルでの折り返し */
    gap: 1rem; /* 要素間のスペース */
}

.footer__logo img {
    height: 40px;
}

.footer__nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap; /* モバイルでの折り返し */
}

.footer__nav a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer__nav a:hover {
    color: var(--accent-color);
}

.footer__copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    margin-top: 2rem; /* フッターコンテンツとのスペース */
}
