:root{
    /* Font Family */
    --font-gothic:
        "Hiragino Sans",
        "Yu Gothic",
        "Meiryo",
        sans-serif;

    --font-mincho:
        "Yu Mincho",
        "Hiragino Mincho ProN",
        serif;

    /* Green Palette */
    --green-deep: #014f27;
    --green-primary: #026f35;
    --green-hover: #19a84b;
    --green-muted: #709e65;
    --green-medium: #9bc986;
    --green-light: #c2d9c3;
    --green-background: #dbe8d7;

    /* Existing aliases */
    --link-color: var(--green-primary);
    --over-color: var(--green-hover);

    --red-light: #e5caca;

}

/* ========================================
   製品説明 共通
======================================== */

.product-item-description,
#renting-models .product-item-description {
    min-width: 0;
}
.product-item-description{
    margin-bottom:24px;
}
.product-item-description dl,
#renting-models .product-item-description dl {
    margin: 0 0 12px;
}

.product-item-description dl:last-child,
#renting-models .product-item-description dl:last-child {
    margin-bottom: 0;
}

.product-item-description dt,
#renting-models .product-item-description dt {
    display: inline-block;
    margin: 0 0 5px;
    padding: 4px 12px;
    border-radius: 2px;
    background: var(--green-muted);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.product-item-description dd,
#renting-models .product-item-description dd {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    letter-spacing: 0.02em;
}

/* 主な導入ケース・製品選定の決め手 */
.product-item-description .product-selection,
.product-item-description .deciding-factor,
#renting-models .product-item-description .product-selection,
#renting-models .product-item-description .deciding-factor {
    border-left: 4px solid var(--green-muted);
    padding-left: 14px;
    margin-bottom: 18px;
}

.product-item-description .product-selection dt,
.product-item-description .deciding-factor dt,
#renting-models .product-item-description .product-selection dt,
#renting-models .product-item-description .deciding-factor dt {
    display: block;
    margin: 0 0 3px;
    padding: 0;
    background: none;
    color: #222;
    font-size: 17px;
    font-family: var(--font-gothic);
    font-weight: 600;
    line-height: 1.5;
}

.product-item-description .product-selection dd,
.product-item-description .deciding-factor dd,
#renting-models .product-item-description .product-selection dd,
#renting-models .product-item-description .deciding-factor dd {
    font-size: 15px;
    line-height: 1.75;
}

/* ========================================
   タブレット
======================================== */

@media screen and (max-width: 900px) {

    .product-item-content,
    #renting-models .product-item-content  {
        grid-template-columns: 320px minmax(0, 1fr);
        gap: 35px;
    }

    .product-item-header,
    #renting-models  .product-item-header {
        gap: 25px;
    }

    .product-item-header > label {
        min-width: 165px;
        padding: 0 14px;
        font-size: 12px;
    }
}


/* ========================================
   スマートフォン
======================================== */

@media screen and (max-width: 600px) {

    .product-item,
    #renting-models .product-item {
        padding: 50px 0;
    }

    .product-item-header,
    #renting-models .product-item-header{
        display: block;
        margin-bottom: 30px;
    }

    .product-name {
        font-size: 21px;
    }

    .product-item-header > label {
        width: 100%;
        min-width: 0;
        margin-top: 20px;
    }

    .product-item-header > label::after {
        left: 0;
        right: auto;
    }

    .product-item-content {
        display: block;
    }

    .product-item-content > a {
        margin-bottom: 30px;
    }

    .product-item-description dd {
        font-size: 13px;
    }
}
@media screen and (max-width: 600px) {

    #renting-models .product-item-content {
        display: block;
    }

    #renting-models .product-item-content > a {
        display: block;
        margin-bottom: 30px;
    }

    #renting-models .product-item-image {
        width: 100%;
        height: auto;
    }

    #renting-models .product-item-description {
        width: 100%;
    }
    #renting-models .product-item-header {
    display: block;
    margin-bottom: 30px;
    }
}

/* ========================================
   製品一覧（dipcoater/index.php の4分類専用）
======================================== */

.product-category-section {
    width: calc(100% - 80px);
    max-width: 1200px;
    margin: 80px auto;
    padding: 100px 60px 120px;
    box-sizing: border-box;
    background: #fff;
}

.product-category-section h3 {
    margin: 0 0 30px;
    font-size: 38px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.04em;
}

.product-category-section .advice {
    margin-bottom: 70px;
}

.product-category-section .how-to-choose {
    margin: 0;
}

.product-category-section .how-to-choose dt {
    display: inline-block;
    margin: 0 0 18px;
    padding: 6px 12px;
    border-radius: 3px;
    background: var(--green-muted);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.product-category-section .how-to-choose dd {
    max-width: 920px;
    margin: 0;
    font-size: 14px;
    line-height: 1.9;
    letter-spacing: 0.02em;
    white-space: pre-line;
}

.product-category-section .product-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-category-section .product-item {
    padding: 70px 0;
    border-top: 1px solid #ccc;
}

.product-category-section .product-item:last-child {
    padding-bottom: 0;
}

.product-category-section .product-item-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 35px;
}

.product-category-section .product-item-header > a {
    display: block;
    flex: 1 1 auto;
    color: #111;
    text-decoration: none;
}

.product-category-section .product-name {
    position: relative;
    margin: 0 0 18px;
    padding-left: 24px;
    color: var(--green-primary);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.03em;
}

.product-category-section .product-name::before {
    content: "〉";
    position: absolute;
    top: 0;
    left: 0;
    font-size: 28px;
    line-height: 1.35;
}

.product-category-section .product-item-header > a:hover .product-name {
    color: var(--green-hover);
}

.product-category-section .product-number,
.product-category-section .product-category {
    display: flex;
    margin: 0 0 0 24px;
    font-size: 12px;
    line-height: 1.7;
}

.product-category-section .product-number dt,
.product-category-section .product-category dt,
.product-category-section .product-number dd,
.product-category-section .product-category dd {
    margin: 0;
}

.product-category-section .product-number dt::after,
.product-category-section .product-category dt::after {
    content: "：";
}

.product-category-section .product-item-header > label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 auto;
    min-width: 190px;
    min-height: 48px;
    padding: 0 20px;
    box-sizing: border-box;
    border: 1px solid var(--green-muted);
    background: var(--green-background);
    color: var(--green-primary);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.product-category-section .comparable {
    margin: 0;
}

.product-category-section .product-item-header > .compare-guide {
    position: absolute;
    top: 58px;
    right: 0;
    width: max-content;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.product-category-section .compare-guide::before {
    content: "チェックした製品を";
}

.product-category-section .compare-guide a {
    color: var(--green-primary);
    text-decoration: underline;
}

.product-category-section .compare-guide a::before {
    content: "一覧表で比較";
}

.product-category-section .compare-guide a:hover {
    color: var(--green-hover);
}

.product-category-section .product-item-content {
    display: grid;
    grid-template-columns: 430px minmax(0, 1fr);
    align-items: center;
    gap: 55px;
}

.product-category-section .product-item-content > a {
    display: block;
}

.product-category-section .product-item-image {
    display: block;
    width: 100%;
    height: auto;
}

.product-category-section .certification:has(dd:empty) {
    display: none;
}

@media screen and (max-width: 900px) {
    .product-category-section {
        width: calc(100% - 50px);
        padding: 75px 35px 90px;
    }

    .product-category-section h3 {
        font-size: 32px;
    }

    .product-category-section .product-item-content {
        grid-template-columns: 320px minmax(0, 1fr);
        gap: 35px;
    }

    .product-category-section .product-item-header {
        gap: 25px;
    }

    .product-category-section .product-item-header > label {
        min-width: 165px;
        padding: 0 14px;
        font-size: 12px;
    }
}

@media screen and (max-width: 600px) {
    .product-category-section {
        width: calc(100% - 30px);
        padding: 55px 20px 70px;
    }

    .product-category-section h3 {
        margin-bottom: 25px;
        font-size: 27px;
    }

    .product-category-section .how-to-choose dd,
    .product-category-section .product-item-description dd {
        font-size: 13px;
    }

    .product-category-section .product-item {
        padding: 50px 0;
    }

    .product-category-section .product-item-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        row-gap: 0;
        align-items: start;
        margin-bottom: 30px;
    }

    .product-category-section .product-item-header > a {
        display: contents;
    }

    .product-category-section .product-name {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 8px;
    }

    .product-category-section .product-item-header > label {
        grid-column: 1;
        grid-row: 2;
        justify-self: end;
        justify-content: flex-end;
        width: auto;
        min-width: 0;
        min-height: 0;
        margin: 0;
        padding: 0;
        border: none;
        background: transparent;
        gap: 5px;
        line-height: 1.5;
    }

    .product-category-section .product-item-header > .compare-guide {
        position: static;
        grid-column: 1;
        grid-row: 3;
        justify-self: end;
        width: auto;
        margin: 0;
        text-align: right;
        font-size: 12px;
        line-height: 1.5;
    }

    .product-category-section .product-number {
        grid-column: 1;
        grid-row: 4;
        margin-top: 12px;
    }

    .product-category-section .product-category {
        grid-column: 1;
        grid-row: 5;
    }

    .product-category-section .product-name::before {
        font-size: 21px;
        line-height: 1.45;
    }

    .product-category-section .product-item-content {
        display: block;
    }

    .product-category-section .product-item-content > a {
        margin-bottom: 30px;
    }
}

/* ========================================
   4分類のカテゴリー選択カード（製品一覧専用）
======================================== */

#choosing-dip-coater {
    padding: 120px 0;
    background: #f3f3f1;
}

#choosing-dip-coater > h2,
#choosing-dip-coater > .choices {
    width: calc(100% - 80px);
    max-width: 1000px;
    margin-right: auto;
    margin-left: auto;
}

#choosing-dip-coater h2 {
    margin-top: 2em;
    margin-bottom: 2em;
    font-size: 40px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.04em;
}

#choosing-dip-coater .choices {
    padding: 0;
    list-style: none;
}

#choosing-dip-coater .choices > li {
    margin: 0 0 18px;
}

#choosing-dip-coater .choice-link {
    position: relative;
    display: block;
    min-height: 210px;
    padding: 55px 360px 45px 75px;
    overflow: hidden;
    box-sizing: border-box;
    color: #111;
    text-decoration: none;
    transition: transform 0.25s ease;
}

#chose-standard-models .choice-link,
#chose-release-agent-models .choice-link {
    background: linear-gradient(90deg, #ffffff 0%, #fbfbfb 55%, #ececec 100%);
}

#chose-special-function-models .choice-link,
#chose-mass-production-models .choice-link {
    background: linear-gradient(90deg, #ffffff 0%, #fdfdfd 72%, #f2f2f2 100%);
}

#choosing-dip-coater .choice-link::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    width: 340px;
    height: 100%;
    background-repeat: no-repeat;
    pointer-events: none;
}

#chose-standard-models .choice-link::after {
    background-image: url("../images/choice-standard-models.png");
    background-size: 320px auto;
    background-position: right 30px center;
}

#chose-special-function-models .choice-link::after {
    background-image: url("../images/choice-special-function-models.png");
    background-size: 200px auto;
    background-position: right 100px center;
}

#chose-release-agent-models .choice-link::after {
    background-image: url("../images/choice-release-agent-models.png");
    background-size: 180px auto;
    background-position: right 100px center;
}

#chose-mass-production-models .choice-link::after {
    background-image: url("../images/choice-mass-production-models.png");
    background-size: 200px auto;
    background-position: right 100px center;
}

#choosing-dip-coater .features {
    position: relative;
    z-index: 2;
    margin: 0;
}

#choosing-dip-coater .features dt {
    position: relative;
    margin: 0 0 22px;
    padding-left: 0;
    color: var(--green-primary);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.02em;
}

#choosing-dip-coater .features dt::before {
    content: "〉";
    position: absolute;
    top: 0;
    left: -28px;
    font-size: 27px;
    font-weight: 400;
    line-height: 1.4;
}

#choosing-dip-coater .features dd {
    margin: 0;
    font-size: 14px;
    line-height: 1.9;
    letter-spacing: 0.025em;
}

#choosing-dip-coater .choice-link:hover {
    transform: translateY(-2px);
    box-shadow: 2px 2px 4px -2px #cccccc;
}

#choosing-dip-coater .choice-link:hover .features dt {
    color: var(--green-hover);
}

@media screen and (max-width: 900px) {
    #choosing-dip-coater {
        padding: 90px 0;
    }

    #choosing-dip-coater > h2,
    #choosing-dip-coater > .choices {
        width: calc(100% - 50px);
        max-width: none;
    }

    #choosing-dip-coater h2 {
        margin-top: 1.5em;
        margin-bottom: 1.5em;
        font-size: 32px;
    }

    #choosing-dip-coater .choice-link {
        min-height: 190px;
        padding: 45px 280px 40px 40px;
    }

    #choosing-dip-coater .choice-link::after {
        width: 260px;
    }

    #chose-standard-models .choice-link::after {
        background-size: 250px auto;
        background-position: right 15px center;
    }

    #chose-special-function-models .choice-link::after,
    #chose-mass-production-models .choice-link::after {
        background-size: 165px auto;
        background-position: right 55px center;
    }

    #chose-release-agent-models .choice-link::after {
        background-size: 150px auto;
        background-position: right 55px center;
    }

    #choosing-dip-coater .features dt {
        font-size: 21px;
    }

    #choosing-dip-coater .features dd {
        font-size: 13px;
    }
}

@media screen and (max-width: 600px) {
    #choosing-dip-coater {
        padding: 60px 0;
    }

    #choosing-dip-coater > h2,
    #choosing-dip-coater > .choices {
        width: calc(100% - 30px);
    }

    #choosing-dip-coater h2 {
        margin-top: 1em;
        margin-bottom: 1.2em;
        font-size: 27px;
    }

    #choosing-dip-coater .choices > li {
        margin-bottom: 14px;
    }

    #choosing-dip-coater .choice-link {
        min-height: 0;
        padding: 30px 25px 190px 45px;
    }

    #choosing-dip-coater .choice-link::after {
        top: auto;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 170px;
        background-position: center center;
    }

    #chose-standard-models .choice-link::after {
        background-size: auto 150px;
    }

    #chose-special-function-models .choice-link::after,
    #chose-release-agent-models .choice-link::after,
    #chose-mass-production-models .choice-link::after {
        background-size: auto 145px;
    }

    #choosing-dip-coater .features dt {
        margin-bottom: 14px;
        font-size: 20px;
    }

    #choosing-dip-coater .features dt::before {
        left: -22px;
        font-size: 20px;
        line-height: 1.45;
    }

    #choosing-dip-coater .features dd {
        font-size: 13px;
        line-height: 1.8;
    }

    #choosing-dip-coater .choice-link:hover {
        transform: none;
        box-shadow: none;
    }
}

/* ========================================
   仕様性能比較表（dipcoater/index.php 専用）
======================================== */

#maincontents .comparison-table .is-hidden {
    display: none;
}

#maincontents .comparison-table-area {
    width: 1100px;
    max-width: 100%;
    margin: 80px auto;
}

#maincontents .comparison-table-area::before {
    content: "※上記一覧の「仕様性能比較」にチェックすると、比較対象を絞り込めます";
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 12px;
    line-height: 1.5;
    text-align: right;
}

#maincontents .comparison-table-wrap {
    width: 1100px;
    max-width: 100%;
    margin: 0 auto 80px;
    overflow: auto;
    overflow-x: scroll;
    border: 1px solid #ddd;
    -webkit-overflow-scrolling: touch;
}

#maincontents .comparison-table-wrap::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

#maincontents .comparison-table-wrap::-webkit-scrollbar-thumb {
    border-radius: 0.25rem;
    background-color: #666;
}

#maincontents .comparison-table {
    width: 100%;
    max-width: none;
}

#maincontents .comparison-table-wrap table {
    width: auto;
    border-collapse: collapse;
    border: 1px solid #ddd;
    white-space: nowrap;
}

#maincontents .comparison-table-wrap table th,
#maincontents .comparison-table-wrap table td {
    border-top: 1px solid #ddd;
    padding: 0.5em;
    font-size: 12px;
    vertical-align: top;
    white-space: break-spaces;
}

#maincontents .comparison-table-wrap table th {
    position: sticky;
    left: 0;
    z-index: 4;
    width: 180px;
    min-width: 180px;
    background-color: #ddd;
    text-align: center;
}

#maincontents .comparison-table-wrap table tr:nth-child(odd) th {
    background: #eee;
    white-space: nowrap;
}

#maincontents .comparison-table-wrap table td {
    text-align: center;
}

#maincontents .comparison-table-wrap table td.text-02,
#maincontents .comparison-table-wrap table td.text-03 {
    width: 180px;
    min-width: 180px;
}

#maincontents .comparison-table-wrap table td.comment {
    text-align: left;
    white-space: normal;
}

#maincontents .comparison-table-wrap table td img {
    display: block;
    width: 150px !important;
    max-width: none;
    height: auto;
    margin: 0 auto;
}

/* ========================================
   製品一覧（dipcoater/index.php のカテゴリ一覧専用）
======================================== */

.product-catalog {
    width: calc(100% - 80px);
    max-width: 1200px;
    margin: 70px auto;
}

.product-catalog-jumps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 45px;
    padding: 0;
    list-style: none;
}

.product-catalog-jumps a {
    display: block;
    padding: 10px 16px;
    border: 1px solid #709e65;
    border-radius: 3px;
    color: #026f35;
    background: #fff;
    text-decoration: none;
    line-height: 1.5;
}

.product-catalog-jumps a:hover {
    background: #dbe8d7;
}

.product-catalog-section {
    margin: 0 0 46px;
    scroll-margin-top: 24px;
}

.product-catalog-section h2 {
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #026f35;
    color: #014f27;
    font-size: 26px;
    line-height: 1.45;
}

.product-catalog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-catalog-item {
    min-width: 0;
    border: 1px solid #d5ddd4;
    background: #fff;
}

.product-catalog-item a,
.product-catalog-item__text {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    color: #222;
    text-decoration: none;
}

.product-catalog-item:hover,
.product-catalog-item:hover > a,
.product-catalog-item:hover > .product-catalog-item__text {
    background: #f1f7ef;
}

.product-catalog-item__image {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.product-catalog-item__details {
    min-width: 0;
}

.product-catalog-item__name,
.product-catalog-item__number {
    display: block;
    overflow-wrap: anywhere;
}

.product-catalog-item__name {
    color: #026f35;
    font-weight: 600;
    line-height: 1.55;
}

.product-catalog-item__number {
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.5;
}

.product-catalog-empty {
    margin: 0;
    padding: 14px 16px;
    background: #f7f7f7;
    line-height: 1.6;
}

/* 検索結果（dipcoater/search.php 専用） */
.search-content .product-search-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.search-content .product-search-results__item {
    min-width: 0;
    border: 1px solid #d5ddd4;
    background: #fff;
}

.search-content .product-search-results__item a,
.search-content .product-search-results__text {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    color: #222;
    text-decoration: none;
}

.search-content .product-search-results__item:hover,
.search-content .product-search-results__item:hover > a,
.search-content .product-search-results__item:hover > .product-search-results__text {
    background: #f1f7ef;
}

.search-content .product-search-results__image {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.search-content .product-search-results__details {
    min-width: 0;
}

.search-content .product-search-results__name,
.search-content .product-search-results__number {
    display: block;
    overflow-wrap: anywhere;
}

.search-content .product-search-results__name {
    color: #026f35;
    font-weight: 600;
    line-height: 1.55;
}

.search-content .product-search-results__number {
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.5;
}

.search-content .product-search-message {
    margin: 0;
    padding: 16px;
    background: #f7f7f7;
    line-height: 1.6;
}

@media screen and (max-width: 600px) {
    .product-catalog {
        width: calc(100% - 30px);
        margin: 40px auto;
    }

    .product-catalog-jumps {
        gap: 8px;
        margin-bottom: 32px;
    }

    .product-catalog-jumps li {
        width: calc(50% - 4px);
        min-width: 0;
    }

    .product-catalog-jumps a {
        box-sizing: border-box;
        height: 100%;
        padding: 9px 10px;
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    .product-catalog-section {
        margin-bottom: 36px;
    }

    .product-catalog-section h2 {
        font-size: 21px;
    }

    .product-catalog-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-catalog-item a,
    .product-catalog-item__text {
        padding: 13px 14px;
    }

    .search-content .product-search-results {
        grid-template-columns: minmax(0, 1fr);
    }

    .search-content .product-search-results__item a,
    .search-content .product-search-results__text {
        padding: 13px 14px;
    }
}

@media screen and (max-width: 900px) {
    #maincontents .comparison-table-area,
    #maincontents .comparison-table-wrap {
        width: 100%;
    }
}

@media screen and (max-width: 767px) {
    #maincontents .comparison-table-area {
        margin: 55px auto;
    }

    #maincontents .comparison-table-wrap {
        margin-bottom: 55px;
    }

    #maincontents .comparison-table-wrap table th {
        width: 90px;
        min-width: 90px;
        padding: 0.4em 0.2em;
        font-size: 10px;
        line-height: 1.25;
    }

    #maincontents .comparison-table-wrap table tr:nth-child(odd) th {
        white-space: normal;
    }
}
