header {
    text-align: center;
}

header p {
    font-size: 0.8em;
    color: #555;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4em;
    width: fit-content;
}

header p::before {
    content: '👇️';
    position: static;
    transform: none;
    font-size: 1em;
    color: #007bff;
}

header h1.title-list {
    font-size: 1.0em;
    text-align: center;
    color: #fff;
    font-weight: bold;
    padding: 0.3em 1em;
    background: #3a3a3a;
    border: 1px solid #111;
    border-radius: 6px;
    max-width: 90%;
    margin: 0.3em 0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.header-flex {
    display: flex;
    justify-content:center;
    align-items: center;
    padding: 0 1em;
}

.image-logo-home .image,.image-logo-page .image {
    width: 100%;
    height: auto;
    display: block;
}

.image-logo-home{
    flex: 0 0 auto; 
    max-width: 160px; 
}

.image-logo-page{
    margin: 0 auto;
    max-width: 150px; 
}

.back-button-container {
    text-align: left;
    margin-bottom: 0.1em;
    max-width: 800px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    padding: 0 0.8em;
    background-color: #f0f0f0;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 0.8em;
}

.back-button::before {
    content: "←";
    margin-right: 0.4em;
    font-size: 1em;
}

.no-before.back-button::before {
    content: none; 
}

.tool-list {
    background-color: #CCCCCC;
}

body {
    font-size: 1.2em;
    font-family: "Fira Sans", "Noto Sans JP", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #F5F5F5;
}

.title {
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
    display: inline-block;
    width: fit-content;
    max-width: 95%;
    margin: 0 auto;
    padding: 0.3em 1em;
    font-size: 1em;
    font-weight: bold;
    color: #333;
}

/* iPhone 12 miniなどの狭い画面幅向け */
@media screen and (max-width: 375px) {
    .title {
        font-size: 0.9em;
    }
}

.content-home,
.content-page{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.content-home {
    gap: 16px;
    padding: 0.5em;
}

.item {
    position: relative;
    text-align: center;
    padding: 8px;
    box-sizing: border-box;
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.item-card {
    position: relative;
}

.item-card h2 {
    font-size: clamp(14px, 4vw, 18px);
    margin: 8px 0;
    line-height: 1.2;
    font-weight: 600;
    color: #333;
    position: relative;
    padding-top: 12px;
}

.item-card h2::before {
    content: '';
    display: block;
    width: 15px;
    height: 15px;
    background-color: #3a3a3a;
    border-radius: 50%;
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.item-card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    text-decoration: none;
    color: transparent;
}

.image-grid {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* 各商品ページレイアウト */
.title-page {
    border-bottom: 2px solid;
}

.note {
    display: flex;
    font-size: 0.7em;
    color: #cc0000;
    /* text-align: left; */
    margin: 0.5em 0;
    max-width: 100%;
    line-height: 1.5;
}

.note-asterisk {
    display: inline-block;
    white-space: nowrap;
    margin-right: 0.3em;
    vertical-align: top;
}

@media screen and (max-width: 375px) {
    .note {
        font-size: 0.6em;
        padding: 0 10px;
    }
}

.info-text {
    width: 95%;
    margin: 0 auto;
}

.info-text dt {
    font-size: 0.9em;
    margin-top: 0.5em;
    color: #FFF;
    display: inline-block;
    padding: 0.2em 0.5em;
    border-radius: 10px 10px 0 0;
    line-height: 1.4;
}

.info-text dd {
    border: 2px solid;
    background-color: #FFFFFF;
    font-size: 0.85em;
    line-height: 1.5;
    padding: .4em;
    margin: 0;

}

@media screen and (max-width: 375px) {
    .info-text dd {
        font-size: 0.8em;
    }
}

.pdf-link {
    padding-bottom: 0.3em;
}

.pdf-link p {
    text-align: center;
    margin-top: 0.2em;
}

.page-item {
    width: 90%;
    max-width: 600px;
    margin-top: 1em;
    /* padding: 1.5em; */
    box-sizing: border-box;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.page-item h2 {
    font-size: clamp(14px, 5vw, 22px);
    margin: 0.1em 0 0.1em 0.1em;
    line-height: 1.2;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.page-item-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    text-decoration: none;
    color: transparent;
}

.page-grid {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* background-color: #f5f5f5; */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-grid img,
.page-grid a {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1em 1.0em;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    font-size: 0.9em;
}

.page-video {
    text-align: center;
    max-width: 600px;
    margin: 1em auto;
    /* 上下のマージンを調整 */
    padding: 0.5em 1.5em;
    box-sizing: border-box;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.page-video p {
    font-size: clamp(16px, 5vw, 22px);
    font-weight: 700;
    color: #333;
    text-align: center;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3em 1em;
    background-color: #fcfcfc;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin: 0 auto 0.5em auto;
    width: fit-content;
    max-width: 90%;
    border: 1px solid #eee;
    border-bottom: none;
}

.page-video p::before {
    content: "▶";
    /* color: inherit; */
    font-size: 1em;
    margin-right: 0.5em;
}

.page-video p a {
    color: inherit;
    /* 親要素のテキスト色を継承 */
    text-decoration: none;
    /* デフォルトの下線を削除 */
}

.page-video iframe {
    width: 100%;
    max-width: 560px;
    height: auto;
    aspect-ratio: 16 / 9;
    border: none;
    display: block;
    margin: 0 auto;
}


/* 各商品カラー */
.page-video.color-kabenonaka p::before {
    color: #0094D6;
}

.color-kabenonaka-border,
.info-text dd.color-kabenonaka-border {
    border-color: #0094D6;
}

.color-kabenonaka-bg {
    background-color: #0094D6
}

.page-video.color-gaburi p::before {
    color: #cc0000;
}

.color-gaburi-border,
.info-text dd.color-gaburi-border {
    border-color: #cc0000;
}

.color-gaburi-bg {
    background-color: #cc0000;
}

.page-video.color-urawaza p::before {
    color: #0000ff;
}

.color-urawaza-border,
.info-text dd.color-urawaza-border {
    border-color: #0000ff;
}

.color-urawaza-bg {
    background-color: #0000ff;
}

.page-video.color-saikoro p::before {
    color: #008000;
}

.color-saikoro-border,
.info-text dd.color-saikoro-border {
    border-color: #008000;
}

.color-saikoro-bg {
    background-color: #008000;
}

.page-video.color-sleeve p::before {
    color: #ffa500;
}

.color-sleeve-border,
.info-text dd.color-sleeve-border {
    border-color: #ffa500;
}

.color-sleeve-bg {
    background-color: #ffa500;
}

.page-video.color-rimseal p::before {
    color: #43F20D;
}

.color-rimseal-border,
.info-text dd.color-rimseal-border {
    border-color: #43F20D;
}

.color-rimseal-bg {
    background-color: #43F20D;
}

body.qr-page {
    display: grid;
    place-items: center;
    min-height: 70vh; 
    margin: 0;
}

.qr-content-wrapper{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 600px;
}






