@charset "UTF-8";

/* 「Noto Sans JP」の上下均等配置のため */
@font-face {
  font-family: "Noto Sans JP";
  src: local("Noto Sans JP");
  ascent-override: 100%;
  descent-override: 22%;
}

.ap-main {
  --c-ap-main: #0e93e6;
  --c-ap-accent: #f81616;
  --ff-noto-sans: "Noto Sans JP", sans-serif;
  --ff-dela: "Dela Gothic One", sans-serif;
  --fz-base: clamp(14px, 3.5vw, 16px);

  font-family: var(--ff-noto-sans);
  font-size: var(--fz-base);
  font-weight: 400;
  letter-spacing: 0.05em;
  font-feature-settings: "palt" 1;
}

.ap-main:has(.ap-front-page) {
  padding-bottom: 0;
}

.page-template-template-awaji-place .page-header__lead {
  display: none;
}

/* ページヘッダー
---------------------------------------------- */
.ap-page-header {
  overflow: hidden;
  position: relative;
  display: grid;
  align-items: center;
  min-height: 180px;
  padding-top: 16px;
  padding-bottom: 16px;
  background-image:
    url("../images/awaji-place/bg_noise.webp"),
    linear-gradient(180deg, #53bdff 0%, #ffffff 50%, #ff5252 100%);
  background-repeat: repeat, no-repeat;
  background-size:
    300px 300px,
    auto;
}

.ap-page-header-pic-container {
  position: absolute;
}

.ap-page-header-pic {
  position: absolute;
  z-index: 1;
}

.ap-page-header-pic--left {
  top: 0;
  left: 0;
  translate: -10% 5%;
}

.ap-page-header-pic--awaji {
  top: 50%;
  right: 0;
  translate: -56% -48%;
  mix-blend-mode: color-burn;
}

.ap-page-header-pic--right {
  bottom: 0;
  right: 0;
  translate: -2% 14%;
}

@media (max-width: 1024px) {
  .ap-page-header-pic--left {
    translate: -10% 5%;
  }

  .ap-page-header-pic--awaji {
    translate: -2% -48%;
  }

  .ap-page-header-pic--right {
    translate: 18% 18%;
    max-width: 38%;
  }
}

@media (max-width: 768px) {
  .ap-page-header {
    min-height: 120px;
  }

  .ap-page-header-pic--left {
    translate: -60% -25%;
    max-width: 40%;
  }

  .ap-page-header-pic--awaji {
    translate: 10% -48%;
    max-width: 28%;
  }

  .ap-page-header-pic--right {
  }
}

.ap-page-header-main {
  --inner-width: 1120px;
  position: relative;
  z-index: 2;
}

.ap-page-header-title {
  color: var(--c-ap-accent);
  font-family: var(--ff-dela);
  font-size: clamp(28px, 6vw, 52px);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* トップページ
---------------------------------------------- */
.ap-front-page {
  overflow: hidden;
  position: relative;
  padding-top: 76px;
  padding-bottom: 60px;
  background-image:
    url("../images/awaji-place/bg_noise.webp"),
    linear-gradient(180deg, #53bdff 0%, #ffffff 50%, #ff5252 100%);
  background-repeat: repeat, no-repeat;
  background-size:
    300px 300px,
    auto;
}

@media (max-width: 768px) {
  /* 装飾の高さ確保 */
  .ap-front-page {
    padding-top: 54px;
    padding-bottom: 50vw;
  }
}

.ap-hero {
  --z-bg-txt: 1;
  --z-main-txt: 2;
  --z-deco-cloud: 3;

  --hero-main-width: 1288px;
}

.ap-hero-main-inner {
  position: relative;
  box-sizing: content-box;
  max-width: var(--hero-main-width);
  margin: 0 auto;
  padding-right: 20px;
  padding-left: 20px;
}

.ap-hero-bg-txt-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  text-align: center;
}

.ap-hero-bg-txt {
  z-index: 2;
  grid-area: 1 / 1;
}

.ap-hero-bg-txt-shadow {
  z-index: 1;
  grid-area: 1 / 1;
  translate: 1.3% 4.6%;
  mix-blend-mode: color-burn;
  opacity: 0.75;
}

@media (max-width: 768px) {
  .ap-hero-main-inner {
    max-width: 540px;
  }

  .ap-hero-bg-txt-shadow {
    translate: 3% 2%;
  }
}

.ap-hero-title {
  position: absolute;
  z-index: var(--z-main-txt);
  inset: 0;
  max-width: calc(100% - 120px);
  width: fit-content;
  height: fit-content;
  margin: auto;
}

.ap-hero-title-deco-img {
  position: absolute;
}

.ap-hero-title-deco-img.-women {
  top: 0;
  left: 0;
  translate: -30% -61%;
  max-width: 16%;
}

.ap-hero-title-deco-img.-peoples {
  top: 100%;
  left: 100%;
  translate: -16.5% -19.5%;
  max-width: 30%;
}

.ap-hero-title-deco-img.-cloud {
  top: 100%;
  left: 0;
  translate: -35% -54%;
  max-width: 16%;
}

.ap-hero-title-deco-img.-clouds {
  top: 0;
  left: 100%;
  translate: -82% -66%;
  max-width: 29%;
}

.ap-hero-title-deco-img.-shadow {
  filter: drop-shadow(4px 4px 0px rgba(0, 0, 0, 0.2));
}

@media (max-width: 1024px) {
  .ap-hero-title-deco-img.-women {
    max-width: 12%;
  }

  .ap-hero-title-deco-img.-peoples {
    translate: -44% -12%;
    max-width: 20%;
  }
}

@media (max-width: 768px) {
  .ap-hero-title {
    max-width: 40%;
  }

  .ap-hero-title-deco-img.-women {
    translate: -36% -60%;
    max-width: 48%;
  }

  .ap-hero-title-deco-img.-peoples {
    translate: -26% -38%;
    max-width: 96%;
  }

  .ap-hero-title-deco-img.-clouds {
    translate: -55% -78%;
    max-width: 96%;
  }

  .ap-hero-title-deco-img.-cloud {
    translate: -57% -70%;
    max-width: 56%;
  }
}

.ap-hero-deco-img {
  position: absolute;
  z-index: var(--z-deco-cloud);
}

.ap-hero-deco-img.-cloud-tl {
  bottom: 100%;
  right: calc(50% + (var(--hero-main-width) / 2));
  translate: 52% 81%;
}

.ap-hero-deco-img.-cloud-tr {
  top: 0;
  left: calc(50% + (var(--hero-main-width) / 2));
  translate: -13% -62%;
}

.ap-hero-deco-img.-cloud-br {
  bottom: 0;
  left: calc(50% + (var(--hero-main-width) / 2));
  translate: -67% 125%;
}

.ap-hero-deco-img.-cloud-bl {
  bottom: 0;
  right: calc(50% + (var(--hero-main-width) / 2));
  translate: 28% 140%;
}

@media (max-width: 1024px) {
  .ap-hero-deco-img.-cloud-tl {
    right: 100%;
    translate: 32% 60%;
    max-width: 20%;
  }

  .ap-hero-deco-img.-cloud-tr {
    left: 100%;
    translate: -40% -72%;
    max-width: 18%;
  }

  .ap-hero-deco-img.-cloud-bl {
    right: 100%;
    translate: 65% 100%;
    max-width: 15%;
  }
}

@media (max-width: 768px) {
  .ap-hero-deco-img {
    display: none;
  }
}

/* リード文 */
.ap-lead {
  padding-top: 44px;
  padding-inline: 16px;
}

.ap-lead-txt {
  font-size: clamp(15px, 3vw, 20px);
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.7;
  text-align: center;
}

@media (max-width: 768px) {
  .ap-lead {
    padding-top: 15vw;
  }

  .ap-lead-txt {
    text-align: left;
  }
}

.ap-summary {
  margin-top: 56px;
}

.ap-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
}

.ap-summary-card {
  display: block;
  position: relative;
  z-index: 1;
  padding: 32px;
}

.ap-summary-card-bg {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(8px 8px 0px rgba(51, 51, 51, 0.2));
}

.ap-summary-card-heading {
  margin-bottom: clamp(16px, 3vw, 20px);
}

.ap-summary-card-heading img {
  max-height: 60px;
  filter: drop-shadow(4px 4px 0px rgba(0, 0, 0, 0.2));
}

.ap-summary-card-txt {
  font-size: clamp(15px, 3vw, 18px);
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.ap-summary-card-thumb {
  overflow: hidden;
  margin-top: 16px;
}

.ap-summary-card-thumb img {
  width: 100%;
}

.ap-summary-card img {
  transition: 0.3s ease-in-out;
}

.ap-summary-card:hover img,
.ap-summary-card:focus img {
  opacity: 0.8;
  transition: 0.2s ease-in-out;
}

.ap-summary-card:hover .ap-summary-card-thumb img,
.ap-summary-card:focus .ap-summary-card-thumb img {
  scale: 1.1;
}

@media not all and (max-width: 768px) {
  /* レイアウトずらし */
  .ap-summary-card:nth-child(2) {
    translate: 0 220px;
  }

  .ap-summary-card:nth-child(2)::before {
    content: "";
    display: block;
    position: absolute;
    bottom: 100%;
    left: 0;
    translate: 0% 10%;
    width: 463px;
    height: 172px;
    background-image: url("../images/awaji-place/deco_children.webp");
    background-repeat: no-repeat;
    background-size: contain;
  }
}

@media (max-width: 1024px) {
  .ap-summary-grid {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .ap-summary {
    margin-top: 24px;
  }

  .ap-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ap-summary-card {
    padding: 24px;
  }

  .ap-summary-card:first-child {
    --deco-height: 18vw;
    margin-top: 12vw;
  }

  .ap-summary-card:first-child::before {
    content: "";
    display: block;
    position: absolute;
    bottom: 100%;
    left: 0;
    translate: 10% 20%;
    width: 100%;
    height: var(--deco-height);
    background-image: url("../images/awaji-place/deco_children.webp");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right;
  }
}

/* トップ下部装飾 */
.ap-top-bottom-deco {
  position: absolute;
  bottom: 120px;
  left: 52%;
}

.ap-top-bottom-deco-img {
}

.ap-top-bottom-deco-img.-awaji {
  mix-blend-mode: color-burn;
}

.ap-top-bottom-deco-img.-pic {
  position: absolute;
  left: 50%;
  bottom: 0;
  translate: -57% -10%;
  max-width: 56vw;
}

@media (max-width: 768px) {
  .ap-top-bottom-deco {
    right: -5%;
    bottom: 40px;
    left: auto;
    max-width: 80vw;
  }

  .ap-top-bottom-deco-img.-pic {
    max-width: 100%;
  }
}

/* 共通パーツ
---------------------------------------------- */
.ap-section:not(:first-of-type) {
  margin-top: clamp(40px, 10vw, 60px);
}

.ap-section > * + * {
  margin-top: 24px;
}

[class*="ap-heading"] + * {
  margin-top: 0;
}

.ap-heading {
  display: inline-grid;
  grid-template-columns: 15px minmax(0, 1fr) 15px;
  margin-bottom: clamp(28px, 6vw, 40px);
  font-family: var(--ff-dela);
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.2;
  isolation: isolate;
}

.ap-heading::before,
.ap-heading::after {
  content: "";
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.ap-heading::before {
  background-image: url("../images/awaji-place/shape_heading_left.png");
}

.ap-heading::after {
  background-image: url("../images/awaji-place/shape_heading_right.png");
}

.ap-heading span {
  display: block;
  padding: 6px 10px;
  background-image: url("../images/awaji-place/shape_heading_base.png");
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: center;
}

.ap-heading-2 {
  --line-height: 1.5;
  --icon-fz: clamp(20px, 4.5vw, 24px);
  --icon-size: calc(var(--icon-fz) * 1.5);
  --icon-gap: clamp(8px, 2vw, 16px);

  position: relative;
  margin-bottom: clamp(16px, 3.5vw, 20px);
  padding-left: calc(var(--icon-size) + var(--icon-gap));
  font-size: clamp(20px, 4.5vw, 26px);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: var(--line-height);
}

.ap-heading-2 > span {
  position: absolute;
  top: calc(0.5em * var(--line-height));
  left: 0;
  translate: 0 -48%;
  display: grid;
  place-items: center;
  width: var(--icon-size);
  height: var(--icon-size);
  background-image: linear-gradient(
    135deg,
    var(--c-ap-main) 0%,
    var(--c-ap-main) 50%,
    var(--c-ap-accent) 50%,
    var(--c-ap-accent) 100%
  );
  color: #fff;
  font-family: var(--ff-dela);
  font-size: var(--icon-fz);
  letter-spacing: 0;
}

.ap-heading-3 {
  margin-bottom: 24px;
  padding-bottom: 0.2em;
  border-bottom: 2px solid #53bdff;
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.ap-heading-4 {
  margin-bottom: 16px;
  font-size: clamp(16px, 3vw, 20px);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.ap-txt {
  font-size: var(--fz-base);
  letter-spacing: 0.05em;
  line-height: 1.8;
}

.ap-txt + .ap-txt {
  margin-top: 1em;
}

.ap-link {
  color: var(--c-ap-main);
  font-weight: 500;
  text-decoration: underline;
}

.ap-link:hover {
  opacity: 0.8;
  text-decoration: none;
}

.ap-btn-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 56px;
}

@media not all and (max-width: 1024px) {
  .ap-btn-container.-pc-left {
    justify-content: start;
  }
}

.ap-btn {
  display: inline-grid;
  place-items: center;
  width: min(100%, 280px);
  min-height: 56px;
  padding: 0.25em 1em;
  border-radius: 9999px;
  background-color: #333;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: 0.3s ease;
}

.ap-btn:hover {
  opacity: 0.8;
}

.ap-btn--square {
  border-radius: 0;
}

.ap-btn--download {
  background-color: var(--c-ap-main);
}

.ap-figure-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 24px;
}

@media (max-width: 768px) {
  .ap-figure-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ap-figure {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  max-width: fit-content;
  margin-inline: auto;
  background-color: #eee;
  text-align: center;
}

.ap-figure-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 480px) {
  .ap-figure-group {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ap-figure > img {
  align-self: center;
}

.ap-figure figcaption {
  flex-grow: 1;
  padding: 12px 20px;
  background-color: #e7f4fc;
  font-size: clamp(14px, 3vw, 15px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

.ap-figure figcaption span {
  display: block;
  font-weight: 400;
}

@media (max-width: 768px) {
  .ap-figure figcaption {
    padding: 14px 20px;
  }
}

.ap-flex {
  display: flex;
  align-items: flex-start;
  gap: 20px 40px;
}

@media not all and (max-width: 768px) {
  .ap-flex .ap-figure {
    max-width: 50%;
  }

  .ap-flex--rev {
    flex-direction: row-reverse;
  }
}

@media (max-width: 768px) {
  .ap-flex {
    flex-direction: column;
  }
}

.ap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 768px) {
  .ap-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* テーブル */
@media (max-width: 768px) {
  .ap-table-scrollable {
    overflow-x: auto;
  }

  .ap-table-scrollable .ap-table {
    min-width: 768px;
    max-width: 1024px;
  }
}

.ap-table {
  table-layout: auto;
  width: 100%;
}

.ap-table th,
.ap-table td {
  padding: 10px clamp(16px, 3.5vw, 20px);
  border: 1px solid #ccc;
  font-size: clamp(14px, 2vw, 15px);
  line-height: 1.6;
  vertical-align: middle;
}

.ap-table th {
  background-color: #eee;
  font-weight: bold;
  white-space: nowrap;
}

.ap-table td {
  background-color: #fff;
}

/* コラム
---------------------------------------------- */
.ap-topic-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.ap-topic-card {
  display: block;
  position: relative;
  z-index: 1;
  padding: 24px;
}

.ap-topic-card-bg {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(8px 8px 0px rgba(51, 51, 51, 0.2));
}

.ap-topic-card-thumb {
  overflow: hidden;
  margin-bottom: 16px;
}

.ap-topic-card-thumb img {
  width: 100%;
}

.ap-topic-card-heading {
  margin-right: -0.5em;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0;
  line-height: 1.4;
}

.ap-topic-card-heading span {
  display: block;
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 15px 5px;
  border-radius: 4px;
  background-color: var(--c-ap-accent);
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

.ap-topic-card img {
  transition: 0.3s ease-in-out;
}

.ap-topic-card:hover img,
.ap-topic-card:focus img {
  opacity: 0.8;
  transition: 0.2s ease-in-out;
}

.ap-topic-card:hover .ap-topic-card-thumb img,
.ap-topic-card:focus .ap-topic-card-thumb img {
  scale: 1.1;
}

/* 検索ページ
---------------------------------------------- */
.ap-search-btn-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(12px, 2.5vw, 24px);
}

.ap-search-btn {
  display: inline-grid;
  place-items: center;
  width: min(100%, 140px);
  min-height: 40px;
  padding: 0.25em 1em;
  border-radius: 4px;
  border: 1px solid var(--c-ap-main);
  background-color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: 0.3s ease-in-out;
}

.ap-search-btn:hover,
.ap-search-btn:focus {
  border-color: transparent;
  background-color: var(--c-ap-main);
  color: #fff;
}

@media (max-width: 768px) {
  .ap-search-btn-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .ap-search-btn {
    width: 100%;
    min-height: 36px;
    font-size: 14px;
  }
}

.ap-search-map {
  position: relative;
  max-width: fit-content;
  margin-inline: auto;
}

.ap-search-map-inner {
  position: relative;
}

.ap-search-map-base {
}

.ap-search-map-area {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ap-search-map-clickable-area:hover,
.ap-search-map-clickable-area:focus {
  --area-color: #a23a83;
}

.ap-search-map-clickable-area .area {
  fill: var(--area-color, #2389cb);
  opacity: 0.2;
}
.ap-search-map-clickable-area .number {
  fill: var(--area-color, #333);
}
.ap-search-map-clickable-area .edge {
  fill: #fff;
}

.ap-search-map-old-name {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ap-search-map-guide {
  position: absolute;
  right: 16px;
  bottom: 36px;
}

@media not all and (max-width: 1024px) {
  .ap-search-grid {
    display: grid;
    grid-template-columns: 446px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto 1fr;
    column-gap: 20px;
  }

  /* 地図「以外」の要素をすべて左側（1列目）に配置 */
  .ap-search-grid > *:not(.ap-search-map-section) {
    grid-column: 1;
  }

  .ap-search-grid > *:last-child {
    align-self: end;
  }

  /* 地図エリアを右側（2列目）に配置し、縦に結合する */
  .ap-search-map-section {
    grid-column: 2;
    grid-row: 1 / span 5;
  }
}

@media (max-width: 1024px) {
  .ap-search-grid > *:last-child {
    align-self: start;
  }

  .ap-search-map-section {
    margin-top: 32px;
  }
}

@media (max-width: 768px) {
  .ap-search-map-guide {
    right: 0;
    bottom: 0;
  }
}

/* 詳細ページ
---------------------------------------------- */
.ap-detail {
}

.ap-detail-header {
}

.ap-detail-pic {
  max-width: 800px;
  margin-bottom: clamp(40px, 8vw, 60px);
  margin-right: auto;
  margin-left: auto;
}

.ap-detail-pic .detail-thumb-main__img {
  aspect-ratio: auto;
}
