@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600&family=Zen+Old+Mincho:wght@400;500;600;700;900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600&family=Noto+Serif+JP:wght@400;500;600;700&family=Tangerine:wght@400;700&display=swap');
:root{
  --paper:#fcfbf7;
  --paper-2:#f5f1e8;
  --ink:#284a5c;
  --ink-deep:#173d50;
  --muted:#71838b;
  --line:rgba(40,74,92,.14);
  --sea:#dfeff3;
  --max:1180px;
  --shadow:0 22px 70px rgba(34,61,73,.10);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);
  color:var(--ink);
  font-family:"Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif;line-height:2.05;
  letter-spacing:.045em}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.site-header{position:sticky;
  top:0;
  z-index:50;
  height:72px;
  padding:0 clamp(22px,4vw,64px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:rgba(252,251,247,.94);
  backdrop-filter:blur(13px);
  border-bottom:1px solid var(--line)}
.brand{font-family:Georgia,"Times New Roman",serif;font-size:18px;letter-spacing:.22em;white-space:nowrap;color:var(--ink-deep)}
.navlinks{display:flex;align-items:center;gap:10px;font-size:12px;letter-spacing:.07em;white-space:nowrap}
.navlinks a{position:relative;display:inline-flex;align-items:center;justify-content:center;width:128px;box-sizing:border-box;min-height:36px;padding:8px 10px;border:1px solid rgba(36,60,67,.18);border-radius:999px;background:rgba(255,255,255,.58);transition:.2s ease;text-align:center}
.navlinks a:after{content:none}
.navlinks a:hover{background:rgba(255,255,255,.92);border-color:rgba(36,60,67,.34);transform:translateY(-1px)}
.menu-btn{display:none}
.hero-home{min-height:760px;display:grid;grid-template-columns:.88fr 1.12fr;align-items:stretch;border-bottom:1px solid var(--line);background:linear-gradient(90deg,#fffdf8 0%,#fffdf8 43%,#f7f4ec 43%)}
.hero-home-copy{display:flex;align-items:center;padding:84px clamp(30px,6vw,96px)}
.hero-home-copy .inner{max-width:520px}
.eyebrow{font-family:Georgia,"Times New Roman",serif;font-size:12px;letter-spacing:.25em;color:#8a999f;margin-bottom:20px;text-transform:uppercase}
h1,h2,h3{font-weight:400;letter-spacing:.07em;color:var(--ink-deep);margin:0;line-height:1.65}
h1{font-size:clamp(34px,4.2vw,58px);margin-bottom:28px}
h2{font-size:clamp(25px,3vw,38px);margin-bottom:25px}
h3{font-size:clamp(20px,2vw,28px);margin-bottom:18px}
p{margin:0 0 18px;font-size:15px}
.btn{display:inline-flex;align-items:center;gap:14px;margin-top:18px;padding:12px 0;border-bottom:1px solid var(--ink);font-size:13px;letter-spacing:.08em}
.hero-home-image{position:relative;overflow:hidden;min-height:760px}
.hero-home-image img{width:100%;height:100%;object-fit:cover;object-position:center}
.hero-home-image:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(252,251,247,.22),transparent 26%)}
.home-story{max-width:var(--max);margin:0 auto;padding:110px 5vw;display:grid;grid-template-columns:.95fr 1.05fr;gap:8vw;align-items:center}
.home-story img{width:100%;aspect-ratio:1.15/1;object-fit:cover;box-shadow:var(--shadow)}
.home-note{background:var(--paper-2);padding:100px 5vw;text-align:center;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.home-note .inner{max-width:820px;margin:auto}
.visual-section{padding:100px 5vw;background:#fff}
.visual-frame{position:relative;max-width:var(--max);height:min(67vw,650px);min-height:430px;margin:auto;overflow:hidden;box-shadow:var(--shadow)}
.slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transform:scale(1.025);transition:opacity 1.4s ease,transform 5.2s ease}
.slide.active{opacity:1;transform:scale(1)}
.visual-overlay{position:absolute;left:0;right:0;bottom:0;padding:52px clamp(30px,5vw,72px);color:white;background:linear-gradient(transparent,rgba(12,41,52,.65));z-index:4}
.visual-overlay h2{color:white;font-size:clamp(24px,3.2vw,42px);margin:0}
.dots{position:absolute;right:28px;bottom:28px;z-index:5;display:flex;gap:8px}
.dot{width:7px;height:7px;border-radius:50%;border:1px solid #fff;background:transparent;padding:0;cursor:pointer}
.dot.active{background:#fff}
.site-footer{display:flex;justify-content:space-between;gap:20px;padding:36px clamp(22px,4vw,64px);font-size:12px;letter-spacing:.10em;border-top:1px solid var(--line);color:var(--muted)}

/* Story */
.story-hero{display:grid;grid-template-columns:1.05fr .95fr;min-height:690px;border-bottom:1px solid var(--line)}
.story-hero-media{min-height:690px;overflow:hidden}
.story-hero-media img{width:100%;height:100%;object-fit:cover;object-position:center}
.story-hero-copy{display:flex;align-items:center;padding:78px clamp(34px,6vw,94px);background:linear-gradient(100deg,#fffdf8,#fff)}
.story-hero-copy .inner{max-width:520px}
.story-section{max-width:var(--max);margin:0 auto;padding:105px 5vw;display:grid;grid-template-columns:1fr 1fr;gap:8vw;align-items:center}
.story-section.reverse .media{order:2}.story-section.reverse .copy{order:1}
.story-section .media img{width:100%;max-height:610px;object-fit:cover;box-shadow:var(--shadow)}
.story-section .copy{max-width:550px}
.story-section .copy p:last-child{margin-bottom:0}
.story-small-media img{max-height:480px;object-fit:cover}
.time-passage{position:relative;min-height:390px;display:grid;place-items:center;overflow:hidden;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.time-passage img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.time-passage:after{content:"";position:absolute;inset:0;background:rgba(246,250,249,.28)}
.time-passage h2{position:relative;z-index:2;margin:0;text-align:center;font-size:clamp(24px,2.8vw,36px);text-shadow:0 1px 18px rgba(255,255,255,.9)}
.time-passage h2:after{content:none;}
.story-full{position:relative;min-height:670px;overflow:hidden}
.story-full img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.story-full:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(17,49,62,.42),rgba(17,49,62,.03) 55%,transparent)}
.story-full .overlay{position:relative;z-index:2;max-width:var(--max);margin:auto;padding:140px 5vw;color:white}
.story-full .overlay h2{color:white;max-width:580px}
.story-full .overlay p{max-width:530px;font-size:16px}
.story-bridge{max-width:var(--max);margin:0 auto;padding:100px 5vw;display:grid;grid-template-columns:1fr 1fr;gap:4vw}
.story-bridge figure{margin:0;overflow:hidden;box-shadow:var(--shadow)}
.story-bridge img{width:100%;height:430px;object-fit:cover}
.story-closing{text-align:center;padding:105px 5vw 115px;background:linear-gradient(#fffdf8,#f8f4eb)}
.story-closing .lead{font-size:clamp(27px,3vw,40px);line-height:1.8;color:var(--ink-deep);margin-bottom:25px}
.story-closing .mark{font-family:Georgia,"Times New Roman",serif;letter-spacing:.26em;font-size:18px}

/* simple content pages */
.page-hero{padding:120px 5vw 90px;text-align:center;background:linear-gradient(#fff,#f7f2e9);border-bottom:1px solid var(--line)}
.page-hero .inner{max-width:760px;margin:auto}
.card-grid{max-width:var(--max);margin:auto;padding:100px 5vw;display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.card{padding:38px 32px;background:white;border:1px solid var(--line);min-height:240px}
.card .num{font-family:Georgia,"Times New Roman",serif;color:#91a7b1;letter-spacing:.12em;margin-bottom:18px}

@media (max-width:860px){
  .site-header{height:auto;min-height:66px;align-items:flex-start;padding-top:18px;padding-bottom:14px;gap:16px;flex-direction:column}
  .navlinks{width:100%;overflow-x:auto;padding-bottom:4px}
  .hero-home,.story-hero{grid-template-columns:1fr;min-height:0}
  .hero-home{background:#fffdf8}
  .hero-home-copy{padding:70px 7vw}
  .hero-home-image,.story-hero-media{min-height:520px}
  .story-hero-copy{padding:65px 7vw}
  .home-story,.story-section,.story-section.reverse,.story-bridge{grid-template-columns:1fr;gap:48px;padding:78px 7vw}
  .story-section.reverse .media,.story-section.reverse .copy{order:initial}
  .story-section .media img{max-height:none}
  .card-grid{grid-template-columns:1fr;padding:70px 7vw}
  .story-full{min-height:590px}
  .story-full .overlay{padding:110px 7vw}
  .story-bridge img{height:auto}
  .site-footer{flex-direction:column}
}


/* Page background images — shared assets, optimized for web */
.service-page .page-hero,
.flow-page .page-hero{
  position:relative;
  isolation:isolate;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  overflow:hidden;
}
.service-page .page-hero{background-image:url("images/bg_dekirukoto_clean.webp");}
.flow-page .page-hero{background-image:url("images/bg_shikumi_clean.webp");}
.service-page .page-hero::before,
.flow-page .page-hero::before{
  content:"";
  position:absolute;inset:0;z-index:-1;
  background:rgba(255,255,255,.78);
}
.service-page .page-hero .inner,
.flow-page .page-hero .inner{position:relative;z-index:1;}


/* Contact — keep the approved image clear rather than adding a white haze */
.contact-page .contact-hero{
  position:relative;
  min-height:620px;
  display:grid;
  place-items:center;
  background-image:url("images/bg_contact.webp");
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  overflow:hidden;
}
.contact-page .contact-hero::before{
  content:"";position:absolute;inset:0;background:rgba(13,45,58,.18);
}
.contact-page .contact-hero .inner{position:relative;z-index:1;}
.contact-page .contact-hero h1,
.contact-page .contact-hero .eyebrow,
.contact-page .contact-hero p{color:#fff;text-shadow:0 2px 16px rgba(7,35,47,.45);}


/* Full-image layout for 残せること / 繋がるしくみ */
.service-page main,
.flow-page main{min-height:calc(100vh - 72px);}
.service-page main{background:url("images/bg_shikumi_usersea.webp") center/cover fixed no-repeat;position:relative;}
.flow-page main{background:url("images/bg_nokoserukoto.webp") center/cover fixed no-repeat;position:relative;}
.service-page main::before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,.46) 0%,rgba(247,248,255,.28) 48%,rgba(235,240,255,.16) 100%),radial-gradient(circle at 78% 18%,rgba(255,255,255,.38),transparent 34%);pointer-events:none;}
.flow-page main::before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,.36) 0%,rgba(245,247,255,.22) 50%,rgba(233,239,255,.12) 100%),radial-gradient(circle at 24% 16%,rgba(255,255,255,.34),transparent 36%);pointer-events:none;}
.service-page .page-hero,.service-page .card-grid{position:relative;z-index:1;background:transparent;border:0;}
.service-page .page-hero::before{display:none;}
.service-page .card{background:rgba(255,255,255,.54);backdrop-filter:blur(5px);border-color:rgba(65,74,130,.14);border-radius:24px;box-shadow:0 14px 42px rgba(65,74,130,.07);}

.flow-page .flow-stage{position:relative;z-index:1;min-height:calc(100vh - 72px);display:grid;place-items:center;padding:90px 5vw 110px;text-align:center;}
.flow-stage-inner{width:min(100%,1050px);margin:auto;}
.flow-stage h1{margin-bottom:16px;}
.flow-lead{max-width:720px;margin:0 auto 54px;font-size:16px;}
.flow-map{display:grid;gap:22px;justify-items:center;}
.flow-row{display:flex;justify-content:center;gap:22px;flex-wrap:wrap;width:100%;}
.flow-button{display:flex;align-items:center;justify-content:center;min-height:74px;padding:18px 30px;border:1px solid rgba(23,61,80,.22);border-radius:18px;background:rgba(255,255,255,.58);box-shadow:0 12px 36px rgba(65,74,130,.07);backdrop-filter:blur(6px);font-size:17px;letter-spacing:.06em;color:var(--ink-deep);transition:.2s ease;}
.flow-row-primary .flow-button{width:min(360px,42vw);}
.flow-row-secondary .flow-button{width:min(290px,29vw);}
.flow-button:hover{transform:translateY(-2px);background:rgba(255,255,255,.78);box-shadow:0 16px 40px rgba(65,74,130,.10);}
.flow-arrow{font-size:28px;line-height:1;color:rgba(23,61,80,.65);}
@media(max-width:860px){
 .service-page main,.flow-page main{background-attachment:scroll;}
 .flow-page .flow-stage{min-height:0;padding:72px 7vw 88px;}
 .flow-row-primary .flow-button,.flow-row-secondary .flow-button{width:100%;max-width:520px;}
}

.flow-back{margin-top:18px;}
.flow-back a{color:var(--ink-deep);text-decoration:none;border-bottom:1px solid rgba(23,61,80,.35);padding-bottom:3px;}
.flow-back a:hover{border-bottom-color:rgba(23,61,80,.8);}

/* MEMORY HELM brand color trial: transparent deep-sea blue-violet */
:root{
  --ink:#555b82;
  --ink-deep:#414a82;
  --muted:#747892;
}
.brand,.eyebrow,h1,h2,h3{color:var(--ink-deep)}
.navlinks a{border-color:rgba(65,74,130,.22)}
.navlinks a:hover{border-color:rgba(65,74,130,.48)}
.card .num{color:#777eae}
.service-page .card{border-color:rgba(65,74,130,.18)}
.flow-button{border-color:rgba(65,74,130,.25);color:var(--ink-deep);box-shadow:0 12px 34px rgba(65,74,130,.10)}
.flow-arrow{color:rgba(65,74,130,.68)}
.flow-back a{color:var(--ink-deep);border-bottom-color:rgba(65,74,130,.35)}

/* 想い */
.about-page .thought-page{
  position:relative;
  min-height:calc(100vh - 72px);
  background:url("images/bg_omoi_six_helm_sailboat.webp") center/cover fixed no-repeat;
  isolation:isolate;
}
.about-page .thought-page::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(105deg,rgba(255,255,255,.66) 0%,rgba(250,250,255,.50) 52%,rgba(239,243,255,.24) 100%),radial-gradient(circle at 82% 16%,rgba(255,255,255,.38),transparent 34%);
}
.thought-inner{max-width:820px;padding:88px 5vw 120px;margin-left:max(0px,calc((100vw - 1180px)/2));}
.thought-inner h1{text-align:left;font-size:clamp(32px,4vw,50px);font-weight:700;margin:0 0 34px;}
.thought-inner p{font-size:15px;margin:0 0 18px;}
.thought-section{margin-top:72px;}
.thought-section h2{text-align:left;font-size:clamp(23px,2.5vw,32px);margin:0 0 28px;}
.six-words{display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin:24px 0 28px;font-size:18px;line-height:1.8;letter-spacing:.1em;color:var(--ink-deep);}
@media(max-width:860px){.thought-inner{margin-left:0;padding:68px 7vw 90px}.thought-section{margin-top:60px}}

.thought-section h2.tangerine-title{font-family:'Tangerine',cursive;font-size:clamp(46px,5vw,64px);font-weight:700;line-height:1.05;letter-spacing:.02em;}

/* 想い：3つの見出しに小さな円形マーカー */
.thought-section h2.section-marker-title{display:flex;align-items:center;gap:14px;}
.thought-section h2.section-marker-title .section-marker{width:34px;height:34px;flex:0 0 34px;object-fit:cover;border-radius:50%;box-shadow:0 3px 10px rgba(65,74,130,.12);}
.thought-section h2.tangerine-title.section-marker-title{font-size:clamp(46px,5vw,64px);font-weight:700;}
@media(max-width:640px){.thought-section h2.section-marker-title{gap:11px}.thought-section h2.section-marker-title .section-marker{width:30px;height:30px;flex-basis:30px;}}

/* 残せること：タイトル位置を少し下へ */
.service-page .page-hero{padding-top:150px;padding-bottom:60px;}


/* Airy mystique: light, depth and quiet transparency without darkening */
.about-page .thought-inner h1,
.about-page .thought-section h2,
.service-page .page-hero h1,
.flow-page .flow-stage h1{
  text-shadow:0 2px 22px rgba(255,255,255,.78);
}
.about-page .thought-inner,
.service-page .page-hero .inner,
.flow-page .flow-stage-inner{
  position:relative;
}
.about-page .thought-inner::before,
.flow-page .flow-stage-inner::before{
  content:"";
  position:absolute;
  width:180px;height:180px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.18),rgba(255,255,255,0) 70%);
  filter:blur(2px);
  pointer-events:none;
  z-index:-1;
}
.about-page .thought-inner::before{right:5%;top:7%;}
.flow-page .flow-stage-inner::before{left:9%;top:2%;}


/* Stronger visible mystique — brighter atmospheric layers, still light */
.about-page .thought-page::after,
.service-page main::after,
.flow-page main::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.58) 0 8%, rgba(233,236,255,.28) 18%, transparent 38%),
    radial-gradient(circle at 18% 72%, rgba(229,235,255,.24) 0 9%, transparent 31%),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(235,239,255,.18) 52%, rgba(255,255,255,.08));
  mix-blend-mode:screen;
}

.about-page .thought-inner{
  z-index:1;
  padding:88px 5vw 120px;
  border-radius:0 34px 34px 0;
  background:linear-gradient(90deg,rgba(255,255,255,.66),rgba(255,255,255,.42) 72%,rgba(255,255,255,.10));
  box-shadow:34px 0 90px rgba(112,120,170,.08);
  backdrop-filter:blur(2px);
}

.service-page .page-hero .inner{
  max-width:860px;
  margin-inline:auto;
  padding:42px 52px 36px;
  border-radius:28px;
  background:linear-gradient(135deg,rgba(255,255,255,.72),rgba(247,248,255,.48));
  border:1px solid rgba(255,255,255,.62);
  box-shadow:0 24px 70px rgba(84,94,145,.11);
  backdrop-filter:blur(7px);
}
.service-page .card-grid{z-index:1;}
.service-page .card{
  background:linear-gradient(145deg,rgba(255,255,255,.72),rgba(244,246,255,.50));
  border:1px solid rgba(255,255,255,.65);
  box-shadow:0 20px 52px rgba(76,86,138,.10), inset 0 1px 0 rgba(255,255,255,.74);
  backdrop-filter:blur(8px);
}

.flow-page .flow-stage-inner{
  z-index:1;
  padding:58px 54px 62px;
  border-radius:32px;
  background:linear-gradient(135deg,rgba(255,255,255,.68),rgba(243,246,255,.42));
  border:1px solid rgba(255,255,255,.62);
  box-shadow:0 26px 78px rgba(76,86,138,.12);
  backdrop-filter:blur(8px);
}
.flow-page .flow-button{
  background:linear-gradient(145deg,rgba(255,255,255,.78),rgba(240,244,255,.58));
  border-color:rgba(255,255,255,.76);
  box-shadow:0 16px 40px rgba(76,86,138,.11), inset 0 1px 0 rgba(255,255,255,.86);
}
.flow-page .flow-button:hover{
  background:linear-gradient(145deg,rgba(255,255,255,.92),rgba(244,247,255,.72));
}

.about-page .thought-section h2,
.service-page .page-hero h1,
.flow-page .flow-stage h1{
  letter-spacing:.075em;
}

@media(max-width:860px){
  .about-page .thought-inner{border-radius:0;padding:68px 7vw 90px;}
  .service-page .page-hero .inner{padding:34px 26px 30px;}
  .flow-page .flow-stage-inner{padding:44px 24px 48px;border-radius:24px;}
}


/* Marker icons for 残せること cards and 繋がるしくみ buttons */
.service-page .card h3,
.flow-page .flow-button{
  position:relative;
}
.service-page .card h3{
  display:flex;
  align-items:center;
  gap:10px;
}
.service-page .card h3::before,
.flow-page .flow-button::before{
  content:"";
  width:28px;
  height:28px;
  flex:0 0 28px;
  display:inline-block;
  border-radius:50%;
  box-shadow:0 3px 10px rgba(65,74,130,.12);
}
.service-page .card h3::before{
  background:url("images/thought_section_marker.webp") center/cover no-repeat;
}
.flow-page .flow-button::before{
  background:url("images/thought_section_marker.webp") center/cover no-repeat;
}
.flow-page .flow-button{
  gap:12px;
}
@media(max-width:640px){
  .service-page .card h3::before,
  .flow-page .flow-button::before{
    width:24px;
    height:24px;
    flex-basis:24px;
  }
}


/* On hover, switch marker icon to the six-spoke helm */
.service-page .card:hover h3::before,
.service-page .card:focus-within h3::before,
.flow-page .flow-button:hover::before,
.flow-page .flow-button:focus-visible::before{
  background:url("images/service_marker_six_helm.webp") center/cover no-repeat;
  transform:scale(1.04);
}
.service-page .card h3::before,
.flow-page .flow-button::before{
  transition:transform .18s ease, filter .18s ease, background-image .18s ease;
}

.navlinks a.active,
.navlinks a[aria-current="page"]{background:#6974b2;border-color:#6974b2;color:#fff;box-shadow:0 8px 20px rgba(65,74,130,.18);}
.navlinks a.active:hover,
.navlinks a[aria-current="page"]:hover{background:#6974b2;border-color:#6974b2;color:#fff;transform:none;}

/* 存在を残す：操作モデル */
.card-link{display:block;color:inherit;text-decoration:none}.card-link:hover{transform:translateY(-2px);box-shadow:0 24px 58px rgba(76,86,138,.13)}.existence-page{background:#f8f8fb}.existence-main{min-height:calc(100vh - 72px);padding:74px 5vw 100px;background:linear-gradient(135deg,rgba(255,255,255,.88),rgba(239,242,255,.72)),url("images/bg_nokoserukoto.webp") center/cover fixed no-repeat}.existence-panel{max-width:980px;margin:0 auto;padding:48px;border-radius:30px;background:rgba(255,255,255,.76);border:1px solid rgba(255,255,255,.82);box-shadow:0 24px 70px rgba(76,86,138,.10);backdrop-filter:blur(10px)}.existence-panel h1{margin-bottom:12px}.existence-lead{max-width:740px;margin-bottom:34px}.existence-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px;flex-wrap:wrap}.existence-add,.primary-btn,.soft-btn,.danger-btn{font:inherit;letter-spacing:.04em;cursor:pointer;border-radius:999px;padding:11px 18px;border:1px solid rgba(65,74,130,.20);background:rgba(255,255,255,.82);color:var(--ink-deep)}.existence-add,.primary-btn{background:#6974b2;color:#fff;border-color:#6974b2}.danger-btn{color:#8a515d;border-color:rgba(138,81,93,.22);background:rgba(255,255,255,.72)}.existence-back{font-size:13px;border-bottom:1px solid rgba(65,74,130,.25)}.existence-list{display:grid;gap:18px}.existence-item{position:relative;padding:24px 26px;border-radius:22px;background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(245,246,255,.70));border:1px solid rgba(65,74,130,.12);box-shadow:0 14px 38px rgba(76,86,138,.07)}.existence-item-main{display:flex;align-items:flex-start;gap:18px}.existence-state{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);padding-top:4px;white-space:nowrap}.existence-state input{accent-color:#6974b2;width:18px;height:18px}.existence-name{font-size:22px;letter-spacing:.06em;color:var(--ink-deep)}.existence-note{font-size:13px;color:var(--muted);margin-top:4px}.existence-item-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px;flex-wrap:wrap}.saved-message{position:absolute;right:26px;top:20px;font-size:12px;color:#6974b2}.empty-state{text-align:center;padding:46px 20px;color:var(--muted);border:1px dashed rgba(65,74,130,.20);border-radius:20px}.existence-dialog{width:min(92vw,560px);border:0;border-radius:26px;padding:0;background:#fff;box-shadow:0 30px 90px rgba(49,55,96,.24)}.existence-dialog::backdrop{background:rgba(31,37,65,.26);backdrop-filter:blur(4px)}.existence-dialog form{padding:30px}.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.dialog-head h2{margin:0;font-size:26px}.dialog-close{border:0;background:transparent;font-size:28px;cursor:pointer;color:var(--muted)}.field-label{display:block;font-size:13px;margin-bottom:8px;color:var(--muted)}.text-input{width:100%;padding:14px 15px;border-radius:14px;border:1px solid rgba(65,74,130,.22);font:inherit;color:var(--ink-deep);background:#fff}.text-input:focus{outline:2px solid rgba(105,116,178,.25);border-color:#6974b2}.text-input:disabled{background:#f1f2f7;color:#9699aa}.remember-check{display:flex;align-items:flex-start;gap:10px;margin-top:18px;font-size:14px;line-height:1.7}.remember-check input{accent-color:#6974b2;width:18px;height:18px;margin-top:4px}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:28px}@media(max-width:700px){.existence-main{padding:44px 5vw 70px}.existence-panel{padding:30px 20px;border-radius:22px}.existence-item-main{flex-direction:column;gap:10px}.existence-item-actions{justify-content:flex-start}}

/* 存在・所在・意思：同一データを3ページで扱うモデル */
.record-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:4px 0 30px;padding-bottom:22px;border-bottom:1px solid rgba(65,74,130,.12)}
.record-tab{display:inline-flex;align-items:center;justify-content:center;min-width:148px;padding:10px 18px;border-radius:999px;border:1px solid rgba(65,74,130,.18);background:rgba(255,255,255,.66);font-size:13px;letter-spacing:.05em;transition:.18s ease}
.record-tab:hover{transform:translateY(-1px);background:rgba(255,255,255,.9)}
.record-tab.active{background:#6974b2;color:#fff;border-color:#6974b2;box-shadow:0 8px 22px rgba(105,116,178,.18)}
.record-item-title{display:flex;align-items:center;gap:12px;font-size:22px;color:var(--ink-deep);letter-spacing:.055em;margin-bottom:20px}
.record-marker{width:30px;height:30px;flex:0 0 30px;border-radius:50%;background:url("images/thought_section_marker.webp") center/cover no-repeat;box-shadow:0 3px 10px rgba(65,74,130,.12)}
.choice-row{display:flex;gap:14px 26px;flex-wrap:wrap;margin:4px 0 20px}
.choice-check{display:flex;align-items:center;gap:9px;padding:11px 14px;border-radius:14px;background:rgba(255,255,255,.62);border:1px solid rgba(65,74,130,.12);font-size:14px;cursor:pointer}
.choice-check input{width:18px;height:18px;accent-color:#6974b2}
.location-detail,.notice-detail{margin-top:12px;padding:18px;border-radius:16px;background:rgba(245,247,255,.64);border:1px solid rgba(65,74,130,.10)}
.is-hidden{display:none}.record-bottom{margin-top:28px}
@media(max-width:640px){.record-tabs{display:grid;grid-template-columns:1fr}.record-tab{width:100%}.record-item-title{font-size:19px}.choice-row{display:grid;grid-template-columns:1fr}.choice-check{width:100%}}

/* 種類とAI利用意思のモデル */
.field-gap{margin-top:18px}.select-input{appearance:auto}.field-help,.intent-help{font-size:12px;line-height:1.7;color:var(--muted);margin:8px 0 0}.record-type-badge{display:inline-flex;align-items:center;width:max-content;margin-top:7px;padding:4px 10px;border-radius:999px;background:rgba(105,116,178,.09);border:1px solid rgba(105,116,178,.14);color:#626a9b;font-size:11px;letter-spacing:.04em}.record-item-title .record-type-badge{margin:0 0 0 auto;font-size:11px}.intent-block{padding:18px 0;border-top:1px solid rgba(65,74,130,.10)}.intent-block:first-of-type{border-top:0;padding-top:0}.intent-label{font-size:14px;letter-spacing:.08em;color:var(--ink-deep);margin-bottom:10px}.ai-intent-block{margin-top:4px}.ai-intent-block .choice-check{background:linear-gradient(145deg,rgba(250,250,255,.82),rgba(240,243,255,.64))}@media(max-width:640px){.record-item-title{flex-wrap:wrap}.record-item-title .record-type-badge{margin-left:42px}}


/* Homepage styles */
.hero{min-height:72vh;display:grid;place-items:center;text-align:center;padding:120px 8% 75px;background:linear-gradient(180deg,#eff9f7,#fbfaf6)}.eyebrow{font:10px system-ui;letter-spacing:.28em;color:var(--turquoise)}h1{font-size:clamp(34px,5vw,62px);font-weight:400;letter-spacing:.09em;margin:18px 0;color:var(--deep)}.hero p{max-width:720px;margin:auto;font-size:16px}.btn{display:inline-block;margin-top:30px;padding:10px 28px;border:1px solid var(--turquoise);border-radius:99px;font:12px system-ui;letter-spacing:.1em;color:var(--deep)}
.visual-section{max-width:1180px;margin:auto;padding:0 6% 110px}.visual-frame{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;background:#e8efec;box-shadow:0 22px 70px #173e461c}.slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transform:scale(1.025);transition:opacity 1.6s ease,transform 7s ease}.slide.active{opacity:1;transform:scale(1)}.visual-overlay{position:absolute;left:0;right:0;bottom:0;padding:70px 7% 36px;color:white;background:linear-gradient(transparent,#102f37aa);pointer-events:none}.visual-overlay h2{font-size:clamp(22px,3vw,36px);font-weight:400;margin:0;letter-spacing:.07em}.dots{position:absolute;right:3%;bottom:3%;display:flex;gap:8px;z-index:4}.dot{width:9px;height:9px;border-radius:50%;border:1px solid #fff;background:transparent;cursor:pointer;padding:0}.dot.active{background:#fff}
section.content{max-width:1050px;margin:auto;padding:95px 8%}.story{max-width:760px;margin:auto}h2{font-size:31px;font-weight:400;letter-spacing:.07em;margin:8px 0 28px;color:var(--deep)}.lead{font-size:18px}.quote{border-left:0;padding-left:0;font-size:21px;margin:38px 0}.cards,.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{background:white;border:1px solid var(--line);padding:28px;min-height:180px}.card h3,.step h3{font-weight:400;color:var(--deep)}.card p,.step p{font-size:14px;color:var(--muted);line-height:1.8}.note{max-width:none!important;background:#eef7f4}.cta{max-width:none!important;text-align:center;background:var(--deep);color:white}.cta h2{color:white}.cta p{color:#dce9e8}footer{padding:30px 8%;background:#0c3037;color:#bfd1d1;font:11px system-ui;display:flex;justify-content:space-between}
@media(max-width:700px){.navlinks{display:none}.hero{min-height:60vh}.visual-section{padding:0 0 70px}.visual-frame{aspect-ratio:4/5}.slide{object-position:center}.visual-overlay{padding:70px 7% 24px}.dots{right:6%;bottom:4%}section.content{padding:72px 7%}.cards,.steps{grid-template-columns:1fr}footer{display:block}}
@media(prefers-reduced-motion:reduce){.slide{transition:none;transform:none!important}}

/* MEMORY HELM brand color trial: transparent deep-sea blue-violet */
:root{--turquoise:#6974b2;--deep:#414a82;--ink:#555b82;--muted:#747892;--line:#dddff0}
.navlinks a{border-color:rgba(65,74,130,.22)}
.navlinks a:hover{border-color:rgba(65,74,130,.48)}
.hero{background:linear-gradient(180deg,#f1f2fb,#fbfaf6)}

.note{background:#f1f2f9}
.cta{background:#414a82}
footer{background:#343b6b;color:#d8daf0}


.visual-story-cta{display:flex;justify-content:center;align-items:center;margin-top:28px;}
.story-btn{display:inline-flex;align-items:center;justify-content:center;min-width:180px;padding:14px 22px;border:1px solid rgba(23,61,80,.18);border-radius:999px;background:rgba(255,255,255,.82);box-shadow:0 12px 32px rgba(65,74,130,.08);font-size:14px;letter-spacing:.08em;border-bottom:none;transition:.2s ease;}
.story-btn:hover{transform:translateY(-2px);background:rgba(255,255,255,.96);box-shadow:0 16px 36px rgba(65,74,130,.12);}

.navlinks a.active,
.navlinks a[aria-current="page"]{background:#6974b2;border-color:#6974b2;color:#fff;box-shadow:0 8px 20px rgba(65,74,130,.18);}
.navlinks a.active:hover,
.navlinks a[aria-current="page"]:hover{background:#6974b2;border-color:#6974b2;color:#fff;transform:none;}


/* Unified rebuild helpers */
.nav{position:sticky;top:0;z-index:50;min-height:72px;padding:0 clamp(22px,4vw,64px);display:flex;align-items:center;justify-content:space-between;background:rgba(252,251,247,.94);backdrop-filter:blur(13px);border-bottom:1px solid var(--line);}
.nav .brand{font-family:Georgia,"Times New Roman",serif;font-size:18px;letter-spacing:.22em;white-space:nowrap;color:var(--ink-deep);}
.navlinks a.active{background:linear-gradient(145deg,rgba(105,116,178,.96),rgba(82,91,145,.92));color:#fff;border-color:rgba(105,116,178,.95);box-shadow:0 8px 24px rgba(65,74,130,.16);}
.site-header .navlinks a.active{background:linear-gradient(145deg,rgba(105,116,178,.96),rgba(82,91,145,.92));color:#fff;border-color:rgba(105,116,178,.95);box-shadow:0 8px 24px rgba(65,74,130,.16);}
.card-link{display:block;color:inherit;text-decoration:none;transition:transform .2s ease,box-shadow .2s ease;}
.card-link:hover{transform:translateY(-2px);}
.field-gap{margin-top:18px;}
.select-input{appearance:auto;}
.field-help{font-size:12px;color:var(--muted);margin:8px 0 0;}
.record-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:28px 0 30px;}
.record-tab{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 18px;border-radius:999px;border:1px solid rgba(65,74,130,.18);background:rgba(255,255,255,.68);font-size:13px;}
.record-tab.active{background:#6974b2;color:white;border-color:#6974b2;}
.record-type-badge{display:inline-flex;margin-top:7px;padding:3px 10px;border-radius:999px;background:rgba(105,116,178,.11);color:#555b82;font-size:12px;}
.record-item-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:20px;color:var(--ink-deep);margin-bottom:18px;}
.record-marker{width:28px;height:28px;flex:0 0 28px;border-radius:50%;background:url("images/thought_section_marker.webp") center/cover no-repeat;}
.choice-row{display:flex;gap:16px;flex-wrap:wrap;margin:12px 0 16px;}
.choice-check{display:flex;align-items:flex-start;gap:8px;padding:10px 13px;border-radius:14px;background:rgba(255,255,255,.62);border:1px solid rgba(65,74,130,.12);font-size:14px;}
.choice-check input{accent-color:#6974b2;margin-top:4px;}
.location-detail,.notice-detail{margin-top:14px;}
.is-hidden{display:none!important;}
.intent-block{padding:18px 0;border-top:1px solid rgba(65,74,130,.10);}
.intent-block:first-of-type{border-top:0;}
.intent-label{font-size:15px;color:var(--ink-deep);letter-spacing:.06em;margin-bottom:8px;}
.intent-help{font-size:12px;color:var(--muted);margin-bottom:10px;}
.record-bottom{margin-top:30px;}
@media(max-width:860px){.nav{height:auto;min-height:66px;align-items:flex-start;padding-top:18px;padding-bottom:14px;gap:16px;flex-direction:column}.nav .navlinks{width:100%;overflow-x:auto;padding-bottom:4px}}


/* Story page ending unified with other pages */
.story-full-end{min-height:560px;}
.story-full-end::after{background:linear-gradient(180deg,rgba(255,255,255,0.04),rgba(255,255,255,0.10));}
.story-end-footer{padding:36px clamp(22px,4vw,64px);border-top:1px solid var(--line);background:#fff;}
.story-end-footer div{font-size:12px;color:var(--muted);}

/* 物語：冒頭タイトルを他の物語見出しと同じサイズに統一 */
.story-hero h1{font-size:36px;}
@media(max-width:640px){.story-hero h1{font-size:36px;}}


/* 物語冒頭タイトルを太字に */
body[data-page="story"] .story-hero-copy h1{font-weight:700;}


/* Memo feature — isolated additions */
.memo-entry{max-width:var(--max);margin:-68px auto 88px;padding:0 5vw;position:relative;z-index:2}
.memo-entry-link{display:flex;align-items:center;gap:18px;padding:20px 24px;border-radius:26px;background:rgba(255,255,255,.72);border:1px solid rgba(65,74,130,.12);box-shadow:0 14px 38px rgba(76,86,138,.07);text-decoration:none;transition:.2s ease}
.memo-entry-link:hover{transform:translateY(-2px);box-shadow:0 18px 44px rgba(76,86,138,.10)}
.memo-entry-label{font-size:11px;letter-spacing:.18em;color:var(--muted)}
.memo-entry-title{font-size:18px;letter-spacing:.07em;color:var(--ink-deep);white-space:nowrap}
.memo-entry-text{font-size:13px;color:var(--muted);line-height:1.7}
.memo-panel{max-width:980px}
.memo-compose{margin:26px 0 34px;padding:24px;border-radius:22px;background:rgba(255,255,255,.68);border:1px solid rgba(65,74,130,.11)}
.memo-textarea{resize:vertical;min-height:130px;line-height:1.8}
.memo-compose-actions,.memo-toolbar,.memo-item-head,.memo-actions{display:flex;align-items:center;justify-content:space-between;gap:14px}
.memo-compose-actions{margin-top:14px}
.memo-note{font-size:12px;color:var(--muted)}
.memo-toolbar{margin:6px 0 26px;flex-wrap:wrap}
.memo-view-tabs{display:flex;gap:8px}
.memo-view-tab{font:inherit;font-size:13px;letter-spacing:.05em;border:1px solid rgba(65,74,130,.18);border-radius:999px;padding:9px 16px;background:rgba(255,255,255,.72);color:var(--ink-deep);cursor:pointer}
.memo-view-tab.active{background:#6974b2;color:#fff;border-color:#6974b2}
.memo-list{display:grid;gap:16px}
.memo-item{padding:22px 24px;border-radius:20px;background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(245,246,255,.70));border:1px solid rgba(65,74,130,.12);box-shadow:0 12px 34px rgba(76,86,138,.06)}
.memo-item-head time{font-size:12px;color:var(--muted);letter-spacing:.04em}
.memo-item-head .record-type-badge{margin:0}
.memo-body{margin:16px 0 20px;font-size:15px;line-height:1.9;color:var(--ink-deep);white-space:normal;word-break:break-word}
.memo-actions{justify-content:flex-end}
@media(max-width:700px){
  .memo-entry{margin:-42px auto 64px;padding:0 7vw}
  .memo-entry-link{align-items:flex-start;flex-direction:column;gap:7px}
  .memo-compose-actions{align-items:flex-start;flex-direction:column}
  .memo-toolbar{align-items:flex-start;flex-direction:column}
}

.memo-data-actions{display:flex;align-items:center;gap:10px}
@media(max-width:700px){.memo-data-actions{width:100%}.memo-data-actions .soft-btn{width:100%}}

.memo-usb-guide{margin:0 0 22px;padding:16px 18px;border-radius:16px;background:rgba(255,255,255,.62);border:1px solid rgba(65,74,130,.10)}
.memo-usb-guide strong{display:block;margin-bottom:6px;color:var(--ink-deep);font-size:13px;letter-spacing:.05em}
.memo-usb-guide p{margin:0;font-size:12px;line-height:1.8;color:var(--muted)}
.memo-usb-guide code{font-family:Consolas,monospace;font-size:12px}
.memo-data-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.memo-usb-status{font-size:12px;color:var(--muted)}
.memo-data-actions .soft-btn:disabled{opacity:.45;cursor:not-allowed;transform:none}


/* Attribute color markers — 5 color groups */
.attribute-select{font-weight:500}
.record-type-badge{display:inline-flex;align-items:center;gap:7px}
.attribute-color-dot{width:9px;height:9px;border-radius:50%;flex:0 0 9px;background:#a8acb8}
.record-type-badge.attr-media .attribute-color-dot{background:#70d4cc}
.record-type-badge.attr-finance .attribute-color-dot{background:#efa3ad}
.record-type-badge.attr-creative .attribute-color-dot{background:#9fd7ad}
.record-type-badge.attr-digital .attribute-color-dot{background:#9bcfe8}
.record-type-badge.attr-memo .attribute-color-dot{background:#f2d77a}
.record-type-badge.attr-legacy .attribute-color-dot{background:#a8acb8}




/* Attribute display: clean unified pastel badges */
.record-type-badge{
  display:inline-flex;
  align-items:center;
  margin-top:7px;
  padding:6px 12px;
  border-radius:999px;
  color:#fff;
  border:none;
  font-size:12px;
  line-height:1.2;
  letter-spacing:.03em;
  font-weight:600;
}
.record-type-badge.attr-media{background:#70d4cc}
.record-type-badge.attr-finance{background:#efa3ad}
.record-type-badge.attr-creative{background:#9fd7ad}
.record-type-badge.attr-digital{background:#9bcfe8}
.record-type-badge.attr-memo{background:#f2d77a}
.record-type-badge.attr-legacy{background:#a8acb8}

/* Do not show a separate list marker when the attribute itself is a colored badge */
.record-type-badge .attribute-color-dot{display:none!important}

/* Keep the attribute dropdown plain */
.attribute-select{
  background:#fff!important;
  color:var(--ink-deep)!important;
  border-color:rgba(65,74,130,.22)!important;
  font-weight:400!important;
}
.attribute-select option{color:#222;background:#fff}

@media(max-width:700px){
  .record-type-badge{font-size:11px;padding:6px 10px}
}

/* 2026-08-31: 残せること見出しのみ少し小さく（カード配置・マーカーは従来のまま） */
.service-page .page-hero h1{font-size:clamp(28px,3.6vw,44px);}

/* 残せること：メモのリストマーカー */
.memo-entry-marker{font-size:12px;letter-spacing:.12em;color:var(--turquoise);flex:0 0 auto}

/* 残せること：繋がるしくみと同じく、大きなダイアログの上に選択ボタンを配置 */
.service-page .page-hero{padding:90px 5vw 110px;min-height:calc(100vh - 72px);display:grid;place-items:center;}
.service-page .page-hero .inner{max-width:1050px;width:100%;padding:58px 54px 62px;border-radius:32px;}
.service-page .page-hero .inner>p{margin-bottom:42px;}
.service-page .page-hero .card-grid{max-width:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;}
.service-page .page-hero .card{min-height:180px;padding:25px 24px;border-radius:22px;text-align:left;}
.service-page .page-hero .card .num{margin-bottom:10px;}
.service-page .page-hero .card h3{margin-bottom:10px;}
.service-page .page-hero .card p{margin:0;}
.service-page .page-hero .memo-entry{max-width:none;margin:22px 0 0;padding:0;}
.service-page .page-hero .memo-entry-link{border-radius:22px;}
.service-page .memo-entry-marker{width:28px;height:28px;flex:0 0 28px;border-radius:50%;background:url("images/thought_section_marker.webp") center/cover no-repeat;box-shadow:0 3px 10px rgba(65,74,130,.12);}
.service-page .memo-entry-link:hover .memo-entry-marker,.service-page .memo-entry-link:focus-visible .memo-entry-marker{background-image:url("images/service_marker_six_helm.webp");}
@media(max-width:860px){.service-page .page-hero{padding:72px 7vw 88px}.service-page .page-hero .inner{padding:44px 24px 48px;border-radius:24px}.service-page .page-hero .card-grid{grid-template-columns:1fr}.service-page .page-hero .card{min-height:0}.service-page .page-hero .memo-entry-link{flex-direction:column;align-items:flex-start}}

/* 2026-09-01: compact homepage opening text area */
body[data-page="home"] .hero{
  min-height:0;
  padding:46px 8% 34px;
  place-items:center;
}
body[data-page="home"] .hero h1{
  margin:0 0 14px;
}
body[data-page="home"] .hero p{
  margin:0 auto;
  line-height:1.9;
}
@media(max-width:700px){
  body[data-page="home"] .hero{
    min-height:0;
    padding:38px 7% 28px;
  }
  body[data-page="home"] .hero h1{
    margin-bottom:12px;
  }
}

/* Tangerine brand treatments requested for non-demo site */
.tangerine-brand{font-family:'Tangerine',cursive !important;text-transform:none !important;letter-spacing:.02em !important;font-weight:700;}
.nav .brand.tangerine-brand,.brand.tangerine-brand{font-size:32px;line-height:1;white-space:nowrap;}
.hero .eyebrow.tangerine-brand.hero-brand{font-family:'Tangerine',cursive !important;font-size:34px;line-height:1.05;letter-spacing:.02em;color:var(--turquoise);text-transform:none;margin-bottom:10px;}
footer .tangerine-brand.footer-brand,.site-footer .tangerine-brand.footer-brand{font-size:30px;line-height:1.05;}
.inline-tangerine{font-size:30px;line-height:1;vertical-align:-.08em;display:inline-block;}

/* Section English labels: Tangerine */
.eyebrow{font-family:'Tangerine',cursive !important;font-size:24px;line-height:1.05;letter-spacing:.04em;text-transform:none;}

/* Original MEMORY HELM logo placed before the existing header brand text.
   The supplied logo image itself is not edited or recolored. */
.header-brand-with-logo{display:inline-flex !important;align-items:center;gap:10px;text-decoration:none;}
.header-original-logo{display:block;width:76px;height:auto;object-fit:contain;flex:0 0 auto;}
@media (max-width:760px){.header-original-logo{width:60px}.header-brand-with-logo{gap:7px}}

/* Home hero MEMORY HELM: use the site's normal Mincho typeface, not Tangerine. */
body[data-page="home"] .hero .eyebrow.hero-brand{
  font-family:"Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif !important;
  font-size:14px;
  line-height:1.4;
  letter-spacing:.16em;
  font-weight:400;
  text-transform:none;
}


/* 2026-09-02: main page titles match the Story opening title exactly */
.story-title-match{
  font-family:"Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif !important;
  font-size:36px !important;
  font-weight:700 !important;
  line-height:1.65 !important;
  letter-spacing:.07em !important;
}
@media(max-width:640px){.story-title-match{font-size:36px !important;}}

/* 2026-09-02: requested header/home spacing adjustments */
.header-original-logo{width:90px;}
body[data-page="home"] .hero .eyebrow.hero-brand{margin-bottom:32px;}
@media (max-width:760px){.header-original-logo{width:70px;}}

/* 2026-09-02: home hero logo before the Mincho MEMORY HELM title */
body[data-page="home"] .hero .hero-brand-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin-bottom:32px;
}
body[data-page="home"] .hero .hero-brand-row .hero-brand{margin-bottom:0;}
body[data-page="home"] .hero .hero-brand-logo{
  display:block;
  width:168px;
  height:auto;
  object-fit:contain;
}
@media(max-width:640px){body[data-page="home"] .hero .hero-brand-logo{width:144px;}body[data-page="home"] .hero .hero-brand-row{gap:9px;}}

/* 2026-09-02: center the home hero MEMORY HELM text itself; keep logo immediately before it. */
body[data-page="home"] .hero .hero-brand-row{
  position:relative;
  display:block;
  width:max-content;
  margin:0 auto 32px;
}
body[data-page="home"] .hero .hero-brand-row .hero-brand{
  margin:0;
  font-size:18px !important;
  text-align:center;
}
body[data-page="home"] .hero .hero-brand-logo{
  position:absolute;
  right:calc(100% + 12px);
  top:50%;
  transform:translateY(-50%);
  width:168px;
  height:auto;
}
@media(max-width:640px){
  body[data-page="home"] .hero .hero-brand-row .hero-brand{font-size:18px !important;}
  body[data-page="home"] .hero .hero-brand-logo{right:calc(100% + 9px);width:144px;}
}

/* 2026-09-02: increase vertical space between home MEMORY HELM brand line and main title */
body[data-page="home"] .hero .hero-brand-row{
  margin-bottom:54px;
}

/* 2026-09-02: rebalance home MEMORY HELM title and increase vertical breathing room */
body[data-page="home"] .hero .hero-brand-row{
  margin-bottom:72px;
}
body[data-page="home"] .hero .hero-brand-row .hero-brand{
  font-size:22px !important;
  line-height:1.45;
}
@media(max-width:640px){
  body[data-page="home"] .hero .hero-brand-row{margin-bottom:58px;}
  body[data-page="home"] .hero .hero-brand-row .hero-brand{font-size:21px !important;}
}

/* 2026-09-02: compact the six main navigation buttons and set home brand/title spacing */
.navlinks{gap:5px;}
.navlinks a{width:90px;padding-left:6px;padding-right:6px;}
body[data-page="home"] .hero .hero-brand-row{margin-bottom:110px;}
@media(max-width:640px){
  body[data-page="home"] .hero .hero-brand-row{margin-bottom:110px;}
}


/* ===== Font comparison: MEMORY HELM / Zen Old Mincho + Noto Sans JP =====
   Headings and emotional copy: Zen Old Mincho
   Body text, navigation, buttons, labels: Noto Sans JP
   Existing Tangerine logo lettering is intentionally preserved. */
body{
  font-family:"Noto Sans JP","Yu Gothic","Hiragino Kaku Gothic ProN",sans-serif;
}
h1,h2,h3,
.story-title-match,
.quote,
.lead,
.story-closing .lead,
.time-passage h2,
.visual-overlay h2,
.thought-inner h1,
.thought-section h2{
  font-family:"Zen Old Mincho","Yu Mincho","Hiragino Mincho ProN",serif;
}
.navlinks,
.btn,
.eyebrow:not(.tangerine-brand),
.card .num,
.flow-button,
.flow-back,
.site-footer,
footer{
  font-family:"Noto Sans JP","Yu Gothic","Hiragino Kaku Gothic ProN",sans-serif;
}
/* Do not alter the approved Tangerine logo wordmark. */
.tangerine-brand,
.thought-section h2.tangerine-title{
  font-family:'Tangerine',cursive !important;
}
/* Home hero brand name remains a readable serif wordmark, not Tangerine. */
body[data-page="home"] .hero .hero-brand-row .hero-brand{
  font-family:"Zen Old Mincho","Yu Mincho","Hiragino Mincho ProN",serif !important;
}

/* ===== Zen Old Mincho comparison v2: make the character clearly visible =====
   Keep all existing layout, images, header logo, and the 110px home spacing unchanged. */

/* Primary Japanese headings: visibly Zen Old Mincho, with breathing room. */
h1,
h2,
h3,
.story-title-match,
.quote,
.lead,
.story-closing .lead,
.time-passage h2,
.visual-overlay h2,
.thought-inner h1,
.thought-section h2,
.section-marker-title,
.page-hero h1,
.story-copy h1,
.story-copy h2 {
  font-family:"Zen Old Mincho","Yu Mincho","Hiragino Mincho ProN",serif !important;
  font-weight:600 !important;
  letter-spacing:.105em !important;
  font-feature-settings:"palt" 1;
}

/* Large/hero titles: a little lighter and more elegant. */
.story-title-match,
.story-hero h1,
body[data-page="home"] .hero h1,
.page-hero h1,
.thought-inner h1 {
  font-weight:500 !important;
  letter-spacing:.13em !important;
  line-height:1.65 !important;
}

/* Story chapter titles: slightly stronger, to reveal Zen Old Mincho's contrast. */
.story-copy h2,
.time-passage h2,
.visual-overlay h2,
.section-marker-title {
  font-weight:600 !important;
  letter-spacing:.11em !important;
  line-height:1.8 !important;
}

/* Emotional short lines/quotes: lighter and more spacious. */
.quote,
.lead,
.story-closing .lead {
  font-weight:400 !important;
  letter-spacing:.12em !important;
}

/* Body/UI remains neutral and easy to read in Noto Sans JP. */
p,
li,
label,
input,
textarea,
select,
button,
.navlinks,
.btn,
.eyebrow:not(.tangerine-brand),
.site-footer,
footer {
  font-family:"Noto Sans JP","Yu Gothic","Hiragino Kaku Gothic ProN",sans-serif;
}

/* Preserve the approved Tangerine logo wordmark exactly. */
.tangerine-brand,
.thought-section h2.tangerine-title {
  font-family:'Tangerine',cursive !important;
  letter-spacing:normal !important;
  font-weight:700 !important;
}

/* Home brand text remains Zen Old Mincho; spacing/layout is not changed. */
body[data-page="home"] .hero .hero-brand-row .hero-brand {
  font-family:"Zen Old Mincho","Yu Mincho","Hiragino Mincho ProN",serif !important;
  font-weight:600 !important;
  letter-spacing:.14em !important;
}


/* Home update: implementation guidance */
.home-implementation-note{
  margin-top:28px;
  margin-bottom:0;
  font-size:14px;
  line-height:1.9;
  letter-spacing:.05em;
  color:var(--muted);
}

/* Home update: quiet outer frame for the existing 5-image slideshow */
.visual-frame-bordered{
  border:8px solid rgba(245,241,232,.96);
  outline:1px solid rgba(111,94,73,.28);
  box-shadow:
    0 12px 34px rgba(50,60,78,.12),
    inset 0 0 0 1px rgba(255,255,255,.72);
}

@media(max-width:700px){
  .home-implementation-note{
    margin-top:22px;
    font-size:13px;
  }
  .visual-frame-bordered{
    border-width:5px;
  }
}


/* Final homepage corrections */
.demo-notice{
  position:relative;
  z-index:90;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:8px 16px;
  background:rgba(255,248,225,.96);
  border-bottom:1px solid rgba(186,154,72,.20);
  color:#6e5b2f;
  font-size:12px;
  line-height:1.5;
}
.demo-notice strong{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:2px 8px;
  border-radius:999px;
  background:#f0d999;
  color:#5b4a22;
  font-size:11px;
  letter-spacing:.12em;
}

/* Leave a visible blank line before this note, and make it pink */
.home-implementation-note{
  margin-top:38px !important;
  margin-bottom:30px !important;
  color:#e783a8 !important;
  font-size:14px;
  line-height:1.9;
  letter-spacing:.05em;
  text-align:left;
}

/* Thicker, wood-like frame around the existing 5-image slideshow */
.visual-frame-bordered{
  border:14px solid #d9c3a3 !important;
  outline:1px solid rgba(111,84,52,.38) !important;
  box-shadow:
    inset 0 0 0 3px rgba(255,255,255,.52),
    inset 0 0 0 7px rgba(151,116,76,.16),
    0 14px 34px rgba(63,48,31,.18) !important;
  background:#e8d8bf !important;
}

@media(max-width:700px){
  .demo-notice{
    justify-content:flex-start;
    flex-wrap:wrap;
    padding:8px 12px;
  }
  .home-implementation-note{
    margin-top:30px !important;
    margin-bottom:24px !important;
    font-size:13px;
  }
  .visual-frame-bordered{
    border-width:9px !important;
  }
}
