﻿/*!
Theme Name: 空き家まもる
Theme URI: https://akiya-mamoru.com/
Author: akiyamamoru
Author URI: https://akiya-mamoru.com/
Description: 大分県を中心に活動する空き家管理サービス「空き家まもる」の公式テーマ
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: akiyamamoru
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/


/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}
 */

html {
  scroll-behavior: smooth;
}
/* Sections
	 ========================================================================== */

.btn-wrap {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* 共通ボタン */
.line-btn, .mail-btn {
  display: flex;
  align-items: center;       /* アイコンとテキストを横並び中央 */
  justify-content: center;   /* コンテンツ全体を横中央 */
  padding: 15px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  min-width: 280px;
  transition: 0.3s;
  text-align: center;        /* テキストを中央寄せ */
}

/* アイコン */
.line-btn i, .mail-btn i {
  font-size: 28px;
  margin-right: 12px;
  flex-shrink: 0;
}

/* テキスト部分（縦横中央） */
.line-text {
  display: flex;
  flex-direction: column;
  justify-content: center;  /* 縦方向中央 */
  align-items: center;      /* 横方向中央 */
  line-height: 1.4;
  text-align: center;
}

.line-text strong {
  font-size: 16px;
}

.line-text span {
  font-size: 13px;
  font-weight: normal;
  opacity: 0.9;
}

/* LINEボタン */
.line-btn {
  border: 2px solid #06c755;
  background: rgba(6, 199, 85, 0.6); /* 60%透過 */
  color: #fff;
}

.line-btn:hover {
  background: #06c755;
}

/* メールボタン */
.mail-btn {
  border: 2px solid #f2a65a;
  background: rgba(242, 166, 90, 0.6); /* 60%透過 */
  color: #fff;
}

.mail-btn:hover {
  background: #f2a65a;
  border-color: #f2a65a;
}





/* プライバシーポリシー セクション */
.privacy-policy {
  background: #fff;
  padding: 80px 10px;
  color: #333;
  font-family: "Noto Sans JP", sans-serif;
}

.privacy-policy .container {
  max-width: 900px;
  margin: 0 auto;
}

.privacy-policy span {
    color: #2c665d;
}

.policy-box {
  background: #f9f9f9;
  border-left: 5px solid #2f6f60; /* 左ラインで強調 */
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.policy-box h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #2f6f60;
}

.policy-box p {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}


/* contract-flow セクション */


.contract-flow {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 10px;
  text-align: center;
}

.contract-flow span {
    color: #fff;
}

.flow-box {
  display: flex;
  align-items: center;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.flow-icon {
  flex: 0 0 60px;
  font-size: 28px;
  color: #2c665d;
  margin-right: 20px;
  text-align: center;
}

.flow-text {
  text-align: left;
  flex: 1;
}

.flow-text h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #2c665d;
}

.flow-text p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

/* 矢印部分 */
.flow-arrow {
  text-align: center;
  margin: 10px 0 20px;
}

.flow-arrow i {
  font-size: 20px;
  color: #2f6655;
  animation: bounce 1.2s infinite;
}

/* 下矢印アニメーション */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}



/* モバイル対応 */
@media (max-width: 768px) {
  .flow-box {
    flex-direction: row; /* 常に横並びを維持 */
  }

  .flow-icon {
    margin-right: 15px;
    font-size: 24px;
  }

  .flow-text h3 {
    font-size: 16px;
  }

  .flow-text p {
    font-size: 13px;
  }
}


/*アコーディオン全体*/
.accordion-area{
    list-style: none;
    width: 96%;
    max-width: 900px;
    margin:0 auto;
}

.accordion-area li{
    margin: 10px 0;
}


/* アコーディオン本体の角丸 */
.accordion-area section {
  border: 3px solid #4d9377;
  background: #fff;
  border-radius: 8px; /* ← 角丸にする（数値を増やすと丸みが大きくなる） */
  overflow: hidden;   /* 子要素が角丸からはみ出さないように */
}
	
	/* 下側の角を丸くする（最後の要素など） */
.accordion-area section:last-child {
  border-radius: 8px;
}

/* アコーディオン内部の表示エリアも角丸対応 */
.box {
  display: none;
  background: #f3f3f3;
  margin: 0;
  padding: 3%;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
	
	.box p {
    margin: 0;
    font-size: 1.13rem;
    line-height: 2;
    letter-spacing: 0.07em;
}

/*アコーディオンタイトル*/
.title {
    position: relative;/*+マークの位置基準とするためrelative指定*/
    cursor: pointer;
     font-size: 1.13rem;
    font-weight: bold;
    padding: 3% 3% 3% 50px;
    transition: all .5s ease;
}

/*アイコンの＋と×*/
.title::before,
.title::after{
    position: absolute;
    content:'';
    width: 15px;
    height: 2px;
    background-color: #333;
    
}
.title::before{
    top:48%;
    left: 15px;
    transform: rotate(0deg);
    
}
.title::after{    
    top:48%;
    left: 15px;
    transform: rotate(90deg);

}

/*　closeというクラスがついたら形状変化　*/

.title.close::before{
	transform: rotate(45deg);
}

.title.close::after{
	transform: rotate(-45deg);
}

/*アコーディオンで現れるエリア*/
.box {
    display: none;/*はじめは非表示*/
    background: #f3f3f3;
	margin:0 3% 3% 3%;
    padding: 3%;
}
	
@media (max-width: 600px) {
  #course.inner {
    padding-left: 6px;
    padding-right: 6px;
    width: 100%;
    box-sizing: border-box;
  }
  .accordion-area {
    width: auto;
    padding-left: 0;
    padding-right: 0;
  }
  .accordion-area li,
  .accordion-area section {
    width: 100%;
    box-sizing: border-box;
  }
  body {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}
		
	/* 契約流れ */	
	
.flow {
  list-style: none;
  margin: 0;
  padding: 0 20px; /* 左右余白 */
  display: flex;
  flex-direction: column;
  gap: 80px; /* ← 上下の間隔を増やす（矢印の上下余白を含む） */
}

/* Step card */
.flow-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--flow-bg, #fff);
  border: 3px solid var(--flow-border, #111);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .1);
  width: 100%;
}

/* アイコン部分 */
.flow-icon {
  flex: 0 0 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* テキスト */
.flow-body h3 {
  margin: 0 0 6px 0;
  font-size: 1.5rem;
  font-weight: bold;
}
.flow-body p {
  margin: 0;
  font-size: 1rem;
  color: #444;
}

/* 矢印 */
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -48px; /* ← 下に余白追加（元-28pxから増やす） */
  transform: translateX(-50%) rotate(45deg);
  width: 20px;
  height: 20px;
  border-right: 3px solid var(--flow-border, #111);
  border-bottom: 3px solid var(--flow-border, #111);
  background: #fff;
  z-index: 2;
}

/* 矢印の丸背景 */
.flow-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -56px; /* ← 下に余白追加（元-36pxから増やす） */
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: #fff;
  border: 3px solid var(--flow-border, #111);
  border-radius: 50%;
  z-index: 1;
}

/* スマホ対応 */
@media (max-width: 600px) {
  .flow {
    padding: 0 10px;
    gap: 60px; /* スマホも広めに */
  }
  .flow-step {
    padding: 20px;
    gap: 16px;
  }
  .flow-icon {
    flex-basis: 56px;
  }
  .flow-icon img {
    width: 48px;
    height: 48px;
  }
}
	
/* 料金 */
	:root{
  --bg-grad-from:#4d9377;
  --bg-grad-to:#4d9377;
  --white:#fff;
  --ink:#222;
  --muted:#666;
  --border:#111;
  --brand:#4d9377;
  --featured:#f6b11b;      /* 目立つ列のベース */
  --featured-soft:#fde3a6; /* 目立つ列の薄色 */
}

.pricing{
  padding: 40px 16px 60px;
  background: linear-gradient(180deg,var(--bg-grad-from),var(--bg-grad-to));
  color: var(--ink);
}
.pricing__title{
  text-align:center;
  color:#fff;
  letter-spacing:.1em;
  font-size: clamp(20px,3.6vw,28px);
  margin:0 0 18px;
  text-shadow: 0 2px 0 rgba(0,0,0,.15);
}

/* 横スクロールラッパー */
.table-wrap{
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 8px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}
.scroll-hint{
  margin: 0 0 6px 4px;
  font-size: .85rem;
  color: #fff;
  opacity: .85;
}

/* 表 */
.price-table{
  border-collapse: separate;
  border-spacing: 0;
  min-width: 980px; /* ← ここを広げると列幅を増やせます */
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  table-layout: fixed;    
  box-shadow: 0 6px 0 rgba(0,0,0,.08);
}

/* 見出し行 */
.price-table thead th{
  position: sticky; /* 上固定（スマホで便利） */
  top: 0;
  z-index: 3;
  background: #fff;
  border: 2px solid var(--border);
  border-bottom: 0;
  text-align: center;
  padding: 18px 10px;
  vertical-align: bottom;
  white-space: nowrap;
}
.price-table thead th:first-child{ border-left-width:2px; }
.price-table thead th:last-child{ border-right-width:2px; }

/* プラン名&値段 */
.plan__name{ font-weight: 700; margin-bottom: 6px; }
.plan__price{ font-weight: 800; font-size: 1.25rem; }

/* 本文 */
.price-table tbody th,
.price-table tbody td{
  border: 2px solid var(--border);
  padding: 16px 14px;
  text-align: center;
  vertical-align: middle;
  background: #fff;
  overflow-wrap: anywhere;       /* 長文でも崩れにくく */

}

/* 左端「項目」列は横スクロール時に固定 */
.first-col{
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  text-align: left !important;
  min-width: 130px;
  font-weight: 700;
}

/* 交互の薄背景（行） */
.price-table tbody tr:nth-child(odd) td{
  background: #fafafa;
}
.price-table tbody tr:nth-child(odd) .first-col{
  background: #fafafa;
}

/* 目立つ列（ここでは5列目＝スタンダード90） */
.price-table thead th:nth-child(5),
.price-table tbody td:nth-child(5){
  background: var(--featured-soft);
}
.price-table tbody tr:nth-child(odd) td:nth-child(5){
  background: #ffe7aa;
}
.price-table thead th:nth-child(5){
  box-shadow: inset 0 -5px 0 var(--featured);
}

/* バッジ */
.badge{
  display:inline-block;
  font-size:.75rem;
  line-height:1;
  padding:.25em .5em;
  border-radius:999px;
  margin-right:.4em;
  color:#fff;
}
.badge.-new{ background:#e94e00; }
.badge.-hit{ background:#f08a00; }
.crown{ margin-right:.25em; }

/* 備考 */
.price-notes{
  max-width: 1200px;
  margin: 14px auto 0;
  padding-left: 1.1em;
  color: #fff;
  opacity:.95;
  font-size: .9rem;
}
.price-notes li{ margin:.3em 0; }

/* スマホ調整 */
@media (max-width: 600px){
  .plan__price{ font-size: 1.1rem; }
  .first-col{ min-width: 120px; }
}
