/* ============================================================
   GingerLab page-specific overrides for index.html
   Loaded after assets/css/style.css so these declarations win on equal specificity.
   ============================================================ */


/* ---- 1. Typography globals ----------------------------------- */

/* Match Spice Factory's font setup (https://spice-factory.co.jp/) */
:root {
  --font_dmsans: "Open Sans", "Noto Sans JP", "Noto Sans Japanese", sans-serif;
  --font_bdogrotesk: "Times New Roman", Times, "Noto Serif JP", serif;
  /* Brand key color — overrides the template's default #FA814D so the loader,
     theme accents and any var(--theme)/var(--action) consumer pick up the new yellow. */
  --theme: #fae54d;
  --action: #fae54d;
}
body,
body.body-digital-agency {
  font-family: YuMincho, "Yu Mincho", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN",
    "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "ＭＳ Ｐ明朝", "MS P Mincho",
    "Noto Serif JP", "Times New Roman", Georgia, serif;
}


/* ---- 2. Header ----------------------------------------------- */

/* Light pill so the dark logo stays legible on the dark hero */
.header-area .header-area__inner {
  background-color: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
}
.header-area .main-menu li a,
.header-area .main-menu li a:hover,
.header-area .main-menu > ul > li:hover > a {
  color: #111111;
}
.header-area .header__navicon i {
  color: #111111;
}

/* Sticky header — keep just the white pill floating; do NOT paint the full bar white.
   The template's default .sticky paints background-color:#FFFFFF across the full width,
   which clashes with the dark theme. We strip that and let the inner pill stand alone. */
.header-area.header-sticky.sticky,
.header-area.header-sticky.transformed {
  background-color: transparent;
}
.header-area.header-sticky.sticky .header-area__inner,
.header-area.header-sticky.transformed .header-area__inner {
  background-color: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  margin-top: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}


/* ---- 3. Hero section ----------------------------------------- */

/* Bigger, bolder serif headline for more presence */
.hero-area .section-content .section-title {
  font-family: "Times New Roman", Times, serif;
  font-size: 140px;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 1700px;
}
@media only screen and (max-width: 1919px) {
  .hero-area .section-content .section-title {
    font-size: 118px;
    max-width: 1440px;
  }
}
@media only screen and (max-width: 1399px) {
  .hero-area .section-content .section-title {
    font-size: 96px;
    max-width: 1180px;
  }
}
@media only screen and (max-width: 1199px) {
  .hero-area .section-content .section-title {
    font-size: 72px;
    max-width: 900px;
  }
}
@media (max-width: 575px) {
  .hero-area .section-content .section-title {
    font-size: 44px;
  }
}

/* Small Japanese tagline under the hero headline */
.hero-area .section-content .hero-jp-tagline {
  margin-top: 28px;
  color: var(--white);
  font-family: YuMincho, "Yu Mincho", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN",
    "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "Noto Serif JP", "Times New Roman", Georgia, serif;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
@media only screen and (max-width: 1399px) {
  .hero-area .section-content .hero-jp-tagline {
    font-size: 16px;
    margin-top: 22px;
  }
}
@media (max-width: 575px) {
  .hero-area .section-content .hero-jp-tagline {
    font-size: 14px;
    margin-top: 18px;
  }
}


/* ---- 4. About area (orange band) ----------------------------- */

/* Repaint the about-area-2 + the hero-area-7 image block in #fae54d */
.about-area-2,
.hero-area-7 {
  background-color: #fae54d;
}
.about-area-2 {
  --primary: #000000;
  --white: #000000;
  color: #000000;
}
.about-area-2 .section-title,
.about-area-2 .section-subtitle-3,
.about-area-2 .section-content .text,
.about-area-2 .rr-btn-underline {
  color: #000000;
}

/* Circular text badge — replaces the old .thumb image with an SVG that has
   "SINSE • 2026 • BRAND COMMUNICATION AGENCY •" rotating around the GingerLab
   logo. Spec ported from the requested Next.js component. */
.about-area-2 .thumb.gl-circular-badge {
  /* The base .about-area-2 .thumb rule clips the bottom-right quarter via
     border-bottom-right-radius:100% + overflow:hidden, which would crop the
     rotating circle. Disable that clipping here. */
  border-radius: 0;
  overflow: visible;
}
.gl-circular-badge {
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gl-circular-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 320px;
}
.gl-circular-rotating {
  transform-origin: 128px 128px;
  animation: gl-circular-rotate 20s linear infinite;
}
@keyframes gl-circular-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .gl-circular-rotating {
    animation: none;
  }
}

/* Force Mincho on Japanese copy regardless of inherited font-family */
.about-area-2 .section-content .text,
.about-area-2 .section-content .subcatch {
  font-family: YuMincho, "Yu Mincho", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN",
    "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "ＭＳ Ｐ明朝", "MS P Mincho",
    "Noto Serif JP", "Times New Roman", Georgia, serif;
}

/* Sub-catch headline */
.about-area-2 .section-content .subcatch {
  color: #000000;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.02em;
  margin-bottom: 36px;
}
@media only screen and (max-width: 1399px) {
  .about-area-2 .section-content .subcatch {
    font-size: 26px;
    margin-bottom: 30px;
  }
}
@media only screen and (max-width: 1199px) {
  .about-area-2 .section-content .subcatch {
    font-size: 22px;
    margin-bottom: 24px;
  }
}
@media (max-width: 575px) {
  .about-area-2 .section-content .subcatch {
    font-size: 18px;
  }
}

/* Right-align the body copy column with the heading column above */
.about-area-2 .section-content-wrapper {
  grid-template-columns: 1fr 925px;
  gap: 40px 30px;
  justify-content: stretch;
}
.about-area-2 .section-content {
  padding-left: 180px;
  padding-right: 120px;
}
@media only screen and (max-width: 1919px) {
  .about-area-2 .section-content-wrapper {
    grid-template-columns: 1fr 725px;
  }
  .about-area-2 .section-content {
    padding-left: 120px;
    padding-right: 80px;
  }
}
@media only screen and (max-width: 1399px) {
  .about-area-2 .section-content-wrapper {
    grid-template-columns: 1fr 625px;
  }
  .about-area-2 .section-content {
    padding-left: 80px;
    padding-right: 60px;
  }
}
@media only screen and (max-width: 1199px) {
  .about-area-2 .section-content-wrapper {
    grid-template-columns: 1fr 525px;
  }
  .about-area-2 .section-content {
    padding-left: 40px;
    padding-right: 30px;
  }
}
@media only screen and (max-width: 991px) {
  .about-area-2 .section-content-wrapper {
    grid-template-columns: 1fr;
  }
  .about-area-2 .section-content {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Body copy — slightly larger and heavier than before for better presence */
.about-area-2 .section-content .text {
  font-size: 23px;
  font-weight: 500;
  line-height: 1.9;
}
@media only screen and (max-width: 1919px) {
  .about-area-2 .section-content .text {
    font-size: 19px;
  }
}
@media only screen and (max-width: 1199px) {
  .about-area-2 .section-content .text {
    font-size: 17px;
  }
}
@media (max-width: 575px) {
  .about-area-2 .section-content .text {
    font-size: 15px;
  }
}


/* ---- 5. Thinking section (KIBOU CURRY) ----------------------- */

/* Bootstrap's default 1320px container is too narrow for the
   1fr + 1095px image grid here, so widen it on bigger viewports. */
@media (min-width: 1400px) {
  .thinking .container.large {
    max-width: 1500px;
  }
  .thinking__wrapper {
    grid-template-columns: 1fr 800px;
    gap: 80px;
  }
}
@media (min-width: 1600px) {
  .thinking .container.large {
    max-width: 1700px;
  }
}
@media (min-width: 1900px) {
  .thinking .container.large {
    max-width: 1850px;
  }
}

/* Portrait kibocurry.png — center horizontally, scale up by explicit height */
.thinking__media {
  margin-top: 0;
  text-align: center;
}
.thinking__media img {
  display: inline-block;
  width: auto;
  height: 900px;
  max-width: 100%;
  object-fit: contain;
}
@media only screen and (max-width: 1919px) {
  .thinking__media img {
    height: 760px;
  }
}
@media only screen and (max-width: 1399px) {
  .thinking__media img {
    height: 620px;
  }
}
@media only screen and (max-width: 991px) {
  .thinking__media img {
    height: 480px;
  }
}

/* Body description — white, smaller, lighter weight, wider, more line-height */
.thinking__content p {
  color: #ffffff;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.9;
  max-width: 620px;
}
@media only screen and (max-width: 1399px) {
  .thinking__content p {
    font-size: 16px;
    max-width: 540px;
  }
}
@media only screen and (max-width: 991px) {
  .thinking__content p {
    font-size: 15px;
    max-width: 100%;
  }
}
.thinking__content p + p {
  margin-top: 20px;
}

/* "K" + "ibo" + "curry" decorative title — pushed right so it slightly overlaps the image */
.thinking__content .title {
  font-size: 230px;
  line-height: 150px;
  bottom: -60px;
  left: auto;
  right: -80px;
  z-index: 99;
}
.thinking__content .title .big-letter {
  font-size: 480px;
}
@media only screen and (max-width: 1919px) {
  .thinking__content .title {
    font-size: 190px;
    line-height: 125px;
    right: -60px;
  }
  .thinking__content .title .big-letter {
    font-size: 400px;
  }
}
@media only screen and (max-width: 1399px) {
  .thinking__content .title {
    font-size: 160px;
    line-height: 105px;
    right: -40px;
  }
  .thinking__content .title .big-letter {
    font-size: 330px;
  }
}
@media only screen and (max-width: 991px) {
  .thinking__content .title {
    font-size: 130px;
    line-height: 90px;
    right: 0;
    left: 0;
  }
  .thinking__content .title .big-letter {
    font-size: 270px;
  }
}
@media only screen and (max-width: 767px) {
  .thinking__content .title .big-letter {
    font-size: 220px;
  }
}
@media (max-width: 575px) {
  .thinking__content .title .big-letter {
    font-size: 160px;
  }
}


/* ---- 6. Our Vision (our-expertise-7 / about-uss-7-inner) ----- */

/* The about-uss-7 title now holds long Japanese copy — switch to Mincho,
   drop the uppercase transform, shrink and add line spacing */
.our-expertise-7 .section-4-title-wrapper .section-4-title,
.our-expertise-7 .section-4-title-wrapper .section-4-subtitle {
  font-family: YuMincho, "Yu Mincho", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN",
    "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "ＭＳ Ｐ明朝", "MS P Mincho",
    "Noto Serif JP", "Times New Roman", Georgia, serif;
}
.our-expertise-7 .section-4-title-wrapper .section-4-title {
  font-size: 22px;
  line-height: 1.95;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 400;
}
@media only screen and (max-width: 1399px) {
  .our-expertise-7 .section-4-title-wrapper .section-4-title {
    font-size: 19px;
  }
}
@media only screen and (max-width: 1199px) {
  .our-expertise-7 .section-4-title-wrapper .section-4-title {
    font-size: 17px;
  }
}
@media only screen and (max-width: 991px) {
  .our-expertise-7 .section-4-title-wrapper .section-4-title {
    font-size: 16px;
  }
}
@media (max-width: 575px) {
  .our-expertise-7 .section-4-title-wrapper .section-4-title {
    font-size: 13px;
    line-height: 1.9;
  }
}

/* Restore the title→items gap that .section-title used to provide
   before we swapped it for .about-uss-7-inner */
.our-expertise-7 .about-uss-7-inner {
  margin-bottom: 120px;
}
@media only screen and (max-width: 1399px) {
  .our-expertise-7 .about-uss-7-inner {
    margin-bottom: 100px;
  }
}
@media only screen and (max-width: 1199px) {
  .our-expertise-7 .about-uss-7-inner {
    margin-bottom: 80px;
  }
}


/* ---- 7. Capabilities marquee --------------------------------- */

/* Orange band with tighter vertical padding.
   padding-bottom is intentionally smaller than padding-top to compensate for
   the font's descender area, which otherwise reads as extra empty space. */
.gl-marquee-capabilities {
  background-color: #fae54d;
  padding-top: 60px;
  padding-bottom: 10px;
  margin-top: 60px;
  margin-bottom: 40px;
}
.marquee-text-area.gl-marquee-capabilities .section-title {
  color: #000000;
  font-size: 160px;
}
@media only screen and (max-width: 1919px) {
  .marquee-text-area.gl-marquee-capabilities .section-title {
    font-size: 130px;
  }
}
@media only screen and (max-width: 1399px) {
  .marquee-text-area.gl-marquee-capabilities .section-title {
    font-size: 110px;
  }
}
@media only screen and (max-width: 1199px) {
  .gl-marquee-capabilities {
    padding-top: 40px;
    padding-bottom: 6px;
    margin-top: 40px;
    margin-bottom: 20px;
  }
  .marquee-text-area.gl-marquee-capabilities .section-title {
    font-size: 88px;
  }
}
@media only screen and (max-width: 767px) {
  .marquee-text-area.gl-marquee-capabilities .section-title {
    font-size: 64px;
  }
}
@media (max-width: 575px) {
  .gl-marquee-capabilities {
    padding-top: 28px;
    padding-bottom: 4px;
    margin-top: 28px;
    margin-bottom: 8px;
  }
  .marquee-text-area.gl-marquee-capabilities .section-title {
    font-size: 48px;
  }
}


/* ---- 8. Company info table (award-area) ---------------------- */

/* Heading — sized further down so the long English copy fits in ~3 lines on
   a MacBook Pro 14" viewport (~1512px) and a few more on smaller screens.
   Also widens the heading column so "Spice Factory Inc.," can stay on the
   first line instead of being split onto its own line. */
.award-area .section-title {
  font-size: 54px;
  max-width: 1080px;
}
@media only screen and (max-width: 1919px) {
  .award-area .section-title {
    max-width: 850px;
  }
}
@media only screen and (max-width: 1399px) {
  .award-area .section-title {
    max-width: 720px;
  }
}
@media only screen and (max-width: 1199px) {
  .award-area .section-title {
    max-width: 600px;
  }
}
@media only screen and (max-width: 991px) {
  .award-area .section-title {
    max-width: 100%;
  }
}

/* Accent-colored link inside the company info heading.
   nowrap keeps "Spice Factory Inc.," together so the comma never falls onto
   a line of its own. */
.award-area .section-title .gl-accent-link {
  color: #fae54d;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}
.award-area .section-title .gl-accent-link:hover {
  opacity: 0.75;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
@media only screen and (max-width: 1919px) {
  .award-area .section-title {
    font-size: 42px;
  }
}
@media only screen and (max-width: 1399px) {
  .award-area .section-title {
    font-size: 36px;
  }
}
@media only screen and (max-width: 1199px) {
  .award-area .section-title {
    font-size: 30px;
  }
}
@media only screen and (max-width: 991px) {
  .award-area .section-title {
    font-size: 26px;
  }
}
@media only screen and (max-width: 767px) {
  .award-area .section-title {
    font-size: 22px;
  }
}

/* Lighter font weight and more line-height for readable Japanese */
.award-area .award-box .category,
.award-area .award-box .award {
  font-weight: 300;
  line-height: 1.9;
}
.award-area .award-box .award a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.award-area .award-box .award a:hover {
  opacity: 0.7;
}


/* ---- Mobile fixes -------------------------------------------- */

/* スマホ用タイトル：非表示 */
.thinking__content .title-mobile {
  display: none !important;
}

/* ① スマホ時：元のtitleを非表示、title-mobileを表示・中央寄せ */
@media only screen and (max-width: 767px) {
  body .thinking__content .title {
    display: none !important;
  }
  .thinking__content .title-mobile {
    display: block;
    font-size: 60px;
    line-height: 60px;
    font-family: var(--font_ppeditor);
    font-style: italic;
    font-weight: 400;
    color: #ffffff;
    text-align: center;
    letter-spacing: 4px;
    word-spacing: 12px;
    margin-top: 20px;
    position: relative;
  }
}
@media (max-width: 575px) {
  .thinking__content .title-mobile {
    font-size: 48px;
    line-height: 50px;
  }
}

/* ② KIBOU CURRY 画像をスマホで中央に */
@media only screen and (max-width: 1199px) {
  body .thinking__media {
    text-align: center;
    width: 100%;
  }
  body .thinking__media img {
    height: auto !important;
    width: 80% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
    display: block !important;
  }
}

/* ③ スマホヘッダー：ロゴとハンバーガーメニューの余白を削除 */
@media only screen and (max-width: 1199px) {
  .header-area .header-area__inner {
    justify-content: space-between !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    gap: 0 !important;
    width: 100% !important;
  }
  .header-area .header__nav {
    display: none !important;
  }
}


/* ---- Company section: 役員表記の改行を確実に ---- */
.award br {
  display: block;
  content: "";
  margin-bottom: 4px;
}


/* ---- スマホでカスタムカーソルを非表示 ---- */
@media only screen and (max-width: 1199px) {
  .cursor, .cursor2, .cursor-follower, [class*="cursor"] {
    display: none !important;
    opacity: 0 !important;
  }
}
