/* SHINEI presentation layer. All assets and fonts are local/system resources. */
.shinei-site {
  --shinei-ink: #101a3c;
  --shinei-muted: #57627d;
  --shinei-blue: #0758ed;
  --shinei-pale: #eef7ff;
  --shinei-line: #dee9f5;
  --shinei-serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", "MS PMincho", serif;
  color: var(--shinei-ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  background: #fff;
}
.shinei-site *, .shinei-site *::before, .shinei-site *::after { box-sizing: border-box; }
.shinei-site a { text-underline-offset: .25em; }
.shinei-site :is(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--shinei-blue);
  outline-offset: 5px;
}
.shinei-shell { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.shinei-icon { width: 22px; height: 22px; flex: 0 0 auto; vertical-align: middle; }
.shinei-skip { position: fixed; z-index: 10000; top: 12px; left: 12px; padding: 12px 18px; background: #fff; color: var(--shinei-ink); transform: translateY(-160%); }
.shinei-skip:focus { transform: translateY(0); }
.shinei-header { position: relative; z-index: 50; background: rgba(255,255,255,.98); border-bottom: 1px solid #edf3fa; }
.shinei-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 84px; }
.shinei-brand { display: inline-flex; align-items: center; gap: 24px; color: var(--shinei-ink); text-decoration: none; }
.shinei-brand__logo { display: block; width: 230px; max-width: 100%; height: auto; flex-shrink: 0; }
.shinei-footer .shinei-brand__logo { width: 250px; }
.shinei-brand__tagline { font-size: 10px; line-height: 1.65; letter-spacing: .08em; font-weight: 600; }
.shinei-nav-list, .shinei-footer__nav { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 28px; }
.shinei-nav-list a { display: block; padding: 16px 0; font-size: 11px; font-weight: 700; letter-spacing: .045em; white-space: nowrap; text-decoration: none; border-bottom: 2px solid transparent; }
.shinei-nav-list :is(a:hover, a[aria-current="page"]), .shinei-nav-list .current-menu-item > a { color: var(--shinei-blue); border-bottom-color: var(--shinei-blue); }
.shinei-menu-toggle { align-items: center; justify-content: center; gap: 10px; min-width: 44px; min-height: 44px; background: #fff; border: 1px solid var(--shinei-line); border-radius: 6px; color: var(--shinei-ink); font: inherit; font-size: 12px; padding: 8px 12px; cursor: pointer; }
.shinei-menu-toggle { display: none; }
.shinei-menu-toggle__lines { position: relative; width: 20px; height: 12px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.shinei-menu-toggle__lines::before { content: ""; position: absolute; inset: 5px 0 auto; border-top: 1px solid currentColor; }
.shinei-primary-nav[hidden] { display: none !important; }
.shinei-home #content.l-content { width: 100%; max-width: none; margin: 0; padding: 0; display: block; }
.shinei-front { width: 100%; overflow: clip; }
.shinei-front :is(h1,h2,h3,p) { margin: 0; }
.shinei-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* The square artwork always fits in full: no cover crop of the face or copy. */
.shinei-hero {
  --shinei-hero-art-size: clamp(660px, 55.6vw, 800px);
  position: relative;
  background-color: #f5fbff;
  background-image: linear-gradient(90deg, #fff 0%, #fffffff5 30%, #ffffffb3 37%, #ffffff00 52%), url("../images/shinei-hero.webp");
  background-repeat: no-repeat;
  background-position: center, right center;
  background-size: 100% 100%, var(--shinei-hero-art-size) var(--shinei-hero-art-size);
}
.shinei-hero__inner { display: flex; align-items: center; min-height: var(--shinei-hero-art-size); }
.shinei-hero__copy { width: min(44vw, 500px); min-width: 0; padding-block: 56px; position: relative; }
.shinei-eyebrow { font-family: Arial, sans-serif; font-size: 12px; letter-spacing: .17em; color: #4079cb; font-weight: 500; line-height: 1.7; }
.shinei-hero .shinei-eyebrow { color: #6a7695; font-size: 10px; letter-spacing: .12em; }
.shinei-hero h1 { font-family: var(--shinei-serif); font-weight: 500; font-size: clamp(32px, 2.7vw, 40px); line-height: 1.65; letter-spacing: -.025em; margin-top: 20px; }
.shinei-hero h1 > span { display: block; white-space: nowrap; }
.shinei-rule { display: block; width: 46px; height: 2px; margin-block: 24px; background: linear-gradient(90deg, var(--shinei-blue), #a6d3ff); }
.shinei-hero__description { font-family: var(--shinei-serif); font-size: 15px; line-height: 1.95; color: #354366; }
.shinei-hero .shinei-button { margin-top: 27px; }
.shinei-button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; max-width: 100%; min-height: 48px; padding: 12px 25px; border: 1px solid transparent; border-radius: 30px; background: linear-gradient(100deg, #0348db, #2c83ff); color: #fff; font-size: 13px; line-height: 1.5; font-weight: 700; text-decoration: none; box-shadow: 0 5px 12px #0758ed1c; transition: box-shadow .2s, transform .2s; }
.shinei-button:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 7px 18px #0758ed30; }
.shinei-button--outline { background: #fff; color: var(--shinei-blue); border-color: #bbd4fa; box-shadow: none; }
.shinei-button--outline:hover { color: var(--shinei-blue); }
.shinei-section { padding-block: 64px; }
.shinei-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.shinei-front h2 { font-family: var(--shinei-serif); font-weight: 500; font-size: clamp(25px, 2.6vw, 36px); letter-spacing: -.015em; line-height: 1.5; }
.shinei-section-heading h2 { position: relative; margin-top: 3px; padding-bottom: 12px; }
.shinei-section-heading h2::after { content: ""; position: absolute; bottom: 0; left: 0; width: 40px; height: 1px; background: var(--shinei-blue); }
.shinei-section-heading > p { flex: 1; max-width: 430px; color: var(--shinei-muted); font-size: 12px; line-height: 1.9; padding-bottom: 12px; }
.shinei-text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--shinei-blue); font-size: 12px; font-weight: 700; line-height: 1.8; text-decoration: none; border-bottom: 1px solid #8db5f9; padding-block: 6px; }
.shinei-text-link:hover { border-bottom-color: var(--shinei-blue); }
.shinei-section-heading > .shinei-text-link { flex-shrink: 0; margin-bottom: 6px; }
.shinei-text-link .shinei-icon { width: 18px; height: 18px; }
.shinei-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; align-items: stretch; }
.shinei-article-card { min-width: 0; overflow: hidden; border-radius: 4px; background: #fff; border: 1px solid #edf3f9; box-shadow: 0 6px 22px #234c8b08; transition: box-shadow .2s, transform .2s; }
.shinei-article-card:hover { transform: translateY(-3px); box-shadow: 0 9px 26px #234c8b14; }
.shinei-article-card__image { display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--shinei-pale); }
.shinei-article-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shinei-image-fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(135deg,#f2faff,#cce7ff); color: #295c98; letter-spacing: .12em; font-size: 18px; }
.shinei-image-fallback em { font-size: 12px; font-weight: 300; }
.shinei-article-card__body { padding: 16px 18px 22px; }
.shinei-article-card__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 13px; }
.shinei-category { max-width: 100%; font-size: 11px; color: #0752c6; background: #edf5ff; border-radius: 4px; padding: 3px 7px; line-height: 1.6; text-decoration: none; overflow-wrap: anywhere; }
.shinei-article-card time { margin-left: auto; font-size: 11px; line-height: 1.9; color: #5b6680; white-space: nowrap; }
/* Keep full source/link text accessible; only the visual title is capped. */
.shinei-article-card h3 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: 18px; line-height: 1.8; font-weight: 600; overflow-wrap: anywhere; }
.shinei-article-card h3 a { color: var(--shinei-ink); text-decoration: none; }
.shinei-article-card h3 a:hover { color: var(--shinei-blue); }
.shinei-article-card__excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 12px !important; font-size: 13px; line-height: 1.9; color: var(--shinei-muted); overflow-wrap: anywhere; }
.shinei-business { padding-top: 16px; background: linear-gradient(135deg, transparent 72%, #eff7ff88 100%); }
.shinei-business__heading { display: grid; grid-template-columns: minmax(240px,.7fr) minmax(0,1.3fr); align-items: center; gap: 42px; margin-bottom: 40px; }
.shinei-business__heading > p { max-width: none; border-left: 1px solid #9cbef1; padding: 0 0 0 32px; font-size: 14px; line-height: 2; }
.shinei-business__rows { display: grid; gap: 28px; }
.shinei-business__row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); min-width: 0; background: #fff; border-bottom: 1px solid var(--shinei-line); }
.shinei-business__photo { position: relative; min-height: 270px; overflow: hidden; background: var(--shinei-pale); }
.shinei-business__photo > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.shinei-business__body { min-width: 0; align-self: center; padding: 32px 38px; }
.shinei-business__body h3 { font-family: var(--shinei-serif); font-size: clamp(23px,2.5vw,34px); font-weight: 500; line-height: 1.55; border-left: 2px solid var(--shinei-blue); padding-left: 20px; overflow-wrap: anywhere; }
.shinei-business__body > p { margin: 14px 0 20px; color: var(--shinei-muted); font-size: 14px; line-height: 1.95; overflow-wrap: anywhere; }
.shinei-business__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.shinei-business__button { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px; max-width: 100%; min-height: 42px; padding: 8px 17px; border: 1px solid #8aaeee; border-radius: 24px; background: #fff; color: #16499c; font: inherit; font-size: 13px; line-height: 1.6; text-decoration: none; overflow-wrap: anywhere; }
.shinei-business__button:not(:disabled):hover { background: #edf5ff; }
.shinei-business__button:disabled { opacity: 1; cursor: default; border-style: dashed; border-color: #c5d0df; background: #f5f7fa; color: #58667b; }
.shinei-business__social-links { flex-wrap: nowrap; gap: 20px; }
.shinei-business__social-link { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 48px; width: 48px; height: 48px; color: var(--shinei-ink); border-radius: 8px; text-decoration: none; transition: color .18s; }
.shinei-business__social-link svg { display: block; width: 28px; height: 28px; }
.shinei-business__social-link:hover, .shinei-business__social-link:focus-visible { color: var(--shinei-blue); }
.shinei-business__social-link:focus-visible { outline: 3px solid var(--shinei-blue); outline-offset: 4px; }
@media (min-width: 768px) {
  .shinei-business__row:nth-child(even) { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); }
  .shinei-business__row:nth-child(even) > .shinei-business__photo { grid-column: 2; grid-row: 1; }
  .shinei-business__row:nth-child(even) > .shinei-business__body { grid-column: 1; grid-row: 1; }
}
@media (max-width: 959px) {
  .shinei-business__heading { gap: 24px; }
  .shinei-business__heading > p { padding-left: 24px; font-size: 13px; }
  .shinei-business__body { padding: 26px 24px; }
}
@media (max-width: 767px) {
  .shinei-business__rows { gap: 22px; }
  .shinei-business__heading { grid-template-columns: minmax(0,1fr); gap: 14px; margin-bottom: 28px; }
  .shinei-business__heading > p { border-left: 0; padding: 0; }
  .shinei-business__row { grid-template-columns: minmax(0,1fr); }
  .shinei-business__photo { min-height: 0; aspect-ratio: 16 / 9; }
  .shinei-business__body { padding: 26px 20px 30px; }
  .shinei-business__body h3 { padding-left: 14px; }
}
.shinei-latest { position: relative; background: linear-gradient(130deg,#e8f6ff 0%,#f6fbff 48%,#fff 100%); border-block: 1px solid #edf5fc; }
.shinei-latest::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg,transparent 42%,#d6ebfc44 42%,transparent 65%); pointer-events: none; }
.shinei-latest > .shinei-shell { position: relative; }
.shinei-about { display: grid; grid-template-columns: 1fr 1.25fr; gap: 70px; padding-block: 82px; }
.shinei-about h2 { margin-top: 12px; line-height: 1.7; }
.shinei-about__copy > p { font-size: 14px; color: var(--shinei-muted); line-height: 2; margin-bottom: 12px; }
.shinei-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 25px; }
.shinei-empty { grid-column: 1 / -1; padding: 28px; border: 1px solid var(--shinei-line); color: var(--shinei-muted); font-size: 14px; }
.shinei-site #footer.l-footer { margin-top: 0; background: #f7fbff; color: var(--shinei-ink); }
.shinei-footer { padding: 52px 0 20px; border-top: 1px solid var(--shinei-line); }
.shinei-footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.shinei-footer__top > p { font-size: 12px; line-height: 1.9; color: var(--shinei-muted); }
.shinei-footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; }
.shinei-footer__nav a { display: inline-block; padding-block: 12px; font-size: 12px; font-weight: 600; text-decoration: none; }
.shinei-footer__nav a:hover { color: var(--shinei-blue); }
.shinei-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--shinei-line); margin-top: 30px; padding-top: 20px; color: var(--shinei-muted); font-size: 12px; }
.shinei-footer__bottom a { text-decoration: none; }
/* Keep the existing mobile DOM/spacing; desktop places its siblings in one row. */
@media (min-width: 960px) {
  .shinei-footer > .shinei-shell { display: grid; grid-template-columns: minmax(230px,1fr) minmax(320px,1fr); column-gap: 64px; align-items: center; }
  .shinei-footer__top { grid-column: 1; grid-row: 1; margin-bottom: 0; }
  .shinei-footer > .shinei-shell > nav { grid-column: 2; grid-row: 1; min-width: 0; }
  .shinei-footer__bottom { grid-column: 1 / -1; grid-row: 2; }
}
.shinei-back-to-top { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid #b5cef4; border-radius: 50%; color: var(--shinei-blue); background: #fff; font-size: 22px; }
.shinei-back-to-top:hover { background: #e7f1ff; }
/* One visible/accessibility-tree control; preserve SWELL's unrelated TOC button. */
.shinei-site #pagetop { display: none !important; }
/* Shared article/page styling keeps their existing content and SWELL structure. */
.shinei-site:not(.shinei-home) .c-pageTitle { font-family: var(--shinei-serif); font-weight: 500; letter-spacing: .02em; }
.shinei-site .post_content h2 { font-family: var(--shinei-serif); color: var(--shinei-ink); background: #f2f8ff; border-left-color: var(--shinei-blue); }
.shinei-site .post_content .wp-block-table { overflow-x: auto; }
.shinei-site .post_content .wp-block-table th { background: #f2f8ff; }
.shinei-site .post_content .swell-block-button__link { border-radius: 28px; }
.shinei-site .post_content :is(input[type="text"],input[type="email"],textarea) { border: 1px solid #bdcfe4; border-radius: 4px; }
@media (max-width: 1199px) {
  .shinei-brand__tagline { display: none; }
  .shinei-nav-list { gap: 23px; }
  .shinei-section-heading { flex-wrap: wrap; gap: 16px 25px; }
  .shinei-section-heading > p { flex-basis: 45%; }
}
@media (max-width: 959px) {
  .shinei-shell { width: calc(100% - 48px); }
  .shinei-header__inner { min-height: 76px; gap: 16px; flex-wrap: wrap; padding-block: 6px; }
  .shinei-header .shinei-brand__logo { width: min(180px, calc(100vw - 100px)); }
  .shinei-footer .shinei-brand__logo { width: 200px; }
  .shinei-menu-toggle:not([hidden]) { display: inline-flex; }
  .shinei-primary-nav { flex-basis: 100%; }
  .shinei-nav-list { justify-content: center; flex-wrap: wrap; gap: 0 24px; }
  .shinei-header.is-enhanced .shinei-primary-nav { position: absolute; top: 100%; left: 0; width: 100%; background: #fff; padding: 14px 24px 24px; border-bottom: 1px solid var(--shinei-line); box-shadow: 0 10px 15px #2648750a; }
  .shinei-header.is-enhanced .shinei-nav-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .shinei-nav-list a { min-height: 44px; }
  .shinei-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
  .shinei-section { padding-block: 46px; }
  .shinei-business { padding-top: 0; }
  .shinei-section-heading > p { flex-basis: auto; }
  /* Full-width square background, with HTML overlapping its lower city area.
     The face and baked Japanese copy are above 62vw and remain unobscured. */
  .shinei-hero {
    background-image: linear-gradient(180deg, #f5fbff00 0px, #f5fbff00 62vw, #f5fbffe6 80vw, #f5fbff 100vw), url("../images/shinei-hero-768.webp");
    background-size: 100% 100%, 100% auto;
    background-position: center, center top;
  }
  .shinei-hero__inner { display: block; min-height: 100vw; }
  .shinei-hero__copy { width: 100%; padding: 72vw 0 40px; }
  .shinei-hero h1 { font-size: clamp(28px, 5vw, 36px); margin-top: 12px; }
  .shinei-hero__description { font-size: 14px; }
  .shinei-hero .shinei-eyebrow { font-size: 10px; letter-spacing: .08em; }
  .shinei-about { gap: 35px; }
}
@media (max-width: 767px) {
  .shinei-hero .shinei-button { margin-top: 22px; }
  .shinei-about { grid-template-columns: 1fr; gap: 24px; }
  .shinei-footer__top { flex-direction: column; align-items: start; }
}
@media (max-width: 599px) {
  .shinei-shell { width: calc(100% - 40px); }
  .shinei-header__inner { column-gap: 10px; }
  .shinei-menu-toggle { font-size: 10px; padding: 8px; gap: 7px; }
  .shinei-menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .shinei-nav-list a { font-size: 11px; }
  .shinei-hero h1 { font-size: clamp(28px, 7.2vw, 34px); }
  .shinei-hero .shinei-eyebrow { font-size: 8px; }
  .shinei-hero .shinei-rule { margin-block: 18px; }
  .shinei-card-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .shinei-section-heading { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; margin-bottom: 24px; }
  .shinei-section-heading > p { padding-bottom: 0; font-size: 12px; }
  .shinei-section-heading > .shinei-text-link { justify-self: start; }
  .shinei-article-card__body { padding: 16px 18px 22px; }
  .shinei-footer__nav { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .shinei-footer__bottom { align-items: start; }
  .shinei-actions { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .shinei-site *, .shinei-site *::before, .shinei-site *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
