@charset "UTF-8";
/* common */
.box62 {
  width: 62% !important; }

.box38 {
  width: 38% !important; }

@media screen and (max-width: 767px) {
  .box62 {
    width: 100% !important; }

  .box38 {
    width: 100% !important; } }
.box68 {
  width: 68% !important; }

.box32 {
  width: 32% !important; }

@media screen and (max-width: 767px) {
  .box68 {
    width: 100% !important; }

  .box32 {
    width: 100% !important; } }
.box72 {
  width: 72% !important; }

.box28 {
  width: 28% !important; }

@media screen and (max-width: 767px) {
  .box72 {
    width: 100% !important; }

  .box28 {
    width: 100% !important; } }
/* common */
.alpha:hover img {
  opacity: 0.7;
  filter: alpha(opacity=70);
  -ms-filter: "alpha(opacity=70)"; }

.reportFlexbox {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  -js-display: flex;
  display: flex;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  -moz-justify-content: space-between;
  -ms-justify-content: space-between;
  justify-content: space-between;
  -ms-flex-pack: space-between;
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap; }
  .reportFlexbox.reverseBox {
    -webkit-flex-direction: row-reverse;
    -moz-flex-direction: row-reverse;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse; }
  @media screen and (max-width: 767px) {
    .reportFlexbox {
      -webkit-flex-direction: column;
      -moz-flex-direction: column;
      -ms-flex-direction: column;
      flex-direction: column; }
      .reportFlexbox.reverseBox {
        -webkit-flex-direction: column;
        -moz-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column; } }

.indexContentsWrap01 {
  position: relative;
  width: 100%;
  font-size: 14px;
  min-width: 980px;
  background-color: #000; }

@media screen and (max-width: 979px) {
  .indexContentsWrap01 {
    min-width: inherit; } }
.fLert {
  float: left; }

.fRight {
  float: right; }

.clearBox {
  overflow: hidden;
  *zoom: 1; }

.clmLine {
  padding: 0 0 1em;
  font-size: 70%;
  max-height: 999999px; }
  @media screen and (max-width: 979px) {
    .clmLine {
      padding: 1em 0; } }

.mainBlock {
  max-width: 980px;
  margin: 0 auto;
  color: #FFF; }
  .mainBlock img {
    max-width: 100%;
    vertical-align: bottom; }
  .mainBlock a {
    color: #FFF;
    text-decoration: none; }
    .mainBlock a:hover, .mainBlock a:active, .mainBlock a:focus {
      color: #FF0004; }
  @media screen and (max-width: 979px) {
    .mainBlock {
      width: auto;
      max-width: inherit;
      padding: 0 55px; } }
  @media screen and (max-width: 767px) {
    .mainBlock {
      padding: 0 10px; } }

li.btnLink {
  padding: 2px; }
  li.btnLink a {
    border: 2px solid #FFF;
    display: block;
    text-align: center;
    color: #FFF;
    font-weight: bold;
    letter-spacing: 0.1em;
    line-height: 2.8em; }
    li.btnLink a:hover, li.btnLink a:active, li.btnLink a:focus {
      background: #FFF; }

/* TOPページ用　*/
.mainBox {
  width: 100%; }
  .mainBox .mainTitBlock {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px; }
    .mainBox .mainTitBlock h1 {
      font-weight: bold;
      letter-spacing: -0.01em;
      font-size: 260%;
      line-height: 100%;
      padding-bottom: 10px;
      /* border-bottom: 2px solid #FF0004; */
      max-height: 999999px; }
      .mainBox .mainTitBlock h1 span {
        color: #FF0004; }
    .mainBox .mainTitBlock p {
      font-size: 200%; }
    @media screen and (max-width: 979px) {
      .mainBox .mainTitBlock h1 {
        font-size: 220%; }
      .mainBox .mainTitBlock p {
        font-size: 160%; } }
    @media screen and (max-width: 767px) {
      .mainBox .mainTitBlock h1 {
        font-size: 180%; }
      .mainBox .mainTitBlock p {
        font-size: 120%; } }
  .mainBox.bg2021FD {
    position: relative;
    border-top: 2px solid #333333; }
    .mainBox.bg2021FD .mainTitBlock {
      position: absolute;
      left: 10px;
      top: 0;
      bottom: 0;
      margin: auto;
      display: table; }
      .mainBox.bg2021FD .mainTitBlock h1 {
        display: table; }
    @media screen and (max-width: 767px) {
      .mainBox.bg2021FD {
        position: relative; }
        .mainBox.bg2021FD .mainTitBlock {
          position: relative;
          padding-bottom: 0px; } }
  .mainBox.bg2021kusaba {
    border-bottom: 2px solid #FF0004;
    background: url(/potenza/report/2024/images/formula-drift/bgTit.webp) no-repeat right 0;
    background-size: contain; }
    .mainBox.bg2021kusaba .mainTitBlock {
      position: relative;
      padding-bottom: 0px;
      background: none;
      margin: 0;
      padding: 20px 0;
      width: 100%; }
      .mainBox.bg2021kusaba .mainTitBlock.profBlock h1 {
        padding-top: 0;
        border-bottom: none; }
      .mainBox.bg2021kusaba .mainTitBlock p.profTit {
        font-size: 1.2em;
        line-height: 130%;
        letter-spacing: 0.01em;
        color: #FF0004;
        width: 100%;
        padding: 0;
        margin: 0;
        background: none; }
        .mainBox.bg2021kusaba .mainTitBlock p.profTit a:hover, .mainBox.bg2021kusaba .mainTitBlock p.profTit a:active, .mainBox.bg2021kusaba .mainTitBlock p.profTit a:focus {
          text-decoration: underline; }
  .mainBox h3 {
    font-size: 130%;
    padding: 1em 0;
    font-weight: bold; }

.mainLead {
  padding: 20px 0;
  border-bottom: 2px solid #FF0004; }
  .mainLead .bgBlack {
    padding: 15px 15px 0; }
    .mainLead .bgBlack h2 {
      background: rgba(0, 0, 0, 0.8);
      font-size: 150%;
      display: table;
      line-height: 120%;
      font-weight: bold;
      max-height: 999999px; }
    .mainLead .bgBlack > p {
      padding: 10px 0 0; }
  .mainLead > div > ul {
    padding-top: 15px; }
    @media screen and (max-width: 767px) {
      .mainLead > div > ul {
        padding: 15px 15px 0; } }
    .mainLead > div > ul > li > a:hover img, .mainLead > div > ul > li > a:active img, .mainLead > div > ul > li > a:focus img {
      opacity: 0.7;
      filter: alpha(opacity=70);
      -ms-filter: "alpha(opacity=70)"; }

.profArea .driverArea {
  padding: 0;
  border: 2px solid #FF0004;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  -js-display: flex;
  display: flex;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  -moz-justify-content: space-between;
  -ms-justify-content: space-between;
  justify-content: space-between;
  -ms-flex-pack: space-between;
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap; }
  .profArea .driverArea .imgBox {
    width: 30%;
    overflow: hidden; }
  .profArea .driverArea .txtBox {
    width: 70%;
    overflow: hidden; }
    .profArea .driverArea .txtBox .innnerBox {
      padding: 10px; }
  @media screen and (max-width: 767px) {
    .profArea .driverArea {
      -webkit-flex-direction: column-reverse;
      -moz-flex-direction: column-reverse;
      -ms-flex-direction: column-reverse;
      flex-direction: column-reverse; }
      .profArea .driverArea .imgBox {
        width: 100%; }
      .profArea .driverArea .txtBox {
        width: 100%; } }
  .profArea .driverArea .lineBox {
    border-top: 2px solid #333333;
    padding: 1em 0 0;
    width: 100%; }
  .profArea .driverArea h2 {
    font-size: 160%;
    letter-spacing: 0.05em;
    font-weight: bold;
    padding: 1em 0 0.5em; }
  .profArea .driverArea h3 {
    font-size: 160%;
    letter-spacing: 0.05em;
    font-weight: bold;
    padding: 0 0 0.5em; }
  .profArea .driverArea h4 {
    font-size: .8em;
    letter-spacing: 0.05em;
    padding: 0 0 0;
    color: #FF0004; }
  @media screen and (max-width: 767px) {
    .profArea .driverArea {
      -webkit-align-items: flex-end;
      -moz-align-items: flex-end;
      -ms-align-items: flex-end;
      align-items: flex-end; }
      .profArea .driverArea .txtBox .innnerBox {
        padding: 5px; }
      .profArea .driverArea .lineBox {
        padding: .3em 0 0; }
      .profArea .driverArea h2 {
        font-size: 140%;
        padding: .5em 0 0.3em;
        display: inline-block; }
      .profArea .driverArea h3 {
        font-size: 120%;
        display: inline-block;
        padding: .5em 0 0.3em; } }
.profArea .machineBlock {
  padding-top: 15px; }
  .profArea .machineBlock .equipBox {
    background: #1a1a1a; }
    .profArea .machineBlock .equipBox .resultBox {
      background: none;
      width: 100%;
      margin-top: 0; }
      .profArea .machineBlock .equipBox .resultBox caption {
        text-align: center;
        background: #333333;
        padding: 1em; }

.photoArea {
  padding: 2em 15px;
  border-top: 2px solid #333333;
  border-bottom: 2px solid #333333; }

h3.fdH3 {
  text-align: center;
  padding: .5em;
  border-bottom: 1px solid #FFF;
  color: #FFF;
  font-weight: bold;
  margin-bottom: 1em; }

.topFeature {
  padding-bottom: 1em; }
  .topFeature .inner {
    position: relative; }
    .topFeature .inner .driverLine {
      background: #FF0004;
      text-align: center;
      padding: .5em;
      color: #FFF; }
    .topFeature .inner .topFeatureBox {
      padding: .5em;
      color: #FFF;
      border-bottom: 2px solid #FF0004; }
  .topFeature.biggerlink {
    cursor: pointer; }
    .topFeature.biggerlink a {
      color: #FFF; }
    .topFeature.biggerlink p {
      padding: 0.5em 0 .2em; }
    .topFeature.biggerlink.bl-hover {
      opacity: 0.7;
      filter: alpha(opacity=70);
      -ms-filter: "alpha(opacity=70)"; }

.resultBox caption {
  font-size: 80%;
  color: #FFF;
  line-height: 110%;
  font-weight: bold;
  padding: 0.5em;
  background: black; }
.resultBox tr, .resultBox th, .resultBox td {
  line-height: 140%;
  font-size: 90%;
  padding: 0.5em 0; }
.resultBox th {
  white-space: nowrap;
  text-indent: 1em;
  color: #FF0004; }
.resultBox td {
  font-weight: bold;
  padding-left: 2%; }
.resultBox tr {
  border-bottom: 1px solid #4d4d4d; }
  .resultBox tr:last-child {
    border-bottom: none; }
@media screen and (max-width: 767px) {
  .resultBox {
    width: 100%;
    margin: 20px 0; } }

/* linkArea*/
.linkArea {
  padding: 1em 0 3em;
  border-top: 1px solid #333333; }
  .linkArea h3 {
    font-size: 120%;
    padding-bottom: .5em; }
  .linkArea li {
    font-size: 90%;
    line-height: 120%; }
    .linkArea li .ico {
      margin: 0 0 0 5px;
      vertical-align: baseline; }
  @media screen and (max-width: 767px) {
    .linkArea a {
      display: block;
      padding: 12px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
    .linkArea br {
      display: none; } }

/* report*/
.mainTitBlock.reportTit {
  padding: 20px 0 10px; }
  .mainTitBlock.reportTit h1 {
    border-top: 2px solid #FF0004;
    padding: 0.25em 0;
    background: url(/potenza/report/2024/images/formula-drift/bgTit.webp) no-repeat 100% bottom;
    background-size: contain; }
    .mainTitBlock.reportTit h1 span {
      font-size: 70%; }
    @media screen and (max-width: 979px) {
      .mainTitBlock.reportTit h1 {
        font-size: 24px; } }
    @media screen and (max-width: 767px) {
      .mainTitBlock.reportTit h1 {
        font-size: 24px; }
        .mainTitBlock.reportTit h1 span {
          font-size: 70%; } }

.mainBox .mainFigure {
  /* position: relative; */
  margin-top: 1em; }
  .mainBox .mainFigure h2 {
    position: absolute;
    top: 1.5em;
    left: 0;
    background: #000;
    padding: 0.5em;
    font-size: 24px; }
    @media screen and (max-width: 979px) {
      .mainBox .mainFigure h2 {
        font-size: 16px; } }
    @media screen and (max-width: 767px) {
      .mainBox .mainFigure h2 {
        font-size: 12px;
        bottom: 5px;
        left: 5px;
        top: inherit;
        background-color: rgba(0, 0, 0, 0.8); } }

.leadBox p {
  padding: 0 0 1em; }
.leadBox .resultBox {
  width: 90%;
  margin-left: 10%; }
  .leadBox .resultBox tr, .leadBox .resultBox th, .leadBox .resultBox td {
    line-height: 240%; }

.contBox {
  padding: 10px 0 20px;
  background: black; }
  .contBox h3 {
    /* border: 1px solid $colorGrey; */
    letter-spacing: 0.05em;
    padding: 0.2em 0;
    font-size: 140%;
    margin: 0 auto;
    width: 90%; }
    @media screen and (max-width: 979px) {
      .contBox h3 {
        font-size: 16px; } }
  .contBox .reportFlexbox {
    padding: 15px 0; }
  .contBox .txtBox p {
    padding: 15px 15px 0; }
    .contBox .txtBox p:first-child {
      padding: 0 15px 0; }
  .contBox .imgBox {
    text-align: center; }
    @media screen and (max-width: 979px) {
      .contBox .imgBox {
        padding-bottom: 15px; } }

.navLink .btnLink {
  padding: 15px 0; }
  .navLink .btnLink li {
    padding: 2px; }
    .navLink .btnLink li a {
      border: 2px solid #FFF;
      display: block;
      text-align: center;
      color: #FFF;
      font-weight: bold;
      letter-spacing: 0.1em;
      line-height: 2.8em; }
      .navLink .btnLink li a:hover, .navLink .btnLink li a:active, .navLink .btnLink li a:focus {
        background: #FFF; }
.navLink a {
  padding: 0 1em; }
.navLink .toTop {
  padding: 15px 0;
  text-align: center;
  line-height: 2.8em; }
  @media screen and (max-width: 767px) {
    .navLink .toTop {
      clear: both; } }

.reportFlexbox img, .mainBox img {
  max-width: 100%;
  height: auto; }
.reportFlexbox .txtBox, .mainBox .txtBox {
  width: 90%;
  margin: 0 auto 2rem; }
  .reportFlexbox .txtBox h2, .mainBox .txtBox h2 {
    font-size: 18px;
    padding: 2rem 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #333333;
    border-top: 1px solid #333333;
    background: url(/potenza/report/2022/images/86-brz-race/bg86.webp) no-repeat 100% top; }
  .reportFlexbox .txtBox p, .mainBox .txtBox p {
    width: 90%;
    margin: 0 auto;
    padding: 1rem 0 0; }
.reportFlexbox .imgBox, .mainBox .imgBox {
  width: 90%;
  margin: 0 auto 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #333333;
  border-top: 1px solid #333333; }
  .reportFlexbox .imgBox .imgFlex, .mainBox .imgBox .imgFlex {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    -js-display: flex;
    display: flex;
    -webkit-align-items: start;
    -moz-align-items: start;
    -ms-align-items: start;
    align-items: start;
    -webkit-justify-content: space-between;
    -moz-justify-content: space-between;
    -ms-justify-content: space-between;
    justify-content: space-between;
    -ms-flex-pack: space-between; }
    .reportFlexbox .imgBox .imgFlex .imgFigure, .mainBox .imgBox .imgFlex .imgFigure {
      width: 49%;
      padding-bottom: 0; }
      .reportFlexbox .imgBox .imgFlex .imgFigure figcaption, .mainBox .imgBox .imgFlex .imgFigure figcaption {
        font-size: 10px; }

.mainBox .txtBox h4 {
  font-size: 24px;
  width: 90%;
  margin: 1rem auto; }

.catchlead {
  /*width: 100%;*/
  margin: 2em auto;
  max-width: 820px;
  /*display: -webkit-box;*/
  /*display: -moz-box;*/
  /*display: -ms-flexbox;*/
  /*display: -webkit-flex;*/
  /*-js-display: flex;*/
  /*display: flex;*/
  /*-webkit-align-items: center;*/
  /*-moz-align-items: center;*/
  /*-ms-align-items: center;*/
  /*align-items: center;*/
  /*-webkit-justify-content: center;*/
  /*-moz-justify-content: center;*/
  /*-ms-justify-content: center;*/
  /*justify-content: center;*/
  /*-ms-flex-pack: center;*/ }
  .catchlead h2 {
    margin: 0.5em 0em;
    font-weight: bold;
    /*border-bottom: 2px solid #333;*/
    letter-spacing: 0.05em;
    padding: 0.5em 0;
    font-size: 140%; }
    @media screen and (max-width: 767px) {
      .catchlead h2 {
        margin: 0.5em 0 1em;
        font-size: 20px;
        letter-spacing: 0em;}
        .catchlead h2 br {
          display: block; } }
  @media screen and (max-width: 979px) {
    .catchlead {
      margin: 1rem;
      -webkit-align-items: start;
      -moz-align-items: start;
      -ms-align-items: start;
      align-items: start;
      -webkit-flex-direction: column;
      -moz-flex-direction: column;
      -ms-flex-direction: column;
      flex-direction: column; } }

.mainBox {
  width: 100%;
  margin: 20px 0 80px;
  position: relative;
  font-family: 'Noto Sans JP', sans-serif;
}

.mainBox h3 {
    font-size: 130%;
    padding: 0.5em 0;
    font-weight: bold;
}

.mainVisual {
  position: relative;
  width: 100%;
}

.mainImage {
  position: relative; 
  top: 60px;          
  width: 100%;
  max-width: 900px;
  aspect-ratio: 9 / 4;
  text-align: right;
  margin-left: auto;
}

.mainImage img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
}
/* タイトルブロック配置（画像上に重ねる） */
.titleBlock {
  position: absolute;
  top: 5%;
  color: white;
  z-index: 2;
}

/* 各行テキスト調整 */
.titleMain {
  margin: 0;
  font-size: 88px;
  font-weight: 700;
  line-height: 0.35;
}

.titleMain .line {
  display: block;
}

.titleMain .red {
  color: #FF0004;
}

/* サブタイトル */
.titleSub {
  font-size: 50px;
  margin-top: 40px;
  font-weight: 300;
}

/* 赤帯タグ */
.titleTag {
  background: #FF0004;
  color: black;
  font-weight: bold;
  font-size: 18.5px;
  display: inline-block;
  padding: 4px 8px;
  margin-top: 10px;
}
@media screen and (max-width: 979px) {
  .mainBox {
    width: 100%;
    margin: 20px 0 60px;
  }
    .titleMain {
    font-size: 68px;
    line-height: 0.37;
  }

  .titleSub {
    font-size: 38px;
    margin-top: 25px;
  }

  .titleTag {
    font-size: 14px;
    padding: 2px 6px;
    margin-top: 5px;
  }

  .mainImage {
    position: relative;
    top: 40px;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 9 / 4;
    text-align: right;
    padding-left: 8%;
    box-sizing: border-box;
  }

  .mainImage img {
    width: 100%;
    display: inline-block;
    object-fit: cover;
  }
    
  .catchlead {
    padding: 0 6%;
  }
}

@media screen and (max-width: 767px) {
  .mainBox {
    width: 100%;
    margin: 20px 0 40px;
  }

  .titleBlock {
    position: absolute;
    top: 0%;
    color: white;
    z-index: 2;
  }

  .titleMain {
    font-size: 36px;
    /* white-space: nowrap; */
    line-height: 0.8;  
  }

  .titleMain .line {
    display: inline !important;
    white-space: nowrap;
  }

  .titleMain br {
    display: none;
  }

  .titleSub {
    font-size: 28px;
    margin-top: -2px;
    margin-bottom: -3px;
  }

  .titleTag {
    font-size: 11px;
    padding: 2px 6px;
    margin-top: -5px;
  }

  .mainImage {
    position: relative;
    top: 58px;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 9 / 4;
    text-align: right;
    padding-left: 5%;
    box-sizing: border-box;
  }

  .mainImage img {
    width: 100%;
    object-fit: cover;
  }
    
  .catchlead {
    padding: 0 3%;
    margin-top: 4rem;  
  }
}

/* CSS for section section:rounds */
.rounds-section {
    margin: 60px 0;
}
.round-report {
    margin-bottom: 80px; 
}
.round-report:last-child {
    margin-bottom: 0;
}
.round-header {
    align-items: center;
    gap: 15px;
}
.round-tag-wrapper {
    background-color: #F00004;
    padding: 2px 15px;
    height: auto;
    display: block;
    align-items: center;
    width: 80px;
}
@media (max-width: 768px) {
  .round-tag-wrapper {
    width: 60px;
  }
}

.round-tag-text {
    color: #000;
    font-weight: 700;
    font-size: 18px;
}
@media (max-width: 768px) {
  .round-tag-text {
    font-size: 14px;
  }
}

.round-title {
    margin: 0;
    font-weight: 700;
    font-size: 24px;
    line-height: 28px;
}
.round-title .venue {
    font-size: 32px;
}
@media (max-width: 768px) {
  .round-title .venue {
    font-size: 26px;
  }
}

.round-title .date {
    font-weight: 400;
    font-size: 18px;
    margin-left: 0.5em;
}
@media (max-width: 768px) {
  .round-title .date {
    display: block;
    margin-left: 0;     /* 横並び用の余白をリセット */
    line-height: 20px;
  }
}

.round-divider {
    border: 1px solid #FF0004;
    margin-bottom: 1rem;
}
.photo-grid {
    display: grid;
    gap: 10px;
}
.photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-grid a {
  width: 100%;
  height: 100%;
  display: block;
}

.photo-grid picture,
.photo-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.photo-grid.grid-layout-1 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, auto);
}
.photo-grid.grid-layout-1 img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.photo-grid.grid-layout-2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, auto);
}
.photo-grid.grid-layout-2 img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.photo-grid.grid-layout-3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, auto);
}
.photo-grid.grid-layout-3 img {
  width: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 768px) {
    .round-report {
        margin-bottom: 4rem;
    }
    .round-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        grid-template-rows: auto;
    }
    .photo-grid img {
        grid-area: auto !important; /* Reset grid area for simple flow */
    }
}

/* スマホ時だけカルーセル表示、PCではグリッド */
.mobile-only {
  display: none !important;
}
@media (max-width: 768px) {
  /* PCのグリッドは非表示 */
  .grid-layout-1,
  .grid-layout-2,
  .grid-layout-3 {
    display: none !important;
  }

  /* カルーセル表示 */
  .mobile-only {
    display: grid !important;
    overflow: hidden;
  }

  .swiper {
    width: 100%;
    height: auto;
    position: relative; /* ナビゲーションボタンの位置基準 */
  }
    
    /* スライド下にスペース確保 */
    .swiper-slide {
      position: relative;
      padding-bottom: 2rem; /* ページネーションの分だけ余白確保 */
    }
    
  .swiper-slide picture,
  .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }
    
  #swiper-round2 {
    height: 64vw; /* 横幅の64% → 比率固定 */
    position: relative;
    padding-bottom: 2rem;  
  }

  #swiper-round2 .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
    #swiper-round2 .portrait-slide img {
    width: 48%;
    margin: 0 auto;
}

    
  /* ナビゲーションボタン */
  .swiper-button-next,
  .swiper-button-prev {
    color: white!important;
    top: 40% !important;
    width: 40px;
    height: 40px;
    z-index: 10;
  }

  .swiper-button-prev {
    left: 10px !important;
  }

  .swiper-button-next {
    right: 10px !important;
  }

  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 20px !important;
  }

  /* ページネーション位置調整 */
    /* ページネーションを画像の下に固定 */
    .swiper-pagination {
      position: absolute;
      bottom: 0.5rem !important; /* 画像下に表示 */
      left: 0;
      width: 100%;
      text-align: center;
      z-index: 10;
    }

  .swiper-pagination-bullet {
    background: darkgrey !important;
    opacity: 0.6;
  }

  .swiper-pagination-bullet-active {
    background: #ff0004 !important;
    opacity: 1;
  }
}


/* モバイル用グリッド（正方形・3列） */
.grid-layout-mobile {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 0;
}

.grid-layout-mobile a {
  aspect-ratio: 1 / 1;
  display: block;
  overflow: hidden;
}

.grid-layout-mobile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 表示切り替え */
.desktop-only {
  display: none;
}

@media (min-width: 769px) {
  .mobile-only {
    display: none;
  }
  .desktop-only {
    display: block;
  }
}
@media (min-width: 769px) {
    .glightbox-clean .gclose, .glightbox-clean .gnext, .glightbox-clean .gprev {
        background-color: rgba(0, 0, 0, 0)!important;
    }
}

@media (max-width: 768px) {
    .glightbox-mobile .goverlay {
        opacity: 0.8 !important;
    }
    .glightbox-clean .gprev,
    .glightbox-clean .gnext {
        top: 47% !important;
    }
    .glightbox-clean .gnext {
        right: 10px !important;
        width: 15px !important;
    }
    .glightbox-clean .gprev {
        left: 10px !important;
        width: 15px !important;
    }
    .glightbox-clean .gclose, .glightbox-clean .gnext, .glightbox-clean .gprev {
    background-color: rgba(0, 0, 0, 0) !important;
    }
    .gclose svg, .gnext svg, .gprev svg {
        width: 20px !important;
    }
}


.mainBox .banArea {
    width: 80%;
    margin: 0 auto;
    padding: 1rem 0;
}
@media screen and (max-width: 979px) {
.mainBox .banArea {
    width: 90%;
    margin: 0 auto;
    }
}

.mainBox .banArea .banBox {
    border: 1px #333 solid;
    margin: 2rem 0;
}


.custom-pagination {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  position: absolute;
  bottom: 1rem;
  left: 0;
  width: 100%;
  z-index: 10000;
}
.custom-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}
.custom-dot.active {
  background-color: #ff0044;
}

@media screen and (max-width: 768px) {
    .custom-pagination {
        bottom: 8rem;
    }
}
@media screen and (max-width: 768px) {
  .glightbox-container .gslide-image img {
    max-height: 50vh !important; /* 表示領域の50%以内に収める */
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }
}

@media screen and (max-width: 768px) {
  .glightbox-clean .gclose {
    top: 180px !important;
    right: 10px !important;
    position: absolute !important;
    z-index: 1001 !important;
  }

  .glightbox-container {
    overflow: visible !important;
  }
}

/* 横向き（ランドスケープ）の場合に少し位置を変える */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .glightbox-clean .gclose {
    top: 10px !important;     /* 上から10pxに */
    right: 10px !important;   /* 右から10pxに */
  }
}
/* スマホ横向き（ランドスケープ）時にポップアップ画像を大きく表示 */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .glightbox-clean .ginner-container {
    max-width: 85vw !important;
    max-height: 85vh !important;
    width: auto !important;
    height: auto !important;
  }

  .glightbox-clean .gslide-image img {
    max-width: 100% !important;
    max-height: 90vh !important;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }
}
/* スマホ横向き用（Landscape時にドットをもっと下へ） */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .custom-pagination {
    bottom: 2rem; /* 画面下ギリギリに近づける */
  }
}