/* ===================================
   ヘッダー・フッターのスタイル
=================================== */

/* Body基本設定 */
body {
  background-color: #fff;
  font-family: "ヒラギノ丸ゴ Pro W4", "ヒラギノ丸ゴ Pro", "Hiragino Maru Gothic Pro", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "HG丸ｺﾞｼｯｸM-PRO", "HGMaruGothicMPRO";
  font-weight: 300;
  font-size: 16px;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
}

/* Navbar（ヘッダーメニュー）- Bootstrap 3構造をBootstrap 5で動作させる */
.navbar {
  font-weight: 800;
  font-size: 14px;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-bottom: 0px !important;
  opacity: 0.9;
}

.navbar-inverse {
  background: #395246;
  border-color: #395246;
}

/* CRITICAL: containerをflexboxにしてnavbar-headerとnavbar-collapseを横並びに */
.navbar .container,
.navbar-inverse .container,
div.navbar .container,
nav.navbar .container,
div.navbar-inverse .container {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* ロゴエリア */
.navbar-header {
  display: inline-block !important;
  vertical-align: middle !important;
  width: auto !important;
  max-width: 50% !important;
  float: none !important;
  margin: 0 !important;
}

/* トグルボタン（モバイル用） */
.navbar-toggle {
  display: none;
}

/* メニューエリア */
.navbar-collapse,
.navbar-collapse.collapse,
div.navbar-collapse.collapse {
  display: inline-block !important;
  vertical-align: middle !important;
  width: auto !important;
  max-width: 50% !important;
  float: none !important;
  margin: 0 !important;
  height: auto !important;
  overflow: visible !important;
  text-align: right;
}

/* ブランド（ロゴ） */
.navbar-inverse .navbar-brand,
.navbar .navbar-brand {
  color: #FFF !important;
  font-weight: bolder;
  font-size: 22px;
  letter-spacing: 1px;
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
  margin: 0;
  padding: 0 15px;
  display: flex;
  align-items: center;
}

.navbar-inverse .navbar-brand i,
.navbar .navbar-brand i {
  color: #ff7878;
  font-size: 22px;
  letter-spacing: 1px;
}

.navbar-brand img {
  display: inline-block;
  margin-right: 10px;
  width: 10%;
}

/* ナビゲーションメニューを横並びに */
.navbar-inverse .navbar-nav,
.navbar .navbar-nav,
.nav.navbar-nav {
  flex-direction: row !important;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.navbar-inverse .navbar-nav > li,
.navbar .navbar-nav > li,
.nav.navbar-nav > li {
  display: inline-block;
  position: relative;
}

.navbar-inverse .navbar-nav > li > a,
.navbar .navbar-nav > li > a,
.nav.navbar-nav > li > a {
  color: #fff !important;
  padding: 15px;
  display: block;
  text-decoration: none;
}

.navbar-inverse .navbar-nav > li > a:focus,
.navbar-inverse .navbar-nav > li > a:hover,
.navbar .navbar-nav > li > a:focus,
.navbar .navbar-nav > li > a:hover,
.nav.navbar-nav > li > a:focus,
.nav.navbar-nav > li > a:hover {
  color: #d9b724 !important;
  background-color: transparent;
}

/* ドロップダウンメニュー */
/* PCでは.caretを表示 */
.navbar-nav > li.dropdown > a .caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 2px;
  vertical-align: middle;
  border-top: 4px dashed;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}

/* Bootstrap 5の::afterは削除（.caretを使用） */
.navbar-nav > li.dropdown > a::after {
  display: none !important;
}

.navbar-nav > li > .dropdown-menu,
.navbar .dropdown-menu {
  background: #395246 !important;
  opacity: 0.95;
  height: auto;
  max-height: 520px;
  overflow-x: hidden;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  min-width: 160px;
  padding: 0 !important;
  margin: 0 !important;
}

/* PCではホバーで開く */
@media (min-width: 768px) {
  .navbar-nav > li.dropdown:hover > .dropdown-menu {
    display: block;
  }
}

/* SPとクリック時に開く */
.navbar-nav > li.open > .dropdown-menu {
  display: block;
}

.dropdown-menu > li > a:focus,
.dropdown-menu > li > a:hover {
  color: #d9b724 !important;
  font-weight: bold;
  background-color: transparent;
}

.dropdown-menu > li > a {
  font-weight: bold;
  color: #fff;
  padding: 10px 15px;
  border-bottom: 1px solid #777;
  display: block;
  text-decoration: none;
}

.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:focus,
.navbar-inverse .navbar-nav > .open > a:hover {
  background-color: #395246 !important;
}

/* モバイル対応 */
@media only screen and (max-width: 767px) {
  .navbar .container {
    display: block !important;
    padding: 0 !important;
  }
  
  .navbar-header {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* ロゴ画像の位置調整 */
  .navbar-brand {
    padding: 10px 15px !important;
    margin: 0 !important;
  }
  
  .navbar-toggle {
    display: block !important;
    background: transparent;
    border: 1px solid #fff;
    padding: 9px 10px;
    margin: 8px 15px 8px 0 !important;
    border-radius: 4px;
    cursor: pointer;
    float: right;
  }
  
  .navbar-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #fff;
    border-radius: 1px;
    margin-bottom: 4px;
  }
  
  .navbar-toggle .icon-bar:last-child {
    margin-bottom: 0;
  }
  
  /* CRITICAL: メニューをデフォルトで非表示に */
  .navbar-collapse,
  .navbar-collapse.collapse,
  div.navbar-collapse.collapse {
    display: none !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
    clear: both;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* .inクラスが付いたら表示 */
  .navbar-collapse.in,
  .navbar-collapse.collapse.in,
  div.navbar-collapse.collapse.in {
    display: block !important;
  }
  
  .navbar-inverse .navbar-brand,
  .navbar .navbar-brand {
    font-size: 17px !important;
  }
  
  /* モバイルでは縦並び */
  .navbar-inverse .navbar-nav,
  .navbar .navbar-nav,
  .nav.navbar-nav {
    display: block !important;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .navbar-inverse .navbar-nav > li,
  .navbar .navbar-nav > li,
  .nav.navbar-nav > li {
    display: block !important;
    width: 100%;
  }
  
  .navbar-inverse .navbar-nav > li > a,
  .navbar .navbar-nav > li > a,
  .nav.navbar-nav > li > a {
    padding: 12px 15px !important;
  }
  
  /* モバイルのドロップダウン用の▼は.caretで表示（削除しない） */
  
  /* 元のHTMLに含まれる余計な要素を非表示にする */
  .navbar-nav > li.dropdown > a b {
    display: none !important;
  }
  
  /* モバイルのドロップダウンメニュー */
  .navbar-nav > li > .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }
  
  .navbar-nav > li > .dropdown-menu > li > a {
    padding: 10px 15px 10px 30px !important;
  }
}

/* Footer（フッター） */
#footerwrap {
  background: #534741;
  color: #fff;
}

.footer_info {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 3px;
}

#f {
  background: #2d2d2d;
  padding-top: 30px;
  padding-bottom: 30px;
}

#f i {
  color: #bdbdbd;
  font-size: 30px;
  padding: 20px;
}

#f i:hover {
  color: #ff7878;
}

/* Copyrights */
#copyrights {
  background: #fff;
  padding: 20px 0;
  text-align: center;
}

#copyrights p {
  margin-bottom: 5px;
}

.credits {
  color: #999;
}

/* ===================================
   フォトコンページ専用スタイル
=================================== */

/* General Styles */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    font-weight: 400;
}
.fc_wrap{
    width: 100%;
    overflow: hidden;
}
.fc_wrap p,.fc_wrap ul li{
    font-size: 1.4rem;
}
.red{
    color: crimson !important;
}
.frs{
    font-size: 80%;
}

/* Hero Section */
.hero-section {
    background-image: url('../image/topbg.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh; /* Full viewport height for PC */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.hero-title-img {
    max-width: 1000px;
    width: 80%;
}

.hero-intro-text {
    background-color: rgba(16, 155, 122, 0.85);
    padding: 50px 20px;
    border-radius: 10px;
    max-width: 1000px;
    margin: 20px auto 0;
}

.hero-intro-text h2 {
    color: #F6DC4C;
    font-weight: bold;
    font-size: 2.5rem;
}

.hero-intro-text p {
    color: white;
    margin-bottom: 0;
    font-size: 1.4rem;
}
.pagename h2{
	font-weight: bold;
	color: #395246;
}

/* Contest Info Section */
.contest-info-section .info-box {
    border: 1px solid #395246;
    padding: 30px;
    height: 100%;
    box-shadow: 10px 10px #f3f7f5;
}

.spantext span{
    font-size: 1.4rem;
    font-weight: 600;
}

.contest-info-section .info-box h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #006837;
}
.contest-info-section .info-box p{
    font-size: 1.6rem;
}

.contest-info-section .info-box .badge {
    font-size: 1.4rem;
    border-radius: 60px;
}

/* Details Section */
.details-section {
    background-color: #109b7a;
    color: white;
    padding: 100px 0;
    position: relative;
}

.details-section h4 {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #f6dc4c;
}

.details-section ul {
    list-style: none;
    padding: 0 20px;
}

.details-section ul li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 10px;
}

.details-section ul li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: white;
}

.details-section .btn-light {
    border-radius: 50px;
    padding: 10px 30px;
    font-size: 1.4rem;
    color: #109b7a;
    font-weight: 700;
}
.details-section .btn-light:hover{
    background-color: #109b7a;
    color: white;
    border-color: white;
}

.details-icon,.gasec-icon {
    position: absolute;
    pointer-events: none; /* Make icons non-interactive */
}
.spdetails-icon{
    position: absolute;
    display: none;
    pointer-events: none; /* Make icons non-interactive */
}
.icon-1 {
    top: 15%;
    right: 0;
    width: 17%;
}
.icon-2 {
    bottom: 34%;
    left: 0;
    width: 17%;
}
.icon-3 {
    bottom: 0;
    right: 0;
    width: 19%;
}
.single-1{
    top: 25%;
    right: 0;
    width: 15%;
}
.single-2 {
    top: 10%;
    left: 0;
    width: 15%;
}
.single-3 {
    bottom: 0;
    right: 0;
    width: 18%;
}
/* Gallery Section */
.wbfont {
    font-weight: bold;
    font-size: 1.8rem;
    color: #395246;
    padding-bottom: 20px;
}
.gallery-section {
    overflow: hidden; /* Hide the overflowing part of the scroller */
}

.scrolling-wrapper {
    width: 100%;
    overflow: hidden;
}

.scrolling-content {
    display: flex;
    width: fit-content; /* Let the content determine the width */
    animation: scroll 40s linear infinite;
}

.scrolling-content img {
    height: 200px;
    margin: 0 15px;
    border-radius: 10px;
    flex-shrink: 0; /* Prevent images from shrinking */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move left by the width of the first set of images */
        transform: translateX(-50%);
    }
}

.btn-outline-success {
    border-radius: 50px;
    padding: 10px 30px;
    font-size: 1.4rem;
    font-weight: 600;
}


.uploadbox {
    background-color: white;
    padding: 35px;
    border-radius: 15px;
}

/* Form Section */
.form-section {
    background-color: #f8f9fa;
}

.form-section .form-control {
    border-radius: 0;
}

.form-section .btn-lg {
    border-radius: 50px;
    padding: 15px 40px;
}
.form-check {
    padding-left: 0;
}
.formbox {
    margin-top: 5em;
}
.form-label {
    font-weight: 700;
}
.center {
    text-align: center;
}

/* ===================================
   フォトコンページ専用フッター調整
=================================== */

/* フォトコンページフッター調整（bodyクラス不要版） */
#footerwrap .container .name-desc {
    display: flex !important;
    flex-wrap: wrap;
}

#footerwrap .container .name-desc .col-md-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 768px) {
    #footerwrap .container .name-desc .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px;
    }
}

#footerwrap{
	padding: 40px 0 50px;
}

footer a{
	text-decoration: none;
}

#copyrights a{
	color: #f85c37;
}

/* Photo Gallery Page Styles */
/* .short-hero styles removed as hero section now matches boshu.html */


.photo-gallery .photo-item {
    overflow: hidden;
    transition: transform 0.3s ease;
}

.photo-gallery .photo-item:hover {
    transform: scale(1.05);
}

.photo-gallery .photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.heading-icon{
    width: 35%;
}
.pgttl_img{
    margin: 100px 0;
}

/* Lightbox Customizations */
.lightbox .lb-data .lb-caption {
    font-size: 1.2rem;
}

.lightbox .lb-data .lb-number {
    font-size: 1rem;
}

/* Past Years Section */

.past-years-section .year-links .btn {
    margin: 5px;
    border-radius: 50px;
    padding: 10px 30px;
    background-color: #198755;
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
}

.past-years-section .year-links .btn:hover {
    border: 2px solid #198754;
    background-color: #fff;
    color: #198754;
}

.elementary-section {
    background-color: white;
    position: relative;
}

.general-section {
    background-color: #109b7a;
    position: relative;
    color: white; /* Ensure text is readable on dark background */
}

.general-section .wbfont {
    color: white; /* Ensure heading is white on dark background */
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-intro-text {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: auto; /* Auto height for mobile */
        padding: 60px 20px;
    }

    .hero-title-img {
        width: 90%;
    }

    .hero-intro-text {
        padding: 15px;
    }

    .hero-intro-text h2 {
        font-size: 1.8rem;
    }

    .details-icon {
        display: none; /* Hide decorative icons on mobile */
    }
    .scrolling-content img {
        height: 150px;
    }
}

@media screen and (max-width: 1366px) {
    /* font */
    .hero-intro-text h2 {
        font-size: 2rem;
    }
    .contest-info-section .info-box h3 {
        font-size: 1.6rem;
    }
    .fc_wrap p, .fc_wrap ul li {
        font-size: 1.2rem;
    }
    .wbfont {
        font-size: 1.6rem;
    }
    .general-section data-title {
        font-size: 2rem;
    }
    .frs {
        font-size: 75%;
    }
    .spantext span {
        font-size: 1.2rem;
    }
    /* pagecontent */
    .hero-title-img {
        width: 60%;
    }
    .hero-intro-text {
        max-width: 850px;
    }

}
@media screen and (max-width: 1366px) {
    .single-1 {
        top: 30%;
    }
}

@media screen and (max-width: 1200px) {
    .general-section {
        padding: 50px 0 140px;
    }
    .single-3 {
        width: 20%;
    }
}

@media screen and (max-width: 1100px) {
    .elementary-section .pgttl_img {
        margin: 60px 0 100px;
    }
    .single-2 {
        top: 4%;
    }
}

@media screen and (max-width: 1024px) {
    .hero-section {
        height: 50vh;
    }
    .hero-intro-text {
        max-width: 800px;
        padding: 30px;
    }
    .single-1 {
        top: 10%;
        width: 17%;
    }
    .single-2 {
        top: 3%;
        width: 19%;
    }
}

@media screen and (max-width: 820px) {
    /* font */
    .hero-intro-text h2 {
        font-size: 1.8rem;
    }
    .contest-info-section .info-box h3 {
        font-size: 1.4rem;
    }
    .fc_wrap p, .fc_wrap ul li {
        font-size: 1rem;
    }
    .wbfont {
        font-size: 1.4rem;
    }
    
    .frs {
        font-size: 80%;
    }
    .spantext span {
        font-size: 1rem;
    }
    .details-section .btn-light, .btn-outline-success {
        font-size: 1.2rem;
    }
    /* pagecontent */
    .hero-title-img {
        width: 70%;
    }
    .general-section {
        padding: 40px 0 110px;
    }

}

@media screen and (max-width: 820px) {
    /* font */
    .hero-intro-text h2 {
        font-size: 1.5rem;
    }
    .contest-info-section .info-box p {
        font-size: 1.3rem;
    }
    .contest-info-section .info-box .badge {
        font-size: 1rem;
    }
    .details-section h4 {
        font-size: 1.6rem;
    }
    .details-section .btn-light, .btn-outline-success {
        font-size: 1rem;
    }
    /* pagecontent */
    .hero-section {
        min-height: 50vh;
    }
    .hero-intro-text {
        max-width: 80%;
    }
    .hero-section .container{
        padding: 50px 30px;
    }
    .contest-info-section .info-box {
        width: 90%;
        margin: 0 auto;
    }
    .uploadbox {
        width: 90%;
        margin: 0 auto;
    }
    .formbox{
        width: 80%;
        margin: 0 auto;
    }
    .icon-1 {
        top: 21%;
    }
    .icon-2 {
        bottom: 37%;
    }
    .general-section {
        padding: 40px 0 150px;
    }
    .single-3 {
        width: 21%;
    }
}

@media screen and (max-width: 430px) {
    /* pagecontent */
    .spdetails-icon{
        display: block;
    }
    

    .hero-intro-text {
        max-width: 90%;
    }
    .hero-section {
        min-height: 60vh;
    }
    .hero-section .container {
        padding: 0;
    }
    .hero-title-img {
        width: 80%;
    }
    .info-box .d-flex{
        flex-direction: column;
    }
    .details-section {
        padding: 210px 20px;
    }
    .formintro{
        padding: 0 30px;
    }

    .icon-4 {
        top: 2%;
        right: 25%;
        width: 50%;
    }
    .icon-5 {
        bottom: 0%;
        right: 0;
        width: 65%;
    }

    .heading-icon {
        width: 60%;
    }
    .single-1 {
        top: 3%;
        width: 24%;
    }
    .elementary-section .pgttl_img {
        margin: 20px 0 75px;
    }
    .single-2 {
        top: 1%;
        width: 25%;
    }
    .pgttl_img {
        margin: 100px 0 80px;
    }
    .single-3 {
        width: 30%;
    }
    .elementary-section{
        padding: 0 20px;
    }
    .general-section{
        padding: 20px 20px 110px;
    }
}

@media screen and (max-width: 375px) {
    .hero-section {
        min-height: 80vh;
    }
}