/**
 * 校歌メーカー (Kouka Maker)
 * Copyright (c) 2025 Choco Next Year For Sure All Rights Reserved.
 */

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

.container,
.mobile-nav,
.option-group {
    text-align: center
}

#result-area,
.container {
    margin-top: 30px
}

.logo-link,
footer nav a {
    white-space: nowrap;
    text-decoration: none
}

.blog-list h3 a,
.desktop-nav a,
.logo-link,
.mobile-nav a,
.share-buttons a,
footer nav a {
    text-decoration: none
}

#message-area,
input[type=text] {
    margin-bottom: 15px;
    box-sizing: border-box
}

#message-area,
.site-header,
input[type=text],
textarea {
    box-sizing: border-box
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
    background-color: #e8e6e1;
    color: #333;
    margin: 0
}

.icon-size {
    height: 1.5rem;
    width: 1.5rem
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: #fff;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eaedf1;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
    padding: .75rem 1rem
}

.header-brand,
.header-nav-container {
    display: flex;
    align-items: center;
    gap: .5rem
}

.header-brand {
    color: #101418;
    flex-shrink: 1;
    min-width: 0
}

.logo-link,
h1 {
    color: #4a4a4a;
    border-bottom: 2px solid #c8bca9;
    font-family: 'Shippori Mincho', serif;
    font-weight: 700
}

.logo-link {
    font-size: 1rem;
    line-height: 1.25;
    letter-spacing: -.015em;
    overflow: hidden;
    text-overflow: ellipsis
}

.image-margin {
    margin-right: 10px
}

.header-nav-container {
    flex-shrink: 0
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 1.5rem
}

.desktop-nav a {
    color: #101418;
    font-size: .875rem;
    font-weight: 500;
    padding: .75rem 0;
    transition: color .2s
}

.desktop-nav a:hover {
    color: #888
}

.mobile-nav {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background-color: #f3f4f6;
    z-index: 40;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
    display: flex;
    flex-direction: column;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s, opacity .3s, visibility .3s
}

#mobile-menu.show,
.mobile-nav.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible
}

#mobile-menu,
#mobile-menu.hidden {
    display: block !important;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden
}

.mobile-nav a {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color .2s ease-in-out
}

.mobile-menu-a:hover,
.mobile-nav a:hover {
    background-color: #e5e7eb
}

@media (min-width:768px) {
    .site-header {
        padding: .75rem 2.5rem
    }

    .logo-link {
        font-size: 1rem
    }

    .header-nav-container {
        gap: 1rem
    }

    .desktop-nav {
        display: flex
    }

    .mobile-menu-button {
        display: none
    }
}

@media (max-width:768px) {
    .container {
        width: 95%;
        padding: 20px 15px
    }

    h1 {
        font-size: 24px
    }

    #result,
    button {
        font-size: 16px
    }

    .options-grid {
        flex-direction: column;
        gap: 20px;
        padding: 15px
    }

    .structure-selector,
    .tone-selector {
        flex-wrap: wrap;
        gap: 10px
    }

    .structure-selector label,
    .tone-selector label {
        font-size: 14px
    }

    button {
        padding: 12px 24px
    }

    #result {
        padding: 20px
    }
}

@media (min-width:1024px) {
    .logo-link {
        font-size: 1.125rem
    }
}

#mobile-menu-button {
    position: relative;
    z-index: 10001
}

#mobile-menu-button svg {
    transition: .3s
}

#mobile-menu-button.active svg {
    transform: rotate(90deg);
    opacity: .7
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    width: 24px;
    height: 24px;
    cursor: pointer;
    position: relative;
    transition: .3s
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transition: .3s;
    transform-origin: center
}

.container,
.static-page {
    background-color: #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .15);
    width: 90%;
    max-width: 720px;
    overflow-x: hidden;
    margin-left: auto;
    margin-right: auto
}

.hamburger-line:first-child {
    transform: translateY(0)
}

.hamburger-line:nth-child(2) {
    transform: translateY(5px);
    opacity: 1
}

.hamburger-line:nth-child(3) {
    transform: translateY(10px)
}

.hamburger-icon.active .hamburger-line:first-child {
    transform: translateY(6px) rotate(45deg)
}

.hamburger-icon.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateY(6px) scale(0)
}

.hamburger-icon.active .hamburger-line:nth-child(3) {
    transform: translateY(6px) rotate(-45deg)
}

#mobile-menu {
    position: fixed !important;
    top: 70px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9998 !important;
    background-color: #fff !important;
    width: 100% !important;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    transition: transform .3s ease-in-out, opacity .3s ease-in-out, visibility .3s ease-in-out
}

.container {
    padding: 30px 10px 10px;
    border-radius: 8px;
    justify-content: center
}

h1 {
    padding-bottom: 10px;
    margin-bottom: 25px
}

.options-grid {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    border: 1px solid #eee;
    padding: 15px 0;
    border-radius: 8px
}

.option-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: #555;
    font-size: 14px
}

.structure-selector,
.tone-selector {
    display: flex;
    justify-content: center;
    gap: 15px
}

.structure-selector label,
.tone-selector label {
    cursor: pointer;
    font-size: 16px
}

input[type=text] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px
}

textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 16px;
    resize: vertical
}

#result,
button {
    font-size: 18px
}

button {
    background-color: #8b4513;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color .3s, transform .1s
}

button:hover {
    background-color: #65320d
}

button:active {
    transform: scale(.98)
}

#loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #8b4513;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: 1s linear infinite spin;
    margin: 30px auto 0
}

@keyframes spin {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

#result {
    text-align: left;
    white-space: pre-wrap;
    background-color: #fef9e7;
    font-family: 'Shippori Mincho', serif;
    padding: 30px;
    border: 1px solid #ddd7c6;
    border-radius: 4px;
    min-height: 200px;
    line-height: 2;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, .05)
}

.share-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px
}

.share-buttons a {
    display: inline-block;
    background-color: #555;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color .3s
}

.share-buttons a.copied {
    background-color: #28a745;
    cursor: default
}

.share-buttons a:hover {
    background-color: #333
}

#shareX {
    background-color: #1da1f2
}

#shareX:hover {
    background-color: #0c85d0
}

.hidden {
    display: none
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    width: 100%;
    color: #777
}

footer nav {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px
}

footer nav a {
    color: #555;
    transition: color .3s
}

footer nav a:hover {
    color: #000
}

footer p {
    font-size: 12px
}

.static-page {
    border-radius: 8px;
    justify-content: center;
    margin-top: 30px;
    padding-right: 10px;
    padding-left: 10px;
    padding-bottom: 10px
}

.static-page h1,
.static-page h2 {
    font-family: 'Shippori Mincho', serif;
    border-bottom: 2px solid #c8bca9;
    padding-bottom: 10px
}

.static-page li,
.static-page p {
    line-height: 1.8;
    font-size: 16px
}

.blog-list h3 a:hover,
.static-page a {
    color: #8b4513
}

.blog-list ul {
    list-style-type: none;
    padding: 0
}

.blog-list li {
    margin-bottom: 20px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 20px
}

.blog-list h3 {
    margin: 0
}

.blog-list h3 a {
    color: #333;
    font-size: 22px
}

.blog-list .post-date {
    font-size: 14px;
    color: #888;
    margin-top: 5px
}

.back-link {
    display: inline-block;
    margin-top: 30px
}

#message-area {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    display: none
}

#message-area.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb
}

#message-area.warning {
    display: block;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba
}

.word-break {
    word-break: break-all
}

.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1f2937;
    padding: 1rem;
    z-index: 50;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, .1), 0 -2px 4px -2px rgba(0, 0, 0, .1)
}

.cookie-banner-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem
}

.cookie-banner-text {
    color: #fff;
    font-size: .875rem
}

.cookie-banner-link {
    font-weight: 700;
    color: #34d399;
    text-decoration: underline
}

.cookie-banner-link:hover {
    color: #6ee7b7
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0
}

.cookie-button-primary,
.cookie-button-save,
.cookie-button-secondary {
    padding: .5rem 1rem;
    font-size: .875rem;
    font-weight: 700;
    border-radius: .5rem;
    border: none;
    cursor: pointer;
    transition: background-color .2s ease-in-out
}

.cookie-button-primary {
    color: #fff;
    background-color: #10b981;
    margin-right: 30px
}

.cookie-button-primary:hover {
    background-color: #059669
}

.cookie-button-secondary {
    color: #fff;
    background-color: #4b5563
}

.cookie-button-secondary:hover {
    background-color: #6b7280
}

.cookie-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 60;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, .6)
}

.cookie-modal-content {
    width: 91.666667%;
    max-width: 42rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: .5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1)
}

.cookie-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937
}

.cookie-modal-description {
    margin-top: .5rem;
    font-size: .875rem;
    color: #4b5563
}

.cookie-options-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.cookie-option-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer
}

.cookie-option-name {
    font-weight: 600;
    color: #374151
}

.cookie-checkbox {
    height: 1.25rem;
    width: 1.25rem;
    border-radius: .25rem;
    color: #10b981
}

.cookie-option-description {
    margin-top: .25rem;
    font-size: .75rem;
    color: #6b7280
}

hr {
    border-color: #e5e7eb
}

.cookie-modal-buttons {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1rem
}

.cookie-button-save {
    color: #fff;
    background-color: #059669
}

.notfound-button-primary,
.notfound-card {
    background-color: var(--notfound-primary-color)
}

.cookie-button-save:hover {
    background-color: #047857
}

@media (max-width:768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start
    }

    .cookie-banner-buttons {
        width: 100%
    }

    .cookie-banner-buttons>button {
        flex-grow: 1;
        text-align: center
    }
}

:root {
    --notfound-primary-color: #ffffff;
    --notfound-background-color: #fff3cd;
    --notfound-text-primary: #4d4d4d;
    --notfound-text-secondary: #7a7a7a
}

body.page-404 {
    font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
    background-color: var(--notfound-background-color);
    color: var(--notfound-text-primary);
    padding: 0
}

.notfound-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 1rem
}

.notfound-bg-text {
    margin-bottom: 2rem
}

.notfound-bg-text span {
    font-size: 10rem;
    font-weight: 900;
    color: rgba(0, 0, 0, .05);
    line-height: 1
}

.notfound-back-button:hover,
.notfound-button-primary,
.notfound-card h1 {
    color: var(--notfound-text-primary)
}

.notfound-card {
    border-radius: .5rem;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25)
}

.notfound-card h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: .5rem;
    border-bottom: none;
    padding-bottom: 0
}

.notfound-card p {
    color: var(--notfound-text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem
}

.notfound-button-primary {
    display: inline-block;
    padding: .5rem 1rem;
    border-radius: .375rem;
    border: 1px solid #ccc;
    text-decoration: none;
    transition: transform .3s ease-in-out, background-color .3s
}

.notfound-button-primary:hover {
    transform: scale(1.05);
    background-color: #f0f0f0
}

.notfound-back-button {
    color: var(--notfound-text-secondary);
    font-size: .875rem;
    margin-top: 2rem;
    text-decoration: none;
    transition: color .3s
}