@charset "UTF-8";

body {
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", sans-serif, Verdana, "メイリオ", "Meiryo", "MS Ｐゴシック", "MS PGothic", Sans-Serif;
    color: #393b3e;
    background-color: #fff;
    font-size: 1rem;
    line-height: 1.8;
    letter-spacing: 0.2em;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

.wrapper {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 4%;
    text-align: center;
}

.sec-title {
    color: #5b4310;
    display: inline-block;
    font-size: 1.6rem;
    margin: 60px 0 30px 0;
    position: relative;
    padding-bottom: 12px;
}

.sec-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 284px;
    height: 24px;
    background: url('../images/top/h2_line\ .png') no-repeat center;
    background-size: contain;
    pointer-events: none;
    z-index: 1;
}

.section-gap {
    margin-top: 2.5em;
}

#header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(137, 137, 137, 0.08);
    padding: 30px 0;
}

#header .wrapper {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#header .logo img {
  width: 195px;
  height: 32px;
  object-fit: contain;
}

#header nav ul {
  display: flex;
  gap: 45px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#header nav ul li img {
  height: 20px;
  width: auto;
    vertical-align: text-bottom;
}

#header nav ul li a {
  font-size: 0.9rem;
  text-decoration: none;
  color: #333;
  white-space: nowrap;
  position: relative;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #FFD8FC 0%, #FFD4BB 32%, #F4C6DC 70%, #DFFEB9 100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 2;
}

#about {
  scroll-margin-top: 100px;
}

#works{
  scroll-margin-top: 100px;
}

nav ul li a:hover::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 0.6;
}

.workslist {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.work-card {
  width: calc(33.333% - 20px);
  box-sizing: border-box;
  border: 1.5px dashed #ccc;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.work-card a {
  width: 100%;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

.work-card a img {
  height: 100%;
  object-fit: contain;
  display: block;
}

.work-title {
  font-size: 0.8rem;
}

.work-meta {
  font-size: 0.7rem;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.works-bg {
  background-image: url('../images/works/worksback_imges.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  padding: 20px 0;
  margin-top: 40px;
}

.back-button {
  text-align: center;
  margin-top: 30px;
}

.back-button a {
  display: inline-block;
  background-color: #393b3e;
  color: white;
  border: solid 1px #393b3e;
  padding: 14px 60px;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.back-button a:hover {
  background-color: #fff;
  color: #393b3e;
}

#footer {
    background-color: #fafafa00;
    text-align: center;
    padding: 34px 0;
    font-size: 0.7rem;
}

/* ===== works-detail ===== */
.works-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin:30px 0 40px;
}

.works-images img {
  width: auto;
  max-width: 100%;
  height: 320px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: zoom-in;
  object-fit: contain;
}

.works-images img.detail {
  height: 100px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 30px auto;
}

.works-images img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.section-visual {
  background-image: url('../images/works/worksback_imges.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100vw;
  min-height: 100vh;
  padding: 0px 0px 80px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-row {
  display: flex;
  padding: 20px 0;
  border-top: 3px dotted #5c5c5c;
}

.info-row:last-child {
  border-bottom: 3px dotted #5c5c5c;
}

.label {
  width: 30%;
  font-weight: bold;
  text-align: left;
  padding-right: 20px;
  font-size: 1rem;
}

.note {
  font-size: 0.65rem;
}

.content {
  width: 70%;
  font-size: 0.95rem;
  line-height: 1.8;
   text-align: left;
}

.content ul {
  padding-left: 1em;
  margin: 0;
}

.content ul li::marker {
  content: "・";
}

.client {
  display: block;
}

.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

@media screen and (max-width: 600px) {
  html {
    font-size: 100%;
  }

  body {
    font-size: 0.75rem; 
    line-height: 1.8;
    letter-spacing: 0.2em;
  }

  #header {
    position: static;
    box-shadow: none;
    padding: 20px 20px 10px;
  }

  #header .wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  #header .logo img {
    width: 170px;
    height: 30px;
  }

#header nav {
  width: 100%;
}

  #header nav ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    flex-wrap: nowrap;
    overflow-x: auto;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  #header nav ul li a {
    font-size: 1rem;  
    white-space: nowrap;
  }

  #header nav ul li img {
    height: 18px;
  vertical-align: text-bottom;
  }

  .wrapper {
    padding: 0 20px;
    margin: 0px 0px 30px;
  }

  h2.sec-title {
   font-size: 1.4rem;
    margin-top: 30px;
  }

  .sec-title::after {
    bottom: 0;
    transform: translateX(-50%) translateY(10px);
  }

  .workslist {
    flex-direction: column;
  }

  .work-card {
    width: 100%;
  }

  .work-card a {
    height: 180px; 
    margin-bottom: 16px;
  }

  .work-card a img {
    max-width: 80%;
  }

  .work-title {
    font-size: 1rem;
  }

  .work-meta {
    font-size: 0.85rem;
  }

.label {
  font-size: 0.86rem;
}

  .back-button a {
  padding: 14px 60px;
  font-size: 1rem;
}

.client {
  font-size: 0.95rem;
}

  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }

  #footer p {
    font-size: 0.6rem;
  }
}
 /* === Modal Styles === */
.modal {
  display: none;
  overflow-y: auto; 
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  padding: 40px 0; 
  text-align: center;
}

.modal-content {
  display: block;
  margin: 5% auto;
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1002;
}

.close {
  color: white;
  position: fixed;
  top: 20px;
  right: 40px;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1003;
}