/*
Theme Name: Yuge Wakoucha
Description: ゆげ製茶・和紅茶特設サイトのオリジナルテーマ
Version: 0.1.0
Text Domain: yuge-wakoucha
Requires PHP: 7.4
*/

/* =========================

   header footer 共通

========================= */

.header-logo,
.footer-logo {
    max-width: 205px;
    width: 48%;
}

.header-logo img,
.footer-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.header-nav-area,
.footer-nav-area {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* ナビ */
.main-menu {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 30px);
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.main-menu a {
    color: #34312b;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
}

.global-nav .main-menu a::after {
    content: "";
    position: absolute;
    left: 15%;
    bottom: -6px;
    width: 70%;
    height: 1px;
    background-color: #344238;

    /* 最初は透明 */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.global-nav .main-menu a:hover::after {
    opacity: 1;
}

/* 言語切り替え */

.language-switch {

    display: flex;

    gap: 5px;

    font-family: "Jost", sans-serif;

    font-weight: 400;

    letter-spacing: 0.05em;

}



.language-switch a {

    width: 44px;

    height: 44px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid #777;

    color: #333;

    text-decoration: none;

}

.language-switch .active {
    background-color: #333;
    color: #fff;
}

/* =========================

   header

========================= */

.site-header {

    width: 100%;

    height: 90px;

    padding: 0 5%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    position: relative;

    z-index: 100;

}


/* =========================

   ハンバーガーメニュー

========================= */

.hamburger,
.sp-nav {
    display: none;
}


@media screen and (max-width: 1100px) {

    /* PCヘッダーを消す */
    .header-nav-area {
        display: none;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;


        width: 34px;
        height: 26px;


        padding: 0;

        border: none;

        background: none;

        cursor: pointer;



        position: relative;

        z-index: 1001;

    }



    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #344238;
        transition: 0.3s;
    }



    /* 開いたメニュー */

    .sp-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #f4f6ec;
        z-index: 1000;
        padding: 120px 40px 40px;
    }

    .sp-nav.active {
        display: block;
    }

    .sp-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }



    .sp-nav li {

        margin-bottom: 28px;

    }



    .sp-nav a {

        color: #344238;

        text-decoration: none;

        font-size: 18px;

    }

}

@media screen and (max-width: 767px) {



    .hamburger.active span:nth-child(1) {

        transform: translateY(12px) rotate(45deg);

    }



    .hamburger.active span:nth-child(2) {

        opacity: 0;

    }



    .hamburger.active span:nth-child(3) {

        transform: translateY(-12px) rotate(-45deg);

    }



}

/* =========================

   footer

========================= */



.site-footer {

    width: 100%;

    padding: 80px 5% 100px;

}



.footer-inner {

    border-top: 1px solid #f0f3e9;

    padding-top: 40px;

    display: flex;

    align-items: center;

    justify-content: space-between;



}



 /* フッター コピーライト */

.footer-copyright {

    margin-top: 90px;

    text-align: center;

    font-size: 12px;

    letter-spacing: 0.05em;

    color: #999;

}



  /* SP footer*/

  @media screen and (max-width: 767px) {

      .footer-copyright {

          margin-top: 50px;

          font-size: 10px;

      }

  }



/* SP タブレット　footer*/



@media screen and (max-width: 1100px) {



  .site-footer {

    padding: 40px 30px 50px;

    margin-top: 0px;

  }



  .footer-inner {

    padding-top:20px;

    display: block;

    border-top: 1px solid #dfe0d2;

  }



  .footer-logo {

    width: 180px;

    margin-bottom: 45px;

  }



  /* JP・ENをSPでは非表示にする場合 */

  .site-footer .language-switch {

    display: none;

  }



  .footer-nav-area {

    display: block;

  }



  .site-footer .main-menu {

    display: grid;



    /* 3行 × 2列 */

    grid-template-rows: repeat(3, auto);

    grid-auto-flow: column;



    row-gap: 28px;

    column-gap: 50px;



    margin: 0;

    padding: 0;

  }



  .site-footer .main-menu a {

    font-size: 14px;

  }



}



/* ========================================

   FV

======================================== */

.fv-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;

    /* 下側をグラデーション透過 */
  -webkit-mask-image: linear-gradient(
    to bottom,
    black 75%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    black 75%,
    transparent 100%
  );
}

.fv-inner{
  display:flex;
  max-width: 1350px;
  margin:0 auto;
  justify-content: space-evenly;
}

.first-view .text-area,
.first-view .FV_wakocha {
  position: relative;
  z-index: 2;
}

.first-view img.fv-bg-logo {
  position: absolute;
  left: -3%;
  top: auto;
  bottom: 30px;
  width: 250px;
  height: auto;
  opacity: 1; /* 確認用 */
  z-index: 3;
  pointer-events: none;
}


/*FV PC*/

.first-view {
  width: 100vw;
  max-width: none;
  margin: -90px 0 0 calc(50% - 50vw);
  padding: 190px 9% 0;
  height: clamp(500px, 50vw, 700px);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #fff;
}

.fv-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;

    /* 下部をグラデーション透過 */
    -webkit-mask-image: linear-gradient(
        to bottom,
        black 90%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        black 90%,
        transparent 100%
    );
}

h1{
  max-width:570px;

}

/* FV左下の装飾ロゴ */

.first-view img.fv-bg-logo {

  position: absolute;
  left: -30px;
  bottom: -20px;
  width: 24%;
  height: auto;
  max-width: none;
  opacity: 0.08;
  z-index: 1;
  pointer-events: none;

}

.first-view .text-area{
  width:53%;
}

.first-view p{

  margin-top: 45px;
  color:#34312b;
}

.first-view .FV_wakocha{

  width: 45%;
  height:auto;
  transform: translateX(50px);

}

/*英語版*/
.en first-view{
  gap:0px;
}

.en .first-view .text-area{
  width: 50%;
  flex:none;
}



.en .first-view .FV_wakocha{
  width: 40%;
}


/*FV SP*/


/* 背景動画 */
.first-view-sp .fv-video {
  z-index: 0;
}

/* 動画以外の内容を前面へ */
.first-view-sp > :not(.fv-video) {
  position: relative;
  z-index: 1;
}

.first-view-sp .fv-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.first-view-sp{

  margin: -90px auto 0;
  padding:120px 7% 40px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}


.first-view-sp h1{

  width: 70%;

  margin-top: 10px;

  margin-bottom:40px;

}



.first-view-sp p{

  margin:0px auto 0;

  color:#34312b;

}



.first-view-sp .FV_wakocha{

  width:90%;
  margin: 0 auto;
  height:auto;

  display:block;

}



/* FV レスポンシブ対応 */

/* PC */
.first-view.pc-only {
    display: flex;
}

.first-view-sp.sp-only {
    display: none;
}

/* SP */
@media screen and (max-width: 767px) {

    .first-view.pc-only {
        display: none;
    }

    .first-view-sp.sp-only {
        display: block;
    }

}




/* ========================================

   toppage brand item story

======================================== */



.logo_kamon{

    margin: 0 auto 5px;

    width: 32px;

}



.image-area img {

    width: 100%;

    height: auto;

    display: block;

    border-radius: 10px;

}



.wide-image {

    width: 100%;

    height: 355px;

    object-fit: cover;

    display: block;

}



/* PC：見出しと本文を横並び */

.text-heading-flex {

    display: flex;

    align-items: flex-start;

    gap: 60px;

}



.text-heading-flex h3 {

    flex: 0 0 35%;

    margin: 0;

}



.text-heading-flex .paragraph-group {

    flex: 1;

    min-width: 0;

}



/* SP：縦並び */

@media screen and (max-width: 1100px) {

    .text-heading-flex {

        flex-direction: column;

        gap: 30px;

    }



    .text-heading-flex h3 {

        flex: none;

    }

}



@media screen and (max-width: 767px) {

    .sp-text-left {

        text-align: left;

    }

}

@media (max-width: 767px) {
  .award-title.pc-only {
    display: none;
  }
}

/* ========================================

   brand Page

======================================== */


.award {

    max-width:900px;
    width:100%;
    margin:64px auto 92px;

}



.award-title {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    align-items: stretch;
    gap: 13px;
    margin-bottom: 36px;
}

.award-title h3 {
    margin: 0;
    min-width: 0;
    text-align: center;
    padding:5px 0;
}

.award-emblem {
    position: relative;
    display: block;
    min-width: 0;
}

.award-title .award-emblem img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
}

.award-title-sp{
  max-width:500px;
  margin: 0 auto 30px;
}

.award p {
    width: 80%;
    margin: 0 auto 1em;
}

@media screen and (max-width: 767px) {
    .award {
        width: 100%;
        margin-bottom: 72px;
    }

    .award p {
        width: 100%;
        margin-bottom: 1em;
    }

    .award-title {
        grid-template-columns: 20px minmax(0, 1fr) 20px;
        gap: 8px;
    }
}

/* ========================================

   item Page

======================================== */



h4{

  font-size: 24px;

  font-family: "Shippori Mincho", serif;

  margin: 24px 0;

  text-align: center;

}



#items {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 30px;

}



/* 中間幅：2列 */

@media screen and (max-width: 1100px) {
    #items {
        grid-template-columns: repeat(2, 1fr);

        gap: 24px;

    }

    .item .item_img {

        height: 280px;

    }

}

/* SP：1列 */

@media screen and (max-width: 680px) {
    #items {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .item .item_img {
        width: 300px;
        height: 250px;
    }
}
.item{
  padding: 20px;
  background-color: #f5f2e8;
  border-radius: 12px;
  flex:1;
}

.item_text{
  @media screen and (min-width: 767px) {
  text-align: center;
  }
  margin-bottom: 32px;
}
.item-inner{
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.item .item_img {

    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    @media screen and (max-width: 767px) {
        object-fit: contain;
    }
  }

.item .minititle{
  padding:8px;
  margin-bottom: 26px;
  background-color: #fff;
}

.item-button img{
    width: 270px;
    margin: 30px auto 0px;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.item-button:hover {
    opacity: 0.7;
}


.online_button img{
    max-width: 500px;
    width:90%;
    margin: 50px auto 0px;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.online_button:hover {
    opacity: 0.7;
}

.item2 {
    width: 80%;
    margin: 50px auto 0;
    padding: 46px;
    background-color: #f5f2e8;
    border-radius: 12px;
    display:flex;
    gap:5%;
}
.item2 .image-area{
  width: 1fr;
}

.item2 .text-area {
    width: 4fr;
}
.item2 .image-area img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}
.item2 .minititle {
    padding: 8px;
    margin-bottom: 26px;
    background-color: #fff;
}

/*中間*/

@media screen and (max-width: 1100px) {
  .item2 {
    width: 90%;
    margin: 60px auto 0;
    padding: 20px;
    display: flex;
    gap: 5%;
  }

  .item2 .image-area{
  width: 1fr;
}

.item2 .text-area {
    width: 4fr;
}
}

/*sp版*/
@media screen and (max-width: 767px) {
  .item2 {
    width: 100%;
    margin: 40px auto 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .item2 .text-area {
    width: 100%;
    order: 1;
  }
  .item2 .image-area {
    width: 100%;
    height: auto; 
    margin: 0;
    order: 2;
  }
  .item2 .image-area img {
    width: 70%;
    margin:0 auto;
    height: auto; 
    object-fit: contain;
    display: block;
    border-radius: 12px;
  }
  .item2 .minititle {
    padding: 0;
    margin-bottom: 30px;
    background-color: transparent;
  }
}



/* =======================================
   story Page
======================================== */
.inner2{
  width: 90%;
  margin: 0 auto;
}

.inner2 p{
margin-bottom: 1em;
}

.maxwidth{
  max-width: 900px;
}


/* お問い合わせページへのボタン*/
.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    max-width: 500px;
    height: 80px;
    margin: 50px auto 50px;


    background: linear-gradient(
        90deg,
        #eef2e4 0%,
        #e9eedf 50%,
        #eef2e4 100%
    );
    border-radius: 12px;
    font-size: 24px;
    letter-spacing: 0.08em;
    color: #30392f;
    text-decoration: none;
}


@media screen and (max-width: 767px) {

    .contact-button {
        width: 90%;
        height: 70px;
        margin: 30px auto;
        padding: 10px 20px;
        font-size: 16px;
        text-align: center;
    }
}

.contact-button {
    transition: opacity 0.3s ease;
}

.contact-button:hover {
    opacity: 0.7;
}



/* ========================================
   Contact Page
======================================== */

.contact-page__title {

  font-size: 42px;
  margin: 10px 0 0px;
  padding-bottom: 20px;
  text-align: center;
  font-family: "Shippori Mincho", serif;
  font-weight: 400;
  letter-spacing: 0.04em;

}

.contact-page {
    padding: 30px 0 120px;
    background-color: #e9eedf;
}

.contact-page__inner {
    width: min(900px, calc(100% - 48px));
    margin: 0 auto;
    padding: 40px 50px 40px;
    background-color: #fff;
    border-radius: 12px;
}

@media screen and (max-width: 767px) {

.contact-page__inner {
    padding: 40px 20px 0px;
}

.contact-page__title {
  font-size: 23px;
  margin-bottom:-30px;
}

.wakocha-contact__item{
  padding: 0;
}
}


.wakocha-contact__message {
  margin: 0 0 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid #d8d7ce;
}


.wakocha-contact__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.06em;
}



.is-required,
.is-optional {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 17px;
  box-sizing: border-box;
  padding: 0 7px;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  position: relative;
  top: 12px;
}



.is-required {
  color: #fff;
  background-color: #59664e;
}

.is-optional {
  color: #77776e;
  border: 1px solid #aaa99e;
}


/* 入力欄 */

.wakocha-contact__input,
.wakocha-contact__textarea {

  display: block;
  width: 100%;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.65);
  border: 1px solid #cfcec4;
  border-radius: 0;
  margin-top:-20px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;

}



.wakocha-contact__input {

  height: 40px;

  padding: 5px 14px;

}



.wakocha-contact__textarea {

  min-height: 190px;

  padding: 14px;

  resize: vertical;

}



.wakocha-contact__input:focus,

.wakocha-contact__textarea:focus {

  outline: none;

  border-color: #59664e;

}





/* ラジオボタン */



.wakocha-contact__radio .wpcf7-form-control {

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 14px 30px;

}



.wakocha-contact__radio .wpcf7-list-item {

  margin: 0;

}



.wakocha-contact__radio .wpcf7-list-item label {

  display: flex;

  align-items: center;

  gap: 8px;

  cursor: pointer;



  font-size: 14px;

  line-height: 1.6;

}



.wakocha-contact__radio input[type="radio"] {

  width: 16px;

  height: 16px;

  margin: 0;



  accent-color: #59664e;

}





/* 送信ボタン */



.wakocha-contact__submit {
  margin-top: 50px;
  text-align: center;
}
.wakocha-contact__button {
  width: 320px;
  max-width: 100%;
  padding: 17px 30px;
  color: #fff;
  background-color: #59664e;
  border: 1px solid #59664e;
  border-radius: 0;
  font-size: 16px;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: 0.3s;
}
.wakocha-contact__button:hover {
  color: #59664e;
  background-color: transparent;
}





/* ========================================

   SP

======================================== */

@media screen and (max-width: 767px) {
  .contact-page {
    padding: 30px 0 40px;
  }
  .contact-page__inner {
    width: calc(100% - 40px);
  }
  .contact-page__title {
    font-size: 25px;
  }
  .wakocha-contact__message {
    font-size: 16px;
  }

  .wakocha-contact__label {
    margin-bottom: 8px;
    font-size: 16px;
  }
  .wakocha-contact__radio .wpcf7-form-control {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .wakocha-contact__textarea {
    min-height: 170px;
  }
  .wakocha-contact__submit {
    margin-top: 10px;
  }
  .wakocha-contact__button {
    width: 100%;
  }
}



/* ========================================

   Header language switch: PC / tablet / SP

======================================== */

/* Hide mobile controls on desktop */

.mobile-header-controls {

    display: none;

}



@media screen and (max-width: 1100px) {

    .site-header .header-nav-area {

        display: none;

    }



    .site-header .mobile-header-controls {

        display: flex;

        align-items: center;

        gap: 18px;

        position: relative;

        z-index: 1002;

    }



    .mobile-header-controls .mobile-language-switch {

        display: flex;

        align-items: center;

        gap: 4px;

    }



    .mobile-header-controls .mobile-language-switch a {

        width: 36px;

        height: 36px;

        font-size: 12px;

    }



    .mobile-header-controls .hamburger {

        flex-shrink: 0;

    }

}



@media screen and (max-width: 380px) {

    .site-header .mobile-header-controls {

        gap: 10px;

    }



    .mobile-header-controls .mobile-language-switch a {

        width: 32px;

        height: 32px;

    }

}


@media screen and (max-width: 767px) {
    .text-area p {
        margin-bottom: 1em;
    }

    .text-area p:last-child {
        margin-bottom: 0;
    }
}

/* ブランドページ 冒頭メッセージ・動画 */
.brand-mv {
  max-width: 800px;
  margin: 0 auto 64px;
}

.brand-mv video {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .brand-mv {
    margin-bottom: 92px;
  }
}

.brand-concept{
  margin-top: 92px;
}
.brand-concept h3 {
  text-align: center;
}
.brand-concept p {
  text-align: left;
}
.brand-concept img {
  margin: 0 auto;
}

@media (min-width: 768px) {
  .brand-concept p {
    text-align: center;
  }
  .brand-concept{
  margin-top: 20px;
}
}
