/* ===== リセットCSS（ress v5.0.2 を統合。外部CDNを待たないため） ===== */
html{-webkit-text-size-adjust:100%;box-sizing:border-box;-moz-tab-size:4;tab-size:4;word-break:normal}*,:after,:before{background-repeat:no-repeat;box-sizing:inherit}:after,:before{text-decoration:inherit;vertical-align:inherit}*{margin:0;padding:0}hr{color:inherit;height:0;overflow:visible}details,main{display:block}summary{display:list-item}small{font-size:80%}[hidden]{display:none}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}a{background-color:transparent}a:active,a:hover{outline-width:0}code,kbd,pre,samp{font-family:monospace,monospace}pre{font-size:1em}b,strong{font-weight:bolder}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-color:inherit;text-indent:0}iframe{border-style:none}input{border-radius:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}textarea{overflow:auto;resize:vertical}button,input,optgroup,select,textarea{font:inherit}optgroup{font-weight:700}button{overflow:visible}button,select{text-transform:none}[role=button],[type=button],[type=reset],[type=submit],button{cursor:pointer}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button:-moz-focusring{outline:1px dotted ButtonText}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}button,input,select,textarea{background-color:transparent;border-style:none}a:focus,button:focus,input:focus,select:focus,textarea:focus{outline-width:0}select{-moz-appearance:none;-webkit-appearance:none}select::-ms-expand{display:none}select::-ms-value{color:currentColor}legend{border:0;color:inherit;display:table;max-width:100%;white-space:normal}::-webkit-file-upload-button{-webkit-appearance:button;color:inherit;font:inherit}[disabled]{cursor:default}img{border-style:none}progress{vertical-align:baseline}[aria-busy=true]{cursor:progress}[aria-controls]{cursor:pointer}[aria-disabled=true]{cursor:default}

/* ===== ここからLumenoraのスタイル ===== */
/* style.css */
@charset "utf-8";

/* ===== Lumenora ブランドカラー ===== */
:root {
    --wine: #7B2E3B;
    /* メイン：ボルドー */
    --wine-deep: #5C1F2B;
    /* 締め */
    --gold: #C08A3E;
    /* アクセント：光。少量だけ使う */
    --paper: #FAF8F4;
    /* ベース：生成り */
    --ink: #3A3F46;
    /* 文字：墨 */
    --line: #E2DCD3;
}

/* 基本 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", YuGothic, Meiryo, "Noto Sans JP", sans-serif;
    color: var(--ink);
    background: var(--paper);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.wrap {
    width: 92%;
    margin: 0 auto;
}

/* セクション共通 */
section {
    padding: 0 15px;
    text-align: center;
}

/* ヘッダー */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
    height: 70px;
}

.page-header {
    width: 92%;
    height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.profile a img {
    width: 9.5rem;
    margin-top: 0.2rem;
}

/* PCナビ */
.pc-nav .header-menu {
    display: flex;
    gap: 28px;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pc-nav .header-menu li {
    list-style: none;
}

.pc-nav .header-menu a {
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

.pc-nav .header-menu a:hover {
    color: var(--wine);
    border-bottom-color: var(--gold);
}

/* CONTACTだけボタン風にして目立たせる */
.pc-nav .header-menu .nav-cta {
    background: var(--wine);
    color: var(--paper);
    padding: 8px 18px;
    border-radius: 3px;
    border-bottom: none;
}

.pc-nav .header-menu .nav-cta:hover {
    background: var(--wine-deep);
    color: var(--paper);
    border-bottom: none;
}

/* ハンバーガー */
.hamburger {
    display: inline-block;
    border: 0;
    background: transparent;
    cursor: pointer;
    width: 32px;
    height: 24px;
    padding: 0;
    position: absolute;
    top: 23px;
    right: 0;
    z-index: 1100;
}

.hamburger span {
    transition: all 0.3s;
    position: absolute;
    height: 2px;
    background-color: var(--ink);
    width: 100%;
    left: 0;
}

.hamburger span:nth-of-type(1) {
    top: 4px;
}

.hamburger span:nth-of-type(2) {
    top: 12px;
}

.hamburger span:nth-of-type(3) {
    top: 20px;
}

.hamburger.open span:nth-of-type(1) {
    top: 10px;
    transform: translateY(6px) rotate(-33deg);
}

.hamburger.open span:nth-of-type(2) {
    opacity: 0;
}

.hamburger.open span:nth-of-type(3) {
    top: 22px;
    transform: translateY(-6px) rotate(33deg);
}

/* ドロワー（スマホ用） */
.drawer {
    position: fixed;
    top: 70px;
    right: 0;
    width: 80vw;
    max-width: 360px;
    height: calc(100dvh - 70px);
    background: var(--paper);
    transform: translateX(100%);
    transition: transform 0.5s;
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.drawer.open {
    transform: translateX(0);
}

.drawer-menu {
    list-style: none;
    padding: 0;
    margin: 5rem 0 0 0;
}

.drawer-menu li {
    list-style: none;
    margin: 0 0 1.25rem 0;
}

.drawer-menu a {
    font-size: 1.05rem;
    letter-spacing: 0.1em;
}

/* ドロワー開時のスクロール抑止 */
body.no-scroll {
    overflow: hidden;
}

/* ===== メインビジュアル ===== */
/* --- ファーストビュー 3枚の切り替え（2026-08-27 追加）
       横スライド（左→右）／8秒／点あり。1枚目だけ即読み、2・3枚目は遅延。 --- */
.mv-slide{position:absolute;inset:0;opacity:0;transform:translateX(-8%);
  transition:opacity .45s ease, transform .65s cubic-bezier(.22,1,.36,1);pointer-events:none}
.mv-slide.is-active{opacity:1;transform:translateX(0);pointer-events:auto}
.mv-slide:first-child{position:relative}          /* 1枚目で高さを作る */
/* 2・3枚目は絶対配置なので、1枚目と同じ高さに引き伸ばす（動画の下に隙間が出るのを防ぐ） */
.mv-slide:not(:first-child) img,
.mv-slide:not(:first-child) video{position:absolute;inset:0;width:100%;height:100%;
  max-height:none;object-fit:cover;object-position:62% center}
.mv-slide img,.mv-slide video{display:block;background:#1E1014}
.mv-dots{position:absolute;z-index:3;left:0;right:0;bottom:6px;
  display:flex;justify-content:center;gap:0}
/* 押せる範囲は 24x24（指で押せる大きさ）。見えている点は 8px のまま */
.mv-dots button{width:24px;height:24px;padding:0;border:0;background:none;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  -webkit-tap-highlight-color:transparent}
.mv-dots button::before{content:"";display:block;width:8px;height:8px;border-radius:50%;
  background:rgba(255,255,255,.45);transition:width .3s,background .3s}
.mv-dots button[aria-selected="true"]::before{background:#fff;width:22px;border-radius:4px}
.mv-dots button:focus-visible{outline:2px solid #fff;outline-offset:-2px}
/* 動きに弱い方への配慮：自動送りを止め、動きも消す */
@media (prefers-reduced-motion: reduce){
  .mv-slide{transition:opacity .2s ease;transform:none}
  .mv-slide.is-active{transform:none}
}
.mainvisual {
    position: relative;
}

.mainvisual img,
.mainvisual video {
    width: 100%;
    object-fit: cover;
}

.mainvisual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(30, 16, 20, 0.78) 0%, rgba(30, 16, 20, 0.45) 55%, rgba(30, 16, 20, 0.15) 100%);
}

.mainvisual-copy {
    position: absolute;
    z-index: 2;
    left: 6%;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    max-width: 40rem;
    color: var(--paper);
}

.mv-lead {
    font-size: clamp(1.1rem, 4.2vw, 2.4rem);
    line-height: 1.5;
    letter-spacing: 0.06em;
    margin: 0 0 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid var(--gold);
    display: inline-block;
    text-align: right;
}

.mv-sub {
    font-size: clamp(0.72rem, 1.9vw, 1rem);
    line-height: 1.8;
    margin: 0 0 1.2rem;
    opacity: 0.92;
}

.mv-btn {
    display: inline-block;
    background: var(--gold);
    color: #fff;
    font-size: clamp(0.72rem, 1.7vw, 0.9rem);
    padding: 0.7em 1.8em;
    border-radius: 3px;
    letter-spacing: 0.08em;
    transition: background 0.2s;
}

.mv-btn:hover {
    background: #a9762f;
}

/* ===== 見出し ===== */
.title {
    display: inline-block;
    border-bottom: 2px solid var(--gold);
    color: var(--wine);
    font-size: 2rem;
    letter-spacing: 0.12em;
    margin-top: 80px;
    margin-bottom: 3rem;
    padding-bottom: 0.3rem;
    text-align: center;
}

/* ===== ABOUT ===== */
.profile-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-photo {
    border-radius: 50%;
    width: 6.25rem;
    height: 6.25rem;
    margin: 30px;
    object-fit: cover;
    border: 3px solid var(--line);
}

.profile-name {
    font-size: 1.05rem;
    font-weight: bold;
}

.profile-role {
    font-size: 0.82rem;
    color: var(--wine);
    letter-spacing: 0.1em;
    margin: 0.2rem 0 1.2rem;
}

.text {
    font-size: 0.9rem;
    font-weight: normal;
    line-height: 1.9;
    /* 日本語を文節の切れ目で折り返す。auto-phraseはSafariが効かないため、
       keep-all（勝手に折らない）＋HTML側の<wbr>（折ってよい場所）の組みに変更（2026-08-14）。
       1文節が幅を超えるときだけ overflow-wrap:anywhere が途中で折る（はみ出し防止） */
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* カギカッコ内の短いフレーズなど、途中で折り返したくない語句に付ける */
.nobr {
    white-space: nowrap;
}

.sub-title {
    font-size: 0.95rem;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 8px;
}

.profile-text {
    max-width: 34em;
    /* 1行の文字数を基準にする（日本語は34文字前後が読みやすい） */
}

.profile-text p {
    text-align: left;
    /* text-wrap:pretty は削除（2026-08-14）。Safariのprettyはkeep-all＋<wbr>と併用すると
       「」が行末・行頭に孤立する改行を選ぶことをWebKit実機で確認したため */
}

.profile-text .text {
    margin-bottom: 1.1rem;
}

/* ===== Works：案件ごとのまとまり ===== */
.case {
    margin-bottom: 76px;
}

.case-title {
    font-size: 1.15rem;
    color: var(--wine);
    letter-spacing: 0.06em;
    margin: 0 0 1.1rem;
}

/* 下線は「タイトル文字だけ」を基準に中央へ（タグの幅に影響されない） */
.case-title .ct {
    position: relative;
    display: inline-block;
    padding-bottom: 0.6rem;
}

.case-title .ct::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 42px;
    height: 2px;
    background: var(--gold);
}

/* 実案件／課題制作のタグ ─ タイトルの上に独立させる
   （同じ行に置くとタイトルが中央からずれ、下線もつられてずれるため） */
.tag {
    display: block;
    width: fit-content;
    margin: 0 auto 0.6rem;
    font-size: 0.66rem;
    font-weight: normal;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 2px;
    white-space: nowrap;
}

.tag-real {
    /* 金地に白は 3.02:1 で不足。濃い金にして 5.61:1 にする（2026-08-11） */
    background: #8A5F26;
    color: #fff;
}

.tag-work {
    color: #6d737b;
    border: 1px solid var(--line);
}

/* メニューのように立たせて見せたいカード */
.menu-cards img {
    border: 0;
    box-shadow: 0 6px 22px rgba(34, 26, 23, 0.28);
}

.case-foot {
    font-size: 0.75rem;
    color: #6d737b;
    margin-top: 0.4rem;
}

.case-desc {
    font-size: 0.85rem;
    line-height: 1.9;
    max-width: 46rem;
    margin: 0 auto 1.8rem;
    text-align: center;
    /* text-wrap:balance は削除（2026-08-14）。Safariのbalance/prettyはkeep-all＋<wbr>と併用すると
       開き括弧を行末に孤立させる改行を選ぶことをWebKit実機で確認したため */
    /* 文節折り返し：keep-all＋<wbr>方式（.textと同じ理由。2026-08-14） */
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* 作品の一言の text-wrap:balance は削除（2026-08-14。理由は .case-desc のコメント参照） */

.case-desc strong {
    color: var(--wine);
}

/* 案件内の小見出し（改訂案など） */
.case-sub {
    margin-top: 56px;
    padding-top: 34px;
    border-top: 1px dashed var(--line);
}

.case-sub-title {
    font-size: 1rem;
    color: var(--ink);
    letter-spacing: .06em;
    margin: 0 0 1rem;
}

.case-sub-title span {
    display: inline-block;
    margin-left: 10px;
    font-size: .68rem;
    font-weight: normal;
    letter-spacing: .08em;
    color: var(--paper);
    background: var(--gold);
    padding: 3px 10px;
    border-radius: 2px;
    vertical-align: 2px;
}

/* 案件の主役ビジュアル（大きく見せる） */
.case-hero {
    max-width: 860px;
    margin: 0 auto 34px;
}

.case-hero img {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 2px;
}


/* ロゴは主役だが、メニューより大きくならない大きさに */
.logo-hero {
    max-width: 330px;
    margin-bottom: 46px;
}

.logo-hero img {
    border-radius: 3px;
}

/* 中身を読ませるための小さいサムネイル */
.case-thumbs {
    max-width: 640px;
    margin: 0 auto;
}

.case-thumbs .sub-title {
    font-size: 0.82rem;
    font-weight: normal;
    color: #6d737b;
}

.osechi,
.card,
.item,
.sand-item,
.gyouza-item {
    margin-bottom: 40px;
}

.item img,
.sand-item img,
.gyouza-item img,
.card img,
.osechi img {
    border: 1px solid var(--line);
    background: #fff;
}

.sub-title span {
    font-size: 12px;
    font-weight: normal;
    display: block;
    margin-top: 2px;
    color: #6d737b;
}

/* ===== movie（サムネイル → モーダル再生） ===== */
.movie-content {
    display: flex;
    flex-direction: column;
}

.movie {
    display: flex;
    width: 100%;
    margin-bottom: 44px;
    flex-direction: column;
}

/* サムネイルのボタン */
.video-open {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
    overflow: hidden;
    border-radius: 3px;
}

.video-open img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .4s, opacity .3s;
}

.video-open:hover img {
    transform: scale(1.03);
    opacity: .82;
}

/* 再生ボタン（三角） */
.video-open .play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(123, 46, 59, .88);
    transition: background .25s, transform .25s;
}

.video-open .play::after {
    content: "";
    position: absolute;
    left: 54%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 13px 0 13px 22px;
    border-color: transparent transparent transparent #fff;
}

.video-open:hover .play {
    background: var(--gold);
    transform: translate(-50%, -50%) scale(1.08);
}

.movie .test h3 {
    font-size: 1rem;
    margin: 1rem 0 0.3rem;
}

.movie-text {
    font-size: 0.85rem;
    color: #6d737b;
    margin-top: 0.2rem;
}

/* ===== 動画モーダル ===== */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: rgba(14, 9, 11, .985);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5vh 1.5vw;
}

.video-modal[hidden] {
    display: none;
}

.video-frame {
    position: relative;
    /* ← iframe の基準にする */
    width: min(97vw, 1900px);
    aspect-ratio: 16 / 9;
    max-height: 90vh;
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}

/* height:100% は親の高さが確定していないと効かない。
   絶対配置で四辺に貼り付けて、確実に枠いっぱいにする */
/* ⚠️ video も必ず含める（2026-08-14）。iframe だけに掛けると、自分のサーバーの <video> が
   内在サイズ1280×720で描画されて枠からはみ出し、スマホで操作ボタンが画面の外に出る */
.video-frame iframe,
.video-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-caption {
    color: var(--paper);
    font-size: .82rem;
    letter-spacing: .08em;
    margin-top: .7rem;
    opacity: .8;
}

/* ×だけだと初見の人が戻り方に迷うため、「× 閉じる」の文字入りボタンにする（2026-08-14） */
.video-close {
    position: absolute;
    top: 18px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 22px;
    background: rgba(255, 255, 255, .12);
    color: var(--paper);
    font-size: 15px;
    letter-spacing: 0.06em;
    line-height: 1;
    cursor: pointer;
    transition: background .2s;
}

.video-close span {
    font-size: 22px;
}

.video-close:hover {
    background: rgba(255, 255, 255, .28);
}

/* リセットCSSが全ボタンのフォーカス枠を消しているので、ここで戻す（2026-08-14） */
.video-close:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ===== CONTACT ===== */
.contact {
    padding-bottom: 90px;
}

.contact-lead {
    font-size: 0.92rem;
    line-height: 2;
    margin-bottom: 2.2rem;
}

/* 文節折り返しの対象（keep-all＋<wbr>方式）。理由は .text のコメント参照 */
.mv-sub,
.service-list li,
.proof-title,
.proof-note,
.contact-lead,
.movie-text,
.thanks-text {
    word-break: keep-all;
    overflow-wrap: break-word;
}

.contact-list {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0.85rem 1rem;
    max-width: 26rem;
    margin: 0 auto 2.2rem;
    text-align: left;
    font-size: 0.92rem;
}

.contact-list dt {
    color: var(--wine);
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    padding-top: 0.15rem;
}

.contact-list dd {
    margin: 0;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--line);
    word-break: break-all;
}

.contact-list a {
    border-bottom: 1px solid var(--gold);
}

.contact-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.9em 2.2em;
    border-radius: 3px;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    transition: background 0.2s, color 0.2s;
}

.btn-primary {
    background: var(--wine);
    color: var(--paper);
}

.btn-primary:hover {
    background: var(--wine-deep);
}

.btn-ghost {
    border: 1px solid var(--wine);
    color: var(--wine);
}

/* 送信完了ページ（thanks.html） */
.thanks {
    /* ヘッダーとフッターを除いた高さを確保し、フッターが中途半端に浮かないようにする */
    min-height: calc(100vh - 70px - 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 0;
}

.thanks-lead {
    font-size: 1.05rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.thanks-text {
    font-size: 0.92rem;
    line-height: 2;
    margin-bottom: 2.2rem;
}

.thanks-note {
    font-size: 0.8rem;
    line-height: 1.9;
    color: #6d737b;
    margin-bottom: 2.4rem;
}

.thanks-btns {
    justify-content: center;
}

/* 狭い画面では、意図的な改行を無効にして自然に折り返させる */
@media (max-width: 767px) {
    .pc-only {
        display: none;
    }
}

/* お問い合わせフォーム */
.contact-form {
    max-width: 34rem;
    margin: 2.8rem auto 0;
    text-align: left;
}

.contact-form-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--wine);
    text-align: center;
    margin-bottom: 1.4rem;
}

.form-row {
    display: block;
    margin-bottom: 1.1rem;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: bold;
    margin-bottom: 0.35rem;
}

.required {
    font-style: normal;
    font-size: 0.68rem;
    font-weight: normal;
    color: var(--paper);
    background: var(--wine);
    border-radius: 2px;
    padding: 0.15em 0.55em;
    margin-left: 0.6em;
    vertical-align: 0.15em;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #c9c4bb;
    border-radius: 3px;
    background: #fff;
    padding: 0.7em 0.8em;
    /* スマホでフォーカス時に画面が勝手に拡大されるのを防ぐため16px以上にする */
    font-size: 16px;
    font-family: inherit;
    color: inherit;
    line-height: 1.6;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--gold);
    outline-offset: 1px;
}

.contact-form ::placeholder {
    color: #b0aca3;
}

.form-submit {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.form-note {
    font-size: 0.78rem;
    color: #6d737b;
    text-align: center;
    margin-top: 0.9rem;
}

.btn-ghost:hover {
    background: var(--wine);
    color: var(--paper);
}

.contact-note {
    font-size: 0.75rem;
    color: #6d737b;
    margin-top: 1.8rem;
}

/* ===== フッター ===== */
.page-footer {
    text-align: center;
    background: var(--wine-deep);
    color: var(--paper);
    padding: 1.6rem 0;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
}

/* 認定バッジ。主張しすぎないよう控えめに。押すと発行元の認証ページが開く */
.page-footer .cert {
    margin: 0 0 1rem;
}
.page-footer .cert a {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: inherit;
    text-decoration: none;
    opacity: 0.72;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}
.page-footer .cert a:hover,
.page-footer .cert a:focus-visible {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
}
.page-footer .cert a:focus-visible {
    outline: 2px solid var(--gold, #C08A3E);
    outline-offset: 2px;
}
.page-footer .cert small {
    display: block;
    font-size: 0.9em;
    opacity: 0.8;
}
.page-footer .cert img {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
}
.page-footer .cert span {
    text-align: left;
    font-size: 0.68rem;
    line-height: 1.6;
    letter-spacing: 0.04em;
}
@media (max-width: 480px) {
    .page-footer .cert { gap: 0.55rem; }
    .page-footer .cert img { width: 38px; height: 38px; }
    .page-footer .cert span { font-size: 0.64rem; }
}

/* ファーストビュー */
.start {
    background: var(--paper);
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 9000;
}

.start p {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    /* jQueryのfadeInをCSSアニメーションに置き換え（0.4秒待って1.2秒かけて表示） */
    opacity: 0;
    animation: startLogoIn 1.2s ease 0.4s forwards;
}

.start p img {
    width: 300px;
}

@keyframes startLogoIn {
    to {
        opacity: 1;
    }
}

/* 読み込み後に付与され、0.5秒かけて消える（旧fadeOut相当） */
.start.is-done {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.start.is-gone {
    display: none;
}

/* 動きを減らす設定の端末では、演出を出さずすぐ本文を見せる */
@media (prefers-reduced-motion: reduce) {
    .start {
        display: none;
    }

    .start p {
        animation: none;
        opacity: 1;
    }
}

/* ===== SERVICE：できること ===== */
.service {
    text-align: center;
}

.service-lead {
    font-size: 0.92rem;
    line-height: 2;
    margin-bottom: 2.6rem;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.service-grid {
    display: grid;
    /* 2列×2行に固定。自動列だと3＋1の変則配置になるため */
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 46rem;
    margin: 0 auto 3.6rem;
    text-align: left;
}

.service-col {
    background: #fff;
    border: 1px solid var(--rule, #E2DCD3);
    border-top: 3px solid var(--gold);
    border-radius: 3px;
    padding: 1.5rem 1.6rem;
    /* 中身の量が違っても4枠の高さを揃える */
    display: flex;
    flex-direction: column;
}

.service-cat {
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--wine);
    margin-bottom: 0.8rem;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-list li {
    font-size: 0.87rem;
    line-height: 1.7;
    padding-left: 1rem;
    position: relative;
}

.service-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
}

/* 狭い画面では1列に */
@media (max-width: 620px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.1rem;
        max-width: 26rem;
    }

    .service-col {
        padding: 1.25rem 1.35rem;
    }
}

/* 実績の数字 */
.proof {
    max-width: 46rem;
    margin: 0 auto;
    background: var(--wine);
    color: var(--paper);
    border-radius: 4px;
    padding: 2rem 1.6rem 1.6rem;
    text-align: center;
}

.proof-title {
    font-size: 1.02rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
}

.proof-text {
    font-size: 0.87rem;
    line-height: 1.9;
    opacity: 0.94;
    margin-bottom: 1.8rem;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.proof-nums {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 1.1rem;
    margin-bottom: 1.4rem;
}

.proof-item {
    background: rgba(255, 255, 255, 0.09);
    border-radius: 3px;
    padding: 0.9rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.proof-label {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    opacity: 0.85;
}

.proof-val {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.45rem;
    font-variant-numeric: tabular-nums;
}

.proof-val .before {
    font-size: 0.95rem;
    /* opacity 0.6 だと 3.57:1 で不足。色を明示して 5.86:1 にする（2026-08-11） */
    color: #F0E4E6;
    text-decoration: line-through;
}

.proof-val .arrow {
    font-size: 0.8rem;
    opacity: 0.7;
}

.proof-val .after {
    font-size: 1.5rem;
    font-weight: bold;
    /* ボルドー地に金は 2.40:1 で不足。生成りにして 6.84:1 にする（2026-08-11） */
    color: #FAF8F4;
}

.proof-note {
    font-size: 0.72rem;
    opacity: 0.72;
    line-height: 1.7;
}

/* ===== 画像の拡大表示（lightbox2 を自前実装に置き換え） ===== */
.img-modal {
    position: fixed;
    inset: 0;
    z-index: 9600;
    background: rgba(14, 9, 11, .96);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1rem 4.5rem;
}

.img-modal[hidden] {
    display: none;
}

.img-modal img {
    max-width: 96vw;
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* 動画モーダルと同じ「× 閉じる」のボタンにする（2026-08-14） */
.img-close {
    position: absolute;
    top: 0.6rem;
    right: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 22px;
    background: rgba(255, 255, 255, .12);
    color: var(--paper);
    font-size: 15px;
    letter-spacing: 0.06em;
    line-height: 1;
    cursor: pointer;
    transition: background .2s;
}

.img-close span {
    font-size: 22px;
}

.img-close:hover {
    background: rgba(255, 255, 255, .28);
}

.img-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, .35);
    border: none;
    color: var(--paper);
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.5rem 0.85rem;
    border-radius: 3px;
}

.img-prev {
    left: 0.6rem;
}

.img-next {
    right: 0.6rem;
}

.img-close:focus-visible,
.img-nav:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.img-counter {
    position: absolute;
    bottom: 1.4rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--paper);
    font-size: 0.82rem;
    opacity: 0.85;
    font-variant-numeric: tabular-nums;
}

/* ===== デスクトップ版 ===== */
@media (min-width: 600px) {
    #header-menu {
        display: none;
    }

    .hamburger {
        display: none;
    }

    .profile-area {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
    }

    .profile-photo {
        margin-top: 0;
    }

    .namecard-content {
        display: flex;
        gap: 20px;
        max-width: 700px;
        margin: 0 auto;
    }

    .container {
        max-width: 1000px;
        margin: 0 auto;
    }

    .works-content {
        display: flex;
        flex-direction: row;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
    }

    .sand-content {
        display: flex;
        gap: 20px;
    }

    .sand-item {
        flex: 1;
        overflow: hidden;
    }

    .sand-item img {
        width: 90%;
        margin: 0 auto;
    }

    .item {
        flex: 1;
        overflow: hidden;
    }

    .osechi,
    .card {
        flex: 1;
    }

    .mainvisual img,
.mainvisual video {
        max-height: 34rem;
    }
}

/* ===== スマホ版 ===== */
@media (max-width: 599px) {
    .pc-nav {
        display: none;
    }

    .title {
        margin-top: 60px;
        font-size: 1.6rem;
    }

    .case {
        margin-bottom: 56px;
    }

    /* ヒーロー：左右のオフセットではなく padding で内側に収める（はみ出し防止） */
    .mainvisual img,
.mainvisual video {
        height: 62vh;
        min-height: 400px;
        object-fit: cover;
        object-position: 62% center;
    }

    /* 2枚目・3枚目は「作品そのもの」。端末の高さが変わっても左右に切れないよう中央で見せる */
    .mv-slide:not(:first-child) img,
    .mv-slide:not(:first-child) video {
        object-position: 50% center;
    }

    .mainvisual-copy {
        left: 0;
        right: 0;
        padding: 0 7%;
        max-width: none;
    }

    .mv-lead {
        font-size: 1.32rem;
        line-height: 1.6;
    }

    .mv-sub {
        font-size: 0.78rem;
        line-height: 1.9;
    }

    .contact-list {
        grid-template-columns: 4.5rem 1fr;
        font-size: 0.86rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}


/* ===== 個人情報の取扱いページ（privacy.html） ===== */
/* サイト全体の .text は中央揃え。規約文は行が長いので、このページ内だけ左揃えに戻す */
.privacy .text,
.privacy .privacy-h,
.privacy .privacy-list {
    text-align: left;
}

.privacy .text {
    margin-bottom: 1rem;
    line-height: 1.95;
}

.privacy .contact-list {
    margin: 0 0 2.4rem;
}

.privacy-h {
    margin: 2.4rem 0 0.8rem;
    padding-left: 0.7rem;
    border-left: 3px solid #7B2E3B;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.5;
}

.privacy-list {
    list-style: disc;
    margin: 0 0 1rem;
    padding-left: 1.4em;
}

.privacy-list li {
    margin-bottom: 0.5rem;
    line-height: 1.9;
}

.privacy-date {
    margin-top: 2.4rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-links {
    margin-bottom: 0.6rem;
    font-size: 0.84rem;
}

.footer-links a {
    opacity: 0.85;
}

/* ===== WORKS：見せる大きさに強弱をつける（2026-08-10） ===== */
/* 餃子FES・動画は課題制作。実案件より大きく出ないように幅を抑える */
/* flexを使わずブロックのまま中央寄せ。狭い画面でも挙動が変わらない */
.gyouza-narrow .gyouza-item {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 600px) {
    /* 動画は3列。1列だと1本890pxで、縦を1,500px使ってしまう */
    .movie-3col {
        flex-direction: row;
        gap: 20px;
        align-items: flex-start;
    }

    .movie-3col .movie {
        width: auto;
        flex: 1;
        margin-bottom: 24px;
    }

    /* バナー：イチオシ2枚を上段に大きく、残りを下段に小さく。高さを揃えて並べる */
    .works-feature {
        gap: 26px;
        align-items: flex-end;
        margin-bottom: 34px;
    }

    .works-feature .item {
        flex: 0 0 auto;
    }

    .works-feature .item img {
        height: 420px;
        width: auto;
    }

    .works-sub .item {
        flex: 0 0 auto;
    }

    .works-sub .item img {
        height: 250px;
        width: auto;
    }
}

/* おせちはA4の紙、赤の習慣は正方形のSNSバナー。規格が違うので大きさも変える */
@media (min-width: 600px) {
    .works-feature .item:first-child img { height: 500px; }
    .works-feature .item:nth-child(2) img { height: 360px; }
}

/* 下段が2枚になったので少し大きく */
@media (min-width: 600px) {
    .works-sub .item img { height: 300px; }
}

/* おせちはA4の紙で1枚だけ。単独で大きく見せ、正方形のSNSバナー3枚は下に同じ大きさで並べる */
@media (min-width: 600px) {
    .works-feature .item:first-child img { height: 540px; }
    .works-sub .item img { height: 260px; }
}

/* おすすめ度を大きさで出す：おせち(1位) > 赤の習慣(2位) > 冬期講習(その他) */
@media (min-width: 600px) {
    .works-second {
        margin-bottom: 30px;
    }

    .works-second .item {
        flex: 0 0 auto;
    }

    .works-second .item img {
        height: 400px;
        width: auto;
    }

    .works-sub .item img {
        height: 250px;
        width: auto;
    }
}

/* 動画は受注を狙うため2列で大きく見せる（3本目は下段中央） */
@media (min-width: 600px) {
    .movie-3col {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .movie-3col .movie {
        flex: 0 0 calc(50% - 10px);
        max-width: 420px;
    }
}

/* 診断ツールの4項目（2026-08-11） */
.proof-scores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    margin: 18px auto 20px;
    max-width: 860px;
    list-style: none;
}

.proof-scores li {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid rgba(250, 248, 244, .35);
    border-radius: 3px;
}

.ps-name {
    font-size: 0.72rem;
    opacity: 0.92;
}

.ps-score {
    font-size: 0.95rem;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}
