@charset "UTF-8";

/* 全体 */
html,body,header,main,div,
h1,h2,h3,h4,h5,h6,ul,li,p{
  margin: 0;
  padding: 0;

}
html, body{
  font-family: adobe-garamond-pro, 'Zen Old Mincho', serif;
  color: #333;
}
h1,h2,h3,h4,h5,h6{
  font-weight: normal;
}
li{
  list-style: none;
}
a{
  text-decoration: none;
  color: #333;
}
.horizontal-scroll{
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  white-space: nowrap;
  width: 100vw;
  height: 100vh;
}
/* ヘッダー */
header{
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 500px;
  height: 100vh;
  background-color: #fff;
}
/* ハンバーガーメニュー */
.vertical-menu {
  width: 60px;
  height: calc(100vh - 40px);
  background-color: #65acc1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  position: fixed; 
  left: 0; 
  top: 0; 
  cursor: pointer;
  z-index: 5;
}
.menu-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.menu-icon .line {
  width: 30px;
  height: 1px;
  background-color: #f0ebe5;
  margin: 5px 0;
  transition: all 0.3s;
}
.menu-icon.open .line:nth-child(1) {
  transform: rotate(45deg);
  position: relative;
  top: 6px;
}
.menu-icon.open .line:nth-child(2) {
  transform: rotate(-45deg);
  position: relative;
  bottom: 5px;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 4;
  opacity: 0;
  transform: translateX(-100%);
  transition: transform 0.8s ease, opacity 0.5s ease;
}
.overlay.show {
  opacity: 1;
  transform: translateX(0);
}
.menu-items {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.menu-items li {
  text-decoration: none;
  font-size: 20px;
  margin: 15px 0;
  transition: color 0.3s;
}
.menu-items li a:hover {
  color: #65acc1;
}
/* portfolio */
.portfolio-overlay {
  position: relative;
  overflow: hidden;
}
.portfolio-overlay img {
  display: block;
  width: 300px;
  height: 200px;
  transition: opacity 0.3s;
}
.portfolio-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s;
  overflow: hidden;
}
.portfolio-overlay .portfolio-details {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
}
.portfolio-overlay:hover::before {
  opacity: 1;
}
.portfolio-overlay:hover .portfolio-details {
  opacity: 1;
}
/* contact */
.contact-form {
  display: flex;
  flex-direction: column;
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  margin-bottom: 5px;
  font-weight: bold;
  display: block;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}
.form-group input[type="submit"] {
  background-color: #65acc1;
  color: #fff; 
  cursor: pointer; 
}
/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.page-link {
  padding: 10px 15px;
  background-color: #a0d8ef;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.5s;
}
.page-link:hover {
  background-color: #65acc1;
}
.page-link.active {
  background-color: #333;
}
/* single */
.custom-image-class{
  display: block;
  margin: 20px auto;
}
/* singleページネーション */
.single-pagination {
  display: flex;
  justify-content: space-between; 
  padding: 20px 0;
  margin-top: 30px; 
}
.prev-container, .next-container {
  flex: 1; 
}
.single-pagination a {
  transition: background-color 0.3s; 
  display: inline-block; 
  text-align: center; 
  width: auto; 
}
.prev-container {
  text-align: left; 
}
.next-container {
  text-align: right; 
}
/* コピーライト */
.copylight{
  position: fixed;
  bottom: 1px;
  right: 1px;
  font-size: 12px;
  color: #c0c0c0;
}
@media screen and (max-width: 768px) {
  .horizontal-scroll {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100vw;
    height: auto;
  }
  .logo{
    width: 120px;
  }
  header {
    width: 100vw;
    height: 100px;
    display: flex;
    justify-content: space-between;
  }
  .vertical-menu{
  width: 50px;
  height: 25px;
  background-color: #fff;
  border-radius: 10px;
  padding: 10px 5px;
  display: flex;
  top: 30px;
  left: auto;
  right: 10px;
  align-items: center;
  cursor: pointer;
  }
  .vertical-menu .line{
  background-color: #000;
  height: 2px;
  }
  .frontpage-nav{
    display: none;
  }
  .logo{
    position: static;
  }
  .single-pagination{
    margin: 15px 5px;
    padding: 0;
  }
  .portfolio-overlay img{
    width: 90%;
    height: auto;
    margin: 0 auto;
  }
}