@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* カードフォームのスタイル */
/* Card Report Form Styles */
#card-report-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: var(--color_bg_alt, #f8f9fa);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#card-report-form button {
  border: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color_text, #333);
}

input[type="text"],
input[type="number"],
input[type="file"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color_border, #e0e0e0);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="file"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--color_main, #4a69bd);
}

textarea {
    height: 120px;
    resize: vertical;
}

.required-badge {
    background-color: var(--color_main, #4a69bd);
    color: #ffffff;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    font-weight: normal;
}

/* File input styling */
/* input[type="file"] {
    border: 1px dashed var(--color_border, #e0e0e0);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button {
    visibility: hidden;
    width: 0;
}
 */
/* input[type="file"]::before {
    content: '画像を選択';
    display: inline-block;
    background: var(--color_main, #4a69bd);
    color: #ffffff;
    border-radius: 3px;
    padding: 0.5rem 1rem;
    outline: none;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 600;
} */

/* 画像選択ボタン */
/* .file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 200px;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.custom-file-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color_main, #4CAF50);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: center;
}

.custom-file-button:hover {
    background-color: var(--color_main_hover, #45a049);
}

.file-name {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: var(--color_text, #333333);
    word-break: break-all;
} */

/* ファイルが選択されていない場合のスタイル */
/* .file-input-wrapper:not(:has(input[type="file"]:valid)) .custom-file-button::after {
    content: '画像を選択';
	display: inline-block;
    background: var(--color_main, #4a69bd);
    color: #ffffff;
    border-radius: 3px;
    padding: 0.5rem 1rem;
    outline: none;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 600;
} */

/* ファイルが選択された場合のスタイル */
/* .file-input-wrapper:has(input[type="file"]:valid) .custom-file-button::after {
    content: '選択済み';
} */

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #ffffff;
    margin: 15% auto;
    padding: 2rem;
    border: 1px solid var(--color_border, #e0e0e0);
    width: 300px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.loader {
    border: 4px solid var(--color_border, #e0e0e0);
    border-top: 4px solid var(--color_main, #4a69bd);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success and Error messages */
#post-result .success {
    background-color: #d4edda;
    color: #155724;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
}

#post-result .error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #card-report-form {
        padding: 1rem;
    }
    
    input[type="text"],
    input[type="number"],
    input[type="file"],
    textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* 投稿表示のスタイル */
#latest-card-reports {
    max-width: 800px;
    margin: 2rem auto;
}

.card-report {
    padding: 16px;
    display: flex;
    background: var(--color_bg, #ffffff);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/*.card-report:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}*/

.card-report-image {
    flex: 1;
    position: relative;
}

.card-report-image img {
    object-fit: cover;
}

.card-report-content {
    flex: 2;
    padding: 0 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.card-report-header {
    margin-bottom: 1rem;
}

.card-report-date {
    font-size: 0.875rem;
    color: var(--color_text_sub, #6c757d);
    text-align:right;
}

.card-report-nickname {
    font-size: 1rem;
    color: var(--color_text, #333);
    margin: 0;
    font-weight: 600;
}

.card-report-details {
    margin-bottom: 1rem;
}

.card-report-details p {
    margin: 0.5rem 0;
    color: var(--color_text, #495057);
    display: flex;
    align-items: center;
}

.card-report-details .label {
    font-weight: 600;
    color: var(--color_text_thin, #343a40);
    margin-right: 0.5rem;
    min-width: 120px;
}

.card-report-comment {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color_border, #e9ecef);
    color: var(--color_text, #495057);
    line-height: 1.6;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .card-report {
        flex-direction: column;
    }

    .card-report-image {
        height: 200px;
    }

    .card-report-content {
        padding: 1rem;
    }

    .card-report-details .label {
        min-width: 100px;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-report {
    animation: fadeInUp 0.5s ease-out;
}

/* 成功・エラーメッセージのスタイル */
#post-result {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

#post-result p {
    margin: 0;
}

#post-result .success {
    background-color: #dff0d8;
    color: #3c763d;
}

#post-result .error {
    background-color: #f2dede;
    color: #a94442;
}

@keyframes highlightNew {
    0% {
        background-color: rgba(255, 255, 0, 0.5);
    }
    100% {
        background-color: transparent;
    }
}
/*
.card-report.new-report {
  animation: highlightNew 1s ease-out;
}*/

/* #card-report-form button {
  box-shadow: var(--swl-btn_shadow);
  background: var(--the-btn-bg);
  border-radius: var(--the-btn-radius, 0);
  display: inline-block;
  letter-spacing: var(--swl-letter_spacing, 1px);
  line-height: 1.5;
  margin: 0;
  min-width: var(--the-min-width);
  padding: var(--the-padding);
  position: relative;
  text-decoration: none;
  width: var(--the-width);
  
  color: #fff;
  font-weight: 700;
  transition: box-shadow .25s;
}

#card-report-form button:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1), 0 12px 24px -12px rgba(0, 0, 0, .2);
  opacity: 1;
} */
/* YES・NO チャート */
.yn-chart{
  margin:0 auto 2rem;
  padding: 2em;
  max-width: 600px;
  background:#fff8e3;
  box-shadow: 0 3px 5px rgba(0,0,0,.07);
  font-size:0.9rem;
}
.yn-chart__add{
  background: #fdc44f;
  color:#fff;
  padding: 0.2em 0.9em !important;
  margin:0 !important;
  text-align:center;
  display:inline-block;
  line-height: 1.5 !important;
}
.yn-chart__title{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 0.5em 0 0.3em!important;
  margin: 0 auto !important;
  font-size:1.35em !important;
  font-weight: 600 !important;
  color:#fdc44f;
  letter-spacing: 1px !important;
  line-height:1.5 !important;
}
.yn-chart__title:before,.yn-chart__title:after {
  content: "";
  flex: 1;
  height: 1px;
  background: #fdc44f;
  display: block;
}
.yn-chart__title:before {
  margin-right: 0.7em;
}
.yn-chart__title:after {
  margin-left: 0.7em;
}
.yn-chart__ex{
  text-align:center;
  margin: 0 !important;
  padding: 0 !important;
}
.yn-chart > div{
  display:none;
  padding-top: 100px;
  margin-top: -100px;
}
.yn-chart > div.yn-chart__display{
  display:block;
}
.yn-chart > div > figure{
  margin:1em 0 2em;
}
.yn-chart > div > figure img{
  display:block;
}
.yn-chart > div > p{
  margin:2em 0 0 !important;
  padding: 0.8em 1em 0.8em 4.3em !important;
  background:#fff;
  position:relative;
}
.yn-chart > div > p:before{
  content: "Q";
  background: #fdc44f;
  position: absolute;
  left: 0;
  top: 0;
  color: #fff;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1em;
  min-width: 48px;
}
.yn-chart > div ul{
  margin:2em 0 0 !important;
  padding:0 !important;
  list-style:none !important;
  border:none;
}
.yn-chart > div ul li {
  margin: 0 0 1em 1em!important;
  padding: 0 !important;
}
.yn-chart > div ul li:last-child{
  margin:0 0 0 1em !important;
}
.yn-chart > div ul li a{
  background: #fff;
  display: block;
  padding: 0.8em !important;
  text-decoration: none;
  color: #333;
  box-shadow: 0 3px 5px rgba(0,0,0,.07);
}
.yn-chart > div ul li a:hover{
  box-shadow: inset 2px 2px 0 0 #ee8f81, 2px 2px 0 0 #ee8f81, 2px 0 0 0 #ee8f81, 0 2px 0 0 #ee8f81;
  transition: 0.1s ease-in-out;
  opacity:1;
}
.yn-chart > div ul li:before{
  content:unset !important;
}
.yn-chart__result{
  background:#fff;
  padding:1em;
}
.yn-chart__result-title{
  color: #fdc44f;
  font-size: 1.1em !important;
  font-weight:600 !important;
  padding: 0 !important;
  margin: 0 0 1em !important;
  border-bottom: 1px dashed #fdc44f;
}


@media screen and (max-width: 560px) {
  .yn-chart{
    padding:1.8em 1.3em;
  }
  .yn-chart > div > figure {
    margin: 0.5em 0;
  }
  .yn-chart > div > p {
    margin: 1em 0 0 !important;
    padding: 0.8em 1em 0.8em 3.3em !important;
  }
  .yn-chart > div ul {
    margin: 1em 0 0 !important;
  }
  .yn-chart__title{
    font-size:1em !important;
  }
  .yn-chart__title:before {
    margin-right:0.3em;
  }
  .yn-chart__title:after {
    margin-left:0.3em;
  }
  .yn-chart__ex,.yn-chart__add{
    font-size:0.9em !important;
  }
  .yn-chart > div > p:before{
    min-width: 30px;
  }
}
/* Twitterシェアボタンなど */
.p-tw-btn,.p-check-btn{
  text-align:center;
  margin:1.5em 5em !important;
  padding:0 !important;
}
.p-tw-btn a,.p-check-btn a{
  display:block;
  box-shadow: 0 3px 5px rgba(0,0,0,.15);
  color:#fff !important;
  font-weight:600 !important;
  text-decoration:none !important;
  padding:0.5em 0;
  border-radius:30px;
}
.p-tw-btn a{
  background:  #00acee;
}
.p-check-btn a{
  background:#fbc55e;
}
.p-tw-btn a:hover,.p-check-btn a:hover{
  transform: translateY(3px);
  box-shadow: 0 2px 2px rgba(0,0,0,.22);
}
.yn-chart > div > p.p-check-btn{
  background: none !important;
  padding: 0 5em !important;
}
.yn-chart > div > p.p-check-btn:before{
  content:unset !important;
}
@media screen and (max-width: 800px) {
  .p-tw-btn,.p-check-btn{
    margin:1.5em 3em !important;
  }
}
@media screen and (max-width: 560px) {
  .p-tw-btn,.p-check-btn{
    margin:1.5em 1em !important;
  }
  .yn-chart > div > p.p-check-btn{
    padding: 0 3em !important;
  }
}

/* スライドショーのCSS */
/* コンテナ：配置基準＋はみ出し防止 */
/* .swiper-container,
.swiper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-bottom: 32px; /* ページネーションと内容の重なり防止 */
}

/* （保険）縦積みスライドでも高さが伸びるように */
/* .swiper-wrapper {
  align-items: stretch;
}

/* スライド（画像→テキストの縦並びカード） */
/* .swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;

  background: #fff;
  color: #333;
  border: 1px solid #5b7fae; 
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);

  height: auto;
}

/* ページネーション */
/* .swiper-pagination {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
}
.swiper-pagination-bullet { background: #999; opacity: 1; }
.swiper-pagination-bullet-active { background: #333; }

/* ナビゲーションボタン（スライダー内の縦中央） */
/* .swiper-button-next,
.swiper-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 40px;
  height: 40px;
  color: #333;
}
.swiper-button-next { right: 8px; }
.swiper-button-prev { left: 8px; }
.swiper-button-next::after,
.swiper-button-prev::after { font-size: 24px; }

/* スライド内テキスト */
/* .swiper-slide h2 {
  font-size: 24px;
  color: #333; /* 白背景カードに合わせて可読色へ修正 */
  /* text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); ←必要なら戻す */
}
/* .swiper-slide p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* スライド内画像 */
/* .swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* 親ラッパ（余計な指定は外す） */
/* .slider-wrapper {
  width: 100%;
  padding: 0;
  margin: 0 auto;
  box-sizing: border-box;
  /* align-items: stretch; ← display:flexが無いので削除 */
}

/* レスポンシブ */
/* @media (max-width: 768px) {
  .swiper-slide { padding: 16px; }
  .swiper-slide p { font-size: 14px; }
}
/* スライドショーのCSSここまで */