@charset "utf-8";
/* ベース設定 */
:root {
    --text-color: #333333;
    --heading-color: #2c3e50;
    --bg-color: #f9f9fa;
    --accent-color: #4a6572;
    --border-color: #e0e0e0;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1024px;
    margin: .5em auto 0;
    padding: 1.5em 2em;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* ヘッダー周り */
.article-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
}
.pc_fv_contents p {
margin: 0 auto;
text-align: center;
font-size: 3em;
font-weight: 700;
color: #007a43;
line-height: 1.4;
padding-bottom: .5em;
}
.pc_fv_contents p span{
font-size: 55%;
line-height: 100%;
}
h1 {
    font-size: 1.8rem;
    color: var(--heading-color);
    line-height: 1.4;
    margin-bottom: 15px;
}

.lead {
    font-size: 1.1rem;
    color: #555;
    text-align: left;
}

/* セクションと見出し */
.content-section {
    margin-bottom: 40px;
}

h2 {
    font-size: 1.5rem;
    color: var(--heading-color);
    border-left: 5px solid var(--accent-color);
    padding-left: 10px;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

/* カード型レイアウト（供養先の一覧などに） */
.card-grid h3{
font-weight: 700;
}
.card-grid {
display: grid;
grid-template-columns: 1fr;
gap: 20px;
margin-top: 10px;
}

@media (min-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.card {
    background: #f4f6f7;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
}
.card img{
width: 100%;
height: auto;
}
.card ul {
    padding-left: 20px;
    margin-top: 10px;
}

/* 修正版：ステップリスト（手順用・丸い数字アイコン版） */
.step-list {
    list-style-type: none;
    padding-left: 0;
    counter-reset: step-counter;
}

.step-list li {
    position: relative; /* 丸アイコンの基準位置にするため必須 */
    padding: 20px 10px 20px 70px; /* 左側に丸アイコン用の余白（70px）を空ける */
    margin-bottom: 0;
    background: transparent;
    border-left: none;
    box-shadow: none;
    border-bottom: 1px solid #e0e0e0;
    line-height: 1.6; /* 文章の行間を整える */
}

/* 最後の項目の下線は消す */
.step-list li:last-child {
    border-bottom: none;
}

/* 丸い数字アイコンのデザイン */
.step-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter) ".";
    position: absolute; /* テキストの流れから切り離して左に固定 */
    left: 10px; /* 左端からの位置 */
    top: 50%; /* 縦の中央に配置 */
    transform: translateY(-50%); /* 中央揃えの微調整 */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background-color: #4a6572;
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.3rem;
    font-family: "Helvetica Neue", Arial, sans-serif;
}
.expert-column{
background-color: #f0f7f2;
padding: 15px; margin: 20px 0;
border-radius: 4px;
}
.expert-column h3{
color: #43664a;
margin-top: 0;
font-size: 1.1rem;
font-weight: 700;
}
.expert-column p{
margin-bottom: 10px;
}
/* FAQアコーディオン（AIO対策） */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.faq-item summary {
    font-weight: bold;
    padding: 15px;
    background-color: #f4f6f7;
    cursor: pointer;
    list-style: none; /* デフォルトの矢印を消す場合 */
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "＋";
    position: absolute;
    right: 15px;
    color: var(--accent-color);
}

.faq-item[open] summary::after {
    content: "－";
}

.faq-answer {
    padding: 15px;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
}
/* 涙そうそう宣伝枠 */
.service-proposal{
background-color: #f0f7f2;
padding: 20px;
border-radius: 8px;
margin-top: 30px;
}
.service-proposal h2{
color: #43664a;
font-size: 1.1rem;
border-bottom: 1px solid #43664a;
padding: 0 0 5px 0;
border-left: none;
margin-bottom: 10px;
font-weight: 700;
}
.service-proposal p{
line-height: 1.65;
}
/* 社長プロフィール */
.common_container{
max-width: 1024px;
width: 100%;
margin: 0 auto;
}
.portrait img{
width: 100%;
height: auto;
}
.common_footer .container{
padding: 0;
background-color: transparent;
box-shadow: none;
}
/* floatボタン */
#page-mokuji, #page-shuraku{
display: none;
}
/* ボックス全体の基本設定 */
.hitokoto-box {
    position: relative; /* バッジの基準位置にするため必須 */
    background-color: #f0f7f2; /* 画像に近い薄い緑の背景色 */
    border-radius: 8px; /* 角を丸くする */
    padding: 30px 20px 20px; /* 上部にバッジ用の余白を広めにとる */
    margin: 30px 10px; /* 周りの要素との間隔 */
    color: #333333;
}
/* 左上の「ひとこと」バッジ */
.hitokoto-badge {
    position: absolute; /* ボックスを基準に自由な位置へ配置 */
    top: -15px; /* 上に少しはみ出させる */
    left: -10px; /* 左に少しはみ出させる */
    background-color: #6c9a75; /* 濃い緑の背景色 */
    color: #ffffff; /* 文字色は白 */
    font-weight: bold;
    padding: 4px 16px;
    border-radius: 20px; /* 楕円形にする */
    font-size: 1rem;
}
/* 「ひとこと」バッジのしっぽ（左寄せ・右下向き） */
.hitokoto-badge::after {
    content: "";
    position: absolute;
    bottom: -11px; /* バッジの下にはみ出させる長さ */
    left: 20px; /* 左側に配置（数字を小さくするとより左へ） */
    border-top: 11px solid #6c9a75; /* バッジと同じ緑色 */
    border-left: 4px solid transparent;
    border-right: 9px solid transparent;
    transform: rotate(-30deg); /* 斜めに傾けて右下を向かせる */
    transform-origin: top left; /* 回転の軸を調整して自然な接合にする */
}
/* ボックス内のテキスト調整 */
.hitokoto-box p {
    margin: 0 0 15px 0; /* 段落ごとの下余白 */
    line-height: 1.6;
}

/* 最後の段落の下余白を消す */
.hitokoto-box p:last-child {
    margin-bottom: 0;
}
.pc_common_cv_wrap .pc_common_cv_contents .each_btn ul {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.pc_common_cv_wrap .pc_common_cv_contents .each_btn ul li {
  list-style-type: none;
width : calc(97% / 3) ;
}
.btn-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  background-color: #064777; /* ボタンの背景色（ブルー） */
  color: #ffffff; /* 文字色（白） */
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  border-radius: 50px; /* 両端を完全な丸にする */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* ほんのり影をつける */
  transition: all 0.3s ease; /* ホバー時の動きを滑らかにする */
width:100%;
margin:.5em auto 0;
}

/* 右側の矢印アイコン */
.btn-details::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  transform: rotate(45deg);
  margin-left: 16px;
  transition: all 0.3s ease;
}

/* マウスを乗せたとき（ホバー時）の動き */
.btn-details:hover {
background-color: #043354; /* 少しだけ濃いブルーにする */
transform: translateY(-2px); /* 全体が少し上に浮く */
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* 影を少し濃く・広くする */
color: #ffffff; /* 文字色（白） */
}

/* ホバー時に矢印だけ少し右に動かす */
.btn-details:hover::after {
  transform: rotate(45deg) translate(2px, -2px);
}
@media screen and (max-width: 768px) {
.container {
padding: 1em;
}
}