@charset "UTF-8";

/* =========================================
   Variables
========================================= */
:root {
  --c-black: #1a1a1a;
  --c-text: #333;
  --c-gray: #777;
  --c-line: #d9d9d9;
  --c-bg: #f5f5f4;
  --c-white: #fff;
  --c-navy: #0f2a47;

  --f-en: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  --f-serif-en: "Cormorant Garamond", "Times New Roman", serif;
  --f-ja: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-mincho: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --page-width: 1200px; /* ページ全体の横幅（固定） */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* =========================================
   Reset / Base
========================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { background: #e7e6e3; } /* ページ外側の余白の色 */
body {
  position: relative;
  max-width: var(--page-width);
  margin: 0 auto;
  overflow-x: clip;
  box-shadow: 0 0 40px rgba(0, 0, 0, .06);
  font-family: var(--f-ja);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.8;
  letter-spacing: .05em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(48px, 6vw, 72px); }

/* 共通：細い矢印ライン */
.line {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
}
.line::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 1px;
  background: currentColor;
  transform: rotate(35deg);
  transform-origin: right center;
}

/* 共通：テキストリンク */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: .15em;
  transition: gap .3s;
}
.link-arrow:hover { gap: 20px; }

/* =========================================
   Header
========================================= */
.header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
}
.logo { display: flex; align-items: center; gap: 14px; }
.logo__main {
  font-family: var(--f-en);
  font-weight: 300;
  font-size: 30px;
  letter-spacing: .12em;
  line-height: 1;
  color: var(--c-black);
}
.logo__sub {
  padding-left: 14px;
  border-left: 1px solid var(--c-black);
  font-family: var(--f-en);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: .12em;
}

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 22px; }
.nav__list a {
  position: relative;
  display: block;
  padding-block: 4px;
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--c-black);
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform .3s;
}
.nav__list a:hover::after,
.nav__list a.is-current::after { transform: scaleX(1); }

.menu-btn {
  position: relative;
  z-index: 110;
  width: 44px; height: 44px;
  margin-left: 36px;
  background: none;
  border: none;
}
.menu-btn span {
  position: absolute;
  left: 10px;
  width: 24px; height: 1px;
  background: var(--c-black);
  transition: transform .3s, top .3s;
}
.menu-btn span:nth-child(1) { top: 18px; }
.menu-btn span:nth-child(2) { top: 25px; }
.is-menu-open .menu-btn span:nth-child(1) { top: 22px; transform: rotate(20deg); }
.is-menu-open .menu-btn span:nth-child(2) { top: 22px; transform: rotate(-20deg); }

/* メニュー展開時（全画面） */
.is-menu-open { overflow: hidden; }
.is-menu-open .nav {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .97);
}
.is-menu-open .nav__list { flex-direction: column; align-items: center; gap: 28px; }
.is-menu-open .nav__list a { font-size: 18px; }

/* =========================================
   Hero
========================================= */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 38%) 1fr;
  min-height: min(86vh, 680px); /* 下層ページのヒーローと同じ高さ */
  background: var(--c-bg);
  overflow: hidden;
}
.hero__text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 110px var(--gutter) 60px;
}
.hero__catch {
  font-family: var(--f-mincho);
  font-size: clamp(18px, 1.7vw, 22px);
  letter-spacing: .2em;
  line-height: 1.8;
  color: var(--c-black);
}
.hero__title {
  margin-top: clamp(24px, 3vw, 40px);
  font-family: var(--f-en);
  font-weight: 300;
  font-size: clamp(64px, 7.2vw, 104px);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--c-black);
}
.hero__sub {
  margin-top: 12px;
  font-family: var(--f-en);
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: .38em;
}
.hero__lead {
  margin-top: clamp(28px, 3vw, 44px);
  font-family: var(--f-mincho);
  font-size: 13px;
  line-height: 2;
}
.scroll {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 36px;
  font-family: var(--f-en);
  font-size: 9px;
  letter-spacing: .15em;
}
.scroll::after {
  content: "";
  width: 1px; height: 36px;
  margin-left: 12px;
  background: var(--c-black);
  transform-origin: top;
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero__visual {
  position: relative;
  margin-left: -140px;
  margin-top: 64px;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}
.hero__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: left center;
}
.hero__visual { background: #1c1c1c; }
.hero__visual .hero__photo {
  position: absolute;
  inset: 0;
  object-position: center 62%;
}

/* =========================================
   Section Head
========================================= */
.section-head {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 26px;
}
.section-head__en {
  font-family: var(--f-en);
  font-weight: 300;
  font-size: clamp(30px, 3.4vw, 40px);
  letter-spacing: .2em;
  line-height: 1;
  color: var(--c-black);
}
.section-head__ja { font-size: 11px; }
.section-head__more { margin-left: auto; }

/* =========================================
   Works
========================================= */
.works__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.work__img {
  aspect-ratio: 232 / 188;
  overflow: hidden;
  background: #ddd;
}
.work__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.work a:hover .work__img img { transform: scale(1.04); }
.work__cat {
  display: flex;
  align-items: center;
  margin-top: 12px;
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--c-black);
}
.work__num {
  margin-right: 12px;
  padding-right: 12px;
  border-right: 1px solid var(--c-gray);
  line-height: 1;
}
.work__desc {
  margin-top: 2px;
  padding-left: 32px;
  font-size: 10px;
  color: var(--c-gray);
}

/* =========================================
   About
========================================= */
.about {
  display: grid;
  grid-template-columns: 50% 1fr;
  align-items: center;
  background: var(--c-bg);
}
.about__img { align-self: stretch; }
.about__img img {
  width: 100%; height: 100%;
  min-height: 250px;
  object-fit: cover;
  filter: grayscale(100%);
}
.about__body { padding: 36px clamp(24px, 3vw, 40px); }
.about__label {
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: .15em;
}
.about__title {
  margin-top: 10px;
  font-family: var(--f-serif-en);
  font-weight: 500;
  font-size: clamp(26px, 2.9vw, 34px);
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--c-black);
}
.about__text {
  margin: 18px 0 24px;
  font-family: var(--f-mincho);
  font-size: 12px;
  line-height: 2.2;
}

/* =========================================
   Service
========================================= */
.service__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--c-line);
}
.service-item {
  display: flex;
  flex-direction: column;
  padding: 36px clamp(16px, 2.4vw, 36px) 40px;
  border-bottom: 1px solid var(--c-line);
}
.service-item + .service-item { border-left: 1px solid var(--c-line); }
.service-item__title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 400;
  color: var(--c-black);
}
.service-item__ja {
  font-family: var(--f-mincho);
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: .12em;
  line-height: 1.3;
}
.service-item__en {
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: .25em;
}
.service-item__text {
  margin: 24px 0 0;
  font-size: clamp(12px, 1.05vw, 13px);
  line-height: 2.1;
  letter-spacing: .02em;
}
.service-item__more { margin-top: auto; padding-top: 28px; align-self: flex-start; }

/* =========================================
   Drone
========================================= */
.drone {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 220px;
  overflow: hidden;
  color: var(--c-white);
  background: var(--c-navy);
}
/* 写真の左端を透過させ、紺の背景になじませる */
.drone::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(72%, 820px); /* 広い画面で写真が拡大されすぎないように */
  background: url("images/drone.jpg") right top / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 18%, rgba(0, 0, 0, .75) 38%, #000 55%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 18%, rgba(0, 0, 0, .75) 38%, #000 55%);
}
.drone__inner { position: relative; z-index: 1; padding: 28px var(--gutter); }
.drone__label {
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: .2em;
  opacity: .9;
}
.drone__title {
  margin-top: 8px;
  font-family: var(--f-mincho);
  font-weight: 400;
  font-size: clamp(20px, 2.3vw, 26px);
  letter-spacing: .15em;
}
.drone__text { margin-top: 6px; font-size: 11px; }

.btn-outline,
.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 11px;
  letter-spacing: .1em;
  transition: background .3s, color .3s;
}
.btn-outline {
  margin-top: 18px;
  padding: 8px 16px;
  border: 1px solid var(--c-white);
}
.btn-outline .line { width: 20px; }
.btn-outline:hover { background: var(--c-white); color: var(--c-navy); }

/* =========================================
   Contact
========================================= */
.contact {
  background: #151515;
  color: var(--c-white);
}
.contact__inner {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding: 22px var(--gutter);
}
.contact__head {
  padding-right: clamp(24px, 4vw, 44px);
  border-right: 1px solid rgba(255, 255, 255, .6);
}
.contact__en {
  font-family: var(--f-en);
  font-weight: 300;
  font-size: clamp(22px, 2.3vw, 26px);
  letter-spacing: .12em;
  line-height: 1.2;
}
.contact__ja { font-size: 11px; }
.contact__catch { font-size: 13px; letter-spacing: .15em; }
.contact__text { margin-top: 4px; font-size: 10px; opacity: .85; }
.btn-white {
  margin-left: auto;
  min-width: 165px;
  padding: 12px 20px;
  background: var(--c-white);
  color: var(--c-black);
  border: 1px solid var(--c-white);
}
.btn-white:hover { background: transparent; color: var(--c-white); }

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px 14px;
  background: #151515;
  color: #888;
  font-family: var(--f-en);
  font-size: 10px;
  border-top: 1px solid #2a2a2a;
}
.footer__link {
  font-family: var(--f-ja);
  font-size: 11px;
  color: #bbb;
  transition: color .2s;
}
.footer__link:hover { color: var(--c-white); text-decoration: underline; text-underline-offset: 3px; }

/* =========================================
   Responsive
========================================= */
@media (max-width: 1024px) {
  body:not(.is-menu-open) .nav { display: none; }
  .works__list { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .service__list { grid-template-columns: 1fr; }
  .service-item + .service-item { border-left: none; }
  .service-item { padding-inline: 0; }
  .service-item__text br { display: none; }
  .about { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .logo__main { font-size: 24px; }
  .logo__sub { font-size: 8px; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__text { padding-top: 100px; padding-bottom: 40px; }
  .hero__visual { margin: 0; clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); aspect-ratio: 4 / 3; }
  .scroll { display: none; }

  .section-head { flex-wrap: wrap; gap: 12px 16px; }
  .section-head > .line { display: none; }

  .about { grid-template-columns: 1fr; }
  .about__img img { aspect-ratio: 16 / 10; }
  .about__text br { display: none; }

  .drone { align-items: flex-end; min-height: 360px; }
  .drone::before {
    width: 100%;
    bottom: auto;
    height: 72%;
    background-position: center;
    -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  }

  .contact__inner { flex-direction: column; align-items: flex-start; padding-block: 40px; }
  .contact__head { padding-right: 0; border-right: none; }
  .btn-white { margin-left: 0; width: 100%; }
}

@media (max-width: 480px) {
  .works__list { grid-template-columns: 1fr; }
  .hero__lead br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* =========================================
   制作物で構成した画像（ヒーロー・WORKS・SERVICE）
========================================= */


/* 作品を台紙の上に並べる */
.stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8%;
  padding: 7%;
}
.stage > img {
  width: auto;
  height: 100%;
  min-width: 0;
  object-fit: contain;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}
.work__img.stage { background: transparent; }
.work__img.stage > img {
  /* 作品の縦横比のまま表示（余白が出ないように） */
  flex: 0 1 auto;
  width: auto;
  height: auto;
  max-width: 46%;
  max-height: 100%;
  object-fit: initial;
}
.stage__browser {
  width: 88%;
  background: var(--c-white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}
.stage__browser img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.work a:hover .stage > img,
.work a:hover .stage__browser { transform: translateY(-4px); }
.stage > img, .stage__browser { transition: transform .4s ease; }

/* 既存ルール（.hero__visual img / .work__img img など）の上書き */
.work__img .stage__browser img { height: auto; }

/* =========================================
   デバイスモックアップ（パソコン＋スマートフォン）
   画像は .device-pc__screen img / .device-sp__screen img を差し替え
========================================= */
.devices {
  position: relative;
  width: 100%;
  aspect-ratio: 100 / 78;
  container-type: inline-size;
}
/* パソコン（モニター） */
.device-pc {
  position: absolute;
  left: 0; top: 0;
  width: 84%;
}
.devices .device-pc__frame {
  padding: 2.4cqi 2.4cqi 2cqi;
  background: #1d1d1f;
  border-radius: 1.6cqi 1.6cqi 0 0;
  box-shadow: 0 1.5cqi 4cqi rgba(0, 0, 0, .18);
}
.devices .device-pc__screen {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fff;
}
.devices .device-pc__chin {
  height: 5.5cqi;
  background: linear-gradient(#e9e9eb, #cfd0d3);
  border-radius: 0 0 1.6cqi 1.6cqi;
  box-shadow: 0 1.5cqi 4cqi rgba(0, 0, 0, .12);
}
.devices .device-pc__neck {
  width: 16%;
  height: 8cqi;
  margin: 0 auto;
  background: linear-gradient(90deg, #bfc0c3, #e4e5e7 45%, #bfc0c3);
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
}
.devices .device-pc__base {
  width: 30%;
  height: 1.4cqi;
  margin: 0 auto;
  background: linear-gradient(#e2e3e5, #b9babd);
  border-radius: 1cqi 1cqi .4cqi .4cqi;
  box-shadow: 0 1cqi 2cqi rgba(0, 0, 0, .15);
}
/* スマートフォン */
.device-sp {
  position: absolute;
  right: 0; bottom: 0;
  width: 25%;
  padding: 1.3cqi;
  background: #1d1d1f;
  border-radius: 4cqi;
  box-shadow: 0 2cqi 5cqi rgba(0, 0, 0, .28);
  z-index: 2;
}
.devices .device-sp__screen {
  position: relative;
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  background: #fff;
  border-radius: 3cqi;
}
.devices .device-sp__screen::before {
  content: "";
  position: absolute;
  top: 1.2cqi; left: 50%;
  width: 34%; height: 2.2cqi;
  transform: translateX(-50%);
  background: #1d1d1f;
  border-radius: 2cqi;
  z-index: 1;
}
.devices .device-pc__screen img,
.devices .device-sp__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: none;
  box-shadow: none;
  max-height: none;
}

/* TOPページのカード内 */
.stage--devices { padding: 5% 8% 4%; }
.stage--devices .devices { width: 100%; max-height: 100%; }
.work a:hover .stage--devices .devices { transform: translateY(-4px); }
.stage--devices .devices { transition: transform .4s ease; }

/* ----- 画面内のWebサイト（iframe） ----- */
.devices .device-pc__screen,
.devices .device-sp__screen { position: relative; }
.devices .device-pc__screen iframe,
.devices .device-sp__screen iframe {
  position: absolute;
  top: 0; left: 0;
  border: 0;
  background: #fff;
  transform-origin: 0 0;
}
/* TOPページのカード内：表示のみ（クリックはカードのリンクへ） */
.devices--static iframe { pointer-events: none; }
