/* =========================================
Final Professional CF Styling
========================================= */
:root {
	--primary: #e53e3e; --secondary: #f6ad55; --accent: #3182ce;
	--bg-stone: #f8f7f2; --text-dark: #1a202c;
	--shadow-3d: 0 15px 35px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.05);
	--gold: #d4af37;
	--green:#38a169;
	--gold-gradient: linear-gradient(135deg, #fffbf0 0%, #fff 50%, #fffbf0 100%);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Noto Sans JP', sans-serif; color: var(--text-dark); background-color: #fff; line-height: 1.8; }
h1, h2, h3 { font-family: 'Noto Serif JP', serif; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 15px; }
.text-center { text-align: center !important; }
.py-10 { padding: 30px 0; }
.bg-beige { background-color: var(--bg-stone); }
.font-800 { font-weight: 800; }
.red-text { color: var(--primary); }
.pc-hidden {display:none;}

/* Header Area */
.cf-header-area { 
	padding: 25px 0 0px; 
	background: linear-gradient(to bottom, #fff5f7, #fff);
	text-align: center; 
	border-top: 12px solid transparent;
	border-image: linear-gradient(to right, var(--primary), var(--secondary)) 1; 
}
.project-title { font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 800; line-height: 1.4; margin-bottom: 15px; color: #111; letter-spacing: -0.02em; }
.project-title span { background: linear-gradient(transparent 70%, #ffdfdf 70%); }
.project-sub { font-size: 1.2rem; font-weight: bold; color: #555; display: inline-block; padding-bottom: 5px; }

/* Hero Section */
.cf-hero { padding: 20px 0 30px; background: #fff; border-bottom: 1px solid #edf2f7; }
.hero-flex { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1024px) { 
	.hero-flex { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: stretch; }
}

/* Left: Visual */
.hero-visual { display: flex; flex-direction: column; height: 100%; }
.gallery-main { position: relative; width: 100%; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-3d); background: #000; }
.gallery-main img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s ease-in-out; z-index: 1; }
.gallery-main img.active { opacity: 1; z-index: 2; }
.img-caption { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: #fff; padding: 20px 15px 10px; font-size: 0.9rem; font-weight: bold; pointer-events: none; z-index: 3; opacity: 0; transition: opacity 0.5s; }
.img-caption.active { opacity: 1; }
.gallery-main::before { content: ""; display: block; padding-top: 65%; } 
@media (min-width: 1024px) { 
	.gallery-main::before { content: none; } 
	.gallery-main { display: flex; flex: 1; min-height: 0; }
	.gallery-main img { position: absolute; width: 100%; height: 100%; }
}

.gallery-sub-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; height: 80px; margin-top: 10px; }
.gallery-item { position: relative; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: 0.3s; }
.gallery-item:hover { border-color: var(--primary); opacity: 0.9; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.sub-caption { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(0,0,0,0.7); color: #fff; padding: 3px; font-size: 0.7rem; text-align: center; font-weight: bold; }

/* Right: Status Box */
.hero-stats { display: flex; flex-direction: column; gap: 20px; padding: 30px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-3d); border: 1px solid #f0f0f0; justify-content: center; height: 100%; }
.stat-item:last-child { border-bottom: none; }
.stat-label { font-size: 0.85rem; color: #718096; font-weight: bold; display: block; margin-bottom: 5px; text-align:center; }
.stat-value { font-size: 3rem; font-weight: 800; display: block; align-items: baseline; line-height: 1; text-align:center; }
.stat-unit { font-size: 1.2rem; color: #4a5568; }

.target-amount-box { background: #fff5f5; border: 1px solid #fed7d7; padding: 20px 10px; border-radius: 8px; margin-top: 10px; text-align: center; }
.target-amount-box p { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin: 0; line-height: 1.2; }
.target-amount-box span { font-size: 0.8rem; color: #666; display: block; margin-top: 5px; }

.progress-outer { height: 16px; background: #edf2f7; border-radius: 20px; overflow: hidden; margin-top: 5px; }
.progress-inner { height: 100%; background: linear-gradient(90deg, var(--secondary), var(--primary)); width: 0%; transition: width 1s ease; }
.percent-display { text-align: right; font-weight: 800; font-size: 1.4rem; color: var(--primary); margin-top: 2px; }
.stat-sub-grid { display: flex; justify-content: space-between; padding-top: 5px; }
.days-left { font-size: 2rem; color: var(--primary); font-weight: 800; }

.btn-support { border:0px none;display: block; background: linear-gradient(135deg, var(--primary), #f56565); color: #fff; text-decoration: none; padding: 20px; border-radius: 10px; text-align: center; font-weight: 800; font-size: 1.2rem; box-shadow: 0 8px 20px #bebebe; transition: transform 0.2s; }
.btn-support:hover { transform: translateY(-2px); }

.btn-sns-wrap { display: flex; gap: 10px; margin-top: 15px; width: 100%; }
.btn-sns { flex: 1; width: 50%; padding: 12px; border-radius: 8px; text-decoration: none; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; border: none; cursor: pointer; font-size: 0.9rem; }
.btn-x { background: #000; }
.btn-line { background: #06c755; }

/* Cards & Layouts */
.pc-grid-3 { display: grid; grid-template-columns: 1fr; gap: 30px; }
.card-3d { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-3d); display: flex; flex-direction: column; transition: 0.3s; border: 1px solid #f0f0f0; height: 100%; }
.card-3d:hover { transform: translateY(-10px); }
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; text-align: left; }
.card-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 15px; color: #111; border-bottom: 2px solid #f0f0f0; padding-bottom: 10px; }
.card-text { font-size: 1.1rem; color: #4a5568; line-height: 1.8; }
.card-btn-wrap { margin-top: 20px; width: 100%; }
#comment-form-ajax {
  margin-top:20px;
}
#comment-form-ajax textarea {
	line-height:1.7;
}

.card-body .reward-plan-name,
.card-body .reward-price {
	text-align:center;
}

/* Access Card Layout Fix */
.c2d .card-3d { flex-direction: column; height: auto !important; }
.c2d .card-3d img { width: 100% !important; height: 250px !important; object-fit: cover; }
.c2d .card-body { padding: 30px; }

@media (min-width: 768px) { 
	.pc-grid-3 { grid-template-columns: repeat(3, 1fr); }
	.c2d .card-3d { flex-direction: row; align-items: stretch; }
	.c2d .card-3d img { width: 50% !important; height: auto !important; }
	.c2di .card-body { flex: 1; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
}
@media (max-width: 767px) {
	.card-3d { height: auto !important; }
}

.sns-btn-group-card { display: flex; gap: 10px; width: 100%; }
.sns-btn-group-card button { flex: 1; padding: 15px; font-size: 0.9rem; }

/* Support Plans */
.reward-card { border-top-width: 10px; border-top-style: solid; text-align: center; }
.reward-plan-name { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; display: inline-block; border-bottom: 2px solid #eee; padding-bottom: 5px; }
.reward-price { font-size: 2.7rem; font-weight: 800; margin-bottom: 15px; color: #111;line-height:1.5;}
.reward-detail-box { text-align: left; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed #e2e8f0; }
.reward-detail-box:last-child { border-bottom: none; }
.reward-point { font-weight: 800; margin-bottom: 5px; font-size: 1.05rem; }
.reward-desc { font-size: 0.9rem; color: #4a5568; line-height: 1.6; }

/* Button Padding Control for PC/Mobile */
.card-btn-spacer { margin-top: auto; }
@media (min-width: 768px) {
	.card-btn-spacer-2000 { padding-top: 80px; }
	.card-btn-spacer-1000 { padding-top: 120px; }
}

/* Message Bubbles */
.section-title-3d { font-size: 1.5rem; font-weight: 800; margin-bottom: 25px; line-height:1.5em;display: inline-block; border-bottom: 5px solid var(--primary); padding-bottom: 10px; }
.bubble-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px;  }
.msg-bubble { background: #fff; padding: 15px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); border: 1px solid #eee; display: flex; gap: 15px; align-items: flex-start; }
.msg-user-icon { width: 45px; height: 45px; background: #edf2f7; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.msg-bubble-content { flex: 1; }
.msg-bubble-time { font-size: 0.75rem; color: #a0aec0; margin-bottom: 5px; display: block; font-weight: bold;text-align:left; }
.msg-bubble-text { font-size: 0.95rem; font-weight: 700; color: #2d3748; line-height: 1.5; text-align: left; }

/* Vertical Ticker */
.v-ticker-box { height: 300px; overflow: hidden; background: #fff; border-radius: 15px; box-shadow: inset 0 0 10px rgba(0,0,0,0.05); border: 1px solid #eee; position: relative; margin-top: 30px; }
.v-ticker-scroll { animation: tickerV 60s linear infinite; }
.v-item { padding: 15px 20px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: flex-start; gap: 15px; }
.msg-icon { width: 36px; height: 36px; background: #eee; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.v-time { font-size: 0.8rem; color: #a0aec0; font-weight: bold; white-space: nowrap; display: block; text-align: left; margin-bottom: 5px; }
.v-text { font-size: 0.9rem; font-weight: 500; color: #333; text-align: left; }
@keyframes tickerV { 0% { transform: translateY(0); } 100% { transform: translateY(-100%); } }

/* Special Supporters */
.special-supporter-section { background: linear-gradient(to bottom, #fff, #fff9e6); border-top: 5px solid #d4af37; padding: 30px 0; }
.supporter-section { background: linear-gradient(to bottom, #fff, #ffe2e2); border-top: 5px solid var(--primary); padding: 30px 0; }
.special-card { background: #fff; border: 2px solid #f3e5ab; border-radius: 15px; padding: 30px; text-align: center; box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15); }
.special-supporter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 30px; }
.company-logo { height: 100px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.company-logo img {width:auto;height:100px;}

/* Eto Gallery Cards (Modified) */
.eto-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 10px; }
.eto-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 8px rgba(0,0,0,0.08); border: 1px solid #eee; padding-bottom: 8px; }
.eto-card img { width: 100%; height: auto; display: block; border-radius: 0; }
.eto-caption { font-weight: bold; font-size: 0.85rem; color: #555; margin-top: 8px; }

@media (min-width: 768px) {
	.eto-grid { grid-template-columns: repeat(4, 1fr); gap: 25px; }
}

/* FAQ & Others */
.faq-box { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: 12px; margin-bottom: 20px; border: 1px solid #edf2f7; text-align: left; overflow: hidden; }
.faq-q { padding: 15px; font-weight: 800; color: var(--primary); background: #fff5f5; display: flex; align-items: center; gap: 10px; }
.faq-q::before { content: "Q."; font-size: 1.2rem; }
.faq-a { padding: 25px; font-size: 1rem; color: #2d3748; line-height: 1.8; border-top: 1px solid #eee; }
.supporter-names { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 15px; margin-top: 10px; }
.name-item { background: #fff; padding: 15px; border-radius: 10px; font-weight: bold; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }

/* Profile & Map */
.profile-flex { display: grid; grid-template-columns: 1fr; gap: 25px; }
@media (min-width: 768px) { .profile-flex { grid-template-columns: 1fr 1fr; } }
.profile-card-new { gap:20px;background: #222; padding: 30px; border-radius: 20px; display: flex; align-items: center; color: #fff; text-align: left; box-shadow: var(--shadow-3d); }
.profile-icon { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--primary); flex-shrink: 0; overflow:hidden; }
.profile-icon img { display:block;width:100%;height:100%;object-fit:cover; }

@media (max-width: 767px) {
	.profile-card-new { gap:0px;flex-direction: column; padding: 0; overflow: hidden; text-align: left; }
	.profile-icon { width: 100%; height: 222px; border-radius: 0; border: none; margin-bottom: 0; }
	.profile-card-new > div { padding: 15px; }
}

.map-box { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-3d); margin-top: 30px; }
.map-box iframe {display:block; border:0px;}

[data-reveal] { opacity: 0; transform: translateY(40px); transition: 1.2s cubic-bezier(0.17, 0.67, 0.83, 0.67); }
[data-reveal].active { opacity: 1; transform: translateY(0); }
.modal-overlay { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.9); z-index:9999; align-items:center; justify-content:center; }
.modal-content { background:#fff; padding:40px; border-radius:25px; width:90%; max-width:500px; text-align:center; }

@media screen and (max-width: 767px) {
	.pc-hidden {display:block;}
	.project-sub {line-height:1.5;}
	.hero-stats {padding:20px;
}
