@charset "UTF-8";
@import url(breakpoints.css);

/* root */
:root {
  --var-color-link-omron: #0000FF;

    /* 商品詳細見出し */
  --var-c-product-detail-back-to:#6DA6D9;
  --var-c-product-detail-back-from:#1F4F7B;
  --var-s-product-detail-text:2rem;
}
/* root end */

/* header */
.header {
  background-image: url('../images/elec.jpg'); 
  background-size: cover;
  background-position: center;
  height: 400px; 
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff; /* テキストの色 */
  text-align: center;
}

.header h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

.explanation {
  font-size: 1.5rem;
  text-align: center;
  padding: 5%;
  background-image: linear-gradient(90deg, rgba(57, 210, 248, 1), rgba(48, 97, 96, 1));
  background-blend-mode:overlay;
  color: #fff;
}
/* header end */

/* レスポンシブデザイン */
@media (max-width: 600px) {
  .header {
    height: 300px;
  }
  
  .header h1 {
    font-size: 28px;
  }
  
  .header p {
    font-size: 16px;
  }
  .explanation {
    font-size: 16px;
  }
  .merit li {
    font-size: 16px;
  }
  .achievements {
    width: 100%;
  }
  .achievements li {
    font-size: 16px;
  }
  .list_container {
    display: contents;
  }
}

/* #region ===== 商品詳細の見出し ===== */
h2 {
  position: relative;
  padding: 1.5em 0.5em 0 0;
  font-size: var(--var-s-product-detail-text);
}

h2:after {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(to right, var(--var-c-product-detail-back-to), var(--var-c-product-detail-back-from));
}


/* 特徴 */
.feature-cards {
  padding: 2em;
  background-color: white;
      margin: 2em auto;
  text-align: center;
  width: 80%;
   box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.feature-cards h2 {
  font-size: 1.8em;
  margin-bottom: 1em;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5em;
}

.card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  max-width: 300px;
  padding: 1em;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.card h3 {
  margin-top: 0.8em;
  font-size: 1.2em;
  color: #333;
}

.card p {
  font-size: 0.95em;
  color: #666;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .card-container {
    flex-direction: column;
    align-items: center;
  }
}

/* 事例 */
.case-list {
  padding: 2em;
  max-width: 900px;
  margin: auto;
}

.case-list h2 {
  font-size: 1.6em;
  margin-bottom: 1em;
  text-align: center;
  color: #333;
}

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

.case-list li {
  display: flex;
  align-items: flex-start;
  gap: 1em;
  padding: 1em 0;
  border-bottom: 1px solid #eee;
}

.case-list li img {
  width: 80px;
/*  height: 80px;*/
  object-fit: cover;
  border-radius: 8px;
}

.case-list li h3 {
  margin: 0 0 0.3em;
  font-size: 1.2em;
  color: #222;
}

.case-list li p {
  margin: 0;
  font-size: 0.95em;
  color: #555;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .case-list li {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .case-list li img {
    width: 100px;
    height: 100px;
  }
}

/* 電磁力応用製品とは？ */
.overview-box {
  padding: 1.5em;
  margin: 2em auto;
  max-width: 800px;
  border-radius: 8px;
}

.overview-box h2 {
  font-size: 1.5em;
  margin-bottom: 0.5em;
  color: #005599;
}

.overview-box p {
  font-size: 1em;
  color: #333;
  line-height: 1.6;
  padding-bottom: 10px;
}

