/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --red: #e86061;
    --dark: #1a1a1a;
    --beige: #F5F0E8;
    --tan: #C8B89A;
    --white: #FFFFFF;
    --gray: #888;
    --light: #F9F6F0;
    --font-en: 'Cormorant Garamond', serif;
    --font-ja: 'Sawarabi Gothic', "Hiragino Sans W3", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    --font-disp: 'Bebas Neue', sans-serif;
    --font-go: 'Sawarabi Gothic', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-go);
    color: var(--dark);
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== HEADER ===== */
#header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 150px 0px;
    height: 72px;
    z-index: 999;
}

.header-logo img,
.header-logo {
    max-width: 305px;
}

.header-logo {
    margin-top: 22px;
}

.header-nav {
    display: none;
    align-items: center;
    gap: 32px;
}

.header-nav a {
    font-family: var(--font-en);
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--dark);
    transition: color 0.2s;
}

.header-nav a:hover {
    color: var(--red);
}

.header-icons {
    display: none;
    gap: 16px;
}

.icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-family: var(--font-en);
    font-size: 9px;
    letter-spacing: 0.1em;
    color: var(--dark);
    border: 1px solid var(--tan);
    padding: 8px 14px;
    border-radius: 2px;
    transition: background 0.2s, color 0.2s;
}

.icon-btn:hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--red);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
    z-index: 100;
}

.hamburger:hover {
    background: #d04f50;
}

.hamburger-inner {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: #ffffff;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* DRAWER */
.drawer-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    overflow: visible;
    z-index: 100;
}

.drawer {
    position: absolute;
    top: 60px;
    right: 70px;
    width: 220px;
    background: rgba(80, 80, 80, 0.6);
    border-radius: 16px;
    padding: 28px 32px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
    backdrop-filter: blur(6px);
}

.drawer.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.drawer-logo {
    font-family: var(--font-disp);
    font-size: 22px;
    letter-spacing: 0.12em;
    color: #fff;
    padding-bottom: 20px;
    display: block;
    margin: 15px auto 0;
}

.drawer-tel {
    display: none;
}

.drawer nav {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.drawer nav a {
    font-family: var(--font-en);
    font-size: 15px;
    letter-spacing: 0.15em;
    color: #fff;
    text-transform: uppercase;
    padding: 10px 0;
    transition: color 0.2s, padding-left 0.2s;
    display: block;
    margin: 0 auto;
}

.drawer nav a:hover {
    color: var(--red);
}

/* ===== HERO ===== */
#hero {
    margin-top: -10px;
    position: relative;
    background: transparent;
    padding-top: 0;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    opacity: 0;
    animation: slide-fade 16s infinite;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 4s; }
.hero-slide:nth-child(3) { animation-delay: 8s; }
.hero-slide:nth-child(4) { animation-delay: 12s; }

@keyframes slide-fade {
    0% { opacity: 0; }
    6% { opacity: 1; }
    25% { opacity: 1; }
    31% { opacity: 0; }
    100% { opacity: 0; }
}

.hero-wrapper {
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.hero-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    bottom: -80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 48px 32px;
    pointer-events: none;
}

.hero-overlay img {
    max-width: 640px;
    width: 100%;
    height: auto;
}

.hero-red-bar {
    position: absolute;
    top: 20%;
    bottom: 0;
    left: 0;
    right: 0;
   // background: var(--red);
    z-index: 0;
}

.hero-stamp {
    position: absolute;
    right: 48px;
    bottom: -40px;
}

.hero-stamp img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}

.side-btns {
    position: fixed;
    right: 0;
    top: 36%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
}

.side-btn {
/*    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 85px;
    background: #f0ecf0;
    border-radius: 46% 0 0 46%;
    border: none;
    transition: width 0.2s ease, background 0.2s;
    overflow: hidden;
    flex-shrink: 0;*/
}
/*
.side-btn:hover {
    width: 110px;
}*/

.side-btn img {
    width: 132px;
    height: auto;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-label {
    font-family: var(--font-en);
    font-size: 11px;
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-disp);
    font-size: clamp(64px, 8vw, 110px);
    line-height: 0.95;
    color: var(--white);
    letter-spacing: 0.02em;
}

.hero-title .accent {
    color: rgba(255,180,160,1);
}

.hero-sub {
    font-family: var(--font-en);
    font-size: 22px;
    font-style: italic;
    color: rgba(255,255,255,0.7);
    margin-top: 12px;
    letter-spacing: 0.05em;
}

.hero-desc {
    margin-top: 28px;
    font-size: 13px;
    line-height: 2;
    color: rgba(255,255,255,0.85);
    max-width: 380px;
}


/* ===== SECTION COMMON ===== */
section {
    padding: 140px 40px;
}

.section-label {
    font-family: var(--font-en);
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--red);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    text-align: center;
    display: flex;
    justify-content: center;
}

.section-title img {
    width: 100%;
    height: auto;
}

.stitle-message { max-width: 140px; }
.stitle-products { max-width: 155px; }
.stitle-catalog { max-width: 330px; }
.stitle-company { max-width: 139px; }
.stitle-contact { max-width: 138px; }


.hero-message-wrap {
  position: relative;
}

.red-area {
  position: absolute;
  top: 30%;      /* ここで上を空ける */
  bottom: 0;
  left: 0;
  right: 0;
  background-image: url('images/paper-texture.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  z-index: 0;
}

#hero,
#message {
  position: relative;
  z-index: 1;  /* red-areaの上に乗せる */
}

/* ===== MESSAGE ===== */
#message {
    background: transparent;
    //background: var(--red);
    position: relative;
    padding-top: 80px;
    padding-bottom: 110px;
}

.message-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.message-body {
    margin-top: 32px;
    font-size: 16px;
    line-height: 2.4;
    color: #fff;
    font-family: var(--font-go);
    text-align: left;
    width: 630px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== PRODUCTS ===== */
#products {
    padding-left: 0;
    padding-right: 0;
    position: relative;
    z-index: 2;
}

.products-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin: 30px auto 0;
    overflow: visible;
}

.product-row {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

.product_text {
    margin-left: 100px;
}

.product_img {
    margin-left: auto;
    position: relative;
    z-index: 2;
    -webkit-mask-image: linear-gradient(to left, black 80%, transparent 100%);
    mask-image: linear-gradient(to left, black 80%, transparent 100%);
}

.reverse .product_img {
    margin-left: 0;
    margin-right: auto;
    -webkit-mask-image: linear-gradient(to right, black 60%, transparent 100%);
    mask-image: linear-gradient(to right, black 60%, transparent 100%);
}

.reverse .product_text {
    margin-left: auto;
    margin-right: 100px;
}

.product-img-wrap {
    position: relative;
    flex: 1;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.product-img-wrap.from-left { transform: translateX(-40px); }
.product-img-wrap.from-right { transform: translateX(40px); }
.product-img-wrap.visible { opacity: 1; transform: translateX(0); }

.product-line {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 1px;
    z-index: 3;
    overflow: visible;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.product-line.visible {
    opacity: 1;
}

.product-line::after {
    content: '';
    display: block;
    width: 90px;
    height: 1px;
    background: var(--dark);
    animation: line-right 1.6s ease-in-out infinite;
    transform-origin: left center;
}

@keyframes line-right {
    0% { transform: scaleX(0); opacity: 1; }
    50% { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(1) translateX(120px); opacity: 0; }
}

.reverse .product-line::after {
    animation: line-left 1.6s ease-in-out infinite;
    transform-origin: right center;
}

@keyframes line-left {
    0% { transform: scaleX(0); opacity: 1; }
    50% { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(1) translateX(-90px); opacity: 0; }
}

/* DECORATIVE CIRCLES */
.float-circle, .float-circle2, .float-circle3, .float-circle4, .float-circle5 {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    z-index: -1;
    animation: float 8s ease-in-out infinite alternate;
}

.float-circle { top: -100px; left: 120px; width: 380px; height: 380px; background: #e86061; }
.float-circle2 { top: -35px; right: 220px; width: 260px; height: 260px; background: #e5ddb2; }
.float-circle3 { top: -35px; left: 150px; width: 260px; height: 260px; background: #e5ddb2; }
.float-circle4 { top: 10px; right: 100px; width: 215px; height: 215px; background: #e86061; }
.float-circle5 { top: -100px; left: 270px; width: 380px; height: 380px; background: #e5ddb2; }

@keyframes float {
    0% { transform: translate(0, 0); }
    25% { transform: translate(20px, -40px); }
    50% { transform: translate(10px, -20px); }
    75% { transform: translate(-10px, -50px); }
    100% { transform: translate(20px, -30px); }
}

/* ===== CATALOG ===== */
#catalog {
    margin-top: -200px;
    position: relative;
    z-index: 1;
    //background: var(--red);
    background-image: url(images/paper-texture.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    padding: 70px 0 105px;
}

.catalog-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.nagomi-overlap {
    display: none;
}

.stitle-catalog { margin-top: 70px; }
.catalog-nagomi { max-width: 269px; }
/*
.catalog-thumbs {
    display: flex;
    gap: 20px;
    overflow: hidden;
    padding-bottom: 8px;
}

.catalog-thumbs-inner {
    display: flex;
    gap: 16px;
    animation: scroll-x 40s linear infinite;
    white-space: nowrap;
}
*/
.catalog-thumbs {
    display: flex;
    gap: 20px;
    overflow: hidden;
    padding-bottom: 8px;
    width: 100%; /* 横幅いっぱいに広げる */
}

.catalog-thumbs-inner {
    display: flex;
    gap: 16px;
    animation: scroll-x 40s linear infinite;
    /* white-space: nowrap; flexが効いているので削除しても大丈夫ですが、そのままでも問題ありません */
}

@keyframes scroll-x {
    0% { transform: translateX(0); }
    /* 16枚並んだうちの、ちょうど半分の位置（8枚分移動したところ）で0%にリセット */
    100% { transform: translateX(-50%); } 
}

.catalog-thumb {
    flex-shrink: 0;
    width: 381px;
    height: 255px;
    overflow: hidden;
    border-radius: 4px;
}

.catalog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/*
@keyframes scroll-x {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}*/

.catalog-btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 70px;
}

.catalog-btn-wrap img {
    max-width: 380px;
    width: 100%;
    height: auto;
    transition: opacity 0.2s;
}

.catalog-btn-wrap:hover img {
    opacity: 0.8;
}

/* ===== COMPANY ===== */
#company {
    position: relative;
}

.company-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.company-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    margin-top: 90px;
}

.company-map-col {
    flex: 1 1 50%;
    min-width: 0;
    margin-top: 10px;
}

.company-map {
    width: 100%;
    height: 400px;
    background: #e8e8e8;
    overflow: hidden;
    border-radius: 10px;
}

.company-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.company-access {
    list-style: none;
    margin-top: 30px;
    padding: 0;
}

.company-access li {
    position: relative;
    padding-left: 1em;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.company-access li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: var(--red);
}

.company-table-col {
    flex: 1 1 36%;
    min-width: 0;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.company-table th {
    width: 140px;
    padding: 6px 28px 6px 0;
    vertical-align: top;
    color: var(--red);
    font-weight: 600;
    white-space: nowrap;
    text-align: justify;
    text-align-last: justify;
    line-height: 2.3;
}

.company-table td {
    padding: 6px 0 6px 8px;
    vertical-align: top;
    line-height: 2.3;
    color: #333;
}

/* ===== CONTACT ===== */
#contact {
    background: var(--beige);
    padding-bottom: 100px;
}

.contact-inner {
    max-width: 800px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 100px;
}

.form-group {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 0;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--dark);
    letter-spacing: 0.05em;
    width: 225px;
    flex-shrink: 0;
}

.form-label::before {
    content: '●';
    font-size: 16px;
    color: var(--red);
    flex-shrink: 0;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    max-width: 540px;
    padding: 12px 16px;
    border: 2px solid var(--red);
    border-radius: 8px;
    background: var(--white);
    font-family: var(--font-ja);
    font-size: 16px;
    color: var(--dark);
    outline: none;
    transition: border-color 0.2s;
}

.form-group:has(textarea) {
    align-items: flex-start;
    padding-top: 4px;
}

.form-textarea {
    height: 120px;
    resize: vertical;
}

.form-radio-group {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.form-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #444;
    cursor: pointer;
}

.form-radio input {
    accent-color: var(--red);
}

.form-submit {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.btn-submit {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-submit:hover {
    transform: scale(1.06);
    opacity: 0.85;
}

.form-success {
    background: #fff5f0;
    border: 1px solid var(--red);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 32px;
    text-align: center;
    line-height: 1.8;
}

.form-success p {
    color: var(--red);
    font-size: 16px;
}

.form-field {
    flex: 1;
    max-width: 540px;
    display: flex;
    flex-direction: column;
}

.form-error {
    color: var(--red);
    font-size: 12px;
    margin-top: 4px;
}

.form-input.is-error,
.form-textarea.is-error {
    border-color: var(--red);
    background: #fff5f5;
}

/* ===== FOOTER ===== */
#footer {
    //background: var(--red);
    background-image: url(images/paper-texture.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    padding: 80px 40px 80px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-disp);
    font-size: 32px;
    color: var(--white);
    letter-spacing: 0.15em;
    margin-bottom: 30px;
}

.footer-logo img {
    display: block;
    margin: 0 auto;
    height: auto;
}

.footer-copy {
    font-family: var(--font-go);
    font-size: 12px;
    color: var(--white);
    letter-spacing: 0.1em;
}

/* ===== UI ELEMENTS ===== */
.section-divider {
    width: 40px;
    height: 1px;
    background: var(--red);
    margin: 20px 0;
}

.cur-bottom {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 1px;
    height: 80px;
    overflow: visible;
}

.cur-bottom::after {
    content: '';
    display: block;
    width: 1px;
    height: 100%;
    background: var(--dark);
    animation: line-down 1.6s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes line-down {
    0% { transform: scaleY(0) translateY(0); opacity: 1; }
    50% { transform: scaleY(1) translateY(0); opacity: 1; }
    100% { transform: scaleY(1) translateY(50px); opacity: 0; }
}

.fluffy-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

/* 横スクロール防止 */
#products {
    overflow-x: hidden;
    padding-bottom: 120px;
}

.floating-nav {
    display: none;
}

/* ==================== 以下レスポンシブ ==================== */

@media (max-width: 900px) {

    .stitle-message { max-width: 110px; }
    .stitle-products { max-width: 133px; }
    .stitle-catalog { max-width: 300px; }
    .stitle-company { max-width: 120px; }
    .stitle-contact { max-width: 118px; }
    .send_btn { max-width: 91px; }
    .drawer nav picture img { max-width: 110px; }

    /* ===== HEADER SP ===== */
    #header {
        padding: 85px 20px 12px;
        height: 64px;
        justify-content: center;
        position: relative;
    }

    .header-logo {
        margin-top: 0;
        max-width: 200px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .header-logo img {
        max-width: 160px;
    }

    /* ハンバーガーは右端固定 */
    .hamburger {
        position: absolute;
        right: 20px;
        top: 70%;
        transform: translateY(-50%);
    }

    /* side-btnsは非表示 */
    .side-btns { display: none; }

    /* ===== DRAWER SP ===== */
    .drawer {
        top: 80px;
        right: -30px;
        width: 195px;
        border-radius: 40px;
        padding-left: 10px;
    }

    .drawer-logo {
        display: none;
    }

    .drawer-tel {
        margin-bottom: 20px;
        padding-bottom: 16px;
        display: block;
        margin: 0 auto;
        max-width: 65px;
    }

    .drawer-wrapper {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        pointer-events: none;
        z-index: 10;
    }

    /* ===== HERO SP ===== */
    #hero {
        margin-top: -30px;
    }

    .hero-wrapper {
        padding: 0px;
    }

    /* SP用アスペクト比（縦長に） */
    .hero-img-wrap {
        aspect-ratio: 690 / 1086;
    }

    /* SP画像に差し替え */
    .hero-slide:nth-child(1) { content: url('images/hero_01_sm.png'); }
    .hero-slide:nth-child(2) { content: url('images/hero_02_sm.png'); }
    .hero-slide:nth-child(3) { content: url('images/hero_03_sm.png'); }
    .hero-slide:nth-child(4) { content: url('images/hero_04_sm.png'); }

    /* overlay・stamp調整 */
    .hero-overlay {
        padding: 16px 20px;
        bottom: -95px;
    }

    .hero-overlay img {
        max-width: 260px;
        margin: 0 auto;
    }

    .hero-stamp {
        right: 16px;
        bottom: -16px;
        width: 150px;
    }

    .hero-red-bar {
        top: 35%;
    }

    .red-area {
        top:30%;
        background-image: url('images/paper-texture_sm.png');
    }

    /* ===== SECTION COMMON ===== */
    section {
        padding: 80px 30px;
    }

    /* ===== MESSAGE ===== */
    #message {
        padding-top: 60px;
        padding-bottom: 80px;
    }

    .message-body {
        width: 100%;
        line-height: 2.2;
    }

    /* ===== PRODUCTS SP ===== */

    /* 縦積みに変更 */
    .product-row,
    .product-row.reverse {
        flex-direction: column;
        gap: 0;
        position: relative;
        overflow: visible;
    }

    /* ① product_img：常に上・マスク解除・幅いっぱい */
    .product-row .product-img-wrap:has(.product_img),
    .product-row.reverse .product-img-wrap:has(.product_img) {
        order: 1;
        width: 100%;
        overflow: visible;
        position: relative;
        z-index: 1;
    }

    .product_img,
    .reverse .product_img {
        margin: 0;
        width: 100%;
        position: relative;
        z-index: 1;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .product_img {
        padding-right: 30px;
        box-sizing: border-box;
    }

    .reverse .product_img {
        padding-right: 0px;
        padding-left: 30px;
    }

    /* 通常：imgは左から / reverse：imgは右から */
    .product-row:not(.reverse) .product-img-wrap:has(.product_img) { transform: translateX(-40px); }
    .product-row:not(.reverse) .product-img-wrap:has(.product_img).visible { transform: translateX(0); }
    .product-row.reverse .product-img-wrap:has(.product_img) { transform: translateX(40px); }
    .product-row.reverse .product-img-wrap:has(.product_img).visible { transform: translateX(0); }

    /* ② 縦線：中央 */
    .product-row .product-line,
    .product-row.reverse .product-line {
        order: 2;
        position: relative;
        left: auto;
        top: -25px;
        transform: none;
        width: 1px;
        height: 25px;
        margin: 0 auto;
        z-index: 2;
    }

    .product-line::after,
    .reverse .product-line::after {
        width: 1px;
        height: 50px;
        animation: line-down 1.6s ease-in-out infinite;
        transform-origin: top center;
    }

    @keyframes line-down {
        0% { transform: scaleY(0); opacity: 1; }
        50% { transform: scaleY(1); opacity: 1; }
        100% { transform: scaleY(1) translateY(30px); opacity: 0; }
    }

    /* ③ product_text：常に下 */
    .product-row .product-img-wrap:has(.product_text),
    .product-row.reverse .product-img-wrap:has(.product_text) {
        order: 3;
        overflow: visible;
        z-index: 1;
    }

    /* 通常：textは右から / reverse：textは左から */
    .product-row:not(.reverse) .product-img-wrap:has(.product_text) { transform: translateX(40px); }
    .product-row:not(.reverse) .product-img-wrap:has(.product_text).visible { transform: translateX(0); display: flex; justify-content: center; }
    .product-row.reverse .product-img-wrap:has(.product_text) { transform: translateX(-40px); }
    .product-row.reverse .product-img-wrap:has(.product_text).visible { transform: translateX(0); display: flex; justify-content: center; }

    .product_text,
    .reverse .product_text {
        max-width: 370px;
        width: 100%;
        margin: 0 auto 50px;
        padding: 0 30px;
    }

    /* デコ円：product_imgの背面 */
    .float-circle, .float-circle2, .float-circle3,
    .float-circle4, .float-circle5 {
        z-index: 0;
    }

    .float-circle { top: -150px; width: 300px; height: 300px; }
    .float-circle2 { top: -45px; width: 200px; height: 200px; }
    .float-circle3 { top: -25px; width: 200px; height: 200px; }
    .float-circle4 { top: -90px; left: -30px; width: 200px; height: 200px; }
    .float-circle5 { top: -57px; left: 175px; width: 230px; height: 230px; }

    /* デコ円の親のコンテキストをリセット */
    .product-row .product-img-wrap:has(.product_text),
    .product-row.reverse .product-img-wrap:has(.product_text) {
        isolation: auto;
        z-index: auto;
    }

    /* デコ円：product_imgより後ろ */
    .float-circle, .float-circle2, .float-circle3,
    .float-circle4, .float-circle5 {
        z-index: -1;
        position: absolute;
    }

    /* product_imgは前面 */
    .product-img-wrap:has(.product_img) {
        z-index: 2;
        position: relative;
    }

    /* 横スクロール防止 */
    #products {
        overflow-x: hidden;
        padding-bottom: 120px;
    }

    .products-grid {
        overflow-x: hidden;
    }

    /* ===== CATALOG SP ===== */
    #catalog {
        margin-top: 0px;
        padding: 110px 0 80px;
        background-image: url('images/paper-texture_sm.png');
    }

    .nagomi-overlap {
        display: block;
        position: absolute;
        top: -105px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;
    }

    .nagomi-overlap .catalog-nagomi {
        max-width: 200px;
        width: 100%;
    }

    .catalog-nagomi {
        display: none;
    }

    .catalog-header {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 50px;
    }

    .stitle-catalog {
        margin-top: 0;
    }

    .catalog-thumb {
        width: 240px;
        height: 160px;
    }

    .catalog-btn-wrap {
        margin-top: 50px;
    }

    .catalog-btn-wrap img {
        max-width: 285px;
    }

    /* ===== COMPANY SP ===== */
    .company-inner {
        padding: 0;
    }

    .company-layout {
        flex-direction: column;
        gap: 40px;
        margin-top: 50px;
    }

    .company-table-col,
    .company-map-col {
        flex: none;
        width: 100%;
    }

    .company-table-col {
        padding: 0 20px;
    }

    .company-map {
        height: 280px;
    }

    .company-table th {
        width: 110px;
        line-height: 2;
    }

    .company-table td {
        line-height: 2;
    }

    /* ===== CONTACT SP ===== */
    .contact-inner {
        padding: 0 20px;
    }

    .contact-header {
        margin-bottom: 50px;
    }

    .form-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 20px;
    }

    .form-label {
        width: 100%;
    }

    .form-field {
        width: 100%;
        max-width: 100%;
    }

    .form-input,
    .form-textarea,
    .form-select {
        max-width: 100%;
        font-size: 16px;
    }

    .form-radio-group {
        padding-left: 16px;
        flex-direction: column;
        gap: 12px;
    }

    .form-submit {
        margin-top: 30px;
    }

    #footer {
        padding-top: 60px;
        padding-bottom: 130px;
        background-image: url('images/paper-texture_sm.png');
    }

    /* ===== Floating Navi SP ===== */
    .floating-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        display: flex;
        background-color: rgba(80, 80, 80, 0.8);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 9999;
        padding:0px 30px;
        box-sizing: border-box;
    }

    .nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #ffffff;
        position: relative;
        padding: 10px 0;
    }

    .nav-item::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 1px;
        background-color: rgba(255, 255, 255, 0.4);
    }

    .nav-item:last-child::after {
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 1px;
        background-color: rgba(255, 255, 255, 0.4);
    }

    .nav-item img {
        width: 55px;
        height: auto;
        margin-bottom: 4px;
    }
}

@media (max-width: 400px) {
    .company-table-col {
        padding: 0 10px;
    }

    .message-body {
        font-size: 14px;
    }

    .form-input,
    .form-textarea,
    .form-select {
        font-size: 14px;
    }

    .company-access li {
        font-size: 14px;
    }

    .company-table {
        font-size: 14px;
    }

    .form-label {
        font-size: 14px;
    }

    .form-label::before {
        font-size: 14px;
    }

    .form-radio {
        font-size: 14px;
    }

    .form-success p {
        font-size: 14px;
    }
}