/*
Theme Name: リゾバる 奄美
Theme URI: https://example.com/
Author: ハイ・ヴァーチュ・ラボ株式会社
Description: 奄美の民泊・ゲストハウス・簡易宿所の募集情報を扱う地域特化型メディア用テーマ。Design Component（index.dc.html）からの移植版。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amami-resobaru
Tags: custom-colors, custom-menu, responsive-layout
*/

/* ==========================================================================
   1. リセット / ベース
   ========================================================================== */
* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: #FFFDF7;
	-webkit-font-smoothing: antialiased;
}

a {
	color: #2B7D8A;
}

a:hover {
	color: #1D6470;
}

img {
	max-width: 100%;
}

/* テーマ全体の外枠（旧 index.dc.html のラッパー div 相当） */
.amami-root {
	font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
	color: #46545C;
	background: #FFFFFF;
	font-size: 16px;
	line-height: 1.75;
	text-wrap: pretty;
}

/* ==========================================================================
   2. レスポンシブ表示切替（900px 境界）
   ========================================================================== */
.pcOnly {
	display: flex;
}

.spOnly {
	display: none;
}

@media (max-width: 900px) {

	.pcOnly {
		display: none !important;
	}

	.spOnly {
		display: flex !important;
	}
}

/* ==========================================================================
   3. アクセシビリティ
   ========================================================================== */
:focus-visible {
	outline: 2px solid #2B7D8A;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

	* {
		transition-duration: 1ms !important;
		animation-duration: 1ms !important;
	}
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   4. WordPress 管理バーとの干渉回避
   ========================================================================== */
.admin-bar .amami-root > header[style*="sticky"] {
	top: 32px;
}

@media screen and (max-width: 782px) {

	.admin-bar .amami-root > header[style*="sticky"] {
		top: 46px;
	}
}

/* ==========================================================================
   5. 汎用ページ（page.php / single.php / index.php）
   ========================================================================== */
.amami-generic {
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 32px);
}

.amami-generic h1 {
	margin: 0 0 8px;
	font-size: clamp(26px, 3.4vw, 36px);
	line-height: 1.35;
	color: #173F3A;
}

.amami-generic h2 {
	margin: 40px 0 12px;
	font-size: 22px;
	color: #173F3A;
}

.amami-generic__meta {
	margin: 0 0 28px;
	font-size: 13px;
	color: #718087;
}

.amami-generic__entry + .amami-generic__entry {
	margin-top: 40px;
	padding-top: 40px;
	border-top: 1px solid #E9E1D2;
}

.amami-generic__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px;
	border-radius: 999px;
	background: #E7825B;
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.amami-generic__more:hover {
	color: #FFFFFF;
	opacity: .9;
}
