
body {
    font-family: "Noto Sans JP", sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.8;
    color: #333;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0a2a43;
    padding: 20px;
    border-bottom: 3px solid #0078ff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    margin: 0;
    font-size: 22px;
    color: white;
}
nav a {
    text-decoration: none;
    color: #cce6ff;   /* ← 通常色 */
    font-weight: bold;
}
nav a:hover {
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 2px;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;        /* ← 横並びにする */
    gap: 20px;            /* ← メニュー同士の間隔 */
    align-items: center;  /* ← 縦位置を揃える */
}
nav li { padding: 5px 10px; }
.hero {
    position: relative;
    background: url("images/saiun1.JPG") center/cover no-repeat;
    color: white;
    padding: 140px 20px;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); /* ← ここで暗さ調整 */
}

.hero h2, .hero p {
    position: relative;
    z-index: 1;
}





.strengths {
  padding: 40px 20px;
  background: #f7f7f7;
  text-align: center;
}

/* 当社の強み：3列固定 */
.strength-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* PC：3列固定 */
    gap: 20px;
    max-width: 900px;
    margin: 20px auto 0;
}

.strength-item {
    width: 100%;
    max-width: none;
}

.strength-item h3 {
  margin-bottom: 10px;
  color: #005bac;
  font-size: 20px;
}


.plan-summary {
    text-align: center;
    padding: 40px 20px;
}

/* アイコンを大きくして見やすく */
.icon {
    font-size: 55px;   /* ← 大きすぎず、5つ並べても綺麗 */
    margin-bottom: 8px;
}

.plan-icons {
    display: flex;
    justify-content: center;
    gap: 35px;   /* ← 5つ並べるので少し狭める */
    flex-wrap: wrap;   /* ← スマホで折り返しOK */
    margin-bottom: 20px;
}

.icon-box p {
    font-size: 18px;
    font-weight: bold;
}

/* アイコン3つの並び */
.plan-icons {
    display: flex;
    justify-content: center;
    gap: 50px;   /* ← アイコンが大きくなるので間隔も広げる */
    margin-bottom: 20px;
}

/* ＝ の強調 */
.plan-equal {
    font-size: 40px;   /* ← 大きくして視線誘導 */
    font-weight: bold;
    margin: 15px 0;
    color: #005bac;    /* ← 青で統一感 */
}

/* 定額パックの強調 */
.plan-fixed {
    font-size: 24px;
    font-weight: bold;
    color: #d9534f;    /* ← 赤で強調（変更可） */
}
.type-diagram {
    text-align: center;
    padding: 40px 20px;
}

.type-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.type-item {
    width: 120px;
    text-align: center;
}

.type-icon {
    font-size: 32px;
    margin-bottom: 5px;
}
.type-photo {
    text-align: center;
    padding: 40px 20px;
}

.type-photo-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.type-photo-item {
    width: 150px;
    text-align: center;
}

.type-photo-item img {
    width: 100%;
    height: 120px;          /* ← 高さを揃える */
    object-fit: contain;    /* ← 画像を潰さずに収める */
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}



.products {
    padding: 40px 20px;
    background-color: #fff;
}

.products h2 {
    text-align: center;
    margin-bottom: 10px;
}

.products-lead {
    text-align: center;
    margin-bottom: 30px;
    color: #555;
}

/* 更新プラン：3×2固定 */
.product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* PC：3列固定 */
    gap: 20px;
    justify-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.product-item {
    width: 100%;
    max-width: none;
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-item img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.price {
    font-weight: bold;
    color: #0078ff;
    margin-top: 10px;
}

.sub {
    font-size: 14px;
    color: #666;
}

.conditions {
  text-align: center;
}

.condition-list {
  display: inline-block; /* ← 中央寄せの決め手 */
  text-align: left;      /* ← チェック項目は左揃え */
  padding: 0;
  margin: 0 auto 20px;
}
.judge-box .btn {
  display: inline-block;
  padding: 14px 28px;
  background: #999; /* 初期はグレー */
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: 0.3s;
  pointer-events: none; /* 初期は押せない */
}

.btn.active {
  background: #0078ff;
  pointer-events: auto;
  cursor: pointer;
}

.btn.active:hover {
  background: #005fcc;
}


.works {
    padding: 40px 20px;
}

.works h2 {
    text-align: center;
    margin-bottom: 30px;
}

.works-list {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.work-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 250px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.work-item img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}
.about {
    padding: 40px 20px;
    background-color: #fff;
}

.about h2 {
    text-align: center;
    margin-bottom: 30px;
}

.about-box {
    max-width: 600px;
    margin: 0 auto;
}

.about table {
    width: 100%;
    border-collapse: collapse;
}

.about th, .about td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.about th {
    width: 30%;
    text-align: left;
    background-color: #f5f5f5;
}
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}
/* 768px 以下（タブレット） */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        gap: 10px;
    }

    .hero {
        padding: 100px 20px;
    }

    .works-list {
        flex-direction: column;
        align-items: center;
    }
}

/* 600px 以下（スマホ） */
@media (max-width: 600px) {

    /* 当社の強み → 2列 */
    .strength-list {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 更新プラン → 2列 */
    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }

    /* hero の上下余白を調整 */
    .hero {
        padding: 80px 20px;
    }
    .works-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
nav a {
    font-size: 12px;   /* ← 文字を小さくして1行に収める */
  }

  nav ul {
    gap: 8px;          /* ← 間隔も少し狭くする */
  }

  header {
    padding: 12px 10px; /* ← ヘッダーの高さも少し圧縮 */
  }
}
