    body
    {
        background-image: url(../images/body-bg.jpg?20250710);
        background-repeat: repeat-y;
        background-size: 100%;
        box-sizing: border-box;
        color: #000000;
        font-size: 16px;
        font-family: "Noto Sans JP", YuGothic, "Yu Gothic", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic ProN", sans-serif;
        font-optical-sizing: auto;
        font-weight: 500;
        font-style: normal;
        line-height: 1.8;
        letter-spacing: 0.1em;
        margin: 0;
        padding: 0;
        text-align: center;
        height: 100%;
    }
    .contents
    {
        background-image: url(../images/main-bg.jpg?20250710);
        width: 58.3%;
        height: 100%;
        min-width: 1120px;
        margin: 0 auto;
        position: relative;
        max-width: calc(100vw - 30px);
    }
    .contents:before
    {
        content: "";
        position: absolute;
        top: 0;
        left: -20px;
        width: 20px;
        height: 100%;
        background-image: url(../images/main-side-bg.jpg?20250710);
        background-repeat: repeat-y;
        background-size: contain;
        z-index: 0
    }
    .contents:after
    {
        content: "";
        position: absolute;
        top: 0;
        right: -20px;
        width: 20px;
        height: 100%;
        background-image: url(../images/main-side-bg.jpg?20250710);
        background-repeat: repeat-y;
        background-size: contain;
        z-index: 0;
    }
    main
    {
        box-sizing: border-box;
          min-height: calc(100vh - 250px);
        max-width: 100vw;
        
    }
    section
    {
        width: 940px;
        margin: 55px auto;
    }
    html
    {
        margin: 0;
        padding: 0;
        scroll-behavior: smooth;
    }
     html, body {
    overscroll-behavior-x: none; /* 横方向のバウンスを禁止 */
    overscroll-behavior-y: none; /* 縦方向も禁止したい場合 */
    }
    h2
    {   
        font-size: 32px;
        color: #603813;
        margin: 0;
    }
    section h2
    {
        margin: 100px auto 55px;
        position: relative;
        text-align: center;
        letter-spacing: 5px;
    }
    section h2:before
    {
        content:"";
        max-width:194px;
        width: 17.3%;
        aspect-ratio: 194/24;
        background-image: url(./../images/sec-before.png);
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        position: absolute;
        top: -24px;
        left: 50%;
        transform: translateX(-50%);
    }
    h3
    {
        font-size: 24px;
        margin: 0;
    }
    h4
    {   
        font-size: 18px;
        margin: 0;
    }
    p{margin: 0;}
    img
    {
        max-width: 100%
    }
    svg {
        width: 80%; 
        max-width: 300px;
        height: auto;
        display: block;
        margin: 0 auto;
      }
      .not-access{
          display: flex;
          flex-flow: column;
          align-items: center;
          justify-content: center;
      }
          p.font-34
    {
        font-size: 34px;
    }
    p.font-32
    {
        font-size: 32px;
    }
    p.font-30
    {
        font-size: 30px;
    }
    p.font-24
    {
        font-size: 24px;
    }
    p.font-22
    {
        font-size: 22px;
    }
    p.font-18
    {
        font-size: 18px;
    }
    p.font-16
    {
        font-size: 16px;
    }
    .center{
        text-align: center !important;
    }
    /*TOP*/
    .top
    {
        display: flex;
        flex-flow: column;
        align-items: center;
        position: relative;
    }
    .top h1
    {
        margin: 55px auto 10px;
        width: 75%;
    }
    .top-il
    {
        max-width:267px;
        width: 24%;
        height: 95%;
        position: absolute;
        top: 160px;
        z-index: 0;
    }
    .il-left
    {
        left: -10px;
    }
    .il-right
    {
        right: -10px;
    }
    .top h2
    {
        padding: 15px 70px;
        aspect-ratio: 402/80;
        background-image: url(../images/top-before.png);
        background-position: center;
        background-size: 100%;
        background-repeat: no-repeat;
        margin: 0 auto 55px ;
    }
    .top p
    {
        font-weight: bold;
    }
    .top-text-midashi
    {
        font-size: 24px;
        margin-bottom: 15px;
    }
    .gp-step>.top-text-midashi
    {
        margin:  30px 0;
    }
    .top-text
    {
        max-width: 730px;
        width: 62%;
        font-size: 18px;
    }
    .red-text
    {
        color: #7d1b40;
    }
    .top-note
    {
        margin-top: 1em;
    }
    .em
    {
        color: red;
    }
    .onder-bar
    {
        border-bottom: 1px solid #000000;
    }
    
    
    /*グランプリのステップ*/
    .step-box
    {
        background-position: center;
        background-repeat: no-repeat;
        background-size: 100% 100%;
        margin: 10px 0;
        padding: 15px 15px;
        box-sizing: border-box;
        position: relative;
    }
    .step-box:after
    {
        content:"";
        background-image: url(../images/arrow.png);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        width: 5%;
        aspect-ratio: 11.8/6.5;
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translate(-50%);
    }
    .step-box.box-1
    {
        background-image: url(../images/step-1.png);
        margin-top: 60px;
    }
    .step-box.box-2
    {
        background-image: url(../images/step-2.png);
    }
    .step-box.box-3
    {
        background-image: url(../images/step-3.png);
    }
    .gp-step>p
    {
        margin-bottom: 30px; 
    }
    .step-box-h3
    {
        background-image: url(../images/title-h3.png);
        background-position: center;
        background-repeat: no-repeat;
        background-size: 100% 100%;
        text-align: center;
        width: 60%;
        top: -50%;
        left: 50%;
        transform: translateX(-50%);
        position: absolute;
        color: #603813;
    }
    
    /*特典*/
    .benefit-box
    {
        display: flex;
        justify-content: space-between;
        align-items: stretch;
    }
    .benefit-box>div
    {
        width: 48.5%;
        background-color: #fff;
        padding: 20px;
        box-sizing: border-box;
        position: relative;
        text-align: left;
    }
    .benefit-box>div:after
    {
        content: "";
        display: inline-block;
        width: 96%;
        height: 88%;
        border: 1px solid #603813;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
    }
    .benefit-box>div h3
    {
        padding-left: 40px;
        color: #7d1b40;
        padding-top: 15px;
    }
    .benefit-box>div h3>span
    {
        position: absolute;
        top: 25px;
        left: 25px;
    }
    .benefit-box>div h3>span:after
    {
        content: "";
        position: absolute;
        right: 2px;
        top: 23%;
        left: 20px;
        width: 1px;
        height: 1.7em;
        border-right: 1px solid #7d1b40;
        transform: rotate(40deg);
    }
    .benefit-box-in
    {
        display: flex;
        justify-content: space-between;
        align-items: stretch;
        font-weight: bold;
        margin-top: 10px;
    }
    .benefit-box-in>p
    {
        width: 70%;
        font-size: 18px;
        letter-spacing: -1px;
    }
    .benefit-box-in>p>.red-text
    {
        font-size: 20px;
    }
    .benefit-img
    {
        width: 30%;
        position: relative;
    }
    .kuroshio
    {
        width: 100%;
        position: absolute;
        right: 0;
        bottom:0;
    }
    .quo
    {
        width: 100%;
        position: absolute;
        right: 0;
        bottom:0;
        
    }
    
    /*市町村選択*/
    .city-list {
        display: block;
        grid-template-columns: repeat(4, 1fr);
        justify-items: stretch;
        margin:  55px auto;
    }
    .row
    {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
    .row:last-of-type
    {
        width: 50%;
        display: flex;
    }
    .cell {
        outline: 4px solid white;
        outline-offset: -2px;
        padding: 20px;
        text-align: center;
        position: relative;
        background-clip: padding-box;
        box-sizing: border-box;
        color: #fff;
        font-size: 22px;
    }
    .cell>a
    {
        display: inline-block;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
    }
    .cell>a:hover
    {
        background-color: rgba(0 , 0, 0, 0.3)
    }
    .row:last-of-type>.cell
    {
        width: 50%;
    }
    .status-label {
        position: absolute;
        top: 16px;
        left: -24px;
        color: #000000;
        width: 110px;
        font-size: 14px;
        font-weight: bold;
        transform: rotate(-45deg);
        border-bottom: 3px solid #fff;
    }
    .status-now {
        background: #ffc900;
    }
    .status-winner {
        background-image:url(../images/win-city-bg.png);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
    }
    .status-voted
    {
        background: #b38a00;
    }
    .status-prep {
        background: #ccccae;
    }
    .status-end {
        background: #528280;
        color: white;
    }

    
    /*投票概要*/
    .voting-summary table
    {
       margin: -27px auto;
       width: 100%;
       border-collapse: separate;
       border-spacing: 0 27px;
       padding: 0
    }
    .voting-summary table th
    {
        width: 15%;
        min-width: 140px;
        vertical-align: top;
        font-weight: bold;
       
    }
    .voting-summary table th>span
    {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 1.8em;
        background-color: #fff;
        border-radius: 50px;
        border: 1px solid #603813;
        color: #603813;
    }
    .voting-summary table td
    {
        width: 100%;
        text-align: left;
        padding-left: 5%;
        box-sizing: border-box;
        display: flex;
        flex-flow: column;
        align-items: flex-start;
        font-weight: bold;
        
    }
    .voting-summary .note
    {
        color: #840040;
    }
    
    .banner{
        margin: 55px auto;
    }
    .banner>div a
    {
      display: inline-flex;  
    }
    footer
    {
        padding: 100px 0;
    }
    
    /*投票ページ*/
    .header-bg
    {
        width: 100%;
        height: 60px;
        position: fixed;
        top: 0;
        left: 0;
        background-image: url(../images/header-bg.png);
        display: flex;
        justify-content:center;
        align-items: center;
        z-index: 9999;
    }
    .vote-li
    {
        width: 220px;
        position: absolute;
        z-index: 99
    }
    .vote-li-left
    {
        top:100px;
        left: -50px;
    }
    .vote-li-right
    {
        top:100px;
        right: -50px;
    }
    .header-bg>img
    {
        height: 45px;
    }
    .vote-top
    {
        padding-top: 100px;
        position: relative;
    }
    .vote-city
    {
        color: #603813;
        font-size: 50px;
        margin: 0 auto 50px;
    }
    .vote-top>p
    {
        font-size: 24px;
        font-weight: bold;
    }
    .nominate-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
        grid-auto-rows: auto; 
        width: 940px;
        row-gap: 25px;
        column-gap: 3%;
      }

    .nominate-box {
      display: flex;
      flex-direction: column;
      border: 4px solid #e3bc9b;
      border-radius: 5px;
      
    }
    .nominate-title
    {
        display: flex;
        flex-flow: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        background-color: #e3bc9b;
        padding: 10px 0;
        box-sizing: border-box;
        position: relative;
        
    }
    .n-no
    {
        display: block;
        line-height: 1;
    }
    .n-name
    {
        display: block;
        font-weight: bold;
        font-size: 24px;
        width: 60%;
        text-align: center;
    }
    /* ラジオボタン */
    .nominate-box input[type="radio"] {
      display: none;
    }
    .select-button,
    .selected-badge {
      display: flex;
      position: absolute;
      width: 70px;
      aspect-ratio: 1/1;
      border-radius: 50%;
      font-size: 14px;
      font-weight: bold;
      line-height: 1.5;
      color: white;
      margin-bottom: 8px;
      z-index: 10;
      top: 50%;
      transform: translateY(-52%);
      left: 10px;
      align-items: center;
      text-align: center;
      justify-content: center;
    }

    .select-button {
      background-color: #603813;
    }

    .selected-badge {
      background-color: #fff;
      color: #d12c25;
      display: none;
    }

    .nominate-box .select-button {
      display: flex;
    }
    .nominate-box .selected-badge {
      display: none;
    }

    .nominate-box.selected .select-button {
      display: none;
    }
    .nominate-box.selected .selected-badge {
      display: flex;
    }

    

    .nominate-content {
      display: flex;
      text-align: left;
      justify-content: space-between;
      padding: 5px;
      transition: border 0.3s ease;
      cursor: pointer;
    }

    /* ボーダー：hoverまたは選択時は虹色 */
    .nominate-box:hover ,
    .nominate-box.selected {
      border: none;
      background-image: url(../images/vote-activ.png);
      background-repeat: no-repeat;
      background-position: center;
      background-size: cover;
      padding: 4px;
    }
    .nominate-box:hover .stretch-bg,
    .nominate-box.selected .stretch-bg{
        flex-grow: 1; /* 余った高さを引き受ける */
        background: #f7f6f5; /* 例：うっすら赤背景で可視化 */
        z-index: 10
      }
    .nominate-box:hover >label,
    .nominate-box.selected >label{
        background-color: #f7f6f5;
    }
    .nominate-box:hover .nominate-content,
    .nominate-box.selected .nominate-content{
        
    }
    .nominate-box:hover .nominate-title,
    .nominate-box.selected .nominate-title
    {
        background-image: url(../images/nominate-title-bg.png);
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
    }

    /* テキストと画像 */
    .n-img {
          width: 58.5%;
          aspect-ratio: 240 / 182;
      
    }
    .n-img>img
    {
      width: 100%;
      object-fit: cover;
      aspect-ratio: 240 / 182;
    }
    .n-description
    {
        width: 40%;
        font-size: 14px;
		word-break: break-all;
    }


/* 白背景カード枠（divに対して適用） */
.voting-summary > div {
    display: flex;
    flex-flow: column;
    background-color: #fff;
    padding: 30px;
    margin: 0 auto 40px;
    color: #333;
    text-align: left;
    border: 2px solid #d5bf69;
    line-height: 0.5em;
    font-weight: bold;
}

/* 各ラベルのスタイル */
.voting-summary label {
  display: block;
  margin: 6px 0;
  font-size: 14px;
}

/* テキストボックス */
.voting-summary input[type="text"] {
  width: 100%;
  padding: 15px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-top: 4px;
  box-sizing: border-box;
}

/* チェックボックスの余白 */
.voting-summary input[type="checkbox"] {
  margin-right: 6px;
}

/* ボタン */
.voting-summary button[type="submit"] {
  width: 50%;
  font-size: 24px;
  font-weight: bold;
  color: white;
  border: none;
  aspect-ratio: 211/28;
  background-image: url(../images/vote-btn.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  cursor: pointer;
  margin: 20px auto 0;
  transition: opacity 0.3s ease;
  letter-spacing: 0.3em;
}

/* ホバー時に少し透明に */
.voting-summary button[type="submit"]:hover {
  opacity: 0.85;
}
    .vote-comp
    {
         min-height: calc(100vh - 390px);
         flex-flow: column;
    }
    .comp-box
    {
        padding: 10px;
        width: 90%;
        max-width: 940px;
        min-height: 500px;
        background-repeat: repeat;
        background-position: center;
        background-size: contain;
        margin: 50px auto 0;
        display: flex;
        flex-direction: column;
        border-radius: 40px;
    }
    .comp-box h2
    {
        color: #754c24;
        font-weight: bold;
        font-size: 32px;
    }
    .comp-box h2.failed
    {
        font-size: 40px;
        margin: 55px auto;
    }
    .comp-box.failed,
    .comp-box.error-page
    {
        background-image: url(../images/main-side-bg.jpg);
    }
    .comp-box.win
    {
        background-image: url(../images/win-bg-1.png);
    }
    .in-comp-box .note
    {
        color: #7d1b40;
        font-weight: bold;
    }
    .in-comp-box
    {
        flex-grow: 1;
        min-height: inherit;
        width: 100%;
        background-image: url(../images/main-bg.jpg);
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        border-radius: 40px;
        padding: 50px 0;
        box-sizing: border-box;
        position: relative;
    }
    .comp-contents
    {
        max-width:400px;
        margin: 0 auto;
        display: flex;
        flex-flow: column;
            
    }
    .in-comp-box p
    {
        width: 100%;
        text-align: justify;
        margin: 25px auto;
        line-height: 1.2;
    }
    .in-comp-box p.quo-win
    {
        text-align:center;
    }
    .win-bold
    {
        font-size: 24px;
        font-weight: bold;
        
    }
    .win-bold>.font-18
    {
        font-size: 18px;
    }
    .win-nomal
    {
        font-size: 18px;
        font-weight: bold;
    }
    win-nomal-n
    {
        font-weight: 400;
        font-size: 16px;
    }
    .win-nomal.center
    {
        text-align: center;
    }
    .win-left
    {
        position: absolute;
        height: calc(100% - 60px);
        top: 30px;
        left: -20px;
    }
    .win-right
    {
        position: absolute;
        height: calc(100% - 60px);
        top: 30px;
        right: -20px;
    }
    .f-left
    {
        position: absolute;
        width: 180px;
        top: 70px;
        left: 125px;
    }
    .f-right
    {
        position: absolute;
        width: 180px;
        top: 70px;
        right: 125px;
    }
    .win-h2>img
    {
        width: 320px;
    }
    .dl-link
    {
        color: #808080;
        display: block;
    }
    .quo-img
    {
        max-width: 125px;
        width: 40%;
        margin: 10px auto;
    }
    .stamp-img
    {
        width: 100%;
    }
    .top-btn
    {
        max-width: 400px;
        aspect-ratio: 427/60;
        width: 100%;
        margin: 15px auto;
        border: 2px solid #42210b;
        background-color: #fff;
        border-radius: 30px;
    }
    .top-btn>a
    {
        display: inline-block;
        width: 100%;
        height: 100%;
        text-decoration: none;
        color: #42210b;
        display: flex;
        flex-flow: column;
        text-align: center;
        align-items: center;
        justify-content: center;
    }
    .line-btn
    {
        width: 100%;
        aspect-ratio: 427/60;
        margin: 25px auto;
        background-image: url(../images/line-btn.png);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        border-radius: 30px;
        filter: drop-shadow( 3px 5px 0 #42210b);
    }

    .dl-btn
    {
        background-image: url(../images/DL-btn.png);
    }
    .app-btn
    {
        width: 100%;
        aspect-ratio: 427/60;
        margin: 25px auto;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        border-radius: 30px;
        filter: drop-shadow( 3px 5px 0 #42210b);
        background-image: url(../images/APP-btn.png);
    }
    .line-btn>a
    {
        display: inline-block;
        width: 100%;
        height: 100%;
        text-decoration: none;
        color: #fff;
        font-weight: bold;
        display: flex;
        flex-flow: column;
        text-align: center;
        align-items: center;
        justify-content: center;
        text-shadow:
        -2px -2px 0 #42210b,
         2px -2px 0 #42210b,
        -2px  2px 0 #42210b,
         2px  2px 0 #42210b,
         0px -2px 0 #42210b,
         0px  2px 0 #42210b,
        -2px  0px 0 #42210b,
         2px  0px 0 #42210b;
    }
    .app-btn>a
    {
        color: #42210b;
        display: inline-block;
        width: 100%;
        height: 100%;
        text-decoration: none;
        font-weight: bold;
        display: flex;
        flex-flow: column;
        text-align: center;
        align-items: center;
        justify-content: center;
    }
    .app-text
    {
        text-align: center !important;
        font-weight: bold;
    }
    .comp-box.error-page .in-comp-box
    {
        display: flex;
        flex-flow: column;
        justify-content: center;
        align-items: center;
    }

    
@media all and (min-width:768px){
    .sp
    {
        display: none;
    }
    .pc
    {
        display: block;
    }
    .banner>div a:hover img
    
    {
        filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
        transition: filter 0.2s ease;
    }
    .top-btn:hover
    {
        background-color: #42210b;
    }
    .top-btn:hover a
    {
        color: #fff;
    }
    .line-btn:hover,
    .app-btn:hover
    {
        filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0.0));
        opacity: 0.8;
    }
} 
@media all and (max-width:1260px) and (min-width:768px){
    .vote-li-right {
        top: 100px;
        right: 0;
    }
    .vote-li-left {
        top: 100px;
        left: 0;
    }

    .vote-li {
        width: 200px;
        position: absolute;
        z-index: 99;
    }
}
@media all and (max-width:1160px) and (min-width:768px){
    section
    {
        width: 90%;
    }
    .contents
    {
        background-image: url(../images/main-bg.jpg?20250710);
        width:  100%;
        margin: 0 20px;
        height: 100%;
        position: relative;
        min-width: 250px;
        max-width: calc(100% - 40px) !important;
    }
    .benefit-box
    {
        width: 100%;
        flex-flow: column;
        align-items: center;
        justify-content: center;
    }
    .benefit-box>div
    {
        margin: 20px;
        width: 80%;
        max-width: 420px;
    }
    .city-choice
    {
        text-align: left;
    }
    .nominate-list
    {
        width: 100%;
    }
    .nominate-content
    {
        flex-flow: column;
    }
    .n-img
    {
        width: 100%;
    }
    .n-description
    {
        width: 100%
    }
    .n-name
    {
        width: 50%
    }
}