/* 基本のスタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Zen Kaku Gothic New", sans-serif;
    line-height: 1.6;
    background-color: #fff;
}
h1, h2, h3, h4{
    color: #333;
}


a{
    text-decoration: none;
}

.inner {
    width: 960px;
    margin: auto;
}
.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    color: #6b0606;
}

.logo a {
    color: #6b0606;
}

.logo img{
    width: 20%;
    margin-right: 10px;
}
header .logo img{
    width: 15%;
    margin-right: 10px;
}

/* ヘッダーを固定 */
header {
    padding: 5px 0;
    position: fixed;  /* 固定位置 */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background-color: rgba(255,255,255, 0.95);  /* 完全に透明 */
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}


/* ナビゲーション */
nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li {
    position: relative; /* サブメニューを絶対位置で配置 */
    margin-left: 20px;
}

nav a {
    color: #333;
    text-decoration: none;
    position: relative;
}

nav a:hover {
    color: #426c15;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #426c15;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}



/* モジュール：キャッチコピーと社名 */
.intro-module {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 20;
}

h1{
    color: white;
    font-size: 24px;
    font-weight: normal;
}
h2.catch-copy{
    color: white;
    font-size: 24px;
}
h3{
    font-weight: normal;
}



/* フッター */
footer {
    color: black;
    padding: 20px 0;
    border-top: 1px solid #ccc;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* ← ここで上揃えに！ */
    width: 90%;
    margin: 0 auto;
}

/* ナビメニュー */
footer nav ul {
    list-style: none;
    display: flex;
    /* flex-direction: column; ← 縦並びにして見やすく */
    padding: 0;
    margin: 0;
}

footer nav ul li {
    margin-bottom: 8px;
}

footer nav a {
    color: black;
    text-decoration: none;
}



/* コピーライト */
footer .copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

/* お問い合わせ情報 */
footer .contact-info {
    text-align: left;
    font-size: 0.9rem;
    color: #333;
    margin-top: 10px;
}

footer .contact-info p {
    margin: 5px 0;
}

footer .contact-info a {
    color: #6b0606;
    text-decoration: none;
}

footer .contact-info a:hover {
    text-decoration: underline;
}

/* ロゴ */
footer .logo {
    display: flex;
    align-items: center;
    margin-bottom: 10px; /* ロゴとお問い合わせの間に空間 */
}

footer .logo p {
    font-size: 24px;
    color: #6b0606;
    margin-left: 10px;
}

footer .logo img {
    width: 20%;
    margin-right: 10px;
    margin-top: 10px;
}


/* ハンバーガーメニューのスタイル */
.hamburger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
}

.hamburger-menu .line {
    width: 100%;
    height: 3px;
    background-color: #6b0606;
    border-radius: 5px;
}

/* ナビゲーションメニュー */
nav {
    display: flex;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav a {
    color: #333;
    text-decoration: none;
    position: relative;
}

nav a:hover {
    color: #426c15;
}

/* メディアクエリ: スマホ・タブレット用 */
@media (max-width: 768px) {
    /* ハンバーガーメニューを表示 */
    .hamburger-menu {
        display: flex;
    }
    
    .inner {
        width: 90%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    /* 通常のナビゲーションメニューを非表示 */
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 20px;
        width: 45%;
        background-color:  rgba(255,255,255, 0.95);
        border-radius: 10px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.9);
    }

    /* ナビゲーションメニューのリスト項目 */
    nav ul li {
        margin: 10px 0;
    }

    /* ハンバーガーメニューが開いているときにメニューを表示 */
    nav.open ul {
        display: flex;
    }

    footer nav ul {
    
        display: none;
    }
footer .contact-info {
        text-align: center;
    }
    
    .intro-module {
        /* position: absolute; */
        top: 30%;
        /* left: 50%; */
        width: 80%;
        }
    
}
