﻿/* About セクション */
.sec-about {
  text-align: center;
  padding: 0 0;
}

.sec-about h2 picture > img {
  width: 47%;
  max-width: none;
  height: auto;
  display: block;
  margin: 4vw auto 0;
}

@media (max-width: 767px) {
  .sec-about {margin-top:15vw;}
  .sec-about h2 picture > img {
    width: 80vw;
  }
}

.about-gallery {
  margin: 70px auto 0;
  display: flex;
}

.about-gallery__item {
  display: block;
  flex: 1 1 0;
}

.about-gallery__item--right {
  margin-top: 2.5vw;
  flex: 1.06;
}

.about-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
}


.about-gallery__item--left img {
  width: 100%;
  height: 32vw;
  max-height: 32vw;
  object-fit: contain;
  object-position: calc(100% - 13.3vw) top;
}

.about-split {
  width: 82%;
  margin: 34px auto 0;
  display: flex;
  gap: 3.6vw;
  align-items: center;
}

.about-split__text {
  flex: 0 0 62%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size:18px;line-height:2em;
  color:#dcdcd7;
}

@media (max-width: 767px) {
  .about-split__text {
    font-size:1.54vw;
  }
}

.about-split__text p {
  text-align:left;
}
.about-split__media { flex: 0 0 38%; }

.about-split__media img {
  width: 70%;
  display: block;
  margin: 0 auto 5vw;
}

.about-split__media img.tate{
  width: 45%;
  display: block;
  margin: 0 auto 5vw 35%;
}

@media (min-width: 768px) {
  .about-split__media img {
    display: block;
    margin-left: auto;
    margin-right: 4vw;
  }
}


/* SP：縦並び */
@media (max-width: 767px) {

  .about-gallery {
    display: block;
    margin-top: 18vw;
  }
  .about-gallery .about-gallery__item--left {
    width:75%;
    margin:0 auto 10vw;
  }

  .about-gallery__item + .about-gallery__item {
    margin-top: 14px;
  }

  /* SPは自然サイズに戻す（固定高を解除） */
  .about-gallery__item--left img {
    height: auto;
    max-height: none;
    object-position: 50% 50%;
  }

  .about-split {
    display: block;
    margin-top: 22px;
    width:92%;
  }
  .about-split p {
    font-size:2.8em;
    line-height:1.8em;
  }
  .about-split__text,
  .about-split__media {
    width: 100%;
  }

  .about-split__media {
    margin-top: 14px;
    display:none;
  }
}


.readmore{
  --rm-pad-left: 4vw;
  position: relative;
  display: inline-block;
  color: #dcdcd7;
  font-size: 0.8vw;
  letter-spacing: 0.5px;
  text-shadow: 0 0 5px rgba(0,0,0,0.4);
  margin-right: 0.5rem;
  text-decoration: none;
  align-self: flex-end;
}

.readmore span {
  display: inline-block;
  border: 1px solid #dcdcd7;
  padding-left: var(--rm-pad-left);
  padding-top: 8px;
  padding-right: 14px;
  padding-bottom: 8px;
  line-height: 1;
  position: relative;
  z-index: 1;
  transition: opacity 0.4s ease;
}

/* hover（テキスト枠＋横線） */
.readmore:hover span,
.readmore:hover::before{
  opacity: 0.5;
}
.readmore:hover{
  cursor: pointer;
}

/* 横線 */
.readmore::before{
  content:"";
  position:absolute;
  top: 50%;
  right: calc(100% - 3vw);
  width: 7vw;
  height: 1px;
  background:#dcdcd7;
  transform: none;
  margin-top: -0.5px;
  z-index:2;
}

@media (max-width: 767px) {
  .readmore{
    --rm-pad-left: 17vw;
    font-size: 3.2vw;
    margin-top: 10px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    user-select: none;
  }
  .readmore span {
    padding-top: 15px;
    padding-right: 14px;
    padding-bottom: 15px;
  }
  .readmore::before{
    right: calc(100% - 12vw);
    width: 29vw;
  }
}

/* about-gallery2：左右反転 */
.about-gallery2 {
  margin-top:5vw;
  flex-direction: row-reverse;
}

.about-gallery2 .about-gallery__item--left img {
  object-position: 15.0vw top;
}

@media (max-width: 767px) {
  .about-gallery2 {
      margin-top:23vw;
  }
  .about-gallery2 .about-gallery__item--left img {
      height: auto;
      max-height: none;
      object-position: 50% 50%;
  }
}


/* about-split2：左右反転（PCのみ） */
.about-split2 {
  margin-top:4vw;
  flex-direction: row-reverse;
}

/* text / media 内部の寄せ方向も反転 */
.about-split2 .about-split__text {
  align-items: flex-start;
}

.about-split2 .about-split__text p {
  text-align: left;
}

/* SPでは既存の縦並び仕様をそのまま */
@media (max-width: 767px) {
  .about-split2 {
    flex-direction: column;
    padding-bottom:7vw;
  }
}


#tannou img.tit {
  width: 50vw;
  height: auto;
  margin: 13vw auto 0;
}
#tannou img.ban {
  width: 50vw;
  max-width:700px;
  height: auto;
  margin: 8vw auto 0;
}

#olive img{
  width: 100%;
  height: auto;
  margin: 13vw auto 0;
}

@media (max-width: 767px) {
  #tannou img.tit {
    width: 65%;
    margin: 22vw auto 0;
  }
  #tannou img.ban {
    width: 90%;
    margin: 16vw auto 0;
  }
}



/* Meister セクション */
.sec-meister {
  text-align: center;
  padding: 0 0;
}

.sec-meister h2 picture > img {
  width: 47%;
  max-width: none;
  height: auto;
  display: block;
  margin: 10vw auto 0;
}

@media (max-width: 767px) {
  .sec-meister {margin-top:15vw;}
  .sec-meister h2 picture > img {
    width: 80vw;
  }
}
/* Meister セクション */




/* ブレンド マイスター */

/* ===== Meister intro ===== */
.meister-intro{
  padding: 15px 0 0;
}

.meister-intro__inner{
  width:100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  gap:0;
  align-items: stretch;
}

/* 左ブロック 50% */
.meister-intro__left{
  flex: 1;
}
.meister-intro__left img{
  width: 85%;
  height: auto;
  display: block;
}
@media (min-width: 768px) and (max-width: 1024px) {
  .meister-intro__left img{
    width: 95%;
  }
}

/* 右ブロック 50% */
.meister-intro__right{
  margin-right:8%;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
  justify-content: center;
  gap: 18px;
}

/* 右ブロックの上段 */
.meister-intro__head{
  flex: 0; 
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
}

.meister-role{
  margin: 0 0 10px;
  font-size: clamp(14px, 1.7vw, 16px);
  line-height: 1.7;
  color:#dcdcd7;
}

.meister-name{
  margin: 0 0 0 -7px;
  font-size: clamp(25px, 3.1vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.15em;
  color:#dcdcd7;
}

.meister-name-en{
  margin: 0;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.7;
  letter-spacing: 0.02em;
  color:#dcdcd7;
}

/* サイン画像のみ右寄せ */
.meister-sign{
  margin-top: 18px;
  text-align: right;
}
.meister-sign img{
  margin-top: -25px;
  width: 40%;

  height: auto;
  display: inline-block;
}

/* PROFILE */
.meister-profile{
  margin-top: 0;
  text-align: left;
}

.meister-profile__title{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  color:#dcdcd7;
}

.meister-profile__label{
  font-size: 18px;
  letter-spacing: 0;
}

.meister-profile__line{
  flex: 1;
  height: 1px;
  background: #dcdcd7;
}

.meister-profile__body p{
  margin: 0;
  font-size: 14px;
  /*font-size: clamp(14px,1.7vw, 16px);*/
  line-height: 1.55;
  color:#dcdcd7;
}

/* ===== SP（縦並び） ===== */
@media (max-width: 767px){
  .meister-intro{
    padding: 50px 0 0;
  }

  .meister-intro__inner{
    flex-direction: column;
    gap: 26px;
  }

  .meister-intro__left img {
    width:100%;
  }


  .meister-sign{
    display: none;
  }

  /* 右カラムの中央寄せは不要なので解除 */
  .meister-intro__right{
    justify-content: flex-start;
    gap: 0;
    margin:0 3.5% 0;
  }


  .meister-role{
    font-size: clamp(14px, 1.7vw, 16px);
  }

  .meister-name{
    font-size: clamp(24px, 3.1vw, 28px);
  }

  .meister-name-en{
    font-size: clamp(14px, 2vw, 18px);
  }


  .meister-profile{
    margin-top: 50px;
  }

}


/* ===== Duccio message block ===== */
.meister-duccio{
  margin: 70px auto 0;
}

.meister-duccio__inner{
  width: 80%;
  margin: 0 auto;
  background: #dcdcd7;
  padding: 50px;
  box-sizing: border-box;
  position: relative;
}

.meister-duccio__inner::before{
  content:"";
  position: absolute;
  inset: 8px;
  border: 1px solid #777059;
  pointer-events: none;
}

.meister-duccio__head{
  text-align: center;
  padding: 0 10px 20px;
  color: #777059;
}

.meister-duccio__ttl1{
  margin: 0 0 10px;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0;
}

.meister-duccio__ttl2{
  margin: 0;
  font-size: clamp(26px, 2.6vw, 32px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
  
}

/* 2カラム */
.meister-duccio__cols{
  display: flex;
  gap: 0; /* 要件：左右ピタ */
  align-items: stretch;
}

/* 左：画像（安全表示） */
.meister-duccio__img{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.meister-duccio__img img{
  width: 90%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* 右：テキスト（50%） */
.meister-duccio__text{
  flex: 1;
  padding: 22px;
  box-sizing: border-box;
  text-align: left;
  height:24vw;
}

.meister-duccio__scroll{
  height: 100%;
  overflow: auto;
  color: #777059;
  -webkit-overflow-scrolling: touch;
}

.meister-duccio__scroll p{
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.75;
  color: #777059;
  padding-right:20px;
  font-weight:700;
}
.meister-duccio__scroll p:last-child{
  margin-bottom: 0;
}

/* ===== SP ===== */
@media (max-width: 767px){
  .meister-duccio{
    margin-top: 55px;
  }

  .meister-duccio__inner{
    width: 90%;
    padding: 40px 18px 18px;
  }

  .meister-duccio__head{
    padding: 14px 8px 35px;
  }

  .meister-duccio__ttl1{
    font-size: 18px;
  }
  .meister-duccio__ttl2{
    font-size: 22px;
    letter-spacing:0;
  }

  /* 縦並び */
  .meister-duccio__cols{
    flex-direction: column;
    align-items: stretch;
  }

  /* SP：画像は自然な高さに */
  .meister-duccio__img img{
    height: auto;
    margin-bottom:10px;
  }

  .meister-duccio__text{
    padding: 16px 16px;
    flex: 0 0 auto; 
    height: 40vh;
  }
  .meister-duccio__scroll{
    max-height: 60vh;
    height: 100%;
    overflow: auto;
  }

  .meister-duccio__scroll p{
    font-size: 16px;
    line-height: 1.5;
    padding-right:18px;
  }
}

/* ===== Duccio message block：飾り画像（olive.png） ===== */
.meister-duccio__inner{
  position: relative;
}

/* 飾り画像：左上に“はみ出し”配置 */
.meister-duccio__deco{
  position: absolute;
  top: -3%;
  left: -3%;
  width: 20%;
  height: auto;
  display: block;
  z-index: 3;         /* 内側線(::before)より上に */
  pointer-events: none;
}

/* SP：30% */
@media (max-width: 767px){
  .meister-duccio__deco{
    top: -4%;
    left: -4%;
    width: 40%;
  }
}




/* ===== Duccio custom scrollbar（modal同仕様） ===== */

/* 右側ブロックを “スクロールバー配置の基準” */
.meister-duccio__text{
  position: relative; /* ★追加 */
}

/* ネイティブバーは見せない */
.meister-duccio__scroll{
  scrollbar-width: none;          /* Firefox */
}
.meister-duccio__scroll::-webkit-scrollbar{
  width: 0;
  height: 0;
}

/* 自作スクロールバー（右側） */
.meister-duccio__scrollbar{
  position: absolute;
  top: 22px;              /* .meister-duccio__text のpaddingと合わせる */
  right: 10px;
  bottom: 22px;
  width: 18px;
  pointer-events: auto;
  z-index: 5;
}

/* レール（細い線） */
.meister-duccio__scrollbar::before{
  content:"";
  position:absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(118,112,89,.45);
  border-radius: 999px;
  pointer-events: none;
}

/* つまみ */
.meister-duccio__scrollthumb{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  background: #767059;
  height: 40px;           /* JSで上書き */
  top: 0;                 /* JSで上書き */
  opacity: 0;
  transition: opacity .2s ease;

  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}
.meister-duccio__scrollthumb:active{
  cursor: grabbing;
}

/* 透明の当たり領域 */
.meister-duccio__scrollthumb::before{
  content:"";
  position:absolute;
  inset: -6px;
}

/* スクロールできる時だけ見せる（JSが付与） */
.meister-duccio__scrollthumb.is-visible{
  opacity: 1;
}

/* ===== iPhone SE: “スクロール中はつまみ消し” ===== */
.is-iphone-se .meister-duccio__scrollbar.is-scrolling::before{
  opacity: 0.95;
}
.is-iphone-se .meister-duccio__scrollbar.is-scrolling .meister-duccio__scrollthumb{
  opacity: 0 !important;
}

/* SP時：.meister-duccio__text のpaddingが変わるのでバー位置も合わせる */
@media (max-width: 767px){
  .meister-duccio__scrollbar{
    top: 16px;
    bottom: 16px;
    right: 10px;
  }
}




/* こちらの記事もおすすめ */

.recommend-head{
  display: flex;
  justify-content: center;
  align-items: center;
  color: #dcdcd7;
  text-align: center;
  padding: 18px 10px;
  gap:8px;
  margin-top:60px;
}

.recommend-head::before,
.recommend-head::after{
  content: "";
  width: 18px;
  height: 1px;
  background: #dcdcd7;
}

.recommend-head::before{
  transform: rotate(50deg) translateY(2px);
}

.recommend-head::after{
  transform: rotate(-50deg) translateY(2px);
}

.recommend-head__label{
  font-size: clamp(20px, 2vw, 24px);
  font-weight:700;
  line-height: 1.1;
  transform: translateY(-2px);
  white-space: nowrap;
}
@media (max-width: 767px){
  .recommend-head__label{
    font-size: clamp(22px, 4vw, 28px);
    line-height: 1.1;
    transform: translateY(-2px);
    white-space: nowrap;
  }

}


/* ドウッチョ氏の魅力 バナー */
#charm img.ban {
  width: 48vw;
  height: auto;
  margin: 20px auto 0;
}
@media (max-width: 767px) {
  #charm img.ban {
    width: 100%;
    margin: 15px auto 0;
  }
}







/* New Quest セクション：タイトルだけ325pxで縦中央 / 下に画像100% */
.sec-newquest{
  margin-top: 15vw;
  text-align: center;
  padding: 0;
  background: #dcdcd7;
  display: block; /* section全体はflexにしない */
}

/* タイトル枠：縦横ど真ん中固定 */
.sec-newquest .newquest-title{
  height: 325px;
  margin: 0;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* ★ここが重要：picture を幅100%にして中央寄せの土台にする */
.sec-newquest .newquest-title picture{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* タイトル画像：必ず中央 */
.sec-newquest .newquest-title picture > img{
  width: 47%;
  max-width:700px;min-width:500px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* 下の画像は100% */
.sec-newquest .newquest-image img{
  width: 100%;
  height: auto;
  display: block;
}

/* SP */
@media (max-width: 767px){
  .sec-newquest{
    margin-top: 25vw;
  }

  .sec-newquest .newquest-title{
    height: 200px;
  }

  .sec-newquest .newquest-title picture > img{
    width: 80vw;
    margin: 0 auto;
    min-width:200px;
  }
}

/* New Quest セクション */

