/*
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:0 0 16px;
}
#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 12px;   /* 下だけ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;
}

/* 冒頭説明文 */
.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;
  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;
}

@media (max-width: 767px) {
  .tax-consultation .support-body {
    display: block;
  }

  .tax-consultation .support-image {
    width: 100%;
    margin: 16px 0 0;
  }
}

@media (max-width: 767px) {
  .tax-consultation .support-body {
    margin-bottom: 48px;
  }
}

  body.page-id-consultation .note p {
    line-height: 1.5 !important;
  }
  
  .post-type-archive-photolibrary #page_header_title span {
  display: none;
}

.post-type-archive-photolibrary #page_header_title::after {
  content: "写真館";
  display: block;
  font-size: 32px;
  width: 1180px;
  margin: 0 auto;
  display: flex;
}

.post-type-archive-tranings #page_header_title::after {
  content: "各種研修会";
  display: block;
  font-size: 32px;
  width: 1180px;
  margin: 0 auto;
  display: flex;
}

@media (max-width: 767px) {
  .post-type-archive-photolibrary #page_header_title::after {
    width: auto;
    font-size: 18px;
  }
}

/* 1200px未満〜768px超のときは幅を固定しない */
@media (max-width: 1199px) and (min-width: 769px) {
  .post-type-archive-photolibrary #page_header_title::after {
    width: auto;
  }
}

@media (max-width: 768px) {
  #main_col {
    display: block;
  }

  #left_col,
  #right_col,
  #sidebar {
    width: 100%;
    float: none;
  }
}

#index_3box .box {
  padding: 32px;
}

.wpcf7-list-item {
  margin: 0;
}

.training-calendar {
  margin-bottom: 40px;
}

.mc-main {
display:none;
}

.calendar-sp{
display:none;
}

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

.calendar-pc{
display:none;
}

.calendar-sp{
display:block;
}
}

#ai1ec-calendar{
display:none !important;
}

.support-image img{
width:230px;
height:auto;
margin-left:auto;
display:block;
}

.item p + p{
margin-left:4.5em !important;
}

.footer_widget li {
  margin: 0 0 20px 0;
  line-height: normal !important;
  padding: 0 !important;
}

@media (max-width: 768px) {
  #side_col .side_widget:not(.tcd_banner_widget) {
    display: none !important;
  }
}

/*タブ切り替え全体のスタイル*/
.tabs {
  margin-top: 50px;
  padding-bottom: 40px;
  background-color: #fff;
/*   box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); */
  width: 760px;
  margin: 0 auto;}

/*タブのスタイル*/
.tab_item {
  width: calc(100%/2);
  height: 50px;
  border-bottom: 3px solid #1178B1;
  background-color: #d9d9d9;
  line-height: 50px;
  font-size: 16px;
  text-align: center;
  color: #565656;
  display: block;
  float: left;
  text-align: center;
  font-weight: bold;
  transition: all 0.2s ease;
}
.tab_item:hover {
  opacity: 0.75;
}

/*ラジオボタンを全て消す*/
input[name="tab_item"] {
  display: none;
}

/*タブ切り替えの中身のスタイル*/
.tab_content {
  display: none;
  padding: 40px 40px 0;
  clear: both;
  overflow: hidden;
}

/*選択されているタブのコンテンツのみを表示*/
#common:checked ~ #common_content,
#corp:checked ~ #corp_content {
  display: block;
}

/*選択されているタブのスタイルを変える*/
.tabs input:checked + .tab_item {
  background-color: #1178B1;
  color: #fff;
}

/*-- .btn --*/
.btn1 {
  background: #FFCC33;
  background-image: -webkit-linear-gradient(top, #FFCC33, #FFCC33);
  background-image: -moz-linear-gradient(top, #FFCC33, #FFCC33);
  background-image: -ms-linear-gradient(top, #FFCC33, #FFCC33);
  background-image: -o-linear-gradient(top, #FFCC33, #FFCC33);
  background-image: linear-gradient(to bottom, #FFCC33, #FFCC33);
  -webkit-border-radius: 10;
  -moz-border-radius: 10;
  border-radius: 10px;
  font-family: Arial;
  color: #000000;
  font-size: 20px;
  padding: 10px 20px 10px 20px;
  text-decoration: none;
}

.btn1:hover {
  background: #e3aa00;
  background-image: -webkit-linear-gradient(top, #e3aa00, #e3aa00);
  background-image: -moz-linear-gradient(top, #e3aa00, #e3aa00);
  background-image: -ms-linear-gradient(top, #e3aa00, #e3aa00);
  background-image: -o-linear-gradient(top, #e3aa00, #e3aa00);
  background-image: linear-gradient(to bottom, #e3aa00, #e3aa00);
  text-decoration: none;
}

.btn-list__item {
    flex: 0 0 calc(100% / 3) !important;
    text-align: center !important;
    box-sizing: border-box !important;
    padding: 15px !important;
}

.btn-list {
    display: flex !important;
}

dl.qa-8 {
  margin: 0;
  padding: 0;
}
 
dl.qa-8 dt {
  font-weight: bold;
  margin-bottom: 16px;
}
 
dl.qa-8 dt::before {
  content: "Q.  ";
  font-weight: bold;
}
 
dl.qa-8 dd {
  background: #f5f5f5;
  border-radius: 4px;
  padding: 24px 24px 24px 54px;
  margin: 0 0 32px 0;
  padding-left: 3em;
  text-indent: -1.4em;
  line-height: 1.8;
}
 
dl.qa-8 dd::before {
  content: "A.  ";
  font-weight: bold;
}
