@charset "UTF-8";
/* =========================================
   富熊コミュニティだより｜写真投稿フォーム
   Clean CSS (deduped)
   ========================================= */

:root{
  --bg:#fafafa; --ink:#222; --muted:#666; --line:#ddd;
  --brand:#0e7ac7; --err:#c71e1e;
}

*,*::before,*::after{ box-sizing:border-box; }

ul.on{
  list-style: disc;       /* ・を表示（数字にしたいなら decimal） */
  padding-left: 1.5em;    /* 左に少し余白を戻す */
  margin-left: 0;         /* 不要なら調整 */
}

.wrap{max-width: 880px;
    margin: 0 auto;
    padding: 20px; }

h2.pf_h2{
    font-size: 2rem;
    text-align: center;
    line-height: 1.5;
    padding-top: 10px;
    background: #FFF4B5;
    padding: 3%;
	border-radius: 0 0 5px 5px;
}

/* --- 説明／見出し --- */
p.lead{ color:var(--muted); margin:0 0 24px; }
.req_box{ margin-bottom: 30px;
    margin-top: 10px; }
h2.req_h2{ font-size:2.4rem; text-align:center; border-bottom:1px solid; padding:2% 0; }
h3.req_h3{ font-size:2.2rem; margin-bottom:10px; }
h3.req_h3::before{ content:"◾️"; margin-bottom:10px; }
ul.req_ul{     font-size: 1.7rem;
    line-height: 1.8;
    padding-left: 20px;}

.form_bk{ background:#f2f2f2; }
.photo_form_sec{ max-width:880px; padding: 5% 4% !important;}

/* --- ラベル/入力 --- */
label{
font-weight: 600;
    display: block;
    margin-top: 10px;
    font-size: 1.7rem;
    line-height: 1.5;
}
.help{ font-size:.9rem; color:var(--muted); }

input[type="text"], textarea{
  width:100%; padding:12px 14px; border:1px solid var(--line);
  border-radius:10px; background:#fff; font:inherit; outline:none;
  transition:border-color .15s ease;
}
input[type="text"]:focus, textarea:focus{ border-color:var(--brand); }
textarea{ min-height:120px; resize:vertical; }
.counter{ font-size:.85rem; color:var(--muted); text-align:right; margin-top:6px; }

.error{ color:var(--err); font-size:.9rem; margin-top:8px; }

/* --- 行レイアウト（PC=2カラム） --- */
.row{
  display:grid; grid-template-columns:180px minmax(0,1fr);
  gap:16px 24px; align-items:start; margin:20px 0;
}
.row.full{ grid-template-columns:180px minmax(0,1fr); }

/* --- アップロード（横並び） --- */
.upload .upload-area{
  display:flex; gap:24px; align-items:flex-start;
}

.drop{
  position:relative; flex:1 1 0%;
  min-height:160px; border:2px dashed #d7d7d7; border-radius:12px;
  background:#fff; padding:24px; display:grid; place-items:center;
}
.drop input[type="file"]{
  position:absolute; inset:0; opacity:0; cursor:pointer;
}
.drop .drop-inner{ text-align:center; line-height:1.6; pointer-events:none; font-size: 1.5rem;}
.drop.dragover{ border-color:var(--brand); background:#f3f9ff; }
span.click_bt {
    background: #2E2E2E;
    color: #fff;
    padding: 0.5rem;
    border-radius: 3px;
}

span.click_bt u{
    text-decoration: none;
}

/* --- プレビュー --- */
.preview-wrap{ width:220px; flex:0 0 220px; }
.preview{
  background:#fff; border:1px solid #e5e5e5; border-radius:12px; padding:12px;
}
.preview .thumb{
  width:100%; aspect-ratio:1/1; border-radius:10px; overflow:hidden;
  background:#f3f5f7; display:grid; place-items:center; margin-bottom:8px;
}
.preview .thumb img{ max-width:100%; max-height:100%; object-fit:cover; }
.preview .filemeta{ font-size:12px; color:#666; margin-bottom:8px; }
.preview .actions .btn{ width:100%; }
.preview img{ max-width:200px; height:auto; border:1px solid var(--line); border-radius:8px; }

/* --- Buttons --- */
button,.btn{ appearance:none; border:none; border-radius:999px; padding:12px 18px; font-weight:700; cursor:pointer; }
.btn-primary{ background:var(--brand); color:#fff; font-size: 1.8rem; margin-bottom: 30px;}
.btn-ghost{ background:#f2f6f9; color:#0a4570; }

/* --- Notes/Policy/Notice --- */
.req{ color:var(--brand); font-weight:700; margin-left:6px; }
.notes{ font-size:.95rem; color:var(--muted); margin-top:4px; }
.policy{font-size: 1.5rem;
    line-height: 1.5;
    color: #333;
    background: #f7f7f9;
    border: 1px solid var(--line);
    padding: 12px;
	border-radius: 12px;}

.notice{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:18px; }
.notice.success{ border-color:#bfe6c2; }
.notice.error{ border-color:#f0c2c2; }
.notice h2{ margin:0 0 8px; }

/* --- アップロード＆プレビューの高さをそろえる --- */
.upload .upload-area {
  display: flex;
  gap: 24px;
  align-items: stretch; /* ← 高さをそろえるポイント！ */
}

/* ドロップ枠とプレビューの高さを統一 */
.drop,
.preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 260px; /* お好みで調整可能 */
  box-sizing: border-box;
}

/* プレビュー内の画像が中央に来るように */
.preview .thumb {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview .thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

/* プレビュー枠は固定サイズ。中央に全体表示＋周囲グレー */
.preview-wrap { width: 220px; flex: 0 0 220px; }

.preview {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 12px;
}

/* 画像表示エリア */
.preview .thumb {
  width: 100%;
  height: 260px;              /* ← ドロップ枠と同じ高さに。お好みで */
  border-radius: 10px;
  background: #f3f5f7;        /* 周囲のグレー */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;            /* はみ出し防止 */
  margin-bottom: 8px;
}

/* 画像はトリミングせず等比で収める */
.preview .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;         /* ← これがポイント！ */
  display: block;
  border: 0;                   /* 既存の .preview img の枠を無効化 */
}

/* 既存スタイルの競合を無効化（保険） */
.preview img { max-width: none; height: auto; border: 0; }
[hidden]{ display:none !important; }


/* --- SP（<=640px）で1カラム＆縦積み --- */
@media (max-width:640px){
  .row,.row.full{ grid-template-columns:1fr; }
  .upload .upload-area{ flex-direction:column; }
  .preview-wrap{ width:100%; flex:0 0 auto; }
	  .drop,
  .preview {
    height: auto;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion:reduce){
  *{ transition:none !important; }
}

/* 同意チェック欄 */
.agree-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.5rem;
}

/* チェックボックスを少し大きめに */
.agree-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
}

/* 2カラム整列は .row 共通の設定が効く */
.row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px 24px;
  align-items: start;
  margin: 20px 0;
}

.drop-inner_sp{
	display: none;
}

/* スマホでは縦積み */
@media (max-width: 640px) {
  .row { grid-template-columns: 1fr; }
}

/* -------------------------------------
   入力フィールドの見た目を統一（emailも含める）
-------------------------------------- */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-size: 1.5rem;	
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(14, 122, 199, 0.15);
}

.req {
  font-size: 0; /* 元のテキストを非表示 */
  margin-left: 4px;
  line-height: 1;
  display: inline-block;
  vertical-align: baseline;
}

.req::before {
  content: "＊";
  font-size: 14px;  /* ← 絶対値にするのがポイント！ */
  color: var(--brand);
  font-weight: 700;
  line-height: 1;
  position: relative;
  top: -1px; /* 少し下げたい時は微調整 */
}

.label_sfont{
	font-size: 12px;
}

.send_btn{
	text-align: center;
}

.pf-thanks {
    text-align: center;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.pf-thanks h1 {
    font-size: 2.2rem;
    padding: 2rem 0 1rem;
}

.pf-thanks p {
	padding-bottom: 2rem;
}

.pf-thanks .pf-thanks__list{
    text-align: left;
    font-size: 1.5rem;
    line-height: 2;
	width: 400px;
	margin: 20px auto;
}

.pf-thanks .pf-thanks__list li{
padding-bottom: 1.5rem;
}


.pf-thanks img{
	max-width: 500px;
	height: auto;
}

.pf-thanks .re_btn {
    background: #40BF61;
    color: #FFFFFF;
    width: 200px;
    font-size: 1.8rem;
    padding: 1.2rem;
    border-radius: 999px;
    margin: 0 auto 50px;
}

.pf-thanks .re_btn a{}
/* スマホでは縦積み */
@media (max-width: 640px) {
.pf-thanks h1 {
    font-size: 2.6rem;
}
.pf-thanks p {
    font-size: 1.9rem;
}
.pf-thanks .pf-thanks__list {
    font-size: 1.9rem;
    width: 350px;
}
.pf-thanks .re_btn {
    width: 200px;
    padding: 2rem;
	}
h3.req_h3 {
    font-size: 2.5rem;
}	

ul.req_ul {
    font-size: 2rem;
}	
section.requirements{
padding: 4% 0;
}
	h2.req_h2 {
    font-size: 2.6rem;
}
label {
    font-size: 2.1rem;
    line-height: 1;
}
	.agree-label {
    font-size: 2rem;
    margin-bottom: 10px;
}
	.policy {
    font-size: 1.8rem;
    line-height: 1.8;
}
	.btn-primary {
    font-size: 2.2rem;
    margin-bottom: 30px;
}
	
		.drop-inner_pc{
	display: none;
}
	
	.drop-inner_sp{
	display: block;
}
	h2.pf_h2 {
    font-size: 1.8rem;
}
	
	.wrap {
    padding: 0;
}
	input[type="text"], input[type="email"], textarea {
    font-size: 1.8rem;
}
	
}