@charset "utf-8";
/* =========================================================
   まことクラフト 作り直し 仮組み（_test260702）
   デザイン画像（home / nikki 詳細）に合わせた構成
   home       … ロゴ直下から左寄せ本文＋右回り込みイラスト＋右端に縦書き
   nikki       … 日記一覧（3列カード）
   nikki_detail… 日記詳細（写真＋本文）
   ※ロゴ・イラスト・ボタン等の画像は S3（本番同一パス）を直接参照
   ========================================================= */

:root {
    --ink: #111;
    --accent: #f5a623;
    --line: #111;
    --ph-bg: #f6f6f6;
    --ph-line: #ccc;
}

* { box-sizing: border-box; }

body {
    color: var(--ink);
    background: #fff;
    overflow-x: hidden;
    font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    font-weight: 500;
    line-height: 1.85;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 32px 30px 44px;
}

/* 本文（共通・左寄せ） */
.philosophy { text-align: left; }
.philosophy p { margin: 0 0 1.3em; text-indent: 1em; }
/* 1段落目（「それはブランドです」）だけインデントなし。
   .philosophy の先頭には挿絵(.illust-pc)が入るため :first-child では当たらない。
   最初の<p>を確実に狙うため :first-of-type を使う。 */
.philosophy p:first-of-type { text-indent: 0; }

/* 下部ナビ（ラベルは画像内蔵）
   「日記(左) / お買いもの(中央) / 連絡(右)」の3スロット。
   1fr auto 1fr でお買いものを常にページ中央に固定し、両脇に日記・連絡を配置。
   align-items:end で各ボタンを下ぞろえ（下端揃え）にする。 */
.nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    column-gap: 34px; /* お買いものと両脇ボタンの横間隔（元の間隔に戻す） */
}
.nav a, .nav span { display: block; }
.nav img { width: 92px; height: auto; }
.nav .shop { justify-self: center; } /* お買いものは常にページ中央 */
.nav .shop img { width: 108px; }
/* 日記は中央のお買いもの寄りに。図柄が画像上部寄りで浮いて見えるため、
   下方向に少し下げて連絡と下端をそろえる。 */
.nav .nikki { justify-self: end; transform: translateY(11px); }
.nav .renraku { justify-self: start; } /* 連絡は中央のお買いもの寄りに */
.nav .renraku img { width: 74px; } /* 連絡は図柄が枠いっぱいで大きく見えるため縮小（サイズバランス） */
.nav .slot-empty { width: 0; } /* 自ページの空スロット。枠(1fr)だけ確保しお買いものの中央を維持 */
.nav a { transition: opacity .2s; }
.nav a:hover { opacity: .7; }

/* フッター */
.site-footer {
    text-align: center;
    font-size: 12px;
    line-height: 1.8;
    color: #333;
    padding-top: 10px;
}

/* =======================  HOME（PC）  ======================= */
.home { position: relative; padding-right: 76px; } /* 右端の縦書き分 */

/* 縦書き：右端に絶対配置 */
.ikiru-pc { position: absolute; top: 6px; right: 0; }
.ikiru-pc img { height: 430px; width: auto; }

.hero-sp { display: none; } /* PCではSP用ヒーローを隠す */

.home-head { margin-bottom: 16px; }
.home-head .logo { width: 250px; }
.nav-top { display: none; } /* PCでは上部ナビ非表示 */

/* 本文先頭のイラストを右にfloatして回り込ませる */
.philosophy .illust-pc { float: right; width: 310px; margin: 0 4px 14px 40px; }

.home .nav-bottom { clear: both; padding: 30px 0 34px; }
/* 下部ナビ（PC）は3ボタンの間隔を広げる（お客様PDF指定／nav-topは対象外）。
   各1frスロットの中央基準から内側へ約100px戻し、広げすぎず均等感のある間隔にする。
   日記は既存の下げ translateY(11px) を維持したまま横移動を合成。 */
.home .nav-bottom .nikki   { justify-self: center; transform: translate(100px, 11px); }
.home .nav-bottom .renraku { justify-self: center; transform: translateX(-100px); }

/* =======================  日記 共通ヘッダー  =======================
   ロゴを左に置きつつ、日記/連絡ラベルはページ左右中央に来るようにする。
   1fr auto 1fr の中央列にラベルを入れると、ロゴ幅に影響されず常に中央。 */
.diary-head {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 22px;
}
.diary-head .logo { width: 250px; justify-self: start; } /* トップと共通サイズ・左寄せ */
.diary-head .diary-label { grid-column: 2; } /* 中央列に固定＝ページ左右中央 */
.diary-head .diary-label img { width: 128px; }
.contact .diary-head .diary-label img { width: 104px; } /* 連絡ラベルは大きく見えるため縮小（サイズバランス） */

.diary-body { display: flex; gap: 34px; align-items: flex-start; }
.diary-archive { flex: 0 0 84px; font-size: 13px; line-height: 2.1; }
.diary-archive .year { font-weight: 700; }
.diary-archive .month { padding-left: 1em; }
.diary-archive .note { margin-top: 10px; font-size: 10px; color: #c00; }

/* JSで年グループ化したアーカイブ（▼年→月） */
.diary-archive .arch-year { margin-bottom: 4px; }
.diary-archive .arch-toggle {
    display: inline-flex; align-items: center; gap: 5px;
    background: none; border: 0; padding: 0;
    font: inherit; font-weight: 700; color: var(--ink); cursor: pointer;
}
.diary-archive .arch-mark { font-size: 9px; line-height: 1; }
.diary-archive .arch-months { list-style: none; margin: 2px 0 8px; padding-left: 1.2em; }
.diary-archive .arch-year:not(.open) .arch-months { display: none; }
.diary-archive .arch-months li { line-height: 1.95; }
.diary-archive .arch-months a { color: var(--ink); }
.diary-archive .arch-months a:hover { opacity: .6; }
.diary-archive .arch-months li.empty span { color: #ccc; } /* 記事のない月 */
.diary-main { flex: 1 1 auto; min-width: 0; }

.cms-note { font-size: 11px; color: #c00; margin: 8px 0 0; }

/* ---- 写真プレースホルダ（対角線＋橙の「写真」） ---- */
.photo-box {
    position: relative;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}
.photo-box span {
    position: relative;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* =======================  日記一覧（3列カード）  ======================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px 22px;
}
.card { display: block; min-width: 0; } /* グリッド項目が内容幅で膨らむのを防ぐ */
.card .photo-box { aspect-ratio: 4 / 3; overflow: hidden; word-break: break-all; }
.card .photo-box img { width: 100%; height: 100%; object-fit: cover; position: relative; } /* CMS出力の画像を枠にフィット */
.card .photo-box span { font-size: 30px; }
.card .card-meta { margin-top: 8px; font-size: 12px; line-height: 1.6; }
.card .card-date { color: #888; font-size: 11px; }
.card:hover .photo-box { opacity: .8; }
.list-note { margin: 6px 0 18px; }

.nikki .nav { padding: 34px 0 30px; }

/* =======================  日記詳細（記事）  ======================= */
/* 記事ヘッダー：タイトル＋日付（黒の細線で締めるミニマル調） */
.entry-head {
    margin: 2px 0 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ink);
}
.entry-title {
    font-size: clamp(19px, 2.6vw, 25px);
    font-weight: 700;
    line-height: 1.6;
    margin: 0 0 10px;
}
.entry-date {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.14em;
    color: #777;
}
/* 本文 */
.entry-body { line-height: 1.95; }
.entry-body img { height: auto; margin: 10px 0; }
.entry-body p { margin: 0 0 1.2em; }
/* 前後記事リンク（左:page_next / 右:page_prev） */
.entry-nav {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}
.entry-nav .pages { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.entry-nav .page_next { margin-right: auto; max-width: 48%; }
.entry-nav .page_prev { margin-left: auto; max-width: 48%; text-align: right; }
.entry-nav a {
    display: inline-block;
    max-width: 100%;
    padding: 8px 15px;
    border: 1px solid var(--ink);
    border-radius: 2px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    transition: background .2s, color .2s;
}
.entry-nav a:hover { background: var(--ink); color: #fff; }

.detail-main .philosophy { margin-top: 24px; }
.nikki-detail .nav { padding: 34px 0 30px; }

/* =======================  連絡（お問い合わせ）  ======================= */
/* ヘッダーは日記ページと共通（.diary-head を流用：ロゴ＋連絡ラベル） */
.contact-body { margin: 4px 0 8px; }

/* フォーム本体はCMS（cms=27804-1）が出力。フィールド名やラベルはCMS側管理のため、
   ここでは汎用セレクタで見た目のみ まことクラフト調（黒枠・角なし）に整える。 */
.contact-body input:not([type="submit"]):not([type="button"]),
.contact-body textarea {
    width: 100%;
    font: inherit;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 8px 10px;
    -webkit-appearance: none;
    appearance: none;
}
.contact-body textarea { min-height: 380px; resize: vertical; line-height: 1.8; }

/* 送信ボタン */
.contact-body input[type="submit"],
.contact-body button {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 34px;
    font: inherit;
    color: #fff;
    background: var(--ink);
    border: 1px solid var(--ink);
    border-radius: 2px;
    cursor: pointer;
    transition: opacity .2s;
}
.contact-body input[type="submit"]:hover,
.contact-body button:hover { opacity: .8; }

.contact .nav { padding: 34px 0 30px; }

/* =======================  レスポンシブ（SP）  ======================= */
@media screen and (max-width: 768px) {
    .wrap { padding: 20px 18px 32px; }

    /* --- 連絡 SP --- */
    .contact-body .form-contents { padding: 25px 15px; }
    .contact-body textarea { min-height: 300px; }

    /* --- HOME SP：ヘッダー(ロゴ左＋ナビ右)→イラスト＋縦書き横並び→本文 --- */
    .home { padding-right: 0; display: flex; flex-direction: column; }

    .ikiru-pc { display: none; }        /* SPでは縦書きはヒーロー側で出す */
    .home .philosophy .illust-pc { display: none; }
    .home .nav-bottom { display: none; } /* SPは上部ナビのみ */

    /* ヘッダー：ロゴ左＋ナビ右（同じ行） */
    .home-head {
        order: 0;
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
    }
    .home-head .logo { width: 132px; flex: 0 0 auto; }
    .home-head .nav-top { display: flex; gap: 12px; align-items: flex-end; margin-left: auto; flex: 0 0 auto; }
    .home-head .nav-top img { width: 46px; }
    .home-head .nav-top .shop img { width: 52px; }
    .home-head .nav-top .renraku img { width: 37px; } /* 連絡はSPでも縮小（サイズバランス） */
    .home-head .nav-top .nikki { transform: translateY(5px); } /* 日記は浮いて見えるため下げて連絡と下端そろえ */

    /* イラストと縦書きを左右に並べる（人物:縦書き ＝ 6:4） */
    .hero-sp {
        order: 1;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 12px;
        margin: 6px 0 16px;
    }
    .hero-sp .illust img { height: 360px; width: auto; }
    .hero-sp .ikiru img { height: 240px; width: auto; }

    .home .philosophy { order: 2; }
    .home .site-footer { order: 3; }

    /* --- 日記 共通 SP --- */
    /* ヘッダーはグリッド(1fr auto 1fr)のまま。ロゴ左・ラベルは左右中央を維持。
       ロゴをやや小さくして、中央ラベルとの間に余白を確保する */
    .diary-head { margin-bottom: 16px; }
    .diary-head .logo { width: 108px; } /* ロゴとラベルの間隔を広げるため縮小 */
    .diary-head .diary-label img { width: 96px; }
    .contact .diary-head .diary-label img { width: 78px; } /* 連絡ラベルはSPでも縮小 */

    /* 日記・連絡ページの下部ボタンはSPでは非表示（お客様指示：スマホは削除） */
    .nikki .nav,
    .contact .nav { display: none; }

    .diary-body { flex-direction: column; gap: 16px; }
    .diary-archive {
        flex: none;
        display: flex; flex-wrap: wrap; gap: 4px 14px;
        align-items: baseline;
    }
    .diary-archive .month { padding-left: 0; }
    .diary-archive .note { margin-top: 0; }

    /* 一覧カード：SPは2列 */
    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
    .card .photo-box span { font-size: 22px; }

    .detail-main .photo-box span { font-size: 40px; }
}
