/*
Theme Name: NorthBrave Original
Author: NorthBrave
Version: 1.0
*/

/* ====================================================================================
 1. WEBフォント設定
==================================================================================== */
@font-face {
  font-family: 'tiktok_x_icon';
  src: url('fonts/tiktok_x_icon.eot?v=1.1');
  src: url('fonts/tiktok_x_icon.eot?v=1.1#iefix') format('embedded-opentype'),
       url('fonts/tiktok_x_icon.woff?v=1.1') format('woff'),
       url('fonts/tiktok_x_icon.ttf?v=1.1') format('truetype'),
       url('fonts/tiktok_x_icon.svg?v=1.1#tiktok_x_icon') format('svg');
  font-weight: normal;
  font-style: normal;
}

/* ====================================================================================
 2. 全体・共通基本スタイル
==================================================================================== */
body {
    font-family: "Noto Serif JP", serif; /* 明朝体で高級感を出す */
    background-image: url('images/AdobeStock_317053353.jpeg') !important; /* 背景画像の確定版 */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* スクロールしても背景を固定する */
    color: #333;
    line-height: 1.8;
    margin: 0;
    padding: 20px;
}

h1 {
    font-size: 1.9rem;
    font-weight: bold;
    letter-spacing: 0.5em;
    color: #af9d64;
    text-align: center;
    margin-bottom: 40px;
    text-indent: 0.5em;
}

h2 {
    font-size: 1.3rem;
    letter-spacing: 0.2em;
    text-indent: 0.2em;
}

/* 故人同士を区切る上品な二重線（一覧ページ用） */
.fuhou-border {
    border-top: 1px double #999;
    opacity: 1;
    margin: 20px 0;
}

/* ====================================================================================
 3. 共通レイアウト・コンテナ設定
==================================================================================== */
/* 詳細ページ専用：案内状の白い外枠コンテナ */
.container {
    position: relative; 
    max-width: 600px;
    margin: 40px auto;
    padding: 40px 20px;
    background: #ffffff;
    border-top: 5px solid #af9d64; /* 上部にゴールドのアクセント */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* 柔らかな影 */
    z-index: 1; 
    overflow: hidden; 
}

/* 詳細ページの背景に敷く薄い蓮の画像 */
.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/28823848_m.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.45;
    z-index: -1; 
}

/* 一覧ページ専用：全体を中央に寄せる透明な外枠 */
.fuhou-archive-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ====================================================================================
 4. 訃報 案内文エリア（.notice-content）
==================================================================================== */
.notice-content {
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-indent: 0.1em; 
    line-height: 1.6;
}

/* 故人名の強調（一回り大きく、威厳を持たせる） */
.deceased-name {
    font-size: 1.8rem;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 15px;
    color: #000;
}

/* 享年 */
.aged {
    font-size: 1.3rem;
}

/* 享年・永眠日時の段落余白を詰める */
.aged, 
.notice-content p {
    margin-top: 0;
    margin-bottom: 8px;
}

/* 喪主情報のデザイン（詳細ページ用） */
.moshu-block {
    margin: 5px 0 12px 0; 
    padding: 0;
    text-align: center;
}

.moshu-item {
    margin: 0;
    font-size: 1.2rem; 
}

.moshu-label {
    color: #555;
}

.moshu-value {
    font-weight: bold;
    color: #222;
}

.moshu-relationship {
    font-size: 1rem; 
    color: #666;       
}

/* ====================================================================================
 5. 日程表エリア（.details / .detail-item）
==================================================================================== */
.details {
    background: #f9f9f9;
    padding: 1px 20px 10px 20px;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

/* 日程表の右下に敷く薄い花の画像 */
.details::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150%;  
    height: 150%; 
    background-image: url('images/22481066.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    opacity: 0.3;
    z-index: -0.5;
}

.detail-item {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding: 15px 10px;
}

.label {
    width: 90px;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-indent: 0.1em; 
    flex-shrink: 0;
}

.value {
    flex: 1;
}

/* 日時を表示している箇所（等幅フォント設定） */
.detail-item .value {
    font-weight: 600;
    font-variant-numeric: tabular-nums; 
    font-feature-settings: "palt" 0; 
    letter-spacing: 0.05em;
}

/* 各種リンク（詳細ページ用） */
.map-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9em;
}

.tel-link {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.tel-link:hover,
.map-link:hover {
    text-decoration: underline;
}

/* ====================================================================================
 6. アクションボタン（LINE / メール / 一覧）
==================================================================================== */
.actions {
    margin-top: 30px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-line, .btn-email, .btn-archive {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 15px;
    margin-bottom: 10px;
    font-weight: bold;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 30px; /* 丸みのある上品なボタンに統一 */
}

.btn-line {
    background-color: #06C755;
    color: white;
}

.btn-email {
    background-color: #0078d4;
    color: white;
}

.btn-archive {
    background-color: #444444; /* おごそかなダークグレー */
    color: #ffffff;
}

.btn-line:hover, .btn-email:hover, .btn-archive:hover {
    transform: translateY(-2px);
}

.btn-archive:hover {
    background-color: #af9d64; /* ホバー時にゴールドへ変化 */
    color: #ffffff;
}

/* ====================================================================================
 7. 担当葬儀会社情報ブロック（.company-info）
==================================================================================== */
.company-info {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    font-family: "Noto Serif JP", serif;
}

.company-divider {
    border: 0;
    border-top: 1px dashed #ccc;
    margin-bottom: 25px;
}

.company-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

.company-name {
    font-size: 1.15rem;
    font-weight: bold;
    color: #222;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.company-details {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.6;
}

.company-tel {
    color: #af9d64; 
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
}

/* ====================================================================================
 8. 訃報一覧ページ（独立カード型案内状）専用スタイル
==================================================================================== */
/* 一覧ページの専用ヘッダーエリア */
.archive-page-header {
    text-align: center;
}

/* 一覧ページの専用タイトル（ゴールド文字に白座布団を敷いて視認性を確保） */
.archive-page-header h1 {
    font-size: 2.0rem;
    font-weight: bold;
    letter-spacing: 0.5em;
    color: #af9d64; 
    text-indent: 0.5em;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    display: inline-block; 
    background: rgba(255, 255, 255, 0.75); 
    padding: 10px 30px; 
    border-radius: 4px; 
    border: 1px solid rgba(175, 157, 100, 0.3); 
    margin: 0 auto 20px auto;
}

.fuhou-sub-title {
    font-size: 1rem;
    font-weight: 700;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
}

/* 故人ごとの独立した案内状カード */
.archive-fuhou-card {
    position: relative;
    background: #ffffff;
    border-top: 5px solid #af9d64; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    padding: 40px 20px;
    margin-bottom: 40px; 
    overflow: hidden;
    z-index: 1;
}

.archive-fuhou-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/28823848_m.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.45;
    z-index: -1;
}

/* 一覧ページ最下部：会社情報専用の独立カード */
.company-info-card {
    position: relative;
    background: #ffffff;
    border-top: 5px solid #af9d64;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 30px 20px;
    overflow: hidden;
    z-index: 1;
    margin-top: 50px;
}

.company-info-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/28823848_m.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2; 
    z-index: -1;
}

/* ====================================================================================
 9. レスポンシブ設定（スマホ対応：560px以下）
==================================================================================== */
@media screen and (max-width: 560px) {
    .detail-item {
        flex-direction: column; 
        padding: 12px 0;
        display: block !important; 
    }

    .label {
        width: 100% !important;   
        margin-bottom: 5px;    
        font-size: 0.8rem;     
        color: #af9d64;        
        display: block !important;
    }

    .value {
        width: 100%;
        font-size: 1.00rem;    
        padding-left: 0;       
        line-height: 1.4;
    }
}