@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=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:'Tangerine',cursive;font-size:32px;font-weight:700;letter-spacing:.02em;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:'Tangerine',cursive;font-size:32px;font-weight:700;letter-spacing:.02em;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}}


/* CAMPFIRE public demo safeguards */
.demo-banner{position:relative;z-index:1000;display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;padding:9px 18px;background:#f3f1fb;border-bottom:1px solid rgba(65,74,130,.16);color:#414a82;font-family:system-ui,-apple-system,"Yu Gothic",sans-serif;font-size:12px;line-height:1.6;letter-spacing:.02em;text-align:center}
.demo-banner strong{letter-spacing:.08em}.demo-banner span{color:#666b86}
.demo-panel-note{margin:18px 0 28px;padding:14px 18px;border-radius:14px;background:rgba(247,245,255,.88);border:1px solid rgba(105,116,178,.18);color:#626782;font-size:12px;line-height:1.8}
.demo-panel-note strong{color:#414a82}
.demo-disabled{cursor:default}.demo-disabled small{font-size:11px;color:var(--muted);font-weight:400}
@media(max-width:640px){.demo-banner{align-items:flex-start;flex-direction:column;gap:2px;text-align:left;padding:8px 14px}}


/* CAMPFIRE demo: Tangerine brand mark */
.site-footer > div:last-child, body > footer > div:last-child{font-family:'Tangerine',cursive;font-size:30px;font-weight:700;letter-spacing:.02em;}

/* 2026-09-01 CAMPFIRE demo v8: 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;
  }
}

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


/* ===== MEMORY HELM approved typography: Zen Old Mincho + Noto Sans JP =====
   Headings/emotional copy: Zen Old Mincho
   Body/navigation/buttons/forms: Noto Sans JP
   Tangerine wordmarks remain unchanged. */
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,
.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;
}
.story-title-match,
.story-hero h1,
.hero-home h1,
.page-hero h1,
.thought-inner h1{
  font-weight:500 !important;
  letter-spacing:.13em !important;
  line-height:1.65 !important;
}
.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;
}
.quote,
.lead,
.story-closing .lead{
  font-weight:400 !important;
  letter-spacing:.12em !important;
}
p,li,label,input,textarea,select,button,
.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;
}

/* Preserve all approved Tangerine lettering exactly. */
.brand,
.tangerine-brand,
.thought-section h2.tangerine-title{
  font-family:'Tangerine',cursive !important;
}

/* 2026-09-02 requested title alignment */
/* Home MEMORY HELM label: Zen Old Mincho, not Tangerine */
body[data-page="home"] .hero .eyebrow{
  font-family:"Zen Old Mincho","Yu Mincho","Hiragino Mincho ProN",serif !important;
  font-size:22px !important;
  font-weight:500 !important;
  letter-spacing:.13em !important;
  line-height:1.65 !important;
}
/* Main page titles: same size as the Story title */
body[data-page="home"] .hero h1,
body[data-page="story"] .story-hero-copy h1,
body[data-page="about"] .thought-inner h1,
body[data-page="service"] .page-hero h1,
body[data-page="flow"] .page-hero h1,
body[data-page="contact"] .contact-hero h1{
  font-family:"Zen Old Mincho","Yu Mincho","Hiragino Mincho ProN",serif !important;
  font-size:36px !important;
  font-weight:500 !important;
  letter-spacing:.13em !important;
  line-height:1.65 !important;
}

/* 2026-09-02 correction: flow title must match Story title exactly */
body[data-page="flow"] .flow-stage h1{
  font-family:"Zen Old Mincho","Yu Mincho","Hiragino Mincho ProN",serif !important;
  font-size:36px !important;
  font-weight:500 !important;
  letter-spacing:.13em !important;
  line-height:1.65 !important;
}

/* 2026-09-02 home brand/title spacing: 100px */
body[data-page="home"] .hero .eyebrow{
  margin:0 0 100px !important;
}

/* 2026-09-02: place the user-provided original full logo before the home MEMORY HELM label */
body[data-page="home"] .hero .hero-brand-line{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  margin:0 0 100px !important;
}
body[data-page="home"] .hero .hero-brand-line .eyebrow{
  margin:0 !important;
}
body[data-page="home"] .hero .hero-full-logo{
  display:block;
  width:232px;
  height:auto;
  flex:0 0 auto;
}


/* 2026-09-02: compact transparent hero logo + JavaScript-triggered pop/spin */
body[data-page="home"] .hero .hero-full-logo{
  transform-origin:50% 50%;
  will-change:transform;
}
body[data-page="home"] .hero .hero-full-logo.logo-pop-spin{
  animation:memoryHelmPopSpin 1.25s cubic-bezier(.22,.8,.32,1) both;
}
@keyframes memoryHelmPopSpin{
  0%   {transform:scale(1) rotate(0deg);}
  16%  {transform:scale(1.08) rotate(-7deg);}
  32%  {transform:scale(.98) rotate(7deg);}
  48%  {transform:scale(1.07) rotate(-4deg);}
  64%  {transform:scale(1.01) rotate(12deg);}
  100% {transform:scale(1) rotate(360deg);}
}
@media (prefers-reduced-motion: reduce){
  body[data-page="home"] .hero .hero-full-logo.logo-pop-spin{animation:none;}
}

/* Home slideshow: white-painted wooden frame matching the contact-page helm. */
body[data-page="home"] .visual-frame{
  box-sizing:border-box;
  border:30px solid #f4f1eb;
  border-image-source:url("images/white_painted_wood_frame.webp");
  border-image-slice:64;
  border-image-width:30px;
  border-image-repeat:round;
  outline:2px solid rgba(55,63,67,.30);
  outline-offset:0;
  border-radius:2px;
  box-shadow:0 24px 62px rgba(30,48,56,.22),0 6px 16px rgba(30,48,56,.14);
}
@media(max-width:700px){
  body[data-page="home"] .visual-frame{
    border-width:20px;
    border-image-width:20px;
  }
}

/* お知らせタイミング・AI利用範囲 */
.notice-person-label{display:block;margin-top:18px;}
.ai-scope-detail{margin-top:14px;padding:18px;border-radius:16px;background:rgba(245,247,255,.64);border:1px solid rgba(65,74,130,.10);}
.ai-scope-row{margin-bottom:10px;}
.ai-specific-detail{margin-top:12px;}


/* Connect demo: equal action buttons + person/contact input */
.flow-page .connect-actions{align-items:stretch;}
.flow-page .connect-main-button{
  width:min(390px,42vw) !important;
  min-height:88px;
  padding:20px 34px;
  font-size:17px;
  line-height:1.55;
  text-align:center;
  border:1px solid rgba(23,61,80,.22);
  cursor:pointer;
}
.flow-page .connect-panel{
  width:min(820px,100%);
  margin:18px auto 0;
  padding:28px 30px 30px;
  border:1px solid rgba(23,61,80,.18);
  border-radius:20px;
  background:rgba(255,255,255,.72);
  box-shadow:0 14px 38px rgba(65,74,130,.08);
  backdrop-filter:blur(7px);
  text-align:left;
}
.flow-page .connect-panel h2{margin:0 0 8px;font-size:21px;text-align:center;}
.flow-page .connect-help{margin:0 0 20px;text-align:center;font-size:14px;}
.flow-page .person-choice-row{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;}
.flow-page .person-choice{
  appearance:none;
  border:1px solid rgba(23,61,80,.25);
  border-radius:999px;
  background:rgba(255,255,255,.9);
  padding:10px 18px;
  font:inherit;
  color:var(--ink-deep);
  cursor:pointer;
}
.flow-page .person-choice:hover,.flow-page .person-choice.is-selected{background:rgba(227,245,246,.95);border-color:rgba(20,127,132,.45);}
.flow-page .person-form{margin-top:24px;padding-top:22px;border-top:1px solid rgba(23,61,80,.14);}
.flow-page .person-form-title{margin:0 0 16px;font-size:17px;text-align:center;}
.flow-page .person-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;}
.flow-page .person-form-grid label{display:grid;gap:7px;font-size:13px;font-weight:600;color:var(--ink-deep);}
.flow-page .person-form-grid input{width:100%;box-sizing:border-box;border:1px solid rgba(23,61,80,.24);border-radius:10px;background:#fff;padding:12px 13px;font:inherit;color:var(--ink-deep);}
.flow-page .person-form-grid input:focus{outline:2px solid rgba(20,127,132,.18);border-color:rgba(20,127,132,.5);}
@media(max-width:860px){
  .flow-page .connect-main-button{width:100% !important;max-width:560px;}
  .flow-page .connect-panel{padding:24px 18px;}
  .flow-page .person-form-grid{grid-template-columns:1fr;}
}

/* Home page centering — keep these sections centered */
body[data-page="home"] section.content#about .story,
body[data-page="home"] section.content.note .story{
  text-align:center;
}

/* 2026-09-10 compact record pages: existence / location / intention */
.existence-page .existence-main{
  padding:40px 5vw 56px;
}
.existence-page .existence-panel{
  padding:30px 36px 32px;
  border-radius:24px;
}
.existence-page .existence-panel > .eyebrow{
  margin-bottom:8px;
}
.existence-page .existence-panel > h1{
  font-family:"Zen Old Mincho","Yu Mincho","Hiragino Mincho ProN",serif !important;
  font-size:36px !important;
  font-weight:500 !important;
  letter-spacing:.13em !important;
  line-height:1.65 !important;
  margin:0 0 6px !important;
}
.existence-page .existence-lead{
  margin:0 0 16px;
  line-height:1.75;
}
.existence-page .demo-panel-note{
  margin:12px 0 16px;
  padding:10px 14px;
  line-height:1.6;
}
.existence-page .existence-toolbar{
  gap:14px;
  margin-bottom:14px;
}
.existence-page .record-tabs{
  margin:8px 0 16px;
  padding-bottom:14px;
  gap:8px;
}
.existence-page .record-tab{
  min-height:36px;
  padding:6px 15px;
}
.existence-page .existence-list{
  gap:12px;
}
.existence-page .existence-item{
  padding:17px 20px;
  border-radius:18px;
}
.existence-page .record-item-title{
  margin-bottom:11px;
  font-size:19px;
}
.existence-page .choice-row{
  gap:10px 16px;
  margin:6px 0 10px;
}
.existence-page .location-detail,
.existence-page .notice-detail{
  margin-top:8px;
  padding:12px 14px;
}
.existence-page .intent-block{
  padding:11px 0;
}
.existence-page .intent-label{
  margin-bottom:6px;
}
.existence-page .field-help,
.existence-page .intent-help{
  line-height:1.5;
  margin-top:5px;
}
.existence-page .existence-item-actions{
  margin-top:12px;
}
.existence-page .record-bottom{
  margin-top:16px;
}
.existence-page .empty-state{
  padding:26px 18px;
}

/* Compact the add/edit dialog as well */
.existence-page .existence-dialog form{
  padding:22px 26px 24px;
}
.existence-page .dialog-head{
  margin-bottom:14px;
}
.existence-page .dialog-head .eyebrow{
  margin-bottom:5px;
}
.existence-page .dialog-head h2{
  font-size:22px;
  line-height:1.5;
}
.existence-page .field-label{
  margin-bottom:5px;
}
.existence-page .field-gap{
  margin-top:12px;
}
.existence-page .text-input{
  padding:10px 13px;
}
.existence-page .remember-check{
  margin-top:12px;
  line-height:1.5;
}
.existence-page .dialog-actions{
  margin-top:18px;
}

@media(max-width:700px){
  .existence-page .existence-main{padding:28px 4vw 42px;}
  .existence-page .existence-panel{padding:24px 18px 26px;}
  .existence-page .existence-panel > h1{font-size:30px !important;}
}

/* 2026-09-10: 残せること3ページ 見出し中央揃え・見出し後の余白調整 */
.existence-panel > .eyebrow,
.existence-panel > h1 {
  text-align:center;
}
.existence-panel > .eyebrow {
  margin-bottom:8px;
}
.existence-panel > h1 {
  margin-top:0;
  margin-bottom:48px;
}
.existence-panel > .existence-lead {
  margin-left:auto;
  margin-right:auto;
  text-align:center;
}

/* 意思を残す：知らせる相手を「大切な人へ繋ぐ」の送る相手設定へ連動 */
.notice-person-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin-top:7px;padding:10px 20px;border:1px solid rgba(20,127,132,.42);border-radius:10px;background:#fff;color:var(--ink-deep);font:inherit;font-weight:700;text-decoration:none;cursor:pointer;transition:background .18s ease,border-color .18s ease,color .18s ease;}
.notice-person-button:hover,.notice-person-button:focus-visible{background:rgba(227,245,246,.95);border-color:rgba(20,127,132,.68);color:#1687c9;text-decoration:none;}

/* 0910 final: 知らせる相手ボタンは知らせるタイミングと同じ左揃え */
.notice-detail{text-align:left;}
.notice-person-button{display:flex;width:max-content;justify-content:flex-start;margin-left:0;margin-right:0;}

/* 0910: 意思を残す・お知らせ欄の横幅と配置 */
.notice-detail .notice-timing{
  width:190px !important;
  max-width:100%;
}
.notice-detail{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
.notice-person-button{
  width:max-content;
  margin-top:10px;
}

/* 0910: 知らせるタイミングと知らせる相手を横並び */
.notice-detail{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  gap:12px;
  flex-wrap:wrap;
}
.notice-detail.is-hidden{
  display:none !important;
}
.notice-detail .notice-timing{
  width:190px !important;
  max-width:100%;
  margin:0;
}
.notice-person-button{
  margin:0 !important;
  width:max-content;
  flex:0 0 auto;
}

/* 0910: 「知らせるタイミング」「知らせる相手」を同サイズ・間隔を空けて中央配置 */
.notice-detail{
  display:flex !important;
  flex-direction:row !important;
  justify-content:center !important;
  align-items:center !important;
  gap:36px !important;
  width:100%;
}
.notice-detail.is-hidden{display:none !important;}
.notice-detail .notice-timing,
.notice-detail .notice-person-button{
  box-sizing:border-box;
  width:210px !important;
  min-width:210px !important;
  height:44px !important;
  min-height:44px !important;
  margin:0 !important;
}
.notice-detail .notice-timing{
  padding:0 13px !important;
}
.notice-detail .notice-person-button{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 13px !important;
}
@media(max-width:560px){
  .notice-detail{
    gap:14px !important;
    flex-wrap:wrap;
  }
}

/* FINAL: 「知らせる相手」を「知らせるタイミング」プルダウンと完全に同形状へ */
.notice-detail{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  gap:36px !important;
  width:100%;
}
.notice-detail .notice-timing,
.notice-detail .notice-person-button{
  box-sizing:border-box !important;
  width:210px !important;
  min-width:210px !important;
  height:44px !important;
  min-height:44px !important;
  margin:0 !important;
  border:1px solid #cfd6da !important;
  border-radius:8px !important;
  background:#fff !important;
  color:inherit !important;
  font:inherit !important;
  font-weight:400 !important;
  line-height:42px !important;
  box-shadow:none !important;
}
.notice-detail .notice-timing{
  padding:0 36px 0 13px !important;
}
.notice-detail .notice-person-button{
  display:block !important;
  padding:0 13px !important;
  text-align:left !important;
  text-decoration:none !important;
}
.notice-detail .notice-person-button:hover,
.notice-detail .notice-person-button:focus-visible{
  border-color:#cfd6da !important;
  background:#fff !important;
  color:inherit !important;
  text-decoration:none !important;
  box-shadow:none !important;
}

/* 0910: お知らせ操作エリアを少し濃い透明感のある紫に */
.notice-detail{
  background:rgba(116, 83, 156, .20) !important;
  padding:22px 28px !important;
  border-radius:14px !important;
}
.notice-detail .notice-person-button{
  text-align:center !important;
}



/* === 2026-09-11 HOME definitive layout === */

/* 上部ナビゲーションにはロゴ画像を置かない */
body[data-page="home"] .nav .brand{
  display:block;
}

/* ホーム最上部：MEMORY HELM の文字そのものを画面中央に固定し、
   ロゴはその左に置く（ロゴ幅で文字位置を動かさない） */
body[data-page="home"] .hero .hero-brand-line{
  position:relative !important;
  display:block !important;
  width:100% !important;
  min-height:64px !important;
  margin:0 0 100px !important;
}
body[data-page="home"] .hero .hero-brand-line .eyebrow{
  position:absolute !important;
  left:50% !important;
  top:50% !important;
  transform:translate(-50%,-50%) !important;
  margin:0 !important;
  white-space:nowrap !important;
}
body[data-page="home"] .hero .hero-brand-line .hero-full-logo{
  position:absolute !important;
  right:calc(50% + 92px) !important;
  top:0 !important;
  bottom:0 !important;
  width:116px !important;
  height:auto !important;
  margin:auto 0 !important;
}

/* 「忘れても、またたどり着けるように。」の上：
   小さいロゴを右端の外側から左へ流す。上切れしない余白を確保 */
body[data-page="home"] #about .home-moving-logo{
  position:relative !important;
  width:100% !important;
  height:86px !important;
  margin:14px 0 18px !important;
  overflow:hidden !important;
}
body[data-page="home"] #about .home-moving-logo img{
  position:absolute !important;
  left:100% !important;
  top:50% !important;
  width:86px !important;
  height:auto !important;
  margin:0 !important;
  transform:translateY(-50%) !important;
  animation:homeHelmMoveRightToLeft 10s linear infinite !important;
}
@keyframes homeHelmMoveRightToLeft{
  from{
    left:100%;
    transform:translateY(-50%);
  }
  to{
    left:-100px;
    transform:translateY(-50%);
  }
}
@media (prefers-reduced-motion: reduce){
  body[data-page="home"] #about .home-moving-logo img{
    animation:none !important;
    left:50% !important;
    transform:translate(-50%,-50%) !important;
  }
}


/* 2026-09-11: logo moves on the white/pale-purple boundary line, left to right */
body[data-page="home"] #about .home-moving-logo{display:none !important;}
body[data-page="home"] section.content.note{position:relative; overflow:visible;}
body[data-page="home"] section.content.note .boundary-moving-logo{
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:0;
  overflow:visible;
  pointer-events:none;
  z-index:3;
}
body[data-page="home"] section.content.note .boundary-moving-logo img{
  position:absolute;
  top:-30px;
  left:-130px;
  width:92px;
  height:auto;
  animation:boundaryLogoMoveLeftToRight 12s linear infinite;
}
@keyframes boundaryLogoMoveLeftToRight{
  from{ left:-130px; }
  to{ left:calc(100% + 40px); }
}
@media (prefers-reduced-motion: reduce){
  body[data-page="home"] section.content.note .boundary-moving-logo img{
    animation:none;
    left:calc(50% - 46px);
  }
}


/* 2026-09-11: both boundary logos move slowly from right to left */
body[data-page="home"] section.content.note,
body[data-page="home"] section.content.cta{position:relative;overflow:visible;}
body[data-page="home"] section.content.note .boundary-moving-logo,
body[data-page="home"] section.content.cta .boundary-moving-logo{
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:0;
  overflow:visible;
  pointer-events:none;
  z-index:3;
}
body[data-page="home"] section.content.note .boundary-moving-logo img,
body[data-page="home"] section.content.cta .boundary-moving-logo img{
  position:absolute;
  top:-30px;
  left:calc(100% + 40px);
  width:92px;
  height:auto;
  animation:boundaryLogoMoveRightToLeftSlow 20s linear infinite;
}
@keyframes boundaryLogoMoveRightToLeftSlow{
  from{ left:calc(100% + 40px); }
  to{ left:-130px; }
}
@media (prefers-reduced-motion: reduce){
  body[data-page="home"] section.content.note .boundary-moving-logo img,
  body[data-page="home"] section.content.cta .boundary-moving-logo img{
    animation:none;
    left:calc(50% - 46px);
  }
}


/* 2026-09-11: slower ships, CTA ship starts 3s later */
body[data-page="home"] section.content.note .boundary-moving-logo img,
body[data-page="home"] section.content.cta .boundary-moving-logo img{
  animation-duration: 28s !important;
}
body[data-page="home"] section.content.cta .boundary-moving-logo img{
  animation-delay: 3s !important;
  animation-fill-mode: both;
}

/* 2026-09-11: moving ships are interactive links */
/* 速度を少しゆっくり（32秒）。上は即時、下は3秒遅れて開始 */
body[data-page="home"] section.content.note .boundary-moving-logo .moving-ship-link,
body[data-page="home"] section.content.cta .boundary-moving-logo .moving-ship-link{
  position:absolute;
  top:-30px;
  left:calc(100% + 40px);
  display:block;
  width:92px;
  height:auto;
  cursor:pointer;
  pointer-events:auto;
  animation:boundaryShipMoveRightToLeft 40s linear infinite;
  z-index:4;
}
body[data-page="home"] section.content.cta .boundary-moving-logo .moving-ship-link{
  animation-delay:10s;
  animation-fill-mode:both;
}
body[data-page="home"] section.content.note .boundary-moving-logo .moving-ship-link img,
body[data-page="home"] section.content.cta .boundary-moving-logo .moving-ship-link img{
  position:static !important;
  display:block;
  width:92px !important;
  height:auto !important;
  margin:0 !important;
  transform:none !important;
  animation:none !important;
  transition:none;
}
body[data-page="home"] .boundary-moving-logo .moving-ship-link:hover img{
  animation:shipHoverSpin .85s ease-in-out 1 !important;
}
body[data-page="home"] .boundary-moving-logo .moving-ship-link:focus-visible{
  outline:2px solid rgba(36,60,67,.5);
  outline-offset:4px;
  border-radius:50%;
}

@keyframes boundaryShipMoveRightToLeft{
  from{ left:calc(100% + 40px); }
  to{ left:-130px; }
}
@keyframes shipHoverSpin{
  from{ transform:rotate(0deg); }
  to{ transform:rotate(360deg); }
}

/* 古いimg側の移動アニメーションを停止。位置移動はリンク要素が担当 */
body[data-page="home"] section.content.note .boundary-moving-logo > img,
body[data-page="home"] section.content.cta .boundary-moving-logo > img{
  display:none !important;
}

@media (prefers-reduced-motion: reduce){
  body[data-page="home"] section.content.note .boundary-moving-logo .moving-ship-link,
  body[data-page="home"] section.content.cta .boundary-moving-logo .moving-ship-link{
    animation:none !important;
    left:calc(50% - 46px) !important;
  }
  body[data-page="home"] .boundary-moving-logo .moving-ship-link:hover img{
    animation:none !important;
  }
}

/* 2026-09-11: 進行中の2艘とも、カーソルが乗っている間は回転 */
body[data-page="home"] section.content.note .boundary-moving-logo .moving-ship-link img,
body[data-page="home"] section.content.cta .boundary-moving-logo .moving-ship-link img{
  transform-origin:50% 50% !important;
  rotate:0deg;
}
body[data-page="home"] section.content.note .boundary-moving-logo .moving-ship-link:hover img,
body[data-page="home"] section.content.cta .boundary-moving-logo .moving-ship-link:hover img{
  animation:movingShipHoverSpin 1.05s linear infinite !important;
}
@keyframes movingShipHoverSpin{
  from{ rotate:0deg; }
  to{ rotate:360deg; }
}


/* 2026-09-11 final tweak: lift both moving ships slightly onto the color-change boundary line */
body[data-page="home"] section.content.note .boundary-moving-logo .moving-ship-link,
body[data-page="home"] section.content.cta .boundary-moving-logo .moving-ship-link{
  top:-76px !important;
}

/* v18: memo schedule / reminder demo */
.memo-schedule-block,.memo-reminder-block,.memo-confirm-block{margin-top:22px;padding-top:20px;border-top:1px solid rgba(65,74,130,.10)}
.memo-section-title{font-size:15px;letter-spacing:.07em;color:var(--ink-deep);margin-bottom:12px;font-weight:600}
.memo-quick-days{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.memo-quick-days .soft-btn{padding:8px 15px}.memo-quick-days .active{background:#6974b2;color:#fff;border-color:#6974b2}
.memo-date-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.memo-date-select{width:auto;min-width:82px}.memo-time-select{width:auto;min-width:72px}
.memo-reminder-type{display:flex;gap:10px;flex-wrap:wrap}.memo-reminder-type .choice-check{flex:1 1 190px}
.recurring-settings{margin-top:16px;padding:18px;border-radius:16px;background:rgba(245,246,255,.66);border:1px solid rgba(65,74,130,.10)}
.memo-frequency-row{max-width:280px}.memo-repeat-extra{margin-top:14px}.memo-repeat-times{margin-top:14px}.repeat-time-row{display:flex;gap:10px;flex-wrap:wrap}.repeat-time{width:130px}
.weekday-picks{display:flex;gap:7px;flex-wrap:wrap}.weekday-pick input{position:absolute;opacity:0}.weekday-pick span{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid rgba(65,74,130,.18);border-radius:50%;background:#fff;cursor:pointer}.weekday-pick input:checked+span{background:#6974b2;color:#fff;border-color:#6974b2}
.memo-confirm-toggle{max-width:620px}.memo-demo-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:22px;flex-wrap:wrap}
.memo-saved-meta{display:grid;gap:8px;margin:0 0 18px;padding:14px 16px;border-radius:14px;background:rgba(246,247,252,.82);font-size:12px}.memo-saved-meta>div{display:grid;grid-template-columns:92px 1fr;gap:10px}.memo-saved-meta strong{color:var(--muted);font-weight:500}.memo-saved-meta span{color:var(--ink-deep)}
.memo-mini-history{margin:0 0 16px;display:grid;gap:6px}.memo-mini-history>div{display:grid;grid-template-columns:145px 1fr;gap:10px;padding:8px 10px;border-radius:10px;background:rgba(247,247,250,.8);font-size:12px}.memo-mini-history time{color:var(--muted)}.memo-mini-history .memo-history-warn{background:#fff4c7;border:1px solid #ead680}
.reminder-demo-dialog{width:min(94vw,700px)}.reminder-demo-inner{padding:30px}.reminder-demo-summary{display:grid;gap:5px;padding:14px 16px;margin-bottom:18px;border-radius:14px;background:rgba(245,246,255,.75);font-size:12px}.reminder-demo-summary strong{font-size:17px;color:var(--ink-deep)}
.reminder-demo-steps{display:grid;gap:12px}.reminder-demo-step{display:grid;grid-template-columns:36px 1fr;gap:12px;padding:15px;border-radius:16px;border:1px solid rgba(65,74,130,.10);background:#fafafd;opacity:.45}.reminder-demo-step.active,.reminder-demo-step.done{opacity:1}.reminder-demo-step.active{border-color:rgba(105,116,178,.42);box-shadow:0 8px 24px rgba(76,86,138,.08)}.reminder-demo-step.done{background:#f5f6fa}.demo-step-no{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#6974b2;color:#fff;font-size:12px}.reminder-demo-step small{color:var(--muted)}.reminder-demo-step p{margin:5px 0 0;color:var(--ink-deep);line-height:1.7}.demo-answer-row{display:flex;gap:10px;margin-top:12px}.reminder-demo-footer{align-items:center}
@media(max-width:700px){.memo-date-row{align-items:flex-end}.memo-date-select,.memo-time-select{min-width:66px}.memo-saved-meta>div,.memo-mini-history>div{grid-template-columns:1fr}.memo-demo-actions{justify-content:stretch}.memo-demo-actions button{width:100%}.reminder-demo-inner{padding:22px 18px}}
.repeat-time-selects{display:inline-flex;align-items:center;gap:6px}.repeat-time-selects .select-input{width:auto;min-width:72px}

/* memo reminder editor v20 */
.memo-add-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:26px 0 30px;padding:20px 22px;border-radius:20px;background:rgba(255,255,255,.72);border:1px solid rgba(65,74,130,.11);box-shadow:0 10px 30px rgba(76,86,138,.05)}
.memo-add-bar strong{display:block;color:var(--ink-deep);font-size:15px;letter-spacing:.05em}.memo-add-bar p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.7}
.memo-list-title{margin-bottom:10px}.memo-editor-dialog{width:min(94vw,760px);max-height:92vh}.memo-editor-inner{padding:30px}.memo-editor-dialog .memo-compose{margin:8px 0 0;padding:0;background:transparent;border:0}
.repeat-dynamic-list{display:grid;gap:9px;margin:8px 0 10px}.repeat-edit-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.repeat-edit-row select{width:auto;min-width:72px}.repeat-edit-row .repeat-month-day{min-width:78px}
.repeat-remove-btn{width:32px;height:32px;border-radius:50%;border:1px solid rgba(65,74,130,.18);background:#fff;color:var(--muted);cursor:pointer;font-size:18px;line-height:1}.repeat-remove-btn:hover{color:var(--ink-deep);border-color:rgba(65,74,130,.35)}
.repeat-add-btn{margin-top:2px}.repeat-subsection{margin-top:16px}.reminder-saved-card .record-type-badge{background:rgba(68,184,181,.09);color:#3c7f7d}
@media(max-width:700px){.memo-add-bar{align-items:stretch;flex-direction:column}.memo-add-bar .primary-btn{width:100%}.memo-editor-inner{padding:22px 18px}.repeat-edit-row select{min-width:64px}}

/* v21: 日付指定の横に定期リマインド選択を配置 */
.memo-quick-days-with-reminder{align-items:center}
.memo-inline-reminder{display:flex;align-items:center;gap:8px;margin-left:4px}
.memo-inline-reminder label{font-size:13px;font-weight:700;color:#4f5874;white-space:nowrap}
.memo-inline-reminder .select-input{width:auto;min-width:150px;padding:8px 34px 8px 12px}
.memo-recurring-only-block{margin-top:10px;padding-top:0;border-top:0}
.memo-recurring-only-block .recurring-settings{margin-top:8px}
@media (max-width:720px){.memo-inline-reminder{width:100%;margin-left:0;margin-top:4px}.memo-inline-reminder .select-input{flex:1;min-width:0}}

/* Flow-view buttons: purple means visually review the flow; green is reserved for live experiences. */
.confirmation-flow-demo-btn{background:#72538f !important;color:#fff !important;border-color:#72538f !important;box-shadow:0 8px 20px rgba(114,83,143,.13)}
.confirmation-flow-demo-btn:hover,.confirmation-flow-demo-btn:focus-visible{background:#62477d !important;border-color:#62477d !important;color:#fff !important}
/* --- MEMORY HELM 実動版: ファイル参照・生成AI承諾 --- */
.file-ref-wrap{margin-top:2px}.file-ref-line{margin-top:7px;font-size:12px;color:var(--muted);word-break:break-all}.ai-consent-note{margin:8px 0 12px;padding:10px 12px;border-radius:12px;background:rgba(245,247,255,.72);font-size:12px;line-height:1.75;color:var(--muted)}


/* 2026-09-19 reminder demo UI */
.memo-add-bar .primary-btn{white-space:nowrap;min-width:max-content;padding-left:24px;padding-right:24px}
.memo-view-tabs{display:none!important}
.reminder-saved-card.is-recurring{background:linear-gradient(145deg,rgba(239,250,249,.96),rgba(230,246,244,.82));border-color:rgba(28,143,143,.28)}
.reminder-saved-card.is-recurring .recurring-badge{background:rgba(28,143,143,.14);color:#176f70;border:1px solid rgba(28,143,143,.18)}
.reminder-saved-card.is-demo-minute{box-shadow:0 12px 34px rgba(28,143,143,.10)}
.demo-minute-note{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px 14px;border-radius:14px;background:rgba(28,143,143,.08);color:#176f70;font-size:12px}
.demo-minute-note span{color:#607477}
.reminder-delete-dot{position:relative;width:18px;height:18px;min-width:18px;border:0;border-radius:50%;padding:0;background:#56a9a8;cursor:pointer;box-shadow:none}
.reminder-delete-dot span{position:absolute;left:50%;bottom:calc(100% + 7px);transform:translateX(-50%);opacity:0;pointer-events:none;white-space:nowrap;padding:4px 8px;border-radius:7px;background:#fff;color:#a65d5d;border:1px solid rgba(166,93,93,.22);font-size:11px;box-shadow:0 5px 15px rgba(0,0,0,.07);transition:opacity .15s ease}
.reminder-delete-dot:hover span,.reminder-delete-dot:focus-visible span{opacity:1}
.memo-demo-minute-toast{position:fixed;right:24px;bottom:24px;z-index:9999;display:grid;gap:5px;min-width:280px;max-width:min(420px,calc(100vw - 32px));padding:16px 18px;border-radius:16px;background:#fff;border:1px solid rgba(28,143,143,.28);box-shadow:0 16px 40px rgba(44,83,92,.18);color:#274d52;opacity:0;transform:translateY(12px);pointer-events:none;transition:.2s ease}
.memo-demo-minute-toast.show{opacity:1;transform:translateY(0)}
.memo-demo-minute-toast strong{color:#176f70;font-size:13px}.memo-demo-minute-toast span{font-size:14px}
@media(max-width:700px){.memo-add-bar .primary-btn{width:100%;white-space:nowrap}.memo-demo-minute-toast{right:16px;bottom:16px;min-width:0}}

/* PWA: home helm logo opens My Settings */
body[data-page="home"] .hero .hero-profile-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:18px;touch-action:manipulation;}
body[data-page="home"] .hero .hero-profile-link:focus-visible{outline:3px solid rgba(23,61,80,.35);outline-offset:5px;}
@media (hover:hover) and (pointer:fine){body[data-page="home"] .hero .hero-profile-link:hover .hero-full-logo{animation:memoryHelmPopSpin 1.25s cubic-bezier(.22,.8,.32,1) both;}}
