@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap");

/*
Theme Name: JBrain Theme
Theme URI: https://example.com/jbrain
Author: elegirl
Description: ジェイブレイン コーポレートサイト用テーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jbrain
*/

/* ============================================
   CSS Variables - カラーパレット & 基本設定
   ============================================ */
:root {
  font-size: 16px;
  /* Primary Colors */
  --color-primary: #273e7c;
  --color-primary-dark: #0f1a33;
  --color-primary-light: #2a3d6e;

  /* Accent Colors */
  --color-accent: #dee7ff;
  --color-accent-light: #5a7bc0;

  /* Background Colors */
  --color-bg-light: #f5f6fa;
  --color-bg-white: #ffffff;
  --color-bg-dark: #1a2850;

  /* Text Colors */
  --color-text-primary: #1a2850;
  --color-text-secondary: #666666;
  --color-text-light: #ffffff;
  --color-text-muted: #999999;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 20px;
  --spacing-xl: 30px;
  --spacing-2xl: 40px;
  --spacing-3xl: 60px;
  --spacing-5xl: 100px;

  /* Typography */
  --font-family-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Yu Gothic" sans-serif;
  --font-family-en: "PT Sans", Arial, sans-serif;

  /* Transitions */
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Container */
  --container-max: 1200px;
  --container-padding: 2rem;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-ja);
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-text-primary);
  background-color: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   Typography
   ============================================ */
.section-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
}

.section-title-en {
  font-family: var(--font-family-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.section-description {
  font-size: 16px;
  line-height: 2;
  color: var(--color-text-secondary);
  margin-top: var(--spacing-md);
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 10px 0;
}

.home .site-header {
  background: transparent;
  backdrop-filter: none;
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.4s;
}

.site-header.is-scrolled .header__inner {
  padding: 10px 30px 30px;
  max-width: 1300px;
  background: #ffffff99;
  border: 1px solid #efefef;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 5px 5px rgba(130, 130, 130, 0.2);
}

.site-header .site-branding a{
  display: block;
  width:160px;
  height: 80px;
  background: url(../jbrain/img/logo.svg);
  background-size: contain;
}

.site-header.is-scrolled .site-branding a{
    background: url(../jbrain/img/logo.png);
    background-size: contain;
}

.main-navigation .nav-menu {
  display: flex;
  gap: var(--spacing-xl);
}

.menu-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem 0;
  position: relative;
}

.menu-item a::after {
}

.menu-item a:hover::after {
  width: 100%;
}

.menu-item a,
.menu-item__ja {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-light);
}

.menu-item a::after,
.menu-item__en {
  font-family: var(--font-family-en);
  font-size: 13px;
  font-weight: 500;
  width: 100%;
  text-align: center;
  top: 40px;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  content: "";
  position: absolute;
  transition: var(--transition-base);
}

.site-header.is-scrolled .menu-item a::after,
.site-header.is-scrolled .menu-item__en {
    color: var(--color-text-primary);
}

.site-header.is-scrolled .menu-item a,
.site-header.is-scrolled .menu-item__ja {
    color: var(--color-text-primary);
}

.menu-item-27 a:after {
  content: "OUTLINE";
}
.menu-item-26 a:after {
  content: "GUIDE";
}
.menu-item-28 a:after {
  content: "RECRUIT";
}
.menu-item-25 a:after {
  content: "ACCESS";
}
.menu-item-24 a:after {
  content: "CONTACT";
}
.menu-item-33 a:after {
  content: "SERVICE";
}

/* ============================================
   Hero Section
   ============================================ */
.section-hero {
  padding-top: 80px;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  color: var(--color-text-light);
  position: relative;
  overflow: hidden;
}

.hero__content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--spacing-5xl) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  position: relative;
}

.hero__title {
  font-size: 50px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: var(--spacing-sm);
}

.hero__subtitle {
  font-family: var(--font-family-en);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2em;
  opacity: 0.9;
  margin-bottom: var(--spacing-lg);
}

.hero__description {
  font-size: 18px;
  line-height: 2.2;
  opacity: 0.9;
}

.hero__graphic {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  opacity: 0.15;
  pointer-events: none;
}

/* Hero Cards */
.hero__cards {
  background: var(--color-primary);
  padding: var(--spacing-2xl) 0;
}

.hero__cards-inner {
  max-width: var(--container-max);
  margin: 0 auto 0;
  margin-top: -100px;
  padding: 0;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--spacing-xl);
  align-items: end;
}

.hero__cards-lead {
  height: 610px;
  color: var(--color-text-light);
  overflow: hidden;
  position: relative;
}

.hero__cards-lead a {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
}

.hero__cards-text {
  position: absolute;
  bottom: var(--spacing-xl);
  left: var(--spacing-xl);
}

.hero__cards-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  width: 100%;
}

.hero__cards-subtitle {
  font-size: 14px;
  opacity: 0.8;
}

.hero__cards-list {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: var(--spacing-md);
}

.hero__cards-list .card {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.hero__cards-list .card:first-child {
  grid-row: span 2;
}

.hero__cards-list .card:first-child .card__image img {
  height: 100%;
  object-fit: cover;
}

.card__image {
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  height: 100%;
}

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

.card:hover .card__image img {
  transform: scale(1.05);
}

.card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-md);
  background: linear-gradient(transparent, rgba(26, 40, 80, 0.9));
  color: var(--color-text-light);
}

.card__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.card__description {
  font-size: 13px;
  opacity: 0.9;
}

/* ============================================
   Section News (お知らせ)
   ============================================ */
.section-news {
  background: var(--color-primary);
  padding: var(--spacing-3xl) 0;
  position: relative;
}

.section-news__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 60px;
  background: var(--color-bg-white);
  position: relative;
  border-radius: 8px;

  z-index: 1;
}

.section-news__inner::before {
  content: "INFORMATION";
  position: absolute;
  top: -180px;
  left: -80px;
  font-family: var(--font-family-en);
  font-size: 130px;
  font-weight: 800;
  color: rgb(255 255 255 / 30%);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.section-header {
  margin-bottom: var(--spacing-xl);
  display: flex;
  align-items: center;
  gap: 20px;
}

.section-news .section-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.section-news .section-header .section-header__text {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-sm);
}

.section-news .section-title-en {
  margin-top: 0;
}

/* News List */
.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.news-item {
  background: var(--color-bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition-base);
}

.news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.news-item__thumbnail {
  overflow: hidden;
}

.news-item__thumbnail img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-item:hover .news-item__thumbnail img {
  transform: scale(1.05);
}

.news-item__body {
  padding: var(--spacing-md);
}

.news-item__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: var(--spacing-xs);
}

.news-item__date {
  font-family: var(--font-family-en);
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ============================================
   Section Service (事業案内) & Guide (会社紹介)
   ============================================ */
.section-service {
  background: var(--color-primary);
  padding: var(--spacing-3xl) 0 120px;
  position: relative;
}

.section-service__inner::before {
  content: "COMPANY";
  position: absolute;
  top: -180px;
  left: -80px;
  font-family: var(--font-family-en);
  font-size: 130px;
  font-weight: 800;
  color: rgb(255 255 255 / 30%);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.section-service__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  position: relative;
  z-index: 1;
}

.section-service__content,
.section-guide {
  background: var(--color-bg-white);
  padding: var(--spacing-xl);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Service List */
.service-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin: var(--spacing-xl) 0;
}

.service-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: var(--transition-base);
}

.service-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(26, 40, 80, 0.1);
}

.service-card__image {
  width: 60px;
  height: 60px;
  background: var(--color-bg-light);
  border-radius: 8px;
  flex-shrink: 0;
}

.service-card__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.service-card__description {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* Guide Gallery */
.guide-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm);
  margin: var(--spacing-xl) 0;
}

.guide-gallery__item {
  border-radius: 8px;
  overflow: hidden;
}

.guide-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-gallery__group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

/* Section Actions */
.section-service__actions,
.section-guide__actions {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

/* ============================================
   Button Styles
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 5px 25px;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-bg-white);
  background: var(--color-text-primary);
  transition: var(--transition-base);
  position: relative;
}

.btn:hover {
  background: var(--color-primary);
  color: var(--color-text-light);
}

.btn::after {
  content: "";
  width: 0;
  height: 0;
  position: static;
  top: 0;
  right: 0;
  margin: auto;
  box-sizing: border-box;
  border: 5px solid transparent;
  border-left: 8px solid var(--color-bg-white); /* 好みで色を変えてください */
  z-index: 2;
}

.btn__icon {
  width: 8px;
  height: auto;
  transition: transform var(--transition-base);
}

.btn:hover .btn__icon {
  transform: translateX(3px);
}

.btn--filled {
  background: var(--color-primary);
  color: var(--color-text-light);
}

.btn--filled:hover {
  background: var(--color-primary-dark);
}

/* ============================================
   Section Recruit (採用情報)
   ============================================ */
.section-recruit {
  background: var(--color-accent);
  padding: var(--spacing-3xl) 0;
  position: relative;
}

.section-recruit__inner::before {
  content: "RECRUIT";
  position: absolute;
  top: -180px;
  left: -60px;
  font-family: var(--font-family-en);
  font-size: 130px;
  font-weight: 800;
  color: rgb(255 255 255 / 30%);
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
}

.section-recruit__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.section-recruit__text {
  color: var(--color-text-light);
}

.section-recruit .section-title {
  color: var(--color-text-primary);
}

.section-recruit .section-title-en {
  color: var(--color-text-primary);
}

.section-recruit .section-description {
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xl);
}

.section-recruit .btn {
  border-color: var(--color-text-light);
  color: var(--color-text-light);
}

.section-recruit .btn:hover {
  background: var(--color-text-light);
  color: var(--color-primary);
}

.section-recruit__image {
  position: relative;
}

.section-recruit__image img {
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Diagonal Image Effect */
.section-recruit__image::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  z-index: -1;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--color-accent);
  padding: var(--spacing-xl) 0;
  border-top: 1px solid #e5e7eb;
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__logo img {
  height: 40px;
  width: auto;
}

.footer__content {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.footer__menu {
  display: flex;
  gap: var(--spacing-lg);
}

.footer__menu a {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.footer__menu a:hover {
  color: var(--color-primary);
}

.footer__copyright {
  font-size: 13px;
  color: var(--color-text-muted);
}

body:not(.home) .site-main {
  margin: 0 auto;
  padding: 0;
  width: var(--container-max);
}

.entry-header {
  width: 100vw;
  margin: 0 calc(-50vw + 50%) 100px;
  padding: 150px 0 100px;
  background: var(--color-primary);
  text-align: center;
}

.entry-header h1 {
  color: var(--color-accent);
}

.entry-header p {
  font-size: 14px;
  margin-top: 20px;
  color: var(--color-bg-white);
}

.section-page {
  margin-bottom: 100px;
}

.section-page h2 {
  font-size: 30px;
  letter-spacing: 0;
  margin-bottom: 40px;
}

.table_company th,
.table_company td {
  padding: var(--spacing-lg);
  border: none;
  border-bottom: 1px dashed var(--color-accent-light);
}

.table_company th {
  background: var(--color-accent);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --container-padding: 1.5rem;
  }

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

  .hero__graphic {
    display: none;
  }

  .hero__cards-inner {
    grid-template-columns: 1fr;
  }

  .hero__cards-list {
    grid-template-columns: 1fr 1fr;
  }

  .hero__cards-list .card:first-child {
    grid-row: auto;
  }

  .section-service__inner {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .section-recruit__inner {
    grid-template-columns: 1fr;
  }

  .section-recruit__image {
    order: -1;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-3xl: 4rem;
  }

  .main-navigation .nav-menu {
    display: none;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .hero__subtitle {
    font-size: 14px;
  }

  .news-list {
    grid-template-columns: 1fr;
  }

  .hero__cards-list {
    grid-template-columns: 1fr;
  }

  .guide-gallery {
    grid-template-columns: 1fr;
  }

  .section-service__actions,
  .section-guide__actions {
    flex-direction: column;
  }

  .section-news::before,
  .section-service::before,
  .section-recruit::before {
    font-size: 3rem;
  }

  .footer__inner {
    flex-direction: column;
    gap: var(--spacing-lg);
    text-align: center;
  }

  .footer__content {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .section-service__content,
  .section-guide {
    padding: var(--spacing-md);
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-hero .hero__text {
  animation: fadeInUp 0.8s ease-out;
}

.news-item,
.service-card,
.card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.news-item:nth-child(1) {
  animation-delay: 0.1s;
}
.news-item:nth-child(2) {
  animation-delay: 0.2s;
}
.news-item:nth-child(3) {
  animation-delay: 0.3s;
}

.service-card:nth-child(1) {
  animation-delay: 0.1s;
}
.service-card:nth-child(2) {
  animation-delay: 0.2s;
}
.service-card:nth-child(3) {
  animation-delay: 0.3s;
}
