/* =============================================
   OWNERページ専用スタイル
   ============================================= */

.page-owner-preview {
  background: var(--color-cream);
  min-height: 100vh;
}

/* ページヘッダーは style.css の共通スタイル（.page-header）を使用 */

/* メインカード */
.page-owner-preview .owner-main-card {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.page-owner-preview .card-inner {
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(127, 63, 32, 0.08);
  overflow: hidden;
}

/* オーナー紹介エリア - style.cssの.owner-introを上書き */
.page-owner-preview .owner-intro {
  display: grid;
  grid-template-columns: 280px 1fr;
  /* style.cssのリセット */
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
  box-shadow: none;
  text-align: left;
}

.page-owner-preview .owner-photo {
  background: linear-gradient(135deg, #e8ddd0 0%, #d4c4b0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 40px;
}

.page-owner-preview .photo-frame {
  width: 200px;
  height: 250px;
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a09080;
  font-size: 14px;
  overflow: hidden;
}

.page-owner-preview .photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* オーナー写真が直接img要素の場合 */
.page-owner-preview .owner-photo > img {
  width: 200px !important;
  height: 250px !important;
  max-width: 200px !important;
  max-height: 250px !important;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  object-fit: cover;
}

.page-owner-preview .owner-intro-content {
  padding: 30px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-owner-preview .owner-intro-content .lead {
  font-family: var(--font-mincho);
  font-size: 16px;
  line-height: 2.2;
  color: #5D4C46;
  margin-bottom: 35px;
}

.page-owner-preview .owner-intro-content .name-area {
  border-top: 1px solid #e8e0d8;
  padding-top: 25px;
}

.page-owner-preview .owner-intro-content .title {
  font-family: var(--font-base);
  font-size: 12px;
  color: #a09080;
  margin-bottom: 5px;
}

.page-owner-preview .owner-intro-content .name {
  font-family: var(--font-mincho);
  font-size: 26px;
  color: var(--color-brown);
  letter-spacing: 0.1em;
}

/* セクションカード */
.page-owner-preview .owner-sections {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-owner-preview .section-card {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(127, 63, 32, 0.06);
  overflow: hidden;
}

.page-owner-preview .section-card.with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.page-owner-preview .section-card.with-image.reverse {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}

.page-owner-preview .section-card.with-image.reverse > * {
  direction: ltr;
}

.page-owner-preview .section-image {
  overflow: hidden;
}

.page-owner-preview .section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
}

.page-owner-preview .section-content {
  padding: 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-owner-preview .section-content .heading {
  font-family: var(--font-base);
  font-size: 20px;
  font-weight: 500;
  color: var(--color-brown);
  margin: 0 0 15px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--color-beige);
}

.page-owner-preview .section-content .philosophy {
  font-family: var(--font-mincho);
  font-size: 20px;
  color: var(--color-brown);
  margin-bottom: 20px;
}

.page-owner-preview .section-content .text {
  font-family: var(--font-mincho);
  font-size: 16px;
  line-height: 2.2;
  color: #5D4C46;
}

/* 感謝カード（ブラウン背景＋左右イラスト） */
.page-owner-preview .section-card.thanks {
  background: var(--color-brown);
  border-radius: 16px;
  text-align: center;
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
}

/* 稲穂シルエット（右） */
.page-owner-preview .section-card.thanks::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  width: 300px;
  height: 85%;
  background-color: var(--color-beige);
  -webkit-mask-image: url("https://boulangerie-atsushi.net/wp-content/uploads/2025/12/rice-plant-silhouette.svg");
  mask-image: url("https://boulangerie-atsushi.net/wp-content/uploads/2025/12/rice-plant-silhouette.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  opacity: 0.3;
}

/* 麦シルエット（左） */
.page-owner-preview .section-card.thanks::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5%;
  width: 300px;
  height: 90%;
  background-color: var(--color-beige);
  -webkit-mask-image: url("https://boulangerie-atsushi.net/wp-content/uploads/2025/12/wheat-silhouette.svg");
  mask-image: url("https://boulangerie-atsushi.net/wp-content/uploads/2025/12/wheat-silhouette.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  opacity: 0.3;
}

.page-owner-preview .section-card.thanks .philosophy {
  font-family: var(--font-base);
  font-size: 24px;
  font-weight: 500;
  color: var(--color-white);
  padding-bottom: 25px;
  margin-bottom: 25px;
  position: relative;
}

.page-owner-preview .section-card.thanks .philosophy::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.page-owner-preview .section-card.thanks .text {
  font-family: var(--font-mincho);
  font-size: 16px;
  line-height: 2.2;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .page-owner-preview .owner-intro {
    grid-template-columns: 1fr;
  }

  .page-owner-preview .owner-photo {
    padding: 20px;
  }

  .page-owner-preview .photo-frame {
    width: 160px;
    height: 200px;
  }

  .page-owner-preview .owner-photo > img {
    width: 160px !important;
    height: 200px !important;
    max-width: 160px !important;
    max-height: 200px !important;
  }

  .page-owner-preview .section-card.with-image,
  .page-owner-preview .section-card.with-image.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .page-owner-preview .section-image img {
    min-height: 200px;
    max-height: 250px;
  }

  .page-owner-preview .owner-intro-content,
  .page-owner-preview .section-content {
    padding: 35px 25px;
  }
}
