@charset "utf-8";

/* ==================================================
   トップページ デザイン強化 (top.css)

   既存の stylesheet20260209.css は変更せず、
   このファイルを後から読み込んで上書きする方式。
   戻したい場合は index.html の読み込み1行を外せばよい。
   ================================================== */

:root {
    --top-ink: #4a3a55;
    --top-ink-soft: #7b6a86;
    --top-radius: 20px;
    --top-shadow: 0 10px 34px rgba(120, 70, 140, .10);
    --top-shadow-hover: 0 18px 44px rgba(120, 70, 140, .18);
    --top-max: 1080px;
}

/* --------------------------------------------------
   セクション見出しの統一
   英字ラベル＋日本語＋中央のアクセント線
   -------------------------------------------------- */
.news_heading,
.merchandise_heading,
.philosophy_heading,
.company_box .company_heading {
    position: relative;
    font-family: "M PLUS 1p", sans-serif !important;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--text-dark-brown);
    text-align: center;
    padding-bottom: 18px;
    margin-bottom: 0;
}

.news_heading,
.merchandise_heading {
    font-size: clamp(1.5rem, 3.4vw, 2rem);
    margin: 0 0 36px;
}

/* 見出し下の中央アクセント */
.news_heading::after,
.merchandise_heading::after,
.philosophy_heading::after,
.company_box .company_heading::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 54px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent-pink), #ffb3d6);
}

/* 企業理念・会社情報は左寄せの見出しなのでアクセントも左に */
.philosophy_heading,
.company_box .company_heading {
    text-align: left;
    font-size: clamp(1.3rem, 2.6vw, 1.7rem);
}

.philosophy_heading::after,
.company_box .company_heading::after {
    left: 0;
    transform: none;
}

/* --------------------------------------------------
   セクションの余白リズム
   -------------------------------------------------- */
.news,
.merchandise-section,
.philosophy_box,
.company_box {
    max-width: var(--top-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.news {
    margin-top: 84px;
}

.merchandise-section,
.philosophy_box,
.company_box {
    margin-top: 96px !important;
}

/* --------------------------------------------------
   NEWS
   -------------------------------------------------- */
.news-list {
    max-width: 780px;
    margin: 0 auto;
    display: grid;
    gap: 10px;
}

.news_item {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 18px 24px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, .78) !important;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.news_item:hover {
    transform: translateY(-2px);
    background: #fff !important;
    box-shadow: var(--top-shadow);
}

.news_item .date {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--accent-pink);
    font-variant-numeric: tabular-nums;
}

.news_item .news_title {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
}

.news_item .news_title a {
    color: var(--top-ink);
    text-decoration: none;
    background-image: linear-gradient(var(--accent-pink), var(--accent-pink));
    background-size: 0 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size .3s ease, color .2s ease;
}

.news_item .news_title a:hover {
    color: var(--accent-pink);
    background-size: 100% 1px;
}

/* --------------------------------------------------
   バナー
   -------------------------------------------------- */
.fixed-banner-container {
    max-width: var(--top-max) !important;
    gap: 24px !important;
    margin: 28px auto !important;
}

.banner-preview,
.banner-preview2 {
    display: block;
    border-radius: var(--top-radius);
    overflow: hidden;
    box-shadow: var(--top-shadow);
    transition: transform .3s ease, box-shadow .3s ease;
    line-height: 0;
}

.banner-preview:hover,
.banner-preview2:hover {
    transform: translateY(-5px);
    box-shadow: var(--top-shadow-hover);
}

.banner-preview img,
.banner-preview2 img {
    display: block;
    width: 100%;
    height: auto;
}

/* --------------------------------------------------
   商品情報（円アイコン）
   -------------------------------------------------- */
.merchandise_container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 28px 22px !important;
    max-width: 940px;
    margin: 0 auto !important;
    padding: 0 !important;
    justify-items: center;
}

.md-item {
    width: 100%;
    max-width: 170px;
}

.md-item a {
    display: block;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 18px rgba(120, 70, 140, .10);
    transition: transform .3s cubic-bezier(.34, 1.4, .64, 1), box-shadow .3s ease;
}

.md-item a:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 16px 32px rgba(255, 82, 136, .24);
}

.md-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 50%;
}

/* --------------------------------------------------
   企業理念 / 会社情報
   -------------------------------------------------- */
.philosophy_box,
.company_box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 5vw, 64px);
    text-align: left !important;
}

.philosophy_text,
.company_text {
    flex: 1 1 340px;
    width: auto !important;
    max-width: 460px;
    text-align: left !important;
    line-height: 2.1;
}

.philosophy_text p,
.company_text p {
    margin-top: 22px;
    font-size: 15.5px;
    color: var(--top-ink);
}

.philosophy_img,
.company_img {
    flex: 1 1 380px;
    max-width: 520px;
}

.philosophy_img img,
.company_img img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--top-radius);
    box-shadow: var(--top-shadow);
    transition: transform .4s ease, box-shadow .4s ease;
}

.company_img a:hover img {
    transform: translateY(-4px);
    box-shadow: var(--top-shadow-hover);
}

/* --------------------------------------------------
   スクロールで浮き上がる演出

   非表示の指定は html.js-reveal-on が付いたときだけ効かせる。
   このクラスは JS が正常に動いた場合のみ付くため、
   JS が読み込まれない・エラーで止まった場合でも
   コンテンツが消えることはない。
   -------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    html.js-reveal-on .js-reveal {
        opacity: 0;
        transform: translateY(22px);
        transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
    }

    html.js-reveal-on .js-reveal.is-visible {
        opacity: 1;
        transform: none;
    }
}

/* --------------------------------------------------
   スマホ
   -------------------------------------------------- */
@media screen and (max-width: 768px) {

    .news {
        margin-top: 56px;
    }

    .merchandise-section,
    .philosophy_box,
    .company_box {
        margin-top: 64px !important;
    }

    .philosophy_box,
    .company_box {
        flex-direction: column;
        gap: 28px;
    }

    .philosophy_text,
    .company_text,
    .philosophy_img,
    .company_img {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
    }

    .news_item {
        flex-direction: column;
        gap: 6px;
        padding: 16px 18px !important;
    }

    .fixed-banner-container {
        flex-direction: column;
        gap: 18px !important;
    }

    .merchandise_container {
        grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)) !important;
        gap: 18px 14px !important;
    }
}
