{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'product_page' %}
{% block stylesheet %}
<style>
.slick-slider {
margin-bottom: 10px;
}
.slick-dots {
position: absolute;
bottom: -45px;
display: block;
width: 100%;
padding: 0;
list-style: none;
text-align: center;
}
.slick-dots li {
position: relative;
display: inline-block;
width: 20px;
height: 20px;
margin: 0 5px;
padding: 0;
cursor: pointer;
}
.slick-dots li button {
font-size: 0;
line-height: 0;
display: block;
width: 20px;
height: 20px;
padding: 5px;
cursor: pointer;
color: transparent;
border: 0;
outline: none;
background: transparent;
}
.slick-dots li button:hover,
.slick-dots li button:focus {
outline: none;
}
.slick-dots li button:hover:before,
.slick-dots li button:focus:before {
opacity: 1;
}
.slick-dots li button:before {
content: " ";
line-height: 20px;
position: absolute;
top: 0;
left: 0;
width: 12px;
height: 12px;
text-align: center;
opacity: .25;
background-color: black;
border-radius: 50%;
}
.slick-dots li.slick-active button:before {
opacity: .75;
background-color: black;
}
.slick-dots li button.thumbnail img {
width: 0;
height: 0;
}
@media only screen and (min-width: 768px) {
.ec-sliderItemRole {
margin-bottom: 3rem ;
}
}
.ec-sliderItemRole .slideThumb {
width: 10%;
}
.ec-sliderItemRole .slideThumb img {
width: 90%;
}
/* ///////////////////詳細情報1/////////////////// */
.ec-productRole__movie {
width: 100%;
display: grid;
grid-template-columns: 1fr;
gap: 20px;
}
@media only screen and (min-width: 768px) {
.ec-productRole__movie {
grid-template-columns: repeat(3, 1fr);
}
}
.ec-productRole__movie iframe {
width: 100%;
aspect-ratio: 16 / 9;
}
.movie-caption {
font-size: 16px;
}
/* 住所 */
@media only screen and (min-width: 768px) {
.ec-productRole__kofun-address {
font-size: 28px;
font-weight: bold;
padding: 1rem 0;
border-bottom: 1px dotted #ccc;
}
}
/* 価格 */
.ec-productRole .ec-productRole__price {
color:var(--e-global-color-global_color_5);
padding-top:0px;
font-size: 30px;
}
/* 説明テキスト */
.ec-productRole .ec-productRole__description {
margin-top: 20px;
}
/* 購入ボタン */
@media only screen and (min-width: 768px) {
.ec-productRole .ec-productRole__btn {
text-align: center;
min-width: 350px;
width: 40%;
margin:0 auto;
}
}
.blueprint-image {
width: 100%;
max-width: 768px;
margin: 15px auto;
}
.ec-grid3__cell.product-image {
margin: 5px 15px;
}
.detail-top-image {
width: 100%;
max-width: 1080px;
margin: 15px auto;
}
/* ///////////////////詳細情報2/////////////////// */
/* 見出し_下グリーンライン */
.ec-productRole__kofun-content h2 {
font-size: 20px;
font-weight: bold;
color: var(--e-global-color-global_color_4);
margin-top: 4rem;
margin-bottom: 1rem;
padding-bottom: 0.5rem;
background: linear-gradient(to right,
var(--e-global-color-global_color_1) 0%,
var(--e-global-color-global_color_1) 20%,
#ddd 20%,
#ddd 100%);
background-size: 100% 3px;
background-repeat: no-repeat;
background-position: bottom;
}
@media only screen and (min-width: 768px) {
.ec-productRole__kofun-content h2 {
font-size: 26px;
}
}
/* 見出し_左横グリーンライン */
.ec-productRole__kofun-content h3 {
font-size: 20px;
font-weight: bold;
color: var(--e-global-color-global_color_4);
margin-top: 4rem;
margin-bottom: 1rem;
padding-left: 0.5rem;
border-left: 10px solid var(--e-global-color-global_color_1);
line-height: 1.8;
}
/* おすすめポイント */
.ec-productRole__kofun-appeal-points .title {
font-size: 18px;
font-weight: bold;
color: var(--e-global-color-global_color_9);
background-color: var(--e-global-color-global_color_1);
padding: 0.5rem 4rem 0.5rem 1rem;
margin: 2rem 1rem 0 1rem;
width: fit-content;
border-radius: 6px 6px 0 0; /* 上側の角だけを丸く */
}
.ec-productRole__kofun-appeal-points .content {
margin: 0 1rem;
padding: 1rem;
background-color: var(--e-global-color-global_color_7);
border-radius: 4px;
}
.ec-productRole__kofun-content {
padding-bottom: 20px;
margin-bottom: 20px;
}
.ec-productRole__kofun-content .content {
display: flex;
align-items: flex-start;
}
.ec-productRole__kofun-content.basicline .content {
padding: 0.5rem 0;
border-bottom: 1px dotted #ccc;
}
.tab-content.active .content {
padding: 0.5rem 0;
border-bottom: 1px dotted #ccc;
}
.ec-productRole__kofun-content.buy_process .content {
line-height:1.8;
padding-left:0.5rem;
}
.ec-productRole__kofun-content .content-group {
margin-top: 1rem;
}
.ec-productRole__kofun-content .content span.label {
display: inline-block;
width: 120px; /* 項目名の幅を固定 */
color: var(--e-global-color-global_color_5);
font-weight: bold;
flex-shrink: 0;
}
.ec-productRole__kofun-content.base-info .label::before {
content: "【";
}
.ec-productRole__kofun-content.base-info .label::after {
content: "】";
}
.ec-productRole__kofun-content.basicline a {
color: #333 !important;
text-decoration: underline !important;
}
.ec-productRole__kofun-content.basicline a:hover {
color: var(--e-global-color-global_color_2) !important;
}
.ec-productRole__kofun-content .content span.label2 {
display: inline-block;
width: 120px; /* 項目名の幅を固定 */
color: var(--e-global-color-global_color_1);
font-weight: bold;
flex-shrink: 0;
}
.ec-productRole__kofun-content .content.note {
margin-top: 1rem;
font-size: 0.9em;
line-height:1.5;
}
.ec-productRole__kofun-content .content.sub {
padding-left: 1.5rem;
margin-bottom: 1rem;
font-size: 0.9em;
line-height:1.5;
}
.ec-productRole__kofun-content .content.link {
margin-top: 1rem;
}
.warning {
color: red;
}
.value {
display: flex;
flex-direction: column;
}
.ec-productRole__kofun-content.description-detail {
margin-top: 50px;
}
.ec-productRole__kofun-content.description-detail strong {
font-size: 30px;
color: var(--e-global-color-global_color_2);
}
/* 価格表 */
.ec-productRole__kofun-content.price-table .header {
display: flex;
align-items: flex-start;
font-weight: bold;
padding: 0.8rem;
border-bottom: 1px dashed var(--e-global-color-global_color_2);
}
.ec-productRole__kofun-content.price-table .content {
padding: 0.8em;
border-bottom: 1px dashed var(--e-global-color-global_color_2);
}
.ec-productRole__kofun-content.price-table span.label {
width: 30%;
}
@media only screen and (min-width: 768px) {
.ec-productRole__kofun-content.price-table span.label {
width: 320px;
}
}
.ec-productRole__kofun-content.price-table .note {
padding-top: 1rem;
font-size: 0.9em;
}
/* タブ切り替え用のスタイル追加 */
.tab-container {
margin: 2rem 0;
}
.tab-buttons {
display: flex;
position: relative;
z-index: 1;
}
.tab-button {
padding: 1rem 2rem;
background: #ffffff;
border: none;
border-bottom: 1px solid var(--e-global-color-global_color_2);
cursor: pointer;
font-size: 16px;
font-weight: bold;
margin-right: 4px;
margin-bottom: -1px;
position: relative;
}
.tab-button.active {
background: #ECF2D3;
border: 1px solid var(--e-global-color-global_color_2);
border-bottom: none;
}
.tab-content {
display: none;
padding: 2rem;
background: #ECF2D3;
border: 1px solid var(--e-global-color-global_color_2);
}
.tab-content.active {
display: block;
}
.fee-note {
margin-top: 1rem;
font-size: 0.9em;
color: #666;
}
.ec-productRole__kofun-content.scroll-to-checkout {
text-align: center;
margin-top: 50px;
}
.ec-productRole__kofun-content.scroll-to-checkout a span {
text-decoration: inherit;
display: inline-block;
}
.ec-productRole__kofun-content.scroll-to-checkout a {
margin: 0 auto;
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
font-weight: bold;
border-radius: 3px;
color: #ffffff;
fill: #ffffff;
text-align: center;
transition: all .3s;
background-color: #000000;
padding: 20px;
width: 300px;
height: 45px;
}
@media only screen and (max-width: 768px) {
.ec-productRole__kofun-content.scroll-to-checkout a {
font-size: 17px;
padding: 20px 22px;
}
}
.ec-productRole__stock {
display: none;
}
.ec-productRole__kofun-content.visit-reservation {
text-align: center;
margin-top: 50px;
}
.ec-productRole__kofun-content.visit-reservation a {
margin: 0 auto;
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
font-weight: bold;
border-radius: 3px;
color: #ffffff;
fill: #ffffff;
text-align: center;
transition: all .3s;
background-color: #000000;
padding: 20px;
width: 300px;
height: 45px;
text-decoration: none;
}
@media only screen and (max-width: 768px) {
.ec-productRole__kofun-content.visit-reservation a {
font-size: 17px;
padding: 20px 22px;
}
}
</style>
{% endblock %}
{% block javascript %}
<script>
eccube.classCategories = {{ get_extended_class_categories_as_json(Product)|raw }};
// 規格2に選択肢を割り当てる。
function fnSetClassCategories(form, classcat_id2_selected) {
var $form = $(form);
var product_id = $form.find('input[name=product_id]').val();
var $sele1 = $form.find('select[name=classcategory_id1]');
var $sele2 = $form.find('select[name=classcategory_id2]');
eccube.setClassCategories($form, product_id, $sele1, $sele2, classcat_id2_selected);
}
{% if form.classcategory_id2 is defined %}
fnSetClassCategories(
$('#form1'), {{ form.classcategory_id2.vars.value|json_encode|raw }}
);
{% elseif form.classcategory_id1 is defined %}
eccube.checkStock($('#form1'), {{ Product.id }}, {{ form.classcategory_id1.vars.value|json_encode|raw }}, null);
{% endif %}
</script>
<script>
$(function() {
// bfcache無効化
$(window).bind('pageshow', function(event) {
if (event.originalEvent.persisted) {
location.reload(true);
}
});
// Core Web Vital の Cumulative Layout Shift(CLS)対策のため
// img タグに width, height が付与されている.
// 630px 未満の画面サイズでは縦横比が壊れるための対策
// see https://github.com/EC-CUBE/ec-cube/pull/5023
$('.ec-grid2__cell').hide();
var removeSize = function () {
$('.slide-item').height('');
$('.slide-item img')
.removeAttr('width')
.removeAttr('height')
.removeAttr('style');
};
var slickInitial = function(slick) {
$('.ec-grid2__cell').fadeIn(1500);
var baseHeight = $(slick.target).height();
var baseWidth = $(slick.target).width();
var rate = baseWidth / baseHeight;
$('.slide-item').height(baseHeight * rate); // 余白を削除する
// transform を使用することでCLSの影響を受けないようにする
$('.slide-item img')
.css(
{
'transform-origin': 'top left',
'transform': 'scaleY(' + rate + ')',
'transition': 'transform .1s'
}
);
// 正しいサイズに近くなったら属性を解除する
setTimeout(removeSize, 500);
};
$('.item_visual').on('init', slickInitial);
// リサイズ時は CLS の影響を受けないため属性を解除する
$(window).resize(removeSize);
$('.item_visual').slick({
dots: false,
arrows: false,
responsive: [{
breakpoint: 768,
settings: {
dots: true
}
}]
});
$('.slideThumb').on('click', function() {
var index = $(this).attr('data-index');
$('.item_visual').slick('slickGoTo', index, false);
})
// タブ切り替え用のJavaScript
$('.tab-button').on('click', function() {
// すべてのタブとコンテンツからactiveクラスを削除
$('.tab-button').removeClass('active');
$('.tab-content').removeClass('active');
// クリックされたタブとそれに対応するコンテンツにactiveクラスを追加
$(this).addClass('active');
const tabId = $(this).data('tab');
$('#' + tabId).addClass('active');
});
});
</script>
<script>
$(function() {
$('.add-cart').on('click', function(event) {
{% if form.classcategory_id1 is defined %}
// 規格1フォームの必須チェック
if ($('#classcategory_id1').val() == '__unselected' || $('#classcategory_id1').val() == '') {
$('#classcategory_id1')[0].setCustomValidity('{{ 'front.product.product_class_unselected'|trans }}');
return true;
} else {
$('#classcategory_id1')[0].setCustomValidity('');
}
{% endif %}
{% if form.classcategory_id2 is defined %}
// 規格2フォームの必須チェック
if ($('#classcategory_id2').val() == '__unselected' || $('#classcategory_id2').val() == '') {
$('#classcategory_id2')[0].setCustomValidity('{{ 'front.product.product_class_unselected'|trans }}');
return true;
} else {
$('#classcategory_id2')[0].setCustomValidity('');
}
{% endif %}
// 個数フォームのチェック
if ($('#quantity').val() < 1) {
$('#quantity')[0].setCustomValidity('{{ 'front.product.invalid_quantity'|trans }}');
return true;
} else {
$('#quantity')[0].setCustomValidity('');
}
event.preventDefault();
$form = $('#form1');
$.ajax({
url: $form.attr('action'),
type: $form.attr('method'),
data: $form.serialize(),
dataType: 'json',
beforeSend: function(xhr, settings) {
// Buttonを無効にする
$('.add-cart').prop('disabled', true);
}
}).done(function(data) {
// レスポンス内のメッセージをalertで表示
$.each(data.messages, function() {
$('#ec-modal-header').text(this);
});
$('.ec-modal').show()
// カートブロックを更新する
$.ajax({
url: "{{ url('block_cart') }}",
type: 'GET',
dataType: 'html'
}).done(function(html) {
$('.ec-headerRole__cart').html(html);
});
}).fail(function(data) {
alert('{{ 'front.product.add_cart_error'|trans }}');
}).always(function(data) {
// Buttonを有効にする
$('.add-cart').prop('disabled', false);
});
});
$('.scroll-to-checkout a').on('click', function(e) {
e.preventDefault();
const targetId = $(this).attr('href');
const targetPosition = $(targetId).offset().top;
$('html, body').animate({
scrollTop: targetPosition
}, 600); // 800ミリ秒かけてスクロール
});
});
$('.ec-modal-wrap').on('click', function(e) {
// モーダル内の処理は外側にバブリングさせない
e.stopPropagation();
});
$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
$('.ec-modal').hide()
});
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "Product",
"name": "{{ Product.name }}",
"image": [
{% for img in Product.ProductImage %}
"{{ app.request.schemeAndHttpHost }}{{ asset(img, 'save_image') }}"{% if not loop.last %},{% endif %}
{% else %}
"{{ app.request.schemeAndHttpHost }}{{ asset(''|no_image_product, 'save_image') }}"
{% endfor %}
],
"description": "{{ Product.description_list | default(Product.description_detail) | replace({'\n': '', '\r': ''}) | slice(0,300) }}",
{% if Product.code_min %}
"sku": "{{ Product.code_min }}",
{% endif %}
"offers": {
"@type": "Offer",
"url": "{{ url('product_detail', {'id': Product.id}) }}",
"priceCurrency": "{{ eccube_config.currency }}",
"price": {{ Product.getPrice02IncTaxMin ? Product.getPrice02IncTaxMin : 0}},
"availability": "{{ Product.stock_find ? "InStock" : "OutOfStock" }}"
}
}
</script>
<script>
$(function() {
// 規格1が変更されたとき
$('#classcategory_id1').on('change', function() {
updateStock();
});
// 規格2が変更されたとき
$('#classcategory_id2').on('change', function() {
updateStock();
});
// 初期表示時
updateStock();
// 在庫表示を更新する関数
function updateStock() {
// 現在選択されているProductClassのデータを取得
var productClassId = $('#ProductClass').val();
if (!productClassId) {
$('#selected-stock-quantity').text('{{ 'front.product.please_select_product_class'|trans }}');
return;
}
// 選択された商品規格の情報を取得
var classCategory1 = $('#classcategory_id1').val() || '__unselected';
var classCategory2 = $('#classcategory_id2').val() || '';
// 商品規格情報を取得
var productClass = null;
if (eccube.classCategories[classCategory1]) {
if (classCategory2 && eccube.classCategories[classCategory1]['#' + classCategory2]) {
productClass = eccube.classCategories[classCategory1]['#' + classCategory2];
} else if (eccube.classCategories[classCategory1]['#']) {
productClass = eccube.classCategories[classCategory1]['#'];
}
}
if (!productClass) {
$('#selected-stock-quantity').text('{{ 'front.product.please_select_product_class'|trans }}');
return;
}
// 在庫表示を更新
var stockQuantityElement = $('#selected-stock-quantity');
if (productClass.stock !== null && productClass.stock > 0) {
stockQuantityElement.text(productClass.stock);
} else {
stockQuantityElement.text('{{ 'front.product.out_of_stock'|trans }}');
}
}
});
</script>
{% endblock %}
{% block main %}
<div class="ec-productRole">
<div class="ec-pageHeader">
<h1 class="km_pagetitle">{{ Product.name }}</h1>
</div>
<div class="detail-top-image">
<img src="{{ asset(Product.ProductImage[0], 'save_image') }}">
</div>
<div class="ec-productRole__profile">
{# 住所 #}
{% if Product.kofun_product_type and Product.kofun_product_type.id == 1 %}
<div class="ec-productRole__kofun-address">
{{ Product.Kofun.Pref.name ?? '' }}{{ Product.Kofun.addr01 }}{{ Product.Kofun.addr02 }}
</div>
{% endif %}
{# タグ #}
{% if Product.Tags is not empty %}
<ul class="ec-productRole__tags">
{% for Tag in Product.Tags %}
<li class="ec-productRole__tag tag_{{ Tag.id }}">{{ Tag }}</li>
{% endfor %}
</ul>
{% endif %}
{# 通常価格 #}
{% if Product.hasProductClass -%}
<div class="ec-productRole__priceRegular">
{% if Product.getPrice01Min is not null and Product.getPrice01IncTaxMin == Product.getPrice01IncTaxMax %}
<span class="ec-productRole__priceRegularPrice">{{ 'front.product.normal_price'|trans }}:<span class="price01-default">{{ Product.getPrice01IncTaxMin|price }}</span></span>
<span class="ec-productRole__priceRegularTax">{{ 'common.tax_include'|trans }}</span>
{% elseif Product.getPrice01Min is not null and Product.getPrice01Max is not null %}
<span class="ec-productRole__priceRegularPrice">{{ 'front.product.normal_price'|trans }}:<span class="price01-default">{{ Product.getPrice01IncTaxMin|price }}~ {{ Product.getPrice01IncTaxMax|price }}</span></span>
<span class="ec-productRole__priceRegularTax">{{ 'common.tax_include'|trans }}</span>
{% endif %}
</div>
{% else %}
{% if Product.getPrice01Max is not null %}
<span class="ec-productRole__priceRegularPrice">{{ 'front.product.normal_price'|trans }}:{{ Product.getPrice01IncTaxMin|price }}</span>
<span class="ec-productRole__priceRegularTax">{{ 'common.tax_include'|trans }}</span>
{% endif %}
{% endif %}
{# 販売価格 #}
<div class="ec-productRole__price">
{% if Product.hasProductClass -%}
{% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
<div class="ec-price">
<span class="ec-price__price price02-default">{{ Product.getPrice02IncTaxMin|price }}</span>
<span class="ec-price__tax">{{ 'common.tax_include'|trans }}</span>
</div>
{% else %}
<div class="ec-price">
<span class="ec-price__price price02-default">{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}</span>
<span class="ec-price__tax">{{ 'common.tax_include'|trans }}</span>
</div>
{% endif %}
{% else %}
<div class="ec-price">
<span class="ec-price__price">{{ Product.getPrice02IncTaxMin|price }}</span>
<span class="ec-price__tax">{{ 'common.tax_include'|trans }}</span>
</div>
{% endif %}
</div>
</div>
{% if Product.kofun_product_type and Product.kofun_product_type.id == 1 %}
<div class="ec-productRole__kofun">
<div class="ec-productRole__kofun-content description-detail">
{{ Product.Kofun.descriptionDetail|raw|nl2br }}
</div>
<div class="ec-productRole__kofun-appeal-points">
<div class="title">{{ 'front.kofun.appeal_points_title'|trans }}</div>
<div class="content">
{{ Product.Kofun.appealPoints|raw|nl2br }}
</div>
</div>
<div class="ec-productRole__kofun-content scroll-to-checkout">
<a href="#checkout">
<span>ご購入はこちらから</span>
</a>
</div>
<div class="ec-productRole__kofun-content access">
<h2>アクセス</h2>
<div class="content">
{{ Product.Kofun.access|raw|nl2br }}
</div>
</div>
{% if app.environment == 'prod' %}
{% if Product.Kofun.id == 'bj0zQKulUcfULgr06dwy' %}
{% set visit_url = 'https://calendar.app.google/DSkdUAXqMmRxZnti8' %}
{% elseif Product.Kofun.id == 'FaUkQoWKRHRumqlKIvgg' %}
{% set visit_url = 'https://calendar.app.google/SasLwuKaFwQSZZrz7' %}
{% endif %}
{% elseif app.environment == 'dev' %}
{% set visit_url = 'https://calendar.app.google/ECkmJUvKpra9SSQU9' %}
{% endif %}
{% if visit_url is defined %}
<div class="ec-productRole__kofun-content visit-reservation">
<a href="{{ visit_url }}" target="_blank">
<span>見学のご予約はこちらから</span>
</a>
</div>
{% endif %}
<div class="ec-productRole__kofun-content basicline">
<h2>基本情報</h2>
<div class="content">
<span class="label">{{ 'front.kofun.base_info__danka_duty'|trans }}</span>{{ Product.Kofun.dankaDuty|raw|nl2br }}
</div>
<div class="content">
<span class="label">{{ 'front.kofun.base_info__religion'|trans }}</span>{{ Product.Kofun.religion|raw|nl2br }}
</div>
<div class="content">
<span class="label">{{ 'front.kofun.base_info__successor'|trans }}</span>{{ Product.Kofun.successor|raw|nl2br }}
</div>
<div class="content">
<span class="label">{{ 'front.kofun.base_info__ritual'|trans }}</span>{{ Product.Kofun.ritual|raw|nl2br }}
</div>
<div class="content">
<span class="label">{{ 'front.kofun.base_info__features'|trans }}</span>{{ Product.Kofun.features|raw|nl2br }}
</div>
<div class="content">
<span class="label">{{ 'front.kofun.base_info__facilities'|trans }}</span>{{ Product.Kofun.facilities|raw|nl2br }}
</div>
<div class="content">
<span class="label">{{ 'front.kofun.base_info__business_hours'|trans }}</span>{{ Product.Kofun.businessHours|raw|nl2br }}
</div>
<div class="content">
<span class="label">{{ 'front.kofun.base_info__holidays'|trans }}</span>{{ Product.Kofun.holidays|raw|nl2br }}
</div>
</div>
<div class="ec-productRole__kofun-content basicline">
<h2>古墳の概要</h2>
<div class="content">
<span class="label">【形状】</span>
<div class="value">
{{ Product.Kofun.shape|raw|nl2br }}
</div>
</div>
<div class="content">
<span class="label">【区画】</span>
<div class="value">
<div>{{ 'front.kofun.kofun_summary__section_one_person'|trans({'%count%': Product.Kofun.onePersonSectionCount}) }}</div>
{% if (Product.Kofun.twoPersonSectionCount > 0) %}
<div>{{ 'front.kofun.kofun_summary__section_two_person'|trans({'%count%': Product.Kofun.twoPersonSectionCount}) }}</div>
{% endif %}
<div>{{ 'front.kofun.kofun_summary__section_communal'|trans({'%count%': Product.Kofun.communalSectionCount}) }}</div>
</div>
</div>
<div class="content">
<span class="label">【副葬品】</span>
<div class="value">
{{ Product.Kofun.burialGoods|raw|nl2br }}
</div>
</div>
<div class="content">
<span class="label">【販売開始日】</span>
<div class="value">
{{ Product.Kofun.salesStartDate|raw|nl2br }}
</div>
</div>
<div class="content">
<span class="label">【完成予定日】</span>
<div class="value">
{{ Product.Kofun.completionDate|raw|nl2br }}
</div>
</div>
{% for BlueprintImage in Product.Kofun.BlueprintImage %}
<div class="blueprint-image">
<img src="{{ asset(BlueprintImage, 'save_image') }}">
</div>
{% endfor %}
<div class="ec-grid3">
{% set descriptions = Product.imageDescriptions|split('|') %}
{% for ProductImage in Product.ProductImage|slice(1, 3) %}
<div class="ec-grid3__cell product-image">
<img src="{{ asset(ProductImage, 'save_image') }}" alt="" loading="lazy">
{% if descriptions[loop.index0] is defined %}
<div class="product-image-description">
{{ descriptions[loop.index0]|raw|nl2br }}
</div>
{% endif %}
</div>
{% endfor %}
</div>
</div>
<div class="ec-productRole__kofun-content scroll-to-checkout">
<a href="#checkout">
<span>ご購入はこちらから</span>
</a>
</div>
{% if Product.movie_url %}
<div class="ec-productRole__kofun-content introduction_movie">
<h2>{{ 'front.kofun.introduction_movie'|trans }}</h2>
<div class="ec-productRole__movie">
{% for movie_url in Product.movie_url|split('\n') %}
<div class="movie-item">
<iframe src="https://www.youtube.com/embed/{{ movie_url|split(',')|first }}?mute=1&rel=0&loop=1" frameborder="0" allow="picture-in-picture" allowfullscreen></iframe>
{% if movie_url|split(',')|length > 1 %}
<div class="movie-caption">
{{ movie_url|split(',', 2)|last }}
</div>
{% endif %}
</div>
{% endfor %}
</div>
</div>
{% endif %}
<div class="ec-productRole__kofun-content price-table">
<h2>{{ 'front.kofun.price_table'|trans }}</h2>
<div class="header">
<span class="label">{{ 'front.kofun.price_table_header__type'|trans }}</span>
<div class="value">
{{ 'front.kofun.price_table_header__price'|trans }}
</div>
</div>
{% for ProductClass in Product.ProductClasses %}
<div class="content">
<span class="label">{{ ProductClass.ClassCategory1.Name }}</span>
<div class="value">
{{ 'front.kofun.price_table_data__price'|trans({'%price1%': ProductClass.eternalUseFee|number_format, '%price2%': ProductClass.miscellaneousFee|number_format, '%price3%': ProductClass.Price02|number_format}) }}
</div>
</div>
{% endfor %}
<div class="note">{{ 'front.kofun.price_table_note'|trans }}</div>
</div>
<div class="ec-productRole__kofun-content">
<h3>{{ 'front.kofun.fee_list'|trans }}</h3>
<div class="tab-container">
<div class="tab-buttons">
<button class="tab-button active" data-tab="eternal">{{ 'front.kofun.fee_list__eternal'|trans }}</button>
<button class="tab-button" data-tab="communal">{{ 'front.kofun.fee_list__communal'|trans }}</button>
</div>
<div id="eternal" class="tab-content active">
{% if (Product.Kofun.eternalBurialFee > 0) %}
<div class="content">
<span class="label">{{ 'front.kofun.fee_list__burial'|trans }}</span>
<div class="value">
{{ 'front.kofun.fee_list__unit_price'|trans({'%price%': Product.Kofun.eternalBurialFee|number_format}) }}
<div class="fee-note">{{ 'front.kofun.fee_list__note'|trans }}</div>
</div>
</div>
<div class="content">
<span class="label">{{ 'front.kofun.fee_list__inscription'|trans }}</span>
<div class="value">
{{ 'front.kofun.fee_list__unit_price'|trans({'%price%': Product.Kofun.eternalInscriptionFee|number_format}) }}
</div>
</div>
<div class="content">
<span class="label">{{ 'front.kofun.fee_list__maintenance'|trans }}</span>
<div class="value">
{{ 'front.kofun.fee_list__section_price'|trans({'%price%': Product.Kofun.eternalMaintenanceFee|number_format}) }}
</div>
</div>
<div class="content-group">
<div class="content">
<span class="label">{{ 'front.kofun.fee_list__eternal_single_misc'|trans }}</span>
<div class="value">
{{ 'front.kofun.fee_list__total_price'|trans({'%price%': Product.Kofun.singleMiscFee|number_format}) }}
</div>
</div>
<div class="content">
<span class="label">{{ 'front.kofun.fee_list__eternal_double_misc'|trans }}</span>
<div class="value">
{{ 'front.kofun.fee_list__total_price'|trans({'%price%': Product.Kofun.doubleMiscFee|number_format}) }}
</div>
</div>
</div>
{% else %}
<div class="content">
<span class="label">諸費用</span>
<div class="value">
入山費、納骨料、骨壺代、植栽維持費(管理費)合わせて{{ Product.Kofun.eternalMaintenanceFee|number_format }}円(税込)
<div class="fee-note">※ 墓誌銘板および彫刻は含まれていません。</div>
</div>
</div>
{% endif %}
<div class="content-group">
<h5>オプション</h5>
{% if (Product.Kofun.eternalBurialFee > 0) %}
<div class="content">
<span class="label">{{ 'front.kofun.fee_list__option_extension'|trans }}</span>
<div class="value">
{{ 'front.kofun.fee_list__option_extension_price'|trans({'%price%': Product.Kofun.extensionFee|number_format}) }}
<div class="fee-note">{{ 'front.kofun.fee_list__option_note'|trans }}</div>
</div>
</div>
{% else %}
<div class="content">
<span class="label">{{ 'front.kofun.fee_list__option_extension'|trans }}</span>
<div class="value">
20年まで10年間ごとに{{ Product.Kofun.extensionFee|number_format }}円(非課税)<br/>
永年使用は515,000円(非課税)
<div class="fee-note">{{ 'front.kofun.fee_list__option_note'|trans }}</div>
</div>
</div>
<div class="content">
<span class="label">墓誌彫刻</span>
<div class="value">
22,000円(税込)
<div class="fee-note">※ ご希望のお客様は古墳墓をご購入後、お問い合わせからお申し込みください。</div>
</div>
</div>
{% endif %}
</div>
</div>
<div id="communal" class="tab-content">
{% if (Product.Kofun.communalBurialFee > 0) %}
<div class="content">
<span class="label">{{ 'front.kofun.fee_list__burial'|trans }}</span>
<div class="value">
{{ 'front.kofun.fee_list__price'|trans({'%price%': Product.Kofun.communalBurialFee|number_format}) }}
</div>
</div>
<div class="content">
<span class="label">{{ 'front.kofun.fee_list__inscription'|trans }}</span>
<div class="value">
{{ 'front.kofun.fee_list__price'|trans({'%price%': Product.Kofun.communalInscriptionFee|number_format}) }}
</div>
</div>
<div class="content">
<span class="label">{{ 'front.kofun.fee_list__maintenance'|trans }}</span>
<div class="value">
{{ 'front.kofun.fee_list__price'|trans({'%price%': Product.Kofun.communalMaintenanceFee|number_format}) }}
</div>
</div>
<div class="content-group">
<div class="content">
<span class="label">{{ 'front.kofun.fee_list__communal_misc'|trans }}</span>
<div class="value">
{{ 'front.kofun.fee_list__total_price'|trans({'%price%': Product.Kofun.communalMiscFee|number_format}) }}
</div>
</div>
</div>
{% else %}
<div class="content">
<span class="label">諸費用</span>
<div class="value">
入山費、納骨料、植栽維持費(管理費)合わせて{{ Product.Kofun.communalMaintenanceFee|number_format }}円(税込)
</div>
</div>
{% endif %}
</div>
</div>
</div>
<div class="ec-productRole__kofun-content buy_process">
<h2>古墳墓のお手続き</h2>
<div class="content">
①料金表と霊園規則をご確認の上、ご注文ください。
</div>
<div class="content">
②ご購入に際し、お申込者様の続柄確認書類をご提出いただきます。写真のアップロード、または郵送にてご提出をお願いいたします。
</div>
<div class="content sub">
※続柄確認書類とはお申込者及び埋葬予定者の本籍地と世帯全員のお名前が記載されたものとなります。(住民票や戸籍謄本など)発行から3カ月以内
</div>
<div class="content">
③お支払い確認後、霊園から「永代使用承諾証」をお送りいたします。
</div>
<div class="content link">
{% if Product.Kofun.termsFileName %}
<a href="{{ asset(Product.Kofun.termsFileName, 'terms_file') }}" target="_blank">墓地使用規則>></a>
{% else %}
<div class="warning">墓地使用規則がアップロードされていません。</div>
{% endif %}
</div>
</div>
</div>
{% endif %}
<div class="ec-productRole__description">{{ Product.description_detail|raw|nl2br }}
</div>
{% if Product.freearea %}
<div class="ec-productRole__description">
{{ include(template_from_string(Product.freearea), sandboxed = true) }}
</div>
{% endif %}
<div class="ec-productRole__profile" id="checkout">
{# タグ #}
{% if Product.Tags is not empty %}
<ul class="ec-productRole__tags">
{% for Tag in Product.Tags %}
<li class="ec-productRole__tag tag_{{ Tag.id }}">{{ Tag }}</li>
{% endfor %}
</ul>
{% endif %}
{# 通常価格 #}
{% if Product.hasProductClass -%}
<div class="ec-productRole__priceRegular">
{% if Product.getPrice01Min is not null and Product.getPrice01IncTaxMin == Product.getPrice01IncTaxMax %}
<span class="ec-productRole__priceRegularPrice">{{ 'front.product.normal_price'|trans }}:<span class="price01-default">{{ Product.getPrice01IncTaxMin|price }}</span></span>
<span class="ec-productRole__priceRegularTax">{{ 'common.tax_include'|trans }}</span>
{% elseif Product.getPrice01Min is not null and Product.getPrice01Max is not null %}
<span class="ec-productRole__priceRegularPrice">{{ 'front.product.normal_price'|trans }}:<span class="price01-default">{{ Product.getPrice01IncTaxMin|price }}~ {{ Product.getPrice01IncTaxMax|price }}</span></span>
<span class="ec-productRole__priceRegularTax">{{ 'common.tax_include'|trans }}</span>
{% endif %}
</div>
{% else %}
{% if Product.getPrice01Max is not null %}
<span class="ec-productRole__priceRegularPrice">{{ 'front.product.normal_price'|trans }}:{{ Product.getPrice01IncTaxMin|price }}</span>
<span class="ec-productRole__priceRegularTax">{{ 'common.tax_include'|trans }}</span>
{% endif %}
{% endif %}
{# 販売価格 #}
<div class="ec-productRole__price">
{% if Product.hasProductClass -%}
{% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
<div class="ec-price">
<span class="ec-price__price price02-default">{{ Product.getPrice02IncTaxMin|price }}</span>
<span class="ec-price__tax">{{ 'common.tax_include'|trans }}</span>
</div>
{% else %}
<div class="ec-price">
<span class="ec-price__price price02-default">{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}</span>
<span class="ec-price__tax">{{ 'common.tax_include'|trans }}</span>
</div>
{% endif %}
{% else %}
<div class="ec-price">
<span class="ec-price__price">{{ Product.getPrice02IncTaxMin|price }}</span>
<span class="ec-price__tax">{{ 'common.tax_include'|trans }}</span>
</div>
{% endif %}
</div>
{# 商品コード #}
{% if Product.code_min is not empty %}
<div class="ec-productRole__code">
{{ 'front.product.code'|trans }}: <span class="product-code-default">{{ Product.code_min }}{% if Product.code_min != Product.code_max %} ~ {{ Product.code_max }}{% endif %}</span>
</div>
{% endif %}
{# 関連カテゴリ #}
{% if Product.ProductCategories is not empty %}
<div class="ec-productRole__category">
{% for ProductCategory in Product.ProductCategories %}
<ul>
<li>
{% for Category in ProductCategory.Category.path %}
<a href="{{ url('product_list') }}?category_id={{ Category.id }}">{{ Category.name }}</a> {%- if loop.last == false %}
<span>></span>{% endif -%}
{% endfor %}
</li>
</ul>
{% endfor %}
</div>
{% endif %}
<form action="{{ url('product_add_cart', {id:Product.id}) }}" method="post" id="form1" name="form1">
{% if Product.stock_find %}
<div class="ec-productRole__actions">
{% if form.classcategory_id1 is defined %}
<div class="ec-select">
{{ form_row(form.classcategory_id1) }}
{{ form_errors(form.classcategory_id1) }}
</div>
{% if form.classcategory_id2 is defined %}
<div class="ec-select">
{{ form_row(form.classcategory_id2) }}
{{ form_errors(form.classcategory_id2) }}
</div>
{% endif %}
{% endif %}
<div class="ec-productRole__stock" id="selected-product-stock" style="margin-bottom: 10px;">
<span>{{ 'front.product.stock'|trans }}</span>
<span class="ec-productRole__stockQuantity" id="selected-stock-quantity">
{{ 'front.product.please_select_product_class'|trans }}
</span>
</div>
<div class="ec-numberInput"><span>{{ 'common.quantity'|trans }}</span>
{{ form_widget(form.quantity) }}
{{ form_errors(form.quantity) }}
</div>
</div>
{% if Product.isCanAddCart %}
<div class="ec-productRole__btn">
<button type="submit" class="ec-blockBtn--action add-cart">
{{ 'front.product.add_cart'|trans }}
</button>
</div>
{% else %}
<div class="ec-productRole__btn">
<button type="button" class="ec-blockBtn--action" disabled="disabled">
{{ 'front.product.can_not_add_cart'|trans }}
</button>
</div>
{% endif %}
{% else %}
<div class="ec-productRole__btn">
<button type="button" class="ec-blockBtn--action" disabled="disabled">
{{ 'front.product.out_of_stock'|trans }}
</button>
</div>
{% endif %}
{{ form_rest(form) }}
</form>
<div class="ec-modal">
<div class="ec-modal-overlay">
<div class="ec-modal-wrap">
<span class="ec-modal-close"><span class="ec-icon"><img src="{{ asset('assets/icon/cross-dark.svg') }}" alt=""/></span></span>
<div id="ec-modal-header" class="text-center">{{ 'front.product.add_cart_complete'|trans }}</div>
<div class="ec-modal-box">
<div class="ec-role">
<span class="ec-inlineBtn--cancel">{{ 'front.product.continue'|trans }}</span>
<a href="{{ url('cart') }}" class="ec-inlineBtn--action">{{ 'common.go_to_cart'|trans }}</a>
</div>
</div>
</div>
</div>
</div>
{% if BaseInfo.option_favorite_product %}
<form action="{{ url('product_add_favorite', {id:Product.id}) }}" method="post">
<div class="ec-productRole__btn">
{% if is_favorite == false %}
<button type="submit" id="favorite" class="ec-blockBtn--cancel">
{{ 'front.product.add_favorite'|trans }}
</button>
{% else %}
<button type="submit" id="favorite" class="ec-blockBtn--cancel"
disabled="disabled">{{ 'front.product.add_favorite_alrady'|trans }}
</button>
{% endif %}
</div>
</form>
{% endif %}
</div>
</div>
{% endblock %}