/* ==========================================================================
   トップページ
   ========================================================================== */

body {
    counter-reset: h2-counter;
}

.home h3 {
    margin-bottom: var(--spacing-lg); /* 64px */
    color: #fc3465;
    font-weight: normal;
    font-size: var(--fz35);
}

.home p {
    font-size: var(--fz25);
    font-size: var(--fz20);
    overflow-wrap: break-word;
}

.home a {
    text-decoration: none;
}

/* 背景動画
-------------------------------------------------------------- */
.background-video-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    min-width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
}

.background-video-wrapper::after {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background: #000000;
    content: "";
    opacity: 0;
    transition: all 1s cubic-bezier(.445, .05, .55, .95);
}

.is-top-start .background-video-wrapper::after {
    opacity: .75;
}


/* ヒーローセクション (#hero)
-------------------------------------------------------------- */
#hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 100vh;
    padding-inline: 1rem;
    text-align: center;
    transition: opacity .5s, transform .5s;
}

#hero h1 {
    margin-top: var(--spacing-md); /* 32px */
    font-size: clamp(var(--fz22), 5.5vw, var(--fz48));
	font-family: "游明朝", "YuMincho", serif;
}

#hero .hero-logo {
    max-width: 12.5rem; /* 200px */
}

#hero ul {
    position: absolute;
    right: 3%;
    bottom: 3rem; /* 48px */
    z-index: 10;
    max-width: 20rem; /* 320px */
}

#hero ul li {
    text-align: center;
}

#hero ul li:not(:first-of-type) {
    margin-top: var(--spacing-sm); /* 16px */
}

#hero ul li a {
    position: relative;
    z-index: 1;
    display: block;
    width: 20rem; /* 320px */
    color: var(--color-text-primary);
    font-weight: bold;
    font-size: var(--fz19);
    letter-spacing: .1em;
    text-decoration: none;
    overflow: hidden;
    transition: color .4s ease-out;
    -webkit-tap-highlight-color: transparent;
    border: 1px solid #707070;
    border-radius: 2rem; /* 32px */
    background-color: rgba(246, 204, 215, .6);
    line-height: 2.4;
}

#hero ul li a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #a46eb1, #cb7fde);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s cubic-bezier(0.77, 0, 0.175, 1);
}

/* ホバー時のスタイル（変更なし） */
#hero ul li a:hover {
    color: #ffffff;
}

#hero ul li a:hover::after {
    transform: scaleX(1);
}

/* ヒーローセクションのフェードインアニメーション */
#hero h1, #hero .hero-logo, #hero ul li, .home .menu-toggle {
    opacity: 0;
    transform: translateY(2rem);
    transition-property: opacity, transform;
    transition-duration: 1s;
    transition-timing-function: ease-out;
}

body.animation-ready #hero ul li:nth-of-type(1) {
    opacity: 1;
    transition-delay: .8s;
}

body.animation-ready #hero ul li:nth-of-type(2) {
    opacity: 1;
    transition-delay: 1s;
}

#hero ul li a.shoppings,
ul li a.shoppings {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
}

#hero ul li a.shoppings::before,
ul li a.shoppings::before {
    content: '';
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    -webkit-mask-image: url('/wp/wp-content/themes/aroze-child/assets/images/Icon_shopping.svg');
    mask-image: url('/wp/wp-content/themes/aroze-child/assets/images/Icon_shopping.svg');
    
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;

    background-color: currentColor; 
}


body.animation-ready #hero .hero-logo {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .2s;
}

body.animation-ready .menu-toggle {
    top: 6rem;
    opacity: 1;
    transform: translateY(-50%);
    transition-delay: .4s;
}

body.animation-ready #hero h1 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .8s;
}


body.is-top-start #hero {
    opacity: 0;
    transform: translateY(-3rem); /* -48px */
}

/* アバウトセクション (#about)
-------------------------------------------------------------- */
#about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-inline: 1rem;
}

#about .about-logo {
    max-width: 12.5rem; /* 200px */
}

#about h2 {
    max-width: 55rem; /* 960px */
    max-width: 44rem; /* 704px */
    margin-top: 1.8em;
    color: #ffffff;
    font-size: var(--fz25);
    font-size: var(--fz20);
    line-height: 2.3;
    letter-spacing: .1em;
    font-family: "游明朝", "YuMincho", serif;
}

/* 白背景コンテンツエリア
-------------------------------------------------------------- */
.background-white {
    overflow: hidden;
    background-color: #ffffff;
    padding-bottom: 5rem;
}

.background-white section {
    margin-top: var(--spacing-xl); /* 120px */
    padding-inline: 1rem;
}

/* 連番付き見出し (h2.numbered-heading) */
h2.numbered-heading {
    display: flex;
    align-items: flex-end;
    position: relative;
    min-height: 5.375rem; /* 86px */
    margin-bottom: 4.5rem; /* 72px */
    padding-left: 4.5rem; /* 72px */
    font-weight: normal;
    font-size: clamp(var(--fz25),4.5vw,var(--fz40));
    counter-increment: h2-counter;
}

h2.numbered-heading::before {
    position: absolute;
    top: 0;
    left: 0;
    color: #a788c3;
    font-weight: normal;
    font-size: var(--fz40);
    line-height: 1;
    content: counter(h2-counter, decimal-leading-zero);
}

h2.numbered-heading::after {
    position: absolute;
    top: 0.9375rem; /* 15px */
    left: 2.875rem; /* 46px */
    transform: rotate(45deg);
    width: 1px;
    height: 3.5rem; /* 56px */
    background-color: #707070;
    content: "";
}

/* 歴史セクション (#history)
-------------------------------------------------------------- */


/* オリジナル商品セクション (#original-products)
-------------------------------------------------------------- */
#original-products h3 {
    text-align: center;
}

.with-before,
.with-after {
    position: relative;
 }

/* 前の「～」 */
.with-before::before {
  content: '～';
  position: absolute;
  left: -1.2em;
  top: 50%;
  transform: translateY(-50%);
  color: inherit;
}

/* 後ろの「～」 */
.with-after::after {
  content: '～';
  position: absolute;
  right: -1.2em;
  top: 50%;
  transform: translateY(-50%);
  color: inherit;
}
.strength-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md); /* 32px */
}

.strength-list li {
    background: linear-gradient(130deg, #fcf0ff 0%, #b8b8b8 100%);
}

.strength-list h4 {
    margin-top: var(--spacing-md); /* 32px */
    color: #6a3906;
    font-weight: normal;
    font-size: var(--fz32);
    line-height: 1;
    text-align: center;
}

.strength-list p {
    padding: 1.6em;
    color: var(--color-text-primary);
    font-size: var(--fz20);
    line-height: 1.6;
}

/* チェックマーク付きリスト */
.merit-list li {
    font-size: var(--fz22);
    font-size: var(--fz20);
    position: relative;
    margin-bottom: 1em;
    padding: .8em .8em .8em 4em;
    background-color: #fff0f0;
    line-height: 1.6;
}

.merit-list li::before {
    position: absolute;
    top: 50%;
    left: 1.2em;
    transform: translateY(-50%);
    width: 1.5em;
    height: 1.5em;
    border: 1px solid #707070;
    background-color: #ffffff;
    content: "";
}

.merit-list li::after {
    position: absolute;
    top: calc(50% - 1.2em);
    left: 2.2em;
    transform: rotate(45deg);
    width: .7em;
    height: 1.4em;
    border: solid #fc3465;
    border-width: 0 1px 1px 0;
    content: "";
}

/* 商品シリーズセクション (#product-series)
-------------------------------------------------------------- */
#product-series .full-image {
    position: relative;

}

#product-series .full-image .image-text {
    position: absolute;
    top: 25%;
    left: 12%;
    font-size: clamp(var(--fz25),3.2vw,var(--fz62));
    color: #A788C3;
    letter-spacing: 0.3em;
    font-family: "游明朝", "YuMincho", serif;
}

.series-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5rem 2.5rem; /* 80px 40px */
}

.series-list li {
    flex: 1 1 45%;
    max-width: 680px;
}

.series-list a {
  display: block;
}

.series-list figcaption {
    font-size: var(--fz18);
    letter-spacing: 0.05em;
    margin-top: 1em;
}


/* ==========================================================================
   レスポンシブ
   ========================================================================== */

/* --------------------------------------------------------------
   タブレット (1024px以下)
-------------------------------------------------------------- */
@media (max-width: 1024px) {
    /* -- 基本フォントサイズ調整 -- */
    #about h2 { font-size: var(--fz22); }
    .home h3 { font-size: var(--fz32); }
    .home p { font-size: var(--fz20); }

    /* -- ヒーローセクション -- */
    
    /* -- 商品シリーズ -- */
    .series-list {
        gap: 3rem 1.5rem;
    }
}


/* --------------------------------------------------------------
   スマートフォン (768px以下)
-------------------------------------------------------------- */
@media (max-width: 768px) {
    /* -- 基本設定・コンテナ -- */
    .background-white section { margin-top: var(--spacing-lg); }

    /* -- フォントサイズ調整 -- */
    #about h2 { font-size: var(--fz18); }
    h2.numbered-heading {
        min-height: auto;
        padding-left: 3rem;
        margin-bottom: var(--spacing-md);
    }
    h2.numbered-heading::before { font-size: var(--fz25); }
    h2.numbered-heading::after {
        top: 0.5rem;
        left: 1.8rem;
        height: 2.2rem;
    }
    .home h3 { font-size: var(--fz22); margin-bottom: var(--spacing-md); }
    .home p { font-size: var(--fz16); }
    .strength-list p { font-size: var(--fz16); padding: 1.5em; }
    .merit-list li { font-size: var(--fz16); }
    .series-list figcaption { font-size: var(--fz16); }

    /* -- ヒーローセクション -- */
    #hero .hero-logo {
        max-width: 12rem;
        margin-right: 1.2rem;
    }

    #hero ul {
        max-width: 16rem;
        left: 50%;
        bottom: 5rem;
        transform: translateX(-50%);
        width: calc(100% - 2rem);
    }

    #hero ul li a {
        width: 100%;
        font-size: var(--fz14);
    }

    /* -- アバウトセクション -- */
    #about .about-logo {
        width: 12rem;
    }

    /* -- オリジナル商品セクション -- */
    .strength-list h4 { font-size: var(--fz25); }

    /* -- 商品シリーズ -- */

    #product-series .full-image .image-text {
        display: none;
    }
    .series-list {
        flex-direction: column;
        gap: 3rem;
    }
    .series-list li {
        flex-basis: 100%;
        max-width: 100%;
    }

}