@charset "UTF-8";

/* =========================================================
   KAIROS modern common style
========================================================= */

:root {
  --color-primary: #0f4f8f;
  --color-primary-dark: #07345f;
  --color-accent: #2b8fd8;
  --color-bg: #f5f8fb;
  --color-text: #1f2937;
  --color-muted: #64748b;
  --color-border: #dbe3ea;
  --color-white: #ffffff;
  --shadow-card: 0 12px 28px rgba(15, 79, 143, 0.10);
  --shadow-button: 0 10px 22px rgba(15, 79, 143, 0.22);
  --radius-large: 24px;
  --header-height: 82px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: "Noto Sans JP", "メイリオ", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

img,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* =========================================================
   Header
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-top: 4px solid #07157a;
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  color: #34415f;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.global-nav {
  min-width: 0;
}

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
}

.global-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.global-nav a:hover,
.global-nav a.is-current {
  color: var(--color-primary);
  background: rgba(15, 79, 143, 0.08);
}

.header-contact {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white) !important;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-button);
}

.header-contact:hover {
  color: var(--color-white) !important;
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

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

.hero-section {
  position: relative;
  background:
    radial-gradient(circle at 88% 18%, rgba(43, 143, 216, 0.22), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #e8f4ff 100%);
  border-bottom: 1px solid var(--color-border);
}

.hero-inner-wide {
  display: block;
  min-height: auto;
  padding: 78px 0 70px;
}

.hero-main-visual {
  width: min(100%, 1040px);
  height: 380px;
  margin: 0 auto 34px;
  border-radius: 28px;
  background: #ffffff url("../images/top_img.jpg") center top / 103% no-repeat;
  box-shadow: 0 18px 40px rgba(15, 79, 143, 0.12);
}

.hero-copy-center {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy-center .hero-text {
  max-width: none;
  margin: 0 0 28px;
  color: #1f2937;
  font-size: 17px;
  line-height: 2;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary,
.button-primary:visited {
  color: var(--color-white) !important;
  background: var(--color-primary);
  box-shadow: var(--shadow-button);
}

.button-primary:hover {
  color: var(--color-white) !important;
  background: var(--color-primary-dark);
}

.button-secondary {
  color: var(--color-primary);
  background: var(--color-white);
  border: 1px solid var(--color-border);
}

.button-secondary:hover {
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-card);
}

.button-light {
  color: var(--color-primary);
  background: var(--color-white);
}

.button-light:hover {
  color: var(--color-primary-dark);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.18);
}

/* =========================================================
   Section common
========================================================= */

.service-section,
.news-section {
  padding: 82px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.section-heading {
  margin-bottom: 36px;
}

.section-heading h2 {
  margin: 0 0 18px;
  color: var(--color-primary-dark);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.section-heading p:not(.section-label) {
  max-width: 820px;
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
}

/* =========================================================
   Service
========================================================= */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  background: var(--color-white);
  box-shadow: 0 10px 24px rgba(15, 79, 143, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(43, 143, 216, 0.08);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(43, 143, 216, 0.42);
  box-shadow: var(--shadow-card);
}

.service-icon-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: 26px;
}

.service-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: var(--color-white);
  box-shadow: 0 12px 24px rgba(15, 79, 143, 0.18);
}

.service-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-icon-blue {
  background: linear-gradient(135deg, #0f4f8f, #2b8fd8);
}

.service-icon-purple {
  background: linear-gradient(135deg, #5b4bb2, #9b7bdc);
}

.service-icon-sky {
  background: linear-gradient(135deg, #0f76a8, #35b7d8);
}

.service-icon-green {
  background: linear-gradient(135deg, #208653, #68bd45);
}

.service-icon-orange {
  background: linear-gradient(135deg, #f07a24, #ffad4d);
}

.service-icon-pink {
  background: linear-gradient(135deg, #d9467a, #ff6b8f);
}

.service-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  color: var(--color-primary-dark);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
}

.service-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.8;
}

.service-more {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 24px;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 800;
}

.service-more::after {
  content: "→";
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.service-card:hover .service-more::after {
  transform: translateX(4px);
}

/* =========================================================
   News
========================================================= */

.news-section {
  background: var(--color-white);
}

.news-inner {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: start;
  gap: 42px;
}

.news-heading {
  margin-bottom: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  color: var(--color-primary);
  font-weight: 800;
}

.text-link::after {
  content: "→";
  margin-left: 8px;
}

.news-list {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  background: var(--color-white);
  box-shadow: 0 10px 24px rgba(15, 79, 143, 0.06);
}

.news-item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item time {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.news-item p {
  min-width: 0;
  margin: 0;
  color: #334155;
  font-size: 15px;
  line-height: 1.7;
}

.news-important {
  color: #c81e5b !important;
  font-weight: 700;
}

.news-important:hover {
  color: #111111 !important;
}

/* =========================================================
   Contact
========================================================= */

.contact-section {
  padding: 76px 0;
  color: var(--color-white);
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.14), transparent 30%),
    linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
}

.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.contact-box .section-label {
  color: rgba(255, 255, 255, 0.82);
}

.contact-box h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.35;
}

.contact-box p:not(.section-label) {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.contact-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.contact-tel {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* =========================================================
   Footer
========================================================= */

.site-footer {
  padding: 32px 0;
  color: rgba(255, 255, 255, 0.76);
  background: #0b2138;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner small {
  font-size: 13px;
}

.footer-inner ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.footer-inner a {
  color: rgba(255, 255, 255, 0.76);
}

.footer-inner a:hover {
  color: var(--color-white);
}

/* =========================================================
   News page
========================================================= */

.news-page-section {
  padding: 64px 0 90px;
}

.news-page-main {
  max-width: 980px;
  margin: 0 auto;
}

.news-page-list {
  display: grid;
  gap: 20px;
}

.news-page-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding: 28px;
  border-radius: 28px;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.98) 0%,
      rgba(240,248,255,0.96) 100%
    );
  border: 1px solid rgba(15,79,143,0.10);
  box-shadow: 0 12px 28px rgba(15,79,143,0.08);
}

.news-page-item time {
  display: inline-flex;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(15,79,143,0.08);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 900;
}

.news-tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(15,79,143,0.12);
  color: var(--color-primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.news-page-content h2 {
  margin: 0;
  color: var(--color-primary-dark);
  font-size: 22px;
  line-height: 1.7;
}

/* =========================================================
   Breadcrumb
========================================================= */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: #64748b;
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1024px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 16px 0;
  }

  .global-nav {
    order: 3;
    width: 100%;
  }

  .global-nav ul {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 700px) {
  .container {
    width: calc(100% - 32px);
    max-width: none;
  }

  .site-header {
    position: static;
  }

  .header-inner {
    min-height: auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 0;
  }

  .site-logo {
    width: auto;
    font-size: 24px;
  }

  .site-logo img {
    width: 142px;
  }

  .header-contact {
    display: none;
  }

  .global-nav {
    order: 3;
    width: 100%;
    overflow: hidden;
  }

  .global-nav ul {
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 4px;
  }

  .global-nav ul::-webkit-scrollbar {
    display: none;
  }

  .global-nav li {
    flex: 0 0 auto;
  }

  .global-nav a {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(15, 79, 143, 0.06);
    font-size: 13px;
    white-space: nowrap;
  }

  .hero-inner-wide {
    padding: 44px 0 52px;
  }

  .hero-main-visual {
    height: auto;
    aspect-ratio: 2 / 1;
    min-height: 0;
    margin-bottom: 26px;
    border-radius: 18px;
    background-size: contain;
    background-position: center;
  }

  .hero-copy-center {
    text-align: center;
  }

  .hero-copy-center .hero-text {
    font-size: 14px;
    line-height: 1.9;
  }

  .hero-buttons {
    justify-content: center;
    flex-direction: row;
  }

  .button {
    width: auto;
    min-width: 150px;
    min-height: 46px;
    padding: 0 18px;
    font-size: 14px;
  }

  .service-section,
  .news-section {
    padding: 58px 0;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .service-card {
    min-height: 200px;
    padding: 18px 14px;
    border-radius: 22px;
  }

  .service-card::before {
    width: 120px;
    height: 120px;
    top: -55px;
    right: -55px;
  }

  .service-icon-wrap {
    margin-bottom: 16px;
  }

  .service-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .service-icon svg {
    width: 26px;
    height: 26px;
  }

  .service-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.45;
  }

  .service-card p {
    display: none;
  }

  .service-more {
    padding-top: 16px;
    font-size: 13px;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px;
  }

  .contact-section {
    padding: 58px 0;
  }

  .contact-box {
    display: block;
    padding: 0;
  }

  .contact-box h2 {
    font-size: 32px;
    line-height: 1.35;
    word-break: keep-all;
  }

  .contact-box p:not(.section-label) {
    font-size: 15px;
    line-height: 1.9;
  }

  .contact-actions {
    width: 100%;
    align-items: flex-start;
    margin-top: 26px;
  }

  .contact-tel {
    display: block;
    max-width: 100%;
    font-size: 22px;
    line-height: 1.5;
    word-break: break-all;
  }

  .contact-actions .button {
    width: 100%;
    max-width: 320px;
    margin-top: 4px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner ul {
    justify-content: flex-start;
  }

  .news-page-section {
    padding: 42px 0 64px;
  }

  .news-page-item {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }

  .news-page-item time {
    justify-content: flex-start;
  }

  .news-page-content h2 {
    font-size: 18px;
  }

  .sitemap-section {
    padding: 42px 0 64px;
  }

  .sitemap-group {
    padding: 24px;
  }

  .sitemap-group h2 {
    font-size: 24px;
  }
  @media (max-width: 700px) {

  /* 共通：横はみ出し対策 */
  .message-main,
  .message-block,
  .message-body,
  .principle-card,
  .recruit-main,
  .recruit-hero,
  .recruit-block,
  .recruit-table,
  .recruit-row,
  .recruit-head,
  .recruit-data,
  .access-card,
  .access-info,
  .detail-main {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* 代表メッセージ */
  .message-block {
    display: block !important;
    padding: 24px 20px !important;
  }

  .message-icon {
    margin-bottom: 20px !important;
  }

  .message-icon img {
    width: 96px !important;
  }

  .message-body h2 {
    font-size: 28px !important;
    line-height: 1.45 !important;
  }

  .message-body p {
    font-size: 15px !important;
    line-height: 1.9 !important;
  }

  .principle-card {
    display: block !important;
  }

  .principle-card img {
    width: 90px !important;
    margin-bottom: 16px !important;
  }

  /* 採用情報 */
  .recruit-hero {
    display: block !important;
    padding: 24px 20px !important;
  }

  .recruit-hero img {
    max-width: 280px !important;
    margin: 24px auto 0 !important;
    display: block !important;
  }

  .recruit-block {
    padding: 24px 20px !important;
  }

  .recruit-row {
    display: block !important;
  }

  .recruit-head {
    padding: 18px 18px 8px !important;
    background: transparent !important;
  }

  .recruit-data {
    padding: 0 18px 20px !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .recruit-card-grid,
  .benefit-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  /* 会社情報・アクセス */
  .access-card {
    display: block !important;
    padding: 22px !important;
  }

  .access-photo {
    margin-bottom: 24px !important;
  }

  .access-photo img {
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    display: block !important;
  }
}
@media (max-width: 700px) {
  .global-nav {
    width: 100%;
    overflow: visible;
  }

  .global-nav ul {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    gap: 8px;
    padding: 0;
  }

  .global-nav li {
    flex: 0 0 auto;
  }

  .global-nav a {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }
}
}