/* ==========================================================================
   Components: page sections, spacing, headings, buttons, columns, cards, tables
   ========================================================================== */

/* ---------- Layout ---------- */

.sec { padding-bottom: 40px; }
.sec__in { max-width: 1080px; margin: 0 auto; }
.sec--wide .sec__in { max-width: 1315px; }
.sec--narrow .sec__in { max-width: 800px; }

.sec--flush { padding-bottom: 0; }
.band--gray { background: var(--c-gray); }

/* Vertical gaps between sections (desktop / <=768px): xl 180/100, l 120/100, m 100/60, s 60/40 */
.gap--xl { height: 180px; }
.gap--l  { height: 120px; }
.gap--m  { height: 100px; }
.gap--s  { height: 60px; }

/* Two equal columns; stacked and centered on mobile */
.split { display: flex; align-items: flex-start; }
.split__col { width: 50%; }
.split__col--text { padding-left: 60px; }
.split--pair .split__col:first-child { padding-right: 40px; }
.split--pair .split__col:last-child  { padding-left: 40px; }

/* ---------- Headings ---------- */

.ttl { text-align: left; }
.ttl__en {
  display: block;
  padding: 0 0 15px;
  color: #000;
  font: 400 48px var(--ff-serif);
}
.ttl__ja {
  display: block;
  padding: 2px;
  color: #000;
  font: 700 16px var(--ff-arial);
}
.ttl--center { text-align: center; }

/* Title used as the lead heading of a block (bold sans) */
.lead-title { color: #000; font: 700 36px var(--ff-arial); padding-bottom: 15px; }
.split__col--text .prose { margin: 24px 0 40px; }
/* Page-level headings (inside .ttl) use a tighter line box than split-column titles */
.ttl > .lead-title { line-height: 45px; }

/* Card title: JA name + EN caption */
.ttl--card .ttl__en { padding-bottom: 5px; font: 400 24px var(--ff-arial); }
.ttl--card .ttl__ja { font-size: 12px; }

/* ---------- Image ---------- */

.pic { display: block; max-width: 100%; height: auto; border-radius: 15px; }

/* ---------- Pill button ---------- */

.btn-wrap { text-align: center; }
.btn {
  display: inline-block;
  max-width: 100%;
  padding: 14px 50px;
  border: 2px solid var(--c-accent);
  border-radius: 32px;
  background: var(--c-accent);
  color: #fff;
  font: 700 16px var(--ff-arial);
  text-align: center;
  transition: background-color .3s, border-color .3s, color .3s;
}
.btn:hover { background: var(--c-accent-hover); border-color: var(--c-accent-hover); }
.btn--wide { padding-left: 60px; padding-right: 60px; }

/* ---------- Business cards ---------- */

.cards-col { width: 98.38%; }
.cards { display: flex; max-width: 1280px; margin: 0 auto; }
.card { width: 33.3333%; padding: 30px; margin-bottom: 20px; }
.card { display: block; }
.card__img { overflow: hidden; display: block; }
.card__img img { width: 100%; height: auto; transition: transform .3s ease-out; }
.card__body {
  display: block;
  height: 120px;
  overflow: hidden;
  background: #fff;
  text-align: center;
  font-family: var(--ff-arial);
}
.card__ja { display: block; padding: 20px 5px 5px; color: #000; font-size: 18px; transition: color .3s ease-out; }
.card__en { display: block; color: #000; font-size: 12px; transition: color .3s ease-out; }
.card:hover .card__img img { transform: scale(1.06); }
.card:hover .card__ja { color: #828282; }
.card:hover .card__en { color: #999; }

/* ---------- Text ---------- */

.prose { color: #000; line-height: 28px; }

/* ---------- Tables (company profile / affiliate info) ---------- */

/* Keep full-width punctuation at full width (matches how the cells wrapped on the previous site). */
.profile td, .info td { text-spacing-trim: space-all; }

.profile { width: 100%; border-collapse: collapse; color: #000; font: 400 14px/24px var(--ff-arial); }
.profile th, .profile td {
  padding: 30px 0;
  border-top: 1px solid #aaa;
  border-bottom: 1px solid #aaa;
  text-align: left;
  font-weight: 400;
  vertical-align: middle;
}
.profile th { width: 25%; }

.info { width: 100%; border-collapse: collapse; color: #000; line-height: 24px; }
.info th, .info td { padding: 5px 0; border: 1px solid #fff; text-align: left; font-weight: 400; }
.info th { width: 25%; }

/* ---------- Mobile (<= 992px) ---------- */

@media (max-width: 992px) {
  .sec { padding-left: 30px; padding-right: 30px; }
  .sec__in, .sec--wide .sec__in, .sec--narrow .sec__in { max-width: 708px; }

  .split { display: block; }
  .split__col, .split--pair .split__col:first-child, .split--pair .split__col:last-child {
    width: auto; padding: 0;
  }
  .split__col--text { padding: 40px 0 0; text-align: center; }
  .split__col--text .prose { text-align: left; }
  .split__col--text .lead-title { text-align: center; }
  .split .pic { margin: 0 auto; }
  .split--pair .split__col + .split__col { margin-top: 60px; }

  .cards-col { width: auto; }
  .cards { display: block; }
  .card { width: auto; margin-bottom: 20px; padding: 30px; }
  .card__body { height: 100px; }
  .card__ja { color: #828282; }
  .card__en { color: #999; }
}

@media (max-width: 768px) {
  .btn, .btn--wide { padding-left: 40px; padding-right: 40px; }
  .lead-title { font-size: 24px; }
  .ttl > .lead-title { line-height: 28px; }
  .gap--xl { height: 100px; }
  .gap--l  { height: 100px; }
  .gap--m  { height: 60px; }
  .gap--s  { height: 40px; }
  .ttl__en { font-size: 30px; }
  .ttl__ja { font-size: 14px; }
}

/* Page heading set in Japanese (sub pages without an English title) */
.ttl__en--ja { font-family: var(--ff-arial); font-weight: 700; font-size: 36px; }

/* ---------- Breadcrumb bar (sub pages) ---------- */

.crumb { background: #8a8380; padding: 20px 0; }
.crumb__in { max-width: 1080px; margin: 0 auto; color: #bab5b3; font: 400 14px/20px "Times New Roman", Times, serif; }
.crumb a { margin-right: 10px; color: #fff; }
.crumb__sep, .crumb__here { margin-right: 10px; }

/* ---------- Banner image (1080x400) ---------- */

.banner { display: block; width: 100%; height: auto; border-radius: 15px; }

/* ---------- Sub heading: JA title with short black rule and full-width grey rule ---------- */

.subttl { margin-bottom: 30px; padding-bottom: 4px; border-bottom: 1px solid #dbdbdb; }
.subttl h3 { padding-bottom: 15px; color: #000; font: 400 20px var(--ff-arial); }
.subttl h3::after { content: ""; display: block; width: 40px; margin-top: 5px; border-bottom: 1px solid #000; }

/* ---------- Thin divider ---------- */

.rule { margin: 18px 0 0; border: 0; border-top: 1px solid #ccc; }

/* ---------- Plain text list (consultant) ---------- */

.plain-list { color: #000; line-height: 30px; }

/* ---------- Product grid: three columns, two cards each ---------- */

.products { display: flex; max-width: 1140px; margin: 0 auto; }
.products__col { width: 33.3333%; padding-bottom: 60px; }
.products .card { margin-bottom: 0; width: auto; }
.sec--products .sec__in { max-width: 1140px; }

@media (max-width: 992px) {
  .products { display: block; }
  .products__col { width: auto; }
  .sec--products .sec__in { max-width: 708px; }
}


/* Fixed-height gap that does not shrink on small screens */
.gap--100 { height: 100px; }
@media (max-width: 768px) { .gap--tight { height: 80px; } }

/* Text-style pages (privacy, contact...) use a 1000px column */
.sec--doc .sec__in { max-width: 1000px; }
@media (max-width: 992px) { .sec--doc .sec__in { max-width: 708px; } }
.doc strong { font-weight: 700; }
.doc a { color: var(--c-hover); text-decoration: underline; }

.btn--back { padding-left: 68px; padding-right: 68px; }
@media (max-width: 768px) { .sec--head { padding-bottom: 20px; } }
