
/*基本設定*/
body {
  margin: 0;
  font-family: sans-serif;
  background-color: #f5f5f5;
  color: #333;
}
header {
  background: #0066cc;
  color: #fff;
  padding: 1em;
  text-align: center;
}
header img {
  width: 100%;
  max-width: 600px;
  height: auto;
}
nav {
  display: flex;
  overflow-x: auto;
  background: #0099ff;
  padding: 0.5em;
  gap: 0.5em;
  white-space: nowrap;
  /*margin-bottom: 5px;*/
}
nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9em;
  padding: 0.4em 0.8em;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
main {
  padding: 1em;
  max-width: 1200px;
  margin: auto;
  text-align: teft;
}
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1em;
}
.product {
  background: #fff;
  border: 1px solid #ddd;
  text-align: center;
  padding: 1em;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.product img {
  max-width: 100%;
  height: auto;
  margin-bottom: 0.5em;
}
.product-name {
  font-size: 0.95em;
  font-weight: bold;
}
footer {
  background: #0099ff;
  color: #fff;
  text-align: center;
  padding: 1em;
  margin-top: 2em;
  font-size: 0.85em;
}
/*製品リスト*/
.product_list {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.product_list img {
  width: 80px;
  height: auto;
  border-radius: 4px;
}
.product_list-info {
  flex-grow: 1;
  text-align: left;
}
.product_list-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}
.product_list-info p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}
.product_list-info .price {
  font-weight: bold;
  color: #cc0000;
}
.category-header {
  border-left: 8px solid #cc3366;
  border-bottom: 1px solid #cc3366;
  padding: 0.5em 1em;
  font-weight: bold;
  font-size: 1.1rem;
  color: #cc3366;
  background: #fff0f5;
  margin-bottom: 1em;
  text-align: left;
}

.subcategory-label {
  display: block;
  background-color: #66bb66;
  color: #fff;
  padding: 0.4em 0.8em;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  text-align: left;
  width: 300px;
  margin-right: auto; 
}
/*ページのメインタイトルバナー*/
.section-header {
  width: 96%;
  background: linear-gradient(135deg, #1c1c2b, #0066cc, #33ccff);
  color: #fff;
  padding: 1% 2%;
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  text-align: left;
}

/* シャイン効果 */
.section-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 30%,
    transparent 60%
  );
  transform: skewX(-30deg);
  animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
  0% {
    left: -50%;
  }
  100% {
    left: 100%;
  }
}

/*会社概要などの表*/
.simple-table {
  width: 100%;
  border-collapse: collapse;
  font-family: sans-serif;
  font-size: 14px;
  margin-top: 1em;
}

.simple-table th,
.simple-table td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}

.simple-table th {
  background-color: #f0f0f0;
  width: 180px;
  font-weight: bold;
}

/*商品詳細ページ*/
.detail-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
    margin-bottom: 2rem;
  }
  .images-section {
    width: 48%;
  }
  .main-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }
  
.sub-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 2%;
  margin-top: 1rem;
}


.sub-photos.one figure {
  margin: 0;
  width: 100%;
  text-align: center;
}
.sub-photos.two figure {
  margin: 0;
  width: 48%;
  text-align: center;
}
.sub-photos.three figure {
  margin: 0;
  width: 32%;
  text-align: center;
}
.sub-photos figure img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.sub-photos figcaption {
  font-size: 0.85rem;
  margin-top: 0.3em;
  color: #555;
}

.text-section {
  width: 50%;
  text-align: left;
}

.text-section h2 {
  font-size: 2rem;
  color: #8b4513;
  margin-bottom: 1rem;
  border-bottom: 2px dashed #d2b48c;
  padding-bottom: 0.5rem;
}

.text-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1rem;
}

.text-section p strong {
  color: #b22222;
  font-size: 1.2rem;
}

.text-section form {
  margin-top: 1.2rem;
}

.text-section label {
  font-weight: bold;
  margin-right: 0.5rem;
}

.text-section select {
  padding: 0.4rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.text-section input[type="submit"] {
  background-color: #d2691e;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 8px;
  margin-top: 0.5rem;
  margin-right: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.text-section input[type="submit"]:hover {
  background-color: #a0522d;
}


/*写真がない場合は横幅100%*/

.text-section2 {
  width: 100%;
  text-align: left;
}

.text-section2 h2 {
  font-size: 2rem;
  color: #8b4513;
  margin-bottom: 1rem;
  border-bottom: 2px dashed #d2b48c;
  padding-bottom: 0.5rem;
}

.text-section2 p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1rem;
}

.text-section2 p strong {
  color: #b22222;
  font-size: 1.2rem;
}

.text-section2 form {
  margin-top: 1.2rem;
}

.text-section2 label {
  font-weight: bold;
  margin-right: 0.5rem;
}

.text-section2 select {
  padding: 0.4rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.text-section2 input[type="submit"] {
  background-color: #d2691e;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 8px;
  margin-top: 0.5rem;
  margin-right: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.text-section2 input[type="submit"]:hover {
  background-color: #a0522d;
}

/*ここから買い物かごログインフォーム*/
    .login-form {
      display: flex;
      flex-wrap: wrap;
      gap: 1em;
      align-items: flex-end;
      max-width: 600px;
      margin: 2em auto;
      padding: 1em;
      border: 1px solid #ccc;
      border-radius: 8px;
      box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
    }

    .form-group {
      display: flex;
      flex-direction: column;
      min-width: 180px;
      flex: 1;
    }

    .form-group label {
      margin-bottom: 0.4em;
      font-weight: bold;
    }

    .form-group input[type="text"],
    .form-group input[type="password"] {
      width: 100%;
      height: 2em;
      font-size: 1em;
      padding: 0.3em;
    }

    .form-group input[type="submit"] {
      height: 2.5em;
      font-size: 1em;
      padding: 0 1.2em;
      margin-top: 1.6em;
      cursor: pointer;
    }
.submit-button {
  height: 2.5em;
  font-size: 1em;
  padding: 0 1.2em;
  margin-top: 1.6em;
  cursor: pointer;
}
    @media (max-width: 400px) {
      .login-form {
        flex-direction: column;
        align-items: stretch;
      }

      .form-group {
        width: 100%;
      }
    }


/*ここまで買い物かごログインフォーム*/



@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


@media (max-width: 900px) {
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1em;
}
  
.detail-wrapper {
  flex-direction: column;
}
.images-section,
.text-section {
  width: 100%;
}

    
  }
