@charset "UTF-8";

.readmore {
  font-size: 0.875rem;
  text-align: center;
}
.readmore a {
  padding-bottom: 1px;
  color: #333;
  position: relative;
}
.readmore a::after {
  content: '';
  position: absolute;
  height: 1px;
  width: 100%;
  left: 0;
  bottom: 0;
  background: #333;
  transition: all 200ms ease;
}
.readmore a:hover::after {
  opacity: 0;
  transform: translateY(3px);
}
.pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.pagination li {
  padding: 0 10px;
}
.pagination ul a:hover {
  opacity: 0.7;
}
/*-------------------------------------------
Forms
-------------------------------------------*/
input,
textarea {
  width: 100%;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 15px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #333;
  box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

input[type="submit"] {
  background-color: #333;
  color: #fff;
  padding: 15px 30px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  min-height: 48px; /* タッチ操作に最適化 */
}

input[type="submit"]:hover {
  background-color: #555;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

input[type="submit"]:active {
  transform: translateY(0);
}

main .page-title {
  border-bottom: solid 1px #777;
  font-size: 1.75rem;
  padding-bottom: 10px;
  margin-bottom: 60px;
}

#searchform {
  position: relative;
  margin-bottom: 60px;
}
#searchform button {
  position: absolute;
  top: 8px;
  right: 12px;
}

/*-------------------------------------------
container
-------------------------------------------*/
#container {
  margin: 0 auto !important;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  min-height: calc(100vh - 200px);
}

main {
  flex: 1;
  min-width: 0; /* Flexboxの縮小問題を解決 */
}

main article {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 30px;
}

main article img {
  width: 100%;
  height: auto;
  display: block;
}

main .meta {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  padding: 0 20px;
}

main .meta li {
  font-size: 0.875rem;
  color: #666;
  background: #f5f5f5;
  padding: 4px 8px;
  border-radius: 4px;
}

main .text {
  padding: 20px;
  line-height: 1.7;
}

main .article-title {
  margin: 0 0 15px 0;
  padding: 20px 20px 0 20px;
  font-size: 1.5rem;
  line-height: 1.4;
}

main .article-title a {
  color: #333;
  transition: color 0.3s ease;
}

main .article-title a:hover {
  color: #666;
}

/*-------------------------------------------
Tablet
-------------------------------------------*/
@media screen and (max-width: 1024px) {
  #container {
    gap: 30px;
  }
  
  main .text {
    padding: 15px;
  }
  
  main .article-title {
    padding: 15px 15px 0 15px;
    font-size: 1.375rem;
  }
  
  main .meta {
    padding: 0 15px;
  }
}

/*-------------------------------------------
Mobile
-------------------------------------------*/
@media screen and (max-width: 768px) {
  #container {
    flex-direction: column;
    gap: 20px;
  }
  
  main {
    width: 100%;
  }
  
  main article {
    margin-bottom: 20px;
  }
  
  main .text {
    padding: 15px;
  }
  
  main .article-title {
    padding: 15px 15px 0 15px;
    font-size: 1.25rem;
  }
  
  main .meta {
    padding: 0 15px;
    gap: 10px;
  }
  
  main .meta li {
    font-size: 0.8rem;
  }
}

/*-------------------------------------------
Small Mobile
-------------------------------------------*/
@media screen and (max-width: 480px) {
  main .text {
    padding: 12px;
  }
  
  main .article-title {
    padding: 12px 12px 0 12px;
    font-size: 1.125rem;
  }
  
  main .meta {
    padding: 0 12px;
  }
}

/*-------------------------------------------
sidebar
-------------------------------------------*/
#sidebar {
  width: 300px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

#sidebar .side-title {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.author {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
}

.author img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 15px auto;
  display: block;
  object-fit: cover;
}

.author .profile {
  font-size: 0.875rem;
  text-align: left;
  line-height: 1.6;
}

.archive {
  margin-bottom: 30px;
}

.archive ul {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.archive li {
  font-size: 0.875rem;
  border-bottom: 1px solid #e0e0e0;
  padding: 15px;
  text-align: left;
  transition: background-color 0.3s ease;
}

.archive li:last-child {
  border-bottom: none;
}

.archive li:hover {
  background-color: #f5f5f5;
}

.archive a {
  color: #333;
  display: block;
  transition: color 0.3s ease;
}

.archive a:hover {
  color: #666;
}

/*-------------------------------------------
Tablet
-------------------------------------------*/
@media screen and (max-width: 1024px) {
  #sidebar {
    width: 280px;
    padding: 15px;
  }
  
  .author {
    padding: 15px;
  }
  
  .author img {
    width: 80px;
    height: 80px;
  }
}

/*-------------------------------------------
Mobile
-------------------------------------------*/
@media screen and (max-width: 768px) {
  #sidebar {
    width: 100%;
    padding: 20px;
    position: static;
    margin-top: 20px;
  }
  
  .author {
    margin-bottom: 20px;
  }
  
  .archive {
    margin-bottom: 20px;
  }
}

/*-------------------------------------------
Small Mobile
-------------------------------------------*/
@media screen and (max-width: 480px) {
  #sidebar {
    padding: 15px;
  }
  
  .author {
    padding: 15px;
  }
  
  .author img {
    width: 70px;
    height: 70px;
  }
  
  .archive li {
    padding: 12px;
  }
}

/*-------------------------------------------
single
-------------------------------------------*/
.post-link {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 40px auto 0 auto;
  max-width: 600px;
}

.post-link li {
  flex: 1;
}

.post-link a {
  display: block;
  padding: 15px 20px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  font-weight: 500;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-link a:hover {
  border-color: #333;
  background-color: #f9f9f9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/*-------------------------------------------
Tablet
-------------------------------------------*/
@media screen and (max-width: 1024px) {
  .post-link {
    max-width: 500px;
    gap: 15px;
  }
  
  .post-link a {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}

/*-------------------------------------------
Mobile
-------------------------------------------*/
@media screen and (max-width: 768px) {
  .post-link {
    flex-direction: column;
    gap: 15px;
    margin: 30px auto 0 auto;
  }
  
  .post-link a {
    padding: 15px 20px;
    font-size: 1rem;
  }
}

/*-------------------------------------------
Small Mobile
-------------------------------------------*/
@media screen and (max-width: 480px) {
  .post-link {
    margin: 20px auto 0 auto;
  }
  
  .post-link a {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}
