/* =========================================================
   Global
========================================================= */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: #333;
  line-height: 1.8;
  background: #fff;
}

/* =========================================================
   Header / Nav
========================================================= */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0.7) 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 30px;
  z-index: 1500;
}
header img { height: 42px; }

.hamburger {
  position: relative;
  width: 32px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  margin-right: 50px;
  z-index: 1600;
}
.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #6a6a6a;
  border-radius: 2px;
  transition: all 0.4s ease;
}
.hamburger span:nth-child(1){ top: 0; }
.hamburger span:nth-child(2){ top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3){ bottom: 0; }
.hamburger.active span:nth-child(1){ top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity: 0; }
.hamburger.active span:nth-child(3){ bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }

/* overlay */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.3);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease;
  z-index: 1200;
}
.overlay.show { opacity: 1; visibility: visible; }

/* global nav */
.global-nav {
  position: fixed; top: 0; right: -100%;
  width: 7%; min-width: 160px; height: 100%;
  background: rgba(255,255,255,0.9);
  display: flex; flex-direction: column;
  align-items: flex-end; justify-content: flex-start;
  transition: right 0.5s ease;
  z-index: 1300;
  padding-top: 100px; padding-right: 30px;
  box-sizing: border-box;
}
.global-nav.open { right: 0; }
.global-nav a { display: block; margin: 10px 0; }
.global-nav a img { height: 15px; }

/* Header / Nav: タブレット対応 */
@media (max-width: 1024px) {
  .global-nav {
    width: 35%;
    min-width: 0;
    max-width: 320px;
  }
}

/* Header / Nav: SP・タブレット対応 */
@media (max-width: 768px) {
  header {
    padding: 20px 20px;
  }
  header img { height: 32px; }
  .hamburger {
    width: 26px;
    height: 20px;
    margin-right: 0;
  }
  .global-nav {
    width: 65%;
    min-width: 0;
    max-width: 280px;
    padding-top: 90px;
    padding-right: 24px;
  }
  .global-nav a img { height: 14px; }
}

/* Header / Nav: 小さめスマホ対応 */
@media (max-width: 480px) {
  header {
    padding: 16px 16px;
  }
  header img { height: 28px; }
  .hamburger {
    width: 22px;
    height: 17px;
  }
  .global-nav {
    width: 78%;
    max-width: 260px;
    padding-top: 70px;
    padding-right: 20px;
  }
  .global-nav a img { height: 13px; }
}

/* =========================================================
   Hero
========================================================= */
.hero {
  position: relative; width: 100%; height: auto; overflow: hidden;
}
.hero img { max-width: 100%; height: auto; }

.hero-icon {
  position: absolute;
  width: 5%; height: auto;
  z-index: 100;
  opacity: 0; transform: scale(0.8);
  animation: fadeInIcons 1.2s ease forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.hero-icon.space   { top: 17%; left: 21.5%; animation-delay: 0.2s; }
.hero-icon.graphic { top: 10%; right: 28%; animation-delay: 0.4s; }
.hero-icon.menu    { bottom: 35%; right: 27%; animation-delay: 0.6s; }
.hero-icon.product { bottom: 39%; left: 23.5%; animation-delay: 0.8s; }
.hero-icon.web     { bottom: 33%; left: 38%; animation-delay: 1.0s; }
.hero-icon.total   { top: 31%; left: 47.5%; animation-delay: 1.2s; }

@keyframes fadeInIcons {
  to { opacity: 0.65; transform: scale(1); }
}
.hero-icon:hover { opacity: 1 !important; transform: scale(1.1) !important; }

/* =========================================================
   Message
========================================================= */
.message {
  position: relative; text-align: center; padding: 200px 20px;
}
.message-title {
  max-width: 520px; width: 100%; height: auto; margin-bottom: 40px;
}
.message p {
  font-size: 16px; line-height: 2; color: #555; font-weight: bold;
}
.about-icon {
  position: absolute; bottom: 15%; right: 30%;
  width: 90px; height: auto; cursor: pointer;
  transition: transform 0.3s ease;
}
.about-icon:hover { transform: scale(1.1); }

/* =========================================================
   Works (common section frame)
========================================================= */
.works-section { padding: 100px 0; }
.works-title { text-align: left; margin-left: 30px; }
.works-title img { height: 75px; max-width: 100%; padding: 15px; }

/* =========================================================
   Top page (home) – Works grid
   ※ index.html は .home-works-grid を使用
========================================================= */
.home-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  box-sizing: border-box;
}
.home-works-grid .work-item {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.home-works-grid .work-item img {
  width: 100%; height: auto; display: block;
  transition: opacity 0.4s ease;
}
/* hover overlay (home only) */
.home-works-grid .work-overlay {
  position: absolute; inset: 0;
  display: flex; justify-content: center; align-items: center;
  background: rgba(255,255,255,0.6);
  opacity: 0; transition: opacity 0.4s ease;
}
.home-works-grid .work-overlay p {
  font-size: 14px; font-weight: bold; color: #333;
  text-align: center; padding: 0 15px;
}
.home-works-grid .work-item:hover img { opacity: 0.5; }
.home-works-grid .work-item:hover .work-overlay { opacity: 1; }

/* SP */
@media (max-width: 768px) {
  .home-works-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
  }
}

/* =========================================================
   Works page (works.html) – Filter menus & gallery
========================================================= */
.works-page { padding: 70px 0 80px; }

/* タイトル（works.htmlでも流用可能） */
.works-page .works-title img {
  margin-left: -10px; margin-top: 20px; width: 13%; height: auto;
}

/* フィルタメニュー（年） */
.works-year-menu {
  display: flex; flex-wrap: wrap;
  gap: 3%;
  margin-left: 7.5%;
  margin-top: 20px;
  margin-bottom: 60px;
}

.works-year-menu img {
  height: 11px; cursor: pointer;
}

.works-year-menu a {
  display: block;
  line-height: 0;
}

/* ギャラリー（works.html） */
.works-gallery {
  display: flex; flex-wrap: wrap; justify-content: flex-start;
  gap: 40px;
  padding: 60px 7.5%;
  box-sizing: border-box;
  margin: 0 auto;
}
.works-gallery .work-item {
  width: calc((100% - 80px) / 3);
  box-sizing: border-box;
  text-align: center;
}
.works-gallery .work-item img {
  width: 100%; height: auto; display: block; transition: opacity 0.4s ease;
}
.works-gallery .work-item p {
  text-align: left; font-size: 12px; margin-top: 5px;
  font-weight: bold; margin-bottom: 20%;
}

/* works.html: SP */
@media (max-width: 768px) {
  .works-gallery { display: block; padding: 0 20px; }
  .works-gallery .work-item { width: 100%; margin-bottom: 30px; }

  .works-year-menu {
    row-gap: 16px;
  }

  .works-page .works-title img {
    width: 30%;
  }
}

/* ===== Lightbox ===== */
.lb {
  position: fixed;
  inset: 0;
  display: none;           /* 初期非表示 */
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.85);
  z-index: 3000;           /* グローバルナビより上 */
}
.lb.is-open { display: flex; }

.lb__figure { margin: 0; position: relative; }
.lb__img {
  max-width: 90vw;
  max-height: 85vh;
  display: block;
}
.lb__caption {
  margin-top: 10px;
  color: #000;
  font-size: 14px;
  text-align: center;
}

.lb__close,
.lb__prev,
.lb__next {
  position: absolute;
  border: none;
  background: rgba(255,255,255,.15);
  color: #000;
  font-size: 20px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.lb__close { top: 20px; right: 24px; border-radius: 50%; z-index: 1; }
.lb__prev  { left: 12px;  top: 50%; transform: translateY(-50%); border-radius: 9999px; z-index: 1; }
.lb__next  { right: 12px; top: 50%; transform: translateY(-50%); border-radius: 9999px; z-index: 1; }

/* PC: 写真と被らないよう外側・近接配置 */
@media (min-width: 769px) {
  .lb__prev  { left: -40px; }
  .lb__next  { right: -40px; }
}

body.no-scroll { overflow: hidden; } /* 背景スクロール防止 */



/* =========================================================
   Contact（section & pages）
========================================================= */
.contact {
  text-align: center; padding: 120px 20px;
}
.contact img { height: 55px; margin-bottom: 30px; }
.contact p { font-size: 14px; font-family: 'Yu-Gthic'; font-weight: bold; color: #444; line-height: 2; }

/* contact page hero */
.contact-hero { text-align: left; margin: 120px 40px 40px; }
.contact-hero img { height: 55px; }

/* contact page form */
.contact-form {
  width: 80%; max-width: 800px; margin: 0 auto 100px; text-align: center;
}
.contact-form h2 {
  font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic";
  font-size: 28px; margin-bottom: 15px; font-weight: bold;
}
.contact-form .form-desc {
  font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic";
  font-size: 14px; color: #555; line-height: 2; margin-bottom: 40px;
}
.contact-form form { text-align: left; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-size: 14px; margin-bottom: 8px; font-weight: bold; }
.form-group input,
.form-group textarea {
  width: 100%; max-width: 100%;
  padding: 12px; border: 1px solid #ccc; font-size: 14px; box-sizing: border-box;
}
.phone-inputs { display: flex; gap: 8px; }
.phone-inputs input { width: calc(33% - 6px); }
.privacy-policy { margin-top: 30px; font-weight: bold; font-size: 14px; }
.policy-box {
  border: 1px solid #ccc; padding: 15px 30px;
  font-size: 12px; color: #555; margin-top: 10px; line-height: 1.8;
}
.submit-btn { border: none; background: transparent; padding: 0; display: block; margin: 30px auto 0; cursor: pointer; }

/* thankyou page */
.contact-thankyou{
  text-align: center; margin: 200px 40px 40px; padding-bottom: 150px;
  font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic";
}

/* =========================================================
   Page Top button
========================================================= */
#pageTopBtn {
  position: fixed; right: 25px; bottom: 40px;
  width: 60px; height: 60px; z-index: 2000;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
#pageTopBtn img { width: 100%; height: auto; cursor: pointer; }
#pageTopBtn.show { opacity: 1; pointer-events: auto; }

/* =========================================================
   About page
========================================================= */
.about-hero {
  position: relative; padding: 90px 5px 80px;
  display: flex; flex-direction: column; align-items: center;
}
.about-main {
  align-self: flex-start; margin-left: 30px; display: block; width: 12%;
}
.about-main img { height: auto; max-width: 100%; }
.about-text { text-align: center; margin-top: 40px; }

.about-message { text-align: center; padding: 80px 20px; }
.about-message h3 {
  font-family: 'Yu Gothic'; font-size: 24px; margin-bottom: 30px; font-weight: bold;
}
.about-message p {
  font-family: 'Yu Gothic'; font-size: 13px; font-weight: bolder;
  color: #444; line-height: 3; margin-bottom: 50px;
}
.about-gallery {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
}
.about-gallery img { width: 220px; height: auto; }

.company-profile { padding: 80px 20px; }
.company-profile img{
  align-self: flex-start; margin-left: 40px; display: block;
  margin: 0 0 40px; width: 12%;
}
.company-profile table {
  width: 50%; max-width: 800px; margin: 0 auto 50px;
  border-collapse: collapse; font-size: 14px; line-height: 1.8;
}
.company-profile th, .company-profile td {
  border-bottom: 1px solid #ccc; padding: 12px; vertical-align: top; text-align: left;
}
.company-profile th { width: 25%; font-weight: bold; color: #333; }
.company-profile td { color: #555; }

.company-images {
  display: flex; justify-content: center; gap: 5%; flex-wrap: wrap; margin-bottom: 30px;
}
.company-images img { width: 25%; height: auto; }

.company-map iframe {
  width: 100%; max-width: 55%; height: 400px; border: none;
  display: block; margin: 0 auto; margin-top: -20px;
}

/* =========================================================
   Footer
========================================================= */
footer {
  background: #cbcbcb; color: #fff; padding: 25px 40px 100px;
}
.footer-logo img { height: 45px; margin-bottom: 20px; }
.footer-nav { display: flex; gap: 40px; margin-bottom: 25px; flex-wrap: wrap; }
.footer-nav a img { height: 23px; }
.footer-copy img { height: 13px; }


