/* ▼フォントデータをGoogle Fontsから読み込む */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@700&family=Roboto+Mono:wght@500;600&display=swap');

/* 全体の設定 */
body {
    background-color: #111111; /* ← #000000 から変更 */
    color: #ffffff;
    margin: 0;
    font-family: sans-serif;
    /* padding-top: 60px; ← この行を削除 */

    /* ▼フッターを最下部に固定するための設定 */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1 {
    text-align: center;
    font-size: 150%;
    margin-bottom: 40px;
    font-weight: normal;
}

/*--------------------------------
 ヘッダー
---------------------------------*/
header {
    background-color: rgba(17, 17, 17, 0.7);
    padding: 15px 20px;
    text-align: left; /* ← center から left に変更 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

header .logo {
    font-family: 'Roboto Mono', monospace; /* ← この行を追記 */
    color: #ffffff;
    text-decoration: none;
    font-size: 150%;
    font-weight: 600;
}

/*--------------------------------
 メインコンテンツ
---------------------------------*/
main {
    flex-grow: 1;
    padding: 60px 20px 0 20px;
}

/*--------------------------------
 フッター
---------------------------------*/
footer {
    background-color: #ffffff; /* 背景色を白に変更 */
    color: #000000;
    padding: 20px 20px;       /* 上下の余白を40pxから20pxに変更 */
    text-align: center;
}

/* (これ以下のフッターのスタイルは変更ありません) */

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 15px;
}

.footer-nav a {
    color: #000000;
    text-decoration: none;
}

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

.copyright {
    margin-top: 30px;
    font-size: 12px;
    display: block;
}

/*--------------------------------
 トップページ
---------------------------------*/
.main-image {
    position: relative; /* 子要素を重ねるための基準 */
    display: flex;
    align-items: center; /* 要素を垂直方向の中央に揃える */
}

/* テキストの箱 */
.main-image-text {
    width: 50%; /* 全体の半分程度の幅を持つ */
    text-align: left;
    color: #fff;
    position: relative; /* 重なりの順番を制御するため */
    z-index: 2; /* 画像より手前に表示 */
}

.main-image-text h2 {
    font-family: 'Noto Serif JP', serif; /* ← この行を追記 */
    font-size: 200%;
    font-weight: bold;
    margin: 0;
}

.main-image-text p {
    font-size: 100%;
    margin: 5px 0 0 0;
}

.main-image-visual {
    width: 100%;
    margin-left: -30%; 
}

.main-image-visual img {
    width: 100%;
    display: block;
}

.product-list {
    margin-top: 50px;
    margin-bottom: 50px;
    text-align: center;
}

.product-list h2 {
    font-size: 150%;
    font-weight: normal;
    margin-bottom: 30px;
    border-bottom: 1px solid #fff; /* 下線を追加 */
    padding-bottom: 5px;         /* テキストと下線の間の余白 */
    display: inline-block;        /* 下線の長さをテキスト幅に合わせる */
}

.product-item{
    margin-top: 30px;
    margin-bottom: 50px;
}

.product-item img {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
}

.product-catchcopy {
    margin: 0;
    font-size: 100%;
}

.product-item-name {
    margin: 5px 0 0 0;
    font-size: 120%;
    font-weight: bold;
}

/*--------------------------------
 LPページ
---------------------------------*/
.contents {
    /* 上20px、左右20px、下50px の余白を設定 */
    padding: 0 0 50px 0;
}

.product-name {
    margin-bottom: 30px;
    text-align: center;
}

/* ▼ .product-name の中の h1 タグに対するスタイルを指定 */
.product-name h1 {
    font-weight: normal;
    font-size: 120%;
    /* h1タグが持つデフォルトの余白をリセット */
    margin-top: 0;
    margin-bottom: 0;
}

.lp-container img {
    /* 画像の幅をコンテナの100%に */
    width: 100%;
    
    /* 画像下の余白をなくし、ぴったりくっつけるための設定 */
    display: block;
}

.product-guide {
    /* 上のLP画像との間に余白を設定 */
    margin-top: 100px;
}

.product-guide img {
    /* 画像がはみ出ないように最大幅を設定 */
    max-width: 100%;
    height: auto;
}

.product-guide-name {
    font-size: 120%; /* スマホのフォントサイズ */
}

/*--------------------------------
 会社概要ページ
---------------------------------*/
.profile-table {
    margin: 0;
}

.profile-row {
    display: flex;
    flex-wrap: wrap; /* スマホで項目名が長い場合に折り返す */
    border-bottom: 1px solid #444;
    padding: 20px 0;
}

.profile-row dt {
    width: 100%;
    font-weight: bold;
    margin-bottom: 10px;
}

.profile-row dd {
    width: 100%;
    margin: 0;
    line-height: 1.6;
}

/*--------------------------------
 問い合わせページ
---------------------------------*/
.form-container {
    position: relative;
    width: 100%;
    height: 0;
    margin-top: 80px;
    padding-bottom: 110%; /* フォームの縦横比に合わせて調整 */
}

.form-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* =================================
 PC表示用の設定（画面幅が768px以上の場合）
================================= */
@media (min-width: 768px) {

  /* (ヘッダーのルールは変更なし) */
  .header-inner {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
  }

  header .logo {
    font-size: 250%;
    font-weight: 500;
  }

  main {
    width: 780px;
    margin-left: auto;
    margin-right: auto;
  }

/* トップページ */
    h1 {
        font-size: 200%;
        margin-bottom: 60px;
    }

    .main-image {
        margin-top: 50px;
    }

    .main-image-text h2 {
        font-size: 400%;
    }

    .main-image-text p {
        font-size: 150%;
        margin-top: 10px;
    }

    .product-list {
        margin-top: 100px;
    }

    .product-list h2 {
        font-size: 200%;
        margin-bottom: 30px;
    }

    .product-item{
        margin-top: 30px;
    }

    .product-catchcopy {
        margin: 0;
        font-size: 150%;
    }

    .product-item-name {
        margin: 10px 0 0 0;
        font-size: 200%;
        font-weight: bold;
    }

    .product-item img {
        width: 70%;
        height: auto;
        margin-top: 20px;
    }

/* 商品ページ */

    .product-item-name {
        font-size: 200%;
    }

    .product-guide-name {
        font-size: 150%;
    }

    .product-name {
        font-size: 200%;   /* ← 150% から変更 */
        margin-top: 30px;  /* ← 上の余白を追記 */
    }

    .profile-row {
        flex-wrap: nowrap; /* PCでは折り返さない */
    }

    .profile-row dt {
        width: 25%;
        margin-bottom: 0;
    }
    
    .profile-row dd {
        width: 75%;
    }

}