body {
    font-family: "Noto Sans JP", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: #2e2e2e;
}
.wrap {
    width: 92%;
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    padding-bottom: 80px;
}
.title-wrap {
    margin-left: calc(((100vw - 100% ) / 2) * -1);
    margin-right: calc(((100vw - 100% ) / 2) * -1);
    padding: 30px 20px;
    background: #f5f5f5;
    margin-bottom: 50px;
}
h1 {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: .06em;
    margin: 0;
    text-align: center;
}
.form-title {
    font-weight: 700;
}
.form-group {
    margin-bottom: 15px;
}
label {
    display: block;
    margin-bottom: 5px;
}
input[type="text"], select, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    line-height: 1.6;
    border: solid 1px #9b9b9b;
    border-radius: 5px;
}
input[type=checkbox] {
    display: none;
}
.checkbox {
    box-sizing: border-box;
    cursor: pointer;
    display: inline-block;
    padding: 5px 30px;
    position: relative;
    width: auto;
}
.checkbox::before {
    background: #fff;
    border: 1px solid #9b9b9b;
    content: '';
    display: block;
    height: 16px;
    left: 5px;
    margin-top: -8px;
    position: absolute;
    top: 50%;
    width: 16px;
}
.checkbox::after {
    border-right: 3px solid #e98039;
    border-bottom: 3px solid #e98039;
    content: '';
    display: block;
    height: 9px;
    left: 10px;
    margin-top: -7px;
    opacity: 0;
    position: absolute;
    top: 50%;
    transform: rotate(45deg);
    width: 5px;
}
input[type=checkbox]:checked + .checkbox::after {
    opacity: 1;
}

/* ラジオボタン */
input[type=radio] {
    display: none;
}
.radio {
    box-sizing: border-box;
    cursor: pointer;
    display: inline-block;
    padding: 5px 30px;
    position: relative;
    width: auto;
}
.radio::before {
    background: #fff;
    border: 1px solid #9b9b9b;
    border-radius: 50%;
    content: '';
    display: block;
    height: 16px;
    left: 5px;
    margin-top: -8px;
    position: absolute;
    top: 50%;
    width: 16px;
}
.radio::after {
    background: #e98039;
    border-radius: 50%;
    content: '';
    display: block;
    height: 10px;
    left: 9px;
    margin-top: -4px;
    opacity: 0;
    position: absolute;
    top: 50%;
    width: 10px;
}
input[type=radio]:checked + .radio::after {
    opacity: 1;
}
.checkbox-group {
    margin-bottom: 10px;
}
.checkbox-group label {
    display: inline-block;
    margin-right: 15px;
}
.radio-group label {
    display: inline-block;
    margin-right: 15px;
}
.selectbox {
    position: relative;
}

.selectbox::after {
    position: absolute;
    right: 15px;
    width: 10px;
    height: 7px;
    background-color: #535353;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    content: '';
    pointer-events: none;
    top: 50%;
    margin-top: -8px;
}

.selectbox select {
    appearance: none;
    min-width: 230px;
    height: 2.8em;
    padding: .4em calc(.8em + 30px) .4em .8em;
    border: 1px solid #9b9b9b;
    border-radius: 3px;
    background-color: #fff;
    color: #2e2e2e;
    font-size: 1em;
    cursor: pointer;
}
button {
    background-color: #e98039;
    border-radius: 5px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 25px;
    border: none;
    cursor: pointer;
    display: block;
    max-width: 280px;
    margin: 0 auto;
    width: 100%;
    letter-spacing: .06em;
}
button:hover {
    opacity: 0.7;
}
.result {
    margin-top: 60px;
}
.result br {
    display: none;
}
.result h2 {
    font-size: 28px;
    font-weight: 900;
    text-align: center;
    border-bottom: 3px solid #e98039;
    padding-bottom: 10px;
    margin-bottom: 40px;
}
.result h3,
.result h4 {
    font-size: 22px;
    margin: 30px 0 10px;
}
.result h4 {
    font-size: 20px;
    background: #f6f6f6;
    padding: 10px;
}
.result b {
    margin-top: 1.5em;
    display: block;
}
.result h4 b {
    display: inline;
    margin: 0;
}
.result b + br {
    display: block;
}
.additional-request {
    margin-top: 60px;
    padding: 20px;
    background-color: #edf6f1;
}
.result .additional-request h3:first-child {
    margin-top: 0;
    margin-bottom: 10px;
}
/* ローディング表示 */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}
#loading {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}
.att {
    color: #d70707;
    text-align: center;
    margin-top: 10px;
    font-size: 16px;
}
.nav-links {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}
.nav-links a {
    display: inline-block;
    margin: 0 10px;
    padding: 8px 15px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}
.nav-links a:hover {
    background-color: #e0e0e0;
}
.saved-message {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background-color: #e8f5e9;
    border-radius: 4px;
    color: #2e7d32;
}

/* YouTube動画表示エリアのスタイル */
.youtube-videos {
    margin-top: 60px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.youtube-videos h3 {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

.video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.video-item {
    width: 100%;
    max-width: 320px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.video-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.video-thumbnail::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 0, 0.8);
    border-radius: 50%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.video-item:hover .video-thumbnail::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

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

.video-info {
    padding: 15px;
    background: #fff;
}

.video-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-date {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .video-grid {
        gap: 15px;
    }
    
    .video-item {
        max-width: 100%;
    }
}        