/*
Theme Name:  Studio DOWHA
Template:    solaris_tcd088
Version:     1.1.9
Author:      Global Step Inc.
Author URI:  https://globalstep.jp
Description: Studio DOWHA 専用子テーマ（SOLARIS / tcd088 ベース）。デザインシステム・予約連携・内部ページテンプレートを含む。
Text Domain: dowha-child
License:     All rights reserved
*/

/* ========================================
   Studio DOWHA — Design System
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #1a1a1a;
  --color-accent: #c8a45c;
  --color-accent-hover: #b8933f;
  --color-text: #333;
  --color-text-light: #666;
  --color-bg: #fff;
  --color-bg-gray: #f7f7f5;
  --color-border: #e0e0e0;
  --color-white: #fff;
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-en: 'Montserrat', sans-serif;
  --header-h: 72px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-jp);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

img { max-width: 100%; height: auto; display: block; }

.dowha-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.sp-only { display: none; }

/* --- WordPress管理バー対応 --- */
body.admin-bar .dowha-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .dowha-header {
    top: 46px;
  }
}

/* --- Header --- */
.dowha-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
}

.dowha-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dowha-logo { display: flex; align-items: center; }

.dowha-logo-main {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-primary);
}

.dowha-nav-list {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.dowha-nav-list a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color var(--transition);
  color: var(--color-primary);
  text-decoration: none;
}

.dowha-nav-list a:hover { color: var(--color-accent); }

.dowha-nav-contact {
  padding: 6px 16px !important;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  transition: all var(--transition) !important;
}

.dowha-nav-contact:hover {
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
}

.dowha-nav-reserve {
  padding: 8px 20px !important;
  background: var(--color-accent);
  color: var(--color-white) !important;
  border-radius: 4px;
  font-weight: 600;
  transition: background var(--transition) !important;
}

.dowha-nav-reserve:hover { background: var(--color-accent-hover) !important; }

/* --- ヘッダードロップダウン（階層メニュー） --- */
.dowha-nav-list > li { position: relative; }

.dowha-nav-list .sub-menu {
  display: none;
  position: absolute;
  top: 100%; /* gap なし — li の直下に配置してホバー継続 */
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 10px 0 6px; /* padding-top で視覚的な余白を確保 */
  list-style: none;
  margin: 0;
  z-index: 200;
}

/* li の下辺を透明な橋でつないでマウスが離れないようにする */
.dowha-nav-list > li.menu-item-has-children::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.dowha-nav-list > li.menu-item-has-children:hover > .sub-menu { display: block; }
.dowha-nav-list .sub-menu li { width: 100%; }

.dowha-nav-list .sub-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  white-space: nowrap;
  color: var(--color-text) !important;
  border-bottom: 1px solid var(--color-border);
}
.dowha-nav-list .sub-menu li:last-child a { border-bottom: none; }
.dowha-nav-list .sub-menu a:hover {
  background: var(--color-bg-gray);
  color: var(--color-accent) !important;
}

/* ダーク背景ヘッダー（内部ページ）のサブメニュー */
.dowha-inner-page .dowha-header .dowha-nav-list .sub-menu,
.dowha-header--fixed .dowha-nav-list .sub-menu {
  background: #222;
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.dowha-inner-page .dowha-header .dowha-nav-list .sub-menu a,
.dowha-header--fixed .dowha-nav-list .sub-menu a {
  color: rgba(255,255,255,0.8) !important;
  border-color: rgba(255,255,255,0.08);
}
.dowha-inner-page .dowha-header .dowha-nav-list .sub-menu a:hover,
.dowha-header--fixed .dowha-nav-list .sub-menu a:hover {
  background: rgba(255,255,255,0.06);
  color: #c8a45c !important;
}

.dowha-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.dowha-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: all var(--transition);
}

/* --- Buttons --- */
.dowha-btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  border: none;
  font-family: var(--font-jp);
  text-decoration: none;
}

.dowha-btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.dowha-btn-primary:hover { background: var(--color-accent-hover); color: var(--color-white); }

.dowha-btn-outline {
  background: transparent;
  border: 1px solid #c9a96e;
}

.dowha-btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.dowha-btn-outline-dark {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.dowha-btn-outline-dark:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.dowha-btn-lg { padding: 16px 40px; font-size: 15px; }

/* --- Hero --- */
.dowha-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  overflow: hidden;
}

.dowha-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}

/* --- Hero 背景スライドショー --- */
.dowha-hero-slides {
  position: absolute;
  inset: 0;
}

.dowha-hero-slide {
  position: absolute;
  inset: 0;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

/* スマホ幅では縦向き画像（--img-portrait）を優先。未設定なら横向き（--img）にフォールバック */
@media (max-width: 768px) {
  .dowha-hero-slide { background-image: var(--img-portrait, var(--img)); }
}

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

.dowha-hero-slide-label {
  position: absolute;
  top: calc(var(--header-h) + 24px);
  right: 24px;
  z-index: 1;
  color: var(--color-white);
  font-size: 12px;
  letter-spacing: 2px;
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  background: rgba(0,0,0,0.25);
}

.dowha-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  padding: 0 24px;
}

.dowha-hero-sub {
  font-size: 16px;
  letter-spacing: 6px;
  margin-bottom: 16px;
  font-weight: 300;
  color: var(--color-white);
}

.dowha-hero-title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 24px;
  line-height: 1.3;
  color: var(--color-white);
}

.dowha-hero-desc {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 40px;
  font-weight: 300;
  opacity: 0.9;
  color: var(--color-white);
}

.dowha-hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.dowha-hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  text-align: center;
  z-index: 1;
}

.dowha-hero-scroll span {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 8px;
}

.dowha-hero-scroll-line {
  width: 1px;
  height: 40px;
  background: var(--color-white);
  margin: 0 auto;
  animation: dowhaScrollLine 1.5s infinite;
}

@keyframes dowhaScrollLine {
  0%   { opacity: 1; transform: scaleY(1); }
  50%  { opacity: 0.5; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* --- Section --- */
.dowha-section {
  padding: 60px 0;
}

.dowha-section-gray { background: var(--color-bg-gray); }

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

.dowha-section-label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--color-accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.dowha-section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-primary);
}

.dowha-section-desc {
  margin-top: 12px;
  font-size: 14px;
  color: var(--color-text-light);
}

/* --- Concept --- */
.dowha-concept-text p {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 2;
  color: var(--color-text-light);
}

.dowha-concept-text--full {
  max-width: 760px;
  margin: 0 auto;
}

.dowha-image-placeholder {
  background: var(--color-bg-gray);
  border-radius: 8px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 14px;
  border: 1px dashed var(--color-border);
}

/* --- Studios (2店舗カード) --- */
.dowha-studio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.dowha-studio-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.dowha-studio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.dowha-studio-card-image { position: relative; }

.dowha-studio-card-placeholder {
  background: linear-gradient(135deg, #e8e4dc, #d4cfc5);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

.dowha-studio-card-placeholder.s2 {
  background: linear-gradient(135deg, #dde4e8, #c5cfd4);
}

/* --- 詳細ページ用 写真プレースホルダー（画像が届くまでの仮表示） --- */
.dowha-detail-photo-placeholder {
  background: linear-gradient(135deg, #e8e4dc, #d4cfc5);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
  border-radius: 8px;
  margin: 24px 0;
}

/* --- スタジオ写真ギャラリー --- */
.dowha-studio-gallery-main {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.dowha-studio-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

/* 矢印ナビゲーション */
.dowha-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(0,0,0,0.25);
  border: none;
  color: #fff;
  width: 32px;
  height: 54px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.18s;
  user-select: none;
}
.dowha-gallery-arrow:hover { background: rgba(0,0,0,0.48); }
.dowha-gallery-prev { left: 6px; }
.dowha-gallery-next { right: 6px; }

.dowha-studio-gallery-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: var(--color-bg-gray);
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.dowha-studio-gallery-thumbs::-webkit-scrollbar { display: none; }

.dowha-gallery-thumb {
  width: 56px;
  height: 40px;
  flex-shrink: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: none;
}

.dowha-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dowha-gallery-thumb.active { border-color: var(--color-accent); }

/* --- 機材ギャラリー（表参道／代々木 共通） ---
   商品写真は余白のある構図が多いため object-fit:cover だと欠ける。
   contain + 背景色で全体を必ず表示する。 */
.dowha-kizai-gallery .dowha-studio-gallery-main {
  aspect-ratio: 4/3;
  background: var(--color-bg-gray);
}
.dowha-kizai-gallery .dowha-studio-gallery-main img {
  object-fit: contain;
  padding: 20px;
  box-sizing: border-box;
}
.dowha-kizai-gallery .dowha-gallery-thumb {
  background: var(--color-bg-gray);
}
.dowha-kizai-gallery .dowha-gallery-thumb img {
  object-fit: contain;
  padding: 3px;
  box-sizing: border-box;
}

/* --- 画像拡大ライトボックス --- */
.dowha-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,0.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition);
}

.dowha-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.dowha-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
}

.dowha-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.dowha-studio-card-body { padding: 28px; }

.dowha-studio-card-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.dowha-studio-card-address {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.dowha-studio-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  list-style: none;
  padding: 0;
}

.dowha-studio-card-features li {
  font-size: 12px;
  padding: 4px 12px;
  background: var(--color-bg-gray);
  border-radius: 20px;
  color: var(--color-text-light);
}

.dowha-studio-card-price {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
  row-gap: 4px;
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.dowha-studio-card-price p {
  display: contents;
}

.dowha-price-value {
  font-size: 18px;
  color: var(--color-accent);
  font-weight: 700;
}

.dowha-studio-card-actions { display: flex; gap: 12px; }
.dowha-studio-card-actions .dowha-btn { flex: 1; text-align: center; }

/* --- Reasons --- */
.dowha-reasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.dowha-reason-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--color-bg-gray);
  border-radius: 8px;
}

.dowha-reason-icon { font-size: 36px; margin-bottom: 16px; }

.dowha-reason-card-image {
  margin: -32px -20px 16px;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}
.dowha-reason-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.dowha-reason-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.dowha-reason-card p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- Service --- */
.dowha-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dowha-service-card {
  padding: 32px 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: all var(--transition);
}

.dowha-service-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(200,164,92,0.1);
}

.dowha-service-card-icon { font-size: 32px; margin-bottom: 16px; }

.dowha-service-card-image {
  margin: -32px -24px 16px;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}
.dowha-service-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.dowha-service-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-primary);
}

/* サービス名の隣に付ける店舗限定バッジ */
.dowha-service-card-badge {
  flex-shrink: 0;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.dowha-service-card p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.dowha-service-card-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
}

/* --- Price Table --- */
.dowha-price-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}

.dowha-price-tab {
  padding: 12px 40px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-jp);
}

.dowha-price-tab:first-child { border-radius: 4px 0 0 4px; }
.dowha-price-tab:last-child  { border-radius: 0 4px 4px 0; }

.dowha-price-tab.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.dowha-price-content { display: none; }
.dowha-price-content.active { display: block; }

.dowha-price-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.dowha-price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}

.dowha-price-table th:first-child,
.dowha-price-table td:first-child { width: 58%; }


.dowha-price-table th,
.dowha-price-table td {
  padding: 16px 20px;
  text-align: left;
  border: 1px solid var(--color-border);
}

.dowha-price-table thead th {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.dowha-price-table tbody tr:hover { background: var(--color-bg-gray); }

.dowha-price-cell {
  font-weight: 700;
  color: var(--color-accent);
}

.dowha-price-note {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--color-bg-gray);
  border-radius: 4px;
  font-size: 13px;
  color: var(--color-text-light);
}

.dowha-price-note p { margin-bottom: 4px; }
.dowha-price-note p:last-child { margin-bottom: 0; }

.dowha-price-btn-wrap {
  margin-top: 28px;
  text-align: center;
}

.dowha-price-sp-note {
  display: none;
}

/* --- Access --- */
.dowha-access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.dowha-access-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

.dowha-access-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-primary);
}

/* Google Maps iframe ラッパー */
.dowha-access-map { margin-bottom: 16px; }
.dowha-access-map iframe { width: 100%; border-radius: 8px; display: block; }

.dowha-access-map-placeholder {
  background: var(--color-bg-gray);
  border-radius: 4px;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 14px;
  border: 1px dashed var(--color-border);
  margin-bottom: 20px;
}

.dowha-access-info p {
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--color-text);
}

/* --- FAQ --- */
.dowha-faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.dowha-faq-item { border-bottom: 1px solid var(--color-border); }
/* 一番下の項目は線なし（FAQページは後ろに自動の空<p>が付くため :last-child ではなく :last-of-type） */
.dowha-faq-list > .dowha-faq-item:last-of-type { border-bottom: none; }

.dowha-faq-question {
  width: 100%;
  padding: 20px 40px 20px 0;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  position: relative;
  font-family: var(--font-jp);
  color: var(--color-primary);
  transition: color var(--transition);
}

.dowha-faq-question:hover { color: var(--color-accent); }

.dowha-faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 300;
  color: var(--color-accent);
  transition: transform var(--transition);
}

.dowha-faq-item.open .dowha-faq-question::after { content: '−'; }

.dowha-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: #666;
  line-height: 1.9;
  font-size: 14px !important;
}

.dowha-faq-item.open .dowha-faq-answer {
  max-height: 1000px;
  padding-bottom: 20px;
}

.dowha-faq-answer *,
.dowha-faq-answer p,
.dowha-faq-answer li,
.dowha-faq-answer span {
  font-size: 14px !important;
  color: inherit;
  line-height: inherit;
}

.dowha-faq-answer p { margin: 0 0 16px; }
.dowha-faq-answer p:last-child { margin-bottom: 0; }

.dowha-faq-answer p:last-child { margin-bottom: 0; }

.dowha-faq-answer strong {
  color: #222;
  font-weight: 700;
}

.dowha-faq-answer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- CTA --- */
.dowha-cta {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  text-align: center;
  color: var(--color-white);
  padding: 100px 0;
}

.dowha-cta h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 2px;
  color: var(--color-white);
}

.dowha-cta p {
  font-size: 15px;
  opacity: 0.8;
  margin-bottom: 32px;
  color: var(--color-white);
}

.dowha-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer --- */
.dowha-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.dowha-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dowha-footer-brand .dowha-logo-main {
  color: var(--color-white);
  display: block;
  margin-bottom: 12px;
}

.dowha-footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}

.dowha-footer-sns {
  margin-top: 16px;
  display: flex;
  gap: 16px;
}

.dowha-footer-sns a {
  font-size: 13px;
  transition: color var(--transition);
  color: rgba(255,255,255,0.7);
}

.dowha-footer-sns a:hover { color: var(--color-accent); }

.dowha-footer-links h4 {
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.dowha-footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dowha-footer-links li { margin-bottom: 8px; }

.dowha-footer-links a {
  font-size: 13px;
  transition: color var(--transition);
  color: rgba(255,255,255,0.7);
}

.dowha-footer-links a:hover { color: var(--color-accent); }

.dowha-footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .dowha-reasons-grid,
  .dowha-service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1221px) {
  /* 広い画面ではナビを常に表示、ハンバーガーは隠す */
  .dowha-hamburger { display: none !important; }
  .dowha-nav { position: static !important; width: auto !important; height: auto !important;
               background: transparent !important; padding: 0 !important; right: auto !important; }
  .dowha-nav-list { flex-direction: row !important; gap: 20px !important; }
}

@media (max-width: 1220px) {
  .dowha-hamburger { display: flex; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .sp-only { display: inline; }

  /* ドロワーは right:-100% の画面外配置ではなく transform で隠す。
     負のオフセット方式はモバイルブラウザが初期スケール計算時に
     「はみ出しコンテンツ」と誤認してページ全体がズームアウトされるため。 */
  .dowha-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-white);
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    transform: translateX(110%);
    transition: transform var(--transition);
    z-index: 1000;
    padding: 80px 32px 32px;
  }

  .dowha-nav.open { transform: translateX(0); }

  .dowha-nav-list {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }

  .dowha-nav-list li { width: 100%; }

  .dowha-nav-list a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--color-border);
  }

  .dowha-nav-reserve { text-align: center; margin-top: 8px; }

  .dowha-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .dowha-hamburger.open span:nth-child(2) { opacity: 0; }
  .dowha-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .dowha-hero { min-height: 500px; }
  .dowha-hero-title { font-size: 28px; letter-spacing: 2px; }
  .dowha-hero-desc { font-size: 14px; }
  .dowha-hero-sub { font-size: 13px; letter-spacing: 4px; }

  .dowha-section { padding: 60px 0; }
  .dowha-section-title { font-size: 24px; }
  .dowha-section-header { margin-bottom: 40px; }

  .dowha-concept-grid { grid-template-columns: 1fr; gap: 32px; }
  .dowha-studio-cards { grid-template-columns: 1fr; }
  .dowha-reasons-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .dowha-reason-card { padding: 24px 16px; }
  .dowha-service-grid { grid-template-columns: 1fr; }

  .dowha-price-tabs { width: 100%; }
  .dowha-price-tab { flex: 1; padding: 12px 16px; font-size: 13px; }

  .dowha-price-sp-note {
    display: block;
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 12px;
  }

  .dowha-price-table {
    table-layout: auto;
  }

  .dowha-price-table thead { display: none; }

  .dowha-price-table tbody tr {
    display: block;
    padding: 14px 16px;
    margin-bottom: 8px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
  }

  .dowha-price-table tbody td {
    display: block;
    padding: 2px 0;
    border: none;
    font-size: 14px;
    width: 100%;
  }

  .dowha-price-table tbody td::before { display: none; }

  .dowha-price-table tbody td:first-child {
    width: 100%;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 4px;
    font-size: 14px;
  }

  .dowha-price-table tbody .dowha-price-cell {
    font-size: 15px;
  }

  /* キャンセル料金・背景紙一覧などの短い2列表は、料金プラン表のような
     カード分割ではなく通常の表としてコンパクトに表示する。
     使い方: <table class="dowha-price-table dowha-price-table--simple"> */
  .dowha-price-table.dowha-price-table--simple {
    display: table;
  }
  .dowha-price-table.dowha-price-table--simple tbody tr {
    display: table-row;
    padding: 0;
    margin-bottom: 0;
    border: none;
    border-radius: 0;
  }
  .dowha-price-table.dowha-price-table--simple tbody tr:not(:last-child) td {
    border-bottom: 1px solid var(--color-border);
  }
  .dowha-price-table.dowha-price-table--simple tbody td {
    display: table-cell;
    width: auto;
    padding: 12px 14px;
    vertical-align: middle;
  }
  .dowha-price-table.dowha-price-table--simple tbody td:first-child {
    width: 55%;
    margin-bottom: 0;
  }
  .dowha-price-table.dowha-price-table--simple tbody .dowha-price-cell {
    font-size: 14px;
    text-align: right;
  }

  .dowha-access-grid { grid-template-columns: 1fr; }
  .dowha-cta { padding: 60px 0; }
  .dowha-cta h2 { font-size: 22px; }
  /* フッター（スマホ）：ロゴ部分を中央・リンクを2列にして縦の長さを詰める */
  .dowha-footer { padding-top: 44px; }
  .dowha-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; padding-bottom: 32px; }
  .dowha-footer-brand { grid-column: 1 / -1; text-align: center; }
  .dowha-footer-brand img { margin-left: auto; margin-right: auto; }
  .dowha-footer-sns { justify-content: center; }
  .dowha-footer-links { text-align: center; }
  .dowha-footer-links h4 { margin-bottom: 12px; }
  /* 右下の reCAPTCHA マークがコピーライトに重ならないよう下に余白 */
  .dowha-footer-bottom { padding: 20px 0 88px; }
}

@media (max-width: 480px) {
  .dowha-hero-title { font-size: 24px; }
  .dowha-hero-buttons { flex-direction: column; }
  .dowha-hero-buttons .dowha-btn { width: 100%; }
  .dowha-reasons-grid { grid-template-columns: 1fr; }
  .dowha-studio-card-actions { flex-direction: column; }
  .dowha-studio-card-actions .dowha-btn { text-align: center; }
  .dowha-cta-buttons { flex-direction: column; align-items: center; }
  .dowha-cta-buttons .dowha-btn { width: 100%; max-width: 300px; }
}

/* ============================================================
   内部ページ共通スタイル
   ============================================================ */

/* ヘッダー：内部ページでは常に背景あり */
.dowha-inner-page .dowha-header,
.dowha-header--fixed {
  background: #1a1a1a;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}

/* 内部ページ（ダーク背景）でのヘッダー文字色を白に */
.dowha-inner-page .dowha-header .dowha-logo-main { color: #fff; }
.dowha-inner-page .dowha-header .dowha-nav-list a { color: rgba(255,255,255,0.85); }
.dowha-inner-page .dowha-header .dowha-nav-list a:hover { color: #c8a45c; }
.dowha-inner-page .dowha-header .dowha-nav-contact {
  border-color: rgba(255,255,255,0.35) !important;
  color: rgba(255,255,255,0.85) !important;
}
.dowha-inner-page .dowha-header .dowha-nav-contact:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: #fff !important;
  color: #fff !important;
}
.dowha-inner-page .dowha-header .dowha-hamburger span { background: #fff; }

/* メインコンテンツのヘッダー分余白 */
.dowha-page-main {
  padding-top: var(--header-h);
  margin-top: 0 !important;
}
body.admin-bar .dowha-page-main { padding-top: calc(var(--header-h) + 32px); }

/* ページヒーロー（タイトルバー）— ライト調 */
.dowha-page-hero {
  background: #f4f4f2;
  padding: 28px 0 20px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.dowha-page-hero__title {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}

.dowha-page-hero__cat {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a0763e;
  margin: 0 0 8px;
}

.dowha-page-hero__meta {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 10px;
}

/* パンくずリスト */
.dowha-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
}

.dowha-breadcrumb a { color: #6b7280; text-decoration: none; }
.dowha-breadcrumb a:hover { color: #a0763e; }
.dowha-breadcrumb span { color: #9ca3af; }

/* ページ本文エリア — 白背景 */
.dowha-page-body {
  padding: 48px 20px 80px;
  max-width: 860px;
  background: #fff;
}

/* ─── 固定ページ コンテンツ（白背景・黒文字）─── */
.dowha-page-content {
  color: #2d2d2d;
  font-size: 16px;
  line-height: 1.9;
}

.dowha-page-content h2:not(.sdr-section-title) {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 40px 0 14px;
  padding: 10px 16px;
  background: #fdf8ef;
  border-left: 4px solid #c8a45c;
  border-radius: 0 4px 4px 0;
}

.dowha-page-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e5e7eb;
}

.dowha-page-content h4 { font-size: 15px; font-weight: 700; color: #1a1a1a; margin: 40px 0 10px; }

.dowha-page-content p  { margin: 0 0 18px; color: #374151; }
.dowha-page-content ul,
.dowha-page-content ol { list-style: revert; padding-left: 1.6em; margin: 0 0 18px; color: #374151; }
.dowha-page-content li { margin-bottom: 6px; }

.dowha-page-content a {
  color: #a0763e !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dowha-page-content a:hover { color: #c8a45c; }

.dowha-page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  display: block;
  overflow-x: auto;
}

.dowha-page-content th,
.dowha-page-content td {
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  text-align: left;
  color: #374151;
  white-space: nowrap;
}

.dowha-page-content th {
  background: #fdf8ef;
  color: #a0763e;
  font-weight: 600;
}

.dowha-page-content tr:nth-child(even) td { background: #fafaf9; }

.dowha-page-content img { max-width: 100%; height: auto; border-radius: 6px; margin: 8px 0; }

/* 上記の汎用画像ルール（height:auto / margin:8px 0）が、固定ページ本文に
   埋め込まれたスタジオ／機材ギャラリーの img まで上書きしてしまい、
   サムネイルの高さが効かず overflow:hidden で写真が見切れる不具合が発生していた。
   ギャラリー内の img はここで確実に元の指定へ戻す。 */
.dowha-page-content .dowha-studio-gallery-main img,
.dowha-page-content .dowha-gallery-thumb img {
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
}

/* --- 店舗代表写真（特色セクション上部） --- */
.dowha-store-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 0 32px !important;
  display: block;
}

/* --- 店舗特色カードグリッド --- */
.dowha-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 0 24px;
  list-style: none !important;
  padding: 0 !important;
}

.dowha-feature-card {
  background: var(--color-bg-gray);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dowha-feature-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.dowha-feature-card-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
  margin: 0 !important;
}

.dowha-feature-card-body {
  padding: 16px;
  font-size: 13px;
  line-height: 1.75;
  color: #555;
  flex: 1;
}

.dowha-feature-card-body strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.dowha-page-content iframe {
  max-width: 100%;
  display: block;
  margin: 16px 0;
  border-radius: 8px;
}

/* WP固有クラス対応 */
.dowha-page-content .design_headline2 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #1a1a1a ;
  margin: 40px 0 14px !important;
  padding: 10px 16px !important;
  background: #fdf8ef;
  border-left: 4px solid #c8a45c !important;
  border-bottom: none !important;
  border-radius: 0 4px 4px 0 !important;
}
.dowha-page-content .design_headline2 .title { color: #1a1a1a; }

.dowha-page-content .table-scroll {
  display: block;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* ブログ記事本文 — 白背景・黒文字 */
.dowha-post-content { max-width: 760px; background: #fff; }

.dowha-post-body {
  color: #374151;
  font-size: 16px;
  line-height: 1.9;
}

.dowha-post-body h2 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin: 40px 0 14px !important;
  padding: 10px 16px !important;
  background: #fdf8ef !important;
  border-left: 4px solid #c8a45c !important;
  border-bottom: none !important;
  border-radius: 0 4px 4px 0 !important;
}

.dowha-post-body h3 {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  background: transparent !important;
  margin: 28px 0 10px !important;
  padding: 0 0 6px !important;
  border: none !important;
  border-bottom: 2px solid #e5e7eb !important;
}

.dowha-post-body p  { margin: 0 0 18px; color: #374151; }
.dowha-post-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }
.dowha-post-body a  { color: #a0763e; text-underline-offset: 3px; }
.dowha-post-body a:hover { color: #c8a45c; }

/* 前後記事ナビ */
.dowha-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid #e5e7eb;
}

.dowha-post-nav__prev,
.dowha-post-nav__next {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: #1a1a1a;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.dowha-post-nav__next { text-align: right; grid-column: 2; }
.dowha-post-nav__prev span,
.dowha-post-nav__next span { font-size: 12px; color: #6b7280; }
.dowha-post-nav__prev strong,
.dowha-post-nav__next strong { font-size: 14px; color: #e5e7eb; line-height: 1.5; }
.dowha-post-nav__prev:hover,
.dowha-post-nav__next:hover { background: #242424; }

@media (max-width: 600px) {
  .dowha-post-nav { grid-template-columns: 1fr; }
  .dowha-post-nav__next { grid-column: 1; text-align: left; }
}

/* ブログ一覧グリッド */
.dowha-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

@media (max-width: 768px) { .dowha-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .dowha-blog-grid { grid-template-columns: 1fr; } }

.dowha-blog-card {
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s;
}

.dowha-blog-card:hover { transform: translateY(-4px); }

.dowha-blog-card__thumb { display: block; aspect-ratio: 16/9; overflow: hidden; }
.dowha-blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.dowha-blog-card:hover .dowha-blog-card__thumb img { transform: scale(1.04); }

.dowha-blog-card__body { padding: 20px; }
.dowha-blog-card__cat  { display: inline-block; font-size: 11px; color: #c9a96e; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.dowha-blog-card__title { font-size: 15px; font-weight: 700; color: #fff; margin: 0 0 8px; line-height: 1.5; }
.dowha-blog-card__title a { color: inherit; text-decoration: none; }
.dowha-blog-card__date  { font-size: 12px; color: #6b7280; display: block; margin-bottom: 10px; }
.dowha-blog-card__excerpt { font-size: 13px; color: #9ca3af; line-height: 1.7; margin-bottom: 14px; }
.dowha-blog-card__more { font-size: 13px; color: #c9a96e; text-decoration: none; }
.dowha-blog-card__more:hover { color: #e8c98e; }

/* ページネーション */
.dowha-pagination { display: flex; justify-content: center; }
.dowha-pagination .page-numbers {
  display: inline-flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.dowha-pagination .page-numbers li a,
.dowha-pagination .page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  color: #9ca3af;
  background: #1a1a1a;
  transition: background 0.2s, color 0.2s;
}
.dowha-pagination .page-numbers li a:hover { background: #2a2a2a; color: #fff; }
.dowha-pagination .page-numbers li .current { background: #c9a96e; color: #111; font-weight: 700; }

.dowha-no-posts { text-align: center; color: #6b7280; padding: 64px 0; }

/* 特色グリッド レスポンシブ：3列 → 1列（2列にすると3枚目が1枚だけ残り見にくいため） */
@media (max-width: 640px) {
  .dowha-feature-grid { grid-template-columns: 1fr; gap: 16px; }
}
/* 1列でも画面に余裕がある幅は「写真左・文章右」の横並びにして縦長になりすぎないようにする */
@media (min-width: 481px) and (max-width: 640px) {
  .dowha-feature-card { flex-direction: row; }
  .dowha-feature-card-img { flex: 0 0 42%; aspect-ratio: auto; min-height: 150px; }
  .dowha-feature-card-body { align-self: center; }
}

/* テキストリンク（ページ内アンカー等） */
.dowha-text-link {
  display: block;
  text-align: center;
  margin-top: 4px;
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Google Maps ショートコード */
.dowha-map-wrap { margin: 20px 0 8px; }
.dowha-map-address {
  margin-top: 10px;
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.7;
}

/* ============================================================
   固定ページ WordPress コンテンツ自動スタイリング
   ============================================================ */

.dowha-page-content,
.dowha-post-body {
  /* リセットを上書きしてWP標準コンテンツを読めるようにする */
  ul, ol { list-style: revert; padding-left: 1.8em; margin: 0 0 1.2em; }
  li { margin-bottom: 6px; line-height: 1.8; }
}

/* h2 見出し（.design_headline2 含む） */
.dowha-page-content .design_headline2,
.dowha-page-content h2:not(.sdr-section-title) {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 48px 0 16px;
  padding: 10px 16px 10px 20px;
  background: #fdf8ef;
  border-left: 4px solid #c9a96e;
  border-radius: 0 6px 6px 0;
}

.dowha-page-content .design_headline2 .title { display: inline; }

/* h3 見出し */
.dowha-page-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: #333;
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e5e7eb;
}

/* テーブル（.table-scroll 含む）横スクロール対応 */
.dowha-page-content .table-scroll,
.dowha-page-content table {
  display: block;
  overflow-x: auto;
  overflow-y: visible;
  height: auto !important;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.dowha-page-content table td,
.dowha-page-content table th {
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  color: #374151;
  white-space: nowrap;
}

.dowha-page-content table thead th,
.dowha-page-content table tr:first-child th {
  background: #fdf8ef;
  color: #a0763e;
  font-weight: 600;
}
.dowha-page-content table tbody tr:nth-child(even) td { background: #fafaf9; }

/* リスト */
.dowha-page-content ol,
.dowha-page-content ul {
  list-style: revert;
  padding-left: 1.8em;
  margin: 12px 0 20px;
  color: #666;
}

.dowha-page-content li { margin-bottom: 8px; line-height: 1.8; }

/* iframe（Googleカレンダー等）レスポンシブ */
.dowha-page-content iframe {
  max-width: 100%;
  display: block;
  margin: 16px 0;
  border-radius: 8px;
}

/* 段落 */
.dowha-page-content p { margin: 0 0 16px; color: #666; line-height: 1.9; }

/* テキスト中央寄せ
   WPエディタは text-align:center（スペースなし）と text-align: center（スペースあり）の
   両方を出力しうるため、属性セレクタは必ず両パターン用意する */
.dowha-page-content [style*="text-align: center"],
.dowha-page-content [style*="text-align:center"] { text-align: center !important; }

/* img はグローバルリセットで display:block になっており、
   text-align:center の対象にならず左寄りになってしまう。
   中央寄せ指定コンテナ内の a / img は inline-block に戻して中央寄せを効かせる。 */
.dowha-page-content [style*="text-align: center"] a,
.dowha-page-content [style*="text-align: center"] img,
.dowha-page-content [style*="text-align:center"] a,
.dowha-page-content [style*="text-align:center"] img {
  display: inline-block;
}

/* 区切り（&nbsp;のみの行） */
.dowha-page-content br + br { display: block; margin: 8px 0; content: ''; }

/* ============================================================
   モバイル全体修正
   ============================================================ */

/* 横スクロール防止
   以前は position:sticky を壊さないよう overflow-x:clip にしていたが、
   実際には sticky は使用しておらず、clip では横スクロール/はみ出しを
   確実に防げないケースがあったため、より確実な hidden に変更 */
html, body { overflow-x: hidden; max-width: 100%; }
/* PC幅では body を clip にする。hidden だと body がスクロール領域扱いになり、
   予約ページの空き状況カレンダー（position:sticky）が追従しなくなるため。
   はみ出し対策が必要だったのはスマホ幅なので、スマホは hidden のまま。 */
@media (min-width: 861px) {
  body { overflow-x: clip; }
}

/* reCAPTCHA バッジのはみ出し対策
   バッジは折りたたみ時に right:-186px で画面右外へ突き出す。
   本来は position:fixed（レイアウト非干渉）だが、このサイトでは
   absolute で注入されるため文書幅が常に +186px 広がり、
   全ページで横スクロール／モバイルのズームアウトを引き起こしていた。
   fixed を強制してレイアウトから切り離す（インラインstyleより優先させるため !important）。 */
.grecaptcha-badge { position: fixed !important; }

/* 内部ページ共通 モバイル */
@media (max-width: 768px) {
  .dowha-page-main    { padding-top: 60px; }
  body.admin-bar .dowha-page-main { padding-top: 92px; }

  .dowha-page-hero    { padding: 40px 0 28px; }
  .dowha-page-hero__title { font-size: clamp(20px, 5vw, 28px); }

  .dowha-breadcrumb   { font-size: 11px; flex-wrap: wrap; }

  .dowha-page-body    { padding: 40px 16px 64px; }
  .dowha-page-content { font-size: 15px; }
  .dowha-page-content h2:not(.sdr-section-title) { font-size: 18px; }
  .dowha-page-content h3 { font-size: 16px; }
  .dowha-page-content table { font-size: 14px; }
  .dowha-page-content table th,
  .dowha-page-content table td { white-space: normal; word-break: break-word; padding: 10px 12px; }
  .dowha-price-table tbody td { border: none !important; }
  .dowha-page-content table tbody tr:nth-child(even) td { background: transparent; }
  .dowha-page-content table thead th,
  .dowha-page-content table tr:first-child th {
    background: #b8843b;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }
  .dowha-page-content table tbody td { font-size: 14px; line-height: 1.8; color: #1a1a1a; }

  /* 店舗ページの料金表（スマホ）:
     表参道ページの無人レンタルプラン表と同じ
     「通常の罫線テーブル・中央揃え」の見た目に統一する */
  .dowha-page-content .dowha-price-table {
    display: table;
  }
  .dowha-page-content .dowha-price-table tbody tr {
    display: table-row;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
  }
  .dowha-page-content .dowha-price-table tbody td {
    display: table-cell;
    width: auto;
    padding: 10px 12px;
    border: 1px solid var(--color-border) !important;
    text-align: center;
    vertical-align: middle;
    font-size: 13px;
    line-height: 1.8;
    color: #1a1a1a;
  }
  .dowha-page-content .dowha-price-table tbody td:first-child {
    width: 40%;
    margin-bottom: 0;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
  }
  .dowha-page-content .dowha-price-table tbody .dowha-price-cell {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
  }

  .dowha-post-body    { font-size: 15px; }
  .dowha-post-body h2 { font-size: 18px; }
  .dowha-post-nav     { grid-template-columns: 1fr; }
  .dowha-post-nav__next { grid-column: 1; text-align: left; }

  .dowha-blog-grid    { grid-template-columns: 1fr; }
}

/* ヘッダーナビ：内部ページでも動作するよう補強 */
.dowha-nav {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 1220px) {
  .dowha-header-inner { position: relative; }

  /* 上と同じく transform 方式で隠す（右画面外の負オフセットはズームアウトの原因になる） */
  .dowha-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 80vw);
    height: 100vh;
    background: #111;
    padding: 80px 32px 40px;
    transform: translateX(110%);
    transition: transform 0.3s ease;
    z-index: 998;
    overflow-y: auto;
  }

  .dowha-nav.is-open {
    transform: translateX(0);
  }

  .dowha-nav-list {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }

  .dowha-nav-list li { width: 100%; }

  .dowha-nav-list a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #fff !important;
  }

  .dowha-nav-contact,
  .dowha-nav-reserve {
    margin-top: 8px;
    text-align: center;
    border: none !important;
    border-radius: 6px;
    padding: 12px 20px !important;
  }

  .dowha-hamburger {
    display: flex;
    z-index: 999;
    position: relative;
  }
}

/* SOLARIS との色衝突を防ぐ：内部ページの本文エリア */
.dowha-inner-page .entry-content,
.dowha-inner-page .post-content,
.dowha-inner-page article { color: inherit; }

/* ============================================================
   SOLARIS グローバルCSS「a { color:#fff !important }」の上書き
   .dowha-* 内のリンクはすべてここで色を再定義する
   ============================================================ */

/* パンくずリスト */
.dowha-breadcrumb a        { color: #6b7280 !important; }
.dowha-breadcrumb a:hover  { color: #a0763e !important; }
.dowha-breadcrumb span     { color: #9ca3af; }

/* 本文リンク（投稿・固定ページ） */
.dowha-post-body a         { color: #a0763e !important; }
.dowha-post-body a:hover   { color: #c8a45c !important; }
.dowha-page-content a      { color: #a0763e !important; }
.dowha-page-content a:hover{ color: #c8a45c !important; }

/* SOLARIS テンプレート経由の本文リンク */
.dowha-inner-page .post_content a      { color: #a0763e !important; }
.dowha-inner-page .post_content a:hover{ color: #c8a45c !important; }

/* ボタンクラスはリンク色・下線の上書きを除外 */
.dowha-page-content a.dowha-btn,
.dowha-post-body a.dowha-btn,
.dowha-inner-page .post_content a.dowha-btn {
  color: #fff !important;
  text-decoration: none !important;
}
.dowha-page-content a.dowha-btn:hover,
.dowha-post-body a.dowha-btn:hover,
.dowha-inner-page .post_content a.dowha-btn:hover {
  color: #fff !important;
  text-decoration: none !important;
}

/* ブログカードリンク */
.dowha-blog-card__title a  { color: #fff !important; }  /* カード内タイトルは白でOK */
.dowha-blog-card__more     { color: #c9a96e !important; }
.dowha-blog-card__more:hover { color: #e8c98e !important; }

/* フッターリンク（暗背景なので白のまま） */
.dowha-footer a            { color: rgba(255,255,255,0.7) !important; }
.dowha-footer a:hover      { color: #c8a45c !important; }
.dowha-footer-sns a        { color: rgba(255,255,255,0.7) !important; }

/* ヘッダーナビリンク（予約・お問い合わせボタンは除外） */
.dowha-nav-list .sub-menu a { color: var(--color-text) !important; }
.dowha-inner-page .dowha-header .dowha-nav-list .sub-menu a { color: rgba(255,255,255,0.8) !important; }

/* SOLARIS 固有ヘッダー（#header）を内部ページで非表示 — 子テーマのカスタムヘッダーを使用 */
.dowha-inner-page #header,
.dowha-inner-page #header_message { display: none !important; }

/* ロゴ画像 */
.dowha-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .dowha-logo-img { height: 28px; }
}

/* ============================================================
   SOLARIS FAQ クラスの上書き（[sc_faq] が残っているページ用）
   ============================================================ */

.faq_list .question {
  background: #f7f7f5 !important;
  color: #1a1a1a !important;
  border-bottom: 1px solid #e5e7eb !important;
}

.faq_list .question.active,
.faq_list .question:hover {
  color: #c8a45c !important;
  background: #fdf8ef !important;
}

.faq_list .answer {
  background: #fff !important;
  color: #374151 !important;
}

/* SOLARIS パンくず (#bread_crumb) の色 */
#bread_crumb,
#bread_crumb li.last {
  color: #6b7280 !important;
}

#bread_crumb a {
  color: #6b7280 !important;
}

/* SOLARIS ページ本文エリアの背景を白に */
#index_content_builder,
.cb_tab_content {
  background: #fff !important;
}

/* ============================================================
   SOLARIS テンプレート使用ページへのスタイル適用
   （page.php が SOLARIS 側で処理される場合のフォールバック）
   ============================================================ */

/* SOLARIS の main_contents をページヘッダー分下げる */
.dowha-inner-page #page_header { display: none !important; }

.dowha-inner-page #main_contents {
  background: #fff;
  min-height: 60vh;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 80px;
}

.dowha-inner-page #main_col {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.dowha-inner-page #sidebar { display: none; }

/* SOLARIS .post_content 内コンテンツを白背景・黒文字で統一 */
.dowha-inner-page .post_content {
  color: #374151;
  font-size: 16px;
  line-height: 1.9;
  background: #fff;
}

.dowha-inner-page .post_content h2 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  background: #fdf8ef !important;
  border-left: 4px solid #c8a45c !important;
  border-bottom: none !important;
  border-radius: 0 4px 4px 0 !important;
  margin: 40px 0 14px !important;
  padding: 10px 16px !important;
}

.dowha-inner-page .post_content h3 {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #333 !important;
  background: transparent !important;
  border-left: none !important;
  border-bottom: 2px solid #e5e7eb !important;
  margin: 28px 0 10px !important;
  padding: 0 0 6px !important;
}

.dowha-inner-page .post_content h4 {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin: 20px 0 8px !important;
  background: transparent !important;
}

.dowha-inner-page .post_content p { color: #374151; margin: 0 0 16px; }

.dowha-inner-page .post_content ul,
.dowha-inner-page .post_content ol {
  list-style: revert;
  padding-left: 1.8em;
  margin: 0 0 18px;
  color: #374151;
}
.dowha-inner-page .post_content li { margin-bottom: 6px; line-height: 1.8; }

.dowha-inner-page .post_content a { color: #a0763e; text-decoration: underline; }

.dowha-inner-page .post_content img { max-width: 100%; height: auto; border-radius: 6px; }

.dowha-inner-page .post_content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  display: block;
  overflow-x: auto;
}
.dowha-inner-page .post_content th,
.dowha-inner-page .post_content td {
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  color: #374151;
}
.dowha-inner-page .post_content thead th { background: #fdf8ef; color: #a0763e; font-weight: 600; }

@media (max-width: 768px) {
  .dowha-inner-page #main_col { padding: 0 16px; }
  .dowha-inner-page .post_content { font-size: 15px; }
  .dowha-inner-page .post_content h2 { font-size: 18px !important; }
  .dowha-inner-page .post_content h3 { font-size: 16px !important; }
}

/* ============================================================
   コラム・投稿ページ 追加スタイル
   ============================================================ */

/* リスト・引用・テーブル（.dowha-post-body に不足していた要素） */
.dowha-post-body h4 { font-size: 15px; font-weight: 700; color: #1a1a1a; margin: 20px 0 8px; }
.dowha-post-body h5,
.dowha-post-body h6 { font-size: 14px; font-weight: 700; color: #1a1a1a; margin: 16px 0 6px; }

.dowha-post-body ul,
.dowha-post-body ol { list-style: revert; padding-left: 1.8em; margin: 0 0 18px; color: #374151; }
.dowha-post-body li { margin-bottom: 6px; line-height: 1.8; }

.dowha-post-body blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid #c8a45c;
  background: #fdf8ef;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: #555;
}
.dowha-post-body blockquote p { margin: 0; }

.dowha-post-body strong { font-weight: 700; color: #1a1a1a; }
.dowha-post-body em     { font-style: italic; }

.dowha-post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.dowha-post-body th,
.dowha-post-body td {
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  text-align: left;
  color: #374151;
}
.dowha-post-body thead th { background: #fdf8ef; color: #a0763e; font-weight: 600; }
.dowha-post-body tbody tr:nth-child(even) td { background: #fafaf9; }

/* WordPress 標準アラインメント */
.dowha-post-body .alignleft  { float: left; margin: 0 24px 16px 0; }
.dowha-post-body .alignright { float: right; margin: 0 0 16px 24px; }
.dowha-post-body .aligncenter { display: block; margin: 16px auto; }
.dowha-post-body .wp-caption  { max-width: 100%; }
.dowha-post-body .wp-caption-text { font-size: 12px; color: #9ca3af; text-align: center; margin-top: 4px; }

/* Gutenberg ブロック */
.dowha-post-body .wp-block-image { margin: 24px 0; }
.dowha-post-body .wp-block-image img { border-radius: 8px; }
.dowha-post-body .wp-block-image figcaption { font-size: 12px; color: #9ca3af; text-align: center; margin-top: 6px; }

.dowha-post-body .wp-block-quote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid #c8a45c;
  background: #fdf8ef;
  border-radius: 0 6px 6px 0;
}

.dowha-post-body .wp-block-code,
.dowha-post-body pre,
.dowha-post-body code {
  background: #f4f4f2;
  border-radius: 4px;
  font-family: monospace;
  font-size: 13px;
  padding: 2px 6px;
  color: #333;
}
.dowha-post-body pre { padding: 16px; overflow-x: auto; margin: 16px 0; display: block; }
.dowha-post-body pre code { padding: 0; background: none; }

.dowha-post-body .wp-block-separator {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 32px 0;
}

/* モバイル */
@media (max-width: 768px) {
  .dowha-post-body .alignleft,
  .dowha-post-body .alignright { float: none; margin: 16px 0; display: block; }
}

/* WordPress標準ギャラリー（[gallery]ショートコード）のレスポンシブ対応
   親テーマ（solaris_tcd088）は列数が常に固定（float+max-width%指定）のため、
   画面が狭くても5列のままで写真とキャプションが詰まって読みにくくなっていた。
   CSS Gridのauto-fitに置き換えて、画面幅に応じて自動で列数が変わるようにする。 */
.gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
  gap: 8px !important;
}
.gallery-item {
  float: none !important;
  max-width: none !important;
  width: auto !important;
  margin: 0 !important;
}
/* WPの[gallery]ショートコードがfloat解除用に挿入する<br style="clear:both">が
   Gridのアイテムとして数えられ、空白セルになっていたため非表示にする */
.gallery br,
.gallery [style*="clear"] {
  display: none !important;
}

/* scroll-hintライブラリ（テーブル横スクロール時の影・矢印アイコン）を無効化
   .table-scroll に強制的に overflow-x:scroll を当て、グラデーションの影（黒い線に見える）を
   表示してしまうため、影とアイコンを非表示にしoverflow-x:autoに戻す */
.table-scroll,
.scroll-hint {
  overflow-x: auto !important;
  overflow-y: visible !important;
  height: auto !important;
}
.scroll-hint.is-right-scrollable,
.scroll-hint.is-left-scrollable,
.scroll-hint.is-right-scrollable.is-left-scrollable {
  background: none !important;
}
.scroll-hint-icon-wrap { display: none !important; }

/* モバイルのドロップダウンメニューは縦展開 */
@media (max-width: 1220px) {
  .dowha-nav-list .sub-menu {
    display: block;
    position: static;
    transform: none;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    min-width: 0;
    border-radius: 0;
  }
  .dowha-nav-list .sub-menu a {
    padding: 10px 0 !important;
    font-size: 13px !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    color: rgba(255,255,255,0.6) !important;
  }
  .dowha-nav-list .sub-menu a:hover {
    background: none;
    color: #c8a45c !important;
  }
}


@media (max-width: 500px) {

  .dowha-container {
    padding: 0 14px;
  }

  /* 上の指定が本文エリアの上下余白まで消していたので戻す */
  .dowha-container.dowha-page-body {
    padding: 40px 14px 64px;
  }

  .dowha-studio-card-body {
    padding: 12px;
  }

  .dowha-price-value {
    font-size: 15px;
  }

  .dowha-studio-card-price {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .dowha-studio-card-features li {
    font-size: 11px;
    padding: 4px 10px;
  }

  .dowha-studio-card-address {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .dowha-section {
    padding: 45px 0;
  }

  .dowha-section-header {
    margin-bottom: 25px;
  }

  .dowha-reason-card {
    padding: 15px 16px;
  }

  .dowha-service-card p {
    font-size: 13px;
    margin-bottom: 0;
  }

  .dowha-access-card {
    padding: 0;
  }

}

#reasons .dowha-section-header { margin-bottom: 0; }

@media (max-width: 500px) {
  .dowha-access-card {
    padding: 5px;
  }
}

/* 背景紙在庫 */
.dowha-background-colors {
  scroll-margin-top: 100px;
  margin: 28px 0 38px;
  padding: 22px 24px;
  background: #f8f7f4;
  border-left: 3px solid #b08a3c;
  border-radius: 6px;
}

.dowha-background-colors h4 {
  margin-top: 0;
}

.dowha-background-color-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

/* 本文用リスト（.dowha-page-content ul）の点と左余白が優先されていたので打ち消す */
.dowha-page-content .dowha-background-color-list {
  list-style: none;
  padding-left: 0;
}

.dowha-background-color-list li {
  margin: 0;
  padding: 6px 12px;
  font-size: 13px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
}

@media screen and (max-width: 500px) {
  .dowha-background-colors {
    margin: 24px 0 32px;
    padding: 18px 16px;
  }

  .dowha-background-color-list {
    gap: 6px;
  }

  .dowha-background-color-list li {
    padding: 5px 10px;
    font-size: 12px;
  }
}
/* ============================================================
   ヒーロー（スマホ）: 画像を切り抜かず全体表示（案②）
   横長画像（3:2）をヘッダー直下に全体表示し、テキストとボタンは
   画像の下の暗い帯に配置する。PC表示は従来通り（全画面・重ね表示）。
   ============================================================ */
@media (max-width: 768px) {
  .dowha-hero {
    height: auto;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    padding-top: var(--header-h); /* 固定ヘッダーに画像が隠れないようにする */
  }
  .dowha-hero-slides {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 3 / 2;
    background: #111;
  }
  .dowha-hero-slide {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
  .dowha-hero-overlay { display: none; }
  .dowha-hero-slide-label {
    top: calc(var(--header-h) + 12px);
    right: 12px;
  }
  .dowha-hero-content { padding: 28px 20px 36px; }
  /* 文字サイズ・字間を詰めて、見出し1行・説明文の各行が語の途中で折れないようにする */
  .dowha-hero-sub   { font-size: 12px; letter-spacing: 3px; margin-bottom: 10px; }
  .dowha-hero-title { font-size: 22px; letter-spacing: 1px; margin-bottom: 14px; text-wrap: balance; }
  .dowha-hero-desc  { font-size: 13px; letter-spacing: 0; line-height: 1.8; margin-bottom: 22px; }
  .dowha-hero-scroll { display: none; }
}
@media (max-width: 360px) {
  .dowha-hero-title { font-size: 20px; letter-spacing: 0.5px; }
  .dowha-hero-desc  { font-size: 12.5px; }
}

/* ============================================================
   表示改善（2026-10-13 全ページ見直し）
   ============================================================ */

/* 下層ページの書体をトップと同じ Noto Sans JP に統一
   （親テーマが <head> に出力する body { font-family: Roboto… !important } を上書き） */
body.dowha-inner-page,
body.dowha-inner-page input,
body.dowha-inner-page textarea,
body.dowha-inner-page select,
body.dowha-inner-page button { font-family: var(--font-jp) !important; }

/* プライバシーポリシー：親テーマのカスタムCSS .privacy-policy{text-decoration:underline}
   （本来はフォーム内リンク用）が body クラスにも当たり、ページ全体に下線が出ていたため打ち消す */
body.privacy-policy {
  text-decoration: none;
  color: var(--color-text) !important;
}

/* トップページ：メニューを開いたときの「×」を白に（ドロワー #111 の上で見えなかった） */
.dowha-hamburger.open span { background: #fff !important; }

/* スマホメニュー：「お問い合わせ」を枠線付きボタンにして「スタジオ予約」と揃える */
@media (max-width: 1220px) {
  .dowha-nav-list a.dowha-nav-contact {
    display: block;
    margin-top: 20px;
    border: 1px solid rgba(255,255,255,0.5) !important;
    border-radius: 6px;
    text-align: center;
  }
}

/* 見出しの改行位置を整える（1語だけ次の行に落ちるのを防ぐ） */
.dowha-section-title,
.dowha-section-desc,
.dowha-cta h2,
.dowha-cta p { text-wrap: balance; }
.dowha-nowrap { display: inline-block; }

/* トップのヒーロー（PC）：明るい写真でも白文字が読めるよう中央を少し暗く */
@media (min-width: 769px) {
  .dowha-hero-overlay {
    background:
      radial-gradient(ellipse at center, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.3) 70%),
      rgba(0,0,0,0.1);
  }
  .dowha-hero-sub,
  .dowha-hero-title,
  .dowha-hero-desc { text-shadow: 0 1px 12px rgba(0,0,0,0.35); }
}

/* トップ：タブレット幅（769〜1024px）はスタジオ・提供サービスを横並びのまま保つ
   （1列で写真が大きくなりすぎる／3枚目だけ1枚残るのを防ぐ） */
@media (min-width: 769px) and (max-width: 1024px) {
  .dowha-studio-cards { grid-template-columns: 1fr 1fr; gap: 20px; }
  .dowha-service-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .dowha-service-card { padding: 24px 16px; }
  .dowha-service-card-image { margin: -24px -16px 14px; }
}
/* 601〜768px：スタジオは2列、提供サービスは「写真左・文章右」の横長カードを縦に並べる */
@media (min-width: 601px) and (max-width: 768px) {
  .dowha-studio-cards { grid-template-columns: 1fr 1fr; gap: 16px; }
  .dowha-service-grid { grid-template-columns: 1fr; gap: 16px; }
  .dowha-service-card { display: grid; grid-template-columns: 40% 1fr; column-gap: 20px; align-items: center; padding: 0 20px 0 0; overflow: hidden; }
  .dowha-service-card-image { grid-row: 1 / span 2; margin: 0; border-radius: 8px 0 0 8px; aspect-ratio: 4 / 3; }
  .dowha-service-card h3 { margin-top: 16px; }
  .dowha-service-card p { margin-bottom: 16px; }
}

/* トップのアクセスカード（スマホ）：文字がカードの端に接していたので内側に余白 */
@media (max-width: 768px) {
  .dowha-access-card { padding: 20px 16px; }
}

/* 店舗ページ 特色カード：見出し（strong:block）直後の <br> と自動挿入の空段落で間延びしていたのを詰める */
.dowha-feature-card-body br { display: none; }
.dowha-feature-card-body p:empty { display: none; }
.dowha-feature-card-body p { margin: 0; }

/* 本文の表（PC）：横スクロール用の display:block で表ごとに幅がバラバラだったので、
   本文幅いっぱいの通常の表に戻す（横スクロールは外側の .table-scroll 等が担当） */
@media (min-width: 769px) {
  .dowha-page-content table { display: table; width: 100%; }
  .dowha-page-content .dowha-price-table { table-layout: fixed; }
  .dowha-page-content .dowha-price-table th:first-child,
  .dowha-page-content .dowha-price-table td:first-child { width: 40%; }
  .dowha-page-content .dowha-price-table td { white-space: normal; }
}

/* 店舗ページの料金表（スマホ）：「4,070円／時間」が「時／間」で1文字だけ折れていたので、
   料金側の列を広げ、セルの余白を詰める */
@media (max-width: 768px) {
  .dowha-page-content .dowha-price-table tbody td { padding: 10px 8px; }
  .dowha-page-content .dowha-price-table tbody td:first-child { width: 34%; }
}
@media (max-width: 380px) {
  .dowha-page-content .dowha-price-table tbody td:first-child { width: 30%; }
}

/* お問い合わせフォーム（スマホ）：入力欄が16px未満だと iPhone でタップ時に画面が拡大されるため16pxに */
@media (max-width: 768px) {
  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 input[type="tel"],
  .wpcf7 input[type="url"],
  .wpcf7 input[type="number"],
  .wpcf7 input[type="date"],
  .wpcf7 select,
  .wpcf7 textarea { font-size: 16px !important; }
}

/* 見出し帯（.design_headline2）：親テーマの margin-right:-20px でスマホ時に右端へはみ出していたのを戻す */
body.hide_sidebar .dowha-page-content .design_headline2,
.dowha-page-content .design_headline2 { margin-right: 0 !important; }
