/* === 全体の基本設定 === */
body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.8;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #007bff;
}

h1, h2, h3 {
    font-weight: 600;
}

/* === ヘッダー === */
header {
    background-color: #fff;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 90%;
    top: 0;
    z-index: 1000;
}

header .logo a {
    font-size: 20px; /* 少し小さく調整 */
    font-weight: bold;
    color: #333;
}

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

header .desktop-nav li {
    margin-left: 30px;
}

header .desktop-nav a {
    color: #555;
    font-weight: 500;
}

header .login-button a {
    background-color: #0056b3;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

header .login-button a:hover {
    background-color: #004494;
}


/* === メインコンテンツ === */
main {
    padding-top: 70px; /* ヘッダーの高さ分 */
}

section {
    padding: 60px 5%;
    text-align: center;
}

section h2 {
    font-size: 28px;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    display: block;
    width: 60%;
    height: 3px;
    background-color: #0056b3;
    margin: 10px auto 0;
}


/* === ブロック1: メインビジュアル === */
.hero {
    background-image: url('hero-image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* 背景を固定してスクロール効果 */
    color: #fff;
    padding: 120px 5%;
    text-align: center;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.hero-text {
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
}
.hero p {
    font-size: 18px;
}

/* === ブロック2: 私たちの使命 === */
.mission {
    background-color: #fff;
}
.mission-items {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}
.mission-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    width: 30%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.mission-item h3 {
    font-size: 20px;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* === ブロック3&5: ボタン共通スタイル === */
.btn {
    display: inline-block;
    background-color: #0056b3;
    color: #fff;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.4);
}

/* === ブロック4: 私たちの姿勢・ビジョン === */
.vision {
    background-color: #fff;
}
.vision-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    line-height: 2;
}
.vision-content p {
    margin-bottom: 20px;
}

/* === ブロック5: お問い合わせ === */
.cta {
    background-color: #333;
    color: #fff;
}
.cta h2 {
    color: #fff;
}
.cta h2::after {
    background-color: #fff;
}

/* === フッター === */
footer {
    background-color: #333;
    color: #ccc;
    text-align: center;
    padding: 20px 5%;
}

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
   ここからレスポンシブ対応（スマホ用デザイン）
   ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

/* --- ハンバーガーメニューのスタイル --- */
.hamburger {
    display: none; /* PCでは非表示 */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s;
}
.hamburger.is-active span:nth-of-type(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.is-active span:nth-of-type(2) {
    opacity: 0;
}
.hamburger.is-active span:nth-of-type(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* --- スマホ用ナビゲーションのスタイル --- */
.mobile-nav {
    display: none; /* PCでは非表示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.mobile-nav.is-active {
    display: flex; /* 表示させる */
}
.mobile-nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}
.mobile-nav li {
    margin: 20px 0;
}
.mobile-nav a {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}
.mobile-nav a.login-link {
    background-color: #0056b3;
    color: #fff;
    padding: 10px 30px;
    border-radius: 5px;
}


/* --- 画面幅が768px以下の場合に適用 --- */
@media (max-width: 768px) {

    /* ヘッダー */
    header .desktop-nav,
    header .login-button {
        display: none; /* PC用ナビとボタンを非表示 */
    }
    .hamburger {
        display: block; /* ハンバーガーメニューを表示 */
    }
    header .logo a {
        font-size: 16px;
    }

    /* メインビジュアル */
    .hero h1 {
        font-size: 28px;
    }
    .hero p {
        font-size: 16px;
    }

    /* 私たちの使命 */
    .mission-items {
        flex-direction: column; /* 縦に並べる */
    }
    .mission-item {
        width: 100%;
        box-sizing: border-box; /* paddingを含めた幅計算に */
    }
}


/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
   ここから【事業内容ページ】専用のスタイル
   ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

.page-header {
    background-color: #333;
    color: #fff;
    padding: 40px 5%;
}

.page-header h1 {
    margin: 0;
    font-size: 36px;
}

.intro {
    background-color: #fff;
    padding-top: 60px;
    padding-bottom: 0;
}

.intro p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 2;
}

.service-details {
    padding-top: 60px;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}
/* 画像とテキストを交互に配置するためのスタイル */
.service-card.reverse {
    flex-direction: row-reverse;
}

.service-image {
    flex: 1; /* 比率を1にする */
}

.service-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-content {
    flex: 1.2; /* テキスト側の比率を少し大きくする */
}

.service-content h2 {
    text-align: left;
    font-size: 26px;
    margin-bottom: 20px;
}
.service-content h2::after {
    display: none; /* ここではセクションタイトル共通の下線は不要 */
}

.service-description {
    margin-bottom: 30px;
}

.service-content h3 {
    font-size: 18px;
    border-left: 4px solid #0056b3;
    padding-left: 15px;
    margin-bottom: 15px;
}

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

.service-content li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}
/* リストのチェックマーク */
.service-content li::before {
    content: '✔';
    color: #0056b3;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- 【事業内容ページ】のレスポンシブ対応 --- */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 28px;
    }

    .service-card,
    .service-card.reverse {
        flex-direction: column; /* スマホでは全て縦並びにする */
        margin-bottom: 60px;
    }

    .service-content {
        margin-top: 30px;
    }
}


/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
   ここから【私たちについてページ】専用のスタイル
   ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

.company-info {
    padding-bottom: 0;
}

.info-container,
.map-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-radius: 8px;
}

.company-info h2,
.access-map h2 {
    text-align: left;
}
.company-info h2::after,
.access-map h2::after {
    display: none; /* ここではセクションタイトル共通の下線は不要 */
}

.company-info-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.company-info-table th,
.company-info-table td {
    border-bottom: 1px solid #e9e9e9;
    padding: 20px;
    vertical-align: top;
}

.company-info-table th {
    font-weight: 600;
    width: 30%;
    background-color: #f9f9f9;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* --- 【私たちについてページ】のレスポンシブ対応 --- */
@media (max-width: 768px) {
    .company-info-table th,
    .company-info-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .company-info-table th {
        border-bottom: none;
        padding-bottom: 5px;
    }
    .company-info-table td {
        padding-top: 5px;
    }
}

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
   ここから【お問い合わせページ】専用のスタイル
   ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

.contact-info {
    padding-bottom: 60px;
}

.contact-info .info-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-radius: 8px;
}

.contact-info .intro-text {
    text-align: center;
    line-height: 2;
    margin-bottom: 40px;
}

.email-contact {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e9e9e9;
    text-align: center;
}

.email-contact h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.email-contact .email-address {
    font-size: 20px;
    font-weight: bold;
    word-break: break-all;
}

/* --- Googleフォーム埋め込みの調整 --- */
.contact-info iframe {
    width: 100%;
    min-height: 800px; /* フォームの高さに合わせて調整 */
    border: none;
}
