/**
 * Theme Name: Hinata Judicial Scrivener Office
 * Theme URI: 
 * Author: 
 * Author URI: 
 * Description: ひなた司法書士事務所のカスタムテーマ
 * Version: 1.0.0
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: hinata
 */

/* リセットCSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', 'MS PGothic', sans-serif;
  color: #333;
  line-height: 1.6;
}

/* ヘッダー */
.site-header {
  background-color: #8EB562;
  color: #fff;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-title-link {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-title-link:hover {
  opacity: 0.7;
}

.site-title {
  font-size: clamp(1.25rem, 1.1rem + 0.75vw, 2rem);
  font-weight: bold;
  margin: 0;
  color: #fff;
}

.header-logo {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.site-address {
  font-size: 14px;
  margin-top: 5px;
  color: #fff;
}

/* レスポンシブ時に住所を非表示 */
@media (max-width: 768px) {
  .site-address {
    display: none;
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* デスクトップ表示でヘッダーを確実に正しく表示 */
@media (min-width: 769px) {
  .site-header {
    flex-direction: row !important;
    text-align: left !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 40px !important;
  }

  .header-left {
    width: auto !important;
    justify-content: flex-start !important;
    position: static !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  .header-right {
    justify-content: flex-end !important;
    width: auto !important;
    text-align: left !important;
  }

  .site-address {
    display: block !important;
  }

  .site-navigation {
    position: fixed !important;
    display: block !important;
    background-color: #fff !important;
    margin: 0 !important;
    top: 110px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    z-index: 999 !important;
    overflow: visible !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  }

}

.phone-icon {
  width: clamp(1rem, 0.825rem + 0.88vw, 1.875rem);
  height: auto;
  flex-shrink: 0;
}

.phone-number {
  font-size: clamp(1rem, 0.85rem + 0.75vw, 1.75rem);
  font-weight: bold;
  color: #fff !important;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}

a.phone-number {
  color: #fff !important;
  text-decoration: none !important;
}

a.phone-number:hover,
a.phone-number:active,
a.phone-number:visited {
  color: #fff !important;
  text-decoration: none !important;
}

/* ナビゲーション */
.site-navigation {
  background-color: #fff;
  margin: 0;
  position: fixed;
  top: 115px;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: block;
}

/* レスポンシブ時はデフォルトで非表示 */
@media (max-width: 768px) {
  .site-navigation {
    display: none !important;
  }
}

/* ハンバーガーメニューボタン */
.hamburger-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1000;
  margin-left: 15px;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  width: 44px;
  height: 36px;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 8px;
  box-sizing: border-box;
}

.hamburger-icon span {
  display: block;
  height: 2px;
  width: 20px;
  background-color: #666;
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hamburger-icon span:nth-child(2) {
  margin: 4px 0;
}

/* ハンバーガーメニューが開いているときのアニメーション */
.hamburger-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 3px);
}

.hamburger-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.main-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
}

/* レスポンシブ時は縦並びに */
@media (max-width: 768px) {
  .main-menu {
    display: flex !important;
    flex-direction: column !important;
  }
}

.main-menu li {
  margin: 0;
  position: relative;
}

.main-menu a,
.main-menu>li.menu-item-has-children>span {
  display: block;
  padding: 20px 30px;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s;
  position: relative;
}

/* 親メニュー項目（サブメニューがある項目）に下向き矢印を追加 */
.main-menu>li.menu-item-has-children>a::after,
.main-menu>li.menu-item-has-children>span::after {
  content: '▼';
  font-size: 12px;
  margin-left: 8px;
  display: inline-block;
  transition: transform 0.3s;
}

/* サブメニューが開いている時は上向き矢印に */
.main-menu>li.menu-item-has-children.submenu-open>a::after,
.main-menu>li.menu-item-has-children.submenu-open>span::after {
  transform: rotate(180deg);
}

.main-menu a:hover,
.main-menu .current-menu-item a {
  color: #8EB562;
  border-bottom: 3px solid #8EB562;
}

/* サブメニューがある親メニュー項目は、アクティブスタイルを適用しない */
.main-menu>li.menu-item-has-children.current-menu-item>a {
  color: #333;
  border-bottom: none;
}

.main-menu>li.menu-item-has-children.current-menu-item>a:hover {
  color: #8EB562;
  border-bottom: 3px solid #8EB562;
}

/* サブメニュー */
.main-menu .sub-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-top: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 200px;
  z-index: 999;
}

/* JSでクラスを切り替えて表示（PC版・モバイル版共通） */
.main-menu>li.menu-item-has-children.submenu-open>.sub-menu {
  display: block !important;
}

/* デスクトップ表示で親メニュー項目を確実に表示 */
@media (min-width: 769px) {

  .main-menu>li.menu-item-has-children>a,
  .main-menu>li.menu-item-has-children>span {
    display: block !important;
  }

  .main-menu .sub-menu {
    display: none !important;
    position: absolute;
  }

  /* JSでクラスを切り替えて表示（PC版・モバイル版共通） */
  .main-menu>li.menu-item-has-children.submenu-open>.sub-menu {
    display: block !important;
  }
}

.main-menu .sub-menu li {
  margin: 0;
  border-bottom: 1px solid #f0f0f0;
}

.main-menu .sub-menu li:last-child {
  border-bottom: none;
}

.main-menu .sub-menu a {
  padding: 15px 20px;
  color: #333;
  border-bottom: none;
  font-size: 14px;
}

.main-menu .sub-menu a:hover {
  background-color: #f5f5f5;
  color: #8EB562;
  border-bottom: none;
}

/* メインコンテンツ */
.site-main {
  margin: 0 auto;
  padding-top: 0;
}

/* レスポンシブ時のメインコンテンツのパディング調整 */
@media (max-width: 768px) {
  .site-main {
    padding-top: 0;
  }
}

/* ファーストビュー */
.first-view {
  display: flex;
  align-items: center;
  margin: 150px 0 10px 10px;
}

.first-view-image {
  flex: 0 0 60%;
  max-width: 60%;
}

.first-view-image img {
  width: 100%;
  height: auto;
  display: block;
}

.first-view-message {
  flex: 0 0 40%;
  max-width: 40%;
  background-color: #fff;
  padding: 60px 40px;
  text-align: left;
}

.first-view-message h1 {
  color: #000;
  line-height: 1.45;
  margin: 0;
  text-align: center;
}

.first-view-message h1 .highlight-inheritance {
  color: #035d38;
}

.first-view-message h1 {
  font-size: clamp(0.875rem, 0.5rem + 1.2vw, 1.75rem);
}

.first-view-sub {
  margin: 0.5em 0 0;
  font-size: clamp(0.75rem, 0.4rem + 0.9vw, 1.25rem);
  color: #000;
  line-height: 1.5;
  text-align: center;
}

/* 無料相談バナー */
.consultation-banner {
  background-color: #8EB562;
  padding: 40px 0;
  margin: 0 0 60px 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.consultation-banner-container {
  max-width: 1090px;
  width: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.consultation-banner-left {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.free-consultation-button {
  display: inline-block;
  background-color: #FF8C00;
  color: #fff;
  padding: 14px 60px;
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 0;
  transition: background-color 0.3s;
  text-align: center;
  letter-spacing: 0.7rem;
}

.free-consultation-button:hover {
  background-color: #FF7F00;
  color: #fff;
}

.free-consultation-button .free-consultation-note {
  font-size: inherit;
}

.consultation-banner-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.consultation-banner-title {
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  margin: 0;
  line-height: 1.4;
}

.line-consultation-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #fff;
  color: #06C755;
  padding: 10px 30px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s;
  width: fit-content;
}

.line-consultation-button:hover {
  background-color: #f0f0f0;
  color: #06C755;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.line-icon {
  width: 24px;
  height: auto;
  flex-shrink: 0;
}

.line-text {
  color: #06C755;
  letter-spacing: 0.2rem;
}

/* 追記セクション */
.postscript-section {
  padding: 50px 20px 60px;
  background-color: #fff;
  display: flex;
  justify-content: center;
}

.postscript-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.postscript-lead {
  font-size: 20px;
  margin: 0 0 1em;
  line-height: 1.6;
  text-align: left;
}

.postscript-list {
  margin: 0 0 1.5em;
  padding-left: 1.5em;
  font-size: 18px;
  line-height: 1.8;
  text-align: left;
}

.postscript-list li {
  margin-bottom: 0.5em;
}

.postscript-text {
  margin: 0 0 0.5em;
  font-size: 18px;
  line-height: 1.6;
  text-align: left;
}

.postscript-text:last-child {
  margin-bottom: 0;
}

/* 業務内容セクション */
.business-content-section {
  margin-bottom: 60px;
}

.business-content-title {
  color: #8EB562;
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin: 0 0 40px 0;
}

.business-content {
  background-color: #f5f5f5;
  padding: 20px 0;
  margin: 0;
  width: 100%;
}

.business-content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.business-icon-link {
  flex: 1;
  min-width: 0;
  display: block;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.business-icon-link:hover {
  opacity: 0.7;
}

.business-icon {
  flex: 1;
  min-width: 0;
  height: 129px;
  max-width: 100%;
  width: 100%;
  object-fit: contain;
}

/* SVG内のテキスト要素にフォントを指定（iPhoneで明朝体にならないように） */
.business-icon text {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', 'MS PGothic', sans-serif !important;
}

/* 事務所概要セクション */
.office-overview {
  padding: 60px 20px;
  margin-bottom: 60px;
}

.office-overview-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: stretch;
}

.office-overview-image {
  width: 540px;
  height: 400px;
  max-width: 540px;
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
}

.office-overview-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.office-overview-content {
  flex: 1;
  background-color: #fff;
  display: flex;
  flex-direction: column;
}

.office-overview-title {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin: 0 0 15px 0;
}

.office-overview-name {
  font-size: 18px;
  color: #333;
  margin: 0 0 30px 0;
}

.office-overview-section {
  margin-bottom: 25px;
}

.office-overview-contact-wrapper {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-top: auto;
}

.office-overview-heading {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin: 0 0 10px 0;
}

.office-overview-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.office-overview-list li {
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
}

.office-overview-text {
  font-size: 14px;
  color: #333;
  margin: 0 0 8px 0;
  line-height: 1.6;
}

.office-overview-text .phone-number {
  color: #333 !important;
  text-decoration: none !important;
  font-weight: normal !important;
}

.office-overview-text a.phone-number {
  color: #333 !important;
  text-decoration: none !important;
  font-weight: normal !important;
}

.office-overview-text a.phone-number:hover,
.office-overview-text a.phone-number:active,
.office-overview-text a.phone-number:visited {
  color: #333 !important;
  text-decoration: none !important;
  font-weight: normal !important;
}

.office-overview-button {
  display: inline-block;
  background-color: #8EB562;
  color: #fff;
  padding: 15px 40px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
  white-space: nowrap;
  align-self: flex-start;
}

.office-overview-button:hover {
  background-color: #035d38;
  color: #fff;
}

/* ご挨拶セクション */
.greeting-section {
  padding: 60px 0;
  margin: 0 0 60px 0;
  width: 100%;
  background-color: #fff9f1;
}

.greeting-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.greeting-title {
  color: #035d38;
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin: 0 0 40px 0;
}

.greeting-text {
  margin-bottom: 40px;
}

.greeting-text p {
  font-size: 16px;
  color: #333;
  line-height: 1.8;
  margin: 0 0 20px 0;
}

.greeting-text p:last-of-type {
  margin-bottom: 0;
}

.greeting-list {
  margin: 0 0 20px 0;
  padding-left: 1.5em;
  font-size: 16px;
  color: #333;
  line-height: 1.8;
}

.greeting-list li {
  margin-bottom: 0.5em;
}

.greeting-bottom-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
}

.greeting-image-placeholder {
  width: 400px;
  height: 350px;
  background-color: #fff;
  border: 1px solid #ccc;
  flex-shrink: 0;
  overflow: hidden;
}

.greeting-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.greeting-signature {
  flex: 1;
  max-width: 300px;
}

.greeting-name {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 0 0 10px 0;
}

.greeting-career {
  font-size: 14px;
  color: #333;
  margin: 0 0 5px 0;
}

/* 事務所地図セクション */
.office-map-section {
  padding: 60px 20px;
  margin-bottom: 60px;
}

.office-map-container {
  max-width: 1000px;
  margin: 0 auto;
}

.office-map-title {
  color: #035d38;
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin: 0 0 40px 0;
}

.office-map-wrapper {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.office-map-wrapper iframe {
  width: 100%;
  height: 450px;
  display: block;
  border: 0;
}

.office-map-button-wrapper {
  text-align: center;
}

.office-map-button {
  display: inline-block;
  background-color: transparent;
  color: #035d38;
  border: 2px solid #035d38;
  padding: 12px 40px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s;
}

.office-map-button:hover {
  background-color: #035d38;
  color: #fff;
}

/* 生前対策コンテンツ */
.life-planning-content {
  padding: 0 20px 60px 20px;
}

.life-planning-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* 固定ページの内容セクション */
.page-content-section {
  padding: 20px;
  margin-bottom: 60px;
}

.page-content-container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-content-section .entry-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.page-content-section .entry-content p {
  margin: 0 0 20px 0;
}

.page-content-section .entry-content h2,
.page-content-section .entry-content h3,
.page-content-section .entry-content h4 {
  margin: 40px 0 20px 0;
  font-weight: bold;
  color: #333;
}

.page-content-section .entry-content h2 {
  font-size: 28px;
}

.page-content-section .entry-content h3 {
  font-size: 24px;
}

.page-content-section .entry-content h4 {
  font-size: 20px;
}

.page-content-section .entry-content ul,
.page-content-section .entry-content ol {
  margin: 0 0 20px 0;
  padding-left: 30px;
}

.page-content-section .entry-content li {
  margin: 0 0 10px 0;
}

.page-content-section .entry-content img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}

/* ブログアーカイブ（一覧）セクション */
.blog-archive-section {
  padding: 60px 20px;
  margin-bottom: 60px;
}

.blog-archive-container {
  max-width: 1000px;
  margin: 0 auto;
}

.blog-post-item {
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e0e0e0;
}

.blog-post-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.blog-post-header {
  margin-bottom: 20px;
}

.blog-post-title {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.blog-post-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.blog-post-title a:hover {
  color: #8EB562;
}

.blog-post-meta {
  font-size: 14px;
  color: #666;
}

.blog-post-date {
  color: #666;
}

.blog-post-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
}

.blog-post-content p {
  margin: 0 0 15px 0;
}

.blog-post-footer {
  margin-top: 20px;
}

.blog-read-more {
  display: inline-block;
  color: #8EB562;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 20px;
  border: 1px solid #8EB562;
  border-radius: 4px;
  transition: all 0.3s;
}

.blog-read-more:hover {
  background-color: #8EB562;
  color: #fff;
}

.blog-pagination {
  margin-top: 60px;
  text-align: center;
}

.blog-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.blog-pagination .page-numbers {
  display: inline-block;
  padding: 8px 15px;
  color: #333;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.3s;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background-color: #8EB562;
  color: #fff;
  border-color: #8EB562;
}

.blog-no-posts {
  text-align: center;
  font-size: 18px;
  color: #666;
  padding: 60px 20px;
}

/* ブログ個別投稿（詳細）セクション */
.blog-single-section {
  padding: 60px 20px;
  margin-bottom: 60px;
}

.blog-single-container {
  max-width: 1000px;
  margin: 0 auto;
}

.blog-single-post {
  margin-bottom: 40px;
}

.blog-single-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.blog-single-title {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

.blog-single-meta {
  margin-bottom: 0;
}

.blog-single-date {
  font-size: 14px;
  color: #666;
}

.blog-single-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 40px;
}

.blog-single-content p {
  margin: 0 0 20px 0;
}

.blog-single-content h2 {
  font-size: 28px;
  font-weight: bold;
  margin: 40px 0 20px 0;
  color: #333;
}

.blog-single-content h3 {
  font-size: 24px;
  font-weight: bold;
  margin: 35px 0 18px 0;
  color: #333;
}

.blog-single-content h4 {
  font-size: 20px;
  font-weight: bold;
  margin: 30px 0 15px 0;
  color: #333;
}

.blog-single-content ul,
.blog-single-content ol {
  margin: 0 0 20px 0;
  padding-left: 30px;
}

.blog-single-content li {
  margin: 0 0 10px 0;
}

.blog-single-content img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}

.blog-single-footer {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}

.blog-single-categories,
.blog-single-tags {
  margin-bottom: 15px;
  font-size: 14px;
}

.blog-category-label,
.blog-tag-label {
  font-weight: bold;
  color: #333;
  margin-right: 10px;
}

.blog-category-link,
.blog-tag-link {
  color: #8EB562;
  text-decoration: none;
  margin-right: 10px;
  transition: color 0.3s;
}

.blog-category-link:hover,
.blog-tag-link:hover {
  color: #035d38;
  text-decoration: underline;
}

.blog-post-navigation {
  display: flex;
  justify-content: space-between;
  margin: 40px 0;
  padding: 20px 0;
}

.blog-nav-previous,
.blog-nav-next {
  flex: 1;
}

.blog-nav-previous {
  text-align: left;
}

.blog-nav-next {
  text-align: right;
}

.blog-post-navigation a {
  color: #8EB562;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.blog-post-navigation a:hover {
  color: #035d38;
}

.blog-back-link {
  text-align: center;
  margin-top: 40px;
}

.blog-back-button {
  display: inline-block;
  color: #8EB562;
  text-decoration: none;
  font-weight: bold;
  padding: 12px 30px;
  border: 1px solid #8EB562;
  border-radius: 4px;
  transition: all 0.3s;
}

.blog-back-button:hover {
  background-color: #8EB562;
  color: #fff;
}

.life-planning-main-heading {
  color: #035d38;
  font-size: 28px;
  font-weight: bold;
  margin: 0 0 20px 0;
  line-height: 1.6;
}

.life-planning-sub-heading {
  color: #035d38;
  font-size: 22px;
  font-weight: bold;
  margin: 0 0 30px 0;
}

.life-planning-intro {
  margin-bottom: 40px;
}

.life-planning-intro p {
  font-size: 16px;
  color: #333;
  line-height: 1.8;
  margin: 0 0 20px 0;
}

.life-planning-intro p:last-child {
  margin-bottom: 0;
}

.life-planning-list-heading {
  color: #035d38;
  font-size: 20px;
  font-weight: bold;
  margin: 0 0 20px 0;
}

.life-planning-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 30px 0;
}

.life-planning-list li {
  font-size: 16px;
  color: #333;
  line-height: 1.8;
  margin-bottom: 10px;
}

.life-planning-list li:last-child {
  margin-bottom: 0;
}

.life-planning-list strong {
  font-weight: bold;
}

.life-planning-note {
  margin-bottom: 40px;
}

.life-planning-note p {
  font-size: 16px;
  color: #333;
  line-height: 1.8;
  margin: 0;
}

.life-planning-consultation {
  margin-top: 50px;
  padding-top: 40px;
}

.life-planning-consultation-heading {
  color: #035d38;
  font-size: 28px;
  font-weight: bold;
  margin: 0 0 30px 0;
}

.life-planning-consultation-content {
  margin-bottom: 20px;
}

.life-planning-consultation-content p {
  font-size: 16px;
  color: #333;
  line-height: 1.8;
  margin: 0 0 20px 0;
}

.life-planning-consultation-content p:last-child {
  margin-bottom: 0;
}

.life-planning-consultation-note {
  font-size: 14px;
  color: #666;
  font-style: italic;
}

/* 会社設立ページ */
.company-section {
  margin-bottom: 50px;
}

.company-section:last-child {
  margin-bottom: 0;
}

.company-registration-list {
  list-style: decimal;
  padding-left: 30px;
  margin: 0 0 30px 0;
}

.company-registration-list li {
  font-size: 16px;
  color: #333;
  line-height: 1.8;
  margin-bottom: 10px;
}

.company-registration-list li:last-child {
  margin-bottom: 0;
}

/* お問い合わせセクション */
.contact-section {
  background-color: #e9cbc0;
  padding: 60px 20px;
  width: 100%;
}

.contact-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-section-title {
  display: inline-block;
  color: #fff;
  font-size: 24px;
  padding: 15px 40px;
  border-radius: 8px;
  margin: 0;
}

.contact-section-sub {
  color: #fff;
  font-size: 14px;
  margin: 12px 0 0;
  line-height: 1.5;
}

.contact-section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-section-box {
  background-color: #fff;
  border-radius: 8px;
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-section-top {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-info {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: center;
}

.contact-phone,
.contact-hours {
  font-size: 16px;
  color: #333;
  margin: 0;
}

.contact-phone .phone-number {
  font-size: 24px;
  font-weight: bold;
  color: #333 !important;
  text-decoration: none !important;
}

.contact-phone a.phone-number {
  color: #333 !important;
  text-decoration: none !important;
}

.contact-phone a.phone-number:hover,
.contact-phone a.phone-number:active,
.contact-phone a.phone-number:visited {
  color: #333 !important;
  text-decoration: none !important;
}

.contact-button {
  display: inline-block;
  background-color: #e5b2b5;
  color: #fff;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.contact-button:hover {
  background-color: #d19fa2;
  color: #fff;
}

.contact-section-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding-top: 20px;
  flex-wrap: wrap;
}

.line-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity 0.3s;
}

.line-contact-link:hover {
  opacity: 0.8;
}

.line-icon-large {
  width: 40px;
  height: auto;
  flex-shrink: 0;
}

.line-contact-text {
  color: #06C755;
  font-size: 18px;
  font-weight: bold;
}

.instagram-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity 0.3s;
}

.instagram-contact-link:hover {
  opacity: 0.8;
}

.instagram-icon-large {
  width: 40px;
  height: auto;
  flex-shrink: 0;
}

.instagram-contact-text {
  color: #E4405F;
  font-size: 18px;
  font-weight: bold;
}

/* お問い合わせフォームセクション */
.contact-form-section {
  padding: 60px 20px;
  margin-bottom: 60px;
}

.contact-form-container {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-form-title {
  color: #035d38;
  font-size: 32px;
  font-weight: lighter;
  margin: 0 0 40px 0;
  text-align: center;
}

.contact-form-wrapper {
  background-color: #fff;
  padding: 40px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
}

.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form-placeholder {
  padding: 40px;
  text-align: center;
  background-color: #f5f5f5;
  border-radius: 8px;
  color: #666;
}

.contact-form-placeholder code {
  background-color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
}

/* Contact Form 7 スタイル */
.wpcf7 {
  max-width: 100%;
}

.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.wpcf7-form-field {
  display: flex;
  gap: 10px;
}

.wpcf7-form-control-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 300px;
}

.wpcf7-form p {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 0;
  flex-wrap: wrap;
}

/* 通常のフォームフィールドのラベルのみにスタイルを適用（チェックボックスのラベルは除外） */
.wpcf7-form .wpcf7-form-control-wrap>label,
.wpcf7-form p:not(.wpcf7-acceptance)>label:not(.wpcf7-list-item-label),
.wpcf7-form-field:not(.wpcf7-acceptance)>label:not(.wpcf7-list-item-label) {
  width: 180px;
  height: 50px;
  font-size: 16px;
  color: #333;
  font-weight: normal;
  padding: 12px 15px;
  flex-shrink: 0;
  text-align: right;
  display: flex;
  align-items: center;
  background-color: #f3f3f1;
  box-sizing: border-box;
}

.wpcf7-form-control {
  flex: 1;
  min-width: 300px;
  padding: 12px 15px;
  font-size: 16px;
  font-family: inherit;
  text-align: left;
  border: 1px solid #333;
  border-radius: 4px;
  background-color: #fff;
}

.wpcf7-form-control:focus {
  outline: none;
  border-color: #035d38;
}

.wpcf7-form-control::placeholder {
  text-align: left;
  color: #999;
}

.wpcf7-textarea {
  min-height: 150px;
  resize: vertical;
  flex: 1;
  min-width: 300px;
  width: 100%;
  padding: 12px 15px;
  font-size: 16px;
  font-family: inherit;
  text-align: left;
  border: 1px solid #333;
  border-radius: 4px;
  background-color: #fff;
  box-sizing: border-box;
}

/* textareaがwpcf7-form-control-wrap内にある場合も幅を確保 */
.wpcf7-form-control-wrap textarea,
.wpcf7-form p textarea,
.wpcf7-form-field textarea {
  flex: 1;
  min-width: 300px;
  width: 100%;
}

.wpcf7-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.wpcf7-list-item {
  margin: 0;
}

.wpcf7-list-item-label {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

/* チェックボックスの周りの枠線と背景を削除 */
.wpcf7-acceptance,
.wpcf7-checkbox {
  border: none !important;
  background: none !important;
  background-color: transparent !important;
  margin: 0 !important;
  text-align: center;
}

.wpcf7-acceptance label,
.wpcf7-checkbox label,
.wpcf7-list-item-label {
  background-color: transparent !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  text-align: left !important;
  display: inline !important;
}

/* チェックボックス自体の枠線を削除（チェックボックスは表示される） */
.wpcf7-checkbox input[type="checkbox"],
.wpcf7-acceptance input[type="checkbox"] {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  margin-right: 8px;
}

.wpcf7-checkbox input[type="checkbox"]:focus,
.wpcf7-acceptance input[type="checkbox"]:focus {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.wpcf7-submit {
  background-color: #fff;
  color: #8EB562;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: bold;
  border: 1px solid #8EB562;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  width: auto;
  margin: 20px auto 0;
  display: block;
  text-align: center;
}

.wpcf7-submit:hover {
  background-color: #8EB562;
  color: #fff;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ok {
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.wpcf7-validation-errors {
  background-color: #fee;
  color: #c33;
  border: 1px solid #fcc;
}

.wpcf7-mail-sent-ok {
  background-color: #efe;
  color: #3c3;
  border: 1px solid #cfc;
  text-align: center;
  padding: 40px 20px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 600px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 送信成功時にフォームを非表示 */
.contact-form-wrapper:has(.wpcf7-mail-sent-ok) .wpcf7-form,
.wpcf7-form-wrapper:has(.wpcf7-mail-sent-ok) .wpcf7-form {
  display: none !important;
}

/* 送信完了メッセージのスタイル改善 */
.wpcf7-mail-sent-ok::before {
  content: "✓ ";
  font-size: 24px;
  margin-right: 10px;
}

.wpcf7-not-valid-tip {
  color: #c33;
  font-size: 14px;
  margin-top: 5px;
}

.wpcf7-not-valid {
  border-color: #c33 !important;
}

/* 個人情報保護セクション */
.privacy-policy-section {
  margin-top: 40px;
  padding-top: 40px;
}

.privacy-policy-title {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin: 0 0 20px 0;
}

.privacy-policy-text {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin: 0 0 20px 0;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ページタイトルセクション */
.page-title-section {
  background-image: url('img/title-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 70px 20px;
  margin: 0 0 60px 0;
  margin-top: 175px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* ページタイトルバナー（生前対策など） */
.page-title-banner {
  background-image: url('img/title-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 20px;
  margin: 0 0 60px 0;
  margin-top: 150px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.page-title-banner-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-title-banner-text {
  color: #fff;
  font-size: 48px;
  font-weight: bold;
  margin: 0;
}

.page-title-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-title {
  display: inline-block;
  background-color: #8EB562;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  padding: 10px 60px;
  margin: 0;
}

/* ご相談の流れセクション */
.consultation-flow {
  padding: 60px 20px;
  margin-bottom: 60px;
}

.consultation-flow-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding-left: 60px;
}

.consultation-step {
  margin-bottom: 80px;
  position: relative;
}

.consultation-step:last-child {
  margin-bottom: 0;
}

.step-number {
  font-size: 64px;
  color: #FFB6C1;
  line-height: 1;
  margin: 0 0 20px 0;
  position: relative;
}

.step-number::before {
  content: "";
  position: absolute;
  left: -48px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: #035d38;
  border-radius: 50%;
  z-index: 2;
}

.step-body {
  position: relative;
}

.step-body::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 0;
  width: 2px;
  background-color: #8EB562;
}

.consultation-step:not(:last-child) .step-body::before {
  bottom: -80px;
}

.consultation-step:last-child .step-body::before {
  height: 100%;
}

.step-title {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin: 0 0 20px 0;
}

.step-content {
  margin-top: 0;
}

.step-text {
  font-size: 16px;
  color: #333;
  line-height: 1.8;
  margin: 0 0 15px 0;
}

.step-text .phone-number {
  color: #333 !important;
  text-decoration: none !important;
  font-weight: normal !important;
}

.step-text a.phone-number:hover,
.step-text a.phone-number:active,
.step-text a.phone-number:visited {
  color: #333 !important;
  text-decoration: none !important;
}

.step-subtitle {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin: 20px 0 10px 0;
}

.step-note {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin: 15px 0 0 0;
  font-style: italic;
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.step-list li {
  font-size: 16px;
  color: #333;
  line-height: 1.8;
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.step-list li::before {
  content: "・";
  position: absolute;
  left: 0;
}

/* コンテンツエリア */
.content-area {
  max-width: 1200px;
  margin: 0 auto;
}

/* フッター */
.site-footer {
  background-color: #f3f3f1;
  color: #333;
  padding: 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-office-info {
  text-align: center;
}

.footer-office-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-office-name {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.footer-logo {
  width: 50px;
  height: 50px;
}

.footer-address {
  font-size: 14px;
  color: #333;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.social-icon {
  display: inline-block;
  transition: transform 0.3s;
}

.social-icon:hover {
  transform: scale(1.1);
}

.social-icon svg {
  display: block;
}

.social-icon-img {
  width: 40px;
  height: 40px;
  display: block;
}

.footer-copyright {
  text-align: center;
}

.footer-copyright p {
  font-size: clamp(0.563rem, 0.525rem + 0.19vw, 0.75rem);
  color: #333;
  margin: 0;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    text-align: left;
    gap: 5px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px;
    min-height: auto;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .site-navigation {
    margin: 0 !important;
    position: fixed !important;
    top: 90px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: #fff !important;
    z-index: 9999 !important;
    display: none !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    box-shadow: none !important;
  }

  .site-navigation.menu-open {
    display: flex !important;
  }

  /* モバイルメニューヘッダーを非表示（通常のヘッダーを使用） */

  .header-left {
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    padding-right: 60px;
    box-sizing: border-box;
  }

  .header-right {
    justify-content: flex-start;
    width: 100%;
    text-align: left;
  }

  .site-title {
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .header-logo {
    width: 40px;
    height: 40px;
  }

  /* ハンバーガーメニューボタンを表示 */
  .hamburger-menu-toggle {
    display: block;
    position: absolute;
    right: 10px;
    top: 90%;
    transform: translateY(-50%);
    padding: 8px;
  }

  /* メニューをデフォルトで非表示 */
  .main-menu {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    padding: 0;
    margin: 0;
    list-style: none;
    flex: 1;
    margin-top: 0;
  }

  /* メニューの最初の項目をヘッダーのすぐ下に配置 */
  .site-navigation .main-menu {
    justify-content: flex-start;
  }

  .site-navigation .main-menu>li:first-child {
    margin-top: 0;
  }

  /* 親メニュー項目（サブメニューがある項目）を表示 */
  .main-menu>li.menu-item-has-children>a,
  .main-menu>li.menu-item-has-children>span {
    display: block;
  }

  .main-menu li {
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
  }

  .main-menu li:last-child {
    border-bottom: none;
  }

  .main-menu a,
  .main-menu>li.menu-item-has-children>span {
    padding: 15px 20px;
    text-align: left;
    border-bottom: none;
    color: #333;
    text-decoration: none;
    display: block;
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
  }

  /* 親メニュー項目（サブメニューがある項目）に下向き矢印を追加 */
  .main-menu>li.menu-item-has-children>a::after,
  .main-menu>li.menu-item-has-children>span::after {
    content: '▼';
    font-size: 12px;
    margin-left: 8px;
    display: inline-block;
    transition: transform 0.3s;
    color: #8EB562;
  }

  /* サブメニューが開いている時は上向き矢印に */
  .main-menu>li.menu-item-has-children.submenu-open>a::after,
  .main-menu>li.menu-item-has-children.submenu-open>span::after {
    transform: rotate(180deg);
  }

  .main-menu a:hover,
  .main-menu .current-menu-item a {
    background-color: transparent;
    color: #333;
    border-bottom: none;
  }

  /* サブメニューをアコーディオン表示（デフォルトは非表示） */
  .main-menu .sub-menu {
    position: static;
    display: none !important;
    box-shadow: none;
    border: none;
    background-color: #fff;
    width: 100%;
    min-width: auto;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  /* サブメニューが開いている時は表示 */
  .main-menu>li.menu-item-has-children.submenu-open .sub-menu {
    display: block !important;
  }

  .main-menu .sub-menu li {
    border-bottom: 1px solid #e0e0e0;
  }

  .main-menu .sub-menu li:last-child {
    border-bottom: none;
  }

  .main-menu .sub-menu a {
    padding: 15px 20px;
  }

  .first-view {
    flex-direction: column;
    margin: 90px 0 0 0;
  }

  .first-view-image {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .first-view-message {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 40px 20px;
  }

  .first-view-message h1 {
    font-size: clamp(0.75rem, 2.5vw, 1.25rem);
  }

  .first-view-sub {
    font-size: clamp(0.65rem, 2vw, 1rem);
    margin-top: 0.5em;
  }

  .consultation-banner-container {
    flex-direction: column;
    gap: 30px;
  }

  .free-consultation-button {
    font-size: 24px;
    padding: 20px 40px;
    width: 100%;
    text-align: center;
  }

  .consultation-banner-title {
    font-size: 24px;
    text-align: center;
  }

  .line-consultation-button {
    width: 100%;
    justify-content: center;
  }

  .business-content-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .business-content-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    justify-items: center;
    align-items: center;
    padding: 0 5px;
  }

  .business-icon-link {
    width: 100%;
    display: block;
  }

  .business-icon {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  /* 4番目と5番目のアイコンを左寄せに配置（1列目と2列目） */
  .business-icon-link:nth-child(4) {
    grid-column: 2;
  }

  .business-icon-link:nth-child(5) {
    grid-column: 1;
  }
}

/* スマホサイズ（768px以下）で2-2-1のレイアウト */
@media (max-width: 768px) {
  .business-content-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    justify-items: center;
    align-items: center;
    padding: 0 5px;
  }

  /* スマホではホバー効果を無効化 */
  .business-icon-link:hover {
    opacity: 1;
  }

  /* 5番目のアイコンを左寄せに配置（1列目） */
  .business-icon-link:nth-child(5) {
    grid-column: 1;
    justify-self: start;
    width: 100%;
    max-width: 100%;
  }

  .business-item-card {
    min-height: 180px;
    padding: 20px 15px;
  }

  .business-item-title {
    font-size: 16px;
  }

  .office-overview {
    padding: 40px 10px;
  }

  .office-overview-container {
    flex-direction: column;
    gap: 30px;
  }

  .office-overview-image {
    max-width: 100%;
  }

  .office-overview-content {
    padding: 30px 20px;
  }

  .office-overview-title {
    font-size: 28px;
  }

  .office-overview-container {
    flex-direction: column;
  }

  .office-overview-image {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .office-overview-image img {
    height: auto;
  }

  .office-overview-contact-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .office-overview-button {
    width: 100%;
    text-align: center;
  }

  .contact-section {
    padding: 40px 10px;
  }

  .contact-section-title {
    font-size: 20px;
    padding: 12px 30px;
  }

  .contact-section-box {
    padding: 30px 20px;
  }

  .contact-section-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-info {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .contact-button {
    width: 100%;
    text-align: center;
  }

  .footer-office-name {
    font-size: 24px;
  }

  .footer-logo {
    width: 40px;
    height: 40px;
  }

  .page-title-section {
    padding: 40px 10px;
    margin: 93px 0 0 0;
  }

  .page-title {
    font-size: 24px;
    padding: 15px 40px;
  }

  .consultation-flow {
    padding: 40px 10px;
  }

  .consultation-flow-container {
    padding-left: 50px;
  }

  .consultation-step {
    margin-bottom: 50px;
  }

  .step-number::before {
    left: -35px;
    width: 12px;
    height: 12px;
  }

  .step-body::before {
    left: -30px;
  }

  .consultation-step:not(:last-child) .step-body::before {
    bottom: -50px;
  }

  .consultation-step:last-child .step-body::before {
    height: 100%;
  }

  .step-number {
    font-size: 50px;
  }

  .step-title {
    font-size: 24px;
  }

  .contact-form-section {
    padding: 40px 10px;
  }

  .contact-form-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .contact-form-wrapper {
    padding: 20px 15px;
  }

  .wpcf7-form {
    gap: 20px;
  }

  .wpcf7-form p {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .wpcf7-form-field {
    flex-direction: column;
    gap: 8px;
  }

  /* ラベルのスタイル調整（モバイル） */
  .wpcf7-form .wpcf7-form-control-wrap>label,
  .wpcf7-form p:not(.wpcf7-acceptance)>label:not(.wpcf7-list-item-label),
  .wpcf7-form-field:not(.wpcf7-acceptance)>label:not(.wpcf7-list-item-label) {
    width: 100%;
    min-width: 100%;
    height: auto;
    padding: 10px 0;
    text-align: left;
    font-size: 14px;
    font-weight: bold;
  }

  .wpcf7-form-control-wrap {
    min-width: 100%;
    width: 100%;
  }

  .wpcf7-form-control,
  .wpcf7-textarea {
    min-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .wpcf7-form-control {
    padding: 12px;
    font-size: 16px;
  }

  .wpcf7-textarea {
    padding: 12px;
    font-size: 16px;
    min-height: 120px;
  }

  .wpcf7-submit {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
  }

  /* プライバシーポリシーセクション */
  .privacy-policy-section {
    margin-top: 30px;
    padding-top: 30px;
  }

  .privacy-policy-title {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .privacy-policy-text {
    font-size: 12px;
    padding: 15px;
    max-height: 150px;
  }

  .greeting-section {
    padding: 40px 0;
    margin: 0 0 40px 0;
    width: 100%;
  }

  .greeting-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .greeting-text {
    margin-bottom: 30px;
  }

  .greeting-bottom-wrapper {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .greeting-image-placeholder {
    width: 100%;
    max-width: 300px;
    height: 400px;
  }

  .greeting-signature {
    max-width: 100%;
  }

  .greeting-name {
    text-align: center;
  }

  .office-map-section {
    padding: 40px 10px;
  }

  .office-map-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .office-map-wrapper iframe {
    height: 300px;
  }

  .office-map-button {
    padding: 10px 30px;
    font-size: 14px;
  }

  .page-title-banner {
    padding: 50px 10px;
    margin: 0 0 40px 0;
    width: 100%;
  }

  .page-title-banner-text {
    font-size: 36px;
  }

  .life-planning-content {
    padding: 0 10px 40px 10px;
  }

  .life-planning-main-heading {
    font-size: 22px;
  }

  .life-planning-sub-heading {
    font-size: 18px;
  }

  .life-planning-consultation-heading {
    font-size: 24px;
  }
}