/* やおよろず株式会社 /company/ 共通スタイル
   ターゲット: 介護者の子(45-65) — 大文字・高コントラスト・余白重視
   作成: 2026-05-04 */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "游ゴシック", "Yu Gothic", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 17px;
  line-height: 1.85;
  color: #1a1a1a;
  background: #fafaf7;
  -webkit-font-smoothing: antialiased;
  word-break: auto-phrase;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #0a5c45;
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { opacity: 0.8; }

/* ===== Layout ===== */
.l-header {
  background: #fff;
  border-bottom: 1px solid #e6e2d7;
  padding: 16px 20px;
}
.l-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.l-header__brand {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.l-header__nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.l-header__nav a {
  color: #333;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.l-header__nav a:hover { color: #0a5c45; }

.l-main { display: block; }
.l-footer {
  background: #1f2a25;
  color: #d8d4c9;
  padding: 40px 20px 24px;
  margin-top: 80px;
}
.l-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
}
.l-footer__nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.l-footer__nav a {
  color: #d8d4c9;
  text-decoration: none;
  font-size: 15px;
}
.l-footer__nav a:hover { text-decoration: underline; }
.l-footer__copy {
  font-size: 13px;
  color: #8e8a80;
}

/* ===== Section ===== */
.section {
  padding: 64px 20px;
}
.section--alt { background: #fff; }
.section--cta { background: linear-gradient(135deg, #0a5c45 0%, #0d7456 100%); color: #fff; }
.section__inner {
  max-width: 880px;
  margin: 0 auto;
}
.section__inner--wide {
  max-width: 1080px;
  margin: 0 auto;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, #f4f0e6 0%, #fafaf7 100%);
  padding: 72px 20px 56px;
  text-align: center;
}
.hero__inner {
  max-width: 880px;
  margin: 0 auto;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #0a5c45;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}
.hero__title {
  font-size: 32px;
  line-height: 1.5;
  font-weight: 700;
  margin: 0 0 20px;
  color: #1a1a1a;
}
.hero__lead {
  font-size: 17px;
  line-height: 1.9;
  color: #3a3a3a;
  margin: 0 auto 28px;
  max-width: 720px;
}

/* ===== Headings ===== */
.h-section {
  font-size: 26px;
  line-height: 1.5;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 32px;
  padding-left: 16px;
  border-left: 6px solid #0a5c45;
}
.h-sub {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 32px 0 12px;
}
.section p {
  font-size: 17px;
  line-height: 1.95;
  margin: 0 0 16px;
}

/* ===== Vision card ===== */
.vision {
  background: #fff;
  border: 1px solid #e6e2d7;
  border-radius: 12px;
  padding: 32px 28px;
  margin: 24px 0;
}
.vision__title {
  font-size: 22px;
  font-weight: 700;
  color: #0a5c45;
  margin: 0 0 12px;
}
.vision p {
  margin: 0 0 12px;
}
.vision p:last-child { margin-bottom: 0; }

/* ===== Strengths grid ===== */
.strengths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.strength {
  background: #fff;
  border: 1px solid #e6e2d7;
  border-radius: 12px;
  padding: 28px 24px;
}
.strength__num {
  display: inline-block;
  background: #0a5c45;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.strength__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1a1a1a;
}
.strength p {
  font-size: 16px;
  line-height: 1.85;
  margin: 0;
  color: #333;
}

/* ===== Greeting ===== */
.greeting {
  background: #fff;
  border: 1px solid #e6e2d7;
  border-radius: 12px;
  padding: 32px 28px;
}
.greeting__name {
  text-align: right;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 24px 0 0;
}
.greeting__role {
  display: block;
  font-size: 13px;
  color: #6a6a6a;
  font-weight: 500;
  margin-bottom: 4px;
}

/* ===== Profile table ===== */
.kaisha-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e6e2d7;
}
.kaisha-table th,
.kaisha-table td {
  padding: 18px 20px;
  text-align: left;
  font-size: 16px;
  line-height: 1.7;
  vertical-align: top;
  border-bottom: 1px solid #eeeae0;
}
.kaisha-table tr:last-child th,
.kaisha-table tr:last-child td { border-bottom: none; }
.kaisha-table th {
  width: 30%;
  background: #f4f0e6;
  font-weight: 700;
  color: #1a1a1a;
}
.kaisha-table td a {
  word-break: break-all;
}

/* ===== History (沿革) ===== */
.history {
  list-style: none;
  margin: 0;
  padding: 0;
}
.history__item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #e6e2d7;
}
.history__item:last-child { border-bottom: none; }
.history__date {
  font-weight: 700;
  color: #0a5c45;
  font-size: 16px;
}
.history__body {
  font-size: 16px;
  line-height: 1.8;
}

/* ===== CTA ===== */
.cta {
  text-align: center;
}
.cta__title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.5;
}
.cta__lead {
  font-size: 17px;
  line-height: 1.85;
  margin: 0 auto 28px;
  max-width: 640px;
  opacity: 0.95;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 36px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.btn--primary {
  background: #ffd64a;
  color: #1a1a1a;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  opacity: 1;
}
.btn--ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 2px solid #fff;
  margin-left: 12px;
}
.btn--ghost:hover {
  background: #fff;
  color: #0a5c45;
}
.btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Cross link card (top of business / bottom of company) ===== */
.crosslink {
  background: #fff;
  border: 2px solid #0a5c45;
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 32px 0;
}
.crosslink__text { flex: 1 1 280px; }
.crosslink__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #0a5c45;
}
.crosslink__desc {
  font-size: 15px;
  margin: 0;
  color: #333;
  line-height: 1.7;
}
.crosslink__btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 24px;
  background: #0a5c45;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
}
.crosslink__btn:hover { opacity: 0.85; color: #fff; }

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: #f4f0e6;
  padding: 12px 20px;
  font-size: 13px;
  color: #555;
}
.breadcrumb__inner {
  max-width: 1080px;
  margin: 0 auto;
}
.breadcrumb a { color: #0a5c45; }

/* ===== Business page specifics ===== */
.merit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.merit-list li {
  background: #fff;
  border: 1px solid #e6e2d7;
  border-radius: 10px;
  padding: 20px 22px;
  font-size: 16px;
  line-height: 1.8;
  position: relative;
  padding-left: 52px;
}
.merit-list li::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 26px;
  height: 26px;
  background: #0a5c45;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.merit-list strong {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
  color: #0a5c45;
}

.flow {
  list-style: none;
  counter-reset: flow;
  padding: 0;
  margin: 0;
}
.flow li {
  counter-increment: flow;
  background: #fff;
  border: 1px solid #e6e2d7;
  border-radius: 10px;
  padding: 24px 28px 24px 88px;
  margin-bottom: 16px;
  position: relative;
}
.flow li::before {
  content: counter(flow);
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: #0a5c45;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
}
.flow strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}
.flow p { margin: 0; font-size: 15px; line-height: 1.8; color: #333; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.stat {
  background: #fff;
  border: 1px solid #e6e2d7;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
}
.stat__num {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: #0a5c45;
  line-height: 1.1;
}
.stat__num small {
  font-size: 18px;
  font-weight: 700;
  margin-left: 4px;
}
.stat__label {
  display: block;
  font-size: 14px;
  color: #555;
  margin-top: 8px;
  font-weight: 600;
}

.faq {
  border-top: 1px solid #e6e2d7;
}
.faq details {
  border-bottom: 1px solid #e6e2d7;
  padding: 18px 0;
}
.faq summary {
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
  color: #1a1a1a;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: #0a5c45;
  font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq__body {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.85;
  color: #333;
}

/* ===== Mobile ===== */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .l-header { padding: 12px 16px; }
  .l-header__brand { font-size: 17px; }
  .l-header__nav { gap: 16px; }
  .l-header__nav a { font-size: 14px; }

  .hero { padding: 48px 16px 40px; }
  .hero__title { font-size: 24px; }
  .hero__lead { font-size: 16px; }

  .section { padding: 48px 16px; }
  .h-section { font-size: 22px; padding-left: 12px; border-left-width: 5px; margin-bottom: 24px; }
  .h-sub { font-size: 18px; }

  .vision, .greeting, .strength { padding: 24px 20px; }
  .vision__title { font-size: 19px; }

  .kaisha-table th,
  .kaisha-table td {
    display: block;
    width: 100%;
    padding: 12px 16px;
  }
  .kaisha-table th {
    border-bottom: none;
    padding-bottom: 4px;
    font-size: 14px;
  }
  .kaisha-table td { padding-top: 4px; font-size: 16px; }

  .history__item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cta__title { font-size: 22px; }
  .btn { width: 100%; padding: 16px 20px; font-size: 17px; }
  .btn--ghost { margin-left: 0; }
  .btn-row { flex-direction: column; }

  .crosslink { padding: 20px; }
  .crosslink__btn { width: 100%; justify-content: center; }

  .flow li { padding: 20px 20px 20px 72px; }
  .flow li::before { left: 16px; width: 38px; height: 38px; font-size: 17px; }
  .stat__num { font-size: 30px; }
}
