/*
 Theme Name:   Sydney Child
 Theme URI:    https://example.com/
 Description:  Child theme for the Sydney theme
 Author:       TAS
 Author URI:   https://example.com/
 Template:     sydney
 Version:      1.0.0
 Text Domain:  sydney-child
*/

.cr-horizontal .cr-info-area {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cr-horizontal .cr-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.cr-horizontal .cr-grid {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 16px;
	row-gap: 6px;
	flex: 1;
	min-width: 0;
}

.cr-horizontal .cr-date {
	font-weight: 600;
	font-size: 0.95rem;
	grid-column: 1;
	grid-row: 1;
	align-self: center;
}

.cr-horizontal .cr-title {
	margin: 0;
	font-size: 1.05rem;
	grid-column: 2;
	grid-row: 1;
}

.cr-horizontal .cr-excerpt {
	font-size: 0.95rem;
	grid-column: 2;
	grid-row: 2;
}

.cr-horizontal .cr-more {
	margin-left: auto;
	white-space: nowrap;
}

.posts-layout .cr-horizontal {
	margin-bottom: 12px;
}

.posts-layout .cr-horizontal:last-of-type {
	margin-bottom: 0;
}

.posts-layout .cr-horizontal:after {
	margin-bottom: 1px;
}

.posts-layout .hentry {
	margin-bottom: 0 !important;
}

.page-wrap {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.editor-styles-wrapper,
.editor-styles-wrapper .block-editor-block-list__layout.is-root-container,
.editor-styles-wrapper .block-editor-block-list__layout.is-root-container > *,
.editor-styles-wrapper .wp-block {
	max-width: none !important;
	width: 100%;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* FAQ page tweaks */
.betterdocs-faq-wrapper .betterdocs-faq-inner-wrapper .betterdocs-faq-list {
	margin-left: 2.5rem !important;
	padding-left: 0;
}

.betterdocs-faq-wrapper .betterdocs-faq-inner-wrapper .betterdocs-faq-list > li .betterdocs-faq-group {
	width: calc(100% - 2.5rem);
}

.store-badge {
  height: 60px;
  width: auto;
  margin-right: 16px;
  vertical-align: middle;
}

.spec-header_top {
	padding-top: 10px !important;
	padding-bottom: 10px !important;
	padding-left: 38px !important;
}

.spec-header_middle {
	padding-top: 10px !important;
	padding-bottom: 10px !important;
	padding-left: 76px !important;
}

/* spec-header top block styling */
.spec-header_top {
	background: #176333;
	color: #ffffff;
	font-weight: 700;
	font-size: 32px;
	line-height: 1.2;
	padding: 14px 20px;
	margin: 0 0 16px;
	display: block;
}

/* Hide header/footer for the dedicated template */
body.page-template-page-no-header-footer #masthead,
body.page-template-page-no-header-footer #masthead-mobile,
body.page-template-page-no-header-footer #masthead-sticky-wrapper,
body.page-template-page-no-header-footer .bottom-header-row,
body.page-template-page-no-header-footer .header-wrapper,
body.page-template-page-no-header-footer .header-navigation,
body.page-template-page-no-header-footer .site-header-inner,
body.page-template-page-no-header-footer .site-branding,
body.page-template-page-no-header-footer .site-header,
body.page-template-page-no-header-footer .header-clone,
body.page-template-page-no-header-footer #colophon {
	display: none !important;
}

body.page-template-page-no-header-footer .page-wrap,
body.page-template-page-no-header-footer #content {
	padding-top: 0 !important;
	margin-top: 0;
}

body.page-template-page-no-header-footer .sydney-hero-area {
	display: none;
}

/* WPForms の中央寄せを解除（幅は保持） */
.wpforms-container-full,
.wpforms-container-full .wpforms-form {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* 資料請求 */
#wpforms-142,
#wpforms-form-142 {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* お問い合わせ */
#wpforms-155,
#wpforms-form-155 {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* トライアル申込フォーム */
#wpforms-1240,
#wpforms-form-1240 {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* モバイルでメニューをスクロール時も表示させる */
@media (max-width: 1024px) {
	.shfb-header.shfb-mobile {
		position: sticky;
		top: 0;
		z-index: 9999;
		background: #FFFBF2; /* スクロール時のモバイルメニュー背景色 */
	}
}

/* スマホのメニューロゴが横潰れしないようにする */
@media (max-width: 768px) {
  .shfb-header .site-branding,
  .shfb-header .site-branding img {
    flex-shrink: 0 !important;
  }
  .shfb-header .site-branding img {
    height: 56px;      /* お好みで調整 */
    width: auto;
    max-width: none;
    object-fit: contain;
  }
}

/* 記事タイトルは個別投稿ページのみ表示 */
.blog .entry-title,
.archive .entry-title,
.home .entry-title,
.search .entry-title {
	display: none !important;
}

.single-post .entry-title {
	display: block !important;
}

/* 個別投稿タイトルを h3 と同じスタイルに揃える */
.single-post .entry-title {
	display: block;
	background: #176333;
	color: #ffffff;
	padding: 14px 20px;
	margin: 0 0 24px;
	font-size: 32px !important; /* h3 と同じサイズ */
	line-height: 1.2 !important;
	font-weight: 700 !important;
}

@media only screen and (max-width: 780px) {
	.single-post .entry-title {
		font-size: 22px;
		padding: 12px 16px;
	}
}

/* 個別投稿：アイキャッチ周りの背景を白に */
.single-post .entry-thumb,
.single-post .entry-thumb a,
.single-post .feat-img-top {
	background: #ffffff;
}

/* 個別投稿：本文背景を白に */
.single-post .entry-content {
	background: #ffffff;
}

/* お知らせ一覧：投稿部分のみ白背景にする */
.category-news .posts-layout,
.category-news .posts-layout article {
	background: #ffffff;
}

/* お問い合わせフォーム（ID:155）入力幅を直接指定 */
#wpforms-form-155 input[type="text"],
#wpforms-form-155 input[type="email"],
#wpforms-form-155 input[type="url"],
#wpforms-form-155 input[type="tel"],
#wpforms-form-155 input[type="number"],
#wpforms-form-155 input[type="password"],
#wpforms-form-155 input[type="textbox"],
#wpforms-form-155 select {
	width: 100% !important;
	max-width: 720px;
	box-sizing: border-box;
	min-height: 54px;
}

#wpforms-form-155 textarea {
	width: 200% !important;
	max-width: 720px;
	box-sizing: border-box;
	min-height: 220px;
}

/* トライアル申込フォーム（ID:1240）入力幅を直接指定 */
#wpforms-form-1240 input[type="text"],
#wpforms-form-1240 input[type="email"],
#wpforms-form-1240 input[type="url"],
#wpforms-form-1240 input[type="tel"],
#wpforms-form-1240 input[type="number"],
#wpforms-form-1240 input[type="password"],
#wpforms-form-1240 input[type="textbox"],
#wpforms-form-1240 select {
	width: 100% !important;
	max-width: 720px;
	box-sizing: border-box;
	min-height: 54px;
}

#wpforms-form-1240 textarea {
	width: 100% !important;
	max-width: 720px;
	box-sizing: border-box;
	min-height: 220px;
}

/* トップヒーロー：縦書き日付画像を右端・中央寄せで固定 */
#top-contents1 {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

#top-contents1 .top-date-img {
	position: absolute;
	right: 24px;
	top: 40%;
	transform: translateY(-60%);
	width: auto !important;
	height: auto !important;
	max-height: 240px !important;
	object-fit: contain;
}

@media (max-width: 768px) {
	#top-contents1 .top-date-img {
		max-height: 80px !important;   /* さらに小さくする */
		max-width: 25px !important;
		right: 12px;
	}
}

/* ブログ（お知らせページ）でも投稿部分だけ白背景にする */
.blog .posts-layout,
.blog .posts-layout article {
	background: #ffffff;
}

/* 縦書き「4月1日」画像の調整（クラスは画像に付与してください） */
#top-contents1 .top-date-img {
  margin-left: auto;
}

