@charset "utf-8";

/* =========================================================
   変数
========================================================= */
:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #222;
  --subtext: #555;
  --accent: #0033cd;
  --line: #d9dce3;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius: 16px;
}

/* =========================================================
   ベース
========================================================= */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, p, ul, li, dl, dt, dd {
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* =========================================================
   ヘッダー
========================================================= */
header {
  position: relative;
  min-height: 320px;
  background: url("/deolica/images/mainimg.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 20px;
}

#logo {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, 76vw);
}

#logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================================================
   ヘッダーメニュー
========================================================= */
#menubar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  padding: 0 12px;
}

#menubar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: center;
  align-items: center;
}

#menubar a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-weight: 700;
  font-size: 1.08rem;
  backdrop-filter: blur(4px);
}

#menubar a:hover {
  background: rgba(255, 255, 255, 0.18);
  text-decoration: none;
}

/* =========================================================
   レイアウト
========================================================= */
#container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 56px;
}

#contents {
  margin-top: -20px;
}

section {
  margin-bottom: 20px;
  padding: 28px 20px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

#contents h2 {
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #222;
  color: #fff;
  text-align: center;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

#contents h3 {
  margin: 22px 0 16px;
  padding: 10px 14px;
  border: 2px solid #222;
  border-radius: 999px;
  background: #fff;
  text-align: center;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

/* =========================================================
   What's New
========================================================= */
.news-list {
  margin: 0;
  padding: 0;
}

.news-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.news-item:last-child {
  border-bottom: none;
}

.news-list details {
  width: 100%;
}

.news-list summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  padding: 8px 12px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #f2f6ff;
  color: var(--accent);
  font-weight: 700;
  line-height: 1.5;
  list-style: none;
}

.news-list summary::-webkit-details-marker {
  display: none;
}

.news-date {
  flex: 0 0 auto;
  white-space: nowrap;
  color: #0033cd;
  font-weight: 700;
}

.news-title {
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;
}

.news-body {
  margin-top: 10px;
  padding: 0 4px 0 8px;
}

.news-body p {
  margin: 0 0 4px;
  line-height: 1.45;
}

/* =========================================================
   特長リンク
========================================================= */
#features-sub-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  width: 100%;
  margin: 0 0 18px;
}

#features-sub-nav a {
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f3f5f9;
  color: #222;
  font-weight: 700;
  font-size: clamp(0.72rem, 1.2vw, 0.98rem);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#features-sub-nav a:hover {
  background: #e9eefc;
  text-decoration: none;
}

/* =========================================================
   特長カード
========================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fafbfc;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.feature-label {
  padding-top: 2px;
  color: #222;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.feature-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 290px;
  padding: 8px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.feature-image img {
  width: 100%;
  max-width: 100%;
  max-height: 270px;
  object-fit: contain;
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .feature-card-1 {
    grid-column: 1 / span 2;
  }

  .feature-card-2 {
    grid-column: 3 / span 2;
  }

  .feature-card-3 {
    grid-column: 1 / span 2;
  }

  .feature-card-4 {
    grid-column: 3 / span 2;
  }

  .feature-card-5 {
    grid-column: 2 / span 2;
  }

  .feature-image {
    min-height: 320px;
  }

  .feature-image img {
    max-height: 300px;
  }
}

@media (max-width: 800px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-image {
    min-height: 240px;
  }

  .feature-image img {
    max-height: 220px;
  }
}

@media (max-width: 480px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature-card {
    padding: 10px;
  }

  .feature-label {
    font-size: 0.95rem;
  }

  .feature-image {
    min-height: 170px;
    padding: 6px;
  }

  .scroll a {
    right: 12px;
    bottom: 12px;
  }
}

/* =========================================================
   動画
========================================================= */
.movie-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
}

.movie-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   製品紹介（名称は折り返し）
========================================================= */
.product-block {
  margin-top: 8px;
}

.product-block + .product-block {
  margin-top: 28px;
}

.product-title {
  margin: 0 0 14px;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #222;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  align-items: center;
}

.product-table-wrap {
  overflow-x: auto;
}

/* 共通テーブル */
.product-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid #999;
  background: #fff;
}

.product-table th,
.product-table td {
  border: 1px solid #999;
  padding: 10px 12px;
  vertical-align: middle;
  font-size: 0.98rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.product-table thead th {
  background: #bfbfbf;
  color: #222;
  font-weight: 700;
  text-align: center;
}

.product-table td.center {
  text-align: center;
}

.product-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-image img {
  width: 100%;
  max-width: 170px;
  height: auto;
  object-fit: contain;
}

/* パウダー表 */
.product-table--powder th:nth-child(1),
.product-table--powder td:nth-child(1) {
  width: 5%;
}

.product-table--powder th:nth-child(2),
.product-table--powder td:nth-child(2) {
  width: 43%;
}

.product-table--powder th:nth-child(3),
.product-table--powder td:nth-child(3) {
  width: 17%;
}

.product-table--powder th:nth-child(4),
.product-table--powder td:nth-child(4) {
  width: 17%;
}

.product-table--powder th:nth-child(5),
.product-table--powder td:nth-child(5) {
  width: 18%;
}

/* スラリー表 */
.product-table--slurry th:nth-child(1),
.product-table--slurry td:nth-child(1) {
  width: 5%;
}

.product-table--slurry th:nth-child(2),
.product-table--slurry td:nth-child(2) {
  width: 41%;
}

.product-table--slurry th:nth-child(3),
.product-table--slurry td:nth-child(3) {
  width: 14%;
}

.product-table--slurry th:nth-child(4),
.product-table--slurry td:nth-child(4) {
  width: 10%;
}

.product-table--slurry th:nth-child(5),
.product-table--slurry td:nth-child(5) {
  width: 15%;
}

.product-table--slurry th:nth-child(6),
.product-table--slurry td:nth-child(6) {
  width: 15%;
}

/* スマホ表示 */
@media (max-width: 800px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-image {
    margin-top: 8px;
  }

  .product-image img {
    max-width: 220px;
  }

  .product-table th,
  .product-table td {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .product-title {
    font-size: 1.25rem;
  }

  .product-table th,
  .product-table td {
    padding: 7px 8px;
    font-size: 0.84rem;
  }

  .product-table td:nth-child(2) {
    word-break: break-word;
  }
}

/* =========================================================
   用途例
========================================================= */
#Application img {
  display: block;
  margin: 0 auto 12px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

#Application h4 {
  color: var(--subtext);
  text-align: center;
  font-size: 0.98rem;
  font-weight: 400;
}

/* =========================================================
   フッター
========================================================= */
footer {
  padding: 22px 16px;
  background: #222;
  color: #fff;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.8;
}

/* =========================================================
   ページトップ
========================================================= */
.scroll a {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  box-shadow: var(--shadow);
}

.scroll a:hover {
  background: rgba(0, 0, 0, 0.8);
  text-decoration: none;
}

/* =========================================================
   レスポンシブ補正
========================================================= */
@media (max-width: 800px) {
  header {
    min-height: 240px;
  }

  #logo {
    top: 12%;
    width: min(360px, 84vw);
  }

  #menubar a {
    font-size: 0.98rem;
    padding: 8px 12px;
  }

  section {
    padding: 22px 16px;
  }

  #contents h2 {
    font-size: 1.2rem;
  }

  .news-item {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px 12px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
    line-height: 1.75;
  }

  header {
    min-height: 210px;
    padding-bottom: 56px;
  }

  #logo {
    top: 10%;
    width: min(300px, 88vw);
  }

  #menubar {
    bottom: 8px;
  }

  #menubar a {
    font-size: 0.82rem;
    padding: 7px 10px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature-card {
    padding: 10px;
  }

  .feature-label {
    font-size: 0.95rem;
  }

  .feature-image {
    min-height: 170px;
    padding: 6px;
  }

  .scroll a {
    right: 12px;
    bottom: 12px;
  }
}