@charset "UTF-8";
/*
 * JFSC Custom Styles - jp-fs.jp Design Override
 * ファクタリングサブディレクトリ用カスタムCSS
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  --jfsc-navy: #2b4a7e;
  --jfsc-navy-dark: #1e3a6e;
  --jfsc-navy-darker: #0f1f42;
  --jfsc-text: #0f1f42;
  --jfsc-text-light: #64748b;
  --jfsc-border: #e2e8f0;
  --jfsc-bg: #f8fafc;
  --jfsc-bg-light: #eef6ff;
  --jfsc-accent: #3b82f6;
  --jfsc-white: #ffffff;
  --jfsc-link: #2b4a7e;
  --jfsc-cta-from: #f59e0b;
  --jfsc-cta-to: #ef4444;
}

/* ==========================================================================
   Global / Body Override
   ========================================================================== */
body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--jfsc-text);
  background-color: var(--jfsc-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   JFSC Header
   ========================================================================== */
/* Reset SANGO default .header styles completely */
.header.jfsc-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--jfsc-white) !important;
  border-bottom: 1px solid var(--jfsc-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Admin bar offset */
.admin-bar .jfsc-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .jfsc-header {
    top: 46px;
  }
}

.jfsc-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.jfsc-header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.jfsc-header__logo:hover {
  opacity: 0.8;
}

.jfsc-logo-icon {
  width: 32px;
  height: 32px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.jfsc-logo-icon__outer {
  position: absolute;
  inset: 0;
  transform: rotate(45deg);
  border-radius: 4px;
  background: var(--jfsc-navy);
}
.jfsc-logo-icon__mid {
  position: absolute;
  inset: 0;
  background: var(--jfsc-white);
  transform: rotate(45deg) scale(0.82);
  border-radius: 3px;
}
.jfsc-logo-icon__inner {
  position: absolute;
  inset: 0;
  transform: rotate(45deg) scale(0.65);
  border-radius: 3px;
  background: var(--jfsc-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.jfsc-logo-icon__text {
  color: var(--jfsc-white);
  font-family: "Noto Serif JP", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 9px;
  transform: rotate(-45deg);
  letter-spacing: 0.05em;
  line-height: 1;
}

.jfsc-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.jfsc-logo-text__ja {
  font-size: 0.875rem; /* text-sm = 14px (SP default) */
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.05em;
  font-family: "Noto Serif JP", "游明朝", "Yu Mincho", "HiraMinProN-W3", serif;
}
.jfsc-logo-text__en {
  font-size: 8px; /* text-[8px] (SP default) */
  letter-spacing: 0.2em;
  color: #94a3b8;
  font-weight: 500;
  text-transform: uppercase;
}

/* PC Navigation */
.jfsc-header__nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .jfsc-header__nav {
    display: flex;
  }
}
.jfsc-header__nav a,
.jfsc-header__nav button {
  font-size: 14px;
  font-weight: 500;
  color: var(--jfsc-text);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
  white-space: nowrap;
}
.jfsc-header__nav a:hover,
.jfsc-header__nav button:hover {
  color: var(--jfsc-navy);
}

/* CTA Button */
.jfsc-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--jfsc-white) !important;
  background: linear-gradient(135deg, var(--jfsc-cta-from), var(--jfsc-cta-to));
  border: none;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
  white-space: nowrap;
}
.jfsc-cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  color: var(--jfsc-white) !important;
}

.jfsc-header__cta {
  display: none;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 1024px) {
  .jfsc-header__cta {
    display: flex;
  }
}

/* PC Nav - WordPress menu output (<li><a>) */
.jfsc-header__nav li {
  display: inline-block;
  list-style: none;
}
.jfsc-header__nav li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--jfsc-text) !important;
  text-decoration: none;
  background: none;
  padding: 0;
  transition: color 0.2s;
  white-space: nowrap;
  height: auto !important;
  line-height: 1.5 !important;
}
.jfsc-header__nav li a:hover {
  color: var(--jfsc-navy) !important;
}
/* Remove SANGO default desktop-nav underline animation */
.jfsc-header__nav li:after {
  display: none !important;
}

/* Mobile Menu - WordPress menu output */
.jfsc-mobile-menu__nav li {
  list-style: none;
}
.jfsc-mobile-menu__nav li a {
  display: block;
  padding: 0.875rem 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--jfsc-text);
  text-decoration: none;
  border-bottom: 1px solid var(--jfsc-border);
  transition: color 0.2s;
}
.jfsc-mobile-menu__nav li a:hover {
  color: var(--jfsc-navy);
}

/* Hamburger Menu Button */
.jfsc-hamburger {
  display: block;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--jfsc-text);
  line-height: 0;
}
@media (min-width: 1024px) {
  .jfsc-hamburger {
    display: none;
  }
}

/* Mobile Menu Overlay */
.jfsc-mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}
.jfsc-mobile-menu-overlay.is-active {
  display: block;
}

/* Mobile Menu Drawer */
.jfsc-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: var(--jfsc-white);
  z-index: 999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}
.jfsc-mobile-menu.is-active {
  right: 0;
}

.jfsc-mobile-menu__close {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}
.jfsc-mobile-menu__close button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--jfsc-text-light);
  padding: 0.25rem;
}

.jfsc-mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.jfsc-mobile-menu__nav a {
  display: block;
  padding: 0.875rem 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--jfsc-text);
  text-decoration: none;
  border-bottom: 1px solid var(--jfsc-border);
  transition: color 0.2s;
}
.jfsc-mobile-menu__nav a:hover {
  color: var(--jfsc-navy);
}

.jfsc-mobile-menu__cta {
  margin-top: 1.5rem;
}
.jfsc-mobile-menu__cta .jfsc-cta-button {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 15px;
  text-align: center;
}

/* ==========================================================================
   JFSC Footer
   ========================================================================== */
.jfsc-footer {
  padding: 2.5rem 0;
  background-color: var(--jfsc-navy-darker) !important;
  color: var(--jfsc-white) !important;
}
.jfsc-footer,
.jfsc-footer a,
.jfsc-footer .widget ul li a {
  color: var(--jfsc-white) !important;
}
.jfsc-footer__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.jfsc-footer__heading {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.5;
  font-family: "Noto Serif JP", "游明朝", "Yu Mincho", "HiraMinProN-W3", serif;
}
.jfsc-footer__heading-line {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.jfsc-footer__heading-bar {
  display: inline-block;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 9999px;
}

.jfsc-footer__info {
  font-size: 0.875rem;
  opacity: 0.9;
  line-height: 1.8;
  font-family: "Noto Serif JP", "游明朝", "Yu Mincho", "HiraMinProN-W3", serif;
}
.jfsc-footer__info p {
  margin: 0.25rem 0;
}
.jfsc-footer__info-label {
  opacity: 0.7;
}

.jfsc-footer__bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}
.jfsc-footer__copyright {
  font-size: 0.75rem;
  opacity: 0.7;
  margin: 0;
}

/* ==========================================================================
   Override SANGO Default Header/Footer
   ========================================================================== */
.header:not(.jfsc-header) {
  display: none !important;
}
.footer:not(.jfsc-footer) {
  display: none !important;
}
#footer-menu {
  display: none !important;
}
.inner-footer {
  display: none !important;
}
/* Kill SANGO's default header inner styles that may leak */
.jfsc-header #inner-header,
.jfsc-header #logo,
.jfsc-header .desktop-nav,
.jfsc-header .mobile-nav,
.jfsc-header .header-search,
.jfsc-header #drawer {
  display: none !important;
}

/* ==========================================================================
   Footer Navigation Links
   ========================================================================== */
.jfsc-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
}
.jfsc-footer__links a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
  transition: color 0.2s;
}
.jfsc-footer__links a:hover {
  color: var(--jfsc-white) !important;
  text-decoration: underline;
}
/* WordPress menu <li> inside footer links */
.jfsc-footer__links li {
  display: inline;
  list-style: none;
}
.jfsc-footer__links li a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
  transition: color 0.2s;
}
.jfsc-footer__links li a:hover {
  color: var(--jfsc-white) !important;
  text-decoration: underline;
}

/* ==========================================================================
   Content Area - Color Tone Override
   ========================================================================== */
#content {
  background-color: var(--jfsc-bg);
}

/* Link color */
a {
  color: var(--jfsc-link);
}
a:hover {
  color: var(--jfsc-navy-dark);
}

/* Entry content headings */
.entry-content h2,
.page-content h2 {
  border-color: var(--jfsc-navy) !important;
  color: var(--jfsc-text);
}
.entry-content h3,
.page-content h3 {
  border-color: var(--jfsc-navy) !important;
  color: var(--jfsc-text);
}
.entry-content h4,
.page-content h4 {
  color: var(--jfsc-text);
}

/* Entry title */
.entry-title,
.page-title {
  color: var(--jfsc-text);
}

/* Article card */
.post {
  border: 1px solid var(--jfsc-border) !important;
}
.postlist0 .post-list__link:hover,
.postlist0 .post-list__link:focus {
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
}

/* Category labels */
.cat-label {
  background-color: var(--jfsc-navy) !important;
  color: var(--jfsc-white) !important;
}

/* Breadcrumb */
.breadcrumb {
  color: var(--jfsc-text-light);
}
.breadcrumb a {
  color: var(--jfsc-text-light);
}

/* ==========================================================================
   Sidebar / Widget Styling
   ========================================================================== */
/* Widget container */
.sidebar .widget,
.normal-sidebar .widget,
.fixed-sidebar .widget {
  background: var(--jfsc-white);
  border: 1px solid var(--jfsc-border) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  overflow: hidden;
}

/* Widget title bar */
.widgettitle,
.sidebar .widgettitle,
.sidebar .wp-block-group h2 {
  background-color: var(--jfsc-navy) !important;
  color: var(--jfsc-white) !important;
  font-size: 0.9375rem !important;
  font-weight: 700;
  padding: 0.625rem 0.875rem !important;
  margin-bottom: 0 !important;
  border: none !important;
  letter-spacing: 0.03em;
}

/* Widget title icon (FontAwesome) - make white */
.sidebar .widgettitle:before {
  color: var(--jfsc-white) !important;
}

/* Widget list items */
.widget ul li a {
  display: block;
  padding: 0.625rem 0.875rem !important;
  color: var(--jfsc-text) !important;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--jfsc-border);
  transition: background-color 0.15s, color 0.15s;
}
.widget ul li:last-child a {
  border-bottom: none;
}
.widget ul li a:hover {
  background: var(--jfsc-bg-light) !important;
  color: var(--jfsc-navy) !important;
}

/* Sub-list items */
.widget ul li ul li a {
  padding-left: 1.5rem !important;
  font-weight: 400;
  font-size: 0.8125rem;
}
.widget ul li ul li a:before {
  color: var(--jfsc-text-light) !important;
}

/* Recent comments widget */
.widget.widget_recent_comments li {
  padding: 0.625rem 0.875rem !important;
  border-bottom: 1px solid var(--jfsc-border);
  font-size: 0.8125rem;
  color: var(--jfsc-text-light);
  line-height: 1.6;
}
.widget.widget_recent_comments li:last-child {
  border-bottom: none;
}
.widget.widget_recent_comments li a {
  color: var(--jfsc-navy) !important;
  font-weight: 500;
  padding: 0 !important;
  border-bottom: none !important;
  display: inline !important;
}
.widget.widget_recent_comments li a:hover {
  background: transparent !important;
  text-decoration: underline;
}

/* Archive widget - month links */
.widget_archive ul li a {
  color: var(--jfsc-text) !important;
}

/* Category widget */
.widget_categories ul li a {
  color: var(--jfsc-text) !important;
}

/* Search widget */
.widget_search input[type="search"],
.widget_search .wp-block-search__input {
  border: 1px solid var(--jfsc-border) !important;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}
.widget_search .wp-block-search__button,
.sidebar .wp-block-search .wp-block-search__button {
  background-color: var(--jfsc-navy) !important;
  color: var(--jfsc-white) !important;
  border: none !important;
  border-radius: 6px;
}

/* Pagination */
.pagination .current {
  background-color: var(--jfsc-navy) !important;
  color: var(--jfsc-white) !important;
}
.pagination a:hover {
  background-color: var(--jfsc-navy) !important;
  color: var(--jfsc-white) !important;
}

/* SNS share buttons */
.sns-btn a {
  opacity: 0.85;
}

/* Tag links */
.tag-link {
  color: var(--jfsc-text-light) !important;
  border-color: var(--jfsc-border) !important;
}
.tag-link:hover {
  color: var(--jfsc-navy) !important;
  border-color: var(--jfsc-navy) !important;
}

/* Table of contents */
.toc_widget_list a,
#toc_container a {
  color: var(--jfsc-text);
}
#toc_container {
  border-color: var(--jfsc-border);
}

/* Blockquote */
.entry-content blockquote,
.page-content blockquote {
  border-left-color: var(--jfsc-navy);
}

/* Mobile fixed footer menu */
.fixed-menu ul {
  background: var(--jfsc-white) !important;
  border-top: 1px solid var(--jfsc-border) !important;
}
.fixed-menu a {
  color: var(--jfsc-text-light) !important;
}
.fixed-menu .current-menu-item a,
.fixed-menu ul li a.active {
  color: var(--jfsc-navy) !important;
}

/* To-top button */
.totop {
  background: var(--jfsc-navy) !important;
  color: var(--jfsc-white) !important;
}

/* Blue button / Submit */
.blue-btn,
#submit,
.comment-reply-link {
  background-color: var(--jfsc-navy) !important;
}
.blue-btn:hover,
#submit:hover,
.comment-reply-link:hover {
  background-color: var(--jfsc-navy-dark) !important;
}

/* ==========================================================================
   SANGO Gutenberg Block Color Override
   ========================================================================== */
.sng-block .has-accent-color,
.sng-block .has-accent-background-color {
  color: var(--jfsc-navy);
}

/* Tab styling */
.post-tab > div.tab-active {
  background: linear-gradient(135deg, var(--jfsc-navy), var(--jfsc-accent)) !important;
}

/* ==========================================================================
   Responsive - Matching Tailwind breakpoints
   sm: 640px / md: 768px / lg: 1024px
   ========================================================================== */

/* --- SP Default (< 768px) --- */
/* Header: h-16 = 64px at all sizes, px-4 = 1rem at all sizes */
/* Logo: w-8 h-8 = 32px at all sizes */
/* Company name: text-sm = 14px on SP */
/* English: text-[8px] on SP */

/* --- md: 768px+ --- */
@media (min-width: 768px) {
  .jfsc-logo-text__ja {
    font-size: 16px; /* md:text-base */
  }
  .jfsc-logo-text__en {
    font-size: 9px; /* md:text-[9px] */
  }
}

/* --- lg: 1024px+ --- */
/* Nav, CTA visible / hamburger hidden - already handled above */

/* --- SP specific tweaks (< 640px) --- */
@media (max-width: 639px) {
  /* Logo gap tighter on small screens */
  .jfsc-header__logo {
    gap: 0.375rem;
  }
  /* Footer padding slightly tighter */
  .jfsc-footer {
    padding: 2rem 0;
  }
  .jfsc-footer__heading {
    font-size: 1rem;
  }
  .jfsc-footer__info {
    font-size: 0.8125rem;
  }
  .jfsc-footer__links {
    gap: 0.375rem 1rem;
    font-size: 0.75rem;
  }
}
