/* =========================================================
   wise-inc / 会社情報ページ専用スタイル (pages/company.css)
   経営理念、代表挨拶、七信条、会社概要テーブル、沿革、事業所案内
   ========================================================= */

/* --- 01 経営理念 (phil) -------------------------------- */
.phil {
  background: linear-gradient(120deg, var(--navy) 0%, #143257 60%, #1A4478 100%);
  color: #fff;
  border-radius: 4px;
  padding: clamp(26px, 3.4vw, 52px);
}
.phil__cap {
  margin: 0 0 clamp(10px, 1.4vw, 16px);
  font-family: "Barlow", sans-serif;
  font-size: 10.5px;
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .52);
}
.phil__word {
  margin: 0 0 clamp(26px, 3.6vw, 48px);
  font-family: var(--brush);
  font-size: clamp(46px, 7vw, 104px);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: .09em;
  text-indent: .09em;
}
.phil__grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.phil__grid li {
  padding: clamp(16px, 2vw, 24px) clamp(10px, 1.4vw, 20px);
  border-left: 1px solid rgba(255, 255, 255, .16);
}
.phil__grid li:first-child { border-left: 0; padding-left: 0; }
.phil__grid b {
  display: block;
  margin-bottom: clamp(10px, 1.3vw, 16px);
  font-family: var(--brush);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .04em;
  color: var(--gold);
}
.phil__grid p {
  margin: 0;
  font-size: clamp(11.5px, .92vw, 13px);
  line-height: 1.9;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .78);
}
@media (max-width: 680px) {
  .phil__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phil__grid li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); padding-inline: 0; }
  .phil__grid li:nth-child(2) { border-top: 0; }
  .phil__grid li:nth-child(even) { padding-left: clamp(14px, 4vw, 22px); }
  .phil__grid li:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .16); padding-right: clamp(14px, 4vw, 22px); }
  .phil__grid li:first-child { border-top: 0; }
}

/* --- 02 代表挨拶 (msg) --------------------------------- */
.msg__h {
  margin: 0 0 clamp(20px, 2.6vw, 30px);
  font-size: clamp(17px, 1.75vw, 26px);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: .06em;
  color: var(--strong);
}
.msg p {
  margin: 0 0 1.5em;
  max-width: 38em;
  font-size: clamp(13.5px, 1.05vw, 15px);
  line-height: 2.15;
  color: var(--sub);
}
.msg p:last-of-type { margin-bottom: 0; }
.sign {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: clamp(26px, 3.4vw, 40px) 0 0;
  padding-top: clamp(18px, 2.2vw, 26px);
  border-top: 1px solid var(--hair);
}
.sign span {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--faint);
  font-family: "Barlow", sans-serif;
}
.sign b {
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--strong);
}

/* --- 03 七信条 (creed) --------------------------------- */
.creed {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.creed li {
  display: grid;
  align-items: start;
  grid-template-columns: clamp(44px, 5.4vw, 68px) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 28px);
  padding: clamp(20px, 2.4vw, 30px) 0;
  border-bottom: 1px solid var(--hair);
}
.creed b {
  font-family: "Barlow", sans-serif;
  font-weight: 400;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.4;
  letter-spacing: .08em;
  color: #B6C0CE;
  font-variant-numeric: tabular-nums;
}
.creed h3 {
  margin: 0 0 clamp(6px, .9vw, 10px);
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .1em;
  color: var(--strong);
}
.creed__say {
  margin: 0 0 clamp(8px, 1.1vw, 13px) !important;
  font-family: var(--brush);
  font-size: clamp(15px, 1.45vw, 20px);
  line-height: 1.6;
  letter-spacing: .05em;
  color: var(--mid);
}
.creed p {
  margin: 0;
  font-size: clamp(13.5px, 1.05vw, 15px);
  line-height: 1.95;
  color: var(--sub);
}
@media (max-width: 560px) {
  .creed li { grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; }
  .creed b { font-size: 15px; }
}

.note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: clamp(18px, 2.2vw, 26px);
  padding: 8px 14px;
  border: 1px dashed #C6D0DE;
  border-radius: 3px;
  font-family: "Barlow", sans-serif;
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--faint);
}
.note::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #C6D0DE;
}

/* --- 04 会社概要 (tbl) --------------------------------- */
.tbl { margin: 0; }
.tbl__row {
  display: grid;
  grid-template-columns: clamp(130px, 16vw, 200px) minmax(0, 1fr);
  border-bottom: 1px solid var(--hair);
}
.tbl dt, .tbl dd {
  margin: 0;
  padding: clamp(14px, 1.7vw, 20px) 0;
  font-size: clamp(13.5px, 1.05vw, 15px);
  line-height: 1.95;
}
.tbl dt {
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--strong);
}
.tbl dd {
  color: var(--sub);
}
@media (max-width: 640px) {
  .tbl__row { grid-template-columns: 1fr; padding-block: clamp(12px, 3vw, 16px); }
  .tbl dt { padding-bottom: 2px; font-size: 12.5px; color: var(--faint); letter-spacing: .1em; }
  .tbl dd { padding-top: 0; color: var(--ink); }
}

/* --- 05 沿革 (hist) ----------------------------------- */
.hist { margin: 0; padding: 0; list-style: none; }
.hist li {
  position: relative;
  display: grid;
  grid-template-columns: clamp(96px, 12vw, 152px) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 28px);
  padding: 0 0 clamp(22px, 3vw, 34px) clamp(24px, 2.6vw, 34px);
}
.hist li:last-child { padding-bottom: 0; }
.hist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #C0CAD8;
}
.hist li:first-child::before {
  background: var(--blue);
  border-color: var(--blue);
}
.hist li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 22px;
  bottom: -2px;
  width: 1px;
  background: var(--line);
}
.hist time {
  font-family: "Barlow", sans-serif;
  font-weight: 500;
  font-size: clamp(13px, 1.15vw, 16px);
  letter-spacing: .09em;
  color: var(--strong);
  font-variant-numeric: tabular-nums;
}
.hist p {
  margin: 0;
  font-size: clamp(13px, 1.02vw, 14.5px);
  line-height: 1.95;
  color: var(--sub);
}
@media (max-width: 560px) {
  .hist li { grid-template-columns: 1fr; gap: 4px; }
}

/* --- 06 事業所案内 (offs-list / リスト風カード) --------- */
.offs-wrap {
  margin: 0;
}
.offs-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 18px);
}
.off-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2.2vw, 32px);
  padding: clamp(16px, 2vw, 22px) clamp(20px, 2.5vw, 30px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color .28s ease, box-shadow .28s ease, transform .28s ease;
}
.off-card:hover {
  border-color: #B9CEE8;
  box-shadow: 0 6px 22px rgba(12, 27, 49, .06);
  transform: translateY(-2px);
}
.off-card__main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.off-card__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.off-card__no {
  font-family: "Barlow", sans-serif;
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.off-card__name {
  margin: 0;
  font-size: clamp(16px, 1.45vw, 19px);
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--strong);
  line-height: 1.35;
}
.off-card__pref {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: #EEF3FA;
  color: var(--blue);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
}
.off-card__body {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2.2vw, 28px);
  flex-wrap: wrap;
}
.off-card__addr {
  margin: 0;
  font-style: normal;
  font-size: clamp(12.5px, 1vw, 13.5px);
  line-height: 1.7;
  color: var(--sub);
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.off-card__zip {
  font-family: "Barlow", sans-serif;
  color: var(--faint);
  font-size: 12px;
}
.off-card__street {
  letter-spacing: .02em;
}
.off-card__nums {
  display: inline-flex;
  align-items: baseline;
  gap: clamp(12px, 1.8vw, 24px);
  flex-wrap: wrap;
}
.off-card__tel {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  text-decoration: none;
  font-family: "Barlow", sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 1.2vw, 16.5px);
  letter-spacing: .03em;
  font-variant-numeric: tabular-nums;
  color: var(--strong);
  transition: color .22s ease;
  white-space: nowrap;
}
.off-card__tel-icon {
  font-style: normal;
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--faint);
  transition: color .22s ease;
}
.off-card__tel:hover,
.off-card__tel:hover .off-card__tel-icon {
  color: var(--blue);
}
.off-card__fax {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-family: "Barlow", sans-serif;
  font-weight: 400;
  font-size: clamp(13px, 1.1vw, 15px);
  letter-spacing: .03em;
  font-variant-numeric: tabular-nums;
  color: var(--sub);
  white-space: nowrap;
}
.off-card__fax-icon {
  font-style: normal;
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--faint);
}
.off-card__side {
  flex-shrink: 0;
}
.off-card__map {
  white-space: nowrap;
}

/* 一覧への誘導ボタン */
.offs__more {
  display: flex;
  justify-content: flex-start;
  margin-top: clamp(22px, 3vw, 36px);
}
.offs__more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 26px;
  background: linear-gradient(118deg, var(--navy) 0%, #153258 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: clamp(13px, 1.05vw, 14.5px);
  letter-spacing: .08em;
  transition: transform .28s ease, box-shadow .28s ease, background-color .28s ease;
  box-shadow: 0 4px 16px rgba(12, 27, 49, .08);
}
.offs__more-btn:hover {
  background: linear-gradient(118deg, #0e223d 0%, #1a3e6c 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(12, 27, 49, .16);
}
.offs__more-arrow {
  width: 16px;
  height: 16px;
  transition: transform .28s ease;
  flex-shrink: 0;
}
.offs__more-btn:hover .offs__more-arrow {
  transform: translateX(4px);
}

/* モバイル対応 (max-width: 768px) */
@media (max-width: 768px) {
  .off-card {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px 20px;
  }
  .off-card__body {
    flex-direction: column;
    gap: 6px;
  }
  .off-card__nums {
    gap: 6px 16px;
  }
  .off-card__side {
    width: 100%;
    padding-top: 8px;
    border-top: 1px dashed var(--hair);
  }
  .off-card__map {
    width: 100%;
    justify-content: center;
    height: 38px;
  }
  .offs__more {
    justify-content: stretch;
  }
  .offs__more-btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- 従来の2カラム旧スタイル（互換保持） ---------------- */
.offs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
.off {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(20px, 2.6vw, 34px);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.off:hover {
  border-color: #C6D3E4;
  box-shadow: 0 8px 26px rgba(12, 27, 49, .06);
}
.off__t {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 clamp(14px, 1.8vw, 20px);
  padding-bottom: clamp(12px, 1.5vw, 18px);
  border-bottom: 1px solid var(--hair);
}
.off__t b {
  font-family: "Barlow", sans-serif;
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--faint);
}
.off__t span {
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 500;
  letter-spacing: .07em;
  color: var(--strong);
}
.off address {
  margin: 0 0 clamp(14px, 1.8vw, 20px);
  font-style: normal;
  font-size: clamp(12.5px, 1vw, 14px);
  line-height: 1.95;
  color: var(--sub);
}
.tel {
  display: inline-flex;
  align-items: baseline;
  gap: 11px;
  margin-bottom: clamp(16px, 2vw, 22px);
  font-family: "Barlow", sans-serif;
  font-weight: 300;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  color: var(--strong);
  text-decoration: none;
  transition: color .28s ease;
}
.tel i {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--faint);
  transition: color .28s ease;
}
.tel:hover, .tel:hover i {
  color: var(--blue);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding-inline: 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: clamp(11.5px, .95vw, 13px);
  letter-spacing: .05em;
  color: var(--sub);
  transition: border-color .28s ease, color .28s ease, background-color .28s ease;
}
.pill::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .65;
  transition: transform .28s var(--ease);
}
.pill:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #F2F7FE;
}
.pill:hover::after {
  transform: translateX(2px);
}
