/* リセットCSS (簡易版) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
}

body {
    font-family: sans-serif;
    line-height: 1.6;
    color: #eee; /* テキストの色を明るいグレーに */
    background-color: #121212; /* 背景色をダークグレーに */
}

a { /* リンクの色 */
    color: #4cc2ff; /* リンクの色を明るい青に */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ヘッダー */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #222; /* ヘッダーの背景色を少し明るいダークグレーに */
    border-bottom: 1px solid #444;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: padding 0.3s, background-color 0.3s;
}

/* スクロール時のヘッダー */
header.scrolled {
    padding: 0.3rem;
    background-color: rgba(34, 34, 34, 0.95); /* スクロール時の背景色を半透明に */
    box-shadow: 0 2px 5px rgba(0,0,0,0.4); /* 影を濃く */
}

header.scrolled .logo img {
    max-height: 35px;
}

.logo img {
    max-height: 50px;
    transition: max-height 0.3s;
}

.global-nav ul {
    display: flex;
}

.global-nav li {
    margin-left: 20px;
}

.global-nav li a {
    color: #eee; /* メニュー項目の色を明るいグレーに */
    transition: background-color 0.3s;
    display: block;
    padding: 0.5rem;
}

/* メニュー項目のホバー時 */
.global-nav li a:hover {
    background-color: rgba(255, 255, 255, 0.1); /* ホバー時の背景色を少し明るく */
}

/* スクロール時のメニュー項目のフォントサイズ */
header.scrolled .global-nav li a {
    font-size: 0.9rem;
}

/* ハンバーガーメニュー */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 20;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #eee; /* ハンバーガーメニューの色を明るいグレーに */
}

/* 各セクションの共通スタイル */
section {
    padding: 3rem;
    margin-bottom: 1rem;
}

section h2 {
    margin-bottom: 1rem;
    border-bottom: 2px solid #4cc2ff; /* 見出しの下線を青に */
    padding-bottom: 0.5rem;
    color: #4cc2ff; /* 見出しの色を青に */
}

/* トップページの概要セクション */
.about-summary,
.products-summary {
    text-align: center;
}

.product {
    margin-bottom: 1.5rem;
}

.products-summary h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.products-summary h3 a {
    color: #4cc2ff; /* リンクの色 */
}

/* トップページのニュース */
.news-summary {
    text-align: center;
}

.news-list {
    text-align: left;
}

.news-item {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: flex-start;
    border-bottom: 1px solid #444;
    padding-bottom: 1.5rem;
}

.news-thumb {
    width: 150px;
    height: 100px;
    object-fit: cover;
    margin-right: 1rem;
    flex-shrink: 0;
}

.news-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #4cc2ff;
}

.news-content h3 a {
    color: #4cc2ff;
}
.news-content p{
    color:#717171;
}

/* その他のページのh1 */
main {
  padding-top: 80px;
  transition: padding-top 0.3s;
}
main.scrolled{
  padding-top: 60px;
}
main h1 {
    margin-bottom: 1rem;
    border-bottom: 2px solid #4cc2ff;
    padding-bottom: 0.5rem;
    color: #4cc2ff;
}

/* フォーム */
form div {
    margin-bottom: 1rem;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #333; /* 入力欄の背景色を少し明るいダークグレーに */
    color: #717171; /* 入力テキストの色を明るいグレーに */
}

form textarea {
    height: 150px;
}

form button[type="submit"] {
    background-color: #4cc2ff;
    color: #121212;
    padding: 1rem;
    border: none;
    cursor: pointer;
    font-weight: bold;
}
form button[type="submit"]:hover{
    opacity: 0.8;
}

/* フッター */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #222;
    border-top: 1px solid #444;
}

/* メンバーページ */
.member-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.member-card {
    width: 30%;
    margin-bottom: 1rem;
    text-align: center;
    border: 1px solid #444;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); /* 影を濃く */
    background-color: #222; /* カードの背景色 */
}

.member-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.member-card a, .member-card p {
    color: #eee;
}

/* 製品一覧ページ */
.product-list {
    text-align: left;
}

.product-item {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: flex-start;
    border-bottom: 1px solid #444;
    padding-bottom: 1.5rem;
}

.product-thumb {
    width: 150px;
    height: 100px;
    object-fit: cover;
    margin-right: 1rem;
    flex-shrink: 0;
}

.product-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #4cc2ff;
}
.product-content p{
    color: #eee;
}

.product-content h3 a {
    color: #4cc2ff;
}

/* 製品詳細ページ */
.product-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin-bottom: 1rem;
}

/* ヒーローセクション */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 300px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100vh;
}

.hero-image img {
    /*width: 100%;*/
    height: 100dvh;
    /*object-fit: cover;*/
    object-position: center;
    filter: brightness(70%);
}

.hero-catchphrase {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 5vw;
    font-weight: bold;
    text-align: center;
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0); /*最初は透明 */
    transition: background-color 0.5s ease, transform 0.5s ease;
    transform-origin: top;
    text-shadow: none; /* ドロップシャドウ削除 */
}

/* スクロールアニメーション */
.hero.scrolled .hero-catchphrase {
    background-color: rgba(34, 34, 34, 0.7); /* スクロール時の背景色を調整 */
    transform: translateY(100%) translateX(-50%);
}

/* レスポンシブ対応 */
@media (max-width: 660px) {
    .global-nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 66px;
        left: 0;
        width: 100%;
        background-color: rgba(34, 34, 34, 0.95); /* メニューの背景色 */
        z-index: 10;
        transition: top 0.3s;
    }

    /*スクロール時*/
    .global-nav ul.scrolled {
        top: 52px;
    }

    .global-nav ul.active {
        display: flex;
    }

    .global-nav li {
        margin: 0;
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid #444;
    }

    .global-nav li a {
        display: block;
    }

    .hamburger-menu {
        display: flex;
    }

    .news-item {
        flex-direction: column;
        align-items: center;
    }

    .news-thumb {
        width: 80%;
        height: auto;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .member-card {
        width: 45%;
    }

    .product-item {
        flex-direction: column;
        align-items: center;
    }

    .product-thumb {
        width: 80%;
        height: auto;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
     .hero {
        height: 40vh;
        min-height: 250px;
    }
    .hero-catchphrase {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .member-card {
        width: 100%;
    }
}

/* メンバー詳細表示用のスタイル */
.member-details {
    display: none; /* 初期状態では非表示 */
    margin-top: 15px;
    padding: 12px;
    background-color: #121212; /* 背景色 */
    border: 1px solid #121212; /* 枠線 */
    border-radius: 5px; /* 角丸 */
    font-size: 0.9em; /* 文字サイズ */
    line-height: 1.6; /* 行間 */
    color: #333; /* 文字色 */
}

.member-details.active {
    display: block; /* JavaScriptでこのクラスが付与されると表示される */
}

.details-toggle-button {
    display: inline-block; /* ボタンの表示形式 */
    margin-top: 10px; /* 上の要素との間隔 */
    padding: 8px 15px; /* 内側の余白 */
    font-size: 14px; /* 文字サイズ */
    font-weight: bold;
    color: #007bff; /* 文字色 (例: 青系) */
    background-color: transparent; /* 背景は透明 */
    border: 1px solid #007bff; /* 枠線 */
    border-radius: 4px; /* 角丸 */
    cursor: pointer; /* カーソルをポインターに */
    transition: all 0.2s ease-in-out; /* ホバー時のアニメーション */
    text-align: center;
}

.details-toggle-button:hover {
    background-color: #007bff; /* ホバー時の背景色 */
    color: #fff; /* ホバー時の文字色 */
}