* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

.sp{
  display: none!important;
}
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.common-fv{
  height: 600px;
  position: relative;
  .common-fv-box{
    position: absolute;
    left: 20%;
    top: 50%;
    transform: translateY(-50%);
  }
  .common-title{
    color: #FFF;
    font-family: "Hiragino Kaku Gothic StdN";
    font-size: 8.5vw;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
  }
  .common-subtitle{
    color: #FFF;
    font-family: "Hiragino Kaku Gothic ProN";
    font-size: 2.25vw;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 6.4px;
  }
}

@media screen and (max-width: 768px){
    .sp{
        display: block!important;
    }
    .br_for_sp{
        display: block!important;
    }
    .container {
        padding: 0 3%;
        margin: 0 auto;
        width: 100%;
    }
}

@media screen and (max-width: 500px){
  .common-fv{
      height: 350px;
      .common-title{
          font-size: 60px;
        }
        .common-subtitle{
            font-size: 20px;
        }
        .common-fv-box{
            left: 5%;
            top: 65%;
        }
    }
}

.main_content{
  margin: 60px auto 0;
}

/* ========================================
   IRBANK Header Styles
   ======================================== */

/* Header Container */
.ch {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  z-index: 5;
  height: 48px;
}

@media only screen and (min-width: 768px) {
  .ch {
    height: 70px;
  }
}

/* Logo */
#cd-logo {
  float: left;
  margin: 0 0 0 2%;
}

@media only screen and (min-width: 768px) {
  #cd-logo {
    margin: 14px 0 0 2%;
  }
}

#cd-logo img {
  height: auto;
  max-height: 48px;
}

@media only screen and (min-width: 768px) {
  #cd-logo img {
    max-height: 48px;
  }
}

/* Search Form */
header form {
  position: relative;
  float: left;
  max-width: 400px;
  min-width: 160px;
  width: 25%;
  margin: 10px 8%;
  border-radius: 10px;
  background-color: #fff;
}

@media only screen and (min-width: 768px) {
  header form {
    margin: 20px 0 51px 7%;
    width: 22%;
    font-size: 16px;
  }
}

header input {
  position: absolute;
  left: 30px;
  top: 0;
  width: 100%;
  height: 30px;
  padding-left: 5px;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid #e5e5e5;
  background-color: #fff;
  font-size: 1rem;
  margin: 0;
}

header input:focus {
  box-shadow: 0 0 7px #3498db;
  border: 1px solid #3498db;
}

header button {
  position: absolute;
  left: 3px;
  top: 0;
  width: 30px;
  height: 30px;
  border: none;
  background-color: #fff;
  cursor: pointer;
  margin: 0;
}

/* Global Navigation */
.cmn {
  float: right;
  width: 44px;
  height: 44px;
  margin-right: 3%;
  background: url("https://f.irbank.net/assets/header_humburger.svg") center center no-repeat;
}

@media only screen and (min-width: 768px) {
  .cmn {
    width: auto;
    height: auto;
    background: none;
    cursor: auto;
  }
}

.cmn ul {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
}

.cmn ul.iv {
  transform: translateY(48px);
}

@media only screen and (min-width: 768px) {
  .cmn ul {
    position: static;
    width: auto;
    transform: translateY(0);
    display: flex;
    align-items: center;
    line-height: 70px;
  }

  .cmn ul.iv {
    transform: translateY(0);
  }
}

.cmn li {
  display: block;
}

@media only screen and (min-width: 768px) {
  .cmn li {
    display: inline-block;
    margin-left: 1em;
    position: relative;
  }

  .cmn li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -0.5em;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50px;
    background-color: #0057ac;
  }
}

.cmn li a {
  line-height: 50px;
  padding-left: 5%;
  background: #0057ACCC;
  font-weight: 600;
  display: block;
  color: #fff;
  text-decoration: none;
}

.cmn li:not(:last-child) {
  border-bottom: 1px solid #00407f;
}

@media only screen and (min-width: 768px) {
  .cmn li a {
    line-height: normal;
    background: none;
    padding: 0.6em clamp(0.1em, 1vw, 1.6em);
    border-top: none;
    color: #0057ac;
    font-weight: 700;
    font-size: clamp(0.75rem, 2.5vw, 1rem);
    white-space: nowrap;
  }

  .cmn li:not(:last-child) {
    border-bottom: none;
  }

  .cmn li a:hover {
    color: #c44;
  }
}

@media only screen and (max-width: 767px) {
  .cmn:has(ul.iv) {
    background: url("https://f.irbank.net/assets/cross.svg") center center no-repeat;
  }
}

/* ========================================
   Front-page: hide empty content wrappers
   ======================================== */
.home #content.l-content[data-postid]:empty,
.home .l-header + #content.l-content:empty {
    display: none !important;
}

/* ========================================
   Post Card Styles (from Customizer CSS)
   ======================================== */

/* カードの見た目（角丸・影・ホバー） */
.wp-block-post {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.wp-block-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

/* サムネイルを16:9で統一＋ホバーで少しズーム */
.wp-block-post-featured-image { aspect-ratio: 16/9; overflow: hidden; }
.wp-block-post-featured-image img { width:100%; height:100%; object-fit:cover; transition: transform .25s ease; }
.wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.04); }

/* タイトルを2行省略にして高さを揃える */
.wp-block-post-title a {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.5; font-weight: 700; text-decoration: none;
}

/* 投稿日・著者などのメタ */
.wp-block-post-date, .wp-block-post-author { font-size: 12px; opacity: .75; }

/* カテゴリーピル（丸タブ風） */
.wp-block-post-terms__post-terms a {
  display: inline-block; font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: linear-gradient(90deg, #5c7cfa, #4dabf7); color: #fff !important; text-decoration: none;
  box-shadow: 0 2px 8px rgba(76,175,248,.3);
}

/* SWELLやWP既定の a::before が邪魔な場合は無効化（必要な時だけ） */
.wp-block-post a::before, .wp-block-post a::after { content: none !important; }

/* ダークモード配慮（任意） */
@media (prefers-color-scheme: dark) {
  .wp-block-post { background:#111; }
  .wp-block-post-title a { color:#fafafa; }
}
