/*
Theme Name:AGENDA child
Theme URI:
Description: "AEGNDA" の自作子テーマです。
Author:Hitoe Akamine
Author URI:https://tcd-theme.com/
Template: agenda_tcd059
Version:2.0
Text Domain:tcd-agenda
*/
.memberonly-label {
	font-size: 16px;
	line-height: 1.2;
	color: #fff;
	text-align: center;
	padding: 8px 0;
	background: #0077B3;
	margin: 0 0 -16px 0;
}
@media screen and (max-width: 1260px) {
	.memberonly-label {
		display: none;
}
}

#index_news .headline { background:#0077b3; color:#fff; }

#news_list .item a{
	height: 108px;
}
#news_list .title{
	font-size: 16px;
	margin-top: 8px;
}
#news_list .date{
	margin-top:0px;
}
#news_list_single .headline{
	box-shadow: 0 -5px 0 0 #0077b3;
}


/* /memberonly の「お知らせ」：日付とタイトルの間を詰める */
#main_contents #index_news .post_list.type1 .item .info .date {
  margin: 0 0 4px;   /* 下だけ4px（お好みで2〜6pxに調整） */
  line-height: 1.2;
}
#main_contents #index_news .post_list.type1 .item .info .title {
  margin: 0;         /* デフォルトの上マージンをゼロに */
  line-height: 1.4;
  padding
}


/* フォーム全体のスタイル */
.wpcf7-radio, .wpcf7-checkbox {
	display: flex;
}

/* フッターのリストスタイル */
.footer_widget ul{
	list-style: none !important;
}
.footer_widget li {
	font-size: 14px;
}


/* 規約ページ：<ol>の元の番号は消す。番号はH2だけに付ける */
.terms-sections,
.terms-sections > li {
  list-style: none;
  margin: 0 !important;
  padding: 0;
}

.terms-sections > li::marker { content: '' !important; }  /* Safari/Chromium対策 */
.terms-sections { counter-reset: terms; }

.terms-sections > li > h2 {
  counter-increment: terms;
  position: relative;
  padding: 0 2.2em;      /* 数字ぶんのインデント */
  margin: 1.6em 0 .6em;     /* お好みで微調整 */
  line-height: 1.4;
}
.terms-sections > li > h2::before {
  content: counter(terms) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

#footer_banner .item{
  height:80px;
}

.post_content ul {
  margin-left: 0 !important;
}

#left_col .s_table table {
  width: 100% !important;
  table-layout: fixed;
}
#left_col .s_table td,
#left_col .s_table th {
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

@media (max-width: 767px){
  .page img{width:100%!important;height:auto;}
}

@media (max-width: 767px){
  /* リスト全体を2列のフレックスに */
  .tabs .wpcf7-checkbox{ 
    display: flex;
    flex-wrap: wrap;    row-gap: 8px;
  }

  /* ラベルを横並びに戻す（block指定の打ち消し） */
  .tabs .wpcf7-checkbox .wpcf7-list-item label{
    display: inline-flex !important;
    align-items: center;
    gap: 6px;               /* □ と文字の間 */
    width: auto !important; /* 100%指定を上書き */
    white-space: nowrap;    /* 1語で改行しない */
  }
  /* テーマが block にしている場合の保険 */
  .tabs .wpcf7-checkbox .wpcf7-list-item-label{
    display: inline !important;
  }
}

  /* チェックと文字の間を少し空ける（お好みで） */
  .tabs .wpcf7-checkbox input[type="checkbox"]{
    margin-right: 6px;
  }

/* 麹町支部のアクセス記事：SPで画像を全幅＆左寄せ解除 */
@media (max-width: 767px){
  #mainColumn .page img {               /* まず全画像を全幅に */
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  #mainColumn .page img.alignleft,      /* alignleft/right の回り込みを無効化 */
  #mainColumn .page img.alignright{
    float: none !important;
    margin: 0 0 12px !important;
  }
}

@media (max-width: 767px){
  /* フォーム外枠～内側まで一括で全幅化 */
  #mainColumn .tabs,
  #mainColumn .tabs > *,
  #mainColumn .tabs .tab_content,
  #mainColumn .wpcf7,
  #mainColumn .wpcf7 form{
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box;
  }

  /* 画面端ベタ付きを避ける余白（お好みで数値調整） */
  #mainColumn .tabs{ padding-left:16px; padding-right:16px; margin:0 auto !important; }

  /* 入力コントロールは必ず全幅 */
  #mainColumn .wpcf7 .wpcf7-form-control{ width:100% !important; }

  /* チェックボックスは2列＆改行しない */
  #mainColumn .wpcf7-checkbox .wpcf7-list-item{ display:inline-block; width:48%; margin:0 0 8px; vertical-align:top; }
  #mainColumn .wpcf7-checkbox label{ white-space:nowrap; }
}

@media (max-width: 767px){
.tab_content {
  display: none;
  clear: both;
  overflow: hidden;
}
}

/* FVスライダーの高さを固定（麹町支部TOP） */
#header_slider .slick-slide,
#header_slider .image {
  height: 620px !important;
  max-height: 620px !important;
  overflow: hidden;
}

#header_slider .slick-slide .image {
  background-size: cover !important;
  background-position: center !important;
}

#header_slider .caption {
  height: 550px;
}

#header_slider {
 height: 620px;
}

@media (max-width: 767px){
    img.wp-image-88.u-spWidAuto {
        width: auto;
    }
}

/* YouTube動画をレスポンシブ対応に */
.post_content iframe {
  width: 100% !important;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;  /* 自動で高さを調整 */
  display: block;
}

.tit1 {
  font-weight: bold;
}

@media (max-width: 767px){
  .post_content .s_table {
    overflow: visible !important;
    white-space: normal !important;
  }
}

.shinsei-list .item {
  border-bottom: 1px solid #ccc;
  padding: 1.2em 0;
  margin-bottom: 1em;
}

.shinsei-list .item h3 {
  font-size: 1.1em;
  font-weight: 700;
  margin-bottom: 0.6em;
  color: #222;
  border-left: 6px solid #0077b3;
  padding-left: 8px;
}

.shinsei-list a {
  color: #0066cc;
  text-decoration: underline;
}

.shinsei-list a:hover {
  color: #004b99;
  text-decoration: none;
}

.shinsei-list p {
  margin: 0.3em 0;
}

body.page-id-5788 .shinsei-list p {
  margin: 0 !important;
}


.post_content h3 {
  padding: 0px 0px 0px 10px !important;
}

@media (max-width: 767px){
  .headline_area .headline {
    color: #000 !important;
  }
}

@media (max-width: 767px){
  .desc {
    color: #000 !important;
  }
}

@media (max-width: 767px){
  .tabs {
    width: 100% !important;
    box-sizing: border-box;
    padding-bottom: 0px !important;
  }
}

.wpcf7 form p {
  margin-bottom: 20px !important;
}


@media (max-width: 767px){
.tab_content {
  padding: 10px 0px 0px !important
 }
}

.form-note {
  font-size: 0.9em;
  color: #555;
  margin: 1em 0 0;
  text-align: center;
}
.form-note a {
  color: #0066cc;
  text-decoration: underline;
}

.wpcf7 form a {
  color: #0077b3;
  text-decoration: underline;
}
.wpcf7 form a:hover {
  opacity: 0.8;
}

input[type="number"] {
  -moz-appearance: textfield;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ヘッダーのアニメーションを完全停止して常に固定表示 */
#header,
#header.animate {
  animation: none !important;
  transition: none !important;
  transform: none !important;
  top: 0 !important;
  opacity: 1 !important;
}



/* FVタイトルの“ゆっくり表示”だけ無効化（位置は維持） */
#header_slider .slick-active .caption_inner,
#header_slider .slick-active .title,
#header_slider .slick-active .desc {
  animation: none !important;
  transition: none !important;
  /* transform: none;  ← 触らない */
  opacity: 1 !important;   /* 必要なら表示を強制 */
}

@media (max-width: 767px){
  body.home #header_slider .desc {
    color: #fff !important;
  }
}

/* ヘッダー全体をロゴに合わせて広げる */
#header_inner {
  height: 80px !important; /* ←ここで枠を広げる（調整OK） */
}

@media (max-width: 767px){
  .post_content iframe { height: 500px !important; }
}

/* 既定はPCを表示、SPを隠す */
.calendar_pc { display: block; }
.calendar_sp { display: none; }

/* テーマ側の強い指定に勝つために !important を付与 */
@media (max-width: 767px) {
  .calendar_pc { display: none !important; }
  .calendar_sp { display: block !important; }
}

.tax-consultation {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 0 0;
}

/* 冒頭説明文 */
.tax-lead {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 40px;
}

/* セクション見出し */
.section-title {
  font-size: 24px;
  font-weight: bold;
  border-bottom: 2px solid #f2f2f2;
  padding-bottom: 8px;
  margin-bottom: 30px;
}

/* 各相談ブロック */
.support-head {
  background: #0077b3;
  padding: 12px 16px;
  font-weight: bold;
  border-radius: 6px;
  margin-bottom: 20px;
  color: #fff;
}

/* 左：文章 右：画像 */
.support-body {
  display: flex;
}

.support-text {
  flex: 1;
  min-width: 0; 
}

.support-image {
  width: 260px;
  margin-left: 20px; /* ← テキストとの間だけ */
}

.info-row {
  display: flex;
  padding: 16px 0;
  border-bottom: 1px solid #e0e0e0; /* ← 下線 */
}

.info-label {
  width: 80px;
  font-weight: bold;
}

.info-content {
  flex: 1;
  line-height: 1.5;
}

.note {
  margin-top: 6px;
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

.note a {
  text-decoration: underline;
}

.info-content p.note {
  line-height: 1.5;
}


/* 税務相談ページ：本文pの余白を調整 */
.tax-consultation .support-text p {
  margin-bottom: 0;
}
