/* Optimized single Google Fonts import */
/*
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Lato:wght@900&family=Zen+Old+Mincho:wght@700;900&family=Zen+Kaku+Gothic+New:wght@500;700&family=Montserrat:wght@400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Anton&family=Noto+Sans+JP:wght@400;500;700;900&family=Lato:wght@900&family=Zen+Old+Mincho:wght@700;900&family=Zen+Kaku+Gothic+New:wght@500;700&family=Montserrat:wght@400&display=swap");
*/

/* ========================================
CSS Variables (Design System)
======================================== */
:root {
  --primary-blue: #2196f3;
  --primary-blue-dark: #176eca;
  --dark-blue: #0d47a1;
  --text-primary: #333333;
  --text-secondary: #000000;
  --white: #ffffff;
  --bg-light: #f7f7f7;
  --border-light: rgba(13, 71, 161, 0.1);
  --shadow-blue: rgba(13, 71, 161, 0.5);
  --spacing-xs: 10px;
  --spacing-sm: 15px;
  --spacing-md: 20px;
  --spacing-lg: 30px;
  --spacing-xl: 40px;
  --spacing-2xl: 50px;
  --spacing-3xl: 100px;
  --font-noto: "Noto Sans JP", sans-serif;
  --font-lato: "Lato", sans-serif;
  --font-zen-old: "Zen Old Mincho", serif;
  --font-zen-kaku: "Zen Kaku Gothic New", sans-serif;
  --font-montserrat: "Montserrat", sans-serif;
}


body {
  line-break: strict;
  word-break: normal;
  overflow-wrap: normal;
}

p,
li,
.site-copy,
.page-content {
  word-break: normal;
  overflow-wrap: normal;
  line-break: strict;
}


/* ========================================
Base Styles
======================================== */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font-noto);
  color: var(--text-primary);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-padding-top: 96px;
}

body.admin-bar {
  --admin-bar-offset: 32px;
}

@media (max-width: 782px) {
  body.admin-bar {
    --admin-bar-offset: 46px;
  }
}

main [id],
.subpage-main [id] {
  scroll-margin-top: calc(96px + var(--admin-bar-offset, 0px));
}
.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 1024px) {
  .container {
    padding: 0 50px;
  }
}



/* ========================================
Header
======================================== */
header {
  position: fixed;
  top: var(--admin-bar-offset, 0px);
  left: 0;
  right: 0;
  z-index: 1000;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
#logo {
  position: absolute;
  left: 20px;
  top: 22px;
  width: 160px;
  height: 36px;
}
@media (min-width: 1024px) {
  #logo {
    left: 50px;
    top: 18px;
    width: 176px;
    height: 44px;
  }
}

/* Mobile Menu Toggle */
#menu-toggle {
  position: absolute;
  right: 15px;
  top: calc(15px + var(--admin-bar-offset, 0px));
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--dark-blue);
  border: none;
  cursor: pointer;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 1024px) {
  #menu-toggle {
    display: none;
  }
}

/* Navigation */
header nav {
  display: none;
}
@media (min-width: 1024px) {
  header nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
  }
  header nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  header nav a {
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1.6px;
    transition: color 0.3s ease;
  }
  header nav a:hover {
    color: var(--primary-blue);
  }
  .btn-recruit {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    color: var(--white) !important;
    padding: 12px 24px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;

    border: 1px solid transparent;
    background: transparent;

    transition:
      color 0.35s ease,
      border-color 0.35s ease,
      box-shadow 0.35s ease;
  }

  .btn-recruit::before,
  .btn-recruit::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: -1;
    transition: opacity 0.35s ease;
  }

  .btn-recruit::before {
    background: linear-gradient(to right, var(--primary-blue), var(--dark-blue));
    opacity: 1;
  }

  .btn-recruit::after {
    background: var(--white);
    opacity: 0;
  }

  .btn-recruit:hover {
    color: var(--dark-blue) !important;
    border-color: var(--dark-blue);
    box-shadow: 0 8px 20px rgba(13, 71, 161, 0.12);
  }

  .btn-recruit:hover::before {
    opacity: 0;
  }

  .btn-recruit:hover::after {
    opacity: 1;
  }

  .btn-recruit i {
    transition:
      transform 0.35s ease,
      color 0.35s ease;
  }

  .btn-recruit:hover i {
    transform: translate(2px, -2px);
  }

}

.mobile-nav {
  display: none;
}

@media (max-width: 1200px) {

  header nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  header nav a {
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s ease;
  }

}

/* Mobile Navigation */
@media (max-width: 1023px) {
  header {
    position: absolute;
    top: var(--admin-bar-offset, 0px);
    left: 0;
    right: 0;
    background: transparent !important;
    box-shadow: none;
    backdrop-filter: none;
    transform: none !important;
  }

  #logo {
    top: 50%;
    left: 20px;
    height: 36px;
    width: auto;
    transform: translateY(-50%);
    z-index: 1201;
  }

  #logo img {
    display: block;
    height: 36px;
    width: auto;
  }

  #menu-toggle {
    position: fixed;
    top: calc(15px + var(--admin-bar-offset, 0px));
    right: 15px;
    width: 50px;
    height: 50px;
    z-index: 1500;
    transition:
      background-color 0.35s ease,
      box-shadow 0.35s ease,
      transform 0.35s ease;
  }

  #menu-toggle svg {
    width: 20px;
    height: 10px;
    display: block;
    overflow: visible;
  }

  #menu-toggle .line {
    transform-box: fill-box;
    transform-origin: center;
    transition:
      transform 0.35s ease,
      fill 0.35s ease,
      opacity 0.35s ease;
  }

  #menu-toggle.active {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: none;
  }

  #menu-toggle.active .line-1 {
    fill: #7ea1d9;
    transform: translateY(4px) rotate(45deg);
  }

  #menu-toggle.active .line-2 {
    fill: #7ea1d9;
    transform: translateY(-4px) rotate(-45deg);
  }

  .mobile-nav {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--dark-blue);
    flex-direction: column;
    padding: 0;
    z-index: 1400;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
/*    transform: translateY(-8px);*/
    transition:
      opacity 0.35s ease,
      visibility 0.35s ease,
      transform 0.35s ease;
  }

  .mobile-nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-nav-head {
    position: relative;
    height: 80px;
    flex: 0 0 80px;
  }

  .mobile-nav-logo {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.28s ease;
  }

  .mobile-nav.active .mobile-nav-logo {
    opacity: 1;
  }

  .mobile-nav-logo img {
    display: block;
    width: auto;
    height: 36px;
  }

  .mobile-nav-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    width: 100%;
    padding: 20px 24px 12px;
    text-align: center;
    transform: none;
    opacity: 1;
    transition: none;
  }

  .mobile-nav-body a {
    display: block;
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.35;
    letter-spacing: 0;
    color: #fff;
    text-decoration: none;
  }

  .mobile-nav-body a span {
    display: inline-block;
    white-space: nowrap;
  }

  .mobile-nav-body a .char {
    display: inline-block;
    opacity: 0;
    transform: translateX(-0.35em);
  }

  .mobile-nav.active .mobile-nav-body a .char {
    animation: mobileMenuCharIn 0.34s ease forwards;
    animation-delay: calc(var(--link-index, 0) * 120ms + var(--char-index, 0) * 36ms + 120ms);
  }

  .mobile-nav-foot {
    flex: 0 0 auto;
    padding: 20px;
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.35s ease,
      transform 0.4s ease;
    transition-delay: 0s;
  }

  .mobile-nav.active .mobile-nav-foot {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 520ms;
  }

  .mobile-nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    width: 100%;
    min-height: 60px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #1f5ab6;
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
  }

  #menu-toggle.active {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: none;
  }

  #menu-toggle.active .line-1 {
    fill: #7ea1d9;
    transform: translateY(4px) rotate(45deg);
  }

  #menu-toggle.active .line-2 {
    fill: #7ea1d9;
    transform: translateY(-4px) rotate(-45deg);
  }
  .mobile-nav-body a .char {
    display: inline-block;
    opacity: 0;
    transform: translateX(-0.35em);
    will-change: transform, opacity;
  }

  .mobile-nav.active .mobile-nav-body a .char {
    animation: mobileMenuCharIn 0.34s ease forwards;
    animation-delay: calc(var(--link-index, 0) * 120ms + var(--char-index, 0) * 36ms + 120ms);
  }
}
@keyframes mobileMenuCharIn {
  from {
    opacity: 0;
    transform: translateX(-0.35em);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}



/* ========================================
Hero Section
======================================== */

/* ========================================
Hero Section
======================================== */

#hero {
  position: relative;
  height: var(--app-height, 100vh);
  min-height: var(--app-height, 100vh);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}


/* 動画HROここから
.hero-video-wrap {
  position: absolute;
  inset: -3%;
  z-index: 0;
  overflow: hidden;
  transform: translate3d(0, var(--hero-parallax-y, 0px), 0) scale(1.03);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition: opacity 1.4s ease;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 1023px) {
  #hero::before {
    background-position: 35% center;
  }
}
動画HROここまで */


/* 写真HEROここから */
#hero::before {
  content: "";
  position: absolute;
  inset: -3%;
  background-image: var(--hero-image, url("../images/hero_01.jpg"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translate3d(0, var(--hero-parallax-y, 0px), 0) scale(1.03);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
  pointer-events: none;
}
/* 写真HEROここまで */


#hero h1 {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity 1s ease 0.35s,
    transform 1s ease 0.35s,
    filter 1s ease 0.35s;
  position: relative;
  z-index: 1;
  font-family: var(--font-zen-old);
  font-weight: 700;
  font-size: clamp(28px, 10vw, 50px);
  color: var(--white);
  text-align: center;
  letter-spacing: 4px;
  line-height: 1.5;
  text-shadow: 0 0 10px rgba(13, 71, 161, 1);
  margin-top: 0;
}

body.loaded #hero::after {
  opacity: 1;
}

body.loaded #hero h1 {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (min-width: 1024px) {
  #hero h1 {
    font-size: clamp(32px, 6vw, 80px);
    letter-spacing: 8px;
  }

  #hero h1 br {
    display: none;
  }
}

@media (max-width: 1023px) {
  #hero {
    justify-content: flex-start;
    padding: 0 20px;
  }

  #hero h1 {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-wrap,
  #hero::after,
  #hero h1 {
    transition: none;
    transform: none;
    filter: none;
    opacity: 1;
  }
}


/* ========================================
Section Titles
======================================== */
.section-title {
  margin-bottom: var(--spacing-lg);
}
@media (min-width: 1024px) {
  .section-title {
    margin-bottom: var(--spacing-2xl);
    display: block !important;
  }
}
@media (max-width: 1023px) {
  .news-sidebar .section-title,
  .works-sidebar .section-title {
    display: none !important;
  }
  .news-list > .section-title,
  .works-slider + .section-title {
    display: block !important;
  }
}
.section-title .subtitle {
  font-family: var(--font-noto);
  font-weight: 700;
  font-size: 11px;
  color: var(--dark-blue);
  letter-spacing: 1.1px;
  line-height: normal;
  margin-bottom: 0px;
}
@media (min-width: 1024px) {
  .section-title .subtitle {
    font-size: 16px;
    letter-spacing: 1.6px;
  }
}
.section-title h2 {
  font-family: var(--font-lato);
  font-weight: 900;
  font-size: 45px;
  color: var(--dark-blue);
  letter-spacing: 2.25px;
  line-height: normal;
  margin: 0;
}
@media (min-width: 1024px) {
  .section-title h2 {
    font-size: 80px;
    letter-spacing: 4px;
  }
}
/* White text variant */
.section-title.white .subtitle,
.section-title.white h2 {
  color: var(--white);
}



/* ========================================
News Section
======================================== */
#news {
  padding: 50px 0;
}
@media (min-width: 1024px) {
  #news {padding: 100px 0;}
}

.news-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
@media (min-width: 1024px) {
  .news-layout {
    flex-direction: row;
    gap: 105px;
  }
}

.news-sidebar {
  display: none;
}
@media (min-width: 1024px) {
  .news-sidebar {
    display: flex;
    flex-direction: column;
/*    gap: 52px;*/
    max-width: 250px;
    flex-shrink: 0;
  }
}

.news-list {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}
.news-item {
  border-top: 1px solid var(--border-light);
  padding: 20px 0;
}
.news-item:last-child {
  border-bottom: 1px solid var(--border-light);
}
.news-item-link {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.news-item-link:hover {
  opacity: 1;
}
.news-item-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
@media (min-width: 1024px) {
  .news-item-content {
    flex-direction: row;
    align-items: start;
    gap: 20px;
  }
}

.news-item-arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 1024px) {
  .news-item-arrow {
    width: 36px;
    height: 36px;
  }
  .news-item-arrow svg {
    width: 36px;
    height: 36px;
  }
}
@media (max-width: 1023px) {
  .news-item-arrow {
    display: none;
  }
}

.news-date {
  font-family: var(--font-noto);
  font-weight: 500;
  font-size: 14px;
  color: var(--dark-blue);
  letter-spacing: 1.4px;
  line-height: 18px;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .news-date {
    font-size: 16px;
    letter-spacing: 1.6px;
    line-height: 36px;
  }
}

.news-cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #F1F9FF;
  font-family: var(--font-noto);
  font-weight: 500;
  font-size: 11px;
  color: var(--dark-blue);
  letter-spacing: 1.1px;
  line-height: 1.2;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .news-cat {
    min-height: 28px;
    padding: 4px 12px;
    font-size: 12px;
    letter-spacing: 1.2px;
    margin-top: 4px;
  }
}

.news-title {
  font-family: var(--font-noto);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-primary);
  letter-spacing: 1.4px;
  line-height: 26px;
  flex: 1;
  min-width: 0;
}
@media (min-width: 1024px) {
  .news-title {
    font-size: 16px;
    letter-spacing: 1.6px;
    line-height: 36px;
  }
}

.news-item-content,
.news-date,
.news-title,
.news-item-arrow,
.news-item-arrow svg {
  transition:
    transform 0.35s ease,
    color 0.35s ease,
    opacity 0.35s ease;
}

.news-item:hover .news-item-content {
  transform: translateX(6px);
}

.news-item:hover .news-date {
  color: var(--primary-blue-dark);
}

.news-item:hover .news-title {
  color: var(--dark-blue);
}

.news-item:hover .news-item-arrow {
  transform: translateX(8px);
}

.news-item:hover .news-item-arrow svg {
  transform: scale(1.06);
}

/* new-meta  */
@media (min-width: 1024px) {
  .news-meta {
    display: contents;
  }
}

@media (max-width: 1023px) {
  .news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .news-meta .news-date,
  .news-meta .news-cat {
    margin: 0;
  }

  .news-item-content {
    gap: 10px;
  }
}


/* ========================================
Message Section
======================================== */
#message {
  padding: 40px 0;
}
@media (min-width: 1024px) {
  #message {
    padding: 100px 0;
  }
  #message .container {
    padding: 0 30px;
  }
}

.message-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
@media (min-width: 1024px) {
  .message-layout {
    flex-direction: row;
    gap: 5%;
    align-items: stretch;
  }
}
@media (min-width: 1200px) {
  .message-layout {
    flex-direction: row;
    gap: 7.5%;
    align-items: stretch;
  }
}

.message-image {
  position: relative;
  height: 260px;
  border-radius: 5px;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .message-image {
    max-width: 40%;
    height: auto;
    flex-shrink: 0;
    order: -1;
  }
}

.message-image {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .message-image {
    transform: none !important;
  }
}


.message-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
@media (min-width: 1024px) {
  .message-content {
    flex: 1;
    max-width: 646px;
    height: auto;
    justify-content: space-between;
    gap: 30px;
  }
}

.message-title {
  font-family: var(--font-zen-old);
  font-weight: 700;
  font-size: 30px;
  color: var(--dark-blue);
  letter-spacing: 2px;
  line-height: normal;
}
@media (min-width: 1024px) {
  .message-title {
    font-size: 50px;
    letter-spacing: 0.1em;
  }
}
@media (min-width: 1200px) {
  .message-title {
    font-size: 60px;
    letter-spacing: 0.1em;
  }
}

.message-title span {
  color: var(--text-primary);
}
.message-text {
  font-family: var(--font-noto);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-primary);
  letter-spacing: 1.4px;
  line-height: 30px;
}
@media (min-width: 1024px) {
  .message-text {
    font-size: 18px;
    letter-spacing: 1.8px;
    line-height: 36px;
    padding-left: 30px;
  }
}

.message-text p {
  margin: 0;
}

@media (min-width: 1024px) {
  .message-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}



/* ========================================
About Section
======================================== */
#about {
  padding: 49px 0;
}
@media (min-width: 1024px) {
  #about {
    padding: 100px 0;
  }
}

@media (max-width: 1023px) {
  #about .container {
    padding: 0;
  }
}
.about-container {
  position: relative;
  height: 480px;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .about-container {
  border-radius: 5px;
    height: 800px;
  }
}

.about-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.about-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 50px 30px;
}
@media (min-width: 1024px) {
  .about-content {
    padding: 100px;
  }
}

.about-content .section-title {
  text-shadow: 0 0 20px rgba(13, 71, 161, 1);
}
.about-description {
  font-family: var(--font-zen-old);
  font-weight: 900;
  font-size: 16px;
  color: var(--white);
  letter-spacing: 1.6px;
  line-height: 32px;
  text-shadow: 0 0 20px rgba(13, 71, 161, 1);
}
@media (min-width: 1024px) {
  .about-description {
    font-size: 22px;
    letter-spacing: 2.2px;
    line-height: 44px;
  }
}

.about-description p {
  margin: 0;
}

.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
  max-width: 100%;
  margin-top: 3em;
  text-decoration: none;
  transition: gap 0.3s ease;
  text-shadow: 0 0 20px rgba(13, 71, 161, 1);
}

.btn-more span {
  font-family: var(--font-noto);
  font-weight: bold;
  font-size: 14px;
  color: var(--white);
  letter-spacing: 1.4px;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition:
    transform 0.3s ease,
    text-underline-offset 0.3s ease,
    opacity 0.3s ease;
}

@media (min-width: 1024px) {
  .btn-more span {
    font-size: 18px;
    letter-spacing: 1.8px;
  }
}

.btn-circle {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 18px rgba(13, 71, 161, 0.45),
    inset 0 0 10px rgba(13, 71, 161, 0.28);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

@media (min-width: 1024px) {
  .btn-circle {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }
}

.btn-circle svg {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.btn-more:hover {
  gap: 20px;
}

.btn-more:hover span {
  transform: translateX(4px);
  text-underline-offset: 6px;
}

.btn-more:hover .btn-circle {
  transform: translateX(6px) scale(1.06);
}

.btn-more:hover .btn-circle svg {
  transform: translateX(2px);
}



/* ========================================
Technologies Section
======================================== */
#technologies {
  padding: 40px 0 70px;
}
@media (min-width: 1024px) {
  #technologies {
    padding: 100px 0 120px;
  }
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}
@media (min-width: 1024px) {
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
}

.tech-card {
  position: relative;
  height: 269px;
  overflow: visible;
  border-radius: 5px;
}

@media (min-width: 1024px) {
  .tech-card {
    height: 381px;
    border-radius: 0;
  }
}

.tech-card-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.tech-card-media {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 5px;
}

@media (min-width: 1024px) {
  .tech-card-media {
    border-radius: 0;
  }
}

.tech-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.5s ease;
  will-change: transform;
}

.tech-card-button {
  position: absolute;
  bottom: -30px;
  left: 25px;
  right: 25px;
  z-index: 2;
}

@media (min-width: 1024px) {
  .tech-card-button {
    bottom: -35px;
    left: 30px;
    right: 30px;
  }
}

.tech-card-button-inner {
  width: 100%;
  background: linear-gradient(to right, var(--primary-blue), var(--primary-blue-dark));
  color: var(--white);
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 0 7px rgba(0, 0, 0, 0.25);
  font-family: var(--font-noto);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.4px;
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease;
}

@media (min-width: 1024px) {
  .tech-card-button-inner {
    padding: 25px;
    font-size: 18px;
    letter-spacing: 1.8px;
  }
}

.tech-card-button-inner svg {
  transition: transform 0.35s ease;
}

.tech-card-link:hover .tech-card-media img {
  transform: scale(1.08);
}

.tech-card-link:hover .tech-card-button-inner svg {
  transform: translateX(4px);
}



/* ========================================
Business Section
======================================== */
#business {
  padding: 40px 0;
}
@media (min-width: 1024px) {
  #business {
    padding: 100px 0;
  }
}

.business-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 1024px) {
  .business-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

.business-card {
  position: relative;
  height: 140px;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .business-card {
    height: 350px;
  }
}

.business-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.5s ease;
  will-change: transform;
}

.business-card-icon {
  position: absolute;
  bottom: 13px;
  right: 20px;
  width: 30px;
  height: 30px;
  z-index: 1;
  border-radius: 50%;
  box-shadow:
    0 0 18px rgba(0, 0, 0, 0.15),
    inset 0 0 10px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

@media (min-width: 1024px) {
  .business-card-icon {
    bottom: 42px;
    right: 39px;
    width: 50px;
    height: 50px;
  }
}

.business-card-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.35s ease;
}

.business-card:hover .business-card-icon {
  transform: translateX(6px) scale(1.06);
}

.business-card:hover .business-card-icon svg {
  transform: translateX(2px);
}

.business-card:hover img {
  transform: scale(1.08);
}


.business-card h3 {
  position: absolute;
  top: 13.79px;
  left: 20px;
  z-index: 1;
  font-family: var(--font-zen-kaku);
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  letter-spacing: 2px;
  line-height: 28px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  margin: 0;
}
@media (min-width: 1024px) {
  .business-card h3 {
    top: 42.17px;
    left: 39.7px;
    font-size: 28px;
    letter-spacing: 2.8px;
  }
}



/* ========================================
Works Section
======================================== */
#works {
  background: linear-gradient(to right,var(--primary-blue),var(--dark-blue));
  border-top-right-radius: 0;
  padding: 50px 0;
}
@media (min-width: 1024px) {
  #works {
    border-top-right-radius: 75px;
    padding: 100px 0;
  }
}

.works-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
@media (min-width: 1024px) {
  .works-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 50px;
  }
}

@media (max-width: 1023px) {
  .works-sidebar {display: none;}
}

.works-content {
  position: relative;
  flex: 1;
  min-width: 0;
}

@media (min-width: 1024px) {
  .works-content {
    margin-right: calc(50% - 50vw);
  }
}

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

.works-slider {
  overflow: hidden;
  width: 100%;
}

.works-slider-track {
  display: flex;
  gap: 20px;
  width: max-content;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

@media (min-width: 1024px) {
  .works-slider-track {
    gap: 30px;
  }
}

.works-card {
  flex: 0 0 auto;
  width: 200px;
  color: #fff;
  text-decoration: none;
}

@media (min-width: 1024px) {
  .works-card {
    width: 250px;
  }
}

.works-card-image {
  height: 240px;
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .works-card-image {
    height: 300px;
  }
}

.works-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.5s ease;
  will-change: transform;
}

.works-card:hover .works-card-image img {
  transform: scale(1.08);
}

.works-card-date,
.works-card-title {
  color: #fff;
}

.works-controls {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (min-width: 1024px) {
  .works-controls {
    width: calc( 100% - 100px );
    margin-top: 50px;
  }
}

.works-scrollbar {
  width: 100%;
}

.works-scrollbar-track {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
  position: relative;
}

.works-scrollbar-fill {
  height: 100%;
  width: 0%;
  background: var(--dark-blue);
  transition: width 0.5s ease;
}

.works-arrows {
  display: flex;
  justify-content: flex-start;
  gap: 14px;
}

.works-slider-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.92);
  color: var(--dark-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.works-slider-arrow:hover {
  transform: scale(1.06);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.works-slider-arrow svg {
  transition: transform 0.3s ease;
}

.works-slider-prev:hover svg {
  transform: translateX(-2px);
}

.works-slider-next:hover svg {
  transform: translateX(2px);
}


/* ========================================
Recruit Section
======================================== */
#recruit {
  padding: 50px 0;
  position: relative;
}
@media (min-width: 1024px) {
  #recruit {
    padding: 100px 0 0;
  }
}

.recruit-gallery {
  display: flex;
  gap: 0;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
}
.recruit-gallery::-webkit-scrollbar {
  display: none;
}
.recruit-gallery-track {
  display: flex;
  gap: 0;
  animation: scroll-left 30s linear infinite;
  will-change: transform;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@media (min-width: 1024px) {
  .recruit-gallery {
    gap: 0;
    padding-left: 0;
  }
}

.recruit-gallery img {
  flex-shrink: 0;
  width: 217px;
  height: 310px;
  object-fit: cover;
}
@media (min-width: 1024px) {
  .recruit-gallery img {
    width: 350px;
    height: 500px;
  }
}

.recruit-cta {
  position: absolute;
  bottom: 50px;
  right: 0;
  z-index: 10;
  max-width: calc( 100vw - 20px * 2 );
  margin: 0 auto 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px 0 0 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  align-items: stretch;
}
@media (min-width: 1024px) {
  .recruit-cta {
    position: absolute;
    bottom: 228px;
    right: 50px;
    max-width: 650px;
    margin: -60px auto 0;
    margin: 0;
    padding: 50px;
    border-radius: 10px;
  }
}

.recruit-cta p {
  text-align: left;
}

.recruit-cta .btn-more {
  width: 100%;
  justify-content: flex-end;
}
.recruit-cta p {
  font-family: var(--font-zen-old);
  font-weight: 500;
  font-size: 18px;
  color: var(--text-primary);
  letter-spacing: 1.8px;
  line-height: normal;
  margin-bottom: 20px;
}
@media (min-width: 1024px) {
  .recruit-cta p {
    font-size: 35px;
    letter-spacing: 3.5px;
    margin-bottom: 50px;
  }
}

.recruit-cta .btn-more {
  justify-content: flex-end;
  margin-top: 0;
}
.recruit-cta .btn-more span {
  color: var(--dark-blue);
  text-shadow: none;
}
.recruit-cta .btn-circle {
  background: var(--dark-blue);
}

.recruit-cta .btn-circle svg {
  width: 16px;
  height: 16px;
}

@media (min-width: 1024px) {
  .recruit-cta .btn-circle svg {
    width: 20px;
    height: 20px;
  }
}


/* ========================================
Contact Section
======================================== */
#contact {
  padding: 52px 0;
  margin-top: -50px;
  position: relative;
  z-index: 20;
}
@media (min-width: 1024px) {
  #contact {
    padding: 100px 0;
    margin-top: -150px;
  }
}

.contact-box {
  border-radius: 5px;
  padding: 50px 30px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url(../images/bgContact-mb.png);
}
@media (min-width: 1024px) {
  .contact-box {
    max-width: 1340px;
    margin-left: auto;
    padding: 90px 100px;
    background-image: url(../images/bgContact.png);
  }
}

.contact-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
@media (min-width: 1024px) {
  .contact-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
  }
}

.contact-box .section-title {
  margin-bottom: 0;
  text-align: center;
}
@media (min-width: 1024px) {
  .contact-box .section-title {
    text-align: left;
    margin-bottom: 0;
  }
}

.contact-link {
  margin-top: 0;
  justify-content: center;
}

@media (min-width: 1024px) {
  .contact-link {
    justify-content: flex-end;
  }
}

.contact-link span {
  color: var(--white);
}

.contact-link .btn-circle {
  box-shadow: none;
}

@media (max-width: 1023px) {
  .contact-content {
    align-items: stretch;
  }

  .contact-box .section-title {
    text-align: left;
  }

  .contact-link {
    width: 100%;
    justify-content: flex-end;
  }
}


/* ========================================
Footer
======================================== */
footer {
  background: var(--bg-light);
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}
@media (min-width: 1024px) {
  footer {
    padding: 100px 0;
  }
}

@media (max-width: 1023px) {
  footer .container {
      display: flex;
      flex-direction: column;
      gap: 50px;
  }
}

footer::before {
  content: "";
  position: absolute;
  left: calc(50% - 1500px);
  bottom: -2040px;
  width: 2800px;
  height: 2800px;
  background: url("../images/bgFooterRectangle.png") no-repeat center / contain;
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 1024px) {
  footer::before {
    left: calc(50% - 1940px);
    bottom: -1950px;
  }
}

.footer-bottom {
  position: relative;
  z-index: 1;
}

@media (max-width: 1023px) {
  .footer-bottom {
      display: flex;
      flex-direction: column;
      gap: 50px;
  }
}


.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}
@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 2fr;
    gap: 100px;
  }
}

#footer-logo {
  width: 160px;
  height: 40px;
  margin-bottom: 40px;
}

footer address {
  font-family: var(--font-noto);
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 1.3px;
  line-height: 26px;
  font-style: normal;
}
@media (min-width: 1024px) {
  footer address {
    font-size: 14px;
    letter-spacing: 1.4px;
    line-height: 28px;
    margin-bottom: 40px;
  }
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-width: 0;
  width: fit-content;
}
@media (min-width: 1024px) {
  .footer-links {
    margin-left: auto;
    align-items: flex-end;
    padding-top: 30px;
  }
}

.footer-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
}

@media (min-width: 1024px) {
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 28px;
    width: 100%;
    min-width: 0;
  }
}

.footer-nav a {
  flex: 0 0 auto;
  white-space: nowrap;
  font-family: var(--font-noto);
  font-weight: 500;
  font-size: 15px;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 1.5px;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--primary-blue);
}

@media (max-width: 1023px) {
  .footer-nav a {
    padding: 0.5em 0;
  }
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  width: 100%;
  font-size: 1.5em;
}

@media (min-width: 1024px) {
  .footer-social {
    gap: 20px;
  }
}

.footer-social a {
  color: var(--text-primary);
  transition: color 0.3s ease;
}
.footer-social a:hover {
  color: var(--primary-blue);
}
.tagline {
  font-family: var(--font-zen-old);
  font-weight: 700;
  font-size: 30px;
  color: var(--text-primary);
  line-height: 42px;
  text-align: left;
  margin: 0;
}
@media (min-width: 1024px) {
  .tagline {
    text-align: left;
  }
}

.tagline .highlight {
  color: var(--dark-blue);
}
.copyright {
  font-family: var(--font-montserrat);
  font-size: 10px;
  color: var(--text-primary);
  letter-spacing: 1px;
  line-height: 24px;
  margin: 0;
  text-align: left;
}
@media (min-width: 1024px) {
  .copyright {
    text-align: right;
  }
}


/* ========================================
Page Top Button
======================================== */
#pagetop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #0047b3;
  color: #ffffff;
  border: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  z-index: 999;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0.35s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

#pagetop.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

#pagetop::before {
  content: "";
  width: 14px;
  height: 14px;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  transform: rotate(45deg);
  margin-top: 2px;
  transition: transform 0.3s ease;
}

#pagetop span {
  font-family: var(--font-noto);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  color: #ffffff;
  transition: transform 0.3s ease;
}

#pagetop:hover {
  background: #0d47a1;
  transform: translateY(-4px);
}

#pagetop.visible:hover {
  transform: translateY(-4px);
}

#pagetop:hover::before {
  transform: rotate(45deg) translate(-2px, -2px);
}

#pagetop:hover span {
  transform: translateY(-1px);
}

@media (max-width: 1023px) {
  #pagetop {
    display: none;
  }
  #pagetop {
    width: 88px;
    height: 88px;
    right: 16px;
    bottom: 16px;
    gap: 8px;
  }

  #pagetop::before {
    width: 11px;
    height: 11px;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
  }

  #pagetop span {
    font-size: 16px;
  }
}



/* ========================================
Utility Classes
======================================== */
.hidden {
  display: none !important;
}
.show {
  display: block !important;
}



/* ========================================
Responsive Display Controls
======================================== */
/* News Section - Mobile Title */
.news-title-mobile {
  display: block;
  margin-bottom: 20px;
}
@media (min-width: 1024px) {
  .news-title-mobile {
    display: none !important;
  }
}

/* News Section - Mobile Button */
.news-btn-mobile {
  display: flex;
  margin-top: 32px;
}
@media (min-width: 1024px) {
  .news-btn-mobile {
    display: none !important;
  }
}

/* Works Section - Mobile Title */
.works-title-mobile {
  display: block;
  margin-bottom: 30px;
}
@media (min-width: 1024px) {
  .works-title-mobile {
    display: none !important;
  }
}

/* Works Section - Mobile Button */
.works-btn-mobile {
  display: flex;
  margin-top: 30px;
}
@media (min-width: 1024px) {
  .works-btn-mobile {
    display: none !important;
  }
}



/* ========================================
共通UIパーツ
======================================== */

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  text-decoration: none;
  transition: gap 0.3s ease;
}

@media (min-width: 1024px) {
  .btn-view-all {
    margin-top: 0;
  }
}

.btn-view-all span {
  font-family: var(--font-noto);
  font-weight: 700;
  font-size: 14px;
  color: var(--dark-blue);
  letter-spacing: 1.4px;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition:
    transform 0.3s ease,
    color 0.3s ease,
    text-underline-offset 0.3s ease;
}

@media (min-width: 1024px) {
  .btn-view-all span {
    font-size: 18px;
    letter-spacing: 1.8px;
  }
}

.btn-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

@media (min-width: 1024px) {
  .btn-icon {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }
}

.btn-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.btn-view-all:hover {
  gap: 20px;
}

.btn-view-all:hover span {
  color: var(--primary-blue-dark);
  transform: translateX(4px);
  text-underline-offset: 6px;
}

.btn-view-all:hover .btn-icon {
  transform: translateX(6px) scale(1.06);
}

.btn-view-all:hover .btn-icon svg {
  transform: translateX(2px);
}

/* Works差分 */
.works-sidebar .btn-view-all span,
.works-btn-mobile span {
  color: var(--white);
}

.works-sidebar .btn-icon,
.works-btn-mobile .btn-icon {
  box-shadow: none;
}

.works-sidebar .btn-view-all:hover span,
.works-btn-mobile:hover span {
  color: var(--white);
}

.btn-circle svg,
.btn-icon svg,
.business-card-icon svg {
  width: 88%;
  height: 88%;
}

.clickable-panel {
  cursor: pointer;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background-color 0.35s ease;
}

.clickable-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}



/* ========================================
Effects / Motion
======================================== */

/* Header opening */
header {
  opacity: 0;
  transform: translateY(-16px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease,
    background 0.3s ease;
}

body.loaded header {
  opacity: 1;
  transform: translateY(0);
}

body.loaded #hero::after {
  opacity: 1;
}

body.loaded #hero h1 {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Parallax */
.about-bg {
  will-change: transform;
  transform: translateY(0);
}

.message-image {
  will-change: transform;
}

#hero::before {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  #hero::before,
  .about-bg,
  .message-image {
    transform: none !important;
  }
}

/* Section Fade-in Animation */
main section:not(#hero) {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
  will-change: opacity, transform;
}

main section:not(#hero).fade-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  main section:not(#hero) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* bgRectangle.png  */
main {
  position: relative;
/*  overflow: hidden;*/
}

.main-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.main-bg-shape {
  position: absolute;
  display: block;
  width: 2800px;
  height: auto;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.main-bg-shape img {
  display: block;
  width: 100%;
  height: auto;
}

main > section {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .main-bg-shape {
    transform: none !important;
  }
}
