/* Additions to the designer's styles.css (kept separate so a new styles.css can be dropped in as is).
   Only existing tokens and type sizes from styles.css are used. */

/* PRODUCTS: link to the iObY Clock LP next to the Store button */
.product-lp-link{display:inline-block;margin:20px 0 0 26px;vertical-align:middle}
@media(max-width:850px){.product-lp-link{display:table;margin:18px 0 0}}

/* COMPANY: links inside the profile */
.profile-note a,.company-profile dd a{color:var(--blue);text-decoration:underline;text-underline-offset:.2em}

/* Footer: legal links and the operator line carried over from the previous site */
.footer-base{margin:10px 0 0;font-size:9px;line-height:1.8}
.footer-base a{font-size:inherit;letter-spacing:0;text-decoration:underline;text-underline-offset:.2em}
.footer-links{display:flex;flex-direction:column;align-items:flex-end;gap:12px}
.site-footer .footer-legal{gap:18px}
.site-footer .footer-legal a{letter-spacing:.02em;color:#8296a6}
.site-footer .footer-legal a:hover{color:var(--blue)}
@media(max-width:850px){.footer-links{align-items:flex-start}
.site-footer .footer-legal{flex-wrap:wrap;gap:8px 16px}
}

/* Header menu. The mock styles it as tab buttons (.site-nav button); since 2026-11-28 every page's menu is
   links to separate pages, so those button styles are repeated for a, and the selected tab's look for
   aria-current="page" (values copied from styles.css, including its breakpoints). */
.site-nav a{display:flex;align-items:center;height:100%;color:#405269;font-size:11px;font-weight:800;letter-spacing:.1em;position:relative;padding:0 1px;text-decoration:none;transition:color .18s}
.site-nav a:hover{color:var(--blue)}
.site-nav a[aria-current=page]{color:var(--blue)}
.site-nav a[aria-current=page]:after{content:"";position:absolute;bottom:24px;left:0;right:0;height:2px;background:var(--blue)}
@media(max-width:1050px) and (min-width:851px){.site-nav a[aria-current=page]:after{bottom:0}
}
@media(max-width:850px){.site-nav a[aria-current=page]:after{bottom:1px;left:4px;right:4px}
}

/* Text pages (legal pages, 404) in src/layouts/BaseLayout.astro */
.site-header a.brand{text-decoration:none}
.doc-title{padding:46px 28px 40px}
.doc-title .en{margin:0;text-transform:uppercase}
.doc-page .page-wrap{max-width:880px}
.prose{color:var(--ink);font-size:14px;line-height:2.05}
.prose h1{font-size:30px;line-height:1.55;margin:0 0 22px;color:var(--navy);letter-spacing:.02em}
.prose h2{font-size:18px;line-height:1.7;margin:44px 0 0;padding-top:20px;border-top:1px solid var(--line);color:var(--navy)}
.prose h3{font-size:15px;margin:28px 0 0;color:var(--navy)}
.prose p,.prose ul,.prose ol,.prose table{margin:16px 0 0}
.prose ul,.prose ol{padding-left:1.3em}
.prose li::marker{color:var(--blue)}
.prose a{color:var(--blue);text-decoration:underline;text-underline-offset:.2em}
.prose a.cta{color:#fff;text-decoration:none}
.prose hr{margin:64px 0;border:0;border-top:1px solid #dce7ed}
.prose section>:first-child{margin-top:0}
.prose table{border-collapse:collapse;width:100%}
.prose th,.prose td{border-bottom:1px solid var(--line);padding:16px 12px;text-align:left;vertical-align:top;font-size:13px}
.prose th{width:30%;font-weight:800;color:var(--navy)}
.prose tr:first-child th,.prose tr:first-child td{border-top:1px solid #dce7ed}
@media(max-width:850px){.site-nav a{font-size:9px;letter-spacing:.09em;padding:0 3px}
.doc-title{padding:32px 22px 28px}
.prose{font-size:13px}
.prose h1{font-size:23px}
.prose h2{font-size:16px;margin-top:36px}
}
@media(max-width:480px){.prose th,.prose td{display:block;width:100%}
.prose th{padding-bottom:2px;border-bottom:0;font-size:12px;color:var(--blue)}
.prose td{padding-top:4px}
.prose tr:first-child td{border-top:0}
}


/* CONTACT: fallback address shown after the mail app is opened */
.form-feedback a,.form-note a{color:var(--blue);text-decoration:underline;text-underline-offset:.2em}

/* NEWS: the featured card is a link to the article page */
a.featured-news{display:block;text-decoration:none}
a.featured-news:hover strong{color:var(--blue)}
a.news-row{text-decoration:none}
a.news-row:hover strong{color:var(--blue)}
.prose .news-meta{margin:0}
.prose .news-back{margin-top:40px}
.prose a.secondary-action{text-decoration:none;border-bottom:1px solid #aacce0}

/* TOP: the NEWS strip shows the latest article instead of a fixed line */
.top-news .top-news-latest a{font-size:13px;color:var(--navy);font-weight:bold}
.top-news .top-news-latest a:hover{color:var(--blue)}
.top-news-latest time{font-size:11px;font-weight:normal;color:#7a91a3;margin-right:18px}
@media(max-width:850px){.top-news .top-news-latest a{font-size:12px}
.top-news-latest time{display:block;margin:0 0 2px}
}

/* Header: the iObY name next to the logo, larger than the mock's brand-copy */
.site-header .brand-copy{font-size:24px;line-height:1.2;letter-spacing:.03em}
@media(max-width:1150px){.site-header .brand-copy{font-size:21px}
}
@media(max-width:850px){.site-header .brand-copy{font-size:18px}
}

/* PRODUCTS: アプリの一覧（ライブラリ型）。アプリ1つ＝カード1枚。styles.css の色・文字サイズだけを使う */

/* 見出し帯は既存のまま、高さだけ少し詰める */
.lib-intro{padding-top:56px;padding-bottom:52px}

/* 件数と絞り込み */
.lib-body-wrap{padding-top:48px}
.lib-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}
.lib-count{margin:0;font-size:13px;color:#6c8293}
.lib-count b{font-size:20px;color:var(--navy);margin-right:4px}
.lib-filter{display:flex;flex-wrap:wrap;gap:8px}
.lib-filter button{font:inherit;font-size:12px;font-weight:bold;color:#466f8e;background:#fff;border:1px solid #cfe0ea;border-radius:999px;padding:8px 18px;cursor:pointer;transition:background .2s,color .2s}
.lib-filter button:hover{border-color:var(--blue);color:var(--blue)}
.lib-filter button[aria-pressed="true"]{background:var(--navy);border-color:var(--navy);color:#fff}

/* カードの並び: PC 3列 / タブレット 2列 / スマホ 1列 */
.lib-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.lib-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s}
.lib-card:not(.lib-soon):hover{transform:translateY(-3px);box-shadow:0 14px 36px #1b456a1a}
.lib-card[hidden]{display:none}
.lib-thumb{display:block;aspect-ratio:16/10;background:#edf5f8;overflow:hidden}
.lib-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}
.lib-card:hover .lib-thumb img{transform:scale(1.03)}
.lib-body{display:flex;flex-direction:column;flex:1;padding:22px 24px 22px}
.lib-head{display:flex;align-items:center;gap:14px}
.lib-icon{width:52px;height:52px;border-radius:12px;margin-top:-48px;border:3px solid #fff;box-shadow:0 4px 14px #1b456a26;background:#fff}
.lib-head small{display:block;font-size:10px;letter-spacing:.12em;font-weight:800;color:#438dbb}
.lib-head h2{font-size:20px;margin:2px 0 0;line-height:1.4}
.lib-head h2 a{color:var(--navy);text-decoration:none}
.lib-head h2 a:hover{color:var(--blue)}
.lib-lead{font-size:14px;font-weight:bold;color:#17374f;margin:16px 0 0;line-height:1.7}
.lib-desc{font-size:12px;line-height:1.9;color:#6c8293;margin:6px 0 0}
.lib-platforms{list-style:none;display:flex;flex-wrap:wrap;gap:6px;padding:0;margin:16px 0 0}
.lib-platforms li{font-size:11px;font-weight:bold;color:var(--navy);background:var(--pale-blue);border-radius:999px;padding:4px 11px}
.lib-platforms li.soon{background:#f1f4f6;color:#7a8d9c;font-weight:normal}
.lib-foot{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:20px;border-top:1px solid var(--line);margin-top:20px}
.lib-more{display:inline-flex;align-items:center;gap:10px;font-size:13px;font-weight:800;color:#fff;background:var(--blue);border-radius:999px;padding:10px 20px;text-decoration:none}
.lib-more:hover{background:#086ebc}
.lib-more span{font-size:18px;line-height:1}
.lib-price{font-size:11px;font-weight:bold;color:var(--green)}
.lib-stores{display:flex;flex-wrap:wrap;gap:4px 16px;margin:14px 0 0}
.lib-stores a{font-size:11px;color:#466f8e;text-decoration:none}
.lib-stores a:hover{color:var(--blue)}
.lib-stores span{margin-left:4px;color:var(--blue)}

/* 準備中の枠（アプリが増えたら消す） */
.lib-soon{align-items:center;justify-content:center;text-align:center;min-height:380px;background:#fafcfd;border:1.5px dashed #cfe0ea;box-shadow:none}
.lib-soon p:not(.top-label){font-size:15px;font-weight:bold;color:#7a91a3;line-height:1.8;margin:12px 0 18px}
.lib-empty{font-size:13px;color:#6c8293;text-align:center;padding:40px 0}

/* TOP の PRODUCTS 欄: アプリのアイコンを並べる */
.lib-teaser{align-items:center}
.lib-tiles{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:14px 24px}
.lib-tile{display:flex;align-items:center;gap:12px;padding:10px 20px 10px 10px;background:#fff;border:1px solid var(--line);border-radius:16px;text-decoration:none;box-shadow:var(--shadow);transition:transform .2s}
.lib-tile:hover{transform:translateY(-2px)}
.lib-tile img{width:48px;height:48px;border-radius:11px}
.lib-tile span{display:flex;flex-direction:column}
.lib-tile strong{font-size:14px;color:var(--navy)}
.lib-tile em{font-style:normal;font-size:11px;color:#6c8293}

@media(max-width:1050px){.lib-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:850px){.lib-body-wrap{padding-top:32px}
.lib-toolbar{flex-direction:column;align-items:flex-start;gap:14px;margin-bottom:20px}
.lib-filter button{padding:8px 14px}
.lib-grid{grid-template-columns:1fr;gap:20px}
.lib-soon{min-height:200px}
.lib-tiles{justify-content:flex-start;margin-top:20px}
.lib-tile{width:100%}
}
