/* styles.css */

/* Base */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #0e9923;
  background-color: #f9f9f9;
}
a {
  text-decoration: none;
  color: inherit;
}
.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Header */
header.hero {
  background: #00b8d4;
  color: #fff;
  text-align: center;
  padding: 80px 20px 60px;
}
.site-logo {
  max-width: 150px;
  display: block;
  margin: 0 auto 20px;
}
.hero h1 {
  font-size: 2.2em;
  margin-bottom: 0.5em;
}
.hero p {
  font-size: 1.1em;
  margin-bottom: 1.5em;
}
.btn {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #00b8d4;
  padding: 12px 25px;
  font-weight: bold;
  border-radius: 30px;
  transition: background 0.3s;
}
.btn i {
  margin-left: 8px;
}
.btn:hover {
  background: #e0f7fa;
}

/* Section Headings */
h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}
h2 i {
  margin-right: 10px;
  color: #00b8d4;
}
section {
  margin-bottom: 60px;
}

/* 地図用コンテナ */
.map-container {
  border: 1px solid #ddd;
  padding: 16px;
  max-height: 150px;
  overflow: hidden;
  margin: 0 auto 40px;
}

/* SVGを幅100%に調整 */
.map-container svg {
  width: 80%;
  height: auto;
}



/* Categories */
.categories ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.categories li a {
  display: inline-block;
  background: #00b8d4;
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: bold;
  transition: background 0.3s;
}
.categories li a:hover {
  background: #0097a7;
}

/* Featured Devices */
.featured-devices .device-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.featured-devices .device {
  flex: 0 0 32%;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  text-align: center;
}
.featured-devices .device img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 10px;
}
.featured-devices .device h3 {
  margin: 15px 0 10px;
  font-size: 1.2em;
}
.featured-devices .device p {
  font-size: 0.95em;
  color: #666;
}

/* Provider List */
.provider-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.provider {
  position: relative;
  flex: 0 1 calc(33.333% - 20px);
  background: #fff;
  border-radius: 10px;
  padding: 60px 15px 15px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  text-align: center;
}
.provider img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}
.provider-icon {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: #e0f7fa;
  color: #00b8d4;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
}

/* FAQ */
.faq dl {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.faq dt {
  font-weight: bold;
  margin-top: 15px;
  display: flex;
  align-items: center;
}
.faq dt i {
  margin-right: 8px;
  color: #00b8d4;
}
.faq dd {
  margin-left: 20px;
  margin-bottom: 10px;
}

/* Footer */
footer {
  background: #eceff1;
  padding: 40px 0;
  text-align: center;
}
.footer-logo {
  max-width: 120px;
  margin: 0 auto 15px;
  display: block;
}
footer p {
  margin: 10px 0;
  font-size: 0.9em;
  color: #555;
}
footer nav a {
  color: #555;
  margin: 0 8px;
  font-size: 0.9em;
}
footer nav a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .featured-devices .device,
  .provider {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .categories ul {
    justify-content: center;
  }
}