/*
Theme Name: Kuchicomii Original
Author: Your Name
Description: Original homepage theme scaffold.
Version: 1.0.0
Text Domain: kuchicomii
*/
:root {
  --font-base: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --color-bg: #f7f8fa;
  --color-text: #1c1f26;
  --color-accent: #2e7cf6;
  --color-accent-2: #00a562;
  --color-accent-3: #f26b2f;
  --color-card: #fff;
  --color-muted: #6b7380;
  --radius: 12px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  --header-offset: 140px;
  --fv-overlay-duration: 1.5s;
  --fv-overlay-ease: cubic-bezier(0.37, 0, 0.63, 1);
  --fv-slide-duration: 0.5s;
  --fv-slide-ease: cubic-bezier(0.2, 0, 1, 1);
  --fv-fade-duration: 1.5s;
  --fv-fade-ease: cubic-bezier(0.37, 0, 0.63, 1);
  --fv-fade-delay: 1s;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrapper { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
header.site-header { position: sticky; top: 0; z-index: 50; background: #ffffff00; padding: 16px 0; }
.home header.site-header { transform: translateY(-80px); opacity: 0; animation: slideInDown var(--fv-slide-duration) var(--fv-slide-ease) forwards; }
.header-bar { position: relative; display: flex; align-items: center; gap: 20px; width: 100vw; max-width: none; padding: 0 20px; margin: 0 auto; }
.site-logo { flex-shrink: 0; margin-left: 100px; }
.site-logo .logo-img { display: block; height: 76px; width: auto; }
.pill-nav { display: flex; justify-content: center; align-items: center; position: absolute; left: 50%; transform: translateX(-50%); }
.pill-nav__inner { display: flex; align-items: center; gap: 68px; padding: 25px 60px; border-radius: 50px; border: 3px solid #444; background: #fff; width: 100%; }
.pill-nav__list { list-style: none; padding: 0; margin: 0 auto; display: flex; gap: 35px; align-items: center; justify-content: center; }
.pill-nav__list li { display: flex; align-items: center; }
.pill-nav__link { font-weight: 700; color: #262626; text-decoration: none; white-space: nowrap; font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; font-size: 16px; }
.pill-nav__link:hover { color: var(--color-accent); }
.pill-nav__link--top { color: #4285f4; }

body.home::before { content: ""; position: fixed; inset: 0; background: #4285f4; pointer-events: none; animation: fvOverlayFade var(--fv-overlay-duration) var(--fv-overlay-ease) forwards; z-index: 999; }
.fv { position: relative; padding: 0; background: var(--color-bg); overflow: hidden; height: calc(100vh - var(--header-offset)); min-height: calc(100vh - var(--header-offset)); width: 100vw; display: flex; align-items: center; box-sizing: border-box; }
.fv .wrapper { width: 100%; max-width: none; padding: 0; height: 100%; }
.fv-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; justify-items: center; gap: 32px; position: relative; width: 100%; min-height: 100%; }
.fv-left { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; margin-bottom: 18%; opacity: 0; animation: fvFadeIn var(--fv-fade-duration) var(--fv-fade-ease) forwards var(--fv-fade-delay); }
.fv-title { margin: 0; line-height: 1.1; display: flex; flex-direction: column; gap: 6px; }
.fv-title-main,
.fv-title-em { font-family: "Dela Gothic One", "Noto Sans JP", sans-serif; font-size: clamp(2.5rem, 5vw, 5.5rem); font-weight: 400; line-height: 1.21em; letter-spacing: clamp(0.12rem, 0.25vw, 0.225rem); }
.fv-title-main { color: #262626; text-decoration: underline 6px #262626; }
.fv-title-em { color: #4285f4; text-decoration: underline 6px #262626; }
.fv-lead { margin: 0; font-size: 1.3125rem; font-weight: 700; color: #262626; line-height: 2.1875rem; font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; }
.fv-link { display: inline-flex; align-items: center; gap: 8px; color: #34a853; font-weight: 700; text-decoration: none; font-family: "Ryo Gothic PlusN", "Noto Sans JP", sans-serif; }
.fv-link:hover { text-decoration: underline; }
.fv-link__icon { flex-shrink: 0; width: 25px; height: 19px; }
.fv-video { margin-top: 4px; width: 100%; }
.fv-video-frame { position: relative; width: 100%; max-width: 420px; aspect-ratio: 16 / 9; margin: 0 auto; border: 3px solid #222222; border-radius: 16px; overflow: hidden; background: #000; }
.fv-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.fv-right { position: relative; min-height: 0; display: flex; justify-content: center; align-items: center; }
.fv-clouds { position: absolute; inset: 0; pointer-events: none; }
.fv-cloud-img { position: absolute; height: auto; object-fit: contain; opacity: 0.7; }
.fv-cloud-img--one { top: -20%; right: 50%; width: 30%; transform: translateX(60px); animation: slideInRight var(--fv-slide-duration) var(--fv-slide-ease) forwards; }
.fv-cloud-img--two { top: 160px; right: 0%; width: 20%; transform: translateX(80px); animation: slideInRight var(--fv-slide-duration) var(--fv-slide-ease) forwards; }
.fv-cloud-img--three { top: 45%; left: 10%; width: 10%; transform: translateX(-80px); animation: slideInLeft var(--fv-slide-duration) var(--fv-slide-ease) forwards; }
.fv-cloud-img--four { top: 60%; left: 0%; width: 10%; transform: translateX(-60px); animation: slideInLeft var(--fv-slide-duration) var(--fv-slide-ease) forwards; }
.fv-visual-img { position: relative; z-index: 1; width: 100%; height: auto; object-fit: contain; display: block; margin: 0 0 6% auto; opacity: 0; animation: fvFadeIn var(--fv-fade-duration) var(--fv-fade-ease) forwards var(--fv-fade-delay); }

.fv-floating-cta { position: fixed; right: 5%; top: 110px; display: flex; flex-direction: row; align-items: flex-start; gap: 0px; z-index: 20; transform: translateY(-80px); opacity: 0; animation: slideInDown var(--fv-slide-duration) var(--fv-slide-ease) forwards; }
.fv-cta-img { display: block; }
.fv-cta-img img { display: block; width: 164px; height: auto; }
.fv-cta-img.fv-cta-apply { transform: translateY(-34px) translateX(16px); z-index: 21; }
.fv-cta-img.fv-cta-line { display: block; width: 164px; height: auto; z-index: 22; }

.fv-download { position: fixed; right: 0; top: 65%; transform: translateY(-50%); display: flex; width: 4.8125rem; height: 14.85419rem; padding: 0.625rem 1.5625rem; flex-direction: row; justify-content: flex-start; align-items: flex-start; gap: 0.625rem; flex-shrink: 0; border-radius: 0.625rem 0 0 0.625rem; background: #fbbc05; color: #262626; font-weight: 700; text-decoration: none; writing-mode: vertical-rl; box-shadow: 0 10px 20px rgba(0,0,0,0.15); z-index: 15; }
.fv-download__icon-wrap { display: block; }
.fv-download__icon { width: 22px; height: 27px; flex-shrink: 0; }
.fv-download:hover { background: #ffd44d; }

.fv-skystar { position: absolute; left: 0; bottom: 120px; margin: 0 5% 2% 5%; transform: translateY(70px); opacity: 0; animation: slideInUp var(--fv-slide-duration) var(--fv-slide-ease) forwards; }
.fv-skystar img { display: block; width: 100%; height: auto; }
.fv-skyline { position: absolute; left: 0; bottom: 0; width: 100%; margin: 0; transform: translateY(80px); opacity: 0; animation: slideInUp var(--fv-slide-duration) var(--fv-slide-ease) forwards; }
.fv-skyline img { display: block; width: 100%; height: auto; }

@keyframes fvOverlayFade {
  0% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes slideInDown {
  0% { transform: translateY(-80px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes slideInUp {
  0% { transform: translateY(100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes slideInLeft {
  0% { transform: translateX(-120px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes slideInRight {
  0% { transform: translateX(120px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes fvFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Why Section */
.why { background: #4285F4; color: #ffffff; padding: 80px 0 120px; position: relative; }
.why__inner { position: relative; width: min(1200px, 100% - 40px); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }
.why__title { margin: 0; font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; font-size: 40px; font-weight: 900; letter-spacing: 2px; line-height: 82px; color: #fff; text-align: center; }
.why__bg-text { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-family: "Dela Gothic One", "Noto Sans JP", sans-serif; font-size: 128px; font-weight: 400; line-height: 172%; color: transparent; -webkit-text-stroke-width: 2px; -webkit-text-stroke-color: #5A98FD; text-align: center; pointer-events: none; white-space: nowrap; }
.why__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; width: 100%; }
.why__card { border: 2px solid #dbe9ff; border-radius: 20px; padding: 70px 20px; background: rgba(255,255,255,0.15); display: flex; flex-direction: column; align-items: center; gap: 50px; min-height: 240px; justify-content: space-between; }
.why__icon { width: 80px; display: grid; place-items: center; }
.why__icon svg { width: 140%; height: 140%; }
.why__text { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.6; }
.why__icon--search { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.why__search-heading { color: #fff; font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; font-size: 47.318px; font-weight: 700; letter-spacing: 0.946px; }
.why__search-bar { display: inline-flex; align-items: center; gap: 8px; border: 2px solid #f3f6ff; border-radius: 6px; padding: 2px 12px; min-width: 200px; justify-content: left; }
.why__search-bar .why__search-icon { flex-shrink: 0; width: 16px; }
.why__search-text { color: #fff; font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; font-weight: 700; font-size: 16px; letter-spacing: 0.2px; }
.why__text { font-size: 23.659px; font-weight: 900; letter-spacing: 1.183px; line-height: 34.502px; }
.why__bubble-row { display: grid; grid-template-columns: 1fr auto; align-items: flex-end; gap: 33px; width: 100%; }
.why__bubble { background: #d6e7ff; border-radius: 10px; padding: 14px 18px; width: 100%; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.why__bubble p { margin: 0; color: #4285F4; font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; font-size: 20px; font-weight: 500; line-height: 35px; letter-spacing: 1px; }
.why__bubble::after { content: ""; position: absolute; right: 70px; top: 100%; border-style: solid; border-width: 12px 14px 0 14px; border-color: #d6e7ff transparent transparent transparent; transform: translateY(-2px); }
.why__star-img { width: 90px; max-width: 22vw; height: 100px; display: flex; align-items: flex-end; justify-content: center; }
.why__star-img img { display: block; width: 100%; height: auto; }
.grid { display: grid; gap: 20px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); padding: 24px 0 64px; }
.card { background: var(--color-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid #edf0f5; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--color-muted); }
.footer { padding: 32px 0; color: var(--color-muted); font-size: 14px; text-align: center; }
@media (max-width: 760px) {
  :root { --header-offset: 120px; }
  .header-bar { padding: 0 8px; flex-wrap: wrap; width: 100%; }
  .site-logo { width: 100%; display: flex; justify-content: center; margin-left: 0; }
  .site-logo .logo-img { height: 56px; }
  .pill-nav { position: relative; left: auto; transform: none; width: 100%; max-width: none; }
  .pill-nav__inner { gap: 24px; padding: 18px 16px; border-radius: 32px; flex-wrap: wrap; justify-content: center; }
  .pill-nav__list { gap: 24px; flex-wrap: wrap; }
  .fv { padding: 0; height: calc(100vh - var(--header-offset)); min-height: calc(100vh - var(--header-offset)); width: 100vw; align-items: flex-start; }
  .fv .wrapper { padding: 0; height: 100%; }
  .fv-inner { grid-template-columns: 1fr; min-height: 100%; justify-items: center; }
  .fv-left { gap: 16px; }
  .fv-title-main, .fv-title-em { font-size: clamp(1.9rem, 8vw, 3rem); line-height: 1.18em; letter-spacing: clamp(0.08rem, 0.18vw, 0.16rem); text-decoration-thickness: 4px; }
  .fv-lead { font-size: 16px; }
  .fv-video-frame { max-width: 100%; }
  .fv-right { min-height: 0; }
  .fv-cloud-img { width: 160px; }
  .fv-cloud-img--one { top: -12%; right: 75%; }
  .fv-cloud-img--two { top: 160px; right: 0%; }
  .fv-visual-img { width: clamp(240px, 80vw, 520px); max-height: 60vh; }
  .fv-floating-cta { right: 10px; top: 80px; flex-direction: row; flex-wrap: wrap; }
  .fv-cta-img img { width: 130px; }
  .fv-download { right: 0; top: 72%; height: 12rem; padding: 0.5rem 1rem; }
  .fv-skystar { bottom: 80px; }
  .fv-skyline { margin-top: 32px; }
  .why { padding: 48px 0 80px; }
  .why__inner { width: min(1100px, 100% - 24px); gap: 24px; }
  .why__bg-text { font-size: 88px; top: -10px; }
  .why__cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .why__card { min-height: 200px; }
  .why__star { right: 6px; bottom: -26px; width: 64px; height: 64px; }
}

/* Worry Section */
.worry { position: relative; overflow: hidden; background: #D9D9D9; padding: 60px 0 80px; }
.worry__bg-top { position: absolute; inset: 0; background: transparent; }
.worry__bg-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: url('assets/worry-stars.png') center/cover no-repeat; pointer-events: none; }
.worry__inner { position: relative; width: min(1200px, 100% - 40px); margin: 0 auto; text-align: center; color: #232323; }
.worry__bg-text { text-align: center; -webkit-text-stroke-width: 4px; -webkit-text-stroke-color: #CECECE; font-family: "Dela Gothic One"; font-size: 150px; font-style: normal; font-weight: 400; line-height: 100%; color: transparent; position: absolute; top: -74px; left: 50%; transform: translateX(-50%); white-space: nowrap; pointer-events: none; z-index:1; }
.worry__title { margin: 40px 0 20px; font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; font-size: 28px; font-weight: 900; letter-spacing: 1px; }
.worry__content { position: relative; min-height: 520px; display: flex; align-items: center; justify-content: center; margin-top: 30px; padding: 40px 20px; }
.worry__illustration { position: relative; z-index: 1; }
.worry__illustration img { max-width: 240px; width: 100%; height: auto; }
.worry__balloon { position: absolute; padding: 40px 50px; min-height: 180px; display: flex; align-items: center; justify-content: center; font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; font-size: 16px; font-weight: 700; line-height: 1.6; background-repeat: no-repeat; background-position: center; background-size: contain; }
.worry__balloon p { margin: 0; }
.worry__balloon--left { left: 17%; top: 24%; max-width: 320px; background-image: url('assets/worry-balloon-left.png'); }
.worry__balloon--right { right: 16%; top: 6%; max-width: 320px; background-image: url('assets/worry-balloon-right.png'); }
.worry__balloon--bottom { right: 11%; bottom: 8%; max-width: 420px; margin: 0 auto; background-image: url('assets/worry-balloon-bottom.png'); }
.worry__note { margin-top: 40px; font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; font-size: 16px; font-weight: 700; color: #333; }

@media (max-width: 900px) {
  .worry__content { min-height: auto; padding: 20px 12px; flex-direction: column; gap: 16px; }
  .worry__illustration { order: 1; }
  .worry__balloon { position: static; max-width: 100%; width: 100%; min-height: 160px; }
  .worry__balloon--left,
  .worry__balloon--right,
  .worry__balloon--bottom { margin: 0 auto; }
}
