/*
Theme Name: AKIYAto INVEST
Theme URI: https://akiyato.co.jp
Author: 空き家地方創生株式会社
Author URI: https://akiyato.co.jp
Description: 儲かる空き家を見つけるサイト — 空き家投資プラットフォーム専用WordPressテーマ
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: akiyato-invest
*/

:root {
  --color-navy: #1F2A44;
  --color-dark-gray: #333333;
  --color-white: #FFFFFF;
  --color-light-gray: #F5F5F5;
  --color-orange: #FF7A00;
  --color-green: #2E7D32;
  --color-orange-hover: #E56D00;
  --color-green-hover: #1B5E20;
  --color-border: #E0E0E0;
  --font-main: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
  --radius-sm: 4px;
  --radius-md: 6px;
  --shadow-card: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
  --max-width: 1200px;
  --header-height: 72px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-main); color: var(--color-dark-gray); background: var(--color-white); line-height: 1.8; }
a { color: var(--color-navy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-orange); }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-main); color: var(--color-navy); font-weight: 700; line-height: 1.4; }
h1 { font-size: 36px; } h2 { font-size: 30px; } h3 { font-size: 24px; } h4 { font-size: 20px; }
p { margin-bottom: 1em; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--gray { background: var(--color-light-gray); }
.section__label { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-orange); margin-bottom: 8px; display: block; }
.section__title { font-size: 30px; font-weight: 700; color: var(--color-navy); margin-bottom: 40px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--color-navy); height: var(--header-height); display: flex; align-items: center; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo__text { color: var(--color-white); font-size: 20px; font-weight: 700; }
.site-logo__sub { color: rgba(255,255,255,0.6); font-size: 11px; display: block; margin-top: -2px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 500; }
.main-nav a:hover { color: var(--color-white); }
.nav-cta { background: var(--color-orange); color: var(--color-white) !important; padding: 8px 20px; border-radius: var(--radius-sm); font-weight: 700; font-size: 13px; transition: background 0.2s; }
.nav-cta:hover { background: var(--color-orange-hover); color: var(--color-white) !important; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--color-white); margin: 5px 0; transition: 0.3s; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--color-navy) 0%, #2C3E5A 100%); padding: 100px 0 80px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(255,122,0,0.08) 0%, transparent 70%); pointer-events: none; }
.hero__content { position: relative; z-index: 1; text-align: center; max-width: 720px; margin: 0 auto; }
.hero__title { color: var(--color-white); font-size: 40px; font-weight: 700; line-height: 1.4; margin-bottom: 16px; }
.hero__subtitle { color: rgba(255,255,255,0.7); font-size: 16px; margin-bottom: 40px; }
.hero__search { background: var(--color-white); border-radius: var(--radius-md); padding: 8px; display: flex; gap: 8px; max-width: 560px; margin: 0 auto; box-shadow: 0 4px 24px rgba(0,0,0,0.2); }
.hero__search select, .hero__search input { flex: 1; border: none; padding: 14px 16px; font-size: 15px; font-family: var(--font-main); background: var(--color-light-gray); border-radius: var(--radius-sm); color: var(--color-dark-gray); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.hero__search select:focus, .hero__search input:focus { outline: 2px solid var(--color-orange); }
.hero__search-btn { background: var(--color-orange); color: var(--color-white); border: none; padding: 14px 28px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; font-family: var(--font-main); cursor: pointer; white-space: nowrap; transition: background 0.2s; }
.hero__search-btn:hover { background: var(--color-orange-hover); }
.hero__stats { display: flex; justify-content: center; gap: 48px; margin-top: 48px; color: var(--color-white); }
.hero__stat-number { font-size: 36px; font-weight: 700; display: block; }
.hero__stat-label { font-size: 13px; color: rgba(255,255,255,0.6); }

/* Hero Video Background */
.hero--has-video { background-size: cover; background-position: center; }
.hero--has-video::before { display: none; }
.hero__video {
  position: absolute; top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover; z-index: 0;
}
.hero__video--pc { display: block; }
.hero__video--sp { display: none; }
.hero__overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-navy); z-index: 0; pointer-events: none;
}
.hero--has-video .hero__content { z-index: 2; }
@media (max-width: 768px) {
  .hero__video--pc { display: none; }
  .hero__video--sp { display: block; }
}

/* Property Card */
.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.property-card { background: var(--color-white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); transition: box-shadow 0.3s, transform 0.3s; position: relative; }
.property-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.property-card__image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.property-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.property-card:hover .property-card__image img { transform: scale(1.03); }
.property-card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.badge { padding: 4px 10px; border-radius: 3px; font-size: 11px; font-weight: 700; line-height: 1; }
.badge--under99 { background: var(--color-orange); color: var(--color-white); }
.badge--new { background: var(--color-orange); color: var(--color-white); }
.badge--sold { background: var(--color-dark-gray); color: var(--color-white); }
.badge--gold { background: linear-gradient(135deg, #FFD700, #FFA500); color: #1a1a1a; }
.badge--silver { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: var(--color-white); }
.property-card__body { padding: 16px 20px 20px; }
.property-card__area { font-size: 12px; color: #888; margin-bottom: 4px; }
.property-card__title { font-size: 15px; font-weight: 700; color: var(--color-navy); margin-bottom: 8px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.property-card__price { font-size: 24px; font-weight: 700; color: var(--color-orange); margin-bottom: 4px; }
.property-card__price small { font-size: 14px; font-weight: 400; color: var(--color-dark-gray); }
.property-card__yield { font-size: 13px; color: var(--color-green); font-weight: 700; margin-bottom: 12px; }
.property-card__realtor { font-size: 12px; color: #888; border-top: 1px solid var(--color-border); padding-top: 12px; display: flex; align-items: center; gap: 6px; }
.property-card--sold { position: relative; }
.property-card--sold::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.6); z-index: 3; pointer-events: none; }

/* Archive */
.archive-header { background: var(--color-navy); padding: 48px 0; color: var(--color-white); }
.archive-header h1 { color: var(--color-white); font-size: 32px; margin-bottom: 8px; }
.archive-header p { color: rgba(255,255,255,0.6); font-size: 14px; margin-bottom: 0; }
.filter-bar { background: var(--color-white); border-bottom: 1px solid var(--color-border); padding: 20px 0; position: sticky; top: var(--header-height); z-index: 100; }
.filter-bar__inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.filter-bar select { padding: 10px 36px 10px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 14px; font-family: var(--font-main); background: var(--color-white); color: var(--color-dark-gray); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
.filter-bar__count { margin-left: auto; font-size: 14px; color: #888; }
.filter-bar__count strong { color: var(--color-navy); }
.pagination { display: flex; justify-content: center; gap: 8px; padding: 48px 0; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; border: 1px solid var(--color-border); transition: all 0.2s; }
.pagination a:hover { border-color: var(--color-orange); color: var(--color-orange); }
.pagination .current { background: var(--color-navy); color: var(--color-white); border-color: var(--color-navy); }

/* Single Property */
.single-property { padding: 40px 0 80px; }
.single-property__layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; }
.single-property__main { min-width: 0; }
.single-property__sidebar { position: sticky; top: calc(var(--header-height) + 24px); align-self: start; }
.gallery { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 24px; }
.gallery__main { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.gallery__thumb { width: 80px; height: 60px; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; opacity: 0.6; transition: opacity 0.2s; flex-shrink: 0; }
.gallery__thumb.active, .gallery__thumb:hover { opacity: 1; outline: 2px solid var(--color-orange); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.property-video { margin-bottom: 32px; }
.property-video__wrapper { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--radius-md); overflow: hidden; background: #000; }
.property-video__wrapper.is-vertical { padding-bottom: 177.78%; max-width: 360px; margin: 0 auto; }
.property-video__wrapper iframe, .property-video__wrapper video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.property-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: #888; margin-bottom: 12px; }
.property-title { font-size: 28px; font-weight: 700; color: var(--color-navy); margin-bottom: 16px; line-height: 1.4; }
.property-price { font-size: 36px; font-weight: 700; color: var(--color-orange); margin-bottom: 4px; }
.property-price small { font-size: 16px; font-weight: 400; color: var(--color-dark-gray); }
.property-fee { font-size: 14px; color: #888; margin-bottom: 32px; }
.property-fee a { color: var(--color-orange); text-decoration: underline; }
.realtor-box { background: var(--color-light-gray); border-radius: var(--radius-md); padding: 20px; margin-bottom: 32px; display: flex; align-items: center; gap: 16px; }
.realtor-box__avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--color-border); }
.realtor-box__avatar img { width: 100%; height: 100%; object-fit: cover; }
.realtor-box__name { font-size: 16px; font-weight: 700; color: var(--color-navy); margin-bottom: 4px; }
.realtor-box__stats { display: flex; gap: 16px; font-size: 12px; color: #888; }
.realtor-box__rating { color: #FFB400; }
.property-description { margin-bottom: 40px; line-height: 2; }
.property-description h3 { font-size: 20px; margin-bottom: 16px; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 40px; }
.spec-table th, .spec-table td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--color-border); text-align: left; }
.spec-table th { width: 140px; color: #888; font-weight: 400; background: var(--color-light-gray); }
.spec-table td { color: var(--color-dark-gray); font-weight: 500; }
.support-vendors { margin-bottom: 40px; padding: 20px; background: var(--color-light-gray); border-radius: var(--radius-md); }
.support-vendors h4 { font-size: 14px; color: #888; margin-bottom: 12px; }
.support-vendors__list { display: flex; gap: 24px; font-size: 13px; }

/* Simulator */
.simulator { background: var(--color-light-gray); border-radius: var(--radius-md); padding: 32px; margin-bottom: 40px; }
.simulator h3 { font-size: 22px; margin-bottom: 24px; }
.simulator__group { margin-bottom: 20px; }
.simulator__label { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; color: var(--color-dark-gray); }
.simulator__value { font-weight: 700; color: var(--color-navy); }
.simulator__slider { width: 100%; -webkit-appearance: none; height: 6px; border-radius: 3px; background: var(--color-border); outline: none; }
.simulator__slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--color-orange); cursor: pointer; box-shadow: 0 2px 6px rgba(255,122,0,0.3); }
.simulator__slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--color-orange); cursor: pointer; border: none; }
.simulator__divider { border: none; border-top: 1px solid var(--color-border); margin: 24px 0; }
.simulator__results { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.simulator__result-box { background: var(--color-white); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.simulator__result-label { font-size: 12px; color: #888; margin-bottom: 4px; }
.simulator__result-value { font-size: 28px; font-weight: 700; color: var(--color-navy); }
.simulator__result-value.yield { color: var(--color-green); }
.simulator__reset { display: block; margin: 16px auto 0; background: none; border: 1px solid var(--color-border); padding: 8px 24px; border-radius: var(--radius-sm); font-size: 13px; font-family: var(--font-main); cursor: pointer; color: #888; transition: all 0.2s; }
.simulator__reset:hover { border-color: var(--color-dark-gray); color: var(--color-dark-gray); }

/* Inquiry Form */
.inquiry-form { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.inquiry-tabs { display: flex; border-bottom: 1px solid var(--color-border); }
.inquiry-tab { flex: 1; padding: 14px; text-align: center; font-size: 13px; font-weight: 700; cursor: pointer; border: none; background: var(--color-light-gray); color: #888; transition: all 0.2s; font-family: var(--font-main); }
.inquiry-tab.active { background: var(--color-white); color: var(--color-navy); box-shadow: inset 0 -2px 0 var(--color-orange); }
.inquiry-tab:hover:not(.active) { color: var(--color-dark-gray); }
.inquiry-form__body { padding: 24px; }
.inquiry-form .form-group { margin-bottom: 16px; }
.inquiry-form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--color-navy); }
.inquiry-form label .required { color: var(--color-orange); font-size: 11px; margin-left: 4px; }
.inquiry-form input[type="text"], .inquiry-form input[type="email"], .inquiry-form input[type="tel"], .inquiry-form textarea, .inquiry-form select { width: 100%; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 14px; font-family: var(--font-main); background: var(--color-light-gray); transition: border-color 0.2s; }
.inquiry-form input:focus, .inquiry-form textarea:focus, .inquiry-form select:focus { outline: none; border-color: var(--color-orange); background: var(--color-white); }
.inquiry-form textarea { resize: vertical; min-height: 100px; }
.inquiry-form__submit { width: 100%; padding: 16px; background: var(--color-orange); color: var(--color-white); border: none; border-radius: var(--radius-sm); font-size: 16px; font-weight: 700; font-family: var(--font-main); cursor: pointer; transition: background 0.2s; }
.inquiry-form__submit:hover { background: var(--color-orange-hover); }

/* Sidebar */
.sidebar-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 24px; margin-bottom: 20px; }

/* Sold Overlay */
.property-sold-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.8); z-index: 500; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.property-sold-overlay__badge { background: var(--color-dark-gray); color: var(--color-white); font-size: 32px; font-weight: 700; padding: 16px 48px; border-radius: var(--radius-sm); transform: rotate(-5deg); }

/* Post/Column Cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: var(--color-white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); transition: box-shadow 0.3s; }
.post-card:hover { box-shadow: var(--shadow-hover); }
.post-card__image { aspect-ratio: 16 / 9; overflow: hidden; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 20px; }
.post-card__category { font-size: 11px; font-weight: 700; color: var(--color-orange); margin-bottom: 8px; }
.post-card__title { font-size: 16px; font-weight: 700; color: var(--color-navy); line-height: 1.5; margin-bottom: 8px; }
.post-card__date { font-size: 12px; color: #888; }

/* Transfer Banner */
.transfer-banner { background: linear-gradient(135deg, var(--color-navy) 0%, #34495E 100%); border-radius: var(--radius-md); padding: 48px; display: flex; align-items: center; gap: 40px; color: var(--color-white); }
.transfer-banner__text h3 { color: var(--color-white); font-size: 24px; margin-bottom: 12px; }
.transfer-banner__text p { color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 20px; }
.transfer-banner__cta { display: inline-block; background: var(--color-orange); color: var(--color-white) !important; padding: 12px 32px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px; transition: background 0.2s; }
.transfer-banner__cta:hover { background: var(--color-orange-hover); }

/* Fee Guide */
.fee-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.fee-table th, .fee-table td { padding: 14px 20px; border: 1px solid var(--color-border); font-size: 14px; }
.fee-table th { background: var(--color-navy); color: var(--color-white); font-weight: 700; }
.fee-table td { background: var(--color-white); }
.fee-note { background: var(--color-light-gray); border-left: 4px solid var(--color-orange); padding: 16px 20px; font-size: 14px; margin: 24px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* Footer */
.site-footer { background: var(--color-navy); color: rgba(255,255,255,0.6); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-col h4 { color: var(--color-white); font-size: 14px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 13px; transition: color 0.2s; }
.footer-col a:hover { color: var(--color-white); }
.footer-company__name { color: var(--color-white); font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.footer-company__info { font-size: 13px; line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 12px; }
.footer-license { font-size: 11px; color: rgba(255,255,255,0.4); margin-bottom: 8px; }

/* Responsive */
@media (max-width: 1024px) {
  .single-property__layout { grid-template-columns: 1fr; }
  .single-property__sidebar { position: static; }
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --header-height: 60px; }
  h1 { font-size: 28px; } h2 { font-size: 24px; }
  .section { padding: 48px 0; }
  .container { padding: 0 16px; }
  .hero { padding: 60px 0 48px; }
  .hero__title { font-size: 28px; }
  .hero__search { flex-direction: column; }
  .hero__stats { gap: 24px; }
  .hero__stat-number { font-size: 24px; }
  .property-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .main-nav.active { display: flex; flex-direction: column; position: absolute; top: var(--header-height); left: 0; right: 0; background: var(--color-navy); padding: 16px 24px; gap: 16px; }
  .menu-toggle { display: block; }
  .filter-bar__inner { flex-direction: column; align-items: stretch; }
  .filter-bar__count { margin-left: 0; }
  .transfer-banner { flex-direction: column; padding: 32px; }
  .simulator__results { grid-template-columns: 1fr; }
  .realtor-box { flex-direction: column; text-align: center; }
}
