@charset "utf-8";
@font-face {
    font-family: "uzura"; /*任意のフォントファミリー名でOK*/
    src: url("uzurafont100/uzura.ttf") format("truetype"); /*fontがあるパスを書いて、formatを指定*/
    font-display: swap; 
  }
body {
    font-family: "uzura", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #dfc9ab;
    margin: 0;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    overflow: auto;
  }
  .title-img {
    text-align: center;
    margin: 7%;
    font-size: 5vh;
  }
  .title-img img {
    max-width: 50%;
  }
  .next-button1 {
    text-align: center;
    padding-bottom: 10vh;
  }
  .next-button a img{
    width: 60%;
    max-width: 600px;
  }
  .title-dog img {
    width: 40%;
  }
  .yes-no {
    display: flex;
    justify-content: center;
    gap: 3em;
  }
  /*ナビ*/
  a {
    text-decoration: none;
    color: #333;
  }
  a:hover {
    opacity: 0.6;
  }
  .header-nav {
    display: flex;
    justify-content: space-between;
    padding: 20px;
  }
  .header-nav nav ul {
    display: flex;
  }
  .header-nav li {
    list-style: none;
    padding: 0 2.5em;
  }
main {
  padding-bottom: 100px;
}
  
  /*footer*/
  footer {
    background-color: #5a3e1b;
    height: 50px;
  }
  .copy {
    padding-top: 19px;
    text-align: center;
    color:  #fff;
  }
  /*main*/
  .main-img {
    width: 90%;
    margin: 0 auto;
    padding-top: 3em;
    text-align: center;
  }
  .main-img img {
    width: 80%;
  }
  .p-color {
    color: #b92e2e;
  }
  .text {
    text-align: center;
    font-size: 2em;
    padding-top: 1em;
  }
  .button {
    position: relative;
    width: 100vw;           
    height: 60vh;           
    max-width: 1000px;      
    margin: 0 auto;         
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .img {
    position: absolute;
    width: 30vw;            
    max-width: 18vw;
    height: auto;
    object-fit: cover;
  }
  
  .img1 {
    top: 50%;
    left: 18%;
    transform: translate(-50%, -50%) translateY(20%);
  }
  .img2 {
    top: 30%;
    left: 35%;
    transform: translate(-50%, -50%);
  }
  .img3 {
    top: 30%;
    left: 63%;
    transform: translate(-50%, -50%);
  }
  .img4 {
    top: 45%;
    left: 85%;
    transform: translate(-50%, -50%) translateY(20%);
  }
  .img5 {
    width: 25vw;
    max-width: 35vw;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(20%);
  }
  
  
  .space {
    padding: 15vh 0;
  }

  .tools {
    display: flex;
    flex-wrap: wrap;             
    justify-content: center;     
    gap: 30px;                   
    padding: 20px;
  }
  
  .tool {
    width: 300px;
    border-radius: 10px;
    text-align: center;
    padding: 20px;
  }
  
  .tool img {
    width: 200px;
    height: auto;
    margin-bottom: 10px;
  }
  
  .tool-name {
    font-size: 1.5em;
    margin: 10px 0;
  }
  
  .tool-text {
    font-size: 1.3em;
    color: #333;
    line-height: 1.6;
  }

  .flex {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2em;
    width: fit-content;
  }

  .hospital h4 {
    margin: 0;
    font-size: 2em;
    align-items: center;
    
  }

  .title-block {
    text-align: center;
    margin: 3em 0 1em 0;
  }
  .small-title {
    font-size: 1.8em;
    text-align: center;
    padding: 1em 2em;
    background-color: #d19f78;
    border-radius: 10px;
    display: inline-block;
    color: #fff;
  }
  .price-table {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: white;
    color: #333;
    font-size: 1.5em;
  }
  
  .price-table th,
  .price-table td {
    border: 2px solid #8B4513; 
    padding: 12px 16px;
    text-align: left;
  }
  
  .price-table th {
    background-color: #f7f0e6; 
    color: #5a3e1b;
  }
  
  .main-text {
    padding: 3em 1em;
  }
  .main-text .small-title, .vaccine h3 {
    font-size: 1.7em;
  }
  .box {
    padding: 1em 2em;
    background-color: #fff;
    border-radius: 1em;
    display: inline-block;
  }
  .text-box {
    max-width: 1000px;         
    margin: 0 auto;           
    padding: 2em;
    border-radius: 1em;
    text-align: left;
  }
  .text-box p {
    font-size: 1.5em;
  }
  .text-box .small-title {
    text-align: left;
  }
  .p-small {
    font-size: 0.9em;
  }
  .p-space {
    padding-bottom: 3em;
  }
  .bg-dog {
    background-image: url(images/bg-dog.png);
    background-repeat: no-repeat;
    background-position: 95% 90%;
  }
  .food {
    text-align: center;
  }
  .info-block {
    background-color: white;
    border-radius: 12px;
    padding: 1.5em;
    max-width: 1000px;
    margin: 2em auto;
    font-size: 1.3em;
  }
  
  .info-top {
    gap: 1.5em;
    margin-bottom: 1em;
  }
  
  .info-top img {
    width: 180px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
  }
  
  .info-text {
    min-width: 200px;
  }
  
  .info-bottom p {
    margin: 0;
    line-height: 1.6;
    font-size: 1.7rem;
    text-align: center;
  }
  .info-bottom h3 {
    text-align: center;
    font-size: 2rem;
  }

  .training-text {
    text-align: center;
  }
  
  /*quiz*/
  .quiz-section {
    max-width: 800px;
    margin: 3em auto;
    background-color: #fff;
    padding: 2em;
    border-radius: 12px;
    font-size: 1.2em;
  }
  
  .quiz-question {
    margin-bottom: 2em;
    border-bottom: 1px solid #ccc;
    padding-bottom: 1em;
  }
  
  .question-text {
    font-weight: bold;
    margin-bottom: 0.5em;
  }
  
  .options {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1em;
  }
  
  .options li {
    margin-bottom: 0.3em;
  }
  
  .answer-toggle {
    background-color: #663e1d;
    color: #fff;
    padding: 0.6em 1.2em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: "uzura";
    font-size: 1em;
  }
  
  .answer-toggle:hover {
    background-color: #a05c2f;
  }
  
  .answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    margin-top: 0.5em;
  }
  
  .answer.open {
    max-height: 1000px; 
    opacity: 1;
  }
  
  /*○○編へボタン*/
  .next-section-button {
    text-align: center;
    margin-top: 40px;
  }
  
  .next-button {
    display: inline-block;
    padding: 30px 40px;
    background-color: #f08080; 
    color: white;
    font-size: 23px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }
  
  .next-button:hover {
    background-color: #e06666;
  }
  
  /*test*/
  #quizContainer {
    background: white;
    padding: 25px 40px;
    margin: 50px auto;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  h1 {
    text-align: center;
    color: #663e1d;
    margin-bottom: 20px;
    font-weight: 700;
  }
  .question {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.5;
  }
  label {
    display: block;
    margin: 8px 0;
    cursor: pointer;
    font-size: 15px;
    color: #333;
  }
  input[type="checkbox"],
  input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.1);
    vertical-align: middle;
    cursor: pointer;
  }
  button {
    font-family: "uzura";
    display: block;
    margin: 20px auto 0;
    padding: 12px 30px;
    font-size: 18px;
    background-color: #663e1d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    user-select: none;
  }
  button:hover:not(:disabled) {
    background-color: #bb743b;
  }
  button:disabled {
    background-color: #7a4b248e;
    cursor: not-allowed;
  }
  .feedback {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    white-space: pre-wrap;
  }
  .correct {
    background-color: #e6ffed;
    border: 2px solid #28a745;
    color: #1e7e34;
  }
  .incorrect {
    background-color: #ffe6e6;
    border: 2px solid #dc3545;
    color: #721c24;
  }
  #result {
    margin-top: 30px;
    font-weight: 700;
    white-space: pre-wrap;
    color: #222;
    text-align: left;
    word-wrap: break-word;
    max-width: 100%;
    flex-grow: 1;
  }
  .checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 20px;
  }

  /*アンケート*/
  .survey-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
  }

  .survey-container h2 {
    text-align: center;
    margin-bottom: 20px;
  }

  .survey-container label {
    font-weight: bold;
    display: block;
    margin-top: 15px;
  }

  .survey-container textarea,
  .survey-container select,
  .survey-container input[type="text"],
  .survey-container input[type="email"] {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
  }

  .survey-container .radio-group {
    margin-top: 5px;
  }

  .survey-container button {
    display: block;
    width: 50%;
    padding: 10px;
    margin-top: 20px;
    background-color: #663e1d;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
  }

  .survey-container a{
    color: #fff;
  }
  .survey-container button:hover {
    background-color: #a05c2f;
  }
@media (max-width: 768px) {
  #quizContainer {
    max-width: 90%; /* 小さい画面では90%の幅 */
    padding: 20px; /* パディングを少し調整 */
  }
  #result {
    font-size: 14px; /* スマホ画面では文字サイズを小さく */
  }
}