@charset "UTF-8";
/* =========================================================
   ATOK 45周年ページ（/camp/45th/）
   デザイン：幅1920pxのPCデザインをもとに作成
   ※ style.css で body {font-size:0} のため、文字サイズは要素ごとに指定
========================================================= */
.p45 {
  --p45-red: #d7000f;
  --p45-dark-red: #a20000;
  --p45-gold: #b5a06e;
  --p45-text: #444;
  --p45-serif: "Noto Serif JP", serif;
  --p45-bodoni: "Bodoni Moda", "Bodoni 72", serif;
  /* 白い本文エリアの幅（両側は赤） */
  --p45-col: min(1380px, calc(100% - 80px));
  text-align: left;
}
/* style.css の見出し・段落の中央寄せを打ち消す */
.p45 h1,
.p45 h2,
.p45 h3,
.p45 p {
  text-align: left;
}
.p45 img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ---------------------------------------------------------
   メインイメージ（FV）
   位置・大きさは、デザインの画像（2:1）に対する割合で指定
--------------------------------------------------------- */
.p45-fv {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  border-bottom: 8px solid var(--p45-red);
  /* 画像（fv.png / fv-sp.png）の背景色。画像が表示されるまでの色 */
  background: #e9e6e1;
}
.p45-fv__bg {
  position: absolute;
  inset: 0;
  animation: p45-bg 3.2s cubic-bezier(.22, .61, .36, 1) both;
}
.p45-fv__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p45-fv__logo {
  position: absolute;
  top: 10.9%;
  left: 6.67%;
  width: 20.8%;
  margin: 0;
  animation: p45-fadeup 1s .8s ease-out both;
}
.p45-fv__badge {
  position: absolute;
  top: 7.6%;
  right: 7.1%;
  width: 9.4%;
  margin: 0;
  animation: p45-pop .9s 2.6s cubic-bezier(.34, 1.56, .64, 1) both;
}
/* 「信頼と革新」「誕生から45年。…」：赤い帯が左から伸びて、文字が浮かぶ */
.p45-fv__copy,
.p45-fv__lead {
  position: absolute;
  left: 9.27%;
  margin: 0;
  font-family: var(--p45-serif);
  font-weight: 500;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}
.p45-fv__copy {
  top: 32.3%;
  font-size: 3.65vw;
  letter-spacing: .12em;
}
.p45-fv__lead {
  top: 42.3%;
  font-size: 1.2vw;
  letter-spacing: .06em;
}
.p45-fv__copy span,
.p45-fv__lead span {
  display: inline-block;
  position: relative;
  background: var(--p45-red);
}
.p45-fv__lead span {
  background: var(--p45-dark-red);
}
.p45-fv__copy span,
.p45-fv__lead span {
  clip-path: inset(0 100% 0 0);
}
.p45-fv__copy span {
  padding: .1em .02em .1em .1em;
  animation: p45-wipe .7s 1.5s cubic-bezier(.65, 0, .35, 1) both;
}
.p45-fv__lead span {
  padding: .12em .2em .12em .1em;
  animation: p45-wipe .7s 2s cubic-bezier(.65, 0, .35, 1) both;
}
.p45-fv__os {
  display: flex;
  position: absolute;
  bottom: 6%;
  left: 50%;
  gap: 1.35vw;
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateX(-50%);
}
.p45-fv__os li {
  animation: p45-fadeup .8s ease-out both;
}
.p45-fv__os li:nth-child(1) { animation-delay: 3s; }
.p45-fv__os li:nth-child(2) { animation-delay: 3.1s; }
.p45-fv__os li:nth-child(3) { animation-delay: 3.2s; }
.p45-fv__os li:nth-child(4) { animation-delay: 3.3s; }
.p45-fv__os a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 13.55vw;
  height: 3.125vw;
  min-height: 36px;
  border-radius: 3px;
  background: #fff;
  color: #222;
  font-size: max(1.15vw, 14px);
  letter-spacing: .08em;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.p45-fv__os a:hover {
  background: var(--p45-red);
  color: #fff;
}

@keyframes p45-bg {
  from { opacity: 0; transform: scale(1.12); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes p45-fadeup {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes p45-pop {
  from { opacity: 0; transform: scale(.4) rotate(-30deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes p45-wipe {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
/* 動きを減らす設定の人には、アニメーションなしで表示 */
@media (prefers-reduced-motion: reduce) {
  .p45-fv *,
  .p45-fv__copy span,
  .p45-fv__lead span {
    animation: none !important;
    clip-path: none !important;
  }
}

/* ---------------------------------------------------------
   ページ内ナビ（3つのボタン）
--------------------------------------------------------- */
.p45-nav {
  padding: 82px 0;
  background: var(--p45-gold);
}
.p45-nav__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.p45-nav__btn {
  display: flex;
  position: relative;
  align-items: center;
  height: 84px;
  padding: 0 60px 0 32px;
  border-radius: 4px;
  background: #fff;
  color: var(--p45-red);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
  text-decoration: none;
  transition: opacity .2s;
}
.p45-nav__btn:hover {
  opacity: .8;
}
.p45-nav__btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 32px;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.p45-nav__btn--down::after {
  transform: translateY(-75%) rotate(45deg);
}
.p45-nav__btn--cp {
  background: var(--p45-red);
  color: #fff;
}
.p45-nav__btn--cp::after {
  transform: translateY(-50%) rotate(-45deg);
}

/* ---------------------------------------------------------
   本文エリア：中央が白、両側が赤。上下は弧を描く
--------------------------------------------------------- */
.p45-body {
  --p45-split: linear-gradient(90deg,
    var(--p45-dark-red) calc((100% - var(--p45-col)) / 2),
    #fff calc((100% - var(--p45-col)) / 2),
    #fff calc((100% + var(--p45-col)) / 2),
    var(--p45-dark-red) calc((100% + var(--p45-col)) / 2));
  padding-bottom: 7.6vw;
  background: var(--p45-gold);
}
.p45-body__cap {
  /* 大きな楕円の一部を切り出して、ゆるやかな弧にする（端でも角度が付いたまま） */
  height: 7.6vw;
  background: var(--p45-split);
}
.p45-body__cap--top {
  clip-path: ellipse(100% 56.7vw at 50% 56.7vw);
}
.p45-body__cap--bottom {
  clip-path: ellipse(100% 56.7vw at 50% calc(100% - 56.7vw));
}
.p45-body__col {
  padding: 20px 0 140px;
  background: var(--p45-split);
}

/* セクション */
.p45-sec {
  width: min(1200px, calc(var(--p45-col) - 80px));
  position: relative;
  margin: 0 auto;
}
/* ページ内リンクの飛び先。共通JS（script.js）は飛び先の位置ちょうどにスクロールするため、
   飛び先を見出しより上に置いて、固定ヘッダー（PC 60px / SP 50px）に隠れないようにする */
.p45-anchor {
  position: absolute;
  top: -100px;
  left: 0;
}
@media only screen and (max-width: 767px) {
  .p45-anchor {
    top: -70px;
  }
}
.p45-sec + .p45-sec {
  margin-top: 220px;
}

/* 大見出し（ドットのマーク＋明朝体＋英字） */
.p45-ttl {
  position: relative;
  margin: 0 0 60px;
  padding-left: 70px;
  color: #111;
  font-family: var(--p45-serif);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .03em;
}
.p45-ttl::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 48px;
  height: 48px;
  background: url(/camp/45th/images/mark.png) no-repeat center / contain;
}
.p45-ttl span {
  display: block;
  margin-top: 4px;
  color: var(--p45-red);
  font-family: var(--p45-bodoni);
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

/* 本文（見出しの文字にそろえて字下げ） */
.p45-txt {
  padding: 0 70px;
}
.p45-txt p {
  margin: 32px 0 0;
  color: var(--p45-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: .02em;
}
.p45-txt > p:first-child {
  margin-top: 0;
}
.p45-txt .p45-note {
  margin-top: 4px;
  color: #888;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
}

/* 45周年メッセージ */
.p45-txt .p45-message__lead {
  margin-bottom: 60px;
  color: #111;
  font-family: var(--p45-serif);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: .04em;
}
.p45-message__lead em {
  color: var(--p45-red);
  font-size: 1.12em;
  font-style: normal;
}
.p45-message__lead small {
  font-size: .5em;
  letter-spacing: 0;
}
.p45-message__body p {
  margin-top: 48px;
  font-size: 18px;
  line-height: 2.67;
}
.p45-message__body p:first-child {
  margin-top: 0;
}
.p45-thankyou {
  width: 600px;
  max-width: 100%;
  margin: 190px auto 0;
}

/* 新変換エンジン */
.p45-txt .p45-engine__lead {
  margin-bottom: 56px;
  color: #111;
  font-family: var(--p45-serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: .02em;
}
.p45-engine__lead em {
  color: var(--p45-red);
  font-style: normal;
}
.p45-engine__fig {
  margin: 80px 0 88px;
}
.p45-engine__fig img {
  width: 100%;
}

/* 機能（CORE / DICTIONARY） */
.p45-feature {
  margin-top: 140px;
}
.p45-feature__ttl {
  position: relative;
  margin: 0 0 55px;
  padding: 0 0 10px 104px;
  border-bottom: 1px solid #e5e5e5;
  color: #111;
  font-family: var(--p45-serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
}
.p45-feature__ttl::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 10px;
  left: 70px;
  width: 10px;
  background: var(--p45-red);
}
.p45-feature__ttl span {
  display: block;
  margin-bottom: 6px;
  color: var(--p45-red);
  font-family: "Jost", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .3em;
}
.p45-feature--gold .p45-feature__ttl::before {
  background: var(--p45-gold);
}
.p45-feature--gold .p45-feature__ttl span {
  color: var(--p45-gold);
}

/* 「健診？検診」などの言葉の札 */
.p45-words {
  display: flex;
  gap: 90px;
  margin: 36px 0 28px;
}
.p45-txt .p45-words__pair {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
}
.p45-words__pair span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 76px;
  border-radius: 4px;
  background: #e6e2dc;
  color: #333;
  font-family: var(--p45-serif);
  font-size: 24px;
  font-weight: 700;
}
.p45-words__pair i {
  color: var(--p45-gold);
  font-family: var(--p45-serif);
  font-size: 44px;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
}

/* 下の赤いボタン */
.p45-cta {
  margin: 230px 0 0;
  text-align: center;
}
.p45-cta a {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 900px;
  max-width: 100%;
  height: 104px;
  margin: 0 auto;
  border-radius: 52px;
  background: var(--p45-red);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  transition: opacity .2s;
}
.p45-cta a:hover {
  opacity: .85;
}
.p45-cta a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 38px;
  width: 48px;
  height: 48px;
  background: url(/camp/45th/images/button-mark.png) no-repeat center / contain;
  transform: translateY(-50%);
}
.p45-cta a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 44px;
  width: 12px;
  height: 12px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-50%) rotate(-45deg);
}

/* 縦書きのとき「45」を横向きに並べる（PCの横書きでは影響なし） */
.p45-fv__lead .p45-tcy {
  display: inline;
  padding: 0;
  background: none;
  clip-path: none;
  animation: none;
  letter-spacing: 0;
}
@media only screen and (max-width: 767px) {
  /* 2桁の数字を、縦書きの1文字分の幅に横並びで収める */
  .p45-fv__lead .p45-tcy {
    display: inline-block;
    width: 1em;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    writing-mode: horizontal-tb;
    font-feature-settings: "hwid";
  }
}
.p45-fv__bg picture {
  display: block;
  height: 100%;
}
.p45-thankyou picture {
  display: block;
}

/* =========================================================
   スマホ表示（767px以下）
   デザイン：幅750pxのSPデザインをもとに作成
   ※ デザインと同じ見え方にするため、大きさは画面幅に対する割合（vw）で指定
     （デザイン上のpx ÷ 7.5 ＝ vw）
========================================================= */
@media only screen and (max-width: 767px) {
  .p45 {
    /* 白い本文エリアの幅（両側の赤は 40px/750px） */
    --p45-col: 89.34vw;
  }
  /* style.css のスマホ用「見出し・段落の幅90%」を打ち消す */
  /* （:where で優先度を下げ、下で個別に指定した幅が効くようにする） */
  .p45 :where(h1, h2, h3, p) {
    width: auto;
  }

  /* ---------- メインイメージ（FV） ---------- */
  .p45-fv {
    aspect-ratio: 750 / 1112;
    border-bottom-width: 2.67vw;
  }
  .p45-fv__logo {
    top: 7.8%;
    left: 5.07%;
    width: 48%;
  }
  .p45-fv__badge {
    top: 6.7%;
    right: 5.33%;
    width: 21.33%;
  }
  /* 「信頼と革新」「誕生から45年。…」は縦書き */
  .p45-fv__copy,
  .p45-fv__lead {
    top: 23.56%;
    width: max-content;
    writing-mode: vertical-rl;
  }
  .p45-fv__copy {
    left: 15.73%;
    font-size: 8.53vw;
    letter-spacing: .15em;
  }
  .p45-fv__lead {
    left: 7.73%;
    font-size: 4vw;
    letter-spacing: .02em;
  }
  .p45-fv__copy span {
    padding: .1em .06em .02em;
  }
  .p45-fv__lead span {
    padding: .2em .12em .1em;
  }
  .p45-fv__copy span,
  .p45-fv__lead span {
    clip-path: inset(0 0 100% 0);
    animation-name: p45-wipe-down;
  }
  .p45-fv__os {
    bottom: 3.5%;
    gap: 3.47vw;
  }
  .p45-fv__os a {
    width: 19.73vw;
    height: 7.73vw;
    min-height: 0;
    border-radius: .8vw;
    font-size: 3.2vw;
  }

  /* ---------- ページ内ナビ ---------- */
  .p45-nav {
    padding: 10.67vw 0 10.4vw;
  }
  .p45-nav__list {
    grid-template-columns: 1fr;
    gap: 2.67vw;
    width: 80vw;
  }
  .p45-nav__btn {
    height: 14.93vw;
    padding: 0 12vw 0 5.73vw;
    border-radius: 1.07vw;
    font-size: 3.2vw;
  }
  .p45-nav__btn::after {
    right: 6vw;
    width: 2.4vw;
    height: 2.4vw;
    border-width: 0 .53vw .53vw 0;
  }

  /* ---------- 本文エリア ---------- */
  .p45-body {
    padding-bottom: 15.33vw;
  }
  .p45-body__col {
    padding: 10.4vw 0 18.67vw;
  }
  .p45-sec {
    width: 78.67vw;
  }
  .p45-sec + .p45-sec {
    margin-top: 32vw;
  }
  .p45-anchor {
    top: -70px;
  }

  /* 大見出し：マークは赤い帯にかかる位置 */
  .p45-ttl {
    margin-bottom: 6vw;
    padding-left: 0;
    font-size: 5vw;
    letter-spacing: .02em;
  }
  .p45-ttl::before {
    top: -.8vw;
    left: -9.07vw;
    width: 7.47vw;
    height: 7.47vw;
    background-image: url(/camp/45th/images/mark-sp.png);
  }
  .p45-ttl span {
    margin-top: 0;
    font-size: 3.2vw;
  }

  /* 本文 */
  .p45-txt {
    padding: 0;
  }
  .p45-txt p {
    margin-top: 6.4vw;
    font-size: 2.93vw;
    line-height: 2.18;
    letter-spacing: 0;
  }
  .p45-txt .p45-note {
    margin-top: 0;
    font-size: 2.4vw;
    line-height: 2.67;
  }

  /* 45周年メッセージ */
  .p45-txt .p45-message__lead {
    margin-bottom: 4.5vw;
    font-size: 5.33vw;
    line-height: 1.5;
    letter-spacing: .04em;
  }
  .p45-message__body p {
    margin-top: 6.4vw;
    font-size: 2.93vw;
    line-height: 2.18;
  }
  .p45-thankyou {
    width: 70.93vw;
    margin-top: 22vw;
  }

  /* 新変換エンジン */
  .p45-txt .p45-engine__lead {
    margin-bottom: 6.4vw;
    font-size: 4vw;
    line-height: 1.6;
    letter-spacing: 0;
  }
  .p45-engine__fig {
    margin: 7.73vw 0 8vw;
  }

  /* 機能（CORE / DICTIONARY）：下線は白い帯の端まで */
  .p45-feature {
    margin-top: 12vw;
  }
  .p45-feature + .p45-feature {
    margin-top: 26vw;
  }
  .p45-feature__ttl {
    margin: 0 -5.33vw 6.67vw;
    padding: 0 0 2.8vw 9.33vw;
    font-size: 4.4vw;
  }
  .p45-feature__ttl::before {
    bottom: 2.8vw;
    left: 5.33vw;
    width: 1.33vw;
  }
  .p45-feature__ttl span {
    margin-bottom: .5vw;
    font-size: 2.67vw;
  }

  /* 「健診？検診」の札：縦に並べて中央 */
  .p45-words {
    flex-direction: column;
    align-items: center;
    gap: 6.4vw;
    margin: 8vw 0 4vw;
  }
  .p45-txt .p45-words__pair {
    gap: 4vw;
  }
  .p45-words__pair span {
    width: 19.2vw;
    height: 14.67vw;
    border-radius: 1.07vw;
    font-size: 4.53vw;
  }
  .p45-words__pair i {
    font-size: 8vw;
  }

  /* 下の赤いボタン：文字は左寄せの2行 */
  .p45-cta {
    margin-top: 17.33vw;
  }
  .p45-cta a {
    justify-content: flex-start;
    width: 80vw;
    height: 14.93vw;
    padding: 0 12vw 0 14.8vw;
    box-sizing: border-box;
    border-radius: 7.47vw;
    font-size: 3.47vw;
    line-height: 1.4;
    text-align: left;
  }
  .p45-cta a::before {
    left: 4.93vw;
    width: 7.47vw;
    height: 7.47vw;
    background-image: url(/camp/45th/images/button-mark-sp.png);
  }
  .p45-cta a::after {
    right: 5.6vw;
    width: 2.4vw;
    height: 2.4vw;
    border-width: 0 .53vw .53vw 0;
  }
}
@keyframes p45-wipe-down {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 0 0); }
}
