﻿/*
 * front-page.css
 * 株式会社井清不動産 - トップページスタイル
 * iseifudousan-child テーマ用
 */

/* ============================================================
   共通変数(header.cssと共有)
   ============================================================ */
:root {
  --brown-dark:   #2e1a0e;
  --brown-mid:    #5a3320;
  --gold:         #c8945a;
  --gold-dark:    #b07a42;
  --text-dark:    #3d2010;
  --text-mid:     #5c4033;
  --text-light:   #c49b6d;
  --bg-cream:     #f4f2ee;
  --bg-white:     #ffffff;
  --border-color: #341d09;
}

/* ============================================================
   #1 メインビジュアル(Swiper)
   ============================================================ */
.hero-section {
  width: 100%;
  position: relative;
}

.hero-swiper {
  width: 100%;
  height: 80vh;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-swiper .swiper-slide {
  position: relative;
}

/* 文言（PNG）オーバーレイ：実寸で、参考画像の位置に配置 */
.hero-slide-text {
  position: absolute;
  height: auto;
  pointer-events: none;
}

/* 画像の出典表記（スライド左下） */
.hero-slide-credit {
  position: absolute;
  left: 20px;
  bottom: 14px;
  z-index: 2;
  font-size: 0.65rem;
  line-height: 1.5;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

@media (max-width: 767px) {
  .hero-slide-credit {
    left: 12px;
    bottom: 10px;
    font-size: 0.525rem;
  }
}

/* スライド1：右上 */
.hero-slide-text--tr {
  top: 5%;
  right: 5%;
  width: 35%;
}

/* スライド2：上・中央 */
.hero-slide-text--tc {
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 35%;
}

/* スライド3：左上 */
.hero-slide-text--tl {
  top: 5%;
  left: 5%;
  width: 35%;
}

/* スライド3：右下ロゴ */
.hero-slide-text--br {
  right: 3%;
  bottom: 5%;
  width: 25%;
}

/* スマホは少し大きめに */
@media (max-width: 767px) {
  .hero-slide-text--tr { width: 40%; }
  .hero-slide-text--tc { width: 40%; }
  .hero-slide-text--tl { width: 40%; }
  .hero-slide-text--br { width: 25%; }
}

/* Swiperのページネーション・ボタンカスタマイズ */
.hero-swiper .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.6;
  width: 10px;
  height: 10px;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: var(--gold);
  opacity: 1;
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  color: rgba(255, 255, 255, 0.8);
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
  color: #fff;
}

@media (max-width: 767px) {
  .hero-swiper {
    height: 260px;
  }
}

/* ============================================================
   #2 お知らせ・会社ロゴ
   ============================================================ */
.news-section {
  background-color: var(--bg-white);
  padding: 60px 0;
}

.news-inner {
  display: flex;
  align-items: flex-start;
  gap: 56px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* 左:ロゴ画像 */
.news-logo-wrap {
  flex: 1;
  position: relative;
  align-self: stretch;
}

/* 左上にずらした背景(擬似要素) */
.news-logo-wrap::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -60px;
  right: 60px;
  bottom: 60px;
  background-color: #f4f2ee;
  z-index: 0;
}

.news-logo-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 2px;
}

/* 右:お知らせ */
.news-content {
  flex: 1;
  min-width: 0;
}

.news-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}

.news-title {
  font-size: 1.325rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.5em;
  margin: 0;
}

.news-title-en {
  font-family: "acumin-pro-extra-condensed", sans-serif;
  color: var(--text-light);
  font-weight: 300;
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.07em;
}

/* お知らせ */
.news-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.news-item {
  border-bottom: 1px dotted var(--border-color);
}

.news-link {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 4px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.news-link:hover {
  opacity: 0.7;
}

.news-date {
  flex-shrink: 0;
  font-size: 0.9375rem;
  color: #c8a878;
  font-weight: 400;
  letter-spacing: 0.06em;
  min-width: 80px;
}

.news-text {
  font-size: 0.9375rem;
  color: var(--text-dark);
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.news-item--empty .news-text {
  color: var(--text-light);
  padding: 12px 4px;
  display: block;
}

/* お知らせ一覧ボタン */
.news-btn-wrap {
  margin-top: 4px;
}

.news-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 28px;
  background-color: var(--brown-dark);
  color: #fff;
  text-decoration: none;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  border-radius: 10px;
  transition: background-color 0.2s;
  box-sizing: border-box;
}

.news-btn:hover {
  background-color: var(--brown-mid);
}

.news-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background-color: #fff;
  color: var(--brown-dark);
  border-radius: 50%;
  font-size: 0.85rem;
  line-height: 1;
  padding-left: 4px; /* ▶を視覚的に中央に */
  padding-bottom: 1px;
  box-sizing: border-box;
  font-family: "Segoe UI Symbol", "Arial Unicode MS", sans-serif;
  font-variant-emoji: text;
  transition: color 0.2s;
}

.news-btn:hover .news-btn-icon {
  color: var(--brown-mid);
  transition: color 0.2s;
}

@media (max-width: 900px) {
  .news-inner {
    gap: 32px;
  }

  .news-logo-wrap {
    width: 100%;
    max-width: 260px;
  }
}

@media (max-width: 767px) {
  .news-section {
    padding: 30px 0 60px;
  }

  .news-logo-wrap {
    margin: 0 auto;
  }

  .news-logo-wrap::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: 30px;
    bottom: 30px;
    background-color: #f4f2ee;
    z-index: 0;
  }

  .news-inner {
    padding: 0 20px;
    flex-direction: column;
  }

  .news-btn-wrap {
    text-align: center;
  }

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

/* ============================================================
   電話CTAボタン（news と about の間）
   ============================================================ */
.tel-cta-section {
  background-color: var(--bg-white);
  padding: 0 0 100px;
}

.tel-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.tel-cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tel-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  transition: background-color 0.2s, transform 0.2s;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.25);
}

.tel-cta:hover {
  transform: translateY(-2px);
}

/* カラーバリエーション */
.tel-cta--price {
  background-color: #df641f;
}
.tel-cta--price:hover {
  background-color: #eb8246;
}

.tel-cta--tax {
  background-color: #9c7c50;
}
.tel-cta--tax:hover {
  background-color: #ad9068;
}

/* 左：電話アイコン（透過PNGをそのまま使用。透過部分にカード色が透ける） */
.tel-cta-icon {
  flex-shrink: 0;
  width: clamp( 58px, calc( 7.1084337349397515px + 6.626506024096386vw ), 80px );
  display: flex;
  align-items: center;
}

.tel-cta-icon img {
  width: 100%;
  height: auto;
  display: block;
}

.tel-cta-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

/* 見出し・サブ・番号は明朝フォント */
.tel-cta-lead-strong,
.tel-cta-lead-sub,
.tel-cta-num-text {
  font-family: "游明朝", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "MS PMincho", serif;
}

.tel-cta-lead-strong {
  font-size: clamp( 2.54rem, calc( -1.2999999999999998rem + 8vw ), 4.2rem );
  font-weight: bold;
  color: #ffe250;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.tel-cta-lead-sub {
  font-size: clamp( 1.54rem, calc( -0.6807228915662651rem + 4.626506024096385vw ), 2.5rem );
  font-weight: bold;
  line-height: 1;
  color: #fff;
  letter-spacing: 0.02em;
}

/* 電話番号 */
.tel-cta-number {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.tel-cta-freemark {
  display: flex;
  align-items: center;
}

.tel-cta-freemark svg {
  width: clamp( 30px, calc( -4.69879518072289px + 4.518072289156627vw ), 45px );
  height: auto;
  display: block;
}

.tel-cta-num-text {
  color: #fff;
  font-size: clamp( 1.57rem, calc( -1.0439759036144578rem + 5.445783132530121vw ), 2.7rem );
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  font-family: serif;
}

/* タブレット以下：2カラム→1カラム */
@media (max-width: 767px) {
  .tel-cta-section {
    padding: 0 0 60px;
  }
  .tel-cta-inner {
    max-width: 300px;
    padding: 0;
  }
  .tel-cta-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .tel-cta {
    padding: 10px 20px;
  }
  .tel-cta-icon {
    width: 50px;
  }
  .tel-cta-freemark svg {
    width: 26px;
    position: relative;
    top: 1px;
  }
  .tel-cta-lead-strong { font-size: 2.26rem; }
  .tel-cta-lead-sub    { font-size: 1.35rem; }
  .tel-cta-num-text    { font-size: 1.39rem; font-family: serif; }
}

/* ============================================================
   #3 会社紹介(About)
   ============================================================ */
.about-section {
  position: relative;
  text-align: center;
  padding: 10px 0 0;
  overflow: hidden;
  background-image: url('../img/about-bg.jpg');
  background-color: #fff;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top center;
}

.about-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 0 200px;
}

.about-heading {
  margin-bottom: 32px;
}

.about-heading-sub {
  font-size: 0.875rem;
  color: var(--text-mid);
  letter-spacing: 0.12em;
  line-height: 1.8;
  margin: 0 0 4px;
}

.about-heading-main {
  margin: 0;
}

.about-heading-logo-img {
  width: auto;
  height: 50px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.about-text {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-mid);
  line-height: 2.3;
  letter-spacing: 0.04em;
}

.about-text p {
  margin: 0;
}

.about-text p:nth-child(3) {
  margin-bottom: 24px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1028px) {
  .about-section {
    background-size: cover;
  }
}

@media (max-width: 767px) {
  .about-section {
    padding: 35px 0 0;
    background-size: cover;
  }

  .about-inner {
    padding: 0 15px 200px;
  }

  .about-heading-main {
    font-size: 2.25rem;
  }

  .about-text {
    font-size: 0.875rem;
    line-height: 2;
    letter-spacing: 0.01em;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .about-text p {
    margin: 0;
    display: inline;
  }

  .about-text p:nth-child(3) {
    margin-bottom: 24px;
    display: block;
  }
}

/* ============================================================
   #4 バナーボタン
   ============================================================ */
.banner-section {
  background-color: var(--bg-white);
  padding: 0 40px 48px;
}

.banner-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.banner-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 22px 16px;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  border-radius: 2px;
  transition: opacity 0.2s, transform 0.2s;
}

.banner-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.banner-btn--dark {
  background-color: var(--brown-dark);
  color: #fff;
}

.banner-btn--gold {
  background-color: var(--gold);
  color: #fff;
}

.banner-btn-icon img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1); /* アイコンを白に */
}

@media (max-width: 767px) {
  .banner-section {
    padding: 0 20px 36px;
  }

  .banner-inner {
    gap: 12px;
  }

  .banner-btn {
    font-size: 0.82rem;
    padding: 18px 5px;
    letter-spacing: 0;
    gap: 10px;
  }
  .banner-btn-icon img {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 480px) {
  .banner-inner {
    gap: 12px;
    display: flex;
    flex-direction: column;
  }
  .banner-inner .banner-btn:nth-child(3) {
    background-color: var(--brown-dark);
  }
  .banner-inner .banner-btn:nth-child(4) {
    background-color: var(--gold);
  }
}

/* ============================================================
   #5 代表挨拶(Message)
   ============================================================ */
.message-section {
  background-color: var(--bg-cream);
  padding: 0 40px;
}

.message-inner {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  max-width: 900px;
  margin: 0 auto;
}

/* 左:テキスト */
.message-text {
  flex: 1;
  padding: 40px 0;
}

.message-heading img {
  margin: 0 0 28px;
  width: 385px;
  height: auto;
}

.message-body {
  font-size: 0.875rem;
  font-weight: 500;
  color: #341d09;
  line-height: 2;
  letter-spacing: 0.04em;
}

.message-body p {
  margin: 0 0 20px;
}

.message-body p:last-child {
  margin-bottom: 0;
}

/* 右:代表者の写真 */
.message-photo-wrap {
  flex-shrink: 0;
  width: 280px;
  text-align: center;
  position: relative;
}

.message-name {
  position: absolute;
  top: 15px;
  right: 15px;
}

.message-name-img {
  width: auto;
  height: 115px;
  display: block;
  object-fit: cover;
}

.message-photo {
  width: auto;
  height: 400px;
  display: block;
  object-fit: cover;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .message-section {
    padding: 0 20px;
  }
  .message-inner {
    flex-direction: column;
    align-items: center;
    gap: 36px;
  }
  .message-text {
    flex: 1;
    padding: 40px 0 0;
  }
  .message-photo {
    height: 200px;
  }
}


@media (max-width: 480px) {
  .br-sp {
    display: none;
  }
}

/* ============================================================
   #6 アクセス(Access)
   ============================================================ */
.access-section {
  background-color: var(--bg-white);
}

.access-heading {
  text-align: center;
  padding: 56px 40px 36px;
}

.access-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  margin: 0 0 12px;
}

.access-title-en {
  display: block;
  font-family: acumin-variable, sans-serif;
  font-variation-settings: "slnt" -12, "wdth" 67.5, "wght" 300;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-indent: 0.15em;
  color: var(--text-light);
}

/* タイトル下の罫線 */
.access-title::after {
  content: '';
  display: block;
  width: 40%;
  height: 2px;
  background-color: var(--border-color);
  margin: 12px auto 0;
}

.access-map {
  line-height: 0;
}

.access-map iframe {
  display: block;
  width: 100%;
  height: 400px;
}

@media (max-width: 767px) {
  .access-heading {
    padding: 40px 20px 24px;
  }

  .access-map iframe {
    height: 280px;
  }
}
