/* =================
Maydo Website - スタイルシート最終版
================== */

/* =================
基本設定
================== */
:root {
    --primary-color: #333; /* メインのテキスト色 */
    --secondary-color: #1A3A6D; /* アクセントカラー (決定した紺色) */
    --bg-color: #f9f9f9; /* 明るい背景色 */
    --base-font-size: 16px;
    --font-family: 'Noto Sans JP', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-family);
    color: var(--primary-color);
    background-color: #fff;
    font-size: var(--base-font-size);
    line-height: 1.8;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

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

/* =================
ヘッダー
================== */
.header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav a {
    color: var(--primary-color);
    font-weight: bold;
}

/* =================
セクション共通スタイル
================== */
.section-container {
    padding: 80px 0;
    text-align: center;
}

.section-title {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: bold;
}

.section-title-jp {
    display: block;
    font-size: 14px;
    margin-top: 5px;
    color: #888;
}

.section-lead {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 30px;
}

/* =================
1. ヒーローセクション
================== */
.hero {
    position: relative;
    height: 90vh;
    color: #fff;
    background-image: url('images/IMG_5745.JPG'); /* ★ 拡張子を大文字 (.JPG) に変更 */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    margin: 0 0 10px;
}

.hero-subtitle {
    font-size: 20px;
    margin: 0 0 30px;
    font-weight: normal;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 40px;
}

/* =================
CTAボタン
================== */
.cta-button, .cta-button-secondary {
    display: inline-block;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.cta-button {
    background-color: var(--secondary-color);
    color: #fff;
}
.cta-button:hover {
    background-color: #0d2c5c;
    color: #fff;
    opacity: 1;
}

.cta-button-secondary {
    background-color: #fff;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}
.cta-button-secondary:hover {
    background-color: #f0f7ff;
    opacity: 1;
}

/* =================
2. About
================== */
.mission-vision {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 50px 0;
    text-align: center;
}
.mission-vision-item h3 {
    margin-bottom: 5px;
}
.mission-vision-item p {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.values {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 5px;
    text-align: left;
    max-width: 600px;
    margin: 40px auto 0;
}
.values ul {
    list-style: none;
    padding: 0;
}
.values li {
    padding-left: 1.5em;
    text-indent: -1.5em;
}
.values li::before {
    content: "✓";
    margin-right: 0.5em;
    color: var(--secondary-color);
}

/* =================
3. Service
================== */
.service {
    background-color: var(--bg-color);
}

.service-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    font-size: 18px;
}
.flow-step {
    background-color: #fff;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
}
.flow-arrow {
    font-size: 24px;
    color: var(--secondary-color);
}
.flow-caption {
    margin-top: 15px;
    color: #555;
    font-weight: bold;
}

.card {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    flex: 1;
}
.card h3 {
    margin-top: 0;
}

/* =================
4. Works (画像なしテキストカード形式)
================== */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
    text-align: left;
}
.work-item {
    background-color: var(--bg-color);
    border-left: 5px solid var(--secondary-color);
    padding: 25px 30px;
    border-radius: 5px;
}
.work-item h4 {
    font-size: 20px;
    margin: 0 0 10px;
}
.work-question {
    font-style: italic;
    color: #555;
    padding-left: 15px;
    border-left: 3px solid #ccc;
    margin-bottom: 15px;
}

/* =================
5. Journal
================== */
.journal {
    background-color: var(--bg-color);
}
.journal-cards {
    display: flex;
    gap: 30px;
    margin-top: 50px;
}
.journal-card {
    color: var(--primary-color);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.journal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.journal-card h3 {
    font-size: 18px; /* 少し調整 */
}

/* =================
6. Company
================== */
.company-info {
    max-width: 600px;
    margin: 50px auto 0;
    text-align: left;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px;
}
.company-info dt {
    font-weight: bold;
}

/* =================
7. Contact
================== */
.contact-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* =================
フッター
================== */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
}

/* =================
レスポンシブ対応（スマホ表示）
================== */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .hero {
        height: 80vh;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-description {
        font-size: 16px;
    }
    .section-container {
        padding: 60px 0;
    }
    .mission-vision, .service-cards, .journal-cards {
        flex-direction: column;
    }
    .works-grid {
        grid-template-columns: 1fr;
    }
    .contact-buttons {
        flex-direction: column;
    }
}
/* =================
Service セクション内の文章の読みやすさ改善
================== */

/* カード内の箇条書きリスト (ul) のスタイル調整 */
.service-cards .card ul {
    /* リストのパディング（左側の余白）を調整して読みやすくします */
    padding-left: 20px; 
    /* リストの行間を少し詰めて、まとまりを良くします */
    line-height: 1.5; 
}

/* カード内のテキストやリストの最大幅を制限します */
.service-cards .card p,
.service-cards .card ul {
    /* 読書に適した最大横幅を設定し、文章が広がりすぎるのを防ぎます */
    max-width: 500px; /* 必要に応じてこの数値を調整してください */
    margin-left: auto; /* 中央寄せにするため */
    margin-right: auto; /* 中央寄せにするため */
    text-align: left; /* テキストを左揃えに戻します */
}

/* 個々のリスト項目 (li) のスタイル調整 */
.service-cards .card ul li {
    /* リスト項目同士の間隔を少し開けて見やすくします */
    margin-bottom: 5px; 
}
/* =================
Serviceカードのレイアウト改善 (横長表示化)
================== */

.service-cards {
    /* flex-wrap: wrap; を追加し、カードが親要素の幅を超えたら折り返すようにします */
    flex-wrap: wrap; 
    /* 横並びのカード同士の間隔を少し広げ、縦方向の隙間も設けます */
    gap: 30px; 
    /* 中央揃えにして、カードが左右に偏らないようにします */
    justify-content: center; 
}

.service-cards .card {
    /* 1列に2〜3個表示できるよう、柔軟な幅設定にします */
    flex: 1 1 300px; /* 最小幅300pxを確保しつつ、残りのスペースを均等に埋めます */
    /* ボックスの高さを自動調整し、中身が短いカードが不自然に大きくならないようにします */
    height: auto; 
}