@charset "utf-8";

/* =========================
   リセット（すでに reset.css がある場合は削除OK）
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   基本設定
========================= */
html, body {
  font-family: "Zen Maru Gothic","M PLUS Rounded 1c","Kiwi Maru","Noto Sans JP",sans-serif;
  height: 100%;
  background: #d5ecf1;
  scroll-behavior: smooth;
  overflow-x: clip;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}


#company,
#works,
#contact{
  scroll-margin-top: 120px;
}

#recruit{
  scroll-margin-top: 60px;
}


/* loading画面設定 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background-color: #fcfcfc;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeOut 1.5s 2.5s forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

.loading-logo {
    opacity: 0;
    animation: logo_fade 2s .5s forwards;
    width: 200px;
}

@keyframes logo_fade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    30% {
        opacity: 1;
        transform: translateY(0);   
    }

    60% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* =========================
   ヘッダー（デスクトップ）
========================= */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.header.scrolled {
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.header-inner {
  height: clamp(64px, 7vh, 88px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1vh clamp(32px, 4vw, 64px);
  color: #fff;
}

/* ロゴ */
.logo {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 12px);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.logo img {
  height: clamp(26px, 2.4vw, 46px);
  width: auto;
}

.logo span {
  font-size: clamp(11px, 1.1vw, 16px);
  letter-spacing: 0.12em;
  white-space: nowrap;
  font-weight: 700;
}

/* ナビゲーション（デスクトップ） */
.nav {
  display: flex;
  align-items: center;
}

.header-inner > .nav a {
  margin-left: clamp(14px, 2.4vw, 48px);
  font-size: clamp(11px, 1.05vw, 15px);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  opacity: 0.75;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  transition: opacity 0.35s ease;
  white-space: nowrap;
}

.header-inner > .nav a:hover {
  opacity: 1;
}

/* ハンバーガーボタン（デスクトップでは非表示） */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-btn span {
  width: 24px;
  height: 2px;
  background: #fff;
}

/* デスクトップでは close を非表示 */
#nav .nav-close {
  display: none;
}

/* =========================
   ヒーロー
========================= */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  transform: translateY(clamp(16px, 4vh, 48px));
}

.hero-content h1 {
  font-size: clamp(20px, 3vw, 40px);
  letter-spacing: 0.15em;
  margin-bottom: clamp(14px, 3vh, 32px);
}

.hero-content p {
  font-size: clamp(11px, 1.2vw, 16px);
  letter-spacing: 0.2em;
  opacity: 0.85;
}

/* =========================
   About（デスクトップ）
========================= */
.about {
  background: #d5ecf1;
  padding: clamp(72px, 10vh, 120px) 0;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 14vw, 160px);

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(16px, 3vw, 80px);
}

/* テキスト */
.about-text {
  flex: 2;
  min-width: 0;
  color: #4a4a4a;
  font-size: clamp(12px, 1.1vw, 15px);
  line-height: 2;
}

.subtitle.about-title {
  display: flex;
  align-items: center;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 600;
  margin-bottom: clamp(16px, 3vh, 32px);
  color: #333;
}

.about-title .bar {
  width: 4px;
  height: clamp(20px, 2.4vw, 28px);
  background: #4a4a4a;
  margin-right: 14px;
}

.about-text p {
  margin-bottom: clamp(10px, 1.6vh, 14px);
  letter-spacing: 0.08em;
}

/* 画像 */
.about-image-wrap {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-image-wrap img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

.about-image-wrap .bg-block {
  position: absolute;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  background: rgba(150, 180, 190, 0.35);
  top: -20px;
  right: -20px;
  z-index: 1;
}

/* =========================
   Company（デスクトップ）
   - タイトル位置は固定
   - 画像＋背景ブロック：水平中央
   - 右側（dl）基準で縦方向の見た目を整える
========================= */
.company {
  background: #d5ecf1;
}

.company-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 14vw, 160px);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(24px, 6vw, 80px);
  align-items: stretch;
}


.company-left {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
}

.company-title {
  display: flex;
  align-items: center;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 600;
  margin-bottom: clamp(18px, 3vh, 32px);
  color: #333;
  align-self: start;
}

.company-title .bar {
  width: 4px;
  height: clamp(20px, 2.4vw, 28px);
  background: #4a4a4a;
  margin-right: 14px;
}

/* 画像ラップ：水平中央＋残りスペースで縦中央寄せ */
.company-image-wrap {
  position: relative;
  width: 80%;
  max-width: 420px;

  margin-left: auto;
  margin-right: auto;

  align-self: center;
}

.company-image-wrap img {
  width: 100%;
  /* aspect-ratio: 4 / 3; */
  object-fit: cover;
  position: relative;
  z-index: 2;
}

/* 背景ブロック（左上方向にオフセット） */
.company-bg-block {
  position: absolute;
  inset: 0;
  background: rgba(150, 180, 190, 0.35);
  z-index: 1;
  transform: translate(-22px, -22px);
}

/* 右カラム：dl テーブル */
.company-dl {
  width: 100%;
}

.company-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  padding: 18px 0 6px;
  border-bottom: 1px solid rgba(60, 80, 90, 0.35);
}

.company-row:last-child {
  border-bottom: none;
}

.company-row dt {
  font-weight: 700;
  color: rgba(20, 40, 46, 0.85);
  letter-spacing: .08em;
  font-size: clamp(12px, 1.05vw, 14px);
}

.company-row dd {
  margin: 0;
  color: rgba(20, 40, 46, 0.85);
  letter-spacing: .06em;
  line-height: 1.9;
  font-size: clamp(12px, 1.05vw, 14px);
}

/* =========================
   Gallery Marquee（横スクロール）
========================= */
.gallery-marquee{
  background:#d5ecf1;
  padding: 14vh 0;
}

/* 表示ウィンドウ */
.marquee{
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
}

/* 移動トラック：左方向に流し続ける */
.marquee-track{
  display: flex;
  gap: clamp(18px, 3vw, 60px);
  width: max-content;
  animation: marquee 28s linear infinite;
  will-change: transform;
}

/* 画像の見た目 */
.marquee-track img{
  height: clamp(160px, 16vw, 360px);
  width: auto;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

/* 重要：複製分の半分だけ移動してシームレスに */
@keyframes marquee{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ホバーで一時停止（任意） */
@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee-track {
    animation-play-state: paused;
  }
}

/* =========================
   Works
========================= */
.works {
  background: #d5ecf1;
  padding: clamp(80px, 10vh, 140px) 0;
}

.works-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 16vw, 120px);
}

.works-title {
  text-align: center;
  font-size: clamp(22px, 2.5vw, 32px);
  margin-bottom: 60px;
  letter-spacing: .12em;
  font-weight: 700;
  color: #333;
}

/* グループ */
.works-group {
  margin-bottom: 150px;
}

.works-group h3 {
  text-align: center;
  font-size: 18px;
  margin-bottom: 40px;
  letter-spacing: .15em;
  color: rgba(20,40,46,.9);
  margin-top: 30px;
}


/* 下の青い線 */
.section-sub{
  position: relative;
  z-index: 1;
  margin-top: 50px;
}

.section-sub::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-47%);
  width: 44px;
  height: 5px;
  background: #cfe8f2;
  border-radius: 4px;
  z-index: -1;
}

.sub-film::after{
    width: 38px;
}
.sub-cm::after{
    width: 30px;
}



/* グリッド */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 40px;
  justify-items: center;
}

/* アイテム */
.work-item {
  text-align: center;
  max-width: 220px;
}

.work-item img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
  opacity: .85;
  transition: opacity .35s ease, transform .35s ease;
  cursor: pointer;
}

.work-item img:hover {
  opacity: 1;
  transform: scale(1.05);
}

.work-item p ,
.works-note{
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: .08em;
  color: rgba(20,40,46,.85);
}

.works-note{
    text-align: center;
    margin-top: 24px;

}

.partners .works-note{
    margin-bottom: 80px;
    margin-top: 14px;
}

/* パートナー */
.partners {
  margin-top: 100px;
  text-align: center;
}

.partners h3 {
  font-size: 18px;
  letter-spacing: .12em;
}

/* パートナー（取引企業） */
.partners-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 34px;
  align-items: center;
  justify-items: center;
  margin-top: 24px;
}

.partners-grid img{
justify-self: center;
  align-self: center;
  width: 100%;
  max-width: 180px;
  max-height: 64px;
  height: auto;
  object-fit: contain;
  opacity: .85;
  transition: opacity .6s ease, transform .6s ease;
  cursor: pointer;
}



.partners-grid img:hover{
  opacity: 1;
  transform: scale(1.05);
}

.partners-grid img.p-tvman{
  width: auto;
  height: 78px;
  max-height: none;
  max-width: 220px;
}

/* =========================
   Works background
========================= */
.works{
  position: relative;
  isolation: isolate; 
  overflow: visible;
  background: #d5ecf1;
  --wave-h: 180px;
  padding: var(--wave-h) 0;
}
.works::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: var(--wave-h);
  bottom: var(--wave-h);

  z-index: 0;
  pointer-events: none;

  background: rgba(246,245,239,0.8); /* #f6f5ef 80% */
}

/* ✅ 上下波浪：单独一层盖在中间底色之上 */
.works::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background-image:
    url("../img/index/nami_top.png"),
    url("../img/index/nami_bottom.png");
  background-repeat: no-repeat, no-repeat;
  background-position: top center, bottom center;

  /* 固定波浪高度（不随 viewport 拉伸乱跑） */
  background-size: 100% var(--wave-h), 100% var(--wave-h);
}

/* ✅ Works 内容：永远在最上层 */
.works-inner{
  position: relative;
  z-index: 2;

  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 8vw, 120px);

  background: transparent; /* 重要：不要盖住波浪 */
}


/* ======= decor ======== */
.works-deco{
  position: absolute;
  z-index: 5; 
  pointer-events: none; 
  user-select: none;
  opacity: 0.95;
}

/* 左上角：场记板 */
.deco-clapper{
  top: clamp(-30px, -3vw, -10px);
  left: clamp(18px, 4vw, 56px);
  width: clamp(110px, 18vw, 220px);
  height: auto;
}



.deco-film1{
  position: absolute;
  right: 0;
  top: 30%;
  transform: translateY(-50%);
  width: clamp(130px, 12vw, 230px);
  height: auto;
  pointer-events: none;
  z-index: 3;
}

/* 放映机定位 */
.deco-projector{
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(120px, 14vw, 220px);
  height: auto;
  pointer-events: none;
  z-index: 3;
}


/* film2定位 */
.deco-film2{
  position: absolute;
  right: 0;
    bottom: 26%;
  transform: translateY(-50%);
  width: clamp(90px, 14vw, 200px);
  height: auto;
  pointer-events: none;
  z-index: 3;
}

/* film3定位 */
.deco-film3{
  position: absolute;
  right: 0;
  bottom:-2%;
  transform: translateY(-50%);
  width: clamp(90px, 11vw, 180px);
  height: auto;
  pointer-events: none;
  z-index: 3;
}




/* =========================
   Recruit Section
========================= */

.recruit{
  background:#d5ecf1;
  padding: clamp(80px,10vh,120px) 0;
}

.recruit__container{
  max-width:1200px;
  margin:0 auto;
  padding:0 clamp(20px,14vw,160px);
}

.recruit__title{
  text-align:center;
  font-size: clamp(22px,2.4vw,30px);
  font-weight:600;
  margin-bottom: clamp(40px,6vh,80px);
  color:#333;
}


/* =========================
   Layout
========================= */

.recruit-card{
  position:relative;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: clamp(30px,9vw,110px);
  margin-bottom: clamp(80px,10vh,140px);
}

.recruit-card--actor{
  align-items:center;
  text-align: center;
  gap: clamp(20px,4vw,70px);
  padding-top: 60px;
}


.recruit-heading-actor{
    display: flex;
  justify-content: center; /* 水平居中 */
}


/* =========================
   Image block
========================= */

.recruit-media{
  position:relative;
  flex:1;
  max-width:420px;
}

.recruit-media__img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  position:relative;
  z-index:2;
}

.recruit-media__bg{
  position:absolute;
  width:100%;
  aspect-ratio:4/3;
  background: rgba(150,180,190,0.35);
  top:-20px;
  right:-20px;
  z-index:1;
}

.recruit-media--right .recruit-media__bg{
  left:-20px;
  right:auto;
  top:20px;
}


/* =========================
   Content
========================= */

.recruit-content{
  flex:1.5;
  color:#4a4a4a;
  font-size: clamp(13px,1.1vw,15px);
  line-height:2;
}

.recruit-heading{
  font-size: clamp(18px,2vw,24px);
  margin-bottom:20px;
  display:flex;
  gap:10px;
  font-weight:600;
}

.recruit-sub{
  margin-bottom:20px;
  opacity:.9;
}

.recruit-grid{
  display:grid;
  grid-template-columns: 200px 1fr;
  gap:14px 20px;
  padding:20px 0;
  border-top:1px solid rgba(0,0,0,.1);
  border-bottom:1px solid rgba(0,0,0,.1);
  margin-bottom:24px;
}

.recruit-list{
  display:grid;
  grid-template-columns: 80px 1fr;
  gap:10px 20px;
  margin-bottom:20px;
}

.recruit-list ul{
  padding-left:18px;
}

.recruit-list li{
  margin-bottom:6px;
}

.recruit-note{
  margin-bottom:20px;
}

.recruit-warn{
  padding-left:18px;
  margin-bottom:24px;
}

.recruit-warn li{
  margin-bottom:6px;
}


/* =========================
   Button hover
========================= */

.recruit-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;

  padding:12px 22px;
  border-radius:999px;

  background: rgba(40,40,40,.9);
  color:#fff;
  text-decoration:none;
  font-size:13px;
  letter-spacing:.05em;

  border:1px solid transparent;

  transition:
    background .35s ease,
    color .35s ease,
    border-color .35s ease;
}

.recruit-btn__icon img{
  width:16px;
  height:auto;
  display:block;
  filter: brightness(0) invert(1); /* turn white */
  transition: filter .35s ease;
}

/* =========================
   hover 
========================= */

.recruit-btn:hover{
  background: transparent;
  color:#000;
  border-color:#000;
}

/* hover arrow turn black */
.recruit-btn:hover .recruit-btn__icon img{
  filter: brightness(0);
}


/* =========================
   Car Decoration
========================= */

.recruit__car{
  position:absolute;
  left:-120px;
  bottom:-90px;
  width:clamp(150px,28vw,400px);
  z-index:0;
}




/* =========================
   Contact / Access
========================= */

.contact{
  background:#d5ecf1;                 /* 外层浅蓝（按你网站） */
  padding-bottom: clamp(80px,10vh,130px) 0;
}

.contact__container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 9vw, 160px);
}

.contact-card{
  background: rgba(245,245,245,0.9);
  border-radius: 36px;
  padding: clamp(34px, 4vw, 56px) clamp(24px, 6vw, 68px);
}

/* title */
.contact-title{
  text-align:center;
  font-size: clamp(22px,2.4vw,32px);
  letter-spacing: .12em;
  font-weight: 600;
  color:#444;
  margin-bottom: clamp(26px, 3vw, 42px);
}

.contact-title--sub{
  margin-top: clamp(26px, 3vw, 40px);
}

/* =========================
   Contact Row
========================= */

.contact-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 22px);
  padding: 18px 6px;
  flex-wrap: nowrap;
}

/* left */
.contact-left{
  display:flex;
  align-items:center;
  gap: clamp(12px, 1.6vw, 18px);
  min-width: 0;
  flex: 1 1 auto;
}

.contact-icon{
  width: clamp(34px, 4vw, 44px);
  height: clamp(34px, 4vw, 44px);
  object-fit: contain;
  opacity: .9;
  flex: 0 0 auto;
}

.contact-label{
  font-size: clamp(13px, 1.3vw, 18px);
  letter-spacing: .06em;
  color:#555;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* =========================
   Contact Pill
========================= */

.contact-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: clamp(260px, 28vw, 300px); 
  max-width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(40,40,40,.65);
  background: rgba(255,255,255,.45);
  color: #4a4a4a;
  text-decoration: none;
  font-size: clamp(14px, 1.6vw, 22px);
  font-weight: 600;
  letter-spacing: .05em;
  transition:
    transform .18s ease,
    background .25s ease,
    border-color .25s ease;
}

.contact-pill--small{
  font-size: clamp(12px, 1.2vw, 16px);
  letter-spacing: .02em;
}

/* hover */
.contact-pill:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.75);
  border-color: rgba(40,40,40,.9);
}



/* 区切り線 */
.contact-divider{
  border: 0;
  height: 2px;
  background: rgba(40,40,40,.6);
  margin: 18px 0 10px;
}

/* Access */
.access{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(26px, 4vw, 60px);
  align-items:center;
  padding-top: 18px;
}

.access-map{
  border-radius: 14px;
  overflow:hidden;
}

.access-map iframe{
  width: 100%;
  height: 260px;
  border: 0;
}

.access-text{
  color:#555;
  letter-spacing: .08em;
  margin-left: clamp(20px, 4vw, 60px);
}

.access-zip{
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: 600;
  margin-bottom: 14px;
}

.access-addr{
  font-size: clamp(13px, 1.3vw, 18px);
  line-height: 2;
  font-weight: 600;
}




/* =========================
   Footer
========================= */

.footer{
  background: #f6f5ef;
  margin-top: clamp(80px, 10vh, 140px);
  padding: clamp(24px, 3vh, 36px) 0 clamp(16px, 2vh, 24px);
}

.footer-inner{
  max-width:1200px;
  margin:0 auto;
  padding:0 clamp(16px,14vw,160px);
  text-align:center;
}

/* Logo */
.footer-logo img{
  width: clamp(48px,4vw,60px);
  opacity:.9;
  margin-bottom: clamp(10px,1.5vh,14px);
}

/* 会社名 */
.footer-company{
  font-size: clamp(13px,1.3vw,16px);
  font-weight:600;
  letter-spacing:.08em;
  color:#444;
  margin-bottom: clamp(12px,1.8vh,18px);
}

/* SNS */
.footer-sns{
  display:flex;
  justify-content:center;
  gap: clamp(16px,2.5vw,26px);
  margin-bottom: clamp(12px,1.8vh,18px);
}

.footer-sns img{
  width: clamp(18px,2vw,22px);
  height: auto;
  filter: grayscale(100%) brightness(0.45);  /* grey */
  transition:
    filter .35s ease,
    transform .25s ease;
}

.sns-youtube img{
  width: clamp(22px,3vw,26px);
  margin-top: 1.6px;
}

/* hover */
.footer-sns a:hover img{
  filter: grayscale(0%) brightness(1); /* 薄くなる */
  transform: translateY(-3px);
}


/* copyright */
.footer-copy{
  font-size: clamp(9px,0.8vw,11px);
  letter-spacing:.05em;
  color:#666;
  opacity:.8;
}