/* kensato.me 共通スタイル。Elementor 時代（〜2026-11）の見た目を手書きで再現したもの */
:root {
  --ink: #54595f;   /* 見出し・本文の濃いグレー */
  --gray: #7a7a7a;  /* 説明文のグレー */
  --pink: #c36;     /* リンク */
}

/* ---- 土台（Hello Elementor テーマの初期値に合わせる） ---- */
*, ::before, ::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: #333;
  font: 14px/1.5 "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, h4, h5, h6 { font-weight: 500; line-height: 1.2; margin: .5rem 0 1rem; }
h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 32px; }
h5 { font-size: 18px; }
p { margin: 0 0 .9rem; }
a { color: var(--pink); text-decoration: none; }
a:hover, a:active { color: #336; }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
pre { font-family: monospace; font-size: 1em; white-space: pre-wrap; }
ul { margin-block: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- ヘッダー ---- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center;
  min-height: 125px; padding: 0 5%;
  background: #fff;
}
.brand { width: 20%; display: flex; flex-direction: column; }
.brand small { font: 400 12px/18px Montserrat, sans-serif; color: var(--gray); text-align: center; margin-bottom: 2px; }
.site-nav { margin: 0 3.667% 0 auto; }  /* 元の列幅 20% + 76.333% + 3% の残り */
.site-nav a { display: block; padding: 13px 20px; font: 300 16px/20px Montserrat, sans-serif; color: #000; }
.site-nav a[aria-current] { color: #9e9e9e; }
.menu-sp { display: none; }

/* ---- フッター・テーマ幅の箱（記事・ブログ・フッター） ---- */
.wrap { width: 100%; max-width: 1140px; margin-inline: auto; }
.site-footer { padding: 16px 0; }
.site-footer a { display: inline-block; padding: 5px 15px; }

/* ---- 大見出し（About me / Contact など） ---- */
.big { font: 600 120px/1 Arial, sans-serif; color: #000; text-align: center; margin: 200px 0 50px; padding: 10px; }

/* ---- トップ ---- */
.home { display: flex; flex-direction: column; }
.home > * { width: 100%; max-width: 1160px; margin-inline: auto; padding: 10px; }
.home > .big:first-child, .intro + .big { margin-top: 150px; }
.portrait { text-align: center; }
.portrait img { width: 46%; }
.cols { display: flex; }
.cols > * { width: 50%; padding: 10px; margin-top: 0; color: var(--ink); }
.intro { line-height: 30px; letter-spacing: 1px; word-spacing: 1px; }
.intro pre { margin: 14px 0; }
.greeting .en { font: 16px/26px "Times New Roman", serif; letter-spacing: .2px; word-spacing: 1px; }

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 30px;
  color: var(--gray);
}
.card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 20px; }
.card > a:first-child, .card > img { align-self: center; }
.card img { width: 100%; }
.card .t { font-size: 18px; font-weight: 800; color: var(--ink); }
.card .t a.ink { color: var(--ink); }  /* Small World Food は元からリンクでも灰色 */
.card .role { font-family: "Roboto Slab", serif; color: var(--ink); }
.small { font: 12px/18px system-ui, -apple-system, sans-serif; color: #65676b; }

.social { display: flex; justify-content: center; gap: 22px; min-height: 112px; margin-top: 150px; }
.social a { display: flex; padding: 17.5px; border-radius: 10%; height: max-content; }
.social svg { width: 35px; height: 35px; fill: #fff; }
.social a:hover { opacity: .9; }

/* ---- Contact ---- */
.page { max-width: 1140px; margin-inline: auto; }
.page > * { padding-inline: 10px; }
.page .big { margin-top: 160px; padding: 0; }
.contact-intro { color: var(--gray); padding-top: 20px; }
.contact-form { padding-block: 20px 10px; color: var(--gray); }
.contact-form label { display: block; line-height: 1; }
.contact-form input, .contact-form select, .contact-form textarea {
  display: block; width: 100%; min-height: 40px; margin-bottom: 10px;
  padding: 5px 14px; border: 1px solid #69727d; border-radius: 3px;
  background: #fff; color: inherit; font-family: inherit; font-size: 14px; line-height: 1.4;
}
.contact-form select { appearance: none; padding: .5rem 20px .5rem 1rem; line-height: 1.5;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 571.4 571.4'%3E%3Cpath fill='%237a7a7a' d='M571 393Q571 407 561 418L311 668Q300 679 286 679T261 668L11 418Q0 407 0 393T11 368 36 357H536Q550 357 561 368T571 393Z'/%3E%3C/svg%3E") right 10px top 50% / 11px no-repeat; }
.contact-form textarea { resize: vertical; }
.contact-form .hp { display: none !important; }
.contact-form button {
  display: block; width: 100%; min-height: 40px; border: 0; border-radius: 3px;
  background: #61ce70; color: #fff; font-family: inherit; font-size: 18px; font-weight: 800; line-height: 1; cursor: pointer;
}
.contact-form button:hover { opacity: .9; }
.thanks { font-size: 1.1em; line-height: 2; color: #333; }

/* ---- ブログ・記事（テーマ標準の書式） ---- */
.entry-title { color: #333; }
.post .entry-title a { text-decoration: none; }
.page-content a { text-decoration: underline; }
.post-tags { margin-top: 1rem; }

/* B2G 記事（Elementor で組んであった記事） */
.b2g { color: #626262; padding: 10px; }
.b2g a { text-decoration: none; }
.b2g-page { max-width: 1140px; margin-inline: auto; }
.b2g h5 { text-align: center; color: #000; font-weight: 400; margin-top: 42px; }  /* 元は本文と別の部品で、間に 20px あった */
.video { padding: 10px; }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.videohide { opacity: .5; pointer-events: none; }  /* 支払うと yenpointButton が解除する */
.yp { max-width: 250px; margin: -381px auto 0; padding: 10px; border-radius: 15px; position: relative; display: flex; justify-content: center; }  /* 動画の上に重ねる（relative がないと半透明の動画の下に隠れる） */

/* My Sitemap */
.sitemap-video { padding: 10px; }
.sitemap-video iframe { display: block; width: 100%; aspect-ratio: 2.33333; border: 0; background: #000; }
.sitemap { max-width: 1140px; margin-inline: auto; padding: 10px; color: var(--gray); overflow-wrap: anywhere; }
.aligncenter { display: block; margin-inline: auto; }
.center { text-align: center; }

/* ---- テーマ幅（Hello Elementor の段階に合わせる） ---- */
@media (max-width: 1199px) { .wrap { max-width: 800px; } }
@media (max-width: 991px)  { .wrap { max-width: 600px; } }
@media (max-width: 767px)  { .wrap { max-width: 500px; } }
@media (max-width: 575px)  { .wrap { max-width: none; padding-inline: 10px; } h1.entry-title { padding-inline: 10px; } }

/* ---- タブレット ---- */
@media (max-width: 1024px) {
  .site-nav a { font-size: 14px; }
}

/* ---- スマホ ---- */
@media (max-width: 767px) {
  .site-header { border-bottom: 1px solid #e7e7e7; }
  .brand { width: 55%; }
  .site-nav { margin-right: 10%; }
  .site-nav > a { display: none; }
  .menu-sp { display: block; }
  .menu-sp summary { list-style: none; cursor: pointer; padding: 5px; line-height: 0; }
  .menu-sp summary::-webkit-details-marker { display: none; }
  .menu-sp svg { width: 20px; height: 20px; }
  .menu-sp[open] .open, .menu-sp:not([open]) .close { display: none; }
  .menu-sp a { position: absolute; left: 0; right: 0; top: calc(50% + 25px); padding: 22px 0; background: #fff; text-align: center; font-size: 14px; }  /* ≡ ボタンの下 10px から出す（元と同じ） */
  .big { font-size: 70px; }
  .big.small-sp { font-size: 58px; }
  .portrait img { width: 85%; }
  .cols { flex-wrap: wrap; }
  .cols > * { width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .home > .cards { padding-inline: calc(10px + (100% - 20px) * .025); }  /* 元は幅 95% */
  .page-content, .b2g { overflow-wrap: anywhere; }
}
