@charset "UTF-8";

/* =========================
   変数
========================= */
:root {
  --base-color: #000;
  --link-color: #666;
  --linkhover-color: #999;
  --back-color: #f7f7f7;
  --border-color: #ccc;
  --white-color: #fff;
}

/* =========================
   共通
========================= */
img {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--linkhover-color);
}

.underline {
  border-bottom: 3px solid var(--base-color);
  padding-bottom: 0.5rem;
}

/* =========================
   ヘッダー
========================= */
.head {
  display: flex;
  align-items: center;
  padding: 1rem 0;
}

.head h1 {
  padding: 1rem 0;
}

.head h1 a {
  font-weight: bold;
  font-size: 4rem;
}

.head h1 .sub-text {
  display: block;
  font-size: 0.5em;
  font-weight: normal;
  color: #888;
  letter-spacing: 0.12em;
}

.telbox {
  margin-left: auto;
  font-size: 1.5rem;
}

/* =========================
   ナビゲーション
========================= */
#navi {
  width: 100%;
  margin: 1rem 0 1.5rem;
  text-align: center;
}

#navi ul {
  display: inline-flex;
  justify-content: center;
  gap: 5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

#navi li a {
  display: block;
  font-size: 1.4rem;
  font-weight: 400;
  padding: 1rem 1.5rem;
}

#navi li a:hover {
  background-color: var(--back-color);
}

/* =========================
   メイン画像
========================= */
.mainimg img {
  width: 100%;
}

/* =========================
   メッセージエリア
========================= */
.center {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 95vh;
  background: #87CEEB;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.message-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 20px;
  background-color: #87CEEB;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.side-image {
  width: 25%;
  max-width: 300px;
  min-width: 150px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.message-text {
  max-width: 60%;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.8;
  text-align: center;
}

.message-text p {
  font-weight: normal;
  font-size: 1.2rem;
  margin-top: 10px;
}

/* =========================
   対応材質
========================= */
.materials {
  background-color: #fafafa;
  padding: 3rem 1.5rem;
}

.materials-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 4rem;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.materials-col,
.materials-block {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
}

.materials-head {
  font-size: 1.3rem;
  font-weight: bold;
  border-left: 5px solid #333;
  padding-left: 0.5rem;
  margin-bottom: 3rem;
}

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

.materials-list li {
  padding: 0.3rem 0;
  border-bottom: 1px dotted #ccc;
}

.materials-list li:last-child {
  border-bottom: none;
}

.materials-others {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.materials-note {
  font-size: 0.9rem;
  color: #666;
  margin: 0.5rem 0 1rem;
}

/* =========================
   フッター
========================= */
footer {
  background-color: var(--back-color);
  padding: 5rem 0;
  text-align: center;
}

footer .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

footer .col {
  flex: 1 1 300px;
}

footer .map {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  border: 0;
}

/* =========================
   コピーライト
========================= */
.copyright {
  text-align: center;
  padding: 1rem 0;
  background-color: var(--white-color);
}

/* =========================
   ページトップ
========================= */
#pagetop {
  position: fixed;
  bottom: 15px;
  right: 15px;
}

#pagetop a {
  display: block;
  width: 50px;
  padding: 10px 5px;
  text-align: center;
  background-color: var(--base-color);
  color: var(--white-color);
}

#pagetop a:hover {
  background-color: var(--link-color);
}

/* =========================
   レスポンシブ
========================= */
@media screen and (max-width: 992px) {
  .side-image {
    width: 180px;
  }
  .message-text {
    font-size: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .head {
    flex-direction: column;
    text-align: center;
  }

  .head h1 a {
    font-size: 2.4rem;
  }

  .telbox {
    margin-left: 0;
    font-size: 1.4rem;
  }

  #navi ul {
    flex-direction: column;
    gap: 1rem;
  }

  .message-wrap {
    flex-direction: column;
  }

  .side-image {
    width: 100%;
    max-width: none;
  }

  .message-text {
    max-width: 100%;
    font-size: 1.5rem;
  }

  .materials-grid,
  .materials-others {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .message-text {
    font-size: 1.2rem;
  }

  .message-text p {
    font-size: 0.9rem;
  }
}
.carousel {
  width: 100%;
  overflow: hidden;
  margin: 4rem 0;
}
.track {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
}
.track img {
  width: 220px;
  height: auto;
  margin-right: 20px;
  flex-shrink: 0;
}
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@media screen and (max-width: 768px) {
  .track img {
    width: 160px;
  }
}
