/* Reset and base styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body, #root {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* ===== Rich text (prose) styles for CMS content ===== */
.prose {
  color: #374151;
  line-height: 1.7;
}
.prose h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #111827;
}
.prose h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: #1f2937;
}
.prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #374151;
}
.prose p {
  margin-bottom: 1rem;
  line-height: 1.7;
}
.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.prose blockquote {
  border-left: 4px solid #d1d5db;
  padding-left: 1.25rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin: 0 0 1rem 0;
  color: #6b7280;
  font-style: italic;
}
.prose blockquote p { margin-bottom: 0; }
.prose code {
  background-color: #f3f4f6;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-family: ui-monospace, monospace;
  font-size: 0.875em;
  color: #e11d48;
}
.prose pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}
.prose pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}
.prose a { color: #3b82f6; text-decoration: underline; }
.prose a:hover { color: #2563eb; }
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1rem 0;
}
.prose hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 1.5rem 0;
}
.prose strong { font-weight: 600; color: #111827; }
.prose em { font-style: italic; }
.prose u { text-decoration: underline; }
.prose s { text-decoration: line-through; }

/* Tiptap text alignment support */
.prose [style*="text-align: center"],
.prose [style*="text-align:center"] {
  text-align: center !important;
}
.prose [style*="text-align: right"],
.prose [style*="text-align:right"] {
  text-align: right !important;
}
.prose [style*="text-align: justify"],
.prose [style*="text-align:justify"] {
  text-align: justify !important;
}

    .font-serif { font-family: 'Noto Serif JP', serif; }

/* @css-edits-start */
#root > div.min-h-screen > main > section.w-full:nth-of-type(1) > div.absolute:nth-of-type(1) {
  background-image: url(../img/hero-bg-pc.png) !important;
  background-size: cover !important;
  background-position: center !important;
}
/* @css-edits-end */
/* @css-edits-start */
#root > div.min-h-screen > main > section.w-full:nth-of-type(1) > div.absolute:nth-of-type(1) {
  background-image: url(../img/hero-bg-pc.png) !important;
  background-size: cover !important;
  background-position: center !important;
}

@media (max-width: 768px) {
  #root > div.min-h-screen > main > section.w-full:nth-of-type(1) > div.absolute:nth-of-type(1) {
    background-image: url(../img/hero-bg-sp.png) !important;
  }
}
/* @css-edits-end */
/* @css-edits-start */
#root > div.min-h-screen > main > section.w-full.bg-grid.relative.min-h-screen:nth-of-type(1) > div.absolute.inset-0:nth-of-type(1) {
  background-image: url(../img/hero-bg-pc.png) !important;
  background-size: cover !important;
  background-position: center !important;
}

@media (max-width: 768px) {
  #root > div.min-h-screen > main > section.w-full.bg-grid.relative.min-h-screen:nth-of-type(1) > div.absolute.inset-0:nth-of-type(1) {
    background-image: url(../img/hero-bg-sp2.png) !important;
  }
}
/* @css-edits-end */
/* @css-edits-start */
@media (max-width: 768px) {
  #root > div.min-h-screen > main > section.w-full.bg-grid.relative.min-h-screen:nth-of-type(1) > div.absolute.inset-0:nth-of-type(1) {
    background-image: url(../img/hero-bg-sp3.png) !important;
  }
}
/* @css-edits-end */
/* @css-edits-start */
@media (min-width: 768px) and (max-width: 1024px) {
  #root > div.min-h-screen > main > section.w-full.bg-grid.relative.min-h-screen:nth-of-type(1) > div.absolute.inset-0:nth-of-type(1) {
    background-image: url(../img/hero-bg-tablet.png) !important;
    background-size: cover !important;
    background-position: center !important;
  }
}
/* @css-edits-end */
  
    

          
      html { 
        overflow-x: hidden; 
        font-family: 'Noto Sans JP', sans-serif;
        scroll-behavior: smooth;
      }
      
      .font-en { 
        font-family: 'Montserrat', sans-serif; 
      }
      
      .bg-grid {
        background-size: 40px 40px;
        background-image: linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
                          linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
      }
      
      .bg-grid-blue {
        background-size: 40px 40px;
        background-image: linear-gradient(to right, rgba(0, 85, 255, 0.1) 1px, transparent 1px),
                          linear-gradient(to bottom, rgba(0, 85, 255, 0.1) 1px, transparent 1px);
      }

      .prose img {
        max-width: 100%;
        height: auto;
      }
      .prose h2 {
        font-size: 1.5rem;
        font-weight: bold;
        margin-top: 2rem;
        margin-bottom: 1rem;
        border-bottom: 2px solid #0055FF;
        padding-bottom: 0.5rem;
      }
      .prose p {
        margin-bottom: 1rem;
        line-height: 1.8;
      }

      @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
      @keyframes slideInUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
      
      .animate-fadeIn { animation: fadeIn 0.8s ease-out forwards; }
      .animate-slideInUp { animation: slideInUp 0.8s ease-out forwards; }


/* ===== Header z-index override ===== */
#site-header {
  z-index: 100;
}

/* ===== Hamburger menu (mobile) ===== */
@media (max-width: 767px) {
  #site-nav.is-open {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: #fff;
    z-index: 60;
    padding: 16px 0 24px;
    gap: 0;
    overflow-y: auto;
  }

  #site-nav.is-open > a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1rem;
  }



  #site-nav.is-open > a:last-child {
    width: calc(100% - 48px);
    margin: 20px 24px 0;
    justify-content: center;
    border-bottom: none;
  }
}

.hamburger.is-active {
  position: relative;
  z-index: 61;
}

/* ===== INTERNSHIP バナー レスポンシブ ===== */
@media (max-width: 767px) {
  #internship-banner {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px;
  }

  #internship-banner > div {
    max-width: 100%;
    margin-left: 0;
    border-radius: 16px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  #internship-banner > div > a {
    width: 100%;
    justify-content: center;
    padding: 12px 0;
  }
}

/* ハンバーガー ↔ × パス切り替えトランジション */
.hamburger svg path {
  transition: d 0.2s ease, opacity 0.2s ease;
}

/* ===== Gutenberg YouTube / video embed レスポンシブ ===== */
.wp-block-embed__wrapper {
  position: relative;
  width: 100%;
}

/* 16:9（YouTube デフォルト） */
.wp-has-aspect-ratio .wp-block-embed__wrapper::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

/* 4:3 */
.wp-embed-aspect-4-3 .wp-block-embed__wrapper::before {
  padding-top: 75%;
}

/* 1:1 */
.wp-embed-aspect-1-1 .wp-block-embed__wrapper::before {
  padding-top: 100%;
}

.wp-has-aspect-ratio .wp-block-embed__wrapper iframe,
.wp-has-aspect-ratio .wp-block-embed__wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ===== Pagination ===== */
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.page-numbers:hover {
  border-color: #0055FF;
  color: #0055FF;
}

.page-numbers.current {
  background-color: #0055FF;
  border-color: #0055FF;
  color: #fff;
}

.page-numbers.dots {
  border: none;
  color: #9ca3af;
  min-width: auto;
}
