@charset "UTF-8";
/* CSS Document */

.intro-background {
    background-image:linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),url("../img/cemetery/main.jpg");
    gap:10px;
}

.intro-background::after {
  background: linear-gradient(to bottom, rgba(255, 250, 237,0) 70%, rgba(255, 250, 237,0.7) 100%);
}

/* Gallery Section */
.gallery {
    padding: 48px 0;
}

.carousel__slide{box-sizing:border-box;height:100%;flex:0 0 clamp(28px,8vw,100px) !important;width:clamp(28px,8vw,100px)!important;transition:flex .35s ease,width .35s ease, filter .25s ease;filter:brightness(.85);cursor:pointer;display:flex;align-items:center} 

.gallery h2 {
    font-size: clamp(28px,5vw,48px);
    text-align: center;
    color: black;
    margin-bottom: 25px;
    font-weight: bold;
}

.gallery-grid {
    display: flex;
    gap: 24px;
    margin-bottom: 25px;
    padding: 0 48px;
}

.gallery-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery-item.large {
    flex: 2;
}

.gallery-image {
    height: 300px;
    background: #ddd;
    border: 2px solid rgba(0,0,0,0);
}

.gallery-item p {
    font-size: 20px;
    text-align: center;
    color: black;
    font-weight: 300;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 25px;
}

.dot {
    width: 42px;
    height: 9px;
    background: #d9d9d9;
    border-radius: 4px;
}

.dot.active {
    background: #181818;
}

.gallery-contact {
    text-align: center;
    color: #1e1b28;
    max-width: 100%;
    overflow: hidden;
}

.gallery-contact p {
    font-size: 16px;
    line-height: 24px;
}

/* Specifications Table */
.specifications {
    padding: 48px 0;
}

.specifications h2 {
    font-size: 24px;
    text-align: center;
    color: #1b1b28;
    margin-bottom: 46px;
    font-weight: bold;
}

.spec-table {
    display: table;
    max-width: 1100px;
    width: auto;
    min-width: 780px;
    margin: 0 auto;
    border-collapse: collapse;
    background: white;
    border: 7px solid #e6e6e5;
}

.spec-table td {
    border: 1.5px solid #e6e6e5;
    padding: 16px 32px;
    vertical-align: center;
}

.spec-label {
    background: #e6e6e5;
    text-align: center;
    font-size: 20px;
    color: #1b1b28;
}

.spec-table td:not(.spec-label) {
    text-align: center;
}

@media (max-width: 768px) {
  .spec-table th,
  .spec-table td {
    font-size: 13px; /* PC時の85〜90%くらい */
      padding: 6px 8px;
  }
}

/* Pricing Section */
.pricing {
    padding: 48px 0;
}

.pricing h2 {
    font-size: clamp(28px,5vw,48px);
    text-align: center;
    color: #28241b;
    margin-bottom: 29px;
    font-weight: bold;
}

.pricing-description {
    text-align: center;
    color: #1e1b28;
    max-width: 100%;
    margin-bottom: 48px;
}

.pricing-description p {
    font-size: 16px;
    line-height: 24px;
}

.pricing h3 {
    font-size:24px;
    text-align: center;
    color: #28241b;
    margin-bottom: 20px;
    font-weight: bold;
}

.pricing-table {
    display: table;
    width: auto;
    max-width: 1180px;
    min-width: 780px;
    margin: 0 auto 32px;
    border-collapse: collapse;
    background: white;
    border: 3px solid black;
            overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* モバイル対応 */
}

.pricing-table th {
    background: #ede467;
    border: 1px solid black;
    padding: 24px;
    text-align: center;
    font-size: 20px;
    color: #28241b;
    height: auto;
    white-space: nowrap;
}

.pricing-table th:first-child {
    background: #e9e0cb;
    width: 200px;
}

.pricing-table td {
    background: #fefdfb;
    border: 1.5px solid black;
    padding: 24px 16px;
    text-align: center;
    font-size: 17px;
    color: #2e2614;
}

.pricing-notes {
    text-align: center;
    color: #1e1b28;
    margin-top: 32px;
}

.pricing-notes p {
    font-size: 16px;
    line-height: 24px;
}

@media (max-width: 768px) {
  .pricing-table th,
  .pricing-table td {
    font-size: 13px; /* PC時の85〜90%くらい */
      padding: 6px 8px;
  }
}

/* Tombstone Info Section */
.tombstone-info {
    height: auto;
    position: relative;
}

.tombstone-bg {
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("../img/cemetery/tombstone.png") center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 47px 0;
}

.tombstone-content h2 {
    font-size: clamp(28px,5vw,48px);
    color: white;
    text-align: center;
    font-weight: 600;
}

.tombstone-text {
    max-width: 1200px;
    text-align: center;
    color: white;
    padding: 0 5%;
}

@media(max-width:798px){
    .tombstone-text{padding: 0 5%;}
}

.tombstone-text h3 {
    font-size: clamp(24px,2.3vw,36px);
    line-height: 35px;
    margin-bottom: 27px;
}

.tombstone-text p {
    font-size:clamp(14px,1.7vw,20px);
    line-height: 35px;
}

/* Knowledge Section */
.knowledge {
}

.knowledge h2 {
    font-size: clamp(28px,5vw,48px);
    text-align: center;
    color: #28241b;
    margin-bottom: 29px;
    font-weight: bold;
}

.knowledge-grid {
    display: flex;
    widows: 80%;
    display: flex;
    justify-content: space-between;
    gap: 100px;
}

@media(max-width:768px){
    .knowledge-grid{
        display: block;
    }
}

.knowledge-item {
    max-width: 550px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

@media(max-width:768px){
    .knowledge-item{
        max-width: 768px;
       width:90%; 
        margin: 0 auto;
        margin-bottom: 80px;
    }
}

.knowledge-image {
    width: 100%;
    display: flex;
    height: auto;
    background: #ddd;
    border: 1.5px solid rgba(0,0,0,0);
    object-fit: cover;
    overflow: hidden;
}

.knowledge-image img{
    width: 100%;
    height: auto;
    
}

.knowledge-item h3 {
    font-size: clamp(22px,4vw,32px);
    text-align: center;
    color: #28241b;
    font-weight: bold;
}

.knowledge-item p {
    font-size: 16px;
    color: #1e1b28;
    text-align: justify;
    line-height: 24px;
    padding: 0 44px;
}

/* Catalog Section */
.catalog {
    padding: 48px 0;
    background: white;
}

.catalog h2 {
    font-size: clamp(28px,5vw,48px);
    text-align: center;
    color: #28241b;
    margin-bottom: 24px;
    font-weight: bold;
}

.catalog-description {
    text-align: center;
    color: #1e1b28;
    margin-bottom: 88px;
}

.catalog-description p {
    font-size: 16px;
    line-height: 24px;
}

.catalog-grid {
    max-width: 900px;
    width:100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap:30px;
    margin:0 auto;
}

@media(max-width:900px){
    .catalog-grid{
        grid-template-columns: 1fr;
    }
}

.catalog-item {
    max-width: 450px;
    height: auto;
    background: white;
    border: 2px solid rgba(0,0,0,0.16);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    margin: 0 auto;
}

.catalog-image {
    max-width: 368px;
    max-height: 460px;
    background: #ddd;
    margin-bottom: 16px;
    object-fit: cover;
}

.catalog-item p {
    font-size: 20px;
    text-align: center;
    color: black;
    font-weight: 300;
    line-height: 24px;
}

/* Carving Info Section */
.carving-info {
    height: auto;
    position: relative;
    background: #fbfbfe;
}

.carving-bg {
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/cemetery/carving_bg.png') center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 34px;
    padding: 47px 0;
}

.carving-content h2 {
    font-size: clamp(28px,5vw,48px);
    color: white;
    text-align: center;
    font-weight: 600;
}

.carving-text {
    max-width: 1200px;
    text-align: center;
    color: white;
    padding: 0 5%;
}

.carving-text p {
    font-size: clamp(14px,1.7vw,20px);
    line-height: 35px;
    margin-bottom: 0;
}
.table_cont {
    width: 100%;
    display: block;
      width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* 慣性スクロール */
}

/* ===== Cemetery｜Intro をSP対応に上書き ===== */

/* 1) コンテナは流動化 */
.intro-block{
  width: 100% !important;
  height: auto !important;
}

/* 2) 背景は最小高さだけ与えて、上下余白もclampで可変 */
.intro-background{
    width: 100%;
  position: relative !important;
  inset: auto !important;
  min-height: clamp(360px, 60vw, 560px);
  padding: clamp(40px, 8vw, 80px) 0 !important;
      background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 3) タイトル＆本文は幅をauto化＋可読サイズにclamp */
.intro-title{
  font-size: clamp(28px, 6vw, 48px);
  line-height: 1.2;
  max-width: none;
  width: auto;
  margin-bottom: clamp(8px, 2vw, 12px);
  text-align: center;
}

.intro-info{
  max-width: min(92vw, 900px);
  width: 100%;
  padding: 0 clamp(16px, 5vw, 32px);
}

.intro-text{
  width: auto !important;
  max-width: 68ch;                         /* 1行の可読幅を制限 */
  font-size: clamp(14px, 3.8vw, 20px);
  line-height: clamp(22px, 5.4vw, 35px);
  margin-inline: auto;
  text-align: center;
}

/* 4) フェード用の疑似要素や下端グラデの幅を画面幅に合わせる */
.fadeout{ left: 0; right: 0; }

/* 5) 念のためSPでの微調整 */

/* イントロ：縦いっぱい＋フェードはオーバーレイ化 */
.page .intro-block{ position: relative; }

@media (max-width: 768px){
  /* 2) fadeout が下にブロックで積まれると余白になる → オーバーレイ化 */
  .page .intro-block .fadeout{
    position: absolute !important;
    left: 0; right: 0; bottom: 0;
    height: clamp(80px, 18svh, 160px);
    pointer-events: none;
  }
}

/* 既に ::after で暗幕グラデつけてるなら、fadeout 自体は消してもOK */
@media (max-width: 768px){
  .page .intro-block .fadeout.is-decor-only{ display:none !important; }
}
