/*
Theme Name: RIFF LP Theme
Theme URI: https://example.com
Description: プロフェッショナルなランディングページテーマ - セクション管理対応版
Author: Your Name
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: riff-theme
*/

/* ===================================
   リセット & 基本設定
=================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", "Arial", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Meiryo", sans-serif;
  line-height: 1.8;
  color: #333;
  background: #fff;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* ===================================
   レスポンシブ改行制御
=================================== */
.sp,
br.sp {
  display: none;
}

@media (max-width: 768px) {
  .pc,
  br.pc {
    display: none;
  }
  .sp,
  br.sp {
    display: inline;
  }
}

/* ===================================
   ヘッダー（既存のまま）
=================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  transform: translateY(0);
}

.site-header.at-top {
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.site-header.at-top .site-logo,
.site-header.at-top .site-logo-image,
.site-header.at-top .nav-menu a {
  color: var(--header-text-color, #fff);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.site-header.at-top .mobile-menu-toggle span {
  background: var(--header-text-color, #fff);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.site-header.at-top .header-cta {
  background: rgba(255, 255, 255, 0.2);
  color: var(--header-text-color, #fff);
  border: 2px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.site-header.at-top .header-cta:hover {
  background: #fff;
  color: #0066cc;
}

.site-header.at-top .nav-menu li a::after {
  background: var(--header-text-color, #fff);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled .site-logo,
.site-header.scrolled .site-logo-image,
.site-header.scrolled .nav-menu a {
  color: var(--header-text-color-scrolled, #333);
  text-shadow: none;
}

.site-header.scrolled .mobile-menu-toggle span {
  background: var(--header-text-color-scrolled, #333);
  box-shadow: none;
}

.site-header.scrolled .header-cta {
  background: #0066cc;
  color: #fff;
  border: 2px solid transparent;
  backdrop-filter: none;
}

.site-header.scrolled .nav-menu li a::after {
  background: #0066cc;
}

.site-header.hide {
  transform: translateY(-100%);
}

.site-header.show {
  transform: translateY(0);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-logo-link {
  display: block;
  line-height: 0;
}

.site-logo-image {
  width: auto;
  height: auto;
  max-width: var(--logo-width, 200px);
  max-height: var(--logo-height, 60px);
  object-fit: contain;
  transition: all 0.3s ease;
}

.site-header.at-top .site-logo-image {
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
}

.site-header.scrolled .site-logo-image {
  filter: none;
}

.site-logo-image:hover {
  opacity: 0.7;
}

.site-logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--header-text-color-scrolled, #333);
  transition: all 0.3s ease;
  display: block;
}

.site-logo:hover {
  opacity: 0.7;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 35px;
}

.nav-menu li a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--header-text-color-scrolled, #333);
  padding: 5px 0;
  position: relative;
  transition: all 0.3s ease;
}

.nav-menu li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #0066cc;
  transition: width 0.3s ease;
}

.nav-menu li a:hover {
  color: #0066cc;
}

.nav-menu li a:hover::after {
  width: 100%;
}

.header-cta {
  padding: 12px 30px;
  background: #0066cc;
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  transition: all 0.4s ease;
}

.header-cta:hover {
  background: #0052a3;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 102, 204, 0.3);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--header-text-color-scrolled, #333);
  transition: all 0.3s ease;
  border-radius: 2px;
}

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

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

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

/* ===================================
   ヒーローセクション（既存のまま - 省略）
=================================== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

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

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

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

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

.hero-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 102, 204, 0.8) 0%,
    rgba(0, 51, 153, 0.6) 100%
  );
  z-index: 1;
}

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

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  padding: 160px 50px 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.hero-content-grid {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 60px;
  width: 100%;
  min-height: 500px;
  padding-bottom: 60px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s ease;
  position: absolute;
}

.hero-content-grid.active {
  opacity: 1;
  visibility: visible;
}

.hero-content-grid.layout-reverse {
  flex-direction: row-reverse;
}

.hero-content {
  color: #fff;
  opacity: 0;
  transition: all 0.8s ease;
  flex: 1 1 50%;
  max-width: 600px;
}

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

.hero-text-content {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 400px;
  padding: 20px;
}

.hero-image-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 50%;
  max-width: 600px;
  min-height: 400px;
  padding: 20px;
}

.hero-image-container {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.hero-image-container img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.4));
}

.hero-content-grid.has-image {
  justify-content: space-between;
}

.hero-content-grid.no-image {
  justify-content: center;
}

.hero-content-grid.no-image .hero-text-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  flex: 0 1 auto;
  padding: 30px;
}

.hero-content-grid.no-image .hero-buttons {
  justify-content: center;
}

/* アニメーション定義（省略 - 既存のまま） */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(1.2);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.hero-content.active[data-animation="fadeIn"] {
  animation: fadeIn 0.8s ease;
}
.hero-content.active[data-animation="fadeInUp"] {
  animation: fadeInUp 0.8s ease;
}
.hero-content.active[data-animation="fadeInDown"] {
  animation: fadeInDown 0.8s ease;
}
.hero-content.active[data-animation="fadeInLeft"] {
  animation: fadeInLeft 0.8s ease;
}
.hero-content.active[data-animation="fadeInRight"] {
  animation: fadeInRight 0.8s ease;
}
.hero-content.active[data-animation="slideInUp"] {
  animation: slideInUp 0.8s ease;
}
.hero-content.active[data-animation="slideInDown"] {
  animation: slideInDown 0.8s ease;
}
.hero-content.active[data-animation="slideInLeft"] {
  animation: slideInLeft 0.8s ease;
}
.hero-content.active[data-animation="slideInRight"] {
  animation: slideInRight 0.8s ease;
}
.hero-content.active[data-animation="zoomIn"] {
  animation: zoomIn 0.8s ease;
}
.hero-content.active[data-animation="float"] {
  animation: fadeIn 0.8s ease, float 3s ease-in-out infinite;
}

.hero-slide.active .hero-background[data-animation="fadeIn"] {
  animation: fadeIn 1.5s ease;
}
.hero-slide.active .hero-background[data-animation="zoomIn"] img,
.hero-slide.active .hero-background[data-animation="zoomIn"] video,
.hero-slide.active .hero-background[data-animation="zoomIn"] > div {
  animation: zoomIn 1.5s ease;
}
.hero-slide.active .hero-background[data-animation="slideInUp"] img,
.hero-slide.active .hero-background[data-animation="slideInUp"] video,
.hero-slide.active .hero-background[data-animation="slideInUp"] > div {
  animation: slideInUp 1s ease;
}
.hero-slide.active .hero-background[data-animation="slideInDown"] img,
.hero-slide.active .hero-background[data-animation="slideInDown"] video,
.hero-slide.active .hero-background[data-animation="slideInDown"] > div {
  animation: slideInDown 1s ease;
}
.hero-slide.active .hero-background[data-animation="slideInLeft"] img,
.hero-slide.active .hero-background[data-animation="slideInLeft"] video,
.hero-slide.active .hero-background[data-animation="slideInLeft"] > div {
  animation: slideInLeft 1s ease;
}
.hero-slide.active .hero-background[data-animation="slideInRight"] img,
.hero-slide.active .hero-background[data-animation="slideInRight"] video,
.hero-slide.active .hero-background[data-animation="slideInRight"] > div {
  animation: slideInRight 1s ease;
}

.hero-subtitle {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.9;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 25px;
  letter-spacing: 0.02em;
}

.hero-description {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 40px;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-buttons:empty {
  display: none;
  margin: 0;
}

.hero-btn {
  padding: 15px 40px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: inline-block;
}

.hero-btn.primary {
  background: #fff;
  color: #0066cc;
}

.hero-btn.primary:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-btn.secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.hero-btn.secondary:hover {
  background: #fff;
  color: #0066cc;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.scroll-down {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.scroll-down span {
  display: block;
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  position: relative;
}

.scroll-down span::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}

/* ===================================
   メインコンテンツ & セクション (NEW!)
=================================== */
.main-content {
  background: #fff;
  position: relative;
  z-index: 1;
}

/* コンテンツセクション共通スタイル */
.content-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* セクションプレースホルダー（管理者のみ表示） */
.section-placeholder {
  padding: 80px 30px;
  text-align: center;
  background: #f9f9f9;
  border: 2px dashed #ddd;
  border-radius: 8px;
  margin: 20px;
}

.section-placeholder .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 30px;
}

.section-placeholder h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
}

.section-placeholder .description {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.8;
}

.section-placeholder .button {
  display: inline-block;
  padding: 12px 30px;
  background: #0066cc;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.section-placeholder .button:hover {
  background: #0052a3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

/* 固定ページコンテンツ用コンテナ */
.page-content {
  max-width: 100vw;
  margin: 0 auto;
}

.page-content h2,
.page-content h3,
.page-content h4 {
  margin-bottom: 20px;
}

.page-content p {
  margin-bottom: 15px;
  line-height: 1.8;
}

/* 汎用コンテナ（ショートコード用） */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 30px;
}

/* セクション用の基本スタイル */
.riff-section {
  padding: 80px 0;
  position: relative;
}

/* ===================================
   フッター（既存のまま）
=================================== */
.site-footer {
  background: #1a1a1a;
  color: #fff;
  padding: 60px 0 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-section p,
.footer-section a {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

.footer-section a:hover {
  color: #0066cc;
}

.footer-menu {
  list-style: none;
}

.footer-menu li {
  margin-bottom: 12px;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: #0066cc;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ===================================
   レスポンシブ(Tablet)
=================================== */
@media (max-width: 992px) {
  .header-container {
    padding: 0 20px;
  }

  .nav-menu {
    gap: 25px;
  }

  .site-logo-image {
    max-width: calc(var(--logo-width, 200px) * 0.8);
    max-height: calc(var(--logo-height, 60px) * 0.8);
  }

  .hero-content-wrapper {
    padding: 150px 40px 80px;
  }

  .hero-content-grid {
    flex-direction: column;
    gap: 40px;
    min-height: auto;
  }

  .hero-content-grid.layout-reverse {
    flex-direction: column;
  }

  .hero-content-grid.has-image,
  .hero-content-grid.no-image {
    justify-content: center;
  }

  .hero-text-content,
  .hero-content-grid.no-image .hero-text-content {
    text-align: center;
    max-width: 100%;
  }

  .hero-content {
    flex: 1 1 auto;
    max-width: 100%;
  }

  .hero-text-content,
  .hero-image-content {
    min-height: auto;
    padding: 10px;
  }

  .hero-buttons {
    justify-content: center;
  }

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

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

  .hero-image-container {
    max-width: 400px;
    margin: 0 auto;
  }

  .container,
  .page-content {
    padding: 60px 30px;
  }

  .riff-section {
    padding: 60px 0;
  }
}

/* ===================================
   レスポンシブ(Mobile)
=================================== */
@media (max-width: 768px) {
  .header-container {
    height: 70px;
    padding: 0 20px;
  }

  .site-logo {
    font-size: 24px;
  }

  .site-logo-image {
    max-width: calc(var(--logo-width, 200px) * 0.6);
    max-height: calc(var(--logo-height, 60px) * 0.6);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .main-navigation {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 20px;
    gap: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .main-navigation.active {
    transform: translateX(0);
  }

  .site-header.mobile-menu-open {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1) !important;
  }

  .site-header.mobile-menu-open .site-logo,
  .site-header.mobile-menu-open .nav-menu a {
    color: var(--header-text-color-scrolled, #333) !important;
    text-shadow: none !important;
  }

  .site-header.mobile-menu-open .mobile-menu-toggle span {
    background: var(--header-text-color-scrolled, #333) !important;
    box-shadow: none !important;
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .nav-menu li a {
    display: block;
    padding: 20px 0;
    font-size: 16px;
    color: var(--header-text-color-scrolled, #333);
  }

  .nav-menu li a::after {
    background: #0066cc;
  }

  .header-cta {
    margin-top: 20px;
    width: 100%;
    text-align: center;
    background: #0066cc;
    color: #fff;
    border: 2px solid transparent;
  }

  .hero-section {
    margin-top: 0;
    min-height: 600px;
    height: auto;
  }

  .hero-content-wrapper {
    padding: 150px 25px 60px;
    min-height: 100vh;
  }

  .hero-content-grid {
    flex-direction: column;
    gap: 30px;
    min-height: auto;
    padding-bottom: 40px;
  }

  .hero-content-grid.layout-reverse {
    flex-direction: column;
  }

  .hero-content-grid.has-image,
  .hero-content-grid.no-image {
    justify-content: center;
  }

  .hero-text-content {
    text-align: center;
    max-width: 100%;
    padding: 15px 20px;
    margin-top: 20px;
  }

  .hero-content-grid.no-image .hero-text-content {
    text-align: center;
    max-width: 100%;
    padding: 15px 20px;
    margin-top: 20px;
  }

  .hero-content {
    flex: 1 1 auto;
    max-width: 100%;
  }

  .hero-image-content {
    min-height: auto;
    padding: 10px 20px;
  }

  .hero-subtitle {
    font-size: 13px;
    margin-bottom: 15px;
    margin-top: 10px;
  }

  .hero-title {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.4;
  }

  .hero-description {
    font-size: 15px;
    margin-bottom: 30px;
    line-height: 1.7;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 0 5px;
  }

  .hero-buttons:empty {
    margin-bottom: 0;
  }

  .hero-btn {
    width: 100%;
    max-width: 100%;
    padding: 14px 30px;
  }

  .hero-image-container {
    max-width: 100%;
    width: 100%;
    padding: 0 10px;
  }

  .scroll-down {
    bottom: 50px;
  }

  .container,
  .page-content {
    padding: 50px 20px;
  }

  .riff-section {
    padding: 50px 0;
  }

  .section-placeholder {
    margin: 15px;
    padding: 50px 20px;
  }

  .section-placeholder h2 {
    font-size: 24px;
  }

  .section-placeholder .description {
    font-size: 14px;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
  }

  .footer-section {
    min-width: 100%;
  }
}

/* ===================================
   レスポンシブ(Small Mobile)
=================================== */
@media (max-width: 480px) {
  .hero-content-wrapper {
    padding: 160px 20px 60px;
    min-height: 100vh;
  }

  .hero-content-grid {
    padding-bottom: 30px;
  }

  .hero-text-content,
  .hero-content-grid.no-image .hero-text-content {
    padding: 10px 15px;
    margin-top: 25px;
  }

  .hero-image-content {
    padding: 5px 15px;
  }

  .hero-subtitle {
    font-size: 12px;
    margin-top: 15px;
  }

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

  .hero-description {
    font-size: 14px;
    line-height: 1.7;
  }

  .hero-btn {
    padding: 13px 25px;
    font-size: 14px;
  }

  .hero-buttons {
    padding: 0 10px;
  }

  .hero-image-container {
    padding: 0 15px;
  }

  .site-logo-image {
    max-width: calc(var(--logo-width, 200px) * 0.5);
    max-height: calc(var(--logo-height, 60px) * 0.5);
  }

  .scroll-down {
    bottom: 40px;
  }

  .container,
  .page-content {
    padding: 40px 15px;
  }

  .riff-section {
    padding: 40px 0;
  }

  .section-placeholder {
    margin: 10px;
    padding: 40px 15px;
  }

  .section-placeholder h2 {
    font-size: 22px;
  }
}

/* ===================================
   ページコンテンツラッパー（セクション管理削除後）
=================================== */
.page-content-wrapper {
  width: 100%;
  background: #fff;
}

/* 固定ページのコンテンツエリア */
.main-content .page-content-wrapper {
  max-width: 100%;
  margin: 0 auto;
}

/* コンテンツ内の基本スタイル */
.page-content-wrapper h2,
.page-content-wrapper h3,
.page-content-wrapper h4 {
  margin-bottom: 20px;
  line-height: 1.4;
}

.page-content-wrapper h2 {
  font-size: 32px;
  font-weight: 700;
}

.page-content-wrapper h3 {
  font-size: 24px;
  font-weight: 600;
}

.page-content-wrapper h4 {
  font-size: 20px;
  font-weight: 600;
}

.page-content-wrapper p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-content-wrapper ul,
.page-content-wrapper ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.page-content-wrapper li {
  margin-bottom: 10px;
  line-height: 1.7;
}

/* セクション用の汎用スタイル */
.page-content-wrapper section {
  padding: 80px 0;
}

.page-content-wrapper .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .page-content-wrapper h2 {
    font-size: 28px;
  }

  .page-content-wrapper h3 {
    font-size: 22px;
  }

  .page-content-wrapper h4 {
    font-size: 18px;
  }

  .page-content-wrapper section {
    padding: 60px 0;
  }

  .page-content-wrapper .container {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .page-content-wrapper h2 {
    font-size: 24px;
  }

  .page-content-wrapper h3 {
    font-size: 20px;
  }

  .page-content-wrapper section {
    padding: 50px 0;
  }

  .page-content-wrapper .container {
    padding: 0 15px;
  }
}

/* ==============================================
   CTAフッタースタイル
============================================== */

.cta-footer {
  padding: 60px 0 0;
  color: #FFFFFF;
  position: relative;
}

.cta-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* メインテキスト */
.cta-main-text {
  text-align: center;
  margin-bottom: 50px;
}

.cta-main-text h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  color: #FFFFFF;
}

/* コンテンツエリア */
.cta-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  margin-bottom: 50px;
}

/* 左側：電話情報 */
.cta-contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.cta-business-hours {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 5px;
}

.cta-phone-number {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 42px;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.cta-phone-number:hover {
  opacity: 0.8;
}

.cta-phone-number i {
  font-size: 36px;
}

.cta-phone-subtext {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 5px;
}

/* 右側：ボタンエリア */
.cta-buttons-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 40px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button i {
  font-size: 24px;
}

.cta-button-line {
  color: #FFFFFF;
}

.cta-button-line:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cta-button-email {
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button-email:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cta-notice {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 5px;
}

/* フッター下部 */
.cta-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
}

.cta-privacy-link {
  color: #FFFFFF;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.cta-privacy-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.cta-copyright {
  color: rgba(255, 255, 255, 0.8);
}

/* レスポンシブ対応 */

/* タブレット */
@media (max-width: 992px) {
  .cta-main-text h2 {
    font-size: 28px;
  }
  
  .cta-content {
    gap: 40px;
  }
  
  .cta-phone-number {
    font-size: 36px;
  }
  
  .cta-phone-number i {
    font-size: 32px;
  }
  
  .cta-button {
    padding: 16px 35px;
    font-size: 17px;
  }
  
  .cta-button i {
    font-size: 22px;
  }
}

/* モバイル */
@media (max-width: 768px) {
  .cta-footer {
    padding: 40px 0 0;
  }
  
  .cta-footer-container {
    padding: 0 20px;
  }
  
  .cta-main-text {
    margin-bottom: 35px;
  }
  
  .cta-main-text h2 {
    font-size: 22px;
    line-height: 1.6;
  }
  
  .cta-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 35px;
    margin-bottom: 35px;
  }
  
  .cta-contact-info {
    align-items: center;
  }
  
  .cta-phone-number {
    font-size: 32px;
  }
  
  .cta-phone-number i {
    font-size: 28px;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  
  .cta-button {
    width: 100%;
    padding: 16px 30px;
    font-size: 16px;
  }
  
  .cta-footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    padding: 20px 0;
  }
}

/* 小型モバイル */
@media (max-width: 480px) {
  .cta-main-text h2 {
    font-size: 18px;
  }
  
  .cta-phone-number {
    font-size: 28px;
    gap: 8px;
  }
  
  .cta-phone-number i {
    font-size: 24px;
  }
  
  .cta-button {
    padding: 14px 25px;
    font-size: 15px;
  }
  
  .cta-button i {
    font-size: 20px;
  }
  
  .cta-business-hours,
  .cta-phone-subtext,
  .cta-notice {
    font-size: 12px;
  }
  
  .cta-footer-bottom {
    font-size: 13px;
  }
}

/* 印刷用スタイル */
@media print {
  .cta-footer {
    display: none;
  }
}