/*!
Theme Name: tifc
Theme URI: http://underscores.me/
Author: Underscores.me
desiner: Ms.tokuda
coder: norinaga
*/

:root {
  --red: #C71F26;
  --space1: 32px;
  --space2: 56px;
  --space3: 80px;
}
html {
	font-size: 10px;
}
body {
  background-color: #f4f4f4;
  padding-top: 84px;
}
img {
	width: 100%;
}
h2 {
  font-size: 2.4rem;
}
h3,h4,h5 {
	font-size: 1.8rem;
}
p,a,span,li {
	font-size: 1.6rem;
}
li {
	list-style:none;
}
a {
	text-decoration:none;
}
a:hover {
  opacity:.8;
}
.flex {
	display: flex;
	flex-wrap:wrap;
	justify-content:space-between;
}
.flex-center {
  justify-content:center;
}
.inner {
  max-width:1040px;
  margin: 0 auto;
}

header {
  background-color: black;
  padding: 16px;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 10;
}
.logo-wrapper {
  align-items:center;
  img {
    width: 40px;
    margin-right: 8px;
  }
  h1 {
    font-size: 2rem;
    font-weight: bold;
    color: white;
  }
}
.logo-wrapper:hover {
  opacity:1;
}
.menu-wrapper {
  align-items:center;
  gap: 24px;
  .days-box {
    background-color: white;
    padding: 4px 8px;
    display: flex;
    span {
      font-weight: bold;
    }
    span:first-child {
      font-size: 1.4rem;
      margin: auto 0;
    }
    span.day {
      font-size: 2.4rem;
      text-align: center;
      margin: 0 4px;
      width: 44px;
      height: 28px;
    }
    span:last-child {
      font-size: 1.2rem;
      margin-top: auto;
    }
  }
  .lang-box {
    align-items:center;
    * {
      margin: 0 2px;
    }
    img {
      width: 24px;
    }
  }
}
.button {
  display: block;
  max-width:fit-content;
  margin: 0 auto;
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
  border-radius:12px;
  padding: 16px 24px;
}
.entry-button .button {
  color: white;
  background-color: var(--red);
}
.news-button .button {
  background-color: white;
}
.hamburger {
  position: relative;
  cursor: pointer;
  width: 40px;
  height: 32px;
  span{
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 0;
    height: 4px;
    width: 100%;
  }
  span:nth-of-type(1) {
    top:0;
    background-color: #f39800;
  }
  span:nth-of-type(2) {
    top: 50%;
    transform:translateY(-50%);
    background-color: #07913a;
  }
  span:nth-of-type(3) {
    bottom: 0;
    background-color: #bd2128;
  }
  &.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
  }
  &.active span:nth-of-type(2) {
    opacity: 0;
  }
  &.active span:nth-of-type(3){
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
  }
}
ul.bogo-language-switcher {
  display: flex;
  gap: 2px;
}
ul.bogo-language-switcher li {
  display: inline-block;
}
ul.bogo-language-switcher li:after {
  content:"|";
  color: white;
  font-weight: bold;
  position: relative;
  left: 4px;
}
ul.bogo-language-switcher li a {
  font-size: 1.6rem;
  color: white;
}
ul.bogo-language-switcher li.current a {
  font-weight: bold;
}
.bogoflags {
  display: none;
}
.ja.current {
  order:-1;
}

/* ------------------------------------------ */

.fv {
  margin-bottom: 0;
}
.top-menu {
  background-color: #333333;
  margin-bottom: var(--space3);
}
.top-menu a {
  width: 8%;
  position: relative;
}
.top-menu span {
  font-size: .9vw;
  font-weight: bold;
  text-align: center;
  line-height:1.5;
  white-space: nowrap;
  color: white;
  height: 3vw;
  align-content:center;
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform:translateX(-50%);
}

section {
  margin-bottom: var(--space2);
}
h2 {
  font-size: 2.8rem;
  font-weight: bold;
  text-align: center;
  letter-spacing:2px;
  margin-bottom: var(--space1);
}
.top-topics h2 {
  color: var(--red);
}

.slick-slider .slick-slide {
  margin:0 10px;
}
.slick-slider img {
  aspect-ratio: 2/1.3;
}
.slick-dots {
  text-align:center;
  margin:20px 0 0 0;
}
.slick-dots li {
  display:inline-block;
  margin:0 5px;
}
.slick-dots button {
  color: transparent;
  outline: none;
  width:10px;
  height:10px;
  display:block;
  border-radius:50%;
  background:#ccc;
}
.slick-dots .slick-active button{
  background:#333;
}
.slider h3 {
  font-weight: bold;
  height: 64px;
  padding: 8px 16px;
  background-color: white;
}

.top-news {
  margin-bottom: 120px;
}
.cat-list {
  margin-bottom: var(--space3);
  li {
    position: relative;
    width: 130px;
    height: 64px;
    text-align: center;
    align-content:center;
    line-height:1.5;
    margin: 0 4px;
    padding: 8px;
  }
  a {
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
  }
  a::after{
    content:"";
    position:absolute;
    top:0;
    right:0;
    bottom:0;
    left:0;
    z-index:1;
    pointer-events:auto;
    background-color:rgba(0,0,0,0)
  }
}
.news-list {
  margin-bottom: var(--space1);
}
.news-box {
  width: 24%;
  margin-bottom: var(--space1);
  position: relative;
  img {
    aspect-ratio:25/17;
  }
  h3 {
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
    padding-top: 12px;
  }
}
.cat-label {
  display: inline-block;
  padding: 6px 12px;
  color: white;
  font-size: 1.4rem;
  text-align: center;
  position: absolute;
  top: 0;
  right: 0;
}
.top-news .button {
  color: white;
  background-color: black;
}

.lead {
  max-width:800px;
  margin: 0 auto var(--space3);
}
.top-category .lead {
  margin-bottom: var(--space1);
}

.about-box {
  width: 32%;
  margin: 0 0.5%;
  position: relative;
  & > img {
    aspect-ratio:34/19;
  }
  div {
    padding: 16px;
    background-color: white;
  }
  h3 {
    font-size: 1.6rem;
    font-weight: bold;
  }
  p:not([class]) {
    font-size: 1.4rem;
    color: #4D5461;
    margin: 8px 0;
  }
  p.more {
    text-align: right;
    * {
      vertical-align: middle;
      line-height:normal;
      font-size: 1.4rem;
    }
  }
  .more-icon {
    width: 24px;
    margin-left: 6px;
  }
  .cat-label {
    min-width:120px;
    color: black;
  }
}

