/*
Theme Name: RIFF
Theme URI: http://example.com/riff
Author: Ryo Kawamura
Author URI: http://example.com
Description: エレガントでモダンなWordPressテーマ「RIFF」。コーポレートサイト、ポートフォリオ、ブログなど様々な用途に適したデザインです。
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: riff
Tags: one-column, two-columns, right-sidebar, flexible-header, custom-colors, custom-header, custom-menu, custom-logo, featured-images, footer-widgets, post-formats, responsive, theme-options, translation-ready
*/

/* リセットCSS */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  color: #333;
  background-color: #fff;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 基本スタイル */
a {
  color: #1e73be;
  text-decoration: none;
  transition: all 0.3s ease;
}
a:hover {
  color: #3a97e4;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}
.clearfix:after {
  content: "";
  display: table;
  clear: both;
}
/* ==========================================================================
   レスポンシブ改行制御（PC/スマホ専用改行）
   ========================================================================== */

/* PC専用改行 - デフォルトで表示 */
br.pc {
  display: block;
}

/* スマホ専用改行 - デフォルトで非表示 */
br.sp {
  display: none;
}

/* スマホ表示時（767px以下） */
@media (max-width: 767px) {
  /* PC専用改行を非表示 */
  br.pc {
    display: none;
  }
  
  /* スマホ専用改行を表示 */
  br.sp {
    display: block;
  }
}

/* タブレット表示時の調整（768px-991px） */
@media (min-width: 768px) and (max-width: 991px) {
  /* タブレットではPC専用改行を使用 */
  br.pc {
    display: block;
  }
  
  br.sp {
    display: none;
  }
}

/* ==========================================================================
   ヘッダースタイル（修正版）
   ========================================================================== */

/* CSS変数の定義 */
:root {
  --riff-header-bg-color: #ffffff;
  --riff-header-bg-rgba: rgba(255, 255, 255, 1);
  --riff-header-text-color: #333333;
  --riff-header-link-hover-color: #1e73be;
  --riff-mobile-menu-button-color: #333333;
  --riff-site-title-color: #333333;
  --riff-site-description-color: #777777;
  --riff-header-shadow-color: rgba(0, 0, 0, 0.1);
  --header-height: 70px;
  --header-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ヘッダーメインスタイル */
.site-header {
  background-color: var(--riff-header-bg-rgba);
  box-shadow: 0 1px 3px var(--riff-header-shadow-color);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  transition: var(--header-transition);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  will-change: background-color, box-shadow, backdrop-filter;
  border-bottom: 1px solid transparent;
}

/* スクロール時のヘッダー */
.site-header.scrolled {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px var(--riff-header-shadow-color);
}

/* 透明ヘッダー用のスタイル */
.header-transparent .site-header {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.header-transparent .site-header.scrolled {
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

/* シャドウ付きヘッダー用のスタイル */
.header-shadow .site-header {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

/* ヘッダーインナー */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  min-height: var(--header-height);
  transition: var(--header-transition);
}

/* サイトブランディング */
.site-branding {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo {
  max-width: 200px;
  height: auto;
  transition: transform 0.3s ease;
}

.site-logo:hover {
  transform: scale(1.02);
}

.site-title {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  line-height: 1.2;
}

.site-title a {
  color: var(--riff-site-title-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-title a:hover {
  color: var(--riff-header-link-hover-color);
}

.site-description {
  font-size: 14px;
  color: var(--riff-site-description-color);
  margin: 5px 0 0;
  line-height: 1.3;
}

/* メインナビゲーション */
.main-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-navigation li {
  position: relative;
  margin-left: 30px;
}

.main-navigation li:first-child {
  margin-left: 0;
}

.main-navigation a {
  display: block;
  padding: 10px 0;
  color: var(--riff-header-text-color);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
}

.main-navigation a:hover,
.main-navigation a:focus {
  outline: none !important;
  color: var(--riff-header-link-hover-color);
  transform: translateY(-1px);
}

/* ナビゲーションリンクのアンダーライン効果 */
.main-navigation a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--riff-header-link-hover-color);
  transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation a:focus::after {
  width: 100%;
}

/* アクティブページのスタイル */
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: var(--riff-header-link-hover-color);
}

.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after {
  width: 100%;
}

/* ドロップダウンメニュー */
.main-navigation .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--riff-header-bg-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 10px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.main-navigation li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-navigation .sub-menu li {
  margin: 0;
  display: block;
}

.main-navigation .sub-menu a {
  padding: 12px 20px;
  font-size: 13px;
  text-transform: none;
  border-radius: 0;
}

.main-navigation .sub-menu a:hover {
  background-color: rgba(30, 115, 190, 0.1);
  transform: translateX(5px);
}

/* モバイルメニュートグル */
.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle:focus {
  outline: 2px solid var(--riff-header-link-hover-color);
  outline-offset: 2px;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--riff-mobile-menu-button-color);
  margin: 3px 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

/* ハンバーガーアニメーション */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ヘッダーサーチ（オプション） */
.header-search {
  margin-left: 20px;
}

.search-toggle {
  background: none;
  border: none;
  color: var(--riff-header-text-color);
  font-size: 16px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.search-toggle:hover {
  color: var(--riff-header-link-hover-color);
  background-color: rgba(0, 0, 0, 0.05);
}

/* レスポンシブデザイン */
@media (max-width: 1199px) {
  .header-inner {
    padding: 12px 0;
  }

  .main-navigation li {
    margin-left: 25px;
  }

  .site-title {
    font-size: 22px;
  }
}

@media (max-width: 991px) {
  .header-inner {
    flex-direction: row;
    text-align: left;
    padding: 10px 0;
  }

  .site-branding {
    margin-bottom: 0;
  }

  .main-navigation {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--riff-header-bg-color);
    box-shadow: 0 4px 15px var(--riff-header-shadow-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .main-navigation.active {
    display: block;
    animation: slideDown 0.3s ease;
  }

  .main-navigation ul {
    flex-direction: column;
    padding: 20px;
  }

  .main-navigation li {
    margin: 0;
    width: 100%;
    text-align: left;
  }

  .main-navigation a {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 16px;
    text-transform: none;
  }

  .main-navigation a::after {
    display: none;
  }

  .main-navigation .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding-left: 20px;
  }

  .mobile-menu-toggle {
    display: flex;
    position: relative;
    z-index: 1001;
  }
}

@media (max-width: 767px) {
  .header-inner {
    padding: 8px 0;
  }

  .site-title {
    font-size: 20px;
  }

  .site-description {
    font-size: 13px;
  }

  .main-navigation a {
    padding: 12px 0;
    font-size: 15px;
  }

  .mobile-menu-toggle {
    width: 40px;
    height: 40px;
  }

  .mobile-menu-toggle span {
    width: 22px;
    height: 2px;
  }
}

@media (max-width: 480px) {
  .site-title {
    font-size: 18px;
  }

  .site-description {
    font-size: 12px;
  }

  .main-navigation ul {
    padding: 15px;
  }

  .main-navigation a {
    padding: 10px 0;
    font-size: 14px;
  }
}

/* アニメーション */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* アクセシビリティ配慮 */
@media (prefers-reduced-motion: reduce) {
  .site-header,
  .header-inner,
  .site-logo,
  .main-navigation a,
  .mobile-menu-toggle span,
  .main-navigation .sub-menu {
    transition: none !important;
    animation: none !important;
  }

  .main-navigation a::after {
    transition: none !important;
  }
}

/* ハイコントラスト対応 */
@media (prefers-contrast: high) {
  .site-header {
    border-bottom: 2px solid var(--riff-header-text-color);
  }

  .main-navigation a,
  .site-title a {
    text-shadow: none;
  }

  .main-navigation a:hover,
  .main-navigation a:focus {
    outline: none !important;
    background-color: var(--riff-header-link-hover-color);
    color: #fff;
  }
}

/* フォーカス表示の改善 */
.site-title a:focus,
.main-navigation a:focus,
.search-toggle:focus {
  outline: none !important;
  outline-offset: 2px;
  border-radius: 3px;
}

/* ダークモード対応（プリファレンス） */
@media (prefers-color-scheme: dark) {
  :root {
    --riff-header-bg-color: #1a1a1a;
    --riff-header-bg-rgba: rgba(26, 26, 26, 0.95);
    --riff-header-text-color: #ffffff;
    --riff-site-title-color: #ffffff;
    --riff-site-description-color: #cccccc;
    --riff-mobile-menu-button-color: #ffffff;
    --riff-header-shadow-color: rgba(0, 0, 0, 0.3);
  }

  .mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .search-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .main-navigation .sub-menu a:hover {
    background-color: rgba(30, 115, 190, 0.2);
  }
}

/* ==========================================================================
   ヘッダーブランディング拡張スタイル
   ========================================================================== */

/* ヘッダーロゴコンテナ */
.header-logo-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo-link {
  display: block;
  line-height: 0;
  transition: opacity 0.3s ease;
}

.header-logo-link:hover {
  opacity: 0.8;
}

.header-logo-link:focus {
  outline: 2px solid var(--riff-header-link-hover-color);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ヘッダーロゴ画像 */
.header-logo {
  display: block;
  max-height: 60px;
  height: auto;
  width: auto;
  max-width: 100%;
  transition: transform 0.3s ease;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.header-logo:hover {
  transform: scale(1.02);
}

/* ブランドテキストコンテナ */
.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 1;
  min-width: 0;
}

/* サイトタイトルのフッター風スタイル */
.site-title {
  font-family: "Times New Roman", Times, serif !important;
  font-size: 32px;
  font-weight: normal !important;
  text-transform: uppercase !important;
  letter-spacing: 4px !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  word-break: break-word;
  hyphens: auto;
}

.site-title a {
  color: var(--riff-site-title-color);
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  display: block;
}

.site-title a:hover,
.site-title a:focus {
  color: var(--riff-header-link-hover-color);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.site-title a:focus {
  outline: 2px solid var(--riff-header-link-hover-color);
  outline-offset: 2px;
  border-radius: 4px;
}

/* サイト説明文の改良スタイル */
.site-description {
  font-size: 14px;
  color: var(--riff-site-description-color);
  margin: 8px 0 0;
  line-height: 1.4;
  font-style: italic;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  word-break: break-word;
  hyphens: auto;
}

.site-branding:hover .site-description {
  opacity: 1;
}

/* サイトブランディングの配置調整 */
.site-branding {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
  max-width: 70%;
}

/* ロゴとタイトル両方がある場合のレイアウト */
.site-branding.has-both-logo-title {
  flex-direction: row;
  align-items: center;
}

.site-branding.has-both-logo-title .brand-text {
  margin-left: 0;
  align-items: flex-start;
}

/* ロゴのみの場合 */
.site-branding:has(.header-logo-container):not(:has(.brand-text)) {
  justify-content: flex-start;
}

/* タイトルのみの場合 */
.site-branding:has(.brand-text):not(:has(.header-logo-container)) {
  justify-content: flex-start;
}

/* ヘッダー内のブランディング要素のバランス調整 */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* アニメーション効果 */
@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.header-logo {
  animation: logoFadeIn 0.6s ease-out;
}

.site-title {
  animation: titleSlideIn 0.8s ease-out 0.2s both;
}

.site-description {
  animation: titleSlideIn 0.8s ease-out 0.4s both;
}

/* レスポンシブデザイン強化 */
@media (max-width: 1199px) {
  .site-title {
    font-size: 28px;
    letter-spacing: 3px;
  }

  .header-logo {
    max-height: 50px;
  }

  .site-branding {
    gap: 12px;
    max-width: 65%;
  }

  .site-description {
    font-size: 13px;
  }
}

@media (max-width: 991px) {
  .site-title {
    font-size: 24px;
    letter-spacing: 2px;
  }

  .header-logo {
    max-height: 45px;
  }

  .site-branding {
    gap: 10px;
    max-width: 60%;
  }

  .site-description {
    font-size: 12px;
    margin-top: 6px;
  }
}

@media (max-width: 767px) {
  .site-title {
    font-size: 20px;
    letter-spacing: 1px;
    line-height: 1.3;
  }

  .header-logo {
    max-height: 40px;
  }

  .site-branding {
    gap: 8px;
    max-width: 70%;
  }

  .site-branding.has-both-logo-title {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .site-branding.has-both-logo-title .brand-text {
    margin-left: 0;
    align-items: center;
  }

  .site-description {
    font-size: 11px;
    margin-top: 5px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .site-title {
    font-size: 18px;
    letter-spacing: 0.5px;
  }

  .header-logo {
    max-height: 35px;
  }

  .site-branding {
    gap: 6px;
    max-width: 75%;
  }

  .site-description {
    font-size: 10px;
    margin-top: 4px;
  }
}

/* 超小画面での調整 */
@media (max-width: 375px) {
  .site-title {
    font-size: 16px;
    letter-spacing: 0px;
  }

  .header-logo {
    max-height: 32px;
  }

  .site-branding {
    max-width: 80%;
  }
}

/* 横向き表示時の調整 */
@media (max-height: 500px) and (orientation: landscape) {
  .header-inner {
    padding: 8px 0;
  }

  .site-title {
    font-size: 20px;
  }

  .header-logo {
    max-height: 35px;
  }

  .site-description {
    font-size: 11px;
    margin-top: 3px;
  }
}

/* 高DPIディスプレイ対応 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .header-logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* アクセシビリティ配慮 */
@media (prefers-reduced-motion: reduce) {
  .header-logo,
  .site-title,
  .site-description,
  .header-logo-link,
  .site-title a {
    transition: none !important;
    animation: none !important;
  }

  .header-logo:hover {
    transform: none !important;
  }
}

/* ハイコントラスト対応 */
@media (prefers-contrast: high) {
  .site-title a {
    text-shadow: none;
  }

  .site-title a:hover,
  .site-title a:focus {
    outline: 3px solid var(--riff-header-link-hover-color);
    background-color: var(--riff-header-link-hover-color);
    color: #fff;
  }

  .header-logo-link:focus {
    outline: 3px solid var(--riff-header-link-hover-color);
    background-color: var(--riff-header-link-hover-color);
  }
}

/* フォーカス表示の改善 */
.site-title a:focus,
.header-logo-link:focus {
  outline: none !important;
  outline-offset: 2px;
  border-radius: 4px;
}

/* タッチデバイス対応 */
@media (hover: none) and (pointer: coarse) {
  .header-logo:hover {
    transform: none;
  }

  .site-title a:hover {
    text-shadow: none;
  }

  .site-branding:hover .site-description {
    opacity: 0.8;
  }
}

/* プリント時の調整 */
@media print {
  .site-header {
    position: static;
    box-shadow: none;
    background: transparent !important;
  }

  .mobile-menu-toggle,
  .header-search {
    display: none;
  }

  .main-navigation {
    display: block !important;
  }

  .main-navigation ul {
    flex-direction: row;
  }

  .main-navigation a {
    color: #000 !important;
  }
}

/* ヒーローセクション */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

/* ヒーロースライダー */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-image-container,
.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-image,
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

/* テキスト位置の調整 */
.hero-content-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.hero-content-center-left {
  top: 50%;
  left: 20%;
  transform: translate(0, -50%);
  text-align: left;
}

.hero-content-center-right {
  top: 50%;
  right: 20%;
  left: auto;
  transform: translate(0, -50%);
  text-align: right;
}

.hero-content-top-center {
  top: 20%;
  left: 50%;
  transform: translate(-50%, 0);
  text-align: center;
}

.hero-content-top-left {
  top: 20%;
  left: 20%;
  transform: translate(0, 0);
  text-align: left;
}

.hero-content-top-right {
  top: 20%;
  right: 20%;
  left: auto;
  transform: translate(0, 0);
  text-align: right;
}

.hero-content-bottom-center {
  bottom: 20%;
  top: auto;
  left: 50%;
  transform: translate(-50%, 0);
  text-align: center;
}

.hero-content-bottom-left {
  bottom: 20%;
  top: auto;
  left: 20%;
  transform: translate(0, 0);
  text-align: left;
}

.hero-content-bottom-right {
  bottom: 20%;
  top: auto;
  right: 20%;
  left: auto;
  transform: translate(0, 0);
  text-align: right;
}

.hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 30px;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #1e73be;
  color: #fff;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-button:hover {
  background-color: #3a97e4;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* ヒーロースライダーコントロール */
.hero-slider-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 3;
}

.hero-prev,
.hero-next {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
}

.hero-prev:hover,
.hero-next:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* ヒーローセンターコンテンツ */
.hero-center-content {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 4;
  text-align: center;
  color: #fff;
  pointer-events: none;
}

.hero-center-content.hero-center-center {
  top: 50%;
  transform: translateY(-50%);
}

.hero-center-content.hero-center-center-top {
  top: 25%;
  transform: translateY(-50%);
}

.hero-center-content.hero-center-center-bottom {
  bottom: 25%;
  transform: translateY(50%);
}

.hero-center-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-center-catchcopy {
  font-size: 56px;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  animation: heroFadeInUp 1s ease-out;
}

.hero-center-description {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 30px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  animation: heroFadeInUp 1s ease-out 0.3s both;
}

.hero-center-button-wrapper {
  animation: heroFadeInUp 1s ease-out 0.6s both;
}

.hero-center-button {
  display: inline-block;
  padding: 18px 36px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-center-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* ボタンスタイルバリエーション */
.hero-button-primary {
  background-color: #1e73be;
  color: #fff;
  border: 2px solid #1e73be;
}

.hero-button-primary:hover {
  background-color: #3a97e4;
  border-color: #3a97e4;
  color: #fff;
}

.hero-button-secondary {
  background-color: #fff;
  color: #1e73be;
  border: 2px solid #fff;
}

.hero-button-secondary:hover {
  background-color: #f8f9fa;
  border-color: #f8f9fa;
  color: #1e73be;
}

.hero-button-outline {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.hero-button-outline:hover {
  background-color: #fff;
  color: #1e73be;
}

/* アニメーション */
@keyframes heroFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ヒーローグリッド */
.hero-backgrounds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* より長いトランジション */
  transform: scale(1);
}

.hero-background.active {
  opacity: 1;
}

.hero-background .hero-image-container,
.hero-background .hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-background .hero-image,
.hero-background .hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.hero-background.active .hero-image,
.hero-background.active .hero-video {
  transform: scale(1.08);
}

.hero-background .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.hero-grid {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  z-index: 3;
  gap: 0;
}

/* グリッドレイアウトのバリエーション */
.hero-grid-1 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.hero-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr;
}

.hero-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
}

.hero-grid-4 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.hero-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.5s ease;
  opacity: 1;
  transform: translateY(0);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
}

/* CSS変数を使った背景画像の切り替え */
.hero-item {
  background-image: var(--normal-bg-image);
}

.hero-item:hover {
  background-image: var(--hover-bg-image, var(--normal-bg-image));
}

.hero-item.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.hero-item:hover {
  border-color: transparent; /* ボーダーなし */
  box-shadow: none; /* シャドウなし */
}

.hero-item.hover-effect {
  transform: scale(1.02);
  z-index: 10;
}

.hero-item.active {
  border-color: rgba(255, 255, 255, 0.6);
}

/* グリッドアイテムのオーバーレイ（デフォルトなし） */
.hero-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent; /* デフォルトはオーバーレイなし */
  transition: background-color 0.5s ease;
  z-index: 1;
}

/* ホバー時のオーバーレイ調整 */
.hero-item:hover .hero-item-overlay {
  background-color: transparent;
}

/* ホバーモード時のオーバーレイ */
.hero-section.hover-mode .hero-item .hero-item-overlay {
  background-color: transparent;
}

.hero-section.hover-mode .hero-item.highlighted .hero-item-overlay {
  background-color: transparent;
}

/* 背景オーバーレイ（大幅に軽減または削除） */
.hero-background .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent; /* デフォルトはオーバーレイなし */
  z-index: 2;
  transition: background-color 0.3s ease;
}

.hero-item .hero-content {
  position: relative;
  width: 100%;
  padding: 40px 30px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.7) 40%,
    transparent 100%
  );
  color: #fff;
  z-index: 4;
  transform: translateY(0);
  opacity: 0.8;
  transition: all 0.5s ease;
}

.hero-item:hover .hero-content,
.hero-item.hover-active .hero-content {
  transform: translateY(0);
  opacity: 1;
}

.hero-item .hero-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  line-height: 1.3;
}

.hero-item .hero-subtitle {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  opacity: 0.9;
}

.hero-item .hero-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: rgba(30, 115, 190, 0.9);
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-item .hero-button:hover {
  background-color: rgba(58, 151, 228, 0.95);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* フルスクリーン機能 */
.hero-section.fullscreen-mode {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  margin-top: 0;
}

.hero-section.fullscreen-mode .hero-item {
  opacity: 0.2;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.hero-section.fullscreen-mode .hero-item.active {
  opacity: 1;
  transform: scale(1);
}

.hero-section.fullscreen-mode .hero-background {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-section.fullscreen-mode .hero-background.active {
  opacity: 1;
}

.body.hero-fullscreen {
  overflow: hidden;
}

/* フルスクリーンヒント */
.fullscreen-hint {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10000;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.fullscreen-hint.show {
  opacity: 1;
}

/* グリッドビデオコンテナ */
.grid-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.grid-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-item:hover .grid-video {
  transform: scale(1);
}

/* ホバーアクティブ状態（タッチデバイス用） */
.hero-item.hover-active {
  opacity: 1;
  transform: scale(1.02);
  z-index: 10;
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-item.hover-active .hero-content {
  transform: translateY(0);
  opacity: 1;
}

/* アニメーション効果の追加 */
@keyframes heroItemFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-item.fade-in {
  animation: heroItemFadeIn 0.8s ease forwards;
}

/* パーティクルエフェクト（オプション） */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.3;
}

/* CSSカスタムプロパティ */
:root {
  --hero-animation-speed: 500ms;
  --hero-border-radius: 8px;
  --hero-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}


/* ==========================================================================
   メインセクション（リフォーム）のスタイル
   ========================================================================== */

/* メインコンテナ */
.riff125-blok {
  width: 100%;
  background-color: #fff;
  padding: 0;
  margin: 0;
  position: relative;
}

.riff125_container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* タイトルセクション */
.riff125-top_content {
  margin-top: 4em;
  margin-bottom: 1em;
  text-align: center;
  width: 100%;
}

.riff125-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  line-height: 1.3;
  margin: 0 auto;
  text-align: center;
  letter-spacing: 0.05em;
  width: 100%;
}

/* 説明文セクション */
.riff125-top_desc {
  margin-bottom: 4em;
  text-align: center;
  width: 100%;
}

.riff125-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: #666;
  margin: 0 auto;
  max-width: 800px;
  text-align: center;
  width: 100%;
}

/* コンセプトセクション */
.concept-section {
  position: relative;
  min-height: 500px;
  width: 100vw;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin: 4em 0;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.concept-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.concept-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(26, 53, 83, 0.8) 0%,
    rgba(26, 53, 83, 0.7) 50%,
    rgba(26, 53, 83, 0) 100%
  );
  z-index: 2;
}

.concept-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50%;
  height: 100%;
  min-height: 500px;
  padding: 80px 0;
  position: relative;
  z-index: 3;
  text-align: center;
}

.concept-title {
  font-size: 42px;
  font-weight: normal;
  letter-spacing: 4px;
  margin-bottom: 40px;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
}

.concept-text-wrapper {
  max-width: 500px;
  text-align: center;
}

.concept-text {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #fff;
  letter-spacing: 0.5px;
  font-weight: 300;
  padding: 0 2em;
  text-align: center;
}

.concept-btn-container {
  margin-top: 20px;
  text-align: center;
}

.concept-btn {
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid #fff;
  color: #fff;
  font-size: 14px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  background-color: transparent;
  text-decoration: none;
  font-weight: 400;
}

.concept-btn:hover {
  background-color: #fff;
  color: #1a3553;
}

/* スライダーコンテンツセクション */
.slider-content {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  margin: 4em 0;
  min-height: 500px;
}

.slider-image {
  width: 60%;
  height: 500px;
  overflow: hidden;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.main-image:hover {
  transform: scale(1);
}

.exterior-info {
  width: 40%;
  padding: 0 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-title {
  font-size: 36px;
  font-weight: normal;
  margin-bottom: 30px;
  letter-spacing: 2px;
  color: #333;
  line-height: 1.2;
}

.exterior-text {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 40px;
  color: #666;
}

.exterior-btn-wrapper {
  margin-top: 20px;
}

.exterior-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #1a1a1a;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  border-radius: 0;
}

.exterior-btn:hover {
  background-color: #333;
  color: #fff;
}

/* レスポンシブデザイン */
@media (max-width: 1199px) {
  .riff125_container {
    padding: 0 15px;
  }

  .riff125-title {
    font-size: 2.2rem;
  }

  .concept-title {
    font-size: 38px;
  }

  .section-title {
    font-size: 32px;
  }
}

@media (max-width: 991px) {
  .riff125-top_content {
    margin-top: 3em;
  }

  .riff125-title {
    font-size: 2rem;
  }

  .concept-section {
    min-height: 400px;
  }

  .concept-overlay {
    background: rgba(26, 53, 83, 0.75);
  }

  .concept-content {
    width: 100%;
    min-height: 400px;
    padding: 60px 0;
  }

  .concept-title {
    font-size: 32px;
    margin-bottom: 30px;
  }

  .concept-text-wrapper {
    max-width: 100%;
  }

  .concept-text {
    font-size: 14px;
    line-height: 1.6;
    padding: 0 1em;
  }

  .concept-btn {
    padding: 10px 25px;
    font-size: 13px;
  }

  .slider-content {
    flex-direction: column;
    min-height: auto;
  }

  .slider-image {
    width: 100%;
    height: 300px;
    margin-bottom: 2em;
  }

  .exterior-info {
    width: 100%;
    padding: 0 20px;
    text-align: center;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .exterior-text {
    font-size: 14px;
    margin-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .riff125-top_content {
    margin-top: 2em;
    margin-bottom: 0.5em;
  }

  .riff125-top_desc {
    margin-bottom: 3em;
  }

  .riff125-title {
    font-size: 1.8rem;
    line-height: 1.4;
  }

  .riff125-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    padding: 0 10px;
  }

  .concept-section {
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .concept-content {
    min-height: 350px;
    padding: 40px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .concept-title {
    font-size: 28px;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-align: center;
  }

  .concept-text-wrapper {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .concept-text {
    font-size: 13px;
    padding: 0 20px;
    margin-bottom: 25px;
    text-align: center;
  }

  .concept-btn-container {
    text-align: center;
    width: 100%;
  }

  .concept-btn {
    padding: 8px 20px;
    font-size: 12px;
  }

  .slider-content {
    margin: 3em 0;
  }

  .slider-image {
    height: 250px;
    margin-bottom: 1.5em;
  }

  .exterior-info {
    padding: 0 15px;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .exterior-text {
    font-size: 13px;
    margin-bottom: 25px;
  }

  .exterior-btn {
    padding: 10px 25px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .riff125_container {
    padding: 0 10px;
  }

  .riff125-title {
    font-size: 1.6rem;
  }

  .riff125-desc {
    font-size: 0.85rem;
  }

  .concept-section {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .concept-content {
    min-height: 300px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .concept-title {
    font-size: 24px;
    letter-spacing: 1px;
    text-align: center;
  }

  .concept-text-wrapper {
    width: 100%;
    text-align: center;
  }

  .concept-text {
    font-size: 12px;
    padding: 0 15px;
    text-align: center;
  }

  .concept-btn-container {
    text-align: center;
    width: 100%;
  }

  .slider-image {
    height: 200px;
  }

  .section-title {
    font-size: 20px;
  }

  .exterior-text {
    font-size: 12px;
  }

  .exterior-btn {
    padding: 8px 20px;
    font-size: 11px;
  }
}

/* ==========================================================================
   フロントページセクションのスタイル
   ========================================================================== */

/* 共通セクションスタイル */
.featured-section,
.latest-posts-section,
.plans-section,
.news-section,
.front-top-widget-area,
.front-middle-widget-area,
.front-bottom-widget-area {
  padding: 60px 0;
  background-color: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header .section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  letter-spacing: 0.05em;
}

.section-description {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* 特集セクション */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.featured-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.featured-thumbnail {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.featured-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-item:hover .featured-thumbnail img {
  transform: scale(1.05);
}

.featured-content {
  padding: 30px;
}

.featured-category {
  margin-bottom: 10px;
}

.featured-category a {
  color: #1e73be;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.featured-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.4;
}

.featured-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.featured-title a:hover {
  color: #1e73be;
}

.featured-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* 最新記事セクション */
.latest-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.latest-post {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.latest-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.latest-post .post-thumbnail {
  height: 200px;
  overflow: hidden;
  margin-bottom: 0;
}

.latest-post .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.latest-post:hover .post-thumbnail img {
  transform: scale(1.05);
}

.latest-post .post-content {
  padding: 25px;
}

.latest-post .post-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
}

.latest-post .post-date {
  color: #999;
  font-size: 0.85rem;
}

.latest-post .post-category a {
  color: #1e73be;
  font-size: 0.85rem;
  text-decoration: none;
}

.latest-post .post-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 12px;
  line-height: 1.4;
}

.latest-post .post-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.latest-post .post-title a:hover {
  color: #1e73be;
}

.latest-post .post-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.read-more-link {
  color: #1e73be;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
}

.read-more-link:hover {
  color: #3a97e4;
}

.blog-link-wrapper {
  text-align: center;
  margin-top: 40px;
}

.blog-link {
  display: inline-block;
  padding: 15px 30px;
  background-color: #1e73be;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.blog-link:hover {
  background-color: #3a97e4;
  color: #fff;
}

/* プランセクション */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.plan-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.plan-thumbnail {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.plan-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plan-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(30, 115, 190, 0.9);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.plan-content {
  padding: 30px;
}

.plan-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.plan-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.plan-price {
  font-size: 1.8rem;
  font-weight: bold;
  color: #1e73be;
  margin-bottom: 20px;
}

.plan-period {
  font-size: 0.9rem;
  color: #666;
  font-weight: normal;
}

.plan-features {
  list-style: none;
  margin-bottom: 25px;
}

.plan-features li {
  padding: 8px 0;
  border-bottom: 1px dotted #eee;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features i {
  color: #4caf50;
  font-size: 0.9rem;
}

.plan-button {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #1e73be;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.plan-button:hover {
  background-color: #3a97e4;
  color: #fff;
}

/* お知らせセクション */
.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  flex-shrink: 0;
  text-align: center;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  min-width: 80px;
}

.news-date .day {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #1e73be;
  line-height: 1;
}

.news-date .month-year {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-top: 5px;
}

.news-content {
  flex: 1;
}

.news-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.news-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-title a:hover {
  color: #1e73be;
}

.news-excerpt {
  color: #666;
  line-height: 1.6;
  font-size: 0.9rem;
}
/* ==========================================================================
   ヒーローグリッド - ホバーエフェクト拡張（修正版）
   ========================================================================== */
/* ==========================================================================
   ヒーロー背景ボタン非表示修正（ヒーロー専用・他に影響なし）
   ========================================================================== */

/* ヒーロー背景のボタンを完全に非表示 */
.hero-section .hero-background .hero-background-button {
  display: none !important;
}

/* ボタンがないことを前提としたコンテンツレイアウト調整 */
.hero-section .hero-background .hero-background-subtitle {
  margin-bottom: 0 !important; /* ボタンがないのでマージンを削除 */
}

/* 背景コンテンツの中央配置を改善（ボタンなし版） */
.hero-section .hero-background-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px; /* タイトルとサブタイトル間のスペース */
}

/* タイトルとサブタイトルのアニメーション調整（ボタンなし版） */
.hero-section .hero-background-title {
  animation: titleSlideUp 1s ease-out 0.3s both;
  margin-bottom: 0; /* 個別のマージンをリセット */
}

.hero-section .hero-background-subtitle {
  animation: subtitleSlideUp 1s ease-out 0.5s both;
  margin-bottom: 0; /* 個別のマージンをリセット */
}

/* レスポンシブ対応 - タブレット */
@media (max-width: 991px) {
  .hero-section .hero-background-inner {
    gap: 15px;
  }
}

/* レスポンシブ対応 - モバイル */
@media (max-width: 767px) {
  .hero-section .hero-background-inner {
    gap: 12px;
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .hero-section .hero-background-inner {
    gap: 10px;
    padding: 0 12px;
  }
}
/* 背景コンテナの初期状態 */
.hero-backgrounds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* ホバーモード時の背景コンテナ表示 */
.hero-backgrounds.visible {
  opacity: 1;
  visibility: visible;
}

/* 背景アイテムの基本スタイル */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
   transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: scale(1.02);
}

/* アクティブ背景のスムーズな表示 */
.hero-background.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: all 0.8s ease-in-out; /* じんわりとした切り替え */
}

/* 背景画像・ビデオのスムーズなトランジション */
.hero-background .hero-image,
.hero-background .hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.8s ease-in-out; /* 画像切り替えもスムーズに */
  transform: scale(1);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: opacity;
}

/* 背景画像・ビデオコンテナ */
.hero-background .hero-image-container,
.hero-background .hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* 背景画像・ビデオ（ぼやけ修正・鮮明な表示） */
.hero-background .hero-image,
.hero-background .hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease-out;
  transform: scale(1);
  /* 画像の鮮明さを保つ */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

/* アクティブ時の背景画像・ビデオのズーム（軽微に調整） */
.hero-background.active .hero-image,
.hero-background.active .hero-video {
  transform: scale(1);
}

/* 背景オーバーレイ（大幅に軽減または削除） */
.hero-background .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent; /* オーバーレイを完全に透明に */
  z-index: 2;
}

/* 背景コンテンツエリア */
.hero-background-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  transform: translateY(30px);
   transition: all 0.5s ease;
   transition-delay: 0.1s;
  /* テキスト背景を軽く追加（可読性のため） */
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.1) 0%,
    transparent 70%
  );
}

/* アクティブ時の背景コンテンツ表示 */
.hero-background.active .hero-background-content {
  opacity: 1;
  transform: translateY(0);
}

/* 背景コンテンツの内側 */
.hero-background-inner {
  text-align: center;
  color: #fff;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
  /* テキストの読みやすさのための軽いドロップシャドウ */
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* 背景タイトル */
.hero-background-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.02em;
  animation: titleSlideUp 1s ease-out 0.3s both;
}

/* 背景サブタイトル */
.hero-background-subtitle {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.95;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
  font-weight: 300;
  animation: subtitleSlideUp 1s ease-out 0.5s both;
}

/* 背景ボタン */
.hero-background-button {
  display: inline-block;
  padding: 18px 40px;
  background-color: rgba(255, 255, 255, 0.9); /* 白ベースに変更 */
  color: #333; /* テキストカラーを濃色に */
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.4s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: buttonSlideUp 1s ease-out 0.7s both;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ボタンホバーエフェクト */
.hero-background-button:hover {
  background-color: rgba(255, 255, 255, 1);
  color: #333;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
}

/* ボタンの光るエフェクト */
.hero-background-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.hero-background-button:hover::before {
  left: 100%;
}

/* グリッドアイテムのホバーモード時の調整 */
.hero-section.hover-mode .hero-item {
   transition: all 0.3s ease;
}

/* ホバーモード時の非アクティブアイテム（軽減） */
.hero-section.hover-mode .hero-item.dimmed {
  opacity: 0.5; /* 0.3から0.5に軽減 */
  filter: none; /* grayscaleを削除 */
  transform: scale(0.99); /* 0.98から0.99に軽減 */
}

.hero-section.hover-mode .hero-item.highlighted {
  border-color: rgba(
    255,
    255,
    255,
    0.3
  ) !important; /* ホバーモード時はボーダー表示 */
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1) !important; /* 軽いグロー効果 */
}

/* ホバーモード時の非アクティブアイテム */
.hero-section.hover-mode .hero-item.dimmed {
  border-color: rgba(255, 255, 255, 0.1); /* 薄いボーダー */
  opacity: 0.5;
  filter: none;
  transform: scale(0.99);
}

/* グリッドアイテムのコンテンツを非表示（ホバーモード時） */
.hero-section.hover-mode .hero-item .hero-content {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

/* アニメーション定義 */
@keyframes titleSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes subtitleSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes buttonSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* レスポンシブ対応 */
@media (max-width: 1199px) {
  .hero-background-title {
    font-size: 3rem;
  }

  .hero-background-subtitle {
    font-size: 1.2rem;
  }

  .hero-background-button {
    padding: 16px 35px;
    font-size: 15px;
  }

  .hero-background-inner {
    padding: 0 30px;
  }

  /* ズーム効果をさらに軽減 */
  .hero-background.active .hero-image,
  .hero-background.active .hero-video {
    transform: scale(1.03);
  }
}

@media (max-width: 991px) {
  .hero-background-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }

  .hero-background-subtitle {
    font-size: 1.1rem;
    margin-bottom: 25px;
  }

  .hero-background-button {
    padding: 14px 30px;
    font-size: 14px;
  }

  .hero-background-inner {
    padding: 0 25px;
  }

  /* タブレットではズーム効果を最小限に */
  .hero-background.active .hero-image,
  .hero-background.active .hero-video {
    transform: scale(1.02);
  }
}

@media (max-width: 767px) {
  .hero-background-title {
    font-size: 2rem;
    margin-bottom: 12px;
  }

  .hero-background-subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .hero-background-button {
    padding: 12px 25px;
    font-size: 13px;
  }

  .hero-background-inner {
    padding: 0 20px;
  }

  /* モバイルではホバーエフェクトを簡略化 */
  .hero-section.hover-mode .hero-item.dimmed {
    opacity: 0.7; /* さらに明るく */
    filter: none;
    transform: none;
  }

  /* モバイルではズーム効果なし */
  .hero-background.active .hero-image,
  .hero-background.active .hero-video {
    transform: scale(1);
  }
}

@media (max-width: 480px) {
  .hero-background-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }

  .hero-background-subtitle {
    font-size: 0.9rem;
    margin-bottom: 18px;
  }

  .hero-background-button {
    padding: 10px 20px;
    font-size: 12px;
  }

  .hero-background-inner {
    padding: 0 15px;
  }
}

/* アクセシビリティ対応 */
@media (prefers-reduced-motion: reduce) {
  .hero-background,
  .hero-background-content,
  .hero-background .hero-image,
  .hero-background .hero-video,
  .hero-background-button,
  .hero-section.hover-mode .hero-item {
    transition: none !important;
    animation: none !important;
  }

  .hero-background.active .hero-image,
  .hero-background.active .hero-video {
    transform: none !important;
  }
}

/* 高解像度ディスプレイでの鮮明な表示 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-background .hero-image,
  .hero-background .hero-video {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* 高性能デバイス向けの追加エフェクト（控えめに調整） */
@media (min-width: 1200px) and (prefers-reduced-motion: no-preference) {
  .hero-background.active .hero-image,
  .hero-background.active .hero-video {
    transform: scale(1.06); /* 1.1から1.06に軽減 */
    transition: transform 2s ease-out;
  }

  .hero-background-content {
    backdrop-filter: blur(1px); /* 2pxから1pxに軽減 */
    -webkit-backdrop-filter: blur(1px);
  }
}

/* レスポンシブ対応 - フロントページセクション */
@media (max-width: 991px) {
  .featured-grid,
  .latest-posts-grid,
  .plan-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .section-header .section-title {
    font-size: 2rem;
  }

  .featured-content,
  .plan-content {
    padding: 25px;
  }

  .latest-post .post-content {
    padding: 20px;
  }
}

@media (max-width: 767px) {
  .featured-section,
  .latest-posts-section,
  .plans-section,
  .news-section {
    padding: 40px 0;
  }

  .section-header {
    margin-bottom: 35px;
  }

  .section-header .section-title {
    font-size: 1.8rem;
  }

  .featured-grid,
  .latest-posts-grid,
  .plan-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .featured-thumbnail,
  .latest-post .post-thumbnail,
  .plan-thumbnail {
    height: 200px;
  }

  .featured-content,
  .plan-content {
    padding: 20px;
  }

  .latest-post .post-content {
    padding: 18px;
  }

  .news-item {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
  }

  .news-date {
    min-width: 60px;
  }

  .news-content {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .featured-section,
  .latest-posts-section,
  .plans-section,
  .news-section {
    padding: 30px 0;
  }

  .section-header .section-title {
    font-size: 1.6rem;
  }

  .section-description {
    font-size: 0.9rem;
  }

  .featured-content,
  .plan-content {
    padding: 15px;
  }

  .latest-post .post-content {
    padding: 15px;
  }

  .featured-thumbnail,
  .latest-post .post-thumbnail,
  .plan-thumbnail {
    height: 180px;
  }

  .blog-link,
  .plan-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* メインコンテンツエリア */
.site-content {
  padding: 60px 0;
}
.content-area {
  float: left;
  width: 70%;
  padding-right: 30px;
  box-sizing: border-box;
}
.sidebar {
  float: right;
  width: 30%;
}

/* 投稿スタイル */
.post {
  margin-bottom: 50px;
}
.post-thumbnail {
  margin-bottom: 20px;
}
.post-thumbnail img {
  width: 100%;
  height: auto;
}
.post-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
}
.post-meta {
  font-size: 14px;
  color: #777;
  margin-bottom: 15px;
}
.post-meta span {
  margin-right: 15px;
}
.post-content {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.post-content p,
.post-content ul,
.post-content ol,
.post-content blockquote {
  margin-bottom: 20px;
}
.post-content h2 {
  font-size: 24px;
  font-weight: bold;
  margin: 30px 0 20px;
}
.post-content h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 25px 0 15px;
}
.post-content a {
  text-decoration: underline;
}
.post-content img {
  max-width: 100%;
  height: auto;
}
.read-more {
  display: inline-block;
  padding: 10px 20px;
  background-color: #1e73be;
  color: #fff;
  border-radius: 3px;
  font-size: 14px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.read-more:hover {
  background-color: #3a97e4;
  color: #fff;
}

/* ページネーション */
.pagination {
  margin-top: 50px;
  text-align: center;
}
.pagination .page-numbers {
  display: inline-block;
  padding: 8px 15px;
  margin: 0 5px;
  background-color: #f5f5f5;
  border-radius: 3px;
  color: #333;
}
.pagination .current {
  background-color: #1e73be;
  color: #fff;
}
.pagination a.page-numbers:hover {
  background-color: #e5e5e5;
}

/* サイドバースタイル */
.widget {
  margin-bottom: 40px;
}
.widget-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e5e5;
}
.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.widget li {
  padding: 10px 0;
  border-bottom: 1px dotted #e5e5e5;
}
.widget li:last-child {
  border-bottom: none;
}

/* ==========================================================================
   シンプルフッタースタイル
   ========================================================================== */

/* フッター全体 */
.site-footer {
  position: relative;
  margin-top: 0;
  border-top: none;
}

.footer-background {
  background-color: #f5f5f5;
  padding: 80px 0 60px;
  position: relative;
}

.footer-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* ブランド名・ロゴ */
.footer-brand {
  margin-bottom: 40px;
}

.footer-brand-link {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-brand-link:hover {
  opacity: 0.8;
}

.footer-brand-logo {
  max-width: 200px;
  max-height: 80px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

.footer-brand-title {
  font-size: 48px;
  font-weight: normal;
  color: #333;
  margin: 0;
  letter-spacing: 8px;
  text-transform: uppercase;
  font-family: "Times New Roman", Times, serif;
  line-height: 1.2;
}

/* ロゴのみの場合の調整 */
.footer-brand-link .footer-brand-logo:only-child {
  margin-bottom: 0;
}

/* ブランド名のみの場合の調整 */
.footer-brand-link .footer-brand-title:only-child {
  margin: 0;
}

/* ロゴとブランド名両方がある場合 */
.footer-brand-link .footer-brand-logo + .footer-brand-title {
  margin-top: 0;
}

/* 住所情報 */
.footer-address {
  margin-bottom: 20px;
}

.address-line {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

.postal-code {
  margin-right: 8px;
}

.address {
  margin-left: 0;
}

/* 連絡先情報 */
.footer-contact {
  margin-bottom: 40px;
}

.contact-line {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

.contact-line span {
  margin-right: 15px;
}

.contact-line span:last-child {
  margin-right: 0;
}

/* ソーシャルメディア */
.footer-social {
  margin-bottom: 40px;
}

.social-links {
  display: inline-flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
  justify-content: center;
}

.social-links li {
  margin: 0;
}

.social-links a {
  display: inline-block;
  color: #333;
  font-size: 18px;
  transition: all 0.3s ease;
  line-height: 1;
  text-decoration: none;
}

.social-links a:hover {
  color: #666;
  transform: translateY(-2px);
}

.social-links i {
  font-size: 18px;
}

/* コピーライト */
.footer-copyright {
  font-size: 12px;
  color: #999;
  margin: 0;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

.footer-copyright a {
  color: #999;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-copyright a:hover {
  color: #666;
}

/* ページトップボタン */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #333;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #666;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top i {
  font-size: 16px;
}

.back-to-top span {
  display: none;
  margin-left: 8px;
  font-size: 12px;
  font-weight: normal;
}

/* テキスト付きページトップボタン */
.back-to-top.with-text {
  width: auto;
  padding: 12px 20px;
  border-radius: 25px;
}

.back-to-top.with-text span {
  display: inline;
}

/* カスタマイザー用CSS変数 */
:root {
  --footer-bg-color: #f5f5f5;
  --footer-text-color: #666666;
  --footer-brand-color: #333333;
  --footer-brand-size: 48px;
  --footer-logo-width: 200px;
}

.footer-background {
  background-color: var(--footer-bg-color, #f5f5f5);
}

.address-line,
.contact-line {
  color: var(--footer-text-color, #666666);
}

.footer-copyright {
  color: var(--footer-text-color, #666666);
}

.footer-copyright a {
  color: var(--footer-text-color, #666666);
}

.footer-brand-title {
  font-size: var(--footer-brand-size, 48px);
  color: var(--footer-brand-color, #333333);
}

.footer-brand-logo {
  max-width: var(--footer-logo-width, 200px);
}

/* レスポンシブデザイン */
@media (max-width: 1199px) {
  .footer-background {
    padding: 70px 0 50px;
  }

  .footer-brand-title {
    font-size: 42px;
    letter-spacing: 6px;
  }

  .footer-brand-logo {
    max-width: 180px;
    max-height: 70px;
  }

  .footer-brand {
    margin-bottom: 35px;
  }

  .footer-contact {
    margin-bottom: 35px;
  }

  .footer-social {
    margin-bottom: 35px;
  }
}

@media (max-width: 991px) {
  .footer-background {
    padding: 60px 0 40px;
  }

  .footer-brand-title {
    font-size: 36px;
    letter-spacing: 4px;
  }

  .footer-brand-logo {
    max-width: 160px;
    max-height: 60px;
    margin-bottom: 15px;
  }

  .footer-brand {
    margin-bottom: 30px;
  }

  .footer-address {
    margin-bottom: 15px;
  }

  .footer-contact {
    margin-bottom: 30px;
  }

  .footer-social {
    margin-bottom: 30px;
  }

  .contact-line span {
    margin-right: 10px;
  }

  .social-links {
    gap: 18px;
  }
}

@media (max-width: 767px) {
  .footer-background {
    padding: 50px 0 35px;
  }

  .footer-content {
    padding: 0 20px;
  }

  .footer-brand-title {
    font-size: 32px;
    letter-spacing: 3px;
  }

  .footer-brand-logo {
    max-width: 140px;
    max-height: 50px;
    margin-bottom: 15px;
  }

  .footer-brand {
    margin-bottom: 25px;
  }

  .footer-address,
  .footer-contact {
    margin-bottom: 20px;
  }

  .footer-social {
    margin-bottom: 25px;
  }

  .address-line,
  .contact-line {
    font-size: 13px;
  }

  .contact-line {
    line-height: 1.8;
  }

  .contact-line span {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 2px;
  }

  .social-links {
    gap: 15px;
  }

  .social-links a {
    font-size: 16px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .back-to-top i {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .footer-background {
    padding: 40px 0 30px;
  }

  .footer-content {
    padding: 0 15px;
  }

  .footer-brand-title {
    font-size: 28px;
    letter-spacing: 2px;
  }

  .footer-brand-logo {
    max-width: 120px;
    max-height: 45px;
    margin-bottom: 12px;
  }

  .footer-brand {
    margin-bottom: 20px;
  }

  .footer-address,
  .footer-contact {
    margin-bottom: 15px;
  }

  .footer-social {
    margin-bottom: 20px;
  }

  .address-line,
  .contact-line {
    font-size: 12px;
    line-height: 1.7;
  }

  .contact-line span {
    margin-right: 6px;
  }

  .social-links {
    gap: 12px;
  }

  .social-links a {
    font-size: 15px;
  }

  .footer-copyright {
    font-size: 11px;
    line-height: 1.6;
  }

  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }

  .back-to-top i {
    font-size: 13px;
  }
}

/* 特別な画面サイズでの調整 */
@media (max-width: 375px) {
  .footer-brand-title {
    font-size: 24px;
    letter-spacing: 1px;
  }

  .contact-line {
    word-break: break-all;
  }

  .contact-line span {
    display: block;
    margin-right: 0;
    margin-bottom: 3px;
  }
}

/* 横向き表示時の調整 */
@media (max-height: 500px) and (orientation: landscape) {
  .footer-background {
    padding: 30px 0 25px;
  }

  .footer-brand {
    margin-bottom: 15px;
  }

  .footer-address,
  .footer-contact,
  .footer-social {
    margin-bottom: 12px;
  }

  .footer-brand-title {
    font-size: 24px;
  }
}

/* アクセシビリティ配慮 */
@media (prefers-reduced-motion: reduce) {
  .social-links a,
  .back-to-top,
  .footer-copyright a {
    transition: none !important;
  }
}

/* ダークモード対応（オプション） */
@media (prefers-color-scheme: dark) {
  .footer-background {
    background-color: #2a2a2a;
  }

  .footer-brand-title {
    color: #fff;
  }

  .address-line,
  .contact-line {
    color: #ccc;
  }

  .social-links a {
    color: #fff;
  }

  .social-links a:hover {
    color: #ccc;
  }

  .footer-copyright,
  .footer-copyright a {
    color: #999;
  }

  .back-to-top {
    background-color: #fff;
    color: #333;
  }

  .back-to-top:hover {
    background-color: #f0f0f0;
  }
}

/* 印刷時の調整 */
@media print {
  .back-to-top {
    display: none !important;
  }

  .footer-background {
    background-color: transparent !important;
    padding: 20px 0;
  }

  .footer-brand-title,
  .address-line,
  .contact-line {
    color: #000 !important;
  }

  .social-links {
    display: none;
  }
}

/* ==========================================================================
   固定ページヘッダースタイル（上いっぱい表示版）
   ========================================================================== */

/* ページヘッダーメイン */
.page-header {
  position: relative;
  height: 60vh;
  min-height: 400px;
  max-height: 600px;
  margin-top: -70px; /* 固定ヘッダーの高さ分を上に移動 */
  padding-top: 70px; /* 固定ヘッダー分のパディングを追加 */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  z-index: 1; /* 固定ヘッダーより下に配置 */
}

/* 背景画像コンテナ */
.page-header-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-header-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* 背景画像のパララックス効果 */
.page-header-image-container::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  transform: translateZ(0);
  will-change: transform;
  transition: transform 0.3s ease-out;
}

/* スクロール時のパララックス効果を無効化（モバイル対応） */
@media (max-width: 767px) {
  .page-header-image-container::before {
    background-attachment: scroll;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

.page-header-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 8s ease-out;
  transform: scale(1);
}

/* ホバー時のズーム効果 */
.page-header:hover .page-header-image {
  transform: scale(1.05);
}

/* オーバーレイ */
.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 53, 83, 0.7) 0%,
    rgba(26, 53, 83, 0.5) 50%,
    rgba(26, 53, 83, 0.3) 100%
  );
  z-index: 2;
  transition: opacity 0.3s ease;
}

/* コンテンツエリア */
.page-header-content {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding-top: 70px; /* 固定ヘッダー分のスペースを確保 */
}

.page-header-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* パンくずリスト */
.page-breadcrumbs {
  margin-bottom: 20px;
  opacity: 0.9;
}

.breadcrumbs {
  display: inline-block;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  margin: 0;
}

.breadcrumb-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb-link:hover,
.breadcrumb-link:focus {
  outline: none !important;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.breadcrumb-link.home-link i {
  font-size: 12px;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  margin: 0 4px;
  display: flex;
  align-items: center;
}

.breadcrumb-current {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 8px;
}

/* ページタイトル */
.page-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* ページサブタイトル */
.page-subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  font-weight: 300;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

/* スクリーンリーダー用のテキスト */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* アニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* パーティクルエフェクト（オプション） */
.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
  z-index: 2;
  pointer-events: none;
}

/* レスポンシブデザイン */
@media (max-width: 1199px) {
  .page-header {
    height: 55vh;
    min-height: 350px;
    max-height: 550px;
    margin-top: -70px;
    padding-top: 70px;
  }

  .page-header-content {
    padding-top: 70px;
  }

  .page-title {
    font-size: 2.5rem;
  }

  .page-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 991px) {
  .page-header {
    height: 50vh;
    min-height: 320px;
    max-height: 500px;
    margin-top: -70px;
    padding-top: 70px;
  }

  .page-header-content {
    padding-top: 70px;
  }

  .page-title {
    font-size: 2.2rem;
    margin-bottom: 12px;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .page-breadcrumbs {
    margin-bottom: 15px;
  }

  .breadcrumb-link,
  .breadcrumb-current {
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  .page-header {
    height: 45vh;
    min-height: 280px;
    max-height: 400px;
    margin-top: -60px; /* モバイル用ヘッダー高さに調整 */
    padding-top: 60px;
  }

  .page-header-content {
    padding-top: 60px;
  }

  .page-header-inner {
    padding: 0 15px;
  }

  .page-title {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .page-subtitle {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .page-breadcrumbs {
    margin-bottom: 12px;
  }

  .breadcrumb-list {
    gap: 6px;
  }

  .breadcrumb-link,
  .breadcrumb-current {
    font-size: 12px;
    padding: 3px 6px;
  }

  .breadcrumb-separator {
    font-size: 9px;
    margin: 0 2px;
  }

  /* モバイルでパンくずリストを縦に配置 */
  .breadcrumb-list {
    flex-direction: column;
    gap: 4px;
  }

  .breadcrumb-separator {
    display: none;
  }

  .breadcrumb-item {
    position: relative;
  }

  .breadcrumb-item:not(:last-child)::after {
    content: "↓";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .page-header {
    height: 40vh;
    min-height: 250px;
    max-height: 350px;
    margin-top: -60px;
    padding-top: 60px;
  }

  .page-header-content {
    padding-top: 60px;
  }

  .page-title {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }

  .page-subtitle {
    font-size: 0.85rem;
  }

  .page-header-inner {
    padding: 0 12px;
  }

  .breadcrumb-link,
  .breadcrumb-current {
    font-size: 11px;
    padding: 2px 4px;
  }
}

/* 特別な画面サイズでの調整 */
@media (max-width: 375px) {
  .page-title {
    font-size: 1.4rem;
  }

  .page-subtitle {
    font-size: 0.8rem;
  }
}

/* 横向き表示時の調整 */
@media (max-height: 500px) and (orientation: landscape) {
  .page-header {
    height: 80vh;
    min-height: 250px;
    margin-top: -70px;
    padding-top: 70px;
  }

  .page-header-content {
    padding-top: 70px;
  }

  .page-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }

  .page-subtitle {
    font-size: 0.9rem;
  }

  .page-breadcrumbs {
    margin-bottom: 10px;
  }
}

/* 高解像度ディスプレイ対応 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .page-header-image,
  .page-header-image-container::before {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* アクセシビリティ配慮 */
@media (prefers-reduced-motion: reduce) {
  .page-header-image,
  .page-header-overlay,
  .breadcrumb-link,
  .page-title,
  .page-subtitle {
    transition: none !important;
    animation: none !important;
  }

  .page-header-image-container::before {
    transition: none !important;
  }

  .page-header:hover .page-header-image {
    transform: none !important;
  }
}

/* ハイコントラスト対応 */
@media (prefers-contrast: high) {
  .page-header-overlay {
    background: rgba(0, 0, 0, 0.8);
  }

  .breadcrumb-link {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
  }

  .breadcrumb-link:hover,
  .breadcrumb-link:focus {
    outline: none !important;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
  }

  .page-title,
  .page-subtitle,
  .breadcrumb-current {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  }
}

/* ダークモード対応（プリファレンス） */
@media (prefers-color-scheme: dark) {
  .page-header {
    background-color: #1a1a1a;
  }

  .page-header-overlay {
    background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.4) 50%,
      rgba(0, 0, 0, 0.2) 100%
    );
  }
}

/* 印刷時の調整 */
@media print {
  .page-header {
    height: auto;
    min-height: auto;
    max-height: none;
    margin-top: 0;
    padding-top: 0;
    page-break-inside: avoid;
  }

  .page-header-background,
  .page-header-overlay {
    display: none;
  }

  .page-header-content {
    position: static;
    color: #000 !important;
    background: #fff;
    padding: 20px 0;
  }

  .page-title,
  .page-subtitle,
  .breadcrumb-link,
  .breadcrumb-current {
    color: #000 !important;
    text-shadow: none !important;
  }

  .breadcrumb-link {
    background: none !important;
  }
}

/* フォーカス表示の改善 */
.breadcrumb-link:focus {
  outline: none !important;
  outline-offset: 2px;
  border-radius: 4px;
}

/* タッチデバイス対応 */
@media (hover: none) and (pointer: coarse) {
  .page-header:hover .page-header-image {
    transform: scale(1);
  }

  .breadcrumb-link:hover {
    background-color: transparent;
  }

  .breadcrumb-link:active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: none;
  }
}

/* 画像がない場合のスタイル */
.page-header:not([data-has-image]) {
  background: linear-gradient(135deg, #1a3553 0%, #2c5282 50%, #3182ce 100%);
}

.page-header:not([data-has-image]) .page-header-overlay {
  background: rgba(0, 0, 0, 0.2);
}

/* ローディング状態 */
.page-header-image {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.page-header-image.loaded {
  opacity: 1;
}

/* カスタマイザー用CSS変数 */
.page-header {
  --page-header-height: 60vh;
  --page-header-min-height: 400px;
  --page-header-max-height: 600px;
  --page-header-overlay-opacity: 0.5;
}

.page-header {
  height: var(--page-header-height, 60vh);
  min-height: var(--page-header-min-height, 400px);
  max-height: var(--page-header-max-height, 600px);
}

/* スムーススクロール時の調整 */
html {
  scroll-padding-top: 70px;
}

/* パフォーマンス最適化 */
.page-header-image-container,
.page-header-image {
  will-change: transform;
  transform: translateZ(0);
}

/* GPU加速の有効化 */
.page-header-overlay,
.page-title,
.page-subtitle {
  will-change: auto;
  transform: translateZ(0);
}

/* ==========================================================================
   パンくずリスト（ヘッダー画像下）
   ========================================================================== */

/* パンくずリストラッパー */
.page-breadcrumbs-wrapper {
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 12px 0;
  position: relative;
  z-index: 10;
}

/* パンくずリストコンテナ */
.page-breadcrumbs {
  margin: 0;
}

/* パンくずリストナビゲーション */
.breadcrumbs {
  display: inline-block;
  margin: 0;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  margin: 0;
}

.breadcrumb-link {
  color: #666;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  padding: 6px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: transparent;
  border: 1px solid transparent;
}

.breadcrumb-link:hover,
.breadcrumb-link:focus {
  color: #1e73be;
  background-color: rgba(30, 115, 190, 0.05);
  border-color: rgba(30, 115, 190, 0.1);
  transform: translateY(-1px);
  text-decoration: none;
}

.breadcrumb-link.home-link i {
  font-size: 12px;
  margin-right: 0;
}

.breadcrumb-separator {
  color: #ccc;
  font-size: 10px;
  margin: 0 4px;
  display: flex;
  align-items: center;
}

.breadcrumb-current {
  color: #333;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  background-color: rgba(30, 115, 190, 0.1);
  border-radius: 4px;
  border: 1px solid rgba(30, 115, 190, 0.15);
}

/* レスポンシブデザイン */
@media (max-width: 991px) {
  .page-breadcrumbs-wrapper {
    padding: 10px 0;
  }

  .breadcrumb-link,
  .breadcrumb-current {
    font-size: 12px;
    padding: 5px 8px;
  }

  .breadcrumb-separator {
    font-size: 9px;
    margin: 0 3px;
  }
}

@media (max-width: 767px) {
  .page-breadcrumbs-wrapper {
    padding: 8px 0;
  }

  .breadcrumb-list {
    gap: 6px;
  }

  .breadcrumb-link,
  .breadcrumb-current {
    font-size: 11px;
    padding: 4px 6px;
  }

  .breadcrumb-separator {
    font-size: 8px;
    margin: 0 2px;
  }

  /* モバイルでパンくずリストを縦に配置（オプション） */
  .breadcrumb-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .breadcrumb-separator {
    display: none;
  }

  .breadcrumb-item:not(:last-child)::after {
    content: "↓";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 10px;
  }

  .breadcrumb-item {
    position: relative;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .page-breadcrumbs-wrapper {
    padding: 6px 0;
  }

  .breadcrumb-link,
  .breadcrumb-current {
    font-size: 10px;
    padding: 3px 5px;
  }
}

/* アクセシビリティ配慮 */
@media (prefers-reduced-motion: reduce) {
  .breadcrumb-link {
    transition: none !important;
  }
}

/* ハイコントラスト対応 */
@media (prefers-contrast: high) {
  .page-breadcrumbs-wrapper {
    background-color: #fff;
    border-bottom-color: #333;
  }

  .breadcrumb-link {
    border-color: #666;
  }

  .breadcrumb-link:hover,
  .breadcrumb-link:focus {
    outline: none !important;
    background-color: #1e73be;
    color: #fff;
    border-color: #1e73be;
  }

  .breadcrumb-current {
    background-color: #333;
    color: #fff;
    border-color: #333;
  }
}

/* ダークモード対応（プリファレンス） */
@media (prefers-color-scheme: dark) {
  .page-breadcrumbs-wrapper {
    background-color: #2a2a2a;
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .breadcrumb-link {
    color: #ccc;
  }

  .breadcrumb-link:hover,
  .breadcrumb-link:focus {
    outline: none !important;
    color: #fff;
    background-color: rgba(30, 115, 190, 0.2);
    border-color: rgba(30, 115, 190, 0.3);
  }

  .breadcrumb-current {
    color: #fff;
    background-color: rgba(30, 115, 190, 0.3);
    border-color: rgba(30, 115, 190, 0.4);
  }

  .breadcrumb-separator {
    color: #666;
  }
}

/* 印刷時の調整 */
@media print {
  .page-breadcrumbs-wrapper {
    background-color: transparent !important;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
  }

  .breadcrumb-link,
  .breadcrumb-current {
    color: #000 !important;
    background-color: transparent !important;
    border-color: #ccc !important;
  }
}

/* フォーカス表示の改善 */
.breadcrumb-link:focus {
  outline: none !important;
  outline-offset: 2px;
  border-radius: 4px;
}

/* スムーススクロール時の調整 */
.page-breadcrumbs-wrapper + #content {
  margin-top: 0;
}

/* site-contentとの間隔調整 */
.site-content {
  margin-top: 0;
}

/* レスポンシブスタイル */
@media (max-width: 1199px) {
  .hero-item .hero-content {
    padding: 35px 25px;
  }

  .hero-item .hero-title {
    font-size: 26px;
  }

  .hero-item .hero-subtitle {
    font-size: 15px;
  }
}

@media (max-width: 991px) {
  .content-area,
  .sidebar {
    float: none;
    width: 100%;
    padding-right: 0;
  }
  .sidebar {
    margin-top: 50px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  /* 大画面でのセンターコンテンツ調整 */
  .hero-center-catchcopy {
    font-size: 52px;
  }

  .hero-center-description {
    font-size: 19px;
  }

  /* タブレット用グリッド調整 */
  .hero-grid-3,
  .hero-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid-4 {
    grid-template-rows: repeat(2, 1fr);
  }

  .hero-item .hero-title {
    font-size: 22px;
  }

  .hero-item .hero-subtitle {
    font-size: 14px;
  }

  .hero-item .hero-content {
    padding: 30px 20px;
  }
}

@media (max-width: 767px) {
  .header-inner {
  flex-direction: row;         /* 横並びに変更 */
  align-items: center;         /* 垂直中央配置 */
  justify-content: space-between;
  text-align: left;
  padding: 8px 0;
  min-height: 60px;           /* 最小高さを設定 */
  display: flex;
}
  .site-branding {
  display: flex;
  align-items: center;         /* 垂直中央配置 */
  flex-shrink: 0;
  margin-bottom: 0;           /* マージンを0に */
  height: 100%;
  min-height: 44px;
}
  .main-navigation {
    display: none;
    width: 100%;
  }
  .main-navigation.active {
    display: block;
  }
  .main-navigation ul {
    flex-direction: column;
  }
  .main-navigation li {
    margin: 0;
    text-align: center;
  }
  .main-navigation a {
    padding: 15px 0;
    border-bottom: none; /* ボーダーを削除 */
  }
  .mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  height: 44px;
  width: 44px;
  position: relative;         /* 相対配置に変更 */
  top: auto;                  /* topを削除 */
  right: auto;                /* rightを削除 */
}

  /* モバイル用グリッドレイアウト */
  .hero-grid,
  .hero-grid-1,
  .hero-grid-2,
  .hero-grid-3,
  .hero-grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-grid-2 {
    grid-template-rows: repeat(2, 1fr);
  }

  .hero-grid-3 {
    grid-template-rows: repeat(3, 1fr);
  }

  .hero-grid-4 {
    grid-template-rows: repeat(4, 1fr);
  }

  .hero-grid.mobile-layout .hero-item {
    min-height: 25vh;
  }

  .hero-item .hero-content {
    padding: 20px 15px;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(0, 0, 0, 0.8) 60%,
      transparent 100%
    );
  }

  .hero-item .hero-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .hero-item .hero-subtitle {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .hero-item .hero-button {
    padding: 10px 20px;
    font-size: 12px;
  }

  .footer-widget {
    min-width: 50%;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-button {
    padding: 12px 24px;
    font-size: 14px;
  }

  .hero-slider-controls {
    bottom: 20px;
  }

  .hero-prev,
  .hero-next {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  /* センターコンテンツのレスポンシブ */
  .hero-center-catchcopy {
    font-size: 36px;
  }

  .hero-center-description {
    font-size: 18px;
  }

  .hero-center-button {
    padding: 15px 30px;
    font-size: 16px;
  }

  .hero-center-inner {
    padding: 0 15px;
  }

  .page-header {
    height: 200px;
  }

  .page-header .page-title {
    font-size: 28px;
  }

  .breadcrumbs {
    font-size: 12px;
  }

  /* モバイルでのコンテンツ常時表示 */
  .hero-item .hero-content {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .post-title {
    font-size: 24px;
  }
  .footer-widget {
    min-width: 100%;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-content {
    padding: 0 15px;
  }

  .hero-slider-controls {
    gap: 15px;
  }

  /* 超小画面でのセンターコンテンツ */
  .hero-center-catchcopy {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .hero-center-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .hero-center-button {
    padding: 12px 24px;
    font-size: 14px;
  }

  /* 超小画面でのグリッド調整 */
  .hero-item .hero-content {
    padding: 15px 12px;
  }

  .hero-item .hero-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .hero-item .hero-subtitle {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .hero-item .hero-button {
    padding: 8px 16px;
    font-size: 11px;
  }

  .hero-grid.mobile-layout .hero-item {
    min-height: 20vh;
  }
}

/* タブレット用の調整 */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-grid.tablet-layout .hero-item .hero-title {
    font-size: 22px;
  }

  .hero-grid.tablet-layout .hero-item .hero-subtitle {
    font-size: 15px;
  }

  .hero-grid.tablet-layout .hero-item .hero-content {
    padding: 25px;
  }

  /* タブレット用センターコンテンツ */
  .hero-center-catchcopy {
    font-size: 48px;
  }

  .hero-center-description {
    font-size: 19px;
  }

  .hero-center-button {
    padding: 16px 32px;
    font-size: 17px;
  }
}

/* 高DPIディスプレイ対応 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-item,
  .hero-background {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* アクセシビリティ配慮 */
@media (prefers-reduced-motion: reduce) {
  .hero-item,
  .hero-background,
  .hero-content,
  .hero-button,
  .main-image,
  .concept-btn,
  .exterior-btn {
    transition: none !important;
    animation: none !important;
  }
}

/* ダークモード対応（オプション） */
@media (prefers-color-scheme: dark) {
  .fullscreen-hint {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
  }
}

/* ブランド名・ロゴ（拡張版） */
.footer-brand {
  margin-bottom: 40px;
}

.footer-brand-link {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-brand-link:hover {
  opacity: 0.8;
}

.footer-brand-logo {
  max-width: 200px;
  max-height: 80px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  transition: transform 0.3s ease;
}

.footer-brand-link:hover .footer-brand-logo {
  transform: scale(1.02);
}

.footer-brand-title {
  font-size: 48px;
  font-weight: normal;
  color: #333;
  margin: 0;
  letter-spacing: 8px;
  text-transform: uppercase;
  font-family: "Times New Roman", Times, serif;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.footer-brand-link:hover .footer-brand-title {
  color: var(--footer-brand-color, #333333);
  opacity: 0.8;
}

/* ロゴのみの場合の調整 */
.footer-brand-link .footer-brand-logo:only-child {
  margin-bottom: 0;
}

/* ブランド名のみの場合の調整 */
.footer-brand-link .footer-brand-title:only-child {
  margin: 0;
}

/* ロゴとブランド名両方がある場合 */
.footer-brand-link .footer-brand-logo + .footer-brand-title {
  margin-top: 0;
}

/* リンクなしの場合のスタイル調整 */
.footer-brand .footer-brand-logo:not(.footer-brand-link *) {
  margin: 0 auto 20px;
}

.footer-brand .footer-brand-title:not(.footer-brand-link *) {
  margin: 0;
}

.footer-brand .footer-brand-logo:only-child:not(.footer-brand-link *) {
  margin-bottom: 0;
}

.footer-brand
  .footer-brand-logo
  + .footer-brand-title:not(.footer-brand-link *) {
  margin-top: 0;
}

/* レスポンシブデザイン - フッターブランドセクション */
@media (max-width: 1199px) {
  .footer-brand-title {
    font-size: 42px;
    letter-spacing: 6px;
  }

  .footer-brand-logo {
    max-width: 180px;
    max-height: 70px;
  }

  .footer-brand {
    margin-bottom: 35px;
  }
}

@media (max-width: 991px) {
  .footer-brand-title {
    font-size: 36px;
    letter-spacing: 4px;
  }

  .footer-brand-logo {
    max-width: 160px;
    max-height: 60px;
    margin-bottom: 15px;
  }

  .footer-brand {
    margin-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .footer-brand-title {
    font-size: 32px;
    letter-spacing: 3px;
  }

  .footer-brand-logo {
    max-width: 140px;
    max-height: 50px;
    margin-bottom: 15px;
  }

  .footer-brand {
    margin-bottom: 25px;
  }
}

@media (max-width: 480px) {
  .footer-brand-title {
    font-size: 28px;
    letter-spacing: 2px;
  }

  .footer-brand-logo {
    max-width: 120px;
    max-height: 45px;
    margin-bottom: 12px;
  }

  .footer-brand {
    margin-bottom: 20px;
  }
}

/* 特別な画面サイズでの調整 */
@media (max-width: 375px) {
  .footer-brand-title {
    font-size: 24px;
    letter-spacing: 1px;
  }

  .footer-brand-logo {
    max-width: 100px;
    max-height: 40px;
  }
}

/* 横向き表示時の調整 */
@media (max-height: 500px) and (orientation: landscape) {
  .footer-brand {
    margin-bottom: 15px;
  }

  .footer-brand-title {
    font-size: 24px;
  }

  .footer-brand-logo {
    max-height: 35px;
    margin-bottom: 8px;
  }
}

/* アクセシビリティ配慮 */
@media (prefers-reduced-motion: reduce) {
  .footer-brand-link,
  .footer-brand-logo,
  .footer-brand-title {
    transition: none !important;
  }
}

/* ダークモード対応（オプション） */
@media (prefers-color-scheme: dark) {
  .footer-brand-title {
    color: #fff;
  }

  .footer-brand-link:hover .footer-brand-title {
    color: #ccc;
  }
}

/* ==========================================================================
   施工実績投稿詳細ページスタイル
   ========================================================================== */

/* 施工実績記事全体 */
.construction-case {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  box-sizing: border-box;
}

/* ヘッダー部分 */
.construction-header {
  margin-bottom: 30px;
}

.construction-category {
  display: inline-block;
  background-color: #2c5282;
  color: #fff;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 3px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.construction-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
  margin: 0;
  padding: 0;
}

/* 施工詳細情報 */
.construction-details {
  background-color: #f8f9fa;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 5px;
  border: 1px solid #e9ecef;
}

.detail-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #dee2e6;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 600;
  color: #495057;
  min-width: 80px;
  flex-shrink: 0;
  font-size: 14px;
}

.detail-value {
  color: #333;
  margin-left: 20px;
  font-size: 14px;
  flex: 1;
}

/* コンテンツエリア */
.construction-content {
  margin-bottom: 40px;
}

.construction-content p {
  margin-bottom: 16px;
  line-height: 1.7;
  color: #333;
}

/* Before/Afterギャラリー */
.before-after-gallery {
  margin: 40px 0;
}

.before-after-set {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.before-image,
.after-image {
  flex: 1;
  text-align: center;
}

.before-image h3,
.after-image h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 15px 0;
  padding: 10px;
  border-radius: 5px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
}

.before-image img,
.after-image img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.before-image img:hover,
.after-image img:hover {
  transform: scale(1.02);
}

/* 施工前ギャラリー */
.process-gallery-section {
  margin: 40px 0;
}

.process-title {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #2c5282;
}

.process-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between;
}

.process-item {
  flex: 0 0 calc(25% - 12px);
  text-align: center;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.process-image {
  width: 100%;
  height: 120px;
  overflow: hidden;
  background-color: #f8f9fa;
}

.process-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.process-item:hover .process-image img {
  transform: scale(1.1);
}

.process-caption {
  padding: 12px 8px;
  font-size: 12px;
  color: #666;
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
  font-weight: 500;
}

/* フッター部分 */
.construction-footer {
  border-top: 1px solid #e9ecef;
  padding-top: 30px;
  margin-top: 40px;
}

/* ==========================================================================
   SNSシェアボタン修正版（SVGアイコン対応）
   ========================================================================== */

/* SNSシェア */
.post-share {
  text-align: center;
}

.share-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.social-share-list {
  display: flex;
  justify-content: center;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.share-item {
  margin: 0;
}

.share-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 18px;
  position: relative;
}

/* SVGアイコン共通スタイル */
.share-item a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.share-item a:hover svg {
  transform: scale(1.1);
}

/* LINEアイコン */
.share-line {
  background-color: #00c300;
}

.share-line:hover {
  background-color: #00a000;
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 195, 0, 0.3);
}

/* Xアイコン（公式ブラック） */
.share-twitter {
  background-color: #000000;
}

.share-twitter:hover {
  background-color: #1a1a1a;
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Facebookアイコン */
.share-facebook {
  background-color: #1877f2;
}

.share-facebook:hover {
  background-color: #166fe5;
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

/* Instagramアイコン */
.share-instagram {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}

.share-instagram:hover {
  background: linear-gradient(
    45deg,
    #e6683c 0%,
    #dc2743 25%,
    #cc2366 50%,
    #bc1888 75%,
    #9b1c8c 100%
  );
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 4px 12px rgba(240, 148, 51, 0.3);
}

/* ホバーエフェクト強化 */
.share-item a:hover {
  color: #fff !important;
}

/* レスポンシブ対応 767px */
@media (max-width: 767px) {
  .social-share-list {
    gap: 12px;
  }

  .share-item a {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .share-item a svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .share-item a {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .share-item a svg {
    width: 14px;
    height: 14px;
  }

  .social-share-list {
    gap: 10px;
  }
}

/* アクセシビリティ対応 */
@media (prefers-reduced-motion: reduce) {
  .share-item a,
  .share-item a svg {
    transition: none !important;
  }

  .share-item a:hover {
    transform: none !important;
  }

  .share-item a:hover svg {
    transform: none !important;
  }
}

/* フォーカス表示 */
.share-item a:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* 高コントラスト対応 */
@media (prefers-contrast: high) {
  .share-item a {
    border: 2px solid #fff;
  }

  .share-item a:hover {
    border-color: #000;
  }
}

.share-instagram:hover {
  background: linear-gradient(
    45deg,
    #e6683c 0%,
    #dc2743 25%,
    #cc2366 50%,
    #bc1888 75%,
    #9b1c8c 100%
  );
  transform: translateY(-2px);
  color: #fff;
}

/* レスポンシブ対応 767px */
@media (max-width: 767px) {
  .construction-case {
    padding: 15px;
  }

  .construction-title {
    font-size: 22px;
    line-height: 1.4;
  }

  .construction-details {
    padding: 15px;
  }

  .detail-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }

  .detail-label {
    margin-bottom: 5px;
    min-width: auto;
  }

  .detail-value {
    margin-left: 0;
  }

  .before-after-set {
    flex-direction: column;
    gap: 20px;
  }

  .before-image,
  .after-image {
    width: 100%;
  }

  .process-gallery {
    gap: 10px;
  }

  .process-item {
    flex: 0 0 calc(50% - 5px);
  }

  .process-image {
    height: 100px;
  }

  .process-caption {
    padding: 10px 6px;
    font-size: 11px;
  }

  .social-share-list {
    gap: 12px;
  }

  .share-item a {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .share-item a {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
}

/* 投稿ナビゲーション（前後の記事） */
.post-navigation {
  margin: 40px 0;
  padding: 30px 0;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 0 0 48%;
  text-align: center;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
  display: inline-block;
  padding: 12px 20px;
  background-color: #f8f9fa;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 14px;
}

.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover {
  background-color: #2c5282;
  color: #fff;
  border-color: #2c5282;
  transform: translateY(-2px);
}

.post-navigation .nav-subtitle {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-navigation .nav-title {
  display: block;
  font-weight: 600;
  line-height: 1.3;
}

/* レスポンシブ対応 - 投稿ナビゲーション */
@media (max-width: 767px) {
  .post-navigation .nav-links {
    flex-direction: column;
    gap: 15px;
  }

  .post-navigation .nav-previous,
  .post-navigation .nav-next {
    flex: 0 0 100%;
    width: 100%;
  }

  .post-navigation .nav-previous a,
  .post-navigation .nav-next a {
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .construction-case {
    padding: 10px;
  }

  .construction-title {
    font-size: 20px;
  }

  .construction-details {
    padding: 12px;
  }

  .process-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .process-item {
    flex: 0 0 calc(50% - 5px);
  }

  .process-image {
    height: 80px;
  }

  .process-caption {
    padding: 8px 4px;
    font-size: 10px;
  }

  .share-item a {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
}
