@import url('https://fonts.googleapis.com/css2?family=Zen+Kurenaido&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

body {
    background-color: #00809D;
}


/*--------------------------------------
background
--------------------------------------*/
.p5-container {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}


/*--------------------------------------
main
--------------------------------------*/
main {
    min-height: 100vh;
    margin-top: 100px;
}

section {
    position: relative;
    width: 100%;
    margin-bottom: 50px;
}

.smartphoneContent {
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 0;
}

.section-title {
    font-size: 4rem;
    font-weight: 700;
    font-family: 'Zen Kurenaido';
    color: #FFFFFF;
    text-align: center;
}

.section-title span {
    font-size: 6rem;
}

.container h3 {
    margin-bottom: 30px;
    text-align: center;
    font-size: 3rem;
    font-family: 'Zen Kurenaido';
    color: #FFFFFF;
}

.container p {
    margin: 10px 0;
    text-align: center;
    font-size: 2rem;
    font-family: 'Zen Kurenaido';
    color: #FFFFFF;
}

.wrap .container {
    background-color: #282828b3;
    border: 1px solid #ffffff33;
    border-radius: 15px;
    padding: 50px;
    margin-top: 100px;
    box-shadow: 0 8px 16px #0000004d;
}

.wrap h3 {
    font-size: 3rem;
    text-align: center;
    color: #FFFFFF;
}

.wrap p {
    margin: 40px 0;
    font-size: 1.5rem;
    text-align: center;
    color: #FFFFFF;
}

.wrap p a {
    margin: 0 8px;
    padding: 0 8px;
    border-radius: 5px;
    background-color: #FFFFFF;
    color: #000000;
}

.wrap .videoWrap {
    display: flex;
    justify-content: center;
}

.wrap img,
.wrap video {
    width: 700px;
}

.wrap ol {
    padding-left: 50px;
    color: #e0e0e0;
}

.wrap ol li {
    margin-bottom: 25px;
    font-size: 1.4em;
}

.wrap ol li::marker {
    color: #FFEB55;
    font-weight: bold;
    font-size: 1.3em;
}

.link-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px #00000014;
    margin: 1em 0;
    transition: box-shadow 0.3s ease;
}

.link-container:hover {
    box-shadow: 0 6px 16px #0000001f;
}

.link-container a {
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    margin-right: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-container a:hover {
    color: #007bff;
}

.link-container .copy-btn {
    background-image: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
    color: #FFFFFF;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
    flex-shrink: 0;
    box-shadow: 0 2px 4px #0000001a;
}

.link-container .copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px #00000033;
}

.link-container .copy-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px #0000001a;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.asset-card {
    background: #ffffff90;
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: box-shadow 0.3s ease;
    border: 1px solid #ffffff33;
}

.asset-card:hover {
    box-shadow: 0 20px 40px #00000030;
}

.asset-card p {
    margin: 10px 0;
    font-size: 1.2rem;
    font-family: none;
    color: #000000;
}

.asset-card img,
.asset-card video {
    width: 100%;
    border: solid 5px #FFD700;
}

.asset-card .copy-btn {
    background-image: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
    color: #FFFFFF;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
    flex-shrink: 0;
    box-shadow: 0 2px 4px #0000001a;
}

.asset-card .copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px #00000033;
}

.asset-card .copy-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px #0000001a;
}



/* バナーエディターのレイアウト */
#list h2 {
    margin-bottom: 0.5rem;
}

.banner-list {
    display: flex;
    gap: 2rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* プレビューエリアと入力エリアの幅を均等に分割 */
.list-preview-area,
.input-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* プレビュー表示コンテナのスタイル */
.list-preview-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    min-height: 200px;
    background-color: #e9ecef;
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 1rem 2rem;
    font-size: 1.5rem;
    font-weight: bold;
    word-break: keep-all;
}

.list-preview-container ul {
    list-style: none;
}

.list-preview-container ul li {
    margin: 0.5rem 0;
    white-space: nowrap;
    position: relative;
    padding: 0.2rem 2.5rem 0.2rem 0;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.list-preview-container ul li:hover {
    background-color: #e2e6ea;
}

.list-preview-container ul li i {
    margin-right: 0.5rem;
}

/* 削除ボタンのスタイル */
.delete-btn {
    display: none;
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.delete-btn:hover {
    opacity: 1;
}

/* リスト項目にホバーしたときに削除ボタンを表示 */
.list-preview-container ul li:hover .delete-btn {
    display: block;
}

/* 入力エリアのスタイル */
.input-area label {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.input-area textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    resize: vertical;
}

/* アイコン選択エリアのスタイル */
.icon-selection {
    margin-top: 1.5rem;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 0.5rem;
    border: 1px solid #ccc;
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.icon-option {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    border: 2px solid transparent;
}

.icon-option.active {
    border-color: #007bff;
    color: #007bff;
}

/* ボタンの共通スタイル */
.btn {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #0056b3;
}

.button-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* デザインセクション */
#design h2 {
    margin-bottom: 0.5rem;
}

.banner-design {
    display: flex;
    gap: 2rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.design-preview-area,
.design-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.design-preview-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    min-height: 200px;
    background-color: #e9ecef;
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 1rem 2rem;
    font-size: 1.5rem;
    font-weight: bold;
    word-break: break-all;
}

.design-preview-container ul {
    list-style: none;
}

.design-preview-container ul li {
    margin: 0.5rem 0;
}

.design-preview-container ul li i {
    width: 30px;
    margin-right: 8px;
}

.style-group {
    margin-bottom: 1.5rem;
}

.style-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.style-input {
    width: 100%;
    padding: 0.5rem 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.color-picker-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.color-picker-container input[type="color"] {
    width: 100px;
    height: 50px;
    padding: 0.2rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    background-color: transparent;
}

/* Webkit系ブラウザのデフォルトスタイル調整 */
.color-picker-container input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker-container input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 3px;
}

.range-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.range-container input[type="range"] {
    flex-grow: 1;
}

.range-container span {
    width: 50px;
    text-align: right;
}

#design-preview-list.font-hachi-maru-pop {
    font-family: 'Hachi Maru Pop', cursive;
}

#design-preview-list.font-yusei-magic {
    font-family: 'Yusei Magic', sans-serif;
}

#design-preview-list.font-noto-serif-jp {
    font-family: 'Noto Serif JP', serif;
}

#design-preview-list.font-m-plus-rounded-1c {
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

#design-preview-list.font-monomaniac-one {
    font-family: 'Monomaniac One', sans-serif;
}

#design-preview-list.font-dela-gothic-one {
    font-family: 'Dela Gothic One', cursive;
}

#design-preview-list.font-kaisei-decol {
    font-family: 'Kaisei Decol', serif;
}

#design-preview-list.font-zen-kurenaido {
    font-family: 'Zen Kurenaido', sans-serif;
}

#design-preview-list.font-mochiy-pop-one {
    font-family: 'Mochiy Pop One', sans-serif;
}

#design-preview-list.font-rocknroll-one {
    font-family: 'RocknRoll One', sans-serif;
}

#design-preview-list.font-dotgothic16 {
    font-family: 'DotGothic16', sans-serif;
}

#design-preview-list.font-aoboshi-one {
    font-family: 'Aoboshi One', serif;
}

/* アニメーションセクション */
#animation h2 {
    margin-bottom: 0.5rem;
}

.banner-animation {
    display: flex;
    gap: 2rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.animation-preview-area,
.animation-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.animation-preview-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    min-height: 200px;
    background-color: #e9ecef;
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 1rem 2rem;
    font-size: 1.5rem;
    font-weight: bold;
    word-break: break-all;
}

.animation-preview-container ul {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    height: 40px;
    width: 300px;
    list-style: none;
}

.animation-preview-container ul li {
    position: absolute;
}

.animation-preview-container ul li i {
    width: 30px;
    margin-left: 5px;
    margin-right: 8px;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.radio-group label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-group span {
    display: block;
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 20px;
    background-color: #fff;
    transition: all 0.2s ease-in-out;
    user-select: none;
}

.radio-group label:hover span {
    background-color: #f0f0f0;
    border-color: #aaa;
}

.radio-group input[type="radio"]:checked+span {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}



/*--------------------------------------
スマートフォン向けスタイル
--------------------------------------*/
@media (max-width: 768px) {
    main {
        margin-top: 30px;
    }

    .smartphoneContent {
        display: block;
    }

    .pcContent {
        display: none;
    }

    .container {
        padding: 20px 0;
    }

    .container h3 {
        margin-bottom: 20px;
        font-size: 2rem;
    }

    .container p {
        margin: 20px;
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-title span {
        font-size: 3rem;
    }

    .wrap .container {
        margin: 50px 10px;
        padding: 30px;
    }

    .wrap h3 {
        font-size: 2rem;
    }

    .wrap p {
        margin: 20px 0;
        font-size: 1.2rem;
    }

    .wrap ol {
        padding-left: 30px;
    }

    .wrap ol li {
        margin-bottom: 20px;
        font-size: 1.2em;
    }

    .wrap ol li::marker {
        font-size: 1.1em;
    }

    .wrap img,
    .wrap video {
        width: 90%;
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .asset-card h3 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .asset-card p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}