/* ============================================================
   株式会社TR3 — Corporate Stylesheet
   ============================================================ */

:root {
  --navy:   #1a2b4a;
  --navy-2: #243855;
  --navy-3: #0d1b35;
  --orange: #E85D04;
  --orange-dark: #c44f00;
  --orange-bg: #fff4ee;
  --white:  #ffffff;
  --bg:     #f6f8fc;
  --border: #dde2ec;
  --text:   #1c2535;
  --muted:  #5e6d84;
  --font:   'Noto Sans JP', 'Yu Gothic', sans-serif;
  --max-w:  1200px;
  --r:      6px;
  --r-lg:   12px;
  --shadow: 0 2px 12px rgba(26,43,74,.07);
  --shadow-md: 0 8px 28px rgba(26,43,74,.11);
  --shadow-lg: 0 16px 48px rgba(26,43,74,.15);
  --ease: .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px; /* sticky header height: top-bar (~26px) + main-bar (~82px) */
}
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.75;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { transition: color var(--ease), background var(--ease), opacity var(--ease); }

/* ── Container ── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
}

/* Top strip */
.hd-top {
  background: var(--navy-3);
  padding: .35rem 0;
}
.hd-top .wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
  font-size: .78rem;
  color: rgba(255,255,255,.55);
}
.hd-top a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
}
.hd-top a:hover { color: #fff; }

/* Main bar */
.hd-main {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hd-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: .85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hd-logo { flex-shrink: 0; display: block; }
.hd-logo img { height: 52px; display: block; }

/* Desktop nav */
.hd-nav {
  display: flex;
  align-items: center;
  gap: .15rem;
}
.hd-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: .88rem;
  padding: .45rem .75rem;
  border-radius: var(--r);
  color: var(--text);
  white-space: nowrap;
}
.hd-nav a:not(.hd-cta):hover {
  color: var(--orange);
  background: var(--orange-bg);
}
.hd-cta {
  background: var(--orange) !important;
  color: #fff !important;
  padding: .5rem 1.2rem !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  margin-left: .5rem;
  box-shadow: 0 4px 14px rgba(232,93,4,.28);
}
.hd-cta:hover {
  background: var(--orange-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,93,4,.35) !important;
}

/* Mobile burger */
.hd-burger {
  display: none;
  position: relative;
}
.hd-burger-toggle {
  position: absolute; opacity: 0; pointer-events: none;
}
.hd-burger-btn {
  width: 40px; height: 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  background: #fff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px; cursor: pointer;
}
.hd-burger-btn span {
  display: block; width: 18px; height: 1.5px;
  background: var(--navy);
  transition: transform var(--ease), opacity var(--ease);
}
.hd-burger-toggle:checked + .hd-burger-btn span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hd-burger-toggle:checked + .hd-burger-btn span:nth-child(2) {
  opacity: 0;
}
.hd-burger-toggle:checked + .hd-burger-btn span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
.hd-burger-menu {
  display: none;
  position: absolute; right: 0; top: calc(100% + .5rem);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: .6rem;
  min-width: 220px;
  list-style: none;
  z-index: 300;
}
.hd-burger-toggle:checked ~ .hd-burger-menu { display: block; }
.hd-burger-menu li a {
  display: block;
  padding: .6rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  border-radius: var(--r);
}
.hd-burger-menu li a:hover {
  background: var(--orange-bg);
  color: var(--orange);
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ============================================================
   PAGE HERO  (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy-3) 0%, var(--navy-2) 100%);
  padding: 3rem 0 3.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; right: -150px; top: -150px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
}
.page-hero .wrap { position: relative; z-index: 1; }

.breadcrumb {
  display: flex; gap: .45rem; align-items: center;
  font-size: .78rem; margin-bottom: .9rem;
  color: rgba(255,255,255,.45);
}
.breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { color: rgba(255,255,255,.3); }

.page-hero__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: .5rem;
}
.page-hero__lead {
  font-size: 1rem;
  color: rgba(255,255,255,.8);
  max-width: 600px;
}

/* ============================================================
   SECTION BASE
   ============================================================ */
.section { padding: 5rem 0; }
.section--sm { padding: 3.5rem 0; }
.section--gray { background: var(--bg); }
.section--navy {
  background: linear-gradient(135deg, var(--navy-3) 0%, var(--navy-2) 100%);
  color: #fff;
}

.section-hd { margin-bottom: 3rem; }
.section-label {
  display: block;
  color: var(--orange);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.section-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.section--navy .section-title { color: #fff; }
.section-title::after {
  content: '';
  display: block;
  width: 36px; height: 3px;
  background: var(--orange);
  margin-top: .7rem;
  border-radius: 2px;
}
.section-lead {
  margin-top: .9rem;
  color: var(--muted);
  font-size: .95rem;
  max-width: 640px;
}
.section--navy .section-lead { color: rgba(255,255,255,.7); }

/* ============================================================
   GRID
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .8rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: all var(--ease);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 20px rgba(232,93,4,.3);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(232,93,4,.38);
  color: #fff;
}
.btn-secondary {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.45);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
  color: #fff;
}
.btn-sm { padding: .55rem 1.2rem; font-size: .85rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--ease), transform var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .65rem;
}
.card-text {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.75;
}

/* Service card — orange top border */
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--ease), transform var(--ease);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.service-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .9rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.service-card__text {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.75;
}

/* Strength card */
.strength-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.75rem 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  transition: box-shadow var(--ease), transform var(--ease);
}
.strength-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.strength-num {
  flex-shrink: 0;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  opacity: .18;
  letter-spacing: -.04em;
}
.strength-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .45rem;
}
.strength-text {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================================
   NEWS LIST
   ============================================================ */
.news-list { list-style: none; }
.news-item {
  display: grid;
  grid-template-columns: 110px auto 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.news-item:first-child { border-top: 1px solid var(--border); }
.news-date {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.news-badge {
  display: inline-block;
  background: var(--orange-bg);
  color: var(--orange);
  font-size: .72rem;
  font-weight: 700;
  padding: .15rem .6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.news-text { font-size: .9rem; color: var(--text); }
.news-text a { color: var(--orange); text-decoration: none; }
.news-text a:hover { text-decoration: underline; }

/* ============================================================
   COMPANY TABLE
   ============================================================ */
.company-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.company-table th,
.company-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  vertical-align: top;
}
.company-table th {
  width: 160px;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg);
  white-space: nowrap;
}
.company-table td { background: #fff; }
.company-table tr:last-child th,
.company-table tr:last-child td { border-bottom: none; }

/* ============================================================
   ANNOUNCEMENT LIST
   ============================================================ */
.ann-list { list-style: none; }
.ann-item {
  display: grid;
  grid-template-columns: 110px auto 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.ann-item:first-child { border-top: 1px solid var(--border); }
.ann-date { font-size: .85rem; font-weight: 600; color: var(--navy); white-space: nowrap; }
.ann-badge {
  display: inline-block;
  background: var(--orange-bg);
  color: var(--orange);
  font-size: .72rem;
  font-weight: 700;
  padding: .15rem .6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.ann-content { font-size: .9rem; }
.ann-content a { color: var(--navy); text-decoration: underline; }

/* ============================================================
   NOTICE BOX
   ============================================================ */
.notice-box {
  background: var(--bg);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 1.5rem 1.75rem;
}
.notice-box strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: .5rem;
}
.notice-box p { color: var(--muted); font-size: .9rem; }

/* ============================================================
   PROSE  (policy / terms pages)
   ============================================================ */
.prose h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2.25rem 0 .75rem;
  padding-left: .85rem;
  border-left: 3px solid var(--orange);
}
.prose p,
.prose li { font-size: .92rem; color: var(--text); margin-bottom: .75rem; line-height: 1.8; }
.prose ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose-meta { font-size: .82rem; color: var(--muted); margin-bottom: 2.5rem; }
.prose a { color: var(--orange); text-decoration: none; }
.prose a:hover { text-decoration: underline; }

/* ============================================================
   CONTACT INLINE
   ============================================================ */
.contact-inline { font-size: .9rem; line-height: 1.8; }
.contact-inline a { color: var(--orange); text-decoration: none; }
.contact-inline a:hover { text-decoration: underline; }

/* ============================================================
   CTA SECTION  (homepage bottom)
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--navy-3) 0%, var(--navy-2) 100%);
  color: #fff;
  text-align: center;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; left: -200px; bottom: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
}
.cta-section .wrap { position: relative; z-index: 1; }
.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.cta-section p {
  color: rgba(255,255,255,.72);
  margin-bottom: 2rem;
  font-size: 1rem;
}
.cta-email {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  margin-bottom: 2rem;
}
.cta-email a {
  color: var(--orange);
  text-decoration: none;
}
.cta-email a:hover { text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-3);
  color: rgba(255,255,255,.65);
}
.footer-body { padding: 4rem 0 3rem; }
.footer-body .wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand img {
  height: 40px;
  filter: brightness(0) invert(1);
  margin-bottom: 1.25rem;
}
.footer-brand p {
  font-size: .82rem;
  line-height: 1.85;
  color: rgba(255,255,255,.45);
}
.footer-col h4 {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
  margin-bottom: 1.1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-col ul a {
  font-size: .88rem;
  color: rgba(255,255,255,.62);
  text-decoration: none;
}
.footer-col ul a:hover { color: #fff; }
.footer-contact-item { font-size: .88rem; margin-bottom: .5rem; }
.footer-contact-item a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
}
.footer-contact-item a:hover { color: var(--orange); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0; }
.footer-bottom .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}
.footer-bottom__copy { font-size: .8rem; color: rgba(255,255,255,.38); }
.footer-bottom__links { display: flex; gap: 1.5rem; }
.footer-bottom__links a {
  font-size: .8rem;
  color: rgba(255,255,255,.48);
  text-decoration: none;
}
.footer-bottom__links a:hover { color: rgba(255,255,255,.85); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-body .wrap { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .company-table th { width: 120px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 1.25rem; }
  .hd-inner { padding: .75rem 1.25rem; }
  .hd-logo img { height: 44px; }
  .hd-nav { display: none; }
  .hd-burger { display: block; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .section--sm { padding: 2.5rem 0; }
  .section-hd { margin-bottom: 2rem; }
  .news-item {
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
  }
  .news-text { grid-column: 1 / -1; }
  .ann-item {
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
  }
  .ann-content { grid-column: 1 / -1; }
  .company-table th,
  .company-table td { display: block; width: 100%; }
  .company-table th {
    border-bottom: none;
    padding-bottom: .4rem;
  }
  .company-table td { padding-top: .4rem; }
  .footer-body .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom .wrap { flex-direction: column; text-align: center; }
  .footer-bottom__links { flex-wrap: wrap; justify-content: center; }
  .hd-top .wrap { justify-content: center; }
  .cta-section { padding: 3.5rem 0; }
}
