/* Ramen Factory Kyoto - For Travel Professionals (EN / JA 共通)
   page-for-travel-professionals.php / page-for-travel-professionals-ja.php から読み込み。
   すべて .rft 配下にスコープしてあり、他ページには影響しません。

   ルール
   色    : base #fff / main #1c1c1c / accent #8d0000 の3色のみ（面積 70 / 20 / 10）。罫線・補助文字は透明度違い。
   書体  : JA = 見出し 明朝(Noto Serif JP) / 本文 ゴシック(Noto Sans JP)。EN = Roboto 1書体。
   太さ  : 見出し 700 / 本文 400 の2つのみ。
   余白  : 8 / 16 / 32px。大きな余白は 32px の倍数（calc(var(--s3) * n)）。 */

.rft {
  --base: #fff;
  --main: #1c1c1c;
  --accent: #8d0000;
  --line: rgba(28, 28, 28, 0.2);
  --muted: rgba(28, 28, 28, 0.72);
  --s1: 8px;
  --s2: 16px;
  --s3: 32px;
  --gutter: var(--s3);
  --hdr: 102px;
  --head: "Noto Serif JP", serif;
  --body: "Noto Sans JP", sans-serif;
  --fs-s: 14px;
  --fs-b: 16px;
  --fs-4: 32px;
  --fs-3: 24px;
  --fs-2: 32px;
  --fs-1: 40px;
  padding-top: var(--hdr);
  background: var(--base);
  color: var(--main);
  font-family: var(--body);
  font-size: var(--fs-b);
  font-weight: 400;
  line-height: 1.8;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.rft--en {
  --head: "Roboto", "Noto Sans JP", sans-serif;
  --body: "Roboto", "Noto Sans JP", sans-serif;
}
@media (min-width: 768px) {
  .rft {
    --gutter: calc(var(--s3) * 2);
    --fs-2: 48px;
    --fs-1: 48px;
  }
}
@media (min-width: 1280px) {
  .rft {
    --gutter: calc(var(--s3) * 3);
    --fs-1: 56px;
  }
}
@media (min-width: 1600px) {
  .rft {
    --fs-1: 64px;
  }
}
@media (max-width: 767px) {
  .rft {
    --hdr: 66px;
  }
}

.rft *,
.rft *::before,
.rft *::after {
  box-sizing: border-box;
}
.rft :where(img) {
  display: block;
  max-width: 100%;
  height: auto;
}
.rft :where(a) {
  color: inherit;
  font-family: inherit;
}
.rft :where(h1, h2, h3, p, ul, ol, dl, dd, figure) {
  margin: 0;
  padding: 0;
}
.rft :where(ul, ol) {
  list-style: none;
}
.rft [id] {
  scroll-margin-top: calc(var(--hdr) + var(--s3));
}
.rft a:focus-visible,
.rft summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.rft-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* layout */
.rft-in {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.rft-sec {
  padding-top: calc(var(--s3) * 2);
  padding-bottom: calc(var(--s3) * 2);
}
@media (min-width: 768px) {
  .rft-sec {
    padding-top: calc(var(--s3) * 4);
    padding-bottom: calc(var(--s3) * 4);
  }
}
.rft-sec--main {
  --line: rgba(255, 255, 255, 0.24);
  --muted: rgba(255, 255, 255, 0.72);
  background: var(--main);
  color: var(--base);
}
.rft-sec--accent {
  --line: rgba(255, 255, 255, 0.32);
  --muted: rgba(255, 255, 255, 0.82);
  background: var(--accent);
  color: var(--base);
}

/* type */
.rft-eyebrow {
  color: var(--accent);
  font-size: var(--fs-s);
  letter-spacing: 0.16em;
}
.rft--en .rft-eyebrow {
  text-transform: uppercase;
}
.rft--ja .rft-eyebrow {
  letter-spacing: 0.08em;
}
.rft-sec--main .rft-eyebrow,
.rft-sec--accent .rft-eyebrow {
  color: var(--muted);
}
.rft-head {
  margin-bottom: calc(var(--s3) * 2);
}
.rft-head > * + * {
  margin-top: var(--s2);
}
.rft-h2 {
  font-family: var(--head);
  font-size: var(--fs-2);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}
.rft-sub {
  color: var(--muted);
}
.rft-note {
  margin-top: var(--s3);
  color: var(--muted);
  font-size: var(--fs-s);
}
.rft-tbd {
  padding: 0 var(--s1);
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: var(--fs-s);
  font-style: normal;
}

/* buttons */
.rft-btn {
  display: inline-block;
  padding: var(--s2) var(--s3);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--base);
  font-family: var(--body);
  font-size: var(--fs-b);
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  transition: 0.3s;
}
.rft-btn:hover {
  opacity: 0.8;
}
.rft-btn--line {
  background: transparent;
  border-color: var(--main);
  color: var(--main);
}
.rft-btn--invert {
  background: var(--base);
  border-color: var(--base);
  color: var(--accent);
}
.rft-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

/* hero: text and photo side by side, never overlapping */
.rft-hero {
  display: grid;
  grid-template-columns: 1fr;
}
.rft-hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--s3) * 2);
  padding-bottom: calc(var(--s3) * 2);
}
.rft-hero__text > * + * {
  margin-top: var(--s3);
}
.rft-hero__text > .rft-eyebrow + h1 {
  margin-top: var(--s2);
}
.rft-hero h1 {
  font-family: var(--head);
  font-size: var(--fs-1);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}
.rft-hero__photo {
  order: -1;
}
.rft-hero__photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 60% 40%;
}
@media (min-width: 768px) {
  .rft-hero {
    grid-template-columns: 1fr 1fr;
    min-height: clamp(560px, calc(100vh - var(--hdr)), 880px);
  }
  .rft-hero__text {
    padding-right: var(--s3);
  }
  .rft-hero__photo {
    order: 0;
  }
  .rft-hero__photo img {
    aspect-ratio: auto;
  }
}
.rft-lang {
  display: flex;
  gap: var(--s2);
  font-size: var(--fs-s);
  letter-spacing: 0.08em;
}
.rft-lang a,
.rft-lang span {
  padding-bottom: var(--s1);
  border-bottom: 1px solid transparent;
  text-decoration: none;
}
.rft-lang a {
  color: var(--muted);
}
.rft-lang a:hover {
  color: var(--accent);
}
.rft-lang span {
  border-bottom-color: var(--main);
}

/* section nav */
.rft-nav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rft-nav ul {
  display: flex;
  gap: var(--s3);
  overflow-x: auto;
}
.rft-nav li {
  flex: none;
}
.rft-nav a {
  display: block;
  padding: var(--s2) 0;
  font-size: var(--fs-s);
  text-decoration: none;
  white-space: nowrap;
}
.rft-nav a:hover {
  color: var(--accent);
}

/* proof: Tripadvisor award, rating and scale */
.rft-proof {
  padding-bottom: 0;
}
.rft-proof__badge {
  display: block;
  margin-bottom: calc(var(--s3) * 2);
}
.rft-proof__badge img {
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 500;
  object-fit: cover;
}
.rft-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
  margin-bottom: calc(var(--s3) * 2);
}
.rft-stats li {
  padding-top: var(--s2);
  border-top: 1px solid var(--main);
}
.rft-stats b {
  display: block;
  font-family: var(--head);
  font-size: var(--fs-2);
  font-weight: 700;
  line-height: 1.25;
}
.rft-stats span {
  display: block;
  margin-top: var(--s1);
  color: var(--muted);
  font-size: var(--fs-s);
  line-height: 1.6;
}
.rft-stats .rft-dots {
  display: flex;
  gap: var(--s1);
  margin-top: var(--s1);
}
.rft-dots i {
  width: var(--s2);
  height: var(--s2);
  border-radius: 50%;
  background: var(--accent);
}
@media (min-width: 768px) {
  .rft-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* programmes: type only, no photos */
.rft-prog {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--s3) * 2) var(--s3);
}
.rft-prog__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.rft-prog__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: var(--s3);
  object-fit: cover;
}
.rft-prog__no {
  color: var(--accent);
  font-family: var(--head);
  font-size: var(--fs-3);
  font-weight: 700;
  line-height: 1;
}
.rft-prog h3 {
  margin: var(--s2) 0 var(--s3);
  font-family: var(--head);
  font-size: var(--fs-4);
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}
.rft-prog ul {
  align-self: stretch;
  border-top: 1px solid var(--main);
}
.rft-prog li {
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--line);
}
.rft-prog__more {
  margin-top: var(--s3);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.rft-prog__more:hover {
  color: var(--accent);
}
@media (min-width: 768px) {
  .rft-prog {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1280px) {
  .rft-prog {
    grid-template-columns: repeat(4, 1fr);
  }
  .rft-prog__img {
    aspect-ratio: 4 / 5;
  }
}

/* hospitality */
.rft-hosp {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
}
.rft-hosp li {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.rft-hosp img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.rft-hosp p {
  padding-top: var(--s2);
  border-top: 1px solid var(--main);
  font-family: var(--head);
  font-size: var(--fs-3);
  font-weight: 700;
  line-height: 1.5;
}
@media (min-width: 768px) {
  .rft-hosp {
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--s3) * 2) var(--s3);
  }
}

/* tables */
.rft-tablewrap {
  overflow-x: auto;
}
.rft-rate,
.rft-cancel {
  width: 100%;
  border-collapse: collapse;
}
.rft-rate thead th,
.rft-cancel thead th {
  padding: 0 var(--s3) var(--s2) 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-s);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-align: left;
}
.rft--en .rft-rate thead th,
.rft--en .rft-cancel thead th {
  text-transform: uppercase;
}
.rft--ja .rft-rate thead th,
.rft--ja .rft-cancel thead th {
  letter-spacing: 0.06em;
}
.rft-rate tbody th,
.rft-rate td,
.rft-cancel tbody th,
.rft-cancel td {
  padding: var(--s2) var(--s3) var(--s2) 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  text-align: left;
  vertical-align: baseline;
}
.rft-rate .num {
  font-family: var(--head);
  font-size: var(--fs-3);
  font-weight: 700;
  white-space: nowrap;
}
/* rates table on the dark band: accent-filled header row, white body */
.rft-sec--main .rft-rate thead th {
  padding: var(--s2);
  border-bottom: 0;
  background: var(--accent);
  color: var(--base);
  font-weight: 700;
}
.rft-sec--main .rft-rate tbody {
  --line: rgba(28, 28, 28, 0.2);
}
.rft-sec--main .rft-rate tbody th,
.rft-sec--main .rft-rate td {
  padding-left: var(--s2);
  background: var(--base);
  color: var(--main);
}
@media (max-width: 767px) {
  .rft-rate tbody th,
  .rft-rate td,
  .rft-cancel tbody th,
  .rft-cancel td {
    padding-right: var(--s2);
  }
  .rft-rate .num {
    font-size: var(--fs-b);
    white-space: normal;
  }
}

/* operations */
.rft-venues {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
  margin-bottom: calc(var(--s3) * 2);
}
.rft-venues img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.rft figcaption {
  margin-top: var(--s1);
  color: var(--muted);
  font-size: var(--fs-s);
}
.rft-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
}
.rft-info li {
  display: grid;
  grid-template-columns: var(--s3) 1fr;
  align-content: start;
  column-gap: var(--s2);
  padding-top: var(--s3);
  border-top: 1px solid var(--main);
}
.rft-info i {
  grid-row: 1 / span 2;
  color: var(--accent);
  font-size: var(--fs-3);
  line-height: 1.4;
}
.rft-info h3 {
  margin-bottom: var(--s1);
  color: var(--accent);
  font-family: var(--head);
  font-size: var(--fs-3);
  font-weight: 700;
  line-height: 1.4;
}
.rft-strip {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.rft-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
@media (min-width: 768px) {
  .rft-venues {
    grid-template-columns: 1fr 1fr;
  }
  .rft-info {
    grid-template-columns: 1fr 1fr;
    gap: var(--s3) calc(var(--s3) * 2);
  }
  .rft-strip {
    aspect-ratio: 7 / 2;
  }
}

/* booking terms: numbered steps joined by arrows */
.rft-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
  margin-bottom: calc(var(--s3) * 2);
  counter-reset: s;
}
.rft-steps li {
  position: relative;
  padding: var(--s3) var(--s2);
  border: 1px solid var(--line);
  counter-increment: s;
}
.rft-steps li::before {
  content: "0" counter(s);
  display: block;
  margin-bottom: var(--s2);
  color: var(--accent);
  font-family: var(--head);
  font-size: var(--fs-3);
  font-weight: 700;
  line-height: 1;
}
.rft-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: calc(var(--s3) / -2 - 5px);
  left: var(--s3);
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(135deg);
}
.rft-steps b {
  display: block;
  margin-bottom: var(--s1);
  font-family: var(--head);
  font-size: var(--fs-b);
  font-weight: 700;
  line-height: 1.5;
}
.rft-steps p {
  color: var(--muted);
}
@media (min-width: 768px) {
  .rft-steps li {
    display: grid;
    grid-template-columns: calc(var(--s3) * 3) 1fr;
    column-gap: var(--s2);
    align-items: start;
  }
  .rft-steps li::before {
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }
  .rft-steps b {
    grid-column: 2;
  }
  .rft-steps p {
    grid-column: 2;
  }
}
@media (min-width: 1280px) {
  .rft-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .rft-steps li {
    display: block;
  }
  .rft-steps li::before {
    margin-bottom: var(--s2);
  }
  .rft-steps li:not(:last-child)::after {
    top: 50%;
    right: calc(var(--s3) / -2 - 5px);
    bottom: auto;
    left: auto;
    transform: translateY(-50%) rotate(45deg);
  }
}

/* brochures */
.rft-bro {
  border-top: 1px solid var(--main);
}
.rft-bro li {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s1);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line);
}
.rft-bro__k {
  color: var(--accent);
  font-size: var(--fs-s);
  letter-spacing: 0.14em;
}
.rft--ja .rft-bro__k {
  letter-spacing: 0.06em;
}
.rft-bro a {
  font-family: var(--head);
  font-size: var(--fs-3);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.rft-bro a:hover {
  color: var(--accent);
}
@media (min-width: 768px) {
  .rft-bro li {
    grid-template-columns: calc(var(--s3) * 6) 1fr;
    gap: var(--s2);
    align-items: baseline;
  }
}

/* quote (accent) */
.rft-quote {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--s3) * 2);
}
@media (min-width: 768px) {
  .rft-quote {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .rft-quote > div:first-child {
    align-self: start;
    position: sticky;
    top: calc(var(--hdr) + var(--s3));
  }
}

/* quote form (Contact Form 7). white card on the accent band */
.rft-form {
  --line: rgba(28, 28, 28, 0.4);
  --muted: rgba(28, 28, 28, 0.72);
  padding: var(--s3);
  background: var(--base);
  color: var(--main);
}
.rft-form :where(.wpcf7-form-control-wrap) {
  display: block;
}
.rft-f > * + *,
.rft-f fieldset > * + * {
  margin-top: var(--s2);
}
.rft-f__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s2);
}
.rft-f label,
.rft-f legend {
  display: block;
  font-size: var(--fs-s);
  line-height: 1.5;
}
.rft-f fieldset {
  min-width: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  padding: 0;
  border: 0;
}
.rft-f legend {
  margin-bottom: 0;
  padding: 0;
}
.rft-f__req {
  color: var(--accent);
}
.rft-f input[type="text"],
.rft-f input[type="email"],
.rft-f input[type="tel"],
.rft-f input[type="number"],
.rft-f input[type="date"],
.rft-f select,
.rft-f textarea {
  display: block;
  width: 100%;
  margin-top: var(--s1);
  padding: var(--s1) var(--s2);
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--base);
  color: var(--main);
  font-family: var(--body);
  font-size: var(--fs-b);
  font-weight: 400;
  line-height: 1.5;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.rft-f select {
  padding-right: var(--s3);
  background-image: linear-gradient(45deg, transparent 50%, var(--main) 50%), linear-gradient(135deg, var(--main) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.rft-f textarea {
  min-height: calc(var(--s3) * 4);
  resize: vertical;
}
.rft-f input:focus,
.rft-f select:focus,
.rft-f textarea:focus {
  border-color: var(--accent);
  outline: 1px solid var(--accent);
  outline-offset: 0;
}
.rft-f .wpcf7-list-item {
  display: inline-block;
  margin: 0 var(--s3) var(--s1) 0;
}
.rft-f .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  font-size: var(--fs-b);
}
.rft-f input[type="checkbox"],
.rft-f input[type="radio"] {
  width: var(--s2);
  height: var(--s2);
  margin: 0;
  accent-color: var(--accent);
}
.rft-f input[type="submit"].rft-btn {
  display: inline-block;
  width: auto;
  margin-top: var(--s2);
  padding: var(--s2) var(--s3);
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: var(--base);
  font-family: var(--body);
  font-size: var(--fs-b);
  font-weight: 400;
  cursor: pointer;
}
.rft-f .wpcf7-not-valid-tip {
  margin-top: var(--s1);
  color: var(--accent);
  font-size: var(--fs-s);
}
.rft .rft-form .wpcf7-form .wpcf7-response-output {
  margin: var(--s2) 0 0;
  padding: var(--s1) var(--s2);
  border: 1px solid var(--accent);
  color: var(--main);
  font-size: var(--fs-s);
}
.rft .rft-form .wpcf7-form .wpcf7-response-output:empty {
  display: none;
}
@media (min-width: 768px) {
  .rft-f__row {
    grid-template-columns: 1fr 1fr;
  }
  .rft-f__row--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 767px) {
  .rft-form {
    padding: var(--s2);
  }
}

/* faq */
.rft-faq {
  border-top: 1px solid var(--main);
}
.rft-faq details {
  border-bottom: 1px solid var(--line);
}
.rft-faq summary {
  display: flex;
  justify-content: space-between;
  gap: var(--s2);
  padding: var(--s3) 0;
  font-family: var(--head);
  font-size: var(--fs-3);
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.rft-faq summary::-webkit-details-marker {
  display: none;
}
.rft-faq summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-family: var(--body);
  font-size: var(--fs-3);
  font-weight: 400;
}
.rft-faq details[open] summary::after {
  content: "\2212";
}
.rft-faq p {
  padding-bottom: var(--s3);
  color: var(--muted);
}
@media (min-width: 1024px) {
  .rft-faqwrap {
    display: grid;
    grid-template-columns: 8fr 4fr;
  }
}

.rft-foot {
  padding: var(--s3) var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-s);
}
