/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Verdana, Arial, sans-serif, Arial, Helvetica;
  background-color: #fff;
  color: #333;
}

/* Container */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background-color: #fff;
  display: flex;
  flex-direction: column;
}

/* モバイル: デフォルトは100% */
@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

/* タブレット */
@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

/* デスクトップ小 */
@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

/* デスクトップ中 */
@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

/* デスクトップ大 */
@media (min-width: 1536px) {
  .container {
    max-width: 1440px;
  }
}

/* Header */
.header {
  background-color: #1f4d1f;
  /* background: linear-gradient(180deg, #5A8C69 0%, #4A7C59 100%); */
  padding: 15px 20px;
  /* border-bottom: 3px solid #3A6C49; */
}

.header h1 {
  color: #fff;
  font-size: 24px;
  font-weight: normal;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Subheader */
.subheader {
  background-color: #c44646;
  /* background: linear-gradient(180deg, #d76b6b 0%, #c75b5b 100%); */
  padding: 8px 20px;
  /* border-bottom: 2px solid #b74b4b; */
}

.subheader span {
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Main Content */
.main-content {
  display: flex;
  min-height: 400px;
}

/* Left Side - Links */
.links-section {
  flex: 55;
  background-color: #fff;
  border-right: 1px solid #ddd;
}

.link-list {
  list-style: none;
}

.link-list li {
  border-bottom: 1px solid #e5e5e5;
  background-color: #fbfbf5;
}

/* .link-list li:nth-child(even) {
  background-color: #f9f9f0;
}

.link-list li:nth-child(odd) {
  background-color: #fff;
} */

.link-list li a {
  display: block;
  padding: 12px 20px;
  color: #0066cc;
  text-decoration: none;
  font-size: 14px;
  position: relative;
  padding-left: 45px;
}

.link-list li a:hover {
  background-color: #fffacd;
  text-decoration: underline;
}

/* Green Arrow Icon */
.link-list li a::before {
  content: "▶";
  position: absolute;
  left: 20px;
  color: #4a7c59;
  font-size: 10px;
}

/* Accordion Styles */
.link-list li.has-submenu > a.accordion-trigger::before {
  content: "▶";
  transition: transform 0.3s ease;
}

.link-list li.has-submenu.active > a.accordion-trigger::before {
  transform: rotate(90deg);
}

.link-list .submenu {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #f5f5f0;
}

.link-list li.has-submenu.active .submenu {
  max-height: 500px;
}

.link-list .submenu li {
  border-bottom: 1px solid #e0e0d8;
  background-color: #f5f5f0;
}

.link-list .submenu li a {
  padding: 10px 20px;
  padding-left: 55px;
  font-size: 13px;
  color: #0066cc;
}

.link-list .submenu li a::before {
  content: "•";
  left: 40px;
  font-size: 14px;
  color: #666;
}

.link-list .submenu li a:hover {
  background-color: #fffacd;
}

/* Non-list submenu content (e.g., <div class="submenu">text</div>) */
.link-list li.has-submenu > .submenu:not(ul) {
  padding-left: 40px;
  color: #666;
}

/* Right Side - Image and Search */
.image-section {
  flex: 45;
  display: flex;
  flex-direction: column;
  background-color: #fff;
}

.image-container {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 20px;
}

.domain-girl {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  display: block;
}

/* Search Container */
.search-container {
  padding: 6px 12px;
  background-color: #c44646;
  /* border-top: 1px solid #ddd; */
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.search-input {
  flex: 0 1 auto;
  width: 30%;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 14px;
  background-color: #fff;
}

.search-input:focus {
  outline: none;
  border-color: #4a7c59;
  box-shadow: 0 0 3px rgba(74, 124, 89, 0.3);
}

.search-button {
  padding: 6px 12px;
  background-color: #1f4d1f;
  /* background: linear-gradient(180deg, #5a8c69 0%, #4a7c59 100%); */
  color: #fff;
  /* border: 1px solid #3a6c49; */
  border-radius: 3px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-button:hover {
  background: linear-gradient(180deg, #6a9c79 0%, #5a8c69 100%);
}

.search-button:active {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
  background-color: #1f4d1f;
  /* background: linear-gradient(180deg, #5a8c69 0%, #4a7c59 100%); */
  padding: 12px 20px;
  /* border-top: 3px solid #3a6c49; */
}

.related-links {
  color: #fff;
  font-size: 12px;
  text-align: left;
}

.footer-label {
  font-weight: bold;
  margin-right: 8px;
}

.related-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 5px;
}

.related-links a:hover {
  text-decoration: underline;
}

.separator {
  color: #fff;
  margin: 0 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }

  .links-section {
    flex: 1;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }

  .image-section {
    min-height: 300px;
  }

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

  .related-links {
    text-align: center;
    font-size: 11px;
  }

  .search-container {
    flex-direction: column;
  }

  .search-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .link-list li a {
    font-size: 13px;
    padding: 10px 15px;
    padding-left: 35px;
  }

  .link-list li a::before {
    left: 15px;
  }

  .header h1 {
    font-size: 18px;
  }

  .subheader span {
    font-size: 12px;
  }
}
