/* =========================================================
   J4C 会社情報（company.html）専用スタイル
   見出しは明朝体（Shippori Mincho／Cormorant Garamond）、本文はゴシック体
   ========================================================= */

.cp {
  --f-serif: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --f-serif-en: "Cormorant Garamond", "Shippori Mincho", serif;
  --f-script: "Caveat", "Yomogi", cursive;
  --cp-line: #ebe7de;
  overflow-x: clip;
}
.cp-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

/* =========================================================
   ページ見出し
   ========================================================= */
.cp-head {
  position: relative;
  background: #f7f6f2;
}
/* 背景のやわらかい曲線 */
.cp-head-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  animation: wave-draw 1.8s var(--ease) .2s both;   /* common.css のアニメーション */
}
.cp-head-wave path {
  fill: none;
  stroke: rgba(236, 224, 200, .55);
  stroke-width: 70px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.cp-head-inner {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 26px 40px 0;
}
.cp-breadcrumb {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-sub);
}
.cp-breadcrumb li + li::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin: 0 14px 2px 10px;
  border-top: 1px solid #aaa;
  border-right: 1px solid #aaa;
  transform: rotate(45deg);
}
.cp-breadcrumb a:hover { color: var(--c-orange); }

/* 右上のオレンジの筆記体 */
.cp-hand {
  position: absolute;
  top: 56px;
  right: 60px;
  font-family: var(--f-script);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.2;
  color: #f4a142;
  transform: rotate(-10deg);
  animation: fade-up 1s var(--ease) 1s both;
}
.cp-hand span { display: inline-block; padding-left: 1.2em; }

.cp-head-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 0 40px;
  margin-top: 24px;
}
.cp-head-copy { position: relative; z-index: 1; padding-bottom: 40px; }
.cp-head-en {
  font-family: var(--f-serif-en);
  font-size: clamp(56px, 6vw, 90px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  animation: fade-up 1s var(--ease) .15s both;
}
.cp-head-ja {
  margin-top: 10px;
  font-family: var(--f-serif);
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 500;
  letter-spacing: 0.12em;
  animation: fade-up 1s var(--ease) .3s both;
}
.cp-head-line {
  display: block;
  width: 40px;
  height: 2px;
  margin: 34px 0 30px;
  background: var(--c-orange);
  transform-origin: left center;
  animation: line-grow .8s var(--ease) .6s both;
}
@keyframes line-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.cp-head-lead {
  font-family: var(--f-serif);
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.16em;
  animation: fade-up 1s var(--ease) .75s both;
}
.cp-head-photo {
  align-self: end;
  margin-top: 150px;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 11 / 4;
  margin-bottom: -10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
  animation: photo-open 1.3s var(--ease) .35s both;
}
.cp-head-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
/* 写真が左から右へ開くように現れる */
@keyframes photo-open {
  from { clip-path: inset(0 100% 0 0 round 8px); }
  to   { clip-path: inset(0 0 0 0 round 8px); }
}

/* =========================================================
   セクション共通
   ========================================================= */
.cp-section { padding-top: 96px; }
.cp-section:last-child { padding-bottom: 110px; }
.cp-title {
  font-family: var(--f-serif);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
}
.cp-title span {
  display: block;
  margin-top: 4px;
  font-family: var(--f-serif-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #f19a3e;
}
.cp-lead {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: var(--c-sub);
}

/* =========================================================
   会社概要
   ========================================================= */
.cp-overview {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr minmax(240px, 300px);
  gap: 40px;
  align-items: start;
}
.cp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.cp-table th,
.cp-table td {
  padding: 18px 22px;
  border-top: 1px solid var(--cp-line);
  border-bottom: 1px solid var(--cp-line);
  text-align: left;
  vertical-align: top;
  line-height: 1.85;
}
.cp-table th {
  width: 150px;
  background: #faf8f4;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.cp-table td { letter-spacing: 0.04em; color: #333; }
.cp-table td a { font-weight: 500; }
.cp-table td a:hover { color: var(--c-orange); }
.cp-note { display: block; font-size: 13px; color: var(--c-sub); }
.cp-place {
  display: inline-block;
  min-width: 6.2em;
  margin-right: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #c65f08;
  letter-spacing: 0.04em;
}
.cp-at { margin-left: 4px; font-size: 13px; color: var(--c-sub); }
/* 電話番号：事業所ごとに1行 */
.cp-office-tel { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 16px; }
.cp-office-name { min-width: 15em; font-size: 14px; color: #444; }
.cp-office-tel a { font-weight: 500; }
@media (max-width: 960px) { .cp-office-name { min-width: 0; width: 100%; font-size: 13px; color: var(--c-sub); } .cp-office-tel + .cp-office-tel { margin-top: 6px; } }

.cp-list { margin: 0; padding: 0; list-style: none; }
.cp-list li { position: relative; padding-left: 18px; }
.cp-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .8em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #f5a33c;
}

.cp-overview-photo { margin: 0; }
.cp-overview-photo img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 4px;
}
.cp-overview-photo figcaption {
  margin-top: 18px;
  font-family: var(--f-serif-en);
  font-style: italic;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: #f19a3e;
}

/* =========================================================
   アクセス（拠点ごとの縦長カードを横に並べる）
   ========================================================= */
.cp-access-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.cp-access {
  display: flex;
  flex-direction: column;
  padding: 30px 30px 28px;
  border: 1px solid var(--cp-line);
  border-radius: 10px;
  background: #fff;
}
.cp-access-name {
  position: relative;
  padding-bottom: 12px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.cp-access-name::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 26px; height: 2px;
  background: var(--c-orange);
}
/* その拠点にある事業所（小さなラベル） */
.cp-access-offices {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cp-access-offices li {
  padding: 3px 12px;
  border-radius: 999px;
  background: #fff3e3;
  color: #c65f08;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.cp-access-address {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.04em;
}
.cp-access-tel {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.cp-access-tel a {
  margin-left: 6px;
  font-family: var(--f-en);
  font-size: 18px;
  font-weight: 600;
}
.cp-access-tel a:hover { color: var(--c-orange); }
.cp-access-tel span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--c-sub);
}

.cp-access-map {
  position: relative;
  margin-top: 20px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #eeece7;
}
.cp-access-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cp-map-btn {
  position: absolute;
  right: 10px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #2b2b2b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background-color .25s;
}
.cp-map-btn:hover { background: var(--c-orange); }
/* 右上向きの矢印 */
.cp-map-btn-icon { position: relative; width: 9px; height: 9px; }
.cp-map-btn-icon::before {
  content: "";
  position: absolute;
  right: 0; top: 0;
  width: 7px; height: 7px;
  border-top: 1.4px solid #fff;
  border-right: 1.4px solid #fff;
}
.cp-map-btn-icon::after {
  content: "";
  position: absolute;
  right: 0; top: 0;
  width: 1.4px; height: 12px;
  background: #fff;
  transform-origin: top right;
  transform: rotate(45deg);
}
.cp-access-photo {
  margin-top: 12px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
}
.cp-access-photo img { width: 100%; height: 100%; object-fit: cover; }
.cp-access-text {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--c-sub);
}

/* =========================================================
   グループ
   ========================================================= */
.cp-groups {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.cp-group {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 24px 24px 22px;
  border: 1px solid var(--cp-line);
  border-radius: 8px;
  background: #fff;
  transition: border-color .3s, box-shadow .3s var(--ease);
}
.cp-group:hover { border-color: #f7cf9c; box-shadow: 0 10px 26px rgba(0, 0, 0, .05); }
.cp-group-icon { flex-shrink: 0; width: 52px; height: 52px; }
.cp-group-icon svg { width: 100%; height: 100%; }
.cp-group-text { flex: 1; min-width: 0; }
.cp-group-name {
  display: block;
  font-family: var(--f-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.cp-group-desc {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--c-sub);
}
.cp-group-arrow {
  position: relative;
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--cp-line);
  transition: background-color .3s, border-color .3s;
}
.cp-group-arrow::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 11px; height: 1.4px;
  background: var(--c-text);
  transform: translate(-50%, -50%);
}
.cp-group-arrow::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 6px; height: 6px;
  border-top: 1.4px solid var(--c-text);
  border-right: 1.4px solid var(--c-text);
  transform: translate(-10%, -50%) rotate(45deg);
}
.cp-group:hover .cp-group-arrow { background: var(--c-orange); border-color: var(--c-orange); }
.cp-group:hover .cp-group-arrow::before { background: #fff; }
.cp-group:hover .cp-group-arrow::after { border-color: #fff; }

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 960px) {
  .cp-inner, .cp-head-inner { padding-left: 22px; padding-right: 22px; }
  .cp-hand { position: static; margin: 14px 4px 0 auto; width: max-content; font-size: 20px; }
  .cp-head-grid { grid-template-columns: 1fr; margin-top: 4px; }
  .cp-head-copy { padding-bottom: 28px; }
  .cp-head-line { margin: 24px 0 20px; }
  .cp-head-photo { margin: 0 0 -10px; aspect-ratio: 16 / 9; }
  .cp-section { padding-top: 72px; }
  .cp-overview { grid-template-columns: 1fr; }
  .cp-overview-photo { display: grid; grid-template-columns: 40% 1fr; gap: 20px; align-items: end; }
  .cp-table th { width: 92px; padding: 16px 12px; }
  .cp-table td { padding: 16px 14px; font-size: 14px; }
  .cp-access-grid { grid-template-columns: 1fr; }
  .cp-access { padding: 22px 20px; }
  .cp-place { display: block; margin: 0; }
  .cp-groups { grid-template-columns: 1fr; }
  .cp-group-name { font-size: 17px; }
  .cp-lead br { display: none; }
}

/* 動きを減らす設定のときはアニメーションなしで表示 */
@media (prefers-reduced-motion: reduce) {
  .cp-head-wave, .cp-hand, .cp-head-en, .cp-head-ja,
  .cp-head-line, .cp-head-lead, .cp-head-photo { animation: none; }
}
