@charset "UTF-8";

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

/* Body & Wrap */
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.8;
  color: #999;
  background-color: #fff;
  font-size: small;
  font-weight: 200;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #ccc;
}

header .brand {
  font-size: 1.2rem;
  font-weight: bold;
}

header .role {
  font-size: 0.75rem;
  color: #999;
}

header nav ul {
  list-style: none;
  display: flex;
}

header nav ul li {
  margin-left: 15px;
}

header nav ul li a {
  text-decoration: none;
  color: #999;
  font-weight: 500;
  font-size: small;
}

header nav ul li a:hover {
  color: coral;
  text-decoration: none;
}

/* Main content */
main {
  margin-top: 10px;
}

h2 {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 5px;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
}

h3 {
  font-size: 0.9rem;
  color: #999;
  margin-top: 20px;
  margin-bottom: 10px;
}

p {
  margin-bottom: 15px;
}

/* Book section */
.book-section img {
  max-width: 300px;
  margin: 10px 0;
}

/* Gallery */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.gallery .card {
  flex: 1 1 200px;
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

.gallery .card img {
  max-width: 100%;
  height: auto;
}

/* Links */
ul li a {
  color: #999;
  text-decoration: none;
  list-style-type: none;
  list-style-position: inside;
}

ul li a:hover {
  color: darkorange;
  text-decoration: none;
  list-style-type: none;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.7rem;
  color: #888;
  letter-spacing: 0.05rem;
}

/* Contact form */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

form input,
form textarea {
  padding: 8px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

form button {
  width: 150px;
  padding: 10px;
  background-color: #333;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

form button:hover {
  background-color: #555;
}

/* add */
.ad {
  color: lightseagreen;
  font-weight: bold;
}
.ad a {
  color: lightseagreen;
  font-weight: bold;
  text-decoration: none;
  font-size: 20px;
}
.ad a:hover {
  color: coral;
}
.ad a:visited {
  color: coral;
  font-size: 30px;
  text-decoration: none;
}

/* Gallery grid */

.description {
  text-align: center;
}

.enter {
  text-align: center;
  margin-top: 300px;
  color: #999;
  font-weight: bold;
}

.title {
  font-weight: 50;
  color: #999;
  font-size: 1em;
  letter-spacing: 0.05em;
}

/* carousel */
body {
  margin: 0;
  padding: 0;
  display: block;
}

/* ホームへのリンク */
.brand-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

/* ギャラリー */

/* SNS */
.social-links {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}
.social-links a {
  color: #999;
  font-size: 1.4rem;
  text-decoration: none;
  transition: color 0.3s ease;
}
.social-links a:hover {
  color: coral;
}

/**************/
/* menu.css */
/**************/
.navbar {
  background: #fff;
  padding: 0 20px;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.menu > li {
  position: relative;
}

.menu > li > a {
  display: block;
  padding: 15px 2px;
  text-decoration: none;
  color: darkgrey;
  font-weight: 700;
  font-size: 14px;
}

.menu > li > a:hover {
  background: #f0f0f0;
}

/* ドロップダウン部分 */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #ccc;
  min-width: 180px;
  z-index: 100;
}
.submenu li a {
  display: block;
  padding: 7px 20px;
  text-decoration: none;
  color: darkgrey;
  font-size: 13px;
}
.submenu li a:hover {
  background: #f5f5f5;
}

/* ホバーでサブメニュー表示 */
.dropdown:hover .submenu {
  display: block;
}

/***********************/
/* slider.css */
/***********************/
.container {
  width: 100%;
  height: 100vh;
  background-color: #fff;
}
.slider-area {
  position: relative;
  width: 100%;
  height: 75%;
  overflow: hidden;
}
.slider-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  animation: sliderAnime 20s linear infinite 0s;
}
.slider-item:nth-child(2) { animation-delay: 5s; }
.slider-item:nth-child(3) { animation-delay: 10s; }
.slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes sliderAnime {
  0% { opacity: 0; animation-timing-function: ease-in; }
  10% { opacity: 1; animation-timing-function: ease-out; }
  20% { opacity: 1; transform: scale(1.1); }
  40%,100% { opacity: 0; transform: scale(1.2); }
}

/******************************/
/* slide_gpt.css */
/******************************/

/* ギャラリー */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); /* PC基準 */
  gap: 10px;
  padding: 20px;
}

.gallery a {
  display: block;
  text-align: center;
  text-decoration: none; /* 下線削除 */
  color: darkgrey;
  font-weight: 300;
  letter-spacing: 0.1em;
  overflow: hidden;
  position: relative;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.gallery a:hover img {
  transform: scale(1.05);
}

.gallery a:hover {
  color: coral; /* テキストカラーを統一 */
}


/* ✅ Lightbox 修正版 */
/* Lightbox */
.lightbox {
  display: none;               /* 初期は非表示 */
  position: fixed;
  inset: 0;                    /* 全画面 */
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 1000;

  /* ✅ JSで「.show」クラスがついたとき用 */
  justify-content: center;
  align-items: center;
}

.lightbox.show {
  display: flex;               /* ✅ これで中央寄せが有効に */
}

/* ✅ 中央に綺麗に配置される画像 */
.lightbox-content {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  display: block;
  margin: 0 auto;              /* 横中央 */
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lightbox-content.show {
  opacity: 1;
}

/* 閉じる・前後ボタン */
.close, .prev, .next {
  position: absolute;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

.close {
  top: 20px;
  right: 35px;
}

.prev, .next {
  top: 50%;
  transform: translateY(-50%);
  padding: 16px;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
}

.prev { left: 20px; }
.next { right: 20px; }

.prev:hover, .next:hover, .close:hover {
  background: rgba(255,255,255,0.2);
}

/* 各プロジェクトページ用ギャラリー */
.gallery-page {
  display: flex;                  /* PCは横並び */
  justify-content: center;        /* 中央寄せ */
  gap: 8px;                       /* サムネイル同士の間隔 */
  flex-wrap: nowrap;              /* 折り返しなし */
  margin-top: 5px;
  padding: 0;
}

.gallery-page img {
  width: 85px;                    /* PC用 固定サイズ */
  height: 85px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-page img:hover {
  transform: scale(1.05);
}

/* 📱 スマホ（横幅600px以下）は4列 */
@media (max-width: 600px) {
  .gallery-page {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* ✅ 4列に固定 */
    gap: 4px;
  }

  .gallery-page img {
    width: 100%;        /* セル幅いっぱい */
    height: auto;       /* アスペクト比維持 */
    max-height: 80px;   /* サムネイルを小さめに統一 */
    object-fit: cover;
  }
}


/* ===============================
   Responsive Navigation
   =============================== */
.menu-toggle {
  display: none;
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: darkgrey;
}
@media (max-width:600px) {
  .menu-toggle { display:block; }
  .menu {
    display:none;
    flex-direction:column;
    width:100%;
    background:#111;
    position:absolute;
    top:50px; left:0;
    z-index:999;
  }
  .menu.active { display:flex; }
  .dropdown:hover .submenu { display:none; }
  .dropdown.open .submenu { display:block; }
  body { font-size:14px; }
}
@media (min-width:601px) and (max-width:1024px) {
  .menu-toggle { display:block; }
  .menu {
    display:none;
    flex-direction:column;
    width:100%;
    background:#222;
    position:absolute;
    top:50px; left:0;
    z-index:999;
  }
  .menu.active { display:flex; }
  .dropdown:hover .submenu { display:none; }
  .dropdown.open .submenu { display:block; }
  body { font-size:15px; }
}
@media (min-width:1025px) {
  .menu-toggle { display:none; }
  .menu { display:flex; }
}

/* ✖ ボタン */
.menu-close {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: darkgrey;
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 1001;
}

/* ブランドロゴ */
.brand,
.brand-link,
.brand-link:visited,
.brand-link:hover {
  color: #999 !important;
  text-decoration: none !important;
}

/* hero */
.hero {
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.hero a {
  display: inline-block;
  pointer-events: auto !important;
  cursor: pointer !important;
}
.hero a img { display: block; }

