/*
Theme Name: D&D Theme
Author: D&D associates
Version: 2.1.0 (2026-06-15)
Last Updated: 2026-06-15 — フッターリンク修正・バージョン管理導入
*/

/* ============================================================
   RESET & BASE
============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #e53935;
  --black: #111;
  --gray: #555;
  --light: #f8f8f8;
  --border: #e8e8e8;
  --font: "Inter", "Noto Sans JP", sans-serif;
  --ease: cubic-bezier(.25, .46, .45, .94);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

/* アンカー遷移時にヘッダー裏に隠れないよう各セクションにオフセット */
section[id] {
  scroll-margin-top: 72px;
}

body {
  font-family: var(--font);
  color: var(--black);
  background: #fff;
  overflow-x: hidden;
}

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

.site-main {
  overflow-x: hidden;
}

/* ============================================================
   HEADER
============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  transition: box-shadow .3s;
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
}

.site-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  display: block;
  width: auto;
  height: 28px;
}

.site-header .site-logo img {
  height: 28px;
}

.site-footer .site-logo img {
  height: 32px;
}

.site-nav {
  display: flex;
  gap: 36px;
}

.site-nav a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.nav-en {
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: .08em;
}

.nav-ja {
  font-size: 9px;
  color: #999;
  letter-spacing: .04em;
}

.site-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--red);
  text-decoration: none;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  transition: background .2s, color .2s;
}

.site-contact a:hover {
  background: var(--red);
  color: #fff;
}

/* ── Hamburger button（PCでは非表示） ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1002;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: var(--black);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

/* 開いている時：×印に変形 */
.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Drawer & backdrop ── */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  z-index: 1000;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 78%;
  max-width: 320px;
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0, 0, 0, .12);
  padding: 100px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  z-index: 1001;
  overflow-y: auto;
}

.nav-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
}

.nav-open .nav-drawer {
  transform: translateX(0);
}

.nav-drawer a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.nav-drawer a .nav-en {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--black);
}

.nav-drawer a .nav-ja {
  font-size: 10px;
  color: #999;
}

.nav-drawer__cta {
  margin-top: 24px;
  border: none !important;
  background: var(--red);
  border-radius: 999px;
  align-items: center !important;
  flex-direction: row !important;
  justify-content: center;
  gap: 6px !important;
  padding: 14px 24px !important;
}

.nav-drawer__cta {
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
}

/* ============================================================
   SHARED
============================================================ */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--red);
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: opacity .2s, transform .15s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  opacity: .85;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--red);
  color: #fff;
}

.btn--outline {
  background: #fff;
  color: var(--black);
  border: 1.5px solid var(--border);
}

.btn--sm {
  padding: 10px 22px;
  font-size: 12px;
}

.btn-arrow {
  font-size: 14px;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
  margin-top: 32px;
  transition: opacity .2s;
}

.link-more:hover {
  opacity: .6;
}

/* ============================================================
   HERO
============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 80px 80px;
  position: relative;
  gap: 0;
}

.hero__content {
  flex: 0 0 44%;
  position: relative;
  z-index: 10;
}

.hero__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--gray);
  margin-bottom: 20px;
}

.hero__label--ai {
  color: var(--red);
  font-weight: 800;
}

.hero h1 {
  font-size: clamp(36px, 5.2vw, 64px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero__text {
  font-size: 14px;
  line-height: 2;
  color: var(--gray);
  margin-bottom: 36px;
}

.hero__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__scroll {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.hero__scroll span {
  font-size: 9px;
  letter-spacing: .2em;
  color: #bbb;
  font-weight: 600;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, #bbb, transparent);
  animation: scrollLineAnim 2s ease-in-out infinite;
}

@keyframes scrollLineAnim {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ---- HERO VISUAL ---- */
.hero__visual {
  position: relative;
  flex: 0 0 680px;
  height: 640px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-orb--main {
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 540px;
  height: 540px;
  background: radial-gradient(circle,
      rgba(255, 160, 140, .26),
      rgba(255, 180, 220, .15),
      rgba(220, 180, 255, .10),
      transparent 68%);
  filter: blur(4px);
  animation: orbPulse 8s ease-in-out infinite;
}

.hero-orb--sub {
  top: -20px;
  right: -20px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 140, 100, .22), transparent 70%);
  filter: blur(8px);
}

@keyframes orbPulse {

  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }

  50% {
    transform: translateX(-50%) scale(1.05);
  }
}

/* Phone — 中央やや右寄り、少し傾く */
.hero-phone {
  position: absolute;
  top: 50px;
  left: 47%;
  transform: translateX(-50%) rotate(5deg);
  width: 240px;
  z-index: 10;
  background: transparent;
  animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {

  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(5deg);
  }

  50% {
    transform: translateX(-50%) translateY(-14px) rotate(5deg);
  }
}

.hero-phone img {
  width: 100%;
  display: block;
  background: transparent;
}

/* ── Floating cards: 全カード同じ傾き(3deg) ── */
.hero-card {
  position: absolute;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
  z-index: 20;
  transform: rotate(3deg);
}

/* アニメーション: 傾きを保ったまま上下 */
@keyframes fcFloat1 {

  0%,
  100% {
    transform: rotate(3deg) translateY(0);
  }

  50% {
    transform: rotate(3deg) translateY(-10px);
  }
}

@keyframes fcFloat2 {

  0%,
  100% {
    transform: rotate(3deg) translateY(0);
  }

  50% {
    transform: rotate(3deg) translateY(10px);
  }
}

@keyframes fcFloat3 {

  0%,
  100% {
    transform: rotate(3deg) translateY(0);
  }

  50% {
    transform: rotate(3deg) translateY(-8px);
  }
}

/* Card 0: マスメディア広告 — 左上 */
.hero-card--media {
  position: absolute;
  top: 0px;
  right: 40px;
  width: 200px;
  padding: 16px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
  z-index: 22;
  animation: fcFloat3 6s ease-in-out infinite 0.3s;
}

.hero-card--media strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

.hero-card__preview {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.hero-card__preview img {
  width: 100%;
  height:auto;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  display: block;
}

.hero-card__desc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-card__desc span {
  display: block;

  font-size: 11px;
  line-height: 1.5;

  color: #888;
}

/* Card 1: Marketing — 右下 */
.hero-card--marketing {
  bottom: 80px;
  right: 50px;
  width: 160px;
  height: auto;
  animation: fcFloat1 5s ease-in-out infinite;
}
.hero-card--marketing .hero-card__num {
  font-size: 18px;
  letter-spacing: -0.01em;
}
.hero-card--marketing .hero-card__label {
  font-size: 9px;
  color: #888;
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
}

.hero-card--marketing .hero-card__image {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}

.hero-card--marketing .hero-card__image img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

.hero-card--marketing .hero-card__title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--black);
  margin-bottom: 4px;
}

.hero-card--marketing .hero-card__desc {
  font-size: 10px;
  color: #999;
  line-height: 1.5;
  margin: 0;
}


/* Card 2: AI × Creative — 右上 */
.hero-card--growth {
  top: 200px;
  left: 50px;
  width: 176px;
  animation: fcFloat2 5.5s ease-in-out infinite 0.5s;
}

/* Card 3: AI Image Generation — 左中 */
.hero-card--web {
  top: 300px;
  left: 20px;
  width: 220px;
  animation: fcFloat1 5.3s ease-in-out infinite 0.8s;
}

/* Card 4: SNS & AD Management — 右中 */
.hero-card--advertising {
  top: 260px;
  right: 84px;
  width: 175px;
  animation: fcFloat2 5.8s ease-in-out infinite 1.2s;
  text-align: center;
}

/* Card 5: Video & Signage */
.hero-card--signage {
  top: 10px;
  left: 100px;
  width: 160px;
  padding: 14px;
  animation: fcFloat1 5.6s ease-in-out infinite 1s;
}

.hero-card__video-info strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-card__preview {
  margin-bottom: 10px;
}

.hero-card__preview img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.hero-card__desc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-card__desc span {
  font-size: 11px;
  color: #888;
  line-height: 1.4;
}

/* videoカードはtranslateXを含むので上書き */
@keyframes fcVideoFloat {

  0%,
  100% {
    transform: translateX(-50%) rotate(3deg) translateY(0);
  }

  50% {
    transform: translateX(-50%) rotate(3deg) translateY(-8px);
  }
}

/* Card共通テキスト */
.hero-card__label {
  font-size: 9px;
  color: #888;
  font-weight: 500;
  display: block;
}

.hero-card__num {
  display: block;
  font-size: 26px;
  font-weight: 900;
  color: var(--black);
  letter-spacing: -.02em;
  margin-top: 2px;
}

.hero-card__sub {
  font-size: 9px;
  color: #bbb;
  margin-top: 1px;
  display: block;
}

.hero-card__chart {
  margin-top: 8px;
  height: 30px;
}

.hero-card__chart svg {
  width: 100%;
  height: 100%;
}

/* fc--connect */
.hero-card--growth strong {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  display: block;
}

.hero-card--growth p {
  font-size: 9px;
  color: #999;
  margin-top: 6px;
  line-height: 1.6;
}

/* fc--image */
.hero-card--web strong {
  font-size: 12px;
  font-weight: 700;
  display: block;
  line-height: 1.4;
}

.hero-card--web p {
  font-size: 9px;
  color: #999;
  margin-top: 6px;
  line-height: 1.6;
}

.hero-card__thumbs {
  margin-top: 12px;
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
}

.hero-card__thumbs img {
  width: 58px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.hero-card__thumbs span {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .08);
}

/* fc--advertising (SNS & AD) */
.hero-card--advertising strong {
  font-size: 12px;
  font-weight: 700;
  display: block;
  line-height: 1.4;
}

.hero-card--advertising p {
  font-size: 9px;
  color: #999;
  margin-top: 6px;
  line-height: 1.6;
}

.hero-card__sns-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 12px 0;
}

.hero-card__sns-icons span {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 800;
  color: #fff;
}

.sns-line {
  background: #06C755;
}

.sns-ig {
  background: linear-gradient(135deg, #f09433, #dc2743, #bc1888);
}

.sns-yt {
  background: #FF0000;
}

.sns-x {
  background: #111;
}

.sns-tt {
  background: #111;
}

/* fc--video */
.hero-card__play {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 180, 200, .7), rgba(200, 180, 255, .7));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.play-btn {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 11px;
  border-color: transparent transparent transparent rgba(80, 60, 120, .8);
  margin-left: 2px;
}

.hero-card__video-info strong {
  font-size: 12px;
  font-weight: 700;
  display: block;
  line-height: 1.35;
}

.hero-card__video-info span {
  font-size: 9px;
  color: #aaa;
}

/* Decoration dots */
.deco-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.deco-dot--1 {
  width: 10px;
  height: 10px;
  background: var(--red);
  opacity: .65;
  top: 28%;
  left: 5%;
}

.deco-dot--2 {
  width: 7px;
  height: 7px;
  background: #ffb347;
  opacity: .55;
  bottom: 18%;
  right: 5%;
}

.deco-dot--3 {
  width: 6px;
  height: 6px;
  background: var(--red);
  opacity: .35;
  bottom: 22%;
  left: 28%;
}

/* Decoration dots */
.deco-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.deco-dot--1 {
  width: 10px;
  height: 10px;
  background: var(--red);
  opacity: .7;
  top: 30%;
  left: 15%;
}

.deco-dot--2 {
  width: 7px;
  height: 7px;
  background: #ffb347;
  opacity: .6;
  bottom: 30%;
  right: 10%;
}

.deco-dot--3 {
  width: 6px;
  height: 6px;
  background: var(--red);
  opacity: .4;
  bottom: 20%;
  left: 35%;
}

/* ============================================================
   ABOUT
============================================================ */
.about {
  padding: 120px 80px;
  position: relative;
  overflow: hidden;
}

.about__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 80px;
}

.about__content {
  flex: 0 0 42%;
}

.about__content h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.about__text {
  font-size: 14px;
  line-height: 2;
  color: var(--gray);
}

.about__visual {
  flex: 1;
  position: relative;
  height: 560px;
}

.about-orb {
  position: absolute;
  top: 0;
  left: 0;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 160, 140, .22), rgba(220, 180, 255, .14), transparent 68%);
  filter: blur(4px);
  animation: orbPulse2 9s ease-in-out infinite;
}

@keyframes orbPulse2 {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.07);
  }
}

.about-img {
  position: absolute;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .10);
}

.about-img--main {
  top: 10px;
  left: 50px;
  width: 320px;
  height: 220px;
}

.about-img--sub1 {
  top: 250px;
  left: 40px;
  width: 190px;
  height: 140px;
}

.about-img--sub2 {
  top: 120px;
  right: 80px;
  width: 200px;
  height: 280px;
}

.about-img--sub2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.img-placeholder--main {
  background: linear-gradient(135deg, #e8e4e0, #d4cec8);
}

.img-placeholder--sub1 {
  background: linear-gradient(135deg, #c8e6d4, #a8d4bc);
}

.img-placeholder--sub2 {
  background: linear-gradient(135deg, #1a2a3a, #2a3a4a);
}


/* ============================================================
   SERVICE
============================================================ */
.service {
  padding: 120px 80px;
  background: #fff;
}

.service__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.service__lead {
  flex: 0 0 34%;
}

.service__lead h2 {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.service__text {
  font-size: 14px;
  line-height: 2;
  color: var(--gray);
}

.service__grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  transition: box-shadow .3s, transform .3s;
  position: relative;
  background: #fff;
}

.service-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, .08);
  transform: translateY(-4px);
}

.service-card__icon {
  width: 36px;
  height: 36px;
  color: var(--black);
  margin-bottom: 12px;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--gray);
}

.service-card__more {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 24px;
  height: 24px;
  color: #ccc;
}

.service-card__more svg {
  width: 100%;
  height: 100%;
}

/* ============================================================
   WORKS
============================================================ */
.works {
  padding: 120px 80px 160px;
  background: #fafafa;
}

.works__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: flex-start;
}

.works__lead {
  position: relative;
  z-index: 5;
}

.works__lead h2 {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.works__slider-wrap {
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.works__nav {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.works-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
}

.works-nav-btn:hover {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}

.works__slider {
  display: flex;
  gap: 16px;
  transition: transform .4s var(--ease);
}

.work-card {
  flex: 0 0 calc((100% - 32px) / 3);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
  transition: transform .3s;
}

.work-card:hover {
  transform: translateY(-4px);
}

.work-card__thumb {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.work-card__thumb--1 {
  background-image: url("assets/images/works-food-promotion.jpg");
}

.work-card__thumb--2 {
  background-image: url("assets/images/works-laundry-promotion.jpg");
}

.work-card__thumb--3 {
  background-image: url("assets/images/works-amusement-promotion.jpg");
}

.work-card__thumb--4 {
  background-image: url("assets/images/works-digital-signage.jpg");
}

.work-card__thumb--5 {
  background-image: url("assets/images/works-it-network.jpg");
}

.work-card__thumb--6 {
  background-image: url("assets/images/works-iot-monitoring.jpg");
}

.work-card__info {
  padding: 14px 16px;
}

.work-card__info h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.work-card__info p {
  font-size: 11px;
  color: #999;
}

.works__dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 16px;
}

.works-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: background .2s;
}

.works-dot.active {
  background: var(--black);
}

/* ============================================================
   COMPANY
============================================================ */
.company {
  padding: 120px 80px;
  background: #fff;
}

.company__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.company h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.company__lead {
  font-size: 14px;
  line-height: 2;
  color: var(--gray);
  margin-bottom: 48px;
}

.company__table {
  border-top: 1px solid var(--border);
}

.company__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.company__row dt {
  font-size: 13px;
  font-weight: 700;
  color: #777;
}

.company__row dd {
  font-size: 14px;
  line-height: 1.9;
  color: var(--black);
}

.company__row a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 768px) {
  .company {
    padding: 80px 24px;
  }

  .company__row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }
}

/* ============================================================
   CONTACT
============================================================ */
.contact {
  padding: 140px 80px 120px;
  background: linear-gradient(140deg, #fff5f5, #fdf0ff);
  position: relative;
  overflow: hidden;
}

.contact__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.contact h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.contact__text {
  font-size: 14px;
  line-height: 2;
  color: var(--gray);
  margin-bottom: 42px;
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
}

.site-footer .site-logo img {
  height: 34px;
  width: auto;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}


.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-nav a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

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

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--black);
  text-decoration: none;
  transition: background .2s, border-color .2s;
}

.footer-social a:hover {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}

.site-footer__bottom {
  border-top: 1px solid var(--border);
  padding: 16px 80px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #999;
  max-width: 100%;
  align-items: center;
}

/* ============================================================
   ANIMATIONS (JS-triggered)
============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-phone {
  width: 320px;
}

@media (max-width: 768px) {
  .site-logo img {
    height: 24px;
  }
}

/* ============================================================
   PAGE
============================================================ */
.page-main {
  padding-top: 72px;
}

.page-section {
  padding: 120px 80px;
  background: #fff;
}

.page-section__inner {
  max-width: 900px;
  margin: 0 auto;
}

.page-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.page-content {
  font-size: 15px;
  line-height: 2;
}

.page-content p {
  font-weight: 400;
  margin-bottom: 1.5em;
  color: var(--black);
}

.page-content h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  margin: 2em 0 0.8em;
  letter-spacing: -0.01em;
}

.page-content h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin: 1.6em 0 0.6em;
}

.page-content ul,
.page-content ol {
  margin: 0 0 1.5em 1.4em;
}

.page-content li {
  margin-bottom: 0.5em;
  line-height: 1.9;
}

.page-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content strong {
  font-weight: 700;
}
/* ============================================================
   RESPONSIVE — Hamburger menu (max-width: 768px)
============================================================ */
@media (max-width: 768px) {
  /* PCナビとCONTACTボタンを隠し、ハンバーガーを表示 */
  .site-nav {
    display: none;
  }

  .site-contact {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* 開いている間は背面スクロールを固定 */
  body.nav-open {
    overflow: hidden;
  }

  /* 横スクロール完全防止 */
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* ---- HERO：display:flex を block にして完全1カラム ---- */
  .hero {
    display: block;
    min-height: auto;
    padding: 88px 20px 40px;
    overflow: hidden;
  }

  .hero__content {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  /* キャッチコピー：縦書き化を防ぎ、幅いっぱい横書き */
  .hero h1 {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    font-size: clamp(26px, 7.2vw, 34px);
    line-height: 1.3;
    margin-bottom: 18px;
  }

  .hero__label {
    flex-wrap: wrap;
  }

  .hero__text {
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 28px;
  }

  .hero__buttons {
    gap: 10px;
  }

  .hero__scroll {
    display: none;
  }

  /* ---- HERO VISUAL ----
     カードは680×640座標に絶対配置されているため、
     幅・高さは維持し scale で全体を縮小して中央配置。
     scale はレイアウト高さを変えないので ::after で余白を相殺。 */
  .hero__visual {
    flex: none;
    position: relative;
    width: 680px;
    height: 640px;
    margin: 24px auto 0;
    left: 50%;
    transform: translateX(-50%) scale(0.52);
    transform-origin: top center;
  }

  .hero::after {
    content: "";
    display: block;
    margin-top: -267px;
  }

  /* ---- ABOUT ---- */
  .about {
    padding: 64px 20px;
  }

  .about__inner {
    display: block;
  }

  .about__content {
    width: 100%;
    margin-bottom: 36px;
  }

  .about__visual {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    height: auto;          /* 固定高さを解除 */
  }

  /* 絶対配置を解除して3枚を縦に並べる */
  .about__visual .about-orb {
    display: none;         /* 装飾の円は非表示 */
  }

  .about-img {
    position: static;      /* 絶対配置を解除 */
    width: 100% !important;
    height: auto !important;
    margin-bottom: 16px;
  }

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

  .about-img--sub2 {
    /* sub2は縦長指定だったので高さを自動に */
    aspect-ratio: auto;
  }

  .about-img--sub2 img {
    height: auto;
  }

  /* ---- SERVICE ---- */
  .service {
    padding: 64px 20px;
  }

  .service__inner {
    display: block;
  }

  .service__lead {
    width: 100%;
    margin-bottom: 32px;
  }

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

  /* ---- WORKS ---- */
  .works {
    padding: 64px 20px 80px;
  }

  .works__inner {
    display: block;
  }

  .works__lead {
    margin-bottom: 24px;
  }

  .work-card {
    flex: 0 0 calc((100% - 16px) / 2);
  }

  /* ---- CONTACT ---- */
  .contact {
    padding: 64px 20px;
  }

  .contact h2 {
    font-size: clamp(24px, 7vw, 32px);
  }

  /* ---- FOOTER ---- */
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .footer-nav {
    gap: 18px;
    flex-wrap: wrap;
  }
}

/* ---- iPhone SE / small phones (max-width: 414px) ---- */
@media (max-width: 414px) {
  .hero h1 {
    font-size: clamp(23px, 7.6vw, 30px);
  }

  .hero__visual {
    transform: translateX(-50%) scale(0.46);
  }

  .hero::after {
    margin-top: -306px;
  }

  .work-card {
    flex: 0 0 100%;
  }
}

/* PC幅ではドロワー関連を確実に隠す */
@media (min-width: 769px) {
  .nav-drawer,
  .nav-backdrop,
  .nav-toggle {
    display: none !important;
  }
}
