/*
Theme Name: 有限会社朋友様カスタムテーマ
Theme URI: https://demo.wooqboom.com/
Author: Taiki Matsuoka|wooqboom.inc
Author URI: https://wooqboom.com/
Description: 有限会社朋友様向けのカスタムテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 有限会社朋友様カスタムテーマ
*/

/* CSS Reset */
html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
  }
  
  *, *::before, *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
  }
  
  body {
    line-height: 1.5;
    font-family: "Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Hiragino Sans","Noto Sans JP",Meiryo,sans-serif;
    background-color: #fff;
    color: #333;
  }
  
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
  }
  
  input, button, textarea, select {
    font: inherit;
    border: none;
    background: none;
    outline: none;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  ul, ol {
    list-style: none;
  }

  h1{
    font-size: 24px;
  }
  h2{
    font-size: 20px;
  }
  h3{
    font-size: 18px;
  }
  
  /* 基本スタイル */
:root {
  --primary-color: #333;
  --secondary-color: #666;
  --background-color: #fff;
  --accent-color: #e74c3c;
  --text-color: #333;
  --light-gray: #f5f5f5;
}

body {
  margin: 0;
  padding: 0;
  color: var(--text-color);
  line-height: 1.6;
}

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

/* ヘッダー */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: background-color 0.3s;
}

.site-header.scrolled {
  background-color: var(--background-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-logo {
  height: 40px;
  width: auto;
}

/* ファーストビュー */
.first-view {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.first-view-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.first-view-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
}

/* 挨拶文 */
.greeting {
  padding: 80px 0;
  background-color: #F9F9F9;
}

.greeting-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: left;
  line-height: 1.3;
}

.greeting-text {
  font-size: 1.2rem;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

/* 物件一覧 */
.property-list {
  padding: 80px 0px 0px 0px;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* 物件詳細ページ */
.property-detail {
  padding: 120px 0 60px;
}

.property-slider {
  margin-bottom: 40px;
}

.property-slider-main {
  margin-bottom: 20px;
}

.property-slide-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
}

.property-slider-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
}

.property-thumb-image {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
}

.property-info {
  max-width: 800px;
  margin: 0 auto;
}

.property-details {
  display: grid;
  gap: 20px;
}

.property-detail-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  border-bottom: 1px dashed #ddd;
}
.property-detail-item:last-child {
  border-bottom: none;
}
.property-detail-item strong {
  color: var(--secondary-color);
  font-size: 14px;
}

.property-facility {
  /* white-space: pre-line; */
}

/* フッター */
.site-footer {
  background: var(--primary-color);
  color: #fff;
  padding: 20px 0;
}

.footer-inner {
  /* text-align: center; */
}

.footer-logo {
  height: 30px;
  margin-bottom: 20px;
}

.copyright {
  padding-left: 20px;
  font-size: 0.6rem;
  opacity: 0.8;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .property-detail-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .property-slide-image {
    height: 300px;
  }

  .greeting-title {
    font-size: 2rem;
    line-height: 1.3;
  }
}

/* 電話問い合わせ用ボタン */
.phone-button-wrapper {
  display: flex;
  justify-content: center;
  margin: 32px 0;
}
.phone-button {
  display: flex;
  align-items: center;
  background: #000000;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 18px 36px;
  border-radius: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  text-align: center;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-decoration: none;
  gap: 16px;
}
.phone-button:hover,
.phone-button:focus {
  background: #333;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-decoration: none;
}
.phone-icon {
  width: 24px;
  height: 24px;
  stroke: #fff;
  margin-right: 8px;
}
.phone-text {
  font-size: 0.8em;
  margin-right: 12px;
}

/* 会社概要セクション */
.company-info {
  background: #F8F5F0;
  padding: 60px 0;
}
.company-info .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}
.company-info .section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 32px;
  text-align: center;
  color: #333;
}
.company-details {
  display: grid;
  gap: 18px;
}
.company-detail-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
  font-size: 16px;
  flex-wrap: nowrap;
}
.company-detail-item:last-child {
  border-bottom: none;
}
.company-detail-item strong {
  min-width: 80px;
  color: #666;
  font-weight: normal;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.company-detail-item span {
  color: #222;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
@media (max-width: 600px) {
  .company-details {
    padding: 16px 6px;
  }
  .company-detail-item {
    flex-direction: row;
    gap: 8px;
    padding-bottom: 8px;
    align-items: center;
  }
  .company-detail-item strong {
    min-width: 60px;
    display: flex;
    align-items: center;
  }
  .company-detail-item span {
    display: flex;
    align-items: center;
  }
}

.section-en-subtitle {
  position: relative;
  padding-left: 2px;
  font-size: 12px;
  font-family: 'Chonburi', cursive;
  color: #333;
}

.section-en-subtitle::before {
  content: none;
}

.section-en-subtitle-dot {
  display: none;
}

.first-view-text-anim {
  position: absolute;
  left: 30px;
  top: 150px;
  z-index: 10;
  font-family: 'Chonburi', cursive;
  font-size: 55px;
  color: #fff;
  font-weight: bold;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
  letter-spacing: 0.05em;
}

.first-view-text-anim-kashiwazaki {
  font-size: 35px;
  line-height: 0.5;
}

/* 物件一覧セクション */
.property-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  padding: 20px;
  max-width: 480px;
  /* margin: 40px auto; */
}

.property-card-title {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 18px;
  border-bottom: 1px dashed #bbb;
  padding-bottom: 8px;
  letter-spacing: 0.05em;
}

.property-card-image-wrapper {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  /* aspect-ratio: 4/3; */
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.property-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* aspect-ratio: 4/3; */
  display: block;
  max-height: 320px;
}

.property-card-info {
  margin-top: 0;
}

.property-card-address-block {
  margin-bottom: 18px;
}

.property-card-label {
  font-size: 12px;
  color: #888;
  margin-bottom: 2px;
  letter-spacing: 0.1em;
}

.property-card-address {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.property-card-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed #bbb;
  padding-top: 18px;
  gap: 24px;
}

.property-card-meta-block {
  flex: 1;
  text-align: left;
}

.property-card-meta-label {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
  letter-spacing: 0.1em;
}

.property-card-meta-value {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.property-card-area {
  font-size: 1rem;
  color: #888;
  margin-left: 4px;
}

.property-card-price {
  font-size: 2.2rem;
  font-weight: bold;
  color: #222;
  line-height: 1;
}

.property-card-price-main {
  font-size: 2.2rem;
  font-weight: bold;
}

.property-card-price-unit {
  font-size: 1rem;
  color: #888;
  margin-left: 0;
  letter-spacing: 0.05em;
}

.wp-pagenavi {
  display: flex;
  justify-content: center;
  gap: 8px;
  /* margin: 32px 0; */
}
.wp-pagenavi a, .wp-pagenavi span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #222;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border: none;
}
.wp-pagenavi a:hover, .wp-pagenavi .current {
  background: #fff;
  color: #222;
  border: 2px solid #222;
}
.wp-pagenavi .pages {
  display: none;
}

.property-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.property-card-link:hover .property-card {
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  transform: translateY(-4px) scale(1.02);
  transition: box-shadow 0.2s, transform 0.2s;
}


.only-single-property .property-card {
  box-shadow: none;
  padding: 0px;
}

.only-single-property .greeting {
  padding: 40px 0;
  margin: 20px 0;
}

.top-back-button-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}
.top-back-button {
  display: inline-block;
  background: #fff;
  color: #222;
  border: 2px solid #222;
  border-radius: 30px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.top-back-button:hover {
  background: #222;
  color: #fff;
}

.property-swiper .swiper-pagination-bullet {
  width: 14px;
  height: 14px;
  background: #222;
  opacity: 1;
  border-radius: 50%;
  margin: 0 4px !important;
  border: 2px solid #222;
  transition: background 0.2s, border 0.2s;
}
.property-swiper .swiper-pagination-bullet-active {
  background: #fff;
  border: 2px solid #222;
}

.property-swiper .swiper-button-next,
.property-swiper .swiper-button-prev {
  width: 40px;
  height: 40px;
  background: #222;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s;
}
.property-swiper .swiper-button-next:hover,
.property-swiper .swiper-button-prev:hover {
  background: #444;
}
.property-swiper .swiper-button-next:after,
.property-swiper .swiper-button-prev:after {
  font-size: 18px;
  color: #fff;
}

.property-swiper .swiper-pagination {
  bottom: 8px !important;
}

/* SP画面での問い合わせボタン表示確保 */
@media (max-width: 1024px) {
  html, body {
    overflow: visible !important;
    height: auto !important;
  }
  
  main {
    overflow: visible !important;
    height: auto !important;
    min-height: auto !important;
    width: 100% !important;
    margin: 0 !important;
    position: relative !important;
    z-index: auto !important;
    display: block !important;
    flex-direction: unset !important;
  }
  
  .contact-phone {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1000 !important;
    margin: 40px 0 !important;
  }
}

/* ===== ファーストビュー3分割レイアウト（PC用） ===== */
@media (min-width: 1025px) {
  html, body {
    overflow: hidden !important;
  }
  main {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE, Edge */
  }
  main::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }
  body {
    background: #f0f0f0 url('./assets/pc_bk_image.jpg') center/cover no-repeat;
    background-attachment: fixed;
  }
  main {
    width: 530px;
    /* min-width: 390px; */
    /* max-width: 390px; */
    margin-left: calc(50vw + 100px);
    margin-right: auto;
    background: #fff;
    box-shadow: 0 0 40px rgba(0,0,0,0.08);
    height: 100vh;
    overflow-y: auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
  }
  .first-view,
  .site-header {
    width: 100%;
    max-width: 100%;
  }
  .first-view-slide,
  .first-view-slide img {
    width: 100%;
    max-width: 100%;
    object-fit: cover;
  }
  .first-view {
    display: flex;
    flex-direction: row;
    width: 100vw;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: none;
    position: relative;
  }
  .first-view-slider {
    display: flex;
    flex-direction: row;
    width: 100vw;
    height: 100vh;
    position: relative;
    z-index: 1;
  }
  .first-view-slide {
    flex: 0 0 0;
    height: 100vh;
    min-width: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    position: relative;
  }

  .first-view-text-anim.headline {
    position: absolute;
    left: calc(50% + 40px);
    top: 15%;
    transform: translate(-50%, -50%);
    width: 530px;
    max-width: 100vw;
    z-index: 10;
    background: rgba(0,0,0,0.0);
    padding: 0;
    box-sizing: border-box;
    text-align: left;
  }
  /* 中央カラムの幅を固定し、左右は自動調整 */
  .first-view-slide:nth-child(2) {
    /* flex: 0 0 530px;
    max-width: 530px;
    min-width: 530px; */
    position: relative;
    z-index: 2;
    overflow: hidden;
  }
  
  /* 1枚目のスライドの表示を確保 */
  .first-view-slide:nth-child(1) {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
  }
  /* メディアクエリのリセット（PC用優先） */
  @media (max-width: 1024px) {
    .first-view, .first-view-slider, .first-view-slide, .first-view-text-anim.headline {
      all: unset;
    }
  }
  .site-header {
    /* position: static !important; */
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
    background: none !important;
    box-shadow: none !important;
    padding: 20px 0 0 0 !important;
    z-index: 10;
  }
  .header-inner {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 20px !important;
    box-sizing: border-box;
  }
  .site-logo {
    max-width: 100% !important;
    height: 40px !important;
    width: auto !important;
    display: block !important;
  }
}