/*
Theme Name: ito-kaz
Description: 伊藤一洋 公式サイトのオリジナルテーマ(AFFINGER から置き換え。2026年11月 株式会社オーガスタ)
Version: 1.0.0
Text Domain: ito-kaz
*/

@font-face { font-family: "Noto Sans JP"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/NotoSansJP-Regular.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans JP"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/NotoSansJP-Bold.woff2") format("woff2"); }

:root {
  --ik-blue: #1e73be;
  --ik-max: 1060px;
  --ik-pad: 70px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fafafa; color: #000;
  border-top: 5px solid #00b3ff;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px; overflow-x: clip;
}
img { max-width: 100%; height: auto; vertical-align: bottom; }
a { color: #4682b4; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== ヘッダー ===== */
.ik-headbox { position: relative; max-width: 1060px; height: 105px; margin: 0 auto 5px; padding: 10px 10px 0; }
.home .ik-headbox { height: 95px; padding-top: 5px; }
.ik-logo { margin: 0; line-height: 0; font-size: 1px; }
.ik-logo img { width: auto; height: 80px; padding-top: 5px; margin-bottom: 0; }
.ik-burger { display: none; }
.ik-nav {
  background: linear-gradient(#6e98bf 0%, #1e73be 100%);
  border-top: 1px solid #005dea; border-bottom: 1px solid #005dea;
}
.ik-nav__list { display: flex; flex-wrap: wrap; max-width: var(--ik-max); margin: 0 auto; padding: 0; list-style: none; }
.ik-nav__list li { width: 160px; height: 36px; text-align: center; }
.ik-nav__list a { display: block; color: #fff; font-size: 15px; font-weight: 700; line-height: 36px; text-decoration: none; transition: background-color .2s; }
.ik-nav__list a:hover { background: rgba(255, 255, 255, .15); }
.ik-hero img { display: block; width: 100%; height: auto; }

/* スマホのメニュー */
.ik-overlay { position: fixed; inset: 0; z-index: 900; background: rgba(0, 0, 0, .4); }
.ik-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1000; width: 250px; overflow-y: auto;
  background: #1278ed; padding-top: 10px; transform: translateX(100%); transition: transform .3s; visibility: hidden;
}
body.is-drawer-open .ik-drawer { transform: none; visibility: visible; }
.ik-drawer__list { margin: 0; padding: 0; list-style: none; }
.ik-drawer__list a { display: block; padding: 12px 15px; border-bottom: 1px solid #aaa; color: #fff; font-size: 15px; text-decoration: none; }

/* ===== 本文 ===== */
.ik-main { padding-top: 10px; }
.ik-content { max-width: var(--ik-max); margin: 0 auto; }
.ik-mainbox { padding: 30px var(--ik-pad); margin-bottom: 20px; background: rgba(255, 255, 255, .2); border-radius: 4px; }
.entry-content { color: #333; margin-bottom: 20px; }
.entry-content::after { content: ""; display: block; clear: both; }
.entry-content p { font-size: 15px; line-height: 27px; margin: 0 0 20px; }
.entry-content h2 {
  margin: 20px 0; padding: 10px 20px; background: var(--ik-blue); color: #fff;
  font-size: 22px; line-height: 32px; font-weight: 700;
}
.entry-content h2.alignwide, .entry-content h2.alignfull { margin-left: 0; margin-right: 0; }
.entry-content h3 {
  margin: 20px calc(var(--ik-pad) * -1); padding: 10px var(--ik-pad);
  border-bottom: 1px solid #ccc; color: #000; font-size: 20px; line-height: 30px; font-weight: 700;
}
.entry-content ul, .entry-content ol { font-size: 15px; line-height: 27px; margin: 0 0 20px; }
.entry-content figure { margin: 0 0 20px; }
.entry-content .alignfull, .entry-content .alignwide { margin-left: calc(var(--ik-pad) * -1); margin-right: calc(var(--ik-pad) * -1); max-width: none; width: auto; }
.entry-content .wp-block-cover.alignwide, .entry-content .wp-block-cover.alignfull { padding-left: var(--ik-pad); padding-right: var(--ik-pad); }
.entry-content .wp-block-cover { margin-bottom: 20px; }
.entry-content .wp-block-cover.is-light { color: #000; }
.entry-content .wp-block-columns { margin-bottom: 20px; }
.entry-content .wp-block-image .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.entry-content .is-style-st-photo-shadow img { box-shadow: 0 0 8px rgba(0, 0, 0, .5); }
.entry-content .wp-block-separator { border: 0; border-top: 1px solid #ccc; margin: 20px auto; max-width: 100px; }
.entry-content .wp-block-separator.alignfull { margin-left: auto; margin-right: auto; max-width: 100px; }
.entry-content .has-small-font-size { font-size: 12.8px !important; line-height: 19.2px; }
.entry-content .has-st-regular-font-size { font-size: 16px !important; }
.entry-content .has-medium-font-size { font-size: 20px !important; line-height: 32px; }
.entry-content .has-large-font-size { font-size: 24px !important; line-height: 36px; }
.entry-content .has-x-large-font-size { font-size: 28px !important; line-height: 40px; }
.entry-content .is-st-justify-center { text-align: center; }

/* 表(TablePress) */
.entry-content table { border: 1px solid #d7d7d7; border-collapse: collapse; width: 100%; margin: 0 0 20px; }
.entry-content table.tablepress td, .entry-content table.tablepress th { padding: 8px; font-size: 15px; line-height: 27px; color: #111; background: #fff; }
.entry-content table.tablepress tbody tr:nth-child(even) td { background: #f9f9f9; }
.entry-content table.tablepress tbody tr + tr td { border-top: 1px solid #ddd; }

/* お問い合わせ(Contact Form 7)。AFFINGER の「追加 CSS」から移した */
input[type="text"], input[type="password"], input[type="date"], input[type="number"], input[type="email"],
input[type="url"], input[type="search"], input[type="tel"], select, textarea {
  display: block; width: 100%; height: 45px; margin: 5px 0; padding: 7px 15px;
  border: 1px solid #ccc; border-radius: 3px; background-color: #eff1f5; box-shadow: none;
  color: #5c6b80; font: inherit; font-size: 15px; line-height: 45px; letter-spacing: 1px; resize: none;
  transition: background-color .24s ease-in-out;
}
select { margin: 0; padding: 0 12px; border-color: #dfdfdf; line-height: normal; }
textarea { height: 120px; min-height: 120px; line-height: 1.5em; padding: .5em; overflow: auto; }
.inquiry { width: 100%; }
.inquiry th { width: 30%; padding: 10px 5px 10px 10px; background: #f7f7f7; border: 1px solid #d7d7d7; color: #333; font-size: 16px; line-height: 24px; font-weight: 400; text-align: left; vertical-align: middle; }
.inquiry td { padding: 10px; border: 1px solid #d7d7d7; font-size: 15px; }
.inquiry th p, .entry-content .wpcf7-form .inquiry p { margin: 0; font-size: 15px; line-height: 24px; }
.haveto { font-size: 15px; padding: 5px; background: #ff9393; color: #fff; border-radius: 2px; margin-right: 5px; position: relative; bottom: 1px; }
.any { font-size: 9px; padding: 5px; background: #93c9ff; color: #fff; border-radius: 2px; margin-right: 5px; position: relative; bottom: 1px; }
.verticallist .wpcf7-list-item { display: block; }
.wpcf7 input[type="submit"] {
  display: block; width: 50%; margin: 5px auto; padding: 7px 15px; border: 1px solid #ccc; border-radius: 3px;
  background: #f3f3f3; color: #333; font: inherit; font-size: 15px; cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: #e8e8e8; }
.grecaptcha-badge { display: none; }
@media (max-width: 500px) {
  .inquiry td, .inquiry th { display: block !important; width: 100% !important; border-top: none !important; }
  .inquiry tr:first-child th { border-top: 1px solid #d7d7d7 !important; }
  .inquiry .any, .inquiry .haveto { font-size: 12px; }
  .wpcf7 input[type="submit"] { width: 100%; }
}

/* シェアボタン(トップだけ) */
.ik-share { display: flex; justify-content: center; gap: 10px; padding: 10px 0 0; }
.ik-share a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 2px; color: #fff; }
.ik-share__x { background: #55acee; }
.ik-share__fb { background: #3b5998; }
.ik-share__line { background: #00b900; }

/* ===== フッター ===== */
.ik-footer { background: linear-gradient(#c0e4ea 0%, #4e81ce 100%); padding: 20px 15px; text-align: center; }
.ik-footer__in { max-width: var(--ik-max); margin: 0 auto; }
.ik-footer__menu { margin: 0 0 20px; padding: 0; list-style: none; font-size: 12px; line-height: 18px; }
.ik-footer__menu li { display: inline; padding: 0 10px; }
.ik-footer__menu li + li { border-left: 1px solid #0a0a0a; }
.ik-footer__menu a { color: #0a0a0a; text-decoration: none; }
.ik-footer__logo { margin: 0 0 10px; }
.ik-footer__logo img { width: 300px; height: auto; }
.ik-copyr { margin: 0 0 65px; color: #0a0a0a; }
.ik-copyr small { font-size: 13px; }
.ik-pagetop {
  position: fixed; right: 15px; bottom: 15px; z-index: 800; display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; background: #3a8efc; color: #fff; opacity: 0; visibility: hidden; transition: opacity .3s;
}
.ik-pagetop.is-show { opacity: 1; visibility: visible; }

/* ===== スマホ・タブレット(959px 以下) ===== */
@media (max-width: 959px) {
  :root { --ik-pad: 15px; }
  .ik-headbox, .home .ik-headbox { height: auto; padding: 20px 52px 5px; margin-bottom: 0; text-align: center; }
  .ik-logo img { height: auto; width: 300px; max-width: 100%; }
  .ik-burger {
    display: block; position: absolute; top: 0; right: 0; width: 52px; height: 48px; padding: 9px 13px 0; border: 0; background: #1848db; cursor: pointer;
  }
  .ik-burger span:not(.screen-reader-text) { display: block; height: 3px; margin: 0 0 5px; background: #fff; border-radius: 1px; }
  .ik-burger::after { content: "MENU"; display: block; margin-top: -1px; color: #fff; font-size: 8px; line-height: 1; letter-spacing: .02em; }
  .ik-nav { display: none; }
  .ik-mainbox { padding-top: 20px; }
  .entry-content h2 { font-size: 20px; line-height: 27px; }
}
@media (max-width: 959px) {
  .entry-content .wp-block-cover.alignwide, .entry-content .wp-block-cover.alignfull { padding-left: 30px; padding-right: 30px; }
}
@media (max-width: 599px) {
  .entry-content p, .entry-content ul, .entry-content ol { font-size: 18px; line-height: 30px; }
  .entry-content h3 { font-size: 19px; line-height: 27px; padding: 10px 20px; }
}
@media (min-width: 960px) { .ik-drawer, .ik-overlay { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .ik-drawer, .ik-pagetop { transition: none; } }
