> For the complete documentation index, see [llms.txt](https://docs.immedio.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.immedio.io/immedio-forms/first-steps/custom-domain.md).

# カスタムドメインを設定する

フォームに独自のドメインを設定することで、自社ブランドに合わせたURLでフォームを公開できます。

## カスタムドメインとは

カスタムドメインとは、フォーム公開URLに使用するドメインを任意のドメイン（サブドメイン含む）に変更する機能です。デフォルトでは `forms.immedio.io` ドメインでフォームが公開されますが、カスタムドメインを設定することで自社ブランドに合わせたURLでフォームを公開できます。

## カスタムドメインでできること

| 機能        | 説明                                 |
| --------- | ---------------------------------- |
| ドメイン追加    | 任意のドメインをフォーム公開用に登録できます             |
| デフォルト設定   | 複数のドメインがある場合、デフォルトで使用するドメインを設定できます |
| フォームごとの設定 | フォーム編集画面で使用するドメインを選択できます           |

## カスタムドメインの設定方法

### 1. 外部サービスでドメインを取得

お名前.comやGoogle Domainsなどの外部サービスを使って事前にドメインを取得する必要があります。レンタルサーバー等のご用意は不要です。

### 2. immedio Forms管理画面でドメインを登録

1. 管理画面右上の「設定」をクリックします
2. 「カスタムドメイン」セクションの「ドメインを追加」ボタンをクリックします
3. 利用したいドメイン名を入力し「追加」ボタンをクリックします

### 3. ドメインサービスのDNSレコード設定追加

追加したドメインをクリックすると、DNS設定情報が表示されます。ドメインサービスのDNS設定画面で以下のAレコードを追加してください。

| 項目         | 値                                |
| ---------- | -------------------------------- |
| 種類         | A                                |
| DNS名（ホスト名） | 設定したいドメイン名（例: forms.example.com） |
| 値（IPアドレス）  | 管理画面に表示されるIPアドレス                 |

DNS設定の反映には最大48時間かかる場合があります。

### 4. ステータスの確認

ドメインサービスのDNSレコード設定が完了すると、管理画面上のステータスが更新されます。

| ステータス  | 説明                         |
| ------ | -------------------------- |
| 未検証    | DNSレコードが設定されていない状態         |
| 証明書発行中 | DNSレコードが検証され、SSL証明書を発行中の状態 |
| 公開済み   | SSL証明書が有効になり、利用可能な状態       |

ステータスの遷移判定は30分に一度程度行われます。証明書の発行から有効になるまでは、数時間かかる場合があります。

### 5. フォームでカスタムドメインを使用する

1. フォーム編集画面を開きます
2. 「その他」セクションの「カスタムドメインを使用する」をオンにします
3. 「使用するドメイン」から利用したいドメインを選択します
4. フォームを保存します

ステータスが「公開済み」のドメインのみ選択可能です。

## 注意事項

カスタムドメインの指定は必須ではありません。指定しない場合はデフォルトドメイン（forms.immedio.io）でフォームが公開されます。

デフォルト設定されているドメインは削除できません。削除する場合は、先にデフォルト設定を解除してください。

複数のカスタムドメインを登録した場合、デフォルトに設定したドメインが新規フォーム作成時に自動的に選択されます。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.immedio.io/immedio-forms/first-steps/custom-domain.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
