@charset "UTF-8";

/* ==========
common
============= */

:root {
    --primary-title-green: #385723F7;
    --primary-body-green: #385723;
    --primary-querybtn-green: rgba(56, 87, 35, 0.90);
    --primary-contentbtn-green: rgba(56, 87, 35, 0.60);
    --primary-design-yellow: rgba(250, 237, 203, 0.40);
    --primary-desgin-green: rgba(148, 171, 113, 0.20);
    --primary-result-background-green: rgba(199, 217, 181, 0.20);
    --primary-background-brown: #F9F7F3;
    --contentwidth: 91.4%;
}

html {
    font-size: 62.5%;
}

body {
    font-family: "Shippori Mincho", Halant, serif;
    font-weight: 400;
    font-style: normal;
    color: var(--primary-body-green, #385723);
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
    /* 画像が元々持っているサイズまでは伸び縮み */
}

.headline {
    color: var(--primary-title-green, #385723F7);
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 20px 0;
}

.headline::before {
    background: var(--primary-title-green, #385723F7);
    content: '';
    display: block;
    width: 2px;
    height: 19px;
    margin: 0 auto;
}

.map {
    width: 100%;
    max-width: 330px;
    height: 200px;
    display: block;
    margin: 20px auto;
    border: none;
}

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝
JQuery Animation 
＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝制御 */

.fade-in {
    opacity: 0;
    transform: translateY(30px); /* ← ここが「下から」の動き */
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* common PC setting */
@media screen and (min-width: 769px) {
    .headline {
        font-size: 2.4rem;
        font-weight: 700;
        margin: 60px 13% 60px;
    }

    .headline::before {
        height: 31px;
    }

    .spBr { 
        display: none;
    }
}
/* PC 769px 設定 */


/* ==========
header
============= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    padding: 10px 4.5%;
    background-color: rgba(255, 255, 255, 0.95); 
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__topic,
.nav__topic,
.footer__topic {
    color: #000;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.0;
    white-space: normal;        /* 改行を許可 */
    word-break: normal;         /* 単語単位で改行 */
    overflow-wrap: break-word;  /* 長いURLなどは折り返す */
    flex: unset; 
}

.header__topic span,
.nav__topic span, 
.footer__topic span {
    color: #000;
    font-family: Halant;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0 40px 0 0;
}

.header__btn {
    width: 29px;
    height: 23px;
}

.nav__btn {
    width: 29px;
    height: 29px;
    position: relative;
    /* ← 配置基準にする */
    z-index: 1000;
    /* ← 前面に出す */
    cursor: pointer;
}

.mainimage {
  position: relative;
  width: 100%;
  height: auto;
  text-align: center;
  overflow: hidden;
}

.mainimage_sp {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 90px;
}   

.mainimage_pc {
    display: none;
    width: 100vw;
    height: auto;
}

.nav__list--pc {
    display: none;
}

/* header PC 表示 */
@media screen and (min-width: 769px) {
    .header {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 10;
        background: none;
        padding: 2rem 5%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .header__btn {
        display: none;
    }
    
    .mainimage_sp {
        display: none;
        margin-top: 90px;
    }
    .mainimage_pc {
        display: block;
        width: 100%;
        height: auto;
    }
    
    .mainimage {
        position: relative;
        width: 100%;
        margin: 0 auto;
        height: auto;
    }

    .header__topic {
        position: absolute;
        top: 40%;
        left: 5%;
        color: #fff;
        z-index: 10;
        font-size: 2.6rem;
        font-weight: 700;
        line-height: 1.4;
    }

    .header__topic span {
        display: block;
        font-size: 2.0rem;
        font-weight: 400;
        margin-top: 0.6rem;
        color: #fff;
    }
    .nav { 
        display: none;
    }

   .nav__list--pc {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0 auto;
        padding: 20px;
        display: flex;
        justify-content: flex-end;
        gap: 5px;
        background: rgba(255, 255, 255, 0.45);
        backdrop-filter: blur(5px);
        z-index: 10;
    }
    
    .nav__list--pc.fixed {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 55px;
        padding: 10px 5%;
        /* background-image: url("../images/fixedheader_background.png");
        background-position: center;
        background-size: cover; */
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(5px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        align-items: center;
    }

    .nav__list--pc.fixed::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 5%;
        transform: translateY(-50%);
        width: 300px;  /* ←画像サイズに調整 */
        height: 60px;
        background-image: url("../images/logo.png"); /* 画像パスに変更 */
        background-size: contain;
        background-repeat: no-repeat;
        background-position: left center;
        z-index: 1;
        pointer-events: none;
    }

    .nav-logo-link {
        position: fixed;
        top: 10px;     /* 調整 */
        left: 5%;
        width: 300px;  /* ロゴの幅に合わせて */
        height: 60px;  /* ロゴの高さに合わせて */
        z-index: 1000;
        display: block;
  }

    .pcnav_item { 
        font-size: 1.4rem;
        font-weight: 700;
        margin: 0 10px;
    }
}


/* ＝＝＝＝＝＝＝
Nav 初期表示 
＝＝＝＝＝＝＝＝＝*/

.nav {
    background: rgba(255, 255, 255, 0.90);
    width: 100%;
    height: 100dvh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    /* 画面いっぱいに広げる＋右上固定 */
    transform: translateX(-100%);
    /* 初期表示で隠す */
    transition: transform 0.4s;
    /* 滑らかに出てくる */
}

.nav__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4.5%;
    margin-top: 20px;
    gap: 10px;
}

.nav__list {
    margin-top: 80px;
}


.nav_item {
    color: var(--primary-body-green);
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 40px;
}

/* ===========
.nav active 表示 
================*/

.nav.active {
    transform: translateX(0);
}


/* ==================
main caption
=====================*/

.maincaption,
.purpose,
.symptom {
    position: relative;
    background-color: #fff;
    padding: 0 4.5% 30px;
    z-index: 0;
    margin-top: 20px;
}

/* 四角１(yellow) */
.maincaption::before {   
/* .purpose::before,
.symptom::before { */
    content: "";
    position: absolute;
    top: 30px;
    right: 10px;
    width: 160px;
    height: 160px;
    background-color: var(--primary-design-yellow);
    z-index: 1;
}

.purpose::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 18px;
    width: 160px;
    height: 160px;
    background-color: var(--primary-design-yellow);
    z-index: 1;
}

.symptom::before {
    content: "";
    position: absolute;
    top: -30px;
    right: 10px;
    width: 160px;
    height: 160px;
    background-color: var(--primary-design-yellow);
    z-index: 1;
}    

/* 四角 2 (Green) */
.maincaption::after {
/* .purpose::after,
.symptom::after { */
    content: "";
    display: block;
    position: absolute;
    top: 70px;
    right: 30px;
    width: 180px;
    height: 180px;
    background-color: var(--primary-desgin-green);
    z-index: 0;
}

.purpose::after {
    content: "";
    display: block;
    position: absolute;
    top: 20px;
    left: 40px;
    width: 180px;
    height: 180px;
    background-color: var(--primary-desgin-green);
    z-index: 0;
}

.symptom::after {
    content: "";
    display: block;
    position: absolute;
    top: 20px;
    right: 30px;
    width: 180px;
    height: 180px;
    background-color: var(--primary-desgin-green);
    z-index: 0;
}

.maincaption>*,
.purpose>*,
.symptom>* {
    position: relative;
    z-index: 2;
}

.mainCaption__txt {
    padding: 0 6.4%;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 1.12px;
    z-index: 1;
}

.signature {
    color: var(--primary-body-green rgba(56, 87, 35, 0.97));
    text-align: right;
    font-size: 1.3rem;
    font-weight: 400;
    padding: 0 6.4%;
}

@media screen and (min-width: 769px) {

    .signature {
        margin: 20px 11.4%;
        padding: 0;
        text-align: right;
        font-size: 1.6rem;
        font-style: normal;
        font-weight: 400;
    }

    /* 四角１(yellow) */
    .maincaption::before  {
        content: "";
        position: absolute;
        top: 20px;
        right: 100px;
        width: 320px;
        height: 320px;
        z-index: 1;
    }

    .purpose::before {
        left: 60px;
    }

    .symptom::before {
        right: 0px;
    }

    /* 四角１(Green) */
    .maincaption::after {
        width: 428px;
        height: 428px;
        position: absolute;
        top: 80px;
        right: 150px;
        z-index: 0;
    }

    .purpose::after {
        bottom: 150px;
        left: 10px;
    }

    .symptom::after {
        bottom: 200px
    }

    .mainCaption__txt {
        font-size: 1.6rem;
        font-weight: 400;
        line-height: 200%; /* 32px */
        letter-spacing: 1.12px;
        margin: 0 5%;
    }



}
/* PC 769px - main */

/* .subcaption */

.subcaption {
    margin: 40px 0 80px;
}

.sub__title { 
    color: var(--primary-body-green rgba(56, 87, 35, 0.97));
    font-size: 1.6rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    padding: 0 6.4%;
}

.sub__title::before {
    background: var(--primary-title-green, #385723F7);
    content: '';
    display: block;
    width: 2px;
    height: 19px;
    margin-right: 8px;
}

.sub__title--symptom {
    justify-content: end;
}

.sub__bodytxt {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 150%; /* 24px */
    letter-spacing: 1.12px;
    padding: 0 6.4%;
    margin-top: 20px;
}

@media screen and (min-width: 769px) { 
    .sub__title {
        writing-mode: vertical-rl;
        text-orientation: upright;
        display: block; 
        font-size: 2.4rem;
        font-weight: 700;
        letter-spacing: 1.5px;
    }

    .sub__title::before {
        width: 2px;
        height: 130px;
    }

    .sub__title--symptom::before {
        width: 2px;
        height: 230px;
    }

    .subcaption {
        margin: 50px 10%;
        gap: 100px ;
    }

    .purpose, 
    .symptom { 
        display: flex;
        align-items: top;
        margin-top: 100px;
    }

    .symptom {
        flex-direction: row-reverse;
    }

    .sub__bodytxt {
        font-size: 1.6rem;
        font-weight: 400;
        line-height: 200%; /* 32px */
        letter-spacing: 1.12px;
        padding: 20px;
    }


}
/* PC 表示 */


/* ==================
Section Query 
================ */
.section--query {
    padding: 25px 15.7%;
    background-image: url(../images/queryform_background.png);
    background-position: center;
    background-size: cover;
}

.query__txt {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 150%; /* 21px */
    letter-spacing: 0.98px;
}

.query__btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin: 40px 0 60px;
}

.query__btn {
  display: block;
  background-color: var(--primary-querybtn-green);
  color: #fff;
  text-align: center;
  font-size: 1.6rem;
  padding: 1em 2em;
  border-radius: 10px;
  width: 80%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease;
}

.query__btn:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.40);
}

@media screen and (min-width: 769px) {
    
    .section--query {
        padding: 25px 15.7% 70px;
        background-image: url(../images/queryform_pc.png);
        background-position: center;
        background-size: cover;
    }
    
    
    .query__txt {
        font-size: 1.6rem;
        font-weight: 400;
        line-height: 200%; /* 32px */
        letter-spacing: 1.12px;
    }

    .query__btns {
        flex-direction: row;
        justify-content: center;
        margin-top: 6rem;
        gap: 60px;
    }
    .query__btn {
        font-size: 2rem;
        padding: 1.2em 2em;
        border-radius: 8px;
        max-width:360px;
        width: 80%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        transition: background-color 0.3s ease;
    }
}
/* PC 表示 */


/* =================
Access 
====================*/
.section--access { 
    padding: 20px 4.5%;
}
.address {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 30px;
}
.map {
    width: 100%;
    height: 300px;
    max-width:330px;
    margin: 0 auto 2em auto;
    display: block;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.direction {
    max-width: 80%;
    text-align: center;
    margin: 0 auto;
}

.direction__title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 20px;
    text-align: left;
}

.access__direction {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 150%; /* 21px */
    letter-spacing: 0.98px;
    margin-top: 10px;
    text-align: left;
}

@media screen and (min-width: 769px) {
    
    .direction__title  {
        font-size: 1.6rem;
        margin-right: 20px;
    }
    
    .address {
        font-size: 1.6rem;
        font-weight: 400;
        line-height: 200%; /* 32px */
        letter-spacing: 1.12px;
        margin-top: 3.6rem;
    }

    .map {
        max-width: 80%;
        height: 400px;
    }

    .direction {
        max-width: 80%;
        display: flex;
        justify-content: center;
        margin: 35px auto;
        
    }
}

/* PC 表示 ７６９px*/

/* =====================
Footer 
===================== */
.footer { 
    padding: 0 6.4%;
}

.footer::before {
    background: var(--primary-title-green, #385723F7);
    content: '';
    display: block;
    width: 100%;
    height: 0.7px;
    margin: 0 auto;
}

.footer__topic {
    color: #000;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 25px;
}

.footer__address, 
.footer_phone {
    color: #000;
    font-size: 1.3rem;
    font-weight: 400;
    margin-top: 15px;
}

.footer__phone {
    color: #000;
    margin-top: 5px;
}

.copy {
    color: rgba(0, 0, 0, 0.50);
    font-size: 1rem;
    font-weight: 400;
    margin-top: 40px;
}

.footer__nav {
    display: none;
}

@media screen and (min-width: 769px) {

    .footer::before {
        width: 100%;
        height: 1px;
    }

    .footer__nav {
        display: block;
    }

    .footer__menu {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .footer__topic {
        font-size: 2.6rem;
        font-weight: 700;
        margin-top: 40px;
    }

    .footer__topic span {
        font-size: 2.0rem;
        margin-bottom: 30px;
    }

    .footer__address, 
    .footer__phone {
        font-size: 1.6rem;
    }

    .copy {
        font-size: 1.4rem;
        margin: 70px 0 30px;
    }

    .footer__nav {
        display: flex;
        align-items: start;
    }

    .footer__nav::before {
        background: var(--primary-body-green);
        content:'';
        display: block;
        width: 1px;
        height: 200px; 
    }

    .footernav__list {
        margin: 0 100px 0 100px;
    }

    .footernav_item {
        display: flex;
        flex-direction: column;
        text-align: center;
        font-size: 1.6rem;
        font-weight: 400;
        margin-top: 20px;
    }

}
/* PC 表示*/

/* ＝＝＝＝＝＝＝＝＝＝＝＝
NavのHover 
＝＝＝＝＝＝＝＝＝＝＝＝＝＝*/

.nav_item a,
.pcnav_item a,
.footernav_item a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

/* 下線アニメーション */
.nav_item a::after,
.pcnav_item a::after,
.footernav_item a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary-body-green);
  transition: width 0.3s ease;
}

/* ホバー時に表示 */
.nav_item a:hover::after,
.pcnav_item a:hover::after,
.footernav_item a:hover::after {
  width: 100%;
}

