/* ============================================================
   株式会社ライズ  共通スタイルシート
   カラー：グリーン (#2e7d32) × ホワイト
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --g-dark:   #1b5e20;
  --g-mid:    #2e7d32;
  --g-light:  #43a047;
  --g-pale:   #e8f5e9;
  --g-border: #a5d6a7;
  --white:    #ffffff;
  --bg-light: #f7f9f7;
  --gray-100: #f3f4f6;
  --gray-300: #d1d5db;
  --gray-500: #9ca3af;
  --gray-600: #6b7280;
  --gray-900: #111827;
  --text:     #2d3748;
  --max-w:    1080px;
  --shadow:   0 2px 16px rgba(0,0,0,.09);
  --radius:   8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', 'Noto Sans JP', sans-serif;
  color: var(--text);
  line-height: 1.75;
  background: var(--white);
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ── Layout helper ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--white);
  border-bottom: 4px solid var(--g-mid);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-logo img {
  height: 46px;
  width: auto;
}

.header-logo-texts {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.header-logo-name {
  font-size: 1.0rem;
  font-weight: 800;
  color: var(--g-dark);
  letter-spacing: .03em;
}

.header-logo-en {
  font-size: 0.65rem;
  color: var(--gray-600);
  letter-spacing: .06em;
}

.header-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.header-nav a {
  display: block;
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-900);
  border-radius: 4px;
  white-space: nowrap;
  transition: background .18s, color .18s;
}

.header-nav a:hover,
.header-nav a.is-current {
  background: var(--g-mid);
  color: var(--white);
}

/* ============================================================
   HERO（index.html 専用）
   ============================================================ */
.hero {
  position: relative;
  height: 510px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg,
    rgba(27,94,32,.82) 0%,
    rgba(27,94,32,.48) 55%,
    rgba(0,0,0,.10) 100%);
  display: flex;
  align-items: center;
}

.hero-body {
  padding: 0 64px;
  color: var(--white);
  max-width: 640px;
}

.hero-label {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: .16em;
  background: var(--g-light);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 18px;
  font-weight: 700;
}

.hero-title {
  font-size: 2.15rem;
  font-weight: 900;
  line-height: 1.45;
  margin-bottom: 18px;
  text-shadow: 1px 2px 8px rgba(0,0,0,.38);
}

.hero-desc {
  font-size: 0.93rem;
  line-height: 1.85;
  opacity: .93;
  margin-bottom: 32px;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: opacity .2s, transform .15s;
  cursor: pointer;
}

.btn:hover { opacity: .86; transform: translateY(-1px); }

.btn-white {
  background: var(--white);
  color: var(--g-dark);
}

.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,.75);
  color: var(--white);
}

.btn-green {
  background: var(--g-mid);
  color: var(--white);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section        { padding: 72px 0; }
.section-alt    { background: var(--bg-light); }
.section-green  { background: var(--g-dark); color: var(--white); }

.section-head {
  text-align: center;
  margin-bottom: 52px;
}

.section-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: .2em;
  font-weight: 700;
  color: var(--g-light);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-green .section-label { color: var(--g-border); }

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--g-dark);
  display: inline-block;
  position: relative;
  padding-bottom: 16px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 4px;
  background: var(--g-light);
  border-radius: 2px;
}

.section-green .section-title {
  color: var(--white);
}

.section-green .section-title::after {
  background: var(--g-border);
}

.section-sub {
  margin-top: 14px;
  color: var(--gray-600);
  font-size: 0.875rem;
  line-height: 1.85;
}

.section-green .section-sub { color: rgba(255,255,255,.75); }

/* ============================================================
   FEATURE CARDS（index.html）
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--g-mid);
  text-align: center;
}

.feature-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--g-pale);
  color: var(--g-dark);
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.0rem;
  font-weight: 800;
  color: var(--g-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.8;
}

/* ============================================================
   INDEX QUICK LINKS
   ============================================================ */
.quicklink-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.quicklink-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  transition: background .2s;
  text-align: center;
}

.quicklink-card:hover {
  background: rgba(255,255,255,.18);
}

.quicklink-icon {
  font-size: 1.8rem;
  line-height: 1;
}

/* ============================================================
   PAGE HEADER（inner pages）
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, var(--g-dark) 0%, var(--g-mid) 100%);
  color: var(--white);
  padding: 52px 24px 46px;
  text-align: center;
}

.page-header h1 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.page-header-en {
  font-size: 0.72rem;
  letter-spacing: .2em;
  opacity: .68;
  text-transform: uppercase;
}

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-300);
  padding: 9px 0;
  font-size: 0.75rem;
  color: var(--gray-600);
}

.breadcrumb .container {
  display: flex;
  gap: 6px;
  align-items: center;
}

.breadcrumb a { color: var(--g-mid); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { opacity: .45; }

/* ============================================================
   COMPANY TABLE
   ============================================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 15px 20px;
  border: 1px solid var(--gray-300);
  vertical-align: top;
  line-height: 1.7;
}

.data-table th {
  background: var(--g-mid);
  color: var(--white);
  font-weight: 700;
  width: 210px;
  white-space: nowrap;
}

.data-table tr:nth-child(even) td {
  background: var(--g-pale);
}

/* ── Client tag list ── */
.client-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.client-tag {
  background: var(--g-pale);
  border: 1px solid var(--g-border);
  color: var(--g-dark);
  font-size: 0.83rem;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 40px;
}

/* ── Qualification cards ── */
.qual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.qual-card {
  background: var(--white);
  border: 1px solid var(--g-border);
  border-left: 5px solid var(--g-mid);
  border-radius: 6px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
}

.qual-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

/* ============================================================
   SERVICE PAGE
   ============================================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  border-left: 6px solid var(--g-mid);
}

.service-no {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--g-light);
  margin-bottom: 8px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--g-dark);
  margin-bottom: 14px;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.85;
}

.service-card ul {
  margin-top: 12px;
  padding-left: 0;
}

.service-card ul li {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.7;
  padding-left: 16px;
  position: relative;
}

.service-card ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--g-mid);
  font-size: 0.75rem;
  top: 3px;
}

.service-banner {
  background: var(--g-pale);
  border: 1px solid var(--g-border);
  border-radius: var(--radius);
  padding: 28px 36px;
  margin-top: 40px;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--g-dark);
}

.service-banner strong {
  font-weight: 800;
}

/* ============================================================
   WORKS TABLE
   ============================================================ */
.works-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.works-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 700px;
}

.works-table thead th {
  background: var(--g-dark);
  color: var(--white);
  padding: 13px 16px;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}

.works-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-300);
  vertical-align: top;
  line-height: 1.6;
}

.works-table tbody tr:nth-child(even) td {
  background: var(--bg-light);
}

.works-table tbody tr:hover td {
  background: var(--g-pale);
}

/* ── Works filter tabs ── */
.works-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.works-filter-btn {
  padding: 7px 18px;
  border: 1px solid var(--g-border);
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--g-dark);
  background: var(--white);
  cursor: pointer;
  transition: background .18s, color .18s;
}

.works-filter-btn.is-active,
.works-filter-btn:hover {
  background: var(--g-mid);
  color: var(--white);
  border-color: var(--g-mid);
}

/* ============================================================
   RECRUIT PAGE
   ============================================================ */
.recruit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.recruit-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.recruit-card-head {
  background: var(--g-mid);
  color: var(--white);
  padding: 22px 26px;
}

.recruit-card-head span {
  font-size: 0.68rem;
  letter-spacing: .12em;
  opacity: .8;
}

.recruit-card-head h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: 4px;
}

.recruit-card-body {
  padding: 26px;
  flex: 1;
}

.recruit-row {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-300);
  font-size: 0.85rem;
}

.recruit-row:last-child { border-bottom: none; }

.recruit-th {
  font-weight: 700;
  color: var(--g-dark);
  min-width: 88px;
  flex-shrink: 0;
  padding-top: 1px;
  font-size: 0.8rem;
}

.recruit-td {
  color: var(--text);
  line-height: 1.7;
}

.recruit-note {
  margin-top: 36px;
  background: var(--g-pale);
  border: 1px solid var(--g-border);
  border-radius: var(--radius);
  padding: 24px 28px;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--g-dark);
}

/* ============================================================
   ACCESS PAGE
   ============================================================ */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

.contact-info-block h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--g-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--g-pale);
}

.contact-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-300);
  font-size: 0.9rem;
}

.contact-label {
  font-weight: 700;
  color: var(--g-mid);
  font-size: 0.78rem;
  min-width: 72px;
  padding-top: 2px;
  letter-spacing: .04em;
}

.contact-value {
  line-height: 1.75;
}

.contact-value a {
  color: var(--g-mid);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-tel {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--g-dark);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--g-dark);
  color: rgba(255,255,255,.82);
  padding-top: 56px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-brand-en {
  font-size: 0.7rem;
  letter-spacing: .08em;
  opacity: .55;
  margin-bottom: 16px;
}

.footer-brand-info {
  font-size: 0.8rem;
  line-height: 1.9;
}

.footer-nav h4,
.footer-contact h4 {
  font-size: 0.76rem;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  text-transform: uppercase;
}

.footer-nav li a {
  display: block;
  font-size: 0.8rem;
  line-height: 2.2;
  transition: color .18s;
}

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

.footer-contact p {
  font-size: 0.8rem;
  line-height: 1.95;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 24px;
  text-align: center;
  font-size: 0.73rem;
  opacity: .48;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .feature-grid     { grid-template-columns: 1fr; }
  .service-grid     { grid-template-columns: 1fr; }
  .recruit-grid     { grid-template-columns: 1fr; }
  .access-grid      { grid-template-columns: 1fr; }
  .qual-grid        { grid-template-columns: repeat(2, 1fr); }
  .footer-inner     { grid-template-columns: 1fr; gap: 32px; }
  .quicklink-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-inner {
    height: auto;
    padding: 12px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .header-nav ul {
    flex-wrap: wrap;
    gap: 2px;
  }

  .hero { height: 380px; }
  .hero-body { padding: 0 28px; }
  .hero-title { font-size: 1.55rem; }

  .section { padding: 52px 0; }
  .section-title { font-size: 1.45rem; }

  .data-table th { width: 110px; white-space: normal; }
  .qual-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { height: 320px; }
  .hero-title { font-size: 1.3rem; }
  .hero-desc { display: none; }
  .hero-label { display: none; }
}
