/* ブランドカラー定義 */
:root {
    --primary-color: #0d2f61;  /* ネイビーブルー */
    --accent-color: #fbc62e;   /* マスタードイエロー */
    --text-color: #333;
    --light-bg: #f7f7f7;
    --white: #fff;
}

/* 基本設定 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #555;
}

/* ヘッダー */
.header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 40px;
    vertical-align: middle;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

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

.nav a {
    text-decoration: none;
    color: #555;
    font-weight: 400;
    transition: color 0.3s;
}

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

/* ナビゲーション - お問い合わせボタン */
.contact-btn-nav {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    font-weight: 700;
}

.contact-btn-nav:hover {
    background-color: #001a33;
    transform: translateY(-2px);
}

/* メインビジュアル */
.hero {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 150px 0;
}

.hero-subtitle {
    font-size: 1.5em;
    font-weight: 400;
    margin: 0 0 10px;
    color: var(--accent-color);
}

.hero-title {
    font-size: 3em;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

/* 事業内容 */
.services {
    background-color: var(--light-bg);
}

.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

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

.card-icon {
    font-size: 2.5em;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.2em;
    color: var(--primary-color);
    margin-top: 0;
    font-weight: 700;
}

.card-text {
    font-size: 0.9em;
    color: #777;
}

/* 会社概要 */
.about {
    background-color: var(--white);
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

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

.company-table th {
    background-color: #fcfcfc;
    width: 25%;
    font-weight: 700;
    color: #555;
}

/* お問い合わせ */
.contact {
    background-color: var(--light-bg);
    text-align: center;
}

.contact-description {
    margin-bottom: 40px;
    color: #555;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 280px;
    padding: 15px 20px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    color: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

.contact-btn i {
    font-size: 1.5em;
    margin-right: 10px;
}

.mail-btn {
    background-color: var(--primary-color);
}

.line-btn {
    background-color: #00c300;
}

.privacy-note {
    margin-top: 30px;
    font-size: 0.9em;
    color: #777;
}

.privacy-link {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-color);
    transition: color 0.3s, border-color 0.3s;
}

.privacy-link:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* フッター */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

/* --- ハンバーガーメニュー関連 --- */

/* ボタンの基本スタイル（PCでは非表示） */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 100;
}

.hamburger-btn .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease-in-out;
}

.hamburger-btn .bar:nth-child(1) {
    top: 0;
}
.hamburger-btn .bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}
.hamburger-btn .bar:nth-child(3) {
    bottom: 0;
}

/* メニューが開いた時のハンバーガーアイコンのアニメーション */
.hamburger-btn.is-active .bar:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}
.hamburger-btn.is-active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.is-active .bar:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* --- レスポンシブ対応の修正 --- */
@media (max-width: 768px) {
    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        padding: 15px 20px;
        /* ヒーロータイトルのフォントサイズ調整 */
        .hero-title {
        font-size: 2em; /* もしくは、もう少し小さくても良いかもしれません */
    }
    }
    
    .nav {
        /* モバイルメニューの基本スタイル */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        padding-top: 100px;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 99;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* メニューが開いた時のスタイル */
    .nav.is-active {
        transform: translateX(0);
    }
    
    .nav ul {
        flex-direction: column;
        gap: 20px;
        margin: 0;
        padding: 0;
    }
    
    .nav li {
        margin: 0;
    }

    .nav a {
        font-size: 1.5rem;
        color: var(--primary-color);
    }
    
    .nav a.contact-btn-nav {
        background-color: var(--primary-color);
        color: var(--white) !important;
    }
    
    /* ハンバーガーボタンを表示 */
    .hamburger-btn {
        display: block;
    }

    .header .nav {
    /* PC用のメニューをモバイルでは非表示にせず、ハンバーガーメニューで表示させる */
    display: block;
}
}