/* Grid Cinema - 静的サイト版
   配色・タイポグラフィは gridcinema.com (Avada/Fusion Builder版) を踏襲 */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f0f0ed;
  --color-text: #333333;
  --color-text-muted: #747474;
  --color-accent: #6666a4;
  --color-accent-dark: #6868a5;
  --color-footer-bg: #39394e;
  --color-border: #000000;

  /* 欧文は Nixie One、和文は線の細さが Nixie One に馴染む Zen Kaku Gothic New */
  --font-heading: "Nixie One", "Zen Kaku Gothic New", Arial, Helvetica, sans-serif;
  --font-heading-jp: "Nixie One", "Zen Kaku Gothic New", sans-serif;
  --font-body: "Open Sans", Arial, Helvetica, sans-serif;

  --header-bg-top: rgba(57, 57, 78, 0);
  --header-bg-sticky: rgba(57, 57, 78, 0.27);

  --header-height: 106px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.section-inner {
  /* 元サイトのコンテナ幅1170px + 左右padding */
  max-width: 1230px;
  margin: 0 auto;
  padding: 0 30px;
}

.section-title {
  text-align: center;
  font-family: var(--font-heading-jp);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.4;
  margin: 0 0 40px;
}

.section-divider {
  width: 100%;
  max-width: 170px;
  height: 1px;
  background: var(--color-border);
  margin: 0 auto 30px;
}

.section-desc {
  text-align: center;
  font-family: var(--font-heading-jp);
  font-size: 15px;
  line-height: 30px;
  margin: -10px 0 20px;
  color: var(--color-text);
}

/* ヘッダー */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 210;
  padding: 0 30px;
  background-color: var(--header-bg-top);
  transition: background-color 0.25s ease-in-out;
}

.site-header.is-sticky {
  position: fixed;
  background-color: var(--header-bg-sticky);
  box-shadow: rgba(0, 0, 0, 0.117647) 0 1px 3px;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: var(--header-height);
}

.header-logo {
  padding-top: 15px;
}

.header-logo img {
  height: 60px;
  width: auto;
}

.site-nav .nav-menu {
  list-style: none;
  display: flex;
  gap: 44px;
  margin: 0;
  padding: 0;
}

.site-nav .nav-menu a {
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 400;
  display: block;
  line-height: 86px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle .menu-bar {
  display: block;
  width: 21px;
  height: 3px;
  background: #ffffff;
  margin: 3px 0;
}

/* ヒーロー */
.hero {
  position: relative;
  /* 元サイトはスライダーが画面の高さいっぱいに広がる */
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(102, 102, 102, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 60px;
  line-height: 1.2;
  margin: 0 0 14px;
  text-wrap: balance;
}

.hero-content p {
  font-size: 30px;
  line-height: 1.2;
  margin: 0;
  font-family: var(--font-heading);
}

/* About */
.about {
  padding: 90px 0 0;
  background: var(--color-bg);
}

.about-quote {
  text-align: center;
  font-style: italic;
  font-size: 35px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.4;
  /* スマホで「人/生」のように語の途中で折り返さないよう、<wbr>の位置でだけ改行する */
  word-break: keep-all;
  /* Shippori Mincho はキャッチの文字だけのサブセットを読み込んでいる */
  font-family: "Shippori Mincho", "Zen Kaku Gothic New", serif;
  margin: 0 0 22px;
  padding: 0 20px;
}

/* ブロックは中央、文章は左揃え。幅は最長の第3段落(約53字)が1行に収まる程度にし、
   2行になる第2段落は balance で行長を揃えて、ブロックの見た目の中心がずれないようにする */
.about-body {
  width: fit-content;
  max-width: min(55em, calc(100% - 40px));
  margin: 0 auto;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 15px;
  line-height: 30px;
  font-weight: 400;
  padding: 0 0 137px;
  line-break: strict;
  text-wrap: pretty;
}

.about-body p {
  margin: 0;
  /* 「アクション/スポーツ」のような語の途中での改行を避ける(対応ブラウザのみ) */
  word-break: auto-phrase;
}

@media (min-width: 783px) {
  .about-body p {
    text-wrap: balance;
  }
}

.about-body p + p {
  margin-top: 15px;
}

/* Portfolio */
.portfolio {
  background: var(--color-bg-alt);
  padding: 60px 0 45px;
}

/* 元サイトのPORTFOLIOだけは説明文が区切り線の上にある */
.portfolio .section-desc {
  margin: 0 0 16px;
}

.portfolio .section-divider,
.contact .section-divider {
  margin-bottom: 63px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 40px 4%;
}

/* 管理画面の表示幅: 1=横3つ並び、2=横2つ並び、3=横いっぱい（6列を2/3/6列ずつ使う） */
.video-card {
  grid-column: span 2;
}

.video-card.span-2 {
  grid-column: span 3;
}

.video-card.span-3 {
  grid-column: span 6;
}

.video-card-thumb {
  position: relative;
  background: #000000;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  transition: opacity 0.5s ease-in-out;
}

.video-card:hover .video-card-thumb {
  opacity: 0.7;
}

.video-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
}

.play-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #ffffff;
}

.video-card-title {
  font-size: 20px;
  font-weight: 400;
  font-family: var(--font-heading-jp);
  margin: 26.6px 0 0;
  color: var(--color-text);
}

/* ドローン帯 */
.drone-band {
  background: #ffffff url("../img/drone-bg.jpg") center center / cover no-repeat;
  padding: 182px 0 197px;
  overflow: hidden;
}

.drone-band-inner {
  max-width: 1230px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: flex-end;
}

.drone-band-text {
  width: 50%;
  padding-left: 27px;
  text-align: left;
}

.drone-band-text h2 {
  font-family: var(--font-heading-jp);
  font-weight: 400;
  font-size: 25px;
  line-height: 55px;
  color: var(--color-accent-dark);
  margin: 0 0 27.5px;
}

.drone-band-text p {
  font-size: 12px;
  line-height: 24px;
  font-style: italic;
  font-family: var(--font-heading-jp);
  color: var(--color-text-muted);
  margin: 0;
}

/* Photo */
.photo {
  background: var(--color-bg);
  padding: 91px 0 94px;
}

.photo .section-desc {
  color: var(--color-text-muted);
}

.photo-grid {
  columns: 3;
  column-gap: 10px;
}

.photo-grid a {
  display: block;
  break-inside: avoid;
  margin-bottom: 10px;
}

.photo-grid img {
  width: 100%;
  height: auto;
  display: block;
}

/* Contact */
.contact {
  background: var(--color-bg-alt);
  padding: 92px 0 102px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
}

/* 元サイトは社名・住所を字間の広い画像で載せているので、テキストで見た目を寄せる */
.contact-info {
  color: #777777;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  padding-left: 5px;
}

.contact-info h3 {
  font-family: inherit;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.3em;
  margin: 0 0 20px;
}

.contact-info p {
  font-size: 12px;
  letter-spacing: 0.22em;
  line-height: 1.8;
  margin: 0 0 15px;
}

.contact-form {
  color: var(--color-text-muted);
}

.contact-form label {
  display: block;
  font-size: 15px;
  line-height: 30px;
  font-family: var(--font-heading-jp);
  margin: 0;
}

.contact-form .field {
  margin-bottom: 20px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  height: 55px;
  padding: 0 15px;
  border: 1px solid #d2d2d2;
  font-family: var(--font-heading-jp);
  font-size: 13px;
  color: #333333;
  background: #ffffff;
}

.contact-form textarea {
  height: 150px;
  padding: 15px;
  resize: vertical;
}

.contact-form .consent {
  padding-left: 19px;
}

.contact-form .consent input {
  margin: 0 6px 0 0;
  vertical-align: middle;
}

.contact-form .form-note {
  font-size: 15px;
  line-height: 30px;
  font-family: var(--font-heading-jp);
  margin: 0;
}

.contact-form button {
  background-color: var(--color-accent);
  color: #ffffff;
  border: none;
  padding: 17px 40px;
  font-size: 18px;
  font-weight: 400;
  line-height: 21px;
  font-family: var(--font-heading-jp);
  cursor: pointer;
  margin-top: 20px;
  border-radius: 4px;
  /* 元サイト(Avada)の3Dボタン */
  box-shadow: inset 0 1px 0 #ffffff, 0 2.7px 0 #525287, 1.8px 3.6px 3.6px 2.7px rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s;
}

.contact-form button:hover {
  background-color: #6969a6;
}

/* フッター */
.site-footer {
  background: var(--color-footer-bg);
  color: #ffffff;
}

.footer-top {
  border-top: 12px solid #9595aa;
  padding: 63px 30px 60px;
  text-align: center;
}

.footer-logo img {
  height: 60px;
  width: auto;
  margin: 0 auto 65px;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 30px;
}

.footer-nav a {
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #cccccc;
}

.footer-nav li {
  display: inline;
}

.footer-nav li:not(:last-child)::after {
  content: " | ";
}

.footer-bottom {
  border-top: 1px solid #4b4c4d;
  padding: 48px 30px 46px;
}

.footer-bottom-inner {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-copy {
  font-size: 12px;
  line-height: 24px;
  color: #999999;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 56px;
  height: 56px;
  border-radius: 2px;
  background: #434458;
  border: 1px solid #434458;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: #eaeaea;
}

/* ページトップへ戻るボタン(元サイトのAvadaと同じく画面下端に付くタブ型) */
.to-top {
  position: fixed;
  right: 75px;
  bottom: 0;
  z-index: 200;
  width: 48px;
  height: 35px;
  border-radius: 6px 6px 0 0;
  background: #333333;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.to-top::before {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  transform: translateY(2px) rotate(45deg);
}

/* レスポンシブ */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    columns: 2;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-card,
  .video-card.span-2 {
    grid-column: span 1;
  }

  .video-card.span-3 {
    grid-column: span 2;
  }
}

@media (max-width: 782px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(20, 20, 20, 0.95);
    padding: 20px 30px;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav .nav-menu {
    flex-direction: column;
    gap: 16px;
  }

  .menu-toggle {
    display: block;
    padding: 8px 0;
  }

  /* 元サイトのスマホ表示はヘッダーが不透明で、ヒーローの上に重ならず追従もしない */
  .site-header,
  .site-header.is-sticky {
    position: relative;
    padding: 20px 30px;
    background-color: var(--color-footer-bg);
    box-shadow: none;
  }

  .header-inner {
    height: auto;
    align-items: center;
  }

  .header-logo {
    padding-top: 0;
  }

  .site-nav .nav-menu a {
    line-height: 1.7;
  }

  /* スマホは見出しが収まるよう16:9の枠にし、黒帯を除いた横長動画(hero-sp.mp4, 960x408)の左右を少し切って表示する */
  .hero {
    height: auto;
    max-height: none;
    aspect-ratio: 16 / 9;
  }

  .hero-content h1 {
    font-size: 26px;
    margin-bottom: 8px;
  }

  .hero-content p {
    font-size: 13px;
    line-height: 1.5;
    text-wrap: balance;
  }

  .section-title {
    font-size: 29px;
  }

  .photo-grid {
    columns: 1;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-card,
  .video-card.span-2,
  .video-card.span-3 {
    grid-column: span 1;
  }

  .drone-band-inner {
    justify-content: flex-start;
  }

  .drone-band {
    padding: 80px 0 60px;
  }

  .drone-band-text {
    width: auto;
    padding-left: 0;
  }

  .contact-info {
    padding-left: 12px;
  }

  .footer-top {
    padding-bottom: 110px;
  }

  .footer-bottom {
    padding: 38px 30px 46px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* お問い合わせフォーム: ハニーポットと送信結果 */
.contact-form .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .form-result {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.contact-form .form-result.is-ok {
  color: #2e7d32;
}

.contact-form .form-result.is-error {
  color: #c62828;
}

.contact-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
