@charset "utf-8";

#article,
#visualArea {
  box-sizing: border-box;
}
#article *,
#article *::before,
#article *::after,
#visualArea *,
#visualArea *::before,
#visualArea *::after {
  box-sizing:inherit
}

#monthly,
#sixmonth {
  margin: 0 auto;
}

@media screen and (max-width: 767px){
  #article {
    padding-right: 15px;
    padding-left: 15px;
    margin-bottom: 88px;
  }
  #monthly {}
  #sixmonth {
    margin-top: 88px;
    margin-bottom: 48px;
  }
}
@media screen and (min-width: 768px) {
  #article {
    max-width: 890px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 44px;
  }
  #monthly {}
  #sixmonth {
    margin-top: 104px;
    margin-bottom: 64px;
  }
}


/*---------------------------------------------
  module
---------------------------------------------*/
/* heading ---------------- */
.Ttl_h1 {
  position: relative;
  max-width: 408px;
  margin: 0 auto;
  padding: 14px;
  background-color: #005bac;
  color: #fff;
  font-size: 34px;
  line-height: 1.5;
  text-align: center;
  font-weight: 700;
}
.Ttl_h1::after {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	/* transform: translateY(-1px); */
	display: block;
	width: 32px;
	height: 16px;
	text-align: center;
	background-color: inherit;
	clip-path: polygon(0 0, 100% 0, 50% 100%);
	content: "";
}

.Ttl_h2 {
  margin: 0 auto;
  padding-bottom: 10px;
  line-height: 1.5;
  text-align: center;
  font-weight: 700;
  position: relative;
}
.Ttl_h2::before {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 4px;
  border-radius: 4px;
  background-color: #005BAC;
}

.Ttl_h3 {
  margin: 0 auto;
  color: #005bac;
  line-height: 1.3;
  text-align: center;
  font-weight: 700;
}
.Ttl_h3 > b {
  position: relative;
  top: 0.05em;
  font-size: calc(1em + 10px);
  font-weight: inherit;
}

.Ttl_h3.mid {
  line-height: 1.1;
}
.Ttl_h3.mid > b {
  top: auto;
}

@media screen and (max-width: 767px){
  .Ttl_h1 {
    margin-top: 56px;
    margin-bottom: 56px;
    font-size: 34px;
  }
  .Ttl_h2 {
    padding-bottom: 13px;
    font-size: 26px;
  }
  .Ttl_h2::before {
    width: 70px;
  }
  .Ttl_h3 {
    font-size: 30px;
  }
  .Ttl_h3.mid {
    font-size: 30px;
  }
}
@media screen and (min-width: 768px) {
  .Ttl_h1 {
    margin-top: 96px;
    margin-bottom: 64px;
    font-size: 40px;
  }
  .Ttl_h2 {
    font-size: 32px;
  }
  .Ttl_h2::before {
    width: 90px;
  }
  .Ttl_h3 {
    font-size: 36px;
  }
  .Ttl_h3.mid {
    font-size: 34px;
  }
}

/* text ---------------- */
.periodTxt {
  margin: 18px auto 20px;
  font-size: 16px;
  text-align: center;
  line-height: 1.5;
}

.comparisonInfo {
  margin: 0 auto;
  font-size: 12px;
  line-height: 1.5;
}

/* icon ---------------- */
/* pair */
.iconPair {
  display: block;
  aspect-ratio: 16/5;
  max-width: 320px;
  background-repeat: no-repeat;
  background-position: left 0 top 0, right 0 top 0;
  background-size: auto 100%;
  overflow: hidden;
  text-indent: 200%;
  text-align-last: left;
}
.iconPair2 {
  display: block;
  aspect-ratio: 7/4;
  max-width: 350px;
  background-repeat: no-repeat;
  background-position: left 0 top 0, right 0 bottom 0;
  background-size: 53.5714% auto;
  overflow: hidden;
  text-indent: 200%;
  text-align-last: left;
}
.iconPair.usdjpy,
.iconPair2.usdjpy {
  background-image: url(/gaikaex/mark/swap_comp/common_fx/images/icon_flag_us.svg),
                    url(/gaikaex/mark/swap_comp/common_fx/images/icon_flag_jp.svg);
}
.iconPair.audjpy,
.iconPair2.audjpy {
  background-image: url(/gaikaex/mark/swap_comp/common_fx/images/icon_flag_au.svg),
                    url(/gaikaex/mark/swap_comp/common_fx/images/icon_flag_jp.svg);
}
.iconPair.nzdjpy,
.iconPair2.nzdjpy {
  background-image: url(/gaikaex/mark/swap_comp/common_fx/images/icon_flag_nz.svg),
                    url(/gaikaex/mark/swap_comp/common_fx/images/icon_flag_jp.svg);
}
.iconPair.tryjpy,
.iconPair2.tryjpy {
  background-image: url(/gaikaex/mark/swap_comp/common_fx/images/icon_flag_tr.svg),
                    url(/gaikaex/mark/swap_comp/common_fx/images/icon_flag_jp.svg);
}
.iconPair.mxnjpy,
.iconPair2.mxnjpy {
  background-image: url(/gaikaex/mark/swap_comp/common_fx/images/icon_flag_mx.svg),
                    url(/gaikaex/mark/swap_comp/common_fx/images/icon_flag_jp.svg);
}
.iconPair.zarjpy,
.iconPair2.zarjpy {
  background-image: url(/gaikaex/mark/swap_comp/common_fx/images/icon_flag_za.svg),
                    url(/gaikaex/mark/swap_comp/common_fx/images/icon_flag_jp.svg);
}

/* rank */
.iconRank {
  display: block;
  aspect-ratio: 1/1;
  max-width: 320px;
  background-repeat: no-repeat;
  background-size: contain;
  overflow: hidden;
  text-indent: 200%;
  text-align-last: left;
}
.iconRank.no1 {
  background-image: url(/gaikaex/mark/swap_comp/common_fx/images/icon_rank_1.svg);
}
.iconRank.no2 {
  background-image: url(/gaikaex/mark/swap_comp/common_fx/images/icon_rank_2.svg);
}
.iconRank.no3 {
  background-image: url(/gaikaex/mark/swap_comp/common_fx/images/icon_rank_3.svg);
}


/*---------------------------------------------
  visualArea
---------------------------------------------*/
#visualArea {
  display: block;
  margin: 0;
  padding: 0;
}
/* bgcolor */
.bgWhite{
  background: #fff;
}
/* textcolor */
.txtBlue{
  color: #005bac;
}

#mv img {
  max-width: 100%;
  height: auto;
  border: none;
  vertical-align: top;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast;
}

/* mv ---------------- */
#mv {
  width: 100%;
  background: url(/gaikaex/mark/swap_comp/common_fx/images/pc_img_mv_bg@2x.webp?20250925), linear-gradient(180deg, #69A4D9 30%, #005BAC 100%);
  overflow: hidden;
  background-position: top;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: luminosity;
}
.mvWrap {
  max-width: 1140px;
  width: 94%;
  margin: 0 auto;
  padding: 12px 40px 30px;
  position: relative;
}
.mvLeft {
  max-width: 600px;
  width: 100%;
  text-align: center;
}
.mvHuman {
  max-width: 370px;
  width: 48%;
  width: 100%;
  position: absolute;
  top: 21px;
  right: 0;
  z-index: 1;
}

@media screen and (max-width: 1100px) {
  .mvLeft {
  max-width: 500px;
  }
}

@media screen and (max-width: 980px) {
  #mv {
    background: url(/gaikaex/mark/swap_comp/common_fx/images/pc_img_mv_bg@2x.webp?20250925), linear-gradient(180deg, #69A4D9 30%, #005BAC 100%);
    background-position: top;
    background-size: 100%;
    background-repeat: no-repeat;
    background-blend-mode: luminosity;
  }
  .mvWrap {
    width: 100%;
    position: relative;
    padding: 0;
  }
  .mvLeft {
    width: 100%;
    max-width: none;
  }
  .mvHuman {
    display: none !important;
  }
}

/* list ---------------- */
.mvSwap {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  line-height: 1;
  font-weight: 700;
  gap: 13px;
  font-size: 18px;
}
.mvSwap > li {
  display: grid;
  justify-content: center;
  margin: 0;
  padding: 0;
  background-color: #fff;
  padding: 4px 13px 16px;
}
.mvSwap .pairIcon {
  margin: 14px 13px 0 0;
  grid-column: 1;
  width: 78px;
}
.mvSwap .pairTxt {
  font-size: 18px;
  font-weight: bold;
  grid-column: 1/3;
  grid-row: 2;
  margin-top: 4px;
}
.mvSwap .swapValue {
  grid-column: 2;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  white-space: nowrap;
}
.mvSwap .value {
  position: relative;
  top: 0.075em;
  margin-right: 0.025em;
  font-weight: 600;
  font-size: 64px;
}

@media screen and (max-width: 1100px) {
  .mvSwap {
    max-width: 500px;
    font-size: 14px;
  }
  .mvSwap > li {
    padding: 2px 8px 10px;
  }
  .mvSwap .pairIcon {
    margin: 8px 1.3483vw 0 0;
    width: 54px;
  }
  .mvSwap .value {
    font-size: 54px;
  }
}

@media screen and (max-width: 980px){
  .mvWrap {
    width: 100%;
    position: relative;
    padding: 0;
  }
  .mvSwap {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 350px;
    padding: 6px 0 20px;
    font-size: 12px;
    position: absolute;
    max-width: none;
    margin: 0 auto;
    bottom: 0;
    left: 0;
    right: 0;
  }
  .mvText {
    width: 100%;
    margin: 1.615384615384616vw auto 0;
  }
  .mvSwap > li {
    padding: 0 8px 7px;
  }
  .mvSwap .pairIcon {
    width: 45px;
    margin: 5px 8px 0 0;
  }
  .mvSwap .value {
    font-size: 36px;
  }
  .mvSwap .pairTxt {
    margin-top: 5px;
    font-size: 12px;
  }
}

@media screen and (max-width: 767px) {
  .mvText {
    margin: 3.615384615384616vw auto 0;
  }
}

@media screen and (max-width: 385px) {
  .mvSwap {
    width: 328px;
  }
}

/* info ---------------- */
#visualArea .mvInfo {
  max-width: 920px;
  margin: 0 auto;
  padding: 16px 15px;
  border-image-source: linear-gradient(#f2f2f2, #f2f2f2);
  border-image-slice: fill 0;
  border-image-outset: 0 50vw;
  font-size: 12px;
  line-height: 1.5;
}

#visualArea .mvInfo p {
  padding-left: 1em;
  text-indent: -1em;
  font: inherit;
}


/*---------------------------------------------
  monthly table
---------------------------------------------*/
.monthlyTable {
  overflow: auto;
  margin: 10px 0 0;
  padding: 0;
  font-weight: 600;
}
.monthlyTable table {
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 1px;
  line-height: 1;
}
.monthlyTable th,
.monthlyTable td {
  padding: 8px 4px;
  border: 0;
  background-color: #fff;
  box-shadow: 0 0 0 1px #bfbfbf;
  text-align: inherit;
}
.monthlyTable th {
  font-size: 14px;
  text-align: center;
}

.monthlyTable thead th {
  background-color: #f2f2f2;
  white-space: nowrap;
  line-height: 1.3;
}
.monthlyTable thead th:nth-of-type(2) {
  background-color: #005bac;
  color: #fff;
  font-weight: 700;
}
.monthlyTable tbody th {
  width: var(--w-col-th);
  min-width: var(--w-col-th);
  max-width: var(--w-col-th);
}

.monthlyTable tbody td {
  width: var(--w-col-td);
  min-width: var(--w-col-td);
  max-width: var(--w-col-td);
  height: var(--h-col-td);
  font-size: 26px;
  font-weight: 600;
  vertical-align: bottom;
  white-space: nowrap;
}
.monthlyTable tbody td.no1 {
  background-color: #fcf7ea;
}
.monthlyTable tbody td.blank {
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 14px;
  vertical-align: middle;
  text-align: center;
}

.monthlyTable tbody .unit {
  font-size: calc(1em - 10px);
  font-weight: 400;
}

.monthlyTable .iconPair {
  width: 70px;
  margin: 0 auto 8px;
}
.monthlyTable .iconRank {
  width: 32px;
  margin: 0 auto 4px;
}

@media screen and (max-width: 767px){
  .monthlyTable {
    --w-col-th: 96px;
    --w-col-td: 84px;
    --h-col-td: 88px;
  }
  .monthlyTable table {
    width: auto;
    table-layout: fixed;

  }
  .monthlyTable thead th:nth-of-type(2) {
    font-size: 16px;
  }
  .monthlyTable tbody td {
    padding-bottom: 16px;
    font-size: 24px;
    text-align: right;
  }
}
@media screen and (min-width: 768px) {
  .monthlyTable {
    --w-col-th: 174px;
    --w-col-td: 118px;
    --h-col-td: 80px;
  }
  .monthlyTable table {
    width: 100%;
    table-layout: auto;
  }
  .monthlyTable thead th:nth-of-type(2) {
    font-size: 18px;
  }
  .monthlyTable tbody td {
    padding-bottom: 11px;
    font-size: 26px;
    text-align: center;
  }
  .monthlyTable .iconRank {
    margin-bottom: 2px;
  }
}
/* sticky */
@media screen and (max-width: 767px){
  .monthlyTable {
    display: flex;
    margin-right: -15px;
    padding-right: 15px;
    overflow: auto;
  }
  .monthlyTable tr > *:nth-child(-n+2) {
    position: -webkit-sticky;
    position: sticky;
    z-index: 2;
  }
  .monthlyTable tr > *:nth-child(1) {
    left: 1px;
  }
  .monthlyTable tr > *:nth-child(2) {
    left: calc(var(--w-col-th) + 2px);
  }
}


/*---------------------------------------------
  chart
---------------------------------------------*/
.chartWpap {
  display: grid;
}

.chartItem {
  display: block;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

.chartItem > .chartHeader {
  display: block;
  margin: 0;
  padding: 0;
}

.chartItem .pairTtl {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  line-height: 1.4;
  font-weight: 700;
  text-align: center;
}
.chartItem .Ttl_h3 {
  margin-top: 4px;
}

.chartItem .iconPair {
  margin-right: 12px;
}

@media screen and (max-width: 767px){
  .chartWpap {
    grid-template-columns: repeat(1, 1fr);
    gap: 48px 0;
  }
  .chartItem .pairTtl {
    font-size: 22px;
  }
  .chartItem .iconPair {
    width: 86px;
    margin-right: 12px;
  }
}
@media screen and (min-width: 768px) {
  .chartWpap {
    grid-template-columns: repeat(2, 1fr);
    gap: 74px 58px;
    margin-top: 30px;
  }
  .chartItem > .chartHeader {
    display: grid;
    align-items: end;
    min-height: 88px;
  }
  .chartItem .pairTtl {
    font-size: 26px;
  }
  .chartItem .iconPair {
    width: 96px;
  }
}

/* chart ---------------- */
.six-months-chart-container {
  width: 100%;
}
.six-months-custom-icon {
  width: 40px;
  display: block;
  margin: 0 auto;
  margin-top: -48px;
  margin-bottom: 8px;
  margin-left: 5px;
}
.six-months-data-label {
  letter-spacing: 0.01em;
  width: 56px;
  color: #404040;
  font-family: 'din-2014';
  font-size: 0.875rem; /* 0.8125rem = 13px; 0.875rem = 14px; 0.9375rem = 15px*/
  font-weight: 500;
  text-align: center;
}
@media screen and (max-width: 767px){
  /* .six-months-chart-container:not(:empty) {
    height: calc(424px + 48px); /* スマホ時はグラフの高さ指定しない（ラベルが見切れるため）
  } */
}
@media screen and (min-width: 768px) {
  .six-months-chart-container:not(:empty) {
    height: 360px;
  }
}
