/* ===============================
   ルート変数・ベース設定
=============================== */
:root {
  --bg-dark: #0e0e10;
  --bg-light: #f7f8fb;
  --ink: #0a0a0c;
  --fg: #f7f8fb;
  --muted: #a9adb7;
  --line-dark: #26262b;
  --line-light: #e6e7ee;
  --brand: #c2ff51;
  --container: 1120px;
  --shadow: 0 10px 30px rgba(0,0,0,.15);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.7;
  background: var(--bg-light);
  color: var(--ink);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

section {
  position: relative;
  padding-block: clamp(64px, 10vw, 140px);
  overflow: hidden;
}

  /* リンク装飾なし */
  a {
    color: inherit;
    text-decoration: none;
  }
  a:hover, a:focus {
    text-decoration: none;
    opacity: 0.8; /* クリック感だけ残す */
  }

/* ===============================
   セクション共通
=============================== */
.section--dark {
  background: var(--bg-dark);
  color: var(--fg);
}

.section--light {
  background: var(--bg-light);
  color: var(--ink);
}

.label {
  position: absolute;
  inset: auto 24px 16px auto;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(90px, 8vw, 600px);
  opacity: .06;
  pointer-events: none;
}

/* ===============================
   BUTTONS（共通ベース）
=============================== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid currentColor;
  background: transparent;
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border-radius: 0; /* 角丸なしでシャープに */
}

/* 擬似要素で背景アニメーション */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0; /* 背景は後ろに */
}

/* テキストは前面 */
.btn span,
.btn {
  position: relative;
  z-index: 1;
}

/* ホバー時のふわっと浮く演出 */
.btn:hover {
  transform: translateY(-2px);
}

/* ===============================
   ダークセクション（白基調）
=============================== */
.section--dark .btn {
  color: #fff;
  border-color: #fff;
}

.section--dark .btn::before {
  background: #fff;
}

.section--dark .btn:hover::before {
  opacity: 1;
}

.section--dark .btn:hover {
  color: #000; /* 背景が白になるので文字は黒に反転 */
}

/* ===============================
   ライトセクション（黒基調）
=============================== */
.section--light .btn {
  color: #000;
  border-color: #000;
}

.section--light .btn::before {
  background: #000;
}

.section--light .btn:hover::before {
  opacity: 1;
}

.section--light .btn:hover {
  color: #fff; /* 背景が黒になるので文字は白に反転 */
}

/* ===============================
   ボタン配置（右寄せ用）
=============================== */
.btn-right {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

/* Aboutセクションなど単独ボタンの右寄せ */
#about .btn {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-top: 16px;
}



/* ===============================
   HERO SECTION
=============================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 90vh;
  background: var(--bg-dark);
  color: var(--fg);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0.9;
  animation: zoomPan 20s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.65));
  z-index: 1;
}

@keyframes zoomPan {
  0% { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.08) translate(-2%, -1%); }
}

.hero .container {
  position: relative;
  z-index: 3;
  padding: 0 6%;
  text-align: left;
  max-width: 1200px;
}

.hero-title {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 2.5vw, 2.6rem);
  line-height: 1.1;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0em;
  color: #000;
}

.hero-title .line {
  display: inline-block;
  background: #fff;
  padding: 0.5em;
  clip-path: inset(0 100% 0 0);
  animation: revealMask 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
  overflow: hidden;
}

.hero-title .line:nth-child(2) { animation-delay: 0.35s; }
.hero-title .line:nth-child(3) { animation-delay: 0.7s; }

@keyframes revealMask {
  from { clip-path: inset(0 100% 0 0); opacity: 0.3; }
  to   { clip-path: inset(0 0 0 0); opacity: 1; }
}

.hero-buttons {
  margin-top: 48px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero .btn.primary {
  background: var(--brand);
  color: #000;
  font-weight: 600;
}

.hero .btn {
  border: 1.5px solid #fff;
  color: #fff;
  padding: 12px 28px;
  transition: 0.3s;
}

.hero .btn:hover {
  background: #fff;
  color: #000;
}

@media (max-width: 768px) {
  .hero {
    align-items: flex-end;
    padding-bottom: 80px;
    min-height: 75vh;
  }
  .hero .container {
    padding: 0 8%;
    text-align: left;
  }
  .hero-title {
    align-items: flex-start;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    line-height: 1.35;
  }
  .hero-buttons {
    margin-top: 36px;
    justify-content: flex-start;
  }
  .hero-bg {
    opacity: 0.85;
    animation: none;
  }
}

/* ===============================
   SERVICE SECTION（交互レイアウト＋フェード）
=============================== */
#service {
  background: var(--bg-light);
  color: var(--ink);
  padding-block: clamp(80px, 10vw, 140px);
}


#service .section-title span {
  color: var(--muted);
  font-size: 0.85em;
  margin-left: 8px;
}

#service .lead {
  max-width: 800px;
  margin: 0 auto 100px;
  text-align: center;
  line-height: 1.9;
  color: var(--ink);
}

.service-list {
  display: flex;
  flex-direction: column;
  max-width: var(--container);
  margin-inline: auto;
  gap: 20px; /* 余白広めの方が見栄えがいい */
}

.service-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 60px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.05);
  overflow: visible;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}

/* テキスト側 */
.service-item .text {
  flex: 1;
  z-index: 1;
}

.service-item h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-item p {
  line-height: 1.9;
}

/* アイコン側 */
.service-item .icon {
  flex: 0 0 180px;
  position: relative;
  z-index: 2;
}

.service-item .icon img {
  max-width: 140px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
  position: absolute;
  transform: translateY(-50%);
  top: 50%;
}

/* odd（左にアイコン） */
.service-item.odd {
  flex-direction: row;
}
.service-item.odd .icon img {
  left: 0px;
}

/* even（右にアイコン） */
.service-item.even {
  flex-direction: row-reverse;
}
.service-item.even .icon img {
  right: 0px;
}

/* フェードイン左右 */
[data-fade="left"],
[data-fade="right"] {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: transform, opacity;
}

[data-fade="left"] {
  transform: translateX(-80px);
}

[data-fade="right"] {
  transform: translateX(80px);
}

[data-fade].is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* デスクトップ時のみ */
@media (min-width: 901px) {
  .service-item.odd {
    margin-left: 0px;
    margin-right: auto;
    transform: translateX(-5px); /* 左にずらす */
  }

  .service-item.even {
    margin-left: auto;
    margin-right: 0px;
    transform: translateX(5px); /* 右にずらす */
  }
}


/* ===============================
   スマホ対応
=============================== */
@media (max-width: 900px) {
  .service-item {
    flex-direction: column !important;
    text-align: center;
    padding: 40px 28px;
    max-width: 90%;
    gap: 20px;
  }

  .service-item .icon {
    flex: none;
    display: block;
    text-align: center;
    margin-bottom: 12px;
  }

  .service-item .icon img {
    position: static !important;
    transform: none !important;
    display: inline-block;
    width: 120px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px;
  }

  .service-list {
    gap: 20px;
  }
}

/* ===============================
   WORKS
=============================== */
#works {
  background: var(--bg-dark);
  color: var(--fg);
}

.works-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.work {
  display: block;
  text-decoration: none;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: #000;
}

.work:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.work img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.work h4 {
  font-size: 1.05rem;
  margin: 12px 16px 4px;
  font-weight: 700;
}

.work p {
  font-size: 0.9rem;
  color: #666;
  margin: 0 16px 16px;
  border: 1.5px solid #666;      /* 枠線 */
  padding: 6px ;           /* 余白 */
  display: inline-block;       /* インライン要素に枠線を適用するため */
  
}

@media (max-width: 768px) {
  .works-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto; /* 中央寄せ */
    padding: 0 16px; /* 余白調整 */
  }
}

/* ===============================
   2カラムセクション（MESSAGE / ABOUT / OFFICE）
=============================== */

/* ▼ 共通レイアウト（PC時は2カラム） */
.split,
.office {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: var(--container);
  margin: 0 auto;
}

.text-block {
  text-align: left;
}

/* ▼ 共通：画像・地図サイズを統一 */
.image-block,
.office-map {
  display: flex;
  justify-content: center;
}

.image-block img,
.office img,
.office iframe {
  width: 90%;
  max-width: 500px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* ▼ 特殊：OFFICEのGoogle Map */
.office iframe {
  aspect-ratio: 16 / 9;
  max-width: 500px;
  min-height: 280px;
  border: 0;
}

/* ▼ レスポンシブ対応 */
@media (max-width: 860px) {
  .split,
  .office {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .image-block img,
  .office img,
  .office iframe {
    width: 100%;
    height: 80px;
    max-width: 100%;
  }

  .text-block {
    text-align: left;
  }
}


/* ===============================
   CONTACT
=============================== */
#contact {
  background: var(--bg-dark);
  color: var(--fg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form h2 {
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 20px;
}

.contact-form form {
  display: grid;
  gap: 14px;
  max-width: 560px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px;
  background: #ffffff0a;
  border: 1px solid var(--line-dark);
  color: var(--fg);
  font-size: 1rem;
}

.contact-form textarea {
  min-height: 140px;
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #bbb;
}

.contact-social {
  text-align: left;
}

.contact-social h3 {
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 12px;
  color: #fff;
}

.contact-social p {
  margin-bottom: 16px;
  color: #c8cbd5;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
}

.social-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
}

.social-links img {
  width: 24px;
  height: 24px;
  display: block;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-social {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

/* ===============================
   見出しフォント
=============================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* ===============================
   Google Map 表示エリア
=============================== */
.map-wrapper {
  width: 100%;
  height: 400px; /* 必須！好きな高さに変更可 */
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

#styled-map {
  width: 100%;
  height: 100%;
}
