@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Poppins:wght@700;800;900&display=swap');

/* ==========================================================================
   1. Base & Layout (全体設定)
   ========================================================================== */
:root {
    --green: #529626;
    --black: #333333;
}

html {
    overflow-x: auto; /* 1080px未満でブラウザ本来の横スクロールを許可 */
    width: 100%;
}

body {
    padding: 0;
    margin: 0;
    width: 100%;
}
body *{
     box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}
body img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* 右側突き出し要素のバグを封じ込める絶対防壁 */
.wrapper {
    overflow-x: hidden;
    width: 100%;
}

/* 769px〜1080pxの間はデスクトップのデザイン幅を維持 */
@media screen and (min-width: 769px) {
    html, body, .wrapper {
        min-width: 1080px;
    }
}

/* ==========================================================================
   2. Common Text (テキスト共通・スクロールぼかしアニメーション)
   ========================================================================== */
.box-text h2,
.box-text h3,
.box-text p {
    font-family: "Noto Sans", sans-serif;
    letter-spacing: 0.1em;
}

.box-text h2 {
    color: var(--green);
    font-weight: 500;
    margin: 0 0 0.75em 0;
    font-size: 40px;
    line-height: 1.75;
}

/* 初期のぼかし状態（JSでクラスがつくとくっきり化） */
.box-text p {
    color: var(--black);
    font-size: 20px;
    font-weight: 500;
    line-height: 2;
    opacity: 0;
    filter: blur(12px);
    transition: opacity 1.2s ease, filter 1.2s ease;
    will-change: opacity, filter;
}

.box-text p.is-visible {
    opacity: 1;
    filter: blur(0);
}

/* ==========================================================================
   3. Header Section (ヒーローエリア・画像切り替え)
   ========================================================================== */
div.header-brand-concept {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 60px;
    align-items: center;
    width: 90%;
    max-width: 1300px;
    margin: auto;
    padding: 80px 0 40px;
    position: relative;
}
div.header-brand-concept::before{
    content: "";
    display: block;
    width: 500px;
    height: 200px;
    background: url(../img/curve.svg)no-repeat center / contain;
    position: absolute;
    top: 20%;
    left: calc(50% - 820px);
    transform: translateX(-50%)rotate(-20deg);
    z-index: -1;
}
div.header-brand-concept .box-text h2 {
    position: relative;
}

/* 背後の薄い「ABOUT」の文字 */
div.header-brand-concept .box-text h2::before {
    content: "ABOUT";
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
    position: absolute;
    top: -0.35em;
    left: 2.5em;
    color: #eee;
    line-height: 1;
    font-size: 70px;
    z-index: -1;
}

/* 親のグリッド枠を無視して右端まで突き抜けさせる魔法の計算 */
div.header-brand-concept .box-bg {
    width: calc(100% + (100vw - 100%) / 2);
    position: relative; 
}

div.header-brand-concept .box-bg::before,
div.header-brand-concept .box-bg::after {
    content: "";
    display: block;
    position: absolute;
}

/* 装飾：ストライプ背景 */
div.header-brand-concept .box-bg::before {
    background: url(../img/stripe.svg) repeat top center / 50px;
    border-radius: 60px 0 0 60px;
    width: 100%;
    height: 100%;
    top: 40px;
    left: -40px;
}

/* 装飾：浮いているアイコン画像 */
div.header-brand-concept .box-bg::after {
    width: 250px;
    height: 175px;
    top: 80px;
    left: 80px;
    background: url(../img/fv-icon.png) no-repeat center / contain;
    z-index: 10;
}

/* 画像を内包するマスクの箱 */
.bg-wrap {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    border-radius: 60px 0 0 60px;
    background: #fff;
}

.bg-wrap .images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    z-index: 1;
}

.bg-wrap .images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 70%;
    will-change: transform, opacity;
}

/* ==========================================================================
   4. Main Section (中間コンテンツエリア)
   ========================================================================== */
div.main-brand-concept {
    padding: 60px 0;
}

div.main-brand-concept .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 90%;
    max-width: 1300px;
    margin: auto;
}

div.main-brand-concept .grid .box-text {
    width: fit-content;
    margin: auto;
}
/*オブジェクト配置*/
div.main-brand-concept .grid01 {
    margin-bottom: 60px;
}
div.main-brand-concept .grid,
div.main-brand-concept .grid01 .box-text{
    position: relative;
}

div.main-brand-concept .grid01::before{
content: "";
    display: block;
    width: 500px;
    height: 200px;
    background: url(../img/curve.svg) no-repeat center / contain;
    position: absolute;
    top: 30%;
    left: calc(50% + 820px);
    transform: translateX(-50%) rotate(165deg);
    z-index: -1;
}
div.main-brand-concept .grid01 .box-text::before{
    content: "";
    display: block;
    width: 190px;
    height: 190px;
    background: url(../img/circle.svg)no-repeat center / contain;
    position: absolute;
    top: -10%;
    left: -10%;
}


/* グリッド02：1行目に要素を並列固定 */
div.main-brand-concept .grid02{
   margin-bottom: 60px; 
}
div.main-brand-concept .grid02::before{
content: "";
    display: block;
    width: 500px;
    height: 200px;
    background: url(../img/curve.svg) no-repeat center / contain;
    position: absolute;
    top: 20%;
    left: calc(50% - 900px);
    transform: translateX(-50%) rotate(160deg);
    z-index: -1;
}
div.main-brand-concept .grid02 .box-text {
    grid-column: 1 / 2;
    grid-row: 1;
}

div.main-brand-concept .grid02 .box-illust {
    grid-column: 2 / 3;
    grid-row: 1;
}

div.main-brand-concept .grid .box-text p {
    font-size: 22px;
}

.box-illust {
    max-width: 600px;
}




/* グリッド03*/
div.main-brand-concept .grid03{
padding-bottom: 140px;
grid-template-columns: 1fr 1.15fr;
gap: 40px;
}
div.main-brand-concept .grid03 .box-illust{
    width: 100%;
    height: 100%;
    /* overflow: hidden; */
    position: relative;
}
div.main-brand-concept .grid03 .box-illust::after{
    content: "";
    display: block;
    background: url(../img/stripe.svg) repeat top center / 50px;
    border-radius: 30px;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 30px;
    left: -30px;
    z-index: 1;
}
div.main-brand-concept .grid03 .box-illust img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  position: relative;
  z-index: 10;
}

div.main-brand-concept .grid03 .box-text p.strong{
    font-size: 26px;
    margin-bottom: 20px;
    color: var(--green);
}

div.logo {
    width: 90%;
    max-width: 250px;
    margin: auto 0;
    text-align: center;
    padding: 0 0 0;
}
div.logo img{
    border: 1px solid #eee;
}

/* ==========================================================================
   5. Footer Section (下部エリア)
   ========================================================================== */
/* 
div.footer-brand-concept {
    padding: 0;
    margin: 40px auto;
    padding-bottom: 60px;
}
div.footer-brand-concept .grid{
        display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 0px;
    align-items: center;
    width: 90%;
    max-width: 1300px;
    margin: auto;
    align-items: stretch;
}
div.footer-brand-concept .box-photo{
    width: 100%;
    height: 100%;
    overflow: hidden;
}
div.footer-brand-concept .box-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
}
div.footer-brand-concept .box-text{
        display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: #7cb63e;
    padding: 45px;
    margin: 0;
}
div.footer-brand-concept .box-text p,
div.footer-brand-concept .box-text h3 {
    color: #fff;
    text-align: center;
    text-align: left;
}

div.footer-brand-concept .box-text p {
    font-size: 18px;
    margin: 0 auto 0 0;
}

div.footer-brand-concept .box-text h3 {
    font-size: 20px;
    font-weight: 500;
    margin: 20px auto 30px 0;
}

div.logo {
    width: 90%;
    max-width: 150px;
    margin: 0 auto;
    text-align: center;
    padding: 0 0 0;
} */

/* ==========================================================================
   6. Responsive (メディアクエリ)
   ========================================================================== */


/* --- タブレット・ノートPC表示 (1400px以下) --- */
@media screen and (max-width: 1400px) {
    div.header-brand-concept {
        grid-template-columns: 1fr 1fr;
    }
    div.footer-brand-concept .box-text p{
        font-size: 16px;
    }
}
/* --- 小型PC・iPad表示 (1250px以下) --- */
@media screen and (max-width: 1250px) {
div.footer-brand-concept .box-text{
    padding: 35px;
}
}
/* --- 小型PC・iPad表示 (1200px以下) --- */
@media screen and (max-width: 1200px) {
    div.header-brand-concept .box-bg::before {
        top: 15px;
        left: -15px;
    }
    .bg-wrap {
        height: 60vh;
    }
    .box-text h2 {
        font-size: 30px;
    }
    div.header-brand-concept .box-text h2::before {
        font-size: 60px;
    }
    .box-text p {
        font-size: 18px;
    }
    div.main-brand-concept .grid .box-text p {
        font-size: 20px;
    }
    div.footer-brand-concept .grid{
    grid-template-columns: 1.05fr 1fr;    
    }
    div.main-brand-concept .grid .box-text p.strong{
        font-size: 22px;
    }
}

/* --- スマートフォン表示 (768px以下) --- */
@media screen and (max-width: 768px) {
    .box-text p {
        font-size: 16px;
    }
    .box-text p br.pc {
        display: none;
    }
    
    /* ヘッダー：1列化して上下順を逆転 */
    div.header-brand-concept {
        grid-template-columns: 1fr;
        width: 90%;
        max-width: 500px;
        gap: 80px;
    }
    div.header-brand-concept .box-text {
        grid-row: 2 / 3;
    }
    div.header-brand-concept .box-bg {
        grid-row: 1 / 2;
        width: 100%;    
    }
    div.header-brand-concept .box-bg::before {
        border-radius: 30px;
    }
    div.header-brand-concept .box-bg::after {
        width: 160px;
        height: 112px;
        top: 20px;
        left: 20px;
    }
    .bg-wrap {
        border-radius: 30px;
        height: 400px;
    }
    .bg-wrap .images img {
        object-position: center;
    }
    
    /* メインコンテンツ：1列化 */
    div.main-brand-concept {
        padding: 20px 0 80px;
    }
    div.main-brand-concept .grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 30px;
    }
    div.main-brand-concept .grid .box-text p {
        font-size: 16px;
        margin: 0;
    }
    div.main-brand-concept .grid .box-text p.strong{
        font-size: 20px;
        margin: 20px 0 20px;
    }
    div.main-brand-concept .grid02 .box-text,
    div.main-brand-concept .grid02 .box-illust {
        grid-column: 1 / 2;
    }
    div.main-brand-concept .grid02 .box-text {
        grid-row: 2;
    }
    div.main-brand-concept .grid02 .box-illust {
        grid-row: 1;
    }

    /*オブジェクト配置調整*/
    div.header-brand-concept::before{
    width: 300px;
    height: 100px;
    top: 60%;
    left: -20%;
}
    div.main-brand-concept .grid01 .box-text::before{
        width: 100px;
        height: 100px;
    }
    div.main-brand-concept .grid01::before{
    width: 300px;
    height: 100px;
    top: 70%;
    left: 100%;
}
div.main-brand-concept .grid02::before{
    width: 300px;
    height: 100px;
    top: 83%;
    left: -10%;
}
    
    /* フッター：スマホ向け幅調整 */
    div.footer-brand-concept{
        margin-top: 0;
    }
    div.footer-brand-concept .grid{
        max-width: 500px;
        grid-template-columns: 1fr;
    }
    div.footer-brand-concept .box-photo{
        width: 100%;
        margin: 0;
        /* margin: auto auto auto 0;
        position: relative;
        z-index: 5;
        filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.1)); */
    }
    div.footer-brand-concept .box-text {
        width: 100%;
        padding: 40px;
        /* margin: auto 0 auto auto;
        padding: 80px 40px 40px;
        position: relative;
        top: -50px;
        z-index: 1; */
    }

    div.footer-brand-concept .box-text p {
        font-size: 16px;
        text-align: left;
        margin: 0;
    }
    div.footer-brand-concept .box-text h3 {
        font-size: 18px;
        margin: 20px 0 20px;
    }
    div.main-brand-concept .grid03{
        padding-bottom: 0;
        gap: 50px;
    }
    
    div.main-brand-concept .grid03 .box-illust::after{
            top: 15px;
        left: -15px;
}

    div.logo {
        padding: 10px 0;
        max-width: 250px;
        margin: auto;
    }
}

/* --- 極小スマートフォン表示 (470px以下) --- */
@media screen and (max-width: 470px) {
    .box-text p {
        line-height: 1.5;
    }
    div.footer-brand-concept{
        margin-bottom: 0;
        padding-bottom: 0;
    }
    div.footer-brand-concept .grid{
        width: 100%;
    }
    div.footer-brand-concept .box-text {
        padding: 30px 30px 40px;
    }
    div.header-brand-concept .box-text h2 {
        font-size: 7vw;
    }
    div.header-brand-concept .box-text h2::before {
        font-size: 14vw;
        left: inherit;
        right: 0em;
    }
    div.footer-brand-concept .box-text h3 {
        font-size: 4.25vw;
    }
     div.main-brand-concept .grid .box-text p.strong br{
display: none;
     }
}