/*
Theme Name: Marriage Flag Preview
Version: 1.0
Description: マリッジフラグ制作確認用テーマ
*/

*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:#10283e;background:#fcf8f5;font-family:"Yu Mincho","Hiragino Mincho ProN",serif;line-height:1.75}header{background:#10283e;color:white;text-align:center;padding:12px 50px;position:relative}header b{font-size:clamp(23px,5vw,38px);letter-spacing:.08em}header small{display:block;letter-spacing:.2em}button,a{font:inherit}button{cursor:pointer}#menu{position:absolute;right:16px;top:20px;background:none;color:white;border:0;font-size:26px}nav{background:#10283e;padding:12px;text-align:center}nav a{display:inline-block;color:white;margin:6px 12px}a{color:inherit} .hero{min-height:100svh;display:flex;flex-direction:column;background:linear-gradient(#fff,#faeeee);overflow:hidden;border-radius:0 0 24px 24px}.photo{flex:1;min-height:0;display:flex;align-items:stretch;overflow:hidden}.photo img{width:100%;object-fit:cover;object-position:center top;min-height:0;max-height:49svh;mask-image:linear-gradient(black 85%,transparent)}.hero-copy{text-align:center;padding:0 16px 24px;margin-top:-8px;position:relative}.gold{color:#a67a2e;font-weight:bold;font-size:clamp(18px,4.8vw,34px)}h1{font-size:clamp(27px,6.8vw,52px);line-height:1.38;margin:12px 0 22px} .cta{display:block;background:linear-gradient(#173a56,#0a2339);color:white;text-decoration:none;border:1px solid white;border-radius:40px;padding:12px 20px;text-align:center;max-width:570px;margin:18px auto 0;font-weight:bold;box-shadow:0 3px 5px #0002}section{padding:52px 20px;max-width:960px;margin:auto}h2{text-align:center;font-size:clamp(23px,5.5vw,36px);line-height:1.5;margin:0 0 28px}h2 small{display:block;font:12px sans-serif;letter-spacing:.22em;color:#a67a2e;margin-bottom:12px}em{color:#c52b62;font-style:normal}.checks{max-width:660px;margin:auto;padding:0;list-style:none}.checks li{border-bottom:1px solid #e6d8c7;padding:8px 0}.checks li:before{content:'☑';color:#c52b62;margin-right:10px}.center{text-align:center}.benefits,.prices{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:24px}.benefits div,.prices div{background:#f3e9df;padding:16px 8px;text-align:center;border-radius:12px}.reason{display:flex;min-height:145px;border:1px solid #b68a3c;border-radius:18px;overflow:hidden;margin:18px 0;background:#fffaf3}.num{background:#10283e;color:#f1d49a;display:grid;place-items:center;width:18%;flex-shrink:0;font:italic 36px Georgia}.reason article{padding:18px;align-self:center}.reason h3{margin:0;font-size:clamp(18px,4.5vw,27px);line-height:1.5}.reason p{margin:8px 0 0;font-size:14px}.placeholder{background:#eee7df;max-width:360px;height:230px;margin:20px auto;display:grid;place-items:center;color:#786e65;border-radius:12px}.prices div{border:1px solid #c5ae83;background:white}.prices strong{display:block;font-size:clamp(17px,4vw,29px)}.step{border:1px solid #c5ae83;border-radius:12px;background:white;padding:16px;margin:12px 0}.step b{color:#a67a2e;margin-right:12px}details{border:1px solid #c5ae83;border-radius:9px;background:white;margin:12px 0;padding:14px}summary{cursor:pointer;font-weight:bold}details p{margin:12px 0 0}footer{background:#10283e;color:white;text-align:center;padding:30px 15px}footer a{margin:8px;display:inline-block}.notice{font:12px sans-serif;color:#76665b;text-align:center;margin-top:15px}@media(min-width:800px){.photo img{object-fit:contain;max-height:52svh}.hero-copy{padding-bottom:30px}.hero{max-width:1200px;margin:auto}}@media(max-width:480px){.prices{grid-template-columns:1fr}.benefits{font-size:12px}.hero-copy{padding-bottom:22px}.photo img{object-fit:cover;object-position:center;max-height:48svh}.hero{min-height:100svh}.reason article{padding:12px}.reason p{font-size:13px}}

/* Preserve the full four-person composition at every viewport width. */
.photo{flex:1 1 auto;display:flex;align-items:center;justify-content:center;overflow:visible;background:#fdf9f6}.photo img{display:block;width:100%;height:auto;max-height:49svh;object-fit:contain;object-position:center;mask-image:none}.hero-copy{margin-top:0;padding-top:12px}.hero{min-height:100svh}.hero-copy .cta{border-radius:16px}@media(max-width:480px){.photo img{max-height:none;object-fit:contain}.photo{flex:1 1 auto}.hero-copy{flex:1;display:flex;flex-direction:column;justify-content:space-evenly}.hero-copy .cta{width:100%}} 
.hero-copy .gold{font-size:clamp(19px,6.05vw,46px);line-height:1.4;letter-spacing:-.045em;white-space:nowrap}
#worries h2{white-space:nowrap;font-size:clamp(13px,4.65vw,36px);letter-spacing:-.035em}
[hidden]{display:none!important}.subpage section{max-width:780px}.subpage hr{border:0;border-top:1px solid #c5ae83;margin:24px 0}.subcard{background:white;border:1px solid #c5ae83;border-radius:12px;padding:24px;margin:18px 0}.subcard h3{margin-top:0}.band{background:#10283e;color:white;text-align:center;padding:12px}.subcard label{display:block;margin:14px 0}.subcard input:not([type=checkbox]),.subcard textarea,.subcard select{display:block;width:100%;padding:12px;border:1px solid #c5ae83;border-radius:6px;font:inherit;background:white}.subcard button{width:100%}nav a{text-decoration:none}header b{cursor:pointer}
#menu{margin:0;padding:0;border:0;border-radius:0;background:transparent;right:12px;top:12px;z-index:100;font-size:inherit;text-align:left}#menu summary{list-style:none;cursor:pointer;color:white;font-size:28px;padding:5px 10px;line-height:1.3}#menu summary::-webkit-details-marker{display:none}#menu nav{position:absolute;right:0;top:100%;width:min(85vw,340px);box-shadow:0 6px 18px #0003;border-radius:8px;text-align:left}#menu nav a{display:block;padding:8px 10px;margin:0;border-bottom:1px solid #ffffff25}main[data-page]{display:none}main[data-page="home"]{display:block}main[data-page]:target{display:block}body:has(main[data-page]:target) main[data-page="home"]:not(:target){display:none}html{scroll-behavior:auto}
body .wpcf7 form input.wpcf7-submit {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: block !important;
  background: #10283e !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: none !important;
  border-radius: 40px !important;
  width: 100% !important;
  padding: 16px 20px !important;
  font-size: 18px !important;
  font-weight: bold !important;
  opacity: 1 !important;
  cursor: pointer;
}
/* 固定ページのデザイン調整 */
.mf-fixed-page article {
    font-size: 16px;
    line-height: 1.9;
}

.mf-fixed-page article h2 {
    text-align: left;
    font-size: 23px;
    color: #10283e;
    margin: 40px 0 20px;
    padding: 10px 14px;
    border-left: 4px solid #a67a2e;
    background: #f3efe6;
}

.mf-fixed-page table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    table-layout: fixed;
}

.mf-fixed-page table th,
.mf-fixed-page table td {
    border: 1px solid #d8d2c7;
    padding: 14px;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.mf-fixed-page table th {
    background: #10283e;
    color: #ffffff;
}

.mf-fixed-page table td:first-child {
    background: #f3efe6;
}

.mf-fixed-page table th:first-child,
.mf-fixed-page table td:first-child {
    width: 30%;
}

.mf-fixed-page article p {
    margin: 16px 0;
}

@media (max-width: 600px) {
    .mf-fixed-page article {
        font-size: 15px;
    }

    .mf-fixed-page article h2 {
        font-size: 19px;
    }

    .mf-fixed-page table {
        font-size: 13px;
    }