/* ページ固有のスタイル - 各ページのコンテンツ用スタイル */

/* ======= 共通コンテンツスタイル ======= */

.sitemap-category h2 {
  font-size: 20px; 
  margin: 30px 0 15px; 
  font-weight: bold; 
  color: #333;
  position: relative; 
  padding-left: 15px;
}

.sitemap-category h2::before {
  content: ""; 
  position: absolute; 
  left: 0; 
  top: 0; 
  bottom: 0;
  width: 5px; 
  border-radius: 6px;
  background: linear-gradient(to bottom, #1e90ff, #87cefa);
}

.sitemap-category p,
.sitemap-category ul,
.sitemap-category ol {
  margin-left: 15px; 
  font-size: 16px; 
  margin-bottom: 15px;
}

ul {
  list-style: disc; 
  padding-left: 15px; 
}

.sub-list {
  list-style: decimal; 
  padding-left: 15px;
}

/* ======= index.php 固有のスタイル ======= */

/* メインコンテンツ（index.php） */
.main-content {
  max-width: 800px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 30px; 
  text-align: center;
  box-sizing: border-box;
  background-color: #fff;
  margin-bottom: 30px; 
  position: relative;
  z-index: 10;
}

.main-content h2 {
  margin-top: 0;
  margin-bottom: 20px;
}

.main-content input[type="text"] {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.main-content button {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  background-color: #1e90ff;
  color: #fff;
  cursor: pointer;
}

.main-content button:hover {
  background-color: #187bcd;
}

/* 情報ボックス */
.info-box {
  border: 1px solid #ccc;
  padding: 15px;
  margin-top: 20px;
  border-radius: 5px;
  background-color: #fafafa;
  text-align: left;
}

.info-box h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.more-details {
  display: block;
  text-align: right;
  margin-top: 10px;
  color: #1e90ff;
  text-decoration: none;
  font-size: 14px;
}

.more-details:hover {
  text-decoration: underline;
}

/* ======= sitemap.php 固有のスタイル ======= */

.sitemap-grid {
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 40px; 
  margin-top: 20px;
}

.sitemap-grid .sitemap-category h2 {
  margin: 0 0 16px;
}

.sitemap-grid .sitemap-category ul {
  list-style: none; 
  padding: 0; 
  margin: 0 0 0 15px;
}

.sitemap-grid .sitemap-category li {
  margin-bottom: 10px;
}

.sitemap-grid .sitemap-category a {
  font-size: 16px; 
  text-decoration: none; 
  color: #1e90ff;
}

.sitemap-grid .sitemap-category a:hover {
  text-decoration: underline;
}

/* ======= details.php 固有のスタイル ======= */

.guide-section {
  margin-bottom: 40px;
}

.guide-step {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
}

.step-title {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 10px;
  color: #1e90ff;
}

.step-description {
  margin-bottom: 15px;
  line-height: 1.6;
}

.step-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin: 10px 0;
}

.image-caption {
  font-size: 14px;
  color: #666;
  font-style: italic;
  margin-top: 5px;
}

.note-box {
  background-color: #f8f8f8;
  border-left: 4px solid #ffc107;
  padding: 15px;
  margin: 20px 0;
  border-radius: 4px;
}

.note-box h4 {
  margin-top: 0;
  color: #d39e00;
}

.button-example {
  display: inline-block;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 3px 8px;
  margin: 0 3px;
  font-family: monospace;
  font-weight: bold;
}

.action-button {
  display: inline-block;
  background-color: #1e90ff;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 20px;
  margin: 20px 0;
  text-decoration: none;
  text-align: center;
  font-weight: bold;
  transition: background-color 0.2s;
}

.action-button:hover {
  background-color: #187bcd;
}

.step-list {
  padding-left: 10px;
  margin-bottom: 20px;
}

.step-item {
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
  line-height: 1.5;
}

.step-number {
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* ======= contact.php 固有のスタイル ======= */

iframe {
  border: none;
  width: 100%;
  min-height: 900px;
}

/* レスポンシブ対応 */
@media (max-width: 720px) {
  .container {
    padding: 15px 5%;
  }
  
  h1 {
    font-size: 24px; 
    margin: 15px 0;
  }
  
  .sitemap-category h2 {
    font-size: 18px; 
    margin: 25px 0 10px; 
    padding-left: 12px;
  }
  
  .sitemap-category h2::before {
    width: 4px; 
    border-radius: 4px;
  }
  
  .sitemap-category p,
  .sitemap-category ul,
  .sitemap-category ol {
    margin-left: 12px; 
    font-size: 15px;
  }
  
  ul {
    padding-left: 12px;
  }
  
  /* sitemap.php モバイル対応 */
  .sitemap-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .sitemap-grid .sitemap-category ul {
    margin-left: 0;
  }
  
  .sitemap-grid .sitemap-category li {
    margin-bottom: 0;
  }
  
  .sitemap-grid .sitemap-category a {
    display: block;
    width: 100%;
    background: #e0e0e0;
    border-radius: 8px;
    padding: 12px 0;
    margin: 10px 0;
    text-align: center;
    color: #333;
    text-decoration: none;
    transition: background .2s;
  }
  
  .sitemap-grid .sitemap-category a:hover {
    background: #d5d5d5;
  }
  
  /* index.php モバイル対応 */
  .main-content {
    padding: 20px;
  }
  
  .main-content h2 {
    font-size: 18px;
  }
  
  .main-content button {
    width: 100%;
  }
  
  /* contact.php モバイル対応 */
  iframe {
    min-height: 700px;
  }
  
  /* 広告のモバイル対応 */
  .ad-container-top,
  .ad-container-middle,
  .ad-container-bottom {
    margin: 15px 0;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 15px;
  }
  
  /* contact.php モバイル対応 */
  iframe {
    min-height: 800px;
  }
}