@charset "UTF-8";
/* CSS Document */


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

/*-------------------------------------------------------------------------------------
スマホ用レイアウト（768px以下スクリーン）
----------------------------------------------------------------------------------------*/

/*--------------------------------------------------
共通設定(スマホ)
-----------------------------------------------------*/
	
/*body全体の初期スタイル調整*/
body {
	width: 100%;
  -webkit-text-size-adjust:100%;
	-ms-text-size-adjust:100%;
}
  img{
    max-width: 100%;
    height: auto;
  }

/*--------------------------------------------------
見出しタグ設定（スマホ）
-----------------------------------------------------*/
h2 {
  margin: 0.5em 0em;
  font-size: 1.6em;
  font-weight: bold;
  text-align: center;
}
h3 {
  margin: 0em 0em;
  padding: 0em 0em;
  font-size: 1.3em;
  font-weight: bold;
  text-align: center;
}
h4 {
  margin: 0.2em 0em;
  padding: 0em 0em;
  font-size: 1.2em;
  font-weight: bold;
}
h5 {
  margin: 0.5em 0em;
  padding: 0.1em;
  font-size: 1em;
  font-weight: bold;
  border-bottom: 1px dotted #ccc;
}
/*--------------------------------------------------
全体レイアウト／背景設定（スマホ）
-----------------------------------------------------*/
/*全体エリア（全体背景を設定するにはここ）*/
.main {
  background-color: #f2f2f2;
}
/*記事(ボディ)エリア*/
.article {
  background-color: #fff;
  border-left: none;
  border-right: none;
  font-size: 1.8em; 
}
/*記事(ボディ)エリアの行間*/
.article p {
  line-height: 1.9;
}

.article{
	width: 100%;
}

/*カラム全体の幅を変更する*/
.top_image_in,.section_inr {
  width: 100%;
  margin: 0 auto; /*真ん中に要素を置きたいときに使う*/
}
/*--------------------------------------------------
上部固定ヘッダー設定
-----------------------------------------------------*/
/*上部固定ヘッダー全体*/
.header {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 5000;
  overflow: auto;
}
/*ヘッダー内部をカラム幅にする*/
.header_inr {
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  padding: 0;
}
/*ヘッダーのロゴ*/
.header_logo {
  width: 40%;
  float: left;
  margin: .6em 0em;
}
/*ヘッダーの問い合わせボタン*/
.header_mail {
  width: 28%;
  float: right;
  margin: 0em 0em 0em;
}
/*ヘッダーの電話ボタン*/
.header_tel {
  width: 28%;
  float: right;
  margin: 0em 0em 0em;
}

/*--------------------------------------------------
ファーストビュー設定
-----------------------------------------------------*/
.top_image {
  background-image: none;
}
.top_image_in img {
  width: 100%;
}

/*--------------------------------------------------
CTAエリア
-----------------------------------------------------*/
.area_cta {
  background-image: url("../../images/tokuhan_sozoku/cta_bg_sp.jpg");
  padding: 1em .5em;
}
.area_cta_inr {
  padding: 0em .5em;
  overflow: auto;
}
.area_cta_inr_left {
  float: none;
  width: 100%;
}
.area_cta_inr_right {
  float: none;
  width:100%;
	margin-top: 1em;
}
.cta_text{
  font-size: 1.7em;
  line-height:1;
}
.cta_text span{
  display:block;
}
.cta_text .line2{
  margin-top:-0.6em; 
}
.area_cta.bg-white{
  padding: 0;
  margin: 0;
}
.bg-white .btn_pdf{
  display: block;
  text-align: center;
}
.bg-white .btn_pdf img{
  margin: 0 auto;
  width: 100%;
  display: inline-block;
}
/*--------------------------------------------------
悩みの設定
-----------------------------------------------------*/
.section_gray {
	background: #f6f9f8;
  padding: 0.5em 0.5em;
}

  .row{
    display: flex;
    flex-direction:column;
    gap:24px;
  }

  .trouble-right{
    order:1;
    text-align:center;
  }

  .trouble-left{
    order:2;
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center;   /* カード中央寄せ */
  }

  .trouble-card{
    width:100%;
    max-width:400px;      /* 中央で幅固定 */
  }

/*--------------------------------------------------
相続の対象者 設定
-----------------------------------------------------*/

 .section_gray,
  .section_white,
  .section_green,
  .section_keisen{
    padding:1em .5em 2em;
  }

  .row{
    flex-direction:column;
    gap:24px;
  }

  .row.reverse{
    flex-direction:column;
  }

  .right{
    text-align:center;
  }



.yaji{ margin-top:1em;}

.speech-row{
  gap:16px;
  margin-top:1em;
}

.speech{
  padding:1em .5em;
  box-shadow:0 6px 20px rgba(0,0,0,0.08);
  flex:1;
}
.speech-img{
  width: 70%;
}
/* ===== 愛知県 ===== */
  .section_yellow{
    padding: 1em;
  }
.section_inr.section_white{
  border-radius: 32px;
  margin: 1em auto;
}
  .section_yellow .row .right{
    order: 1; /* 画像 */
  }
  .section_yellow .row .left{
    order: 2; /* 文字 */
  }
/* ===== 計算 ===== */
 .bg-white{
  border-radius:16px;
  padding: 1em .5em;
  margin:1em auto 2em;
  box-shadow:0 6px 20px rgba(0,0,0,0.08);
}
.step-row{
  display:flex;
  flex-direction: column;
  gap:12px;
}
  .step-note-row,
  .step-note-row.reverse{
    flex-direction: column !important;
    gap: 12px;              /* 任意：縦の間隔 */
  }

  .step-note-img{ order: 1 !important; }
  .step-note-text{ order: 2 !important; }

  /* ===== 試算が変わる理由 ===== */
.green-linebox{
  padding:1em .5em;
  margin:1.5em auto;
  border-radius:16px;
}
/* ===== 強み ===== */
.intro{
  padding:0.5em .5em;
  margin:1em auto;
  font-size:1.1em;
  font-weight:bold;
  border-radius:50px;
  text-align:center;
}
.profile-wrap{
    grid-template-columns: 1fr;
}
.profile-text {
  font-size: 1em;
}
/* ===== slider ===== */
  /* slider */
  .voice-slider{
    display:flex;                 /* 念のため（元CSSにある想定） */
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;

    gap:16px;
    padding:8px 16px 16px;

    overscroll-behavior-x:contain;
    touch-action:pan-y;           /* 縦優先 */
  }

  .voice-slider .profile-card{
    flex:0 0 100%;
    max-width:100%;
    scroll-snap-align:start;
    border:none;
    border-radius:12px;
    padding:.5em .5em 1em;
    background:#ebf8fb;
  }

  .voice-no{
    display:block;
    margin:4px auto 10px;
    padding:.2em 2em;
    color:#fff;
    font-weight:bold;
    text-align:center;
    background:#309CA5;
    border-radius:24px;
  }

  .voice-slider .profile-photo img{ width:50%; }

  /* スマホではドラッグ演出は無効化 */
  .voice-slider{ cursor:auto; }
  .voice-slider.is-dragging *{ pointer-events:auto; }

/* ===== company ===== */
.company-section{
  padding: 1em 1em;
}
#company-section{
  scroll-margin-top: 300px; /* ヘッダーの高さ分。必要に応じて調整 */
}

.company-section h3{
  border-bottom: 2px solid #297a89;
  border-top: 2px solid #297a89;
  padding: .3em 0;
  margin: 1em auto;
  color:#297a89;
  text-align: center;
}

.company-profile{
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 6px;
  grid-template-columns: 1fr;
}

.company-profile dt{
  font-weight: bold;
  color: #297a89;
  margin-top: 0em;
}

.company-profile dd{
  margin: 0;
}


/* コラム */
.section_column{
  padding: 1em 1em 3em ;
}
.column_list{
    grid-template-columns: 1fr;
    gap:16px;
  }

  /*--------------------------------------------------
チェックリスト設定
-----------------------------------------------------*/
ul.checklist {
  border: 1px solid #ccc;
  list-style: none;
  padding: 1em;
}

ul.checklist li:last-child {
  margin-bottom: 0em;
}
/*--------------------------------------------------
テーブル設定
-----------------------------------------------------*/
table {
  width: 100%;
  border-top: 1px solid #ccc;
  border-left: 1px solid #ccc;
  margin: 1em 0em;
}
th, td {
  padding: 0.5em;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}
th {
  background-color: #f0f0f0;
  font-weight: bold;
  text-align: center;
}
td {
  background-color: #fff;
  text-align: left;
}
/*スマホでは行が列になるテーブルタグ*/

.table_style_01 tr,
.table_style_01 th,
.table_style_01 td{
 display: block;
}	
	
.table_style_01 th,
.table_style_01 td{
 width: 100%;
}		
	
	
	
/*--------------------------------------------------
よくある質問
-----------------------------------------------------*/
.box_qa {
  background-color: #efefef;
  padding: 1em;
}
.box_qa_q {
  background-color: #fff;
  padding: 1em 1em 1em 1em;
  border-bottom: 1px solid #ccc;
  font-size: 1.2em;
  font-weight: bold;

}
.box_qa_a {
  background-color: #fff;
  padding: 1em 1em 1em 1em;
}
.box_qa_q p, .box_qa_a p {
  text-indent: 0em;
}

/*--------------------------------------------------
フッター部分
-----------------------------------------------------*/
.footer {
  padding: 2em 0em;
  text-align: center;
  font-size: 1.2em;
  color: #fff;
}
.footer a {
  color: #fff;
}


}





