@charset "UTF-8";

/*
Theme Name: Bluemobile 2026
Author: Qetic
Description: Bluemobileのテンプレート用テーマです(2026年リニューアル)
Version: 1.0
*/

/* --- 1. Variables & Base --- */
:root {
  --color-yellow: #fdd34b;
  --color-blue: #0b3d91;
  --color-text: #333333;
  --color-navy: #192F5F;
}

body {
  background-color: #fff !important;
  color: var(--color-text);
  font-family: 'Montserrat', 'Zen Kaku Gothic New', sans-serif;
  overflow-x: hidden;
}

header .p-6 {
  padding-top: 3.5rem;
}

.header-menu-wrap {
  mix-blend-mode: multiply;
}

@media (max-width: 430px) {
  header .p-6 {
    padding-top: 2rem;
  }
}

/* --- Logo Style --- */
.logo-img {
  width: 240px;
  height: auto;
  display: block;
}

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

/* --- Floating Contact Circle (Top Right) --- */
.header-contact-circle {
  position: fixed;
  top: -70px;
  right: -70px;
  width: 240px;
  height: 220px;
  background-color: var(--color-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none !important;
  pointer-events: auto;
}

.header-contact-circle:hover {
  transform: scale(1.05);
}

.header-contact-circle span {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  transform: translate(-30px, 30px);
  display: block;
}

@media (max-width: 768px) {
  .header-contact-circle {
    width: 160px;
    height: 140px;
    top: -50px;
    right: -50px;
  }
  .header-contact-circle span {
    font-size: 14px;
    transform: translate(-20px, 20px);
  }
}

/* サイドナビのリンク演出 */
.side-nav a { transition: all 0.3s; display: inline-block; }
.side-nav a:hover { color: var(--color-blue); transform: translateX(8px); }

/* --- FV Animation & Layout --- */
#fv {
  background-color: var(--color-yellow);
  position: relative;
}

#fv .fv-illustration {
  opacity: 0;
  transform: scale(0.98) translateY(10px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

#fv.fv-loaded .fv-illustration {
  opacity: 1 !important;
  transform: scale(1) translateY(0) !important;
}

@media (max-width: 768px) {
  #fv .fv-illustration img {
    min-height: 60vh;
    object-fit: cover;
  }

  .fv-illustration.px-6 {
    padding-right: 0;
    padding-left: 0;
  }
}

/* 波線：背景色が表示されるのと同時にフェードインさせる */
#fv .fv-bg-wave {
  opacity: 0;
  position: absolute;
  bottom: -10vw;
  left: 0;
  width: 100%;
  line-height: 0;
  /* ページ読み込み直後にアニメーションを開始 */
  animation: wave-fade-in 1.2s ease forwards;
}

@keyframes wave-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Scroll Reveal & Signboard Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 1s ease;
  transform-style: preserve-3d;
}

.reveal.active { 
  opacity: 1; 
  transform: translateY(0); 
}

/* 看板（見出し）の「後ろから前へ」回転アニメーション */
.section-title-img {
  width: auto;
  max-width: 240px;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  /* margin-bottom: 5rem; */
  
  /* 初期状態：横を向いて隠れている状態 */
  opacity: 0;
  transform-origin: center center;
  transform: perspective(1200px) rotateY(-90deg) scale(0.8);
  transition: transform 1.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.8s ease;
  will-change: transform, opacity;
}

/* 表示時：正面を向く */
.reveal.active .section-title-img {
  opacity: 1;
  transform: perspective(1200px) rotateY(0deg) scale(1);
  /* 回転後に看板らしくゆらゆら揺れる */
  animation: signboard-sway 4s ease-in-out 1.4s infinite;
}

@keyframes signboard-sway {
  0% { transform: perspective(1200px) rotateX(0deg) rotateY(0deg); }
  25% { transform: perspective(1200px) rotateX(4deg) rotateY(1deg); }
  75% { transform: perspective(1200px) rotateX(-4deg) rotateY(-1deg); }
  100% { transform: perspective(1200px) rotateX(0deg) rotateY(0deg); }
}

#company .section-title-img {
  max-width: 320px;
}

@media (max-width: 430px) {
  .section-title-img {
    max-width: 190px;
    /* margin-bottom: 3rem; */
  }
  #company .section-title-img {
    max-width: 260px;
  }
}

/* --- UI Components --- */
.btn-view-more {
  border: 1px solid var(--color-blue);
  color: var(--color-blue);
  transition: all 0.3s;
  background: transparent;
}
.btn-view-more:hover { 
  background-color: var(--color-blue); 
  color: #fff; 
  transform: translateY(-3px); 
}

.btn--menu {
  width: 70px;
  height: 70px;
  border: 1.5px solid #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.menu.is-open { 
  opacity: 1 !important; 
  visibility: visible !important; 
}

.rounded-sm {
  border-radius: 6px !important;
}

/* --- Works Layout --- */
#works {
  padding-top: 18rem !important;
  position: relative;
}

@media (max-width: 430px) {
  #works {
    padding-top: 10rem !important;
  }
}

/* Tailwindの arbitrary values クラスをCSSで指定する場合のエスケープ記法 */
.aspect-\[3\/2\] {
  aspect-ratio: 3 / 2 !important;
}

/* --- Works Modal Styles --- */
.works-modal {
  position: fixed;
  inset: 0;
  background-color: #FFF1C2;
  z-index: 20000;
  display: flex;
  align-items: start;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  padding: 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* overscroll-behavior: contain; */
}

.works-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.works-modal-inner {
  width: 100%;
  max-width: 800px;
  position: relative;
  margin: auto;
  margin-top: 12vw;
}

.works-modal-close {
  position: fixed;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  cursor: pointer;
  z-index: 20001;
  transition: transform 0.3s;
}

@media (max-width: 430px) {
  .works-modal-inner {
    margin-top: 17vw;
  }

  .works-modal-close {
    width: 40px;
    height: 40px;
  }
}

.works-modal-close:hover {
  transform: rotate(90deg);
}

.works-modal-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 2;
  background-color: #dcdcdc;
  margin-bottom: 2.5rem;
  border-radius: 6px;
  overflow: hidden;
}

.works-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.works-modal-title {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: var(--color-navy);
}

.works-modal-desc {
  font-size: 1rem;
  line-height: 1.8;
}

/* --- Topics Layout --- */
#topics {
  padding-top: 10rem;
  padding-bottom: 10rem;
  background-image: url('./assets/img/topics_bg.png');
  background-size: 100% auto;
  background-position: center bottom 5vw;
  background-repeat: no-repeat;
  background-color: transparent;
  position: relative;
  z-index: 5;
}

@media (min-width: 1600px) {
  #topics {
    padding-top: 20rem;
    padding-bottom: 20rem;
  }
}

@media (max-width: 430px) {
  #topics {
    background-size: initial;
    background-position: center;
    padding-top: 5rem;
  }

  .max-w-\[240px\] {
    max-width: 170px !important;
  }
}

.topic-item-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .topic-item-container {
    grid-template-columns: 1fr 1fr;
  }
}

.topic-content h3 {
  font-weight: 700;
  color: #333;
}

#company.py-24 {
  padding-bottom: 20rem;
}

@media (max-width: 430px) {
  .archive-works .grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

/* --- Footer Styles --- */
.footer {
  background-color: var(--color-yellow);
  padding: 10px 0 2rem 0;
}

.footer-contact-unit {
  margin-top: -10rem;
}

.footer-info-section {
  padding-top: 10rem;
}

.footer-contact-section {
  margin-top: -100px;
  padding: 0 4% 4rem;
  position: relative;
  z-index: 20;
}

.footer-contact-container {
  max-width: 40vw;
  margin: 0 auto;
}

.footer-info-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

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

.copyright {
  font-size: 12px;
  font-weight: 700;
  color: #333;
}

/* --- Entry Content Styles --- */
.entry-content p {
    margin-bottom: 2rem;
}
.entry-content h2 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-navy);
    margin: 4rem 0 2rem;
    padding-left: 1rem;
    border-left: 4px solid var(--color-navy);
}
