/* CSSファイルの先頭など、全要素に適用したい場所に */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%; /* htmlとbodyの高さをブラウザの高さに合わせる */
    margin: 0;
}

header .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative; /* ハンバーガーメニューの基準点とするため */
}

h1 {
    font-size: clamp(12px, 2.5vw, 20px);
    text-align: center;
    margin: 0;
    line-height: 1.2;
    color: #777;
}

.hamburger-menu {
    display: none; /* 初期状態では非表示 (PC用) */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    /* position: relative; は削除します */
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* グローバルナビのスタイル（PC向け） */
.global-nav {
    transition: all 0.3s ease;
}

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

.global-nav ul li {
    margin-left: 15px;
}

.global-nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: clamp(14px, 2.5vw, 18px);
    white-space: nowrap;
}

.mainvisual img {
    width: 50%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.company-name {
    font-family: 'Arial', sans-serif;
    font-size: clamp(30px, 6vw, 60px);
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 5px;
    color: #333;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.company-name-kana {
    font-size: clamp(14px, 3vw, 24px);
    text-align: center;
    margin-top: 5px;
    margin-bottom: 20px;
    color: #555;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px; /* PCではパディングを維持 */
}

.cathcopy{
    font-size: clamp(18px, 3vw, 28px);
    text-align: center;
    margin-top: 20px;
}

/* ここからレスポンシブ対応 */
@media (max-width: 600px) { /* ブレイクポイントを適宜調整 */
    header .inner {
        flex-direction: column;
        align-items: center;
        padding: 10px;
        position: relative; /* ハンバーガーメニューの基準点とするため、ここを確保 */
    }

    h1 {
        font-size: clamp(14px, 4.5vw, 24px);
        text-align: center;
        margin-bottom: 5px;
        line-height: 1.2;
        color: #777;
    }

    /* ハンバーガーメニューボタンの表示 */
    .hamburger-menu {
        position: absolute;
        top: 10px;
        right: 10px;
        display: block; /* スマホで表示 */
        z-index: 1001;
    }

    /* グローバルナビのスマホでのスタイル */
    .global-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        padding-top: 60px;
        box-shadow: -2px 0 5px rgba(0,0,0,0.2);
        z-index: 1000;
        overflow-y: auto;
        transition: right 0.3s ease-out;
    }

    .global-nav ul {
        flex-direction: column;
        padding: 20px;
    }

    .global-nav ul li {
        margin: 15px 0;
        text-align: center;
    }

    .global-nav ul li a {
        font-size: 20px;
        color: #333;
        display: block;
    }

    /* JavaScriptで付与するクラス：メニューが表示されている状態 */
    .global-nav.is-open {
        right: 0;
    }

    /* ハンバーガーアイコンのアニメーション（メニューオープン時） */
    .hamburger-menu.is-open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-menu.is-open span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.is-open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* company-name のスマホでの調整 */
    .company-name {
        font-size: clamp(24px, 6vw, 40px);
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    /* company-name-kana のスマホでの調整 */
    .company-name-kana {
        font-size: clamp(12px, 3.5vw, 20px);
        width: 100%;
        max-width: 85%; /* 画面幅の85%に制限 (微調整) */
        margin: 5px auto 20px auto;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0; /* スマホでの左右パディングを0にする */
    }
} /* @media (max-width: 600px) の閉じ括弧 */

h2{
    text-align: center;
    margin-top: 20px;
}
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}