@charset "UTF-8";
/* ==========================================================
   単位換算ツール（page-otis-unit-converter.php）
   ========================================================== */
#page__unitConverter {
  --uc-blue: #0a51b5;
  --uc-blue-light: rgba(10, 81, 181, 0.6);
  --uc-paper: #f8fcff;
  --uc-gray: #707070;
  padding: 90px 0;
  color: #000;
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

@media screen and (min-width: 768px) {
  #page__unitConverter {
    width: 1280px;
  }
}

@media screen and (min-width: 1280px) {
  #page__unitConverter {
    width: auto;
  }
}

@media screen and (max-width: 767px) {
  #page__unitConverter {
    width: auto;
  }
}

.otisuc__inner {
  width: 1080px;
  margin: 0 auto;
}
#page__unitConverter *,
#page__unitConverter *::before,
#page__unitConverter *::after {
  box-sizing: border-box;
}

/* ---------- 見出し ---------- */
.otisuc__heading {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.otisuc__heading.-en {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: var(--uc-blue);
  text-transform: uppercase;
}
.otisuc__heading.-title {
  font-size: 45px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.006em;
  color: #000;
}
.otisuc__lead {
  margin: 24px 0 0;
  font-size: 16px;
  line-height: 2.025;
}

/* ---------- ツール本体 ---------- */
.otisuc__tool {
  margin-top: 48px;
  background: var(--uc-paper);
  border-radius: 6px;
}
/* タブより下：左右・下を青の1px枠で囲む */
.otisuc__body {
  border: 1px solid var(--uc-blue);
  border-top: none;
  border-radius: 0 0 6px 6px;
}

/* タブ */
.otisuc__tabsWrap {
  position: relative;
  z-index: 1;
}
.otisuc__tabs__next {
  display: none;
}
.otisuc__tabs {
  display: flex;
  gap: 1px;
  height: 61px;
}
.otisuc__tab {
  appearance: none;
  position: relative;
  flex: 1 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 0;
  padding: 16px;
  border: none;
  background: var(--uc-blue-light);
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease;
}
.otisuc__tab:first-child {
  border-top-left-radius: 6px;
}
.otisuc__tab:last-child {
  border-top-right-radius: 6px;
}
.otisuc__tab:hover,
.otisuc__tab.is-active {
  background: var(--uc-blue);
}
.otisuc__tab.is-active {
  cursor: default;
}
/* アクティブタブ下の三角 */
.otisuc__tab.is-active::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 16px;
  height: 7px;
  background: url(../img/unit-converter/tab-arrow.svg) no-repeat center / contain;
  transform: translateX(-50%) rotate(180deg);
}
/* サイト共通CSS（英語ページの style.css）が span の font-size を指定しているため親に合わせる */
.otisuc__tab__text {
  font-size: inherit;
  line-height: inherit;
}
.otisuc__tab__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 27px;
  height: 27px;
}
.otisuc__tab__icon img {
  display: block;
}
.otisuc__tab.-length .otisuc__tab__icon img {
  transform: rotate(-45deg);
}

/* 換算入力 */
.otisuc__converter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 56px 0 64px;
}
.otisuc__rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 880px;
  max-width: 100%;
}
.otisuc__row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}
.otisuc__input {
  width: 670px;
  flex-shrink: 0;
  margin: 0;
  padding: 8px 16px;
  border: 0.5px solid #c3c3c3;
  border-radius: 0;
  background: #fff;
  color: #000;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  text-align: right;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.otisuc__input:focus {
  outline: none;
  border-color: var(--uc-blue);
  box-shadow: 0 0 0 3px rgba(10, 81, 181, 0.15);
}
.otisuc__unit {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
/* サイト共通CSSが span に line-height:1.8 を指定しているため個別に上書き */
.otisuc__unit__symbol,
.otisuc__unit__label {
  line-height: 1.15;
}
.otisuc__unit__symbol {
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--uc-blue);
}
.otisuc__unit__label {
  font-size: 14px;
  color: var(--uc-gray);
  white-space: nowrap;
}

/* リセット・注記 */
.otisuc__footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 880px;
  max-width: 100%;
}
.otisuc__reset {
  appearance: none;
  width: 209px;
  height: 48px;
  padding: 0 20px;
  border: 1px solid var(--uc-blue);
  border-radius: 26px;
  background: transparent;
  color: var(--uc-blue);
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.otisuc__reset:hover {
  background: var(--uc-blue);
  color: #fff;
}
.otisuc__note {
  position: absolute;
  top: 50%;
  right: 0;
  margin: 0;
  transform: translateY(-50%);
  font-size: 14px;
  line-height: 1.8;
  color: var(--uc-gray);
  text-align: right;
}

/* 区切り線 */
.otisuc__divider {
  width: 880px;
  max-width: 100%;
  height: 1px;
  margin: 0 auto;
  background: repeating-linear-gradient(90deg, #707070 0 2px, transparent 2px 4px);
}

/* ---------- 単位の説明 ---------- */
.otisuc__defs {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 64px 100px 56px;
}
.otisuc__defs__title {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.5;
  color: #0d0d0d;
}
.otisuc__defs__sub {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.8;
}
.otisuc__defs__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.otisuc__defs__table th,
.otisuc__defs__table td {
  font-size: 16px;
  line-height: 1.8;
  vertical-align: middle;
}
/* 見出し行 */
.otisuc__defs__table th {
  height: 40px;
  padding: 0 8px;
  background: #f0f0f0;
  color: #0d0d0d;
  font-weight: 700;
  text-align: center;
}
.otisuc__defs__table th + th {
  border-left: 2px solid #fff;
}
.otisuc__defs__table th:first-child {
  width: 147px;
  border-top-left-radius: 6px;
}
/* 最長の「1 K ＝ 約-272.15 ℃」が1行に収まる幅（デザインは166px・左余白40px） */
.otisuc__defs__table th:nth-child(2) {
  width: 182px;
}
.otisuc__defs__table th:last-child {
  border-top-right-radius: 6px;
}
/* 本文行 */
.otisuc__defs__table td {
  padding: 8px 16px 8px 0;
  background: #fff;
  border-top: 1px solid #f4f4f4;
  text-align: left;
}
/* 単位欄（薄い青・中央揃え） */
.otisuc__defs__table td:first-child {
  height: 75px;
  padding: 9px 11px 11px;
  background: #ecf3fb;
  border-top-color: #fff;
  text-align: center;
}
.otisuc__defs__table td:nth-child(2) {
  padding-left: 24px;
}
.otisuc__defs__table td:last-child {
  padding-left: 19px;
}
.otisuc__defs__table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 6px;
}
.otisuc__defs__table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 6px;
}
/* 説明文中の改行（\n）を反映 */
.otisuc__defs__about {
  white-space: pre-line;
}
.otisuc__defs__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
/* サイト共通CSSが span に line-height:1.8 を指定しているため個別に上書き */
.otisuc__defs__unit__symbol,
.otisuc__defs__unit__label {
  line-height: 1.15;
}
.otisuc__defs__unit__symbol {
  font-size: 24px;
  font-weight: 700;
  color: var(--uc-blue);
}
.otisuc__defs__unit__label {
  font-size: 14px;
  color: #0d0d0d;
}
/* 列幅に収まらない場合は「＝」の後ろで改行。各部分（数値＋単位）は途中で折り返さない */
.otisuc__defs__factor__part {
  font-size: inherit;
  line-height: inherit;
  white-space: nowrap;
}
.otisuc__defs__caption {
  margin: -8px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--uc-gray);
  text-align: right;
}

/* ---------- 英語版 ---------- */
/* タブは文字量に応じた幅（Length / Thickness が広くなる）。選択で幅は変わらない */
@media screen and (min-width: 768px) {
  #page__unitConverter[data-lang="en"] .otisuc__tab {
    flex: 1 0 auto;
    gap: 8px;
    padding-right: 12px;
    padding-left: 12px;
  }
}
#page__unitConverter[data-lang="en"] .otisuc__defs__table th {
  line-height: 1.4;
}

/* 表の「スクロールできます」（SPのみ表示） */
.otisuc__defs__tableWrap {
  position: relative;
}
.otisuc__scrollNav {
  display: none;
}

/* ==========================================================
   SP
   ========================================================== */
@media screen and (max-width: 767px) {
  #page__unitConverter {
    padding: 50px 20px 100px;
  }
  .otisuc__inner {
    width: auto;
  }

  /* 見出し */
  .otisuc__heading.-title {
    margin-top: 10px;
    font-size: 37.8px;
    letter-spacing: -0.7px;
  }
  .otisuc__lead {
    margin-top: 50px;
  }

  .otisuc__tool {
    margin-top: 50px;
  }

  /* タブ：横スクロール */
  .otisuc__tabs {
    height: auto;
    padding-bottom: 7px;
    margin-bottom: -7px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .otisuc__tabs::-webkit-scrollbar {
    display: none;
  }
  .otisuc__tab,
  .otisuc__tab.is-active {
    flex: 0 0 auto;
    flex-direction: column;
    gap: 3px;
    padding: 12px 24px 8px;
    font-size: 16px;
  }
  .otisuc__tab:last-child {
    border-top-right-radius: 6px;
  }
  .otisuc__tab__icon {
    width: 20px;
    height: 20px;
  }
  .otisuc__tab__icon img {
    transform: scale(0.74);
  }
  .otisuc__tab.-length .otisuc__tab__icon img {
    transform: rotate(-45deg) scale(0.74);
  }
  /* 「›」ボタン：画像（SVGの影はぼやける）ではなくCSSで描画。寸法はデザインのSVGに合わせる */
  .otisuc__tabs__next {
    appearance: none;
    position: absolute;
    top: 17px;
    z-index: 1;
    display: block;
    width: 39px;
    height: 39px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
  }
  .otisuc__tabs__next {
    right: 2px;
  }
  /* 白い円 */
  .otisuc__tabs__next::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 6px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
  }
  /* 矢印 */
  .otisuc__tabs__next::after {
    content: "";
    position: absolute;
    top: 14.5px;
    width: 8px;
    height: 8px;
    border-top: 3px solid var(--uc-blue);
    border-right: 3px solid var(--uc-blue);
  }
  /* 回転後に見える「>」の中心が円の中心（x:19.5px）に来るよう、四角の中心を先端と逆側へ約1.8pxずらす */
  .otisuc__tabs__next::after {
    left: 13.7px;
    transform: rotate(45deg);
  }
  .otisuc__tabs__next.is-hidden {
    opacity: 0;
    pointer-events: none;
  }

  /* 換算入力 */
  .otisuc__converter {
    align-items: stretch;
    gap: 24px;
    padding: 32px 16px 0;
  }
  .otisuc__rows {
    width: auto;
  }
  .otisuc__row {
    align-items: center;
    gap: 8px;
  }
  .otisuc__input {
    width: 216px;
  }
  .otisuc__unit {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .otisuc__unit__symbol {
    font-size: 18px;
  }
  .otisuc__unit__label {
    color: #888;
    white-space: normal;
  }

  /* リセット・注記（注記を上に） */
  .otisuc__footer {
    flex-direction: column-reverse;
    gap: 16px;
    width: auto;
  }
  .otisuc__note {
    position: static;
    width: 302px;
    max-width: 100%;
    transform: none;
  }

  .otisuc__divider {
    width: auto;
    margin: 48px 16px 0;
  }

  /* 単位の説明 */
  .otisuc__defs {
    gap: 40px;
    padding: 48px 16px 40px;
  }
  .otisuc__defs__title {
    font-size: 18px;
    line-height: 1.4;
  }
  .otisuc__defs__scroll {
    padding-bottom: 30px;
  }
  /* 表はPCと同じ見た目のまま幅703px（147／182／374）で横スクロール */
  /* スクロール範囲は右の余白（16px）をなくしてパネルの枠まで広げる */
  .otisuc__defs__tableWrap {
    margin-right: -16px;
  }
  /* 右端までスクロールしたとき、枠との間に左側と同じ16pxの余白を残す（透明な右ボーダー分） */
  .otisuc__defs__table {
    width: 719px;
    border-right: 16px solid transparent;
  }
  .otisuc__defs__scroll .simplebar-track.simplebar-horizontal {
    right: 16px;
    height: 6px;
    border-radius: 4px;
    background: #ccc;
  }
  .otisuc__defs__scroll .simplebar-horizontal .simplebar-scrollbar {
    top: 0;
    height: 6px;
  }
  .otisuc__defs__scroll .simplebar-horizontal .simplebar-scrollbar::before {
    inset: 0;
    border-radius: 4px;
    background: var(--uc-blue);
    opacity: 1;
  }
  .otisuc__scrollNav {
    position: absolute;
    top: 0;
    right: 16px;
    bottom: 30px;
    left: 0;
    z-index: 2;
    display: block;
    width: 120px;
    height: 120px;
    margin: auto;
    background: url(../img/3min/scroll_nav.png) no-repeat center / contain;
    opacity: 0.8;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  #page__unitConverter[data-lang="en"] .otisuc__scrollNav {
    background-image: url(../img/3min/scroll_nav_en.png);
  }
  .otisuc__scrollNav.is-hidden {
    opacity: 0;
  }
  .otisuc__defs__caption {
    margin-top: -16px;
    text-align: justify;
  }
  /* 英語は justify だと単語間が不自然に広がるため左揃え */
  #page__unitConverter[data-lang="en"] .otisuc__defs__caption {
    text-align: left;
  }
  /* PCだけで改行（SPは1段落で流す） */
  .otisuc__pcBr {
    display: none;
  }
}
