* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", "Yu Gothic", "Yu Gothic UI", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  background: #f5f5f5;
}

#wrap {
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
}

#header {
  background: #2c3e50;
  padding: 24px 32px;
  border-bottom: 4px solid #3498db;
}

#header .title {
  margin-bottom: 8px;
}

#header .title a {
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.5px;
}

#header .title a:hover {
  color: #3498db;
}

#header .description h1 {
  color: #bdc3c7;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

#navi {
  background: #34495e;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
}

#navi ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

#navi li a {
  color: #ecf0f1;
  text-decoration: none;
  font-size: 14px;
  padding: 12px 0;
  display: block;
}

#navi li a:hover {
  color: #3498db;
}

#navi .navi_side {
  display: none;
}

.p_bread {
  padding: 12px 32px;
  font-size: 12px;
  color: #7f8c8d;
  background: #ecf0f1;
  margin: 0;
}

#content {
  display: flex;
  padding: 32px;
  gap: 32px;
}

#main {
  flex: 1;
  min-width: 0;
}

.h2_topText {
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #3498db;
}

.textwidget {
  color: #555;
  line-height: 1.8;
}

.textwidget a {
  color: #3498db;
  text-decoration: none;
}

.textwidget a:hover {
  text-decoration: underline;
}

#sidebar {
  width: 240px;
  flex-shrink: 0;
}

.rightWidget {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 16px;
}

.rightWidget .heading {
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #3498db;
}

.rightWidget ul {
  list-style: none;
}

.rightWidget li {
  margin: 0;
}

.rightWidget li a {
  display: block;
  padding: 8px 0;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid #e0e0e0;
}

.rightWidget li:last-child a {
  border-bottom: none;
}

.rightWidget li a:hover {
  color: #3498db;
}

#footer {
  background: #2c3e50;
  padding: 24px 32px;
  text-align: center;
}

#footer address {
  color: #95a5a6;
  font-size: 13px;
  font-style: normal;
}

#footer address a {
  color: #ecf0f1;
  text-decoration: none;
}

#footer address a:hover {
  color: #3498db;
}

@media (max-width: 768px) {
  #content {
    flex-direction: column;
    padding: 20px;
  }
  
  #sidebar {
    width: 100%;
  }
  
  #header {
    padding: 20px;
  }
  
  #header .title a {
    font-size: 20px;
  }
  
  #navi {
    padding: 0 20px;
  }
}